Age | Commit message (Collapse) | Author | Files | Lines |
|
Yay!
There are no more request handlers in the VNDB::* namespace and no more
Javascript in data/js/. This cleans up a lot of old legacy code that
wasn't fun to maintain.
|
|
|
|
There's a lot more unreferenced code in VNDB::DB::*, but I'll not spend
too much effort cleaning that up right now. All of it can be deleted
in bulk at some point.
|
|
|
|
The resolution field now works much like the engine field.
|
|
Not used anymore.
|
|
It's the only Elm module used on VN pages for not-logged-in visitors, so
doing this in CSS makes it possible to not load an Elm bundle on those
pages (when I get to splitting up the JS files).
This solution also simplifies code reuse with the producer pages, but a
v2rw migration of that page would have taken care of that as well.
|
|
Turns out I deleted a bit too much in
493866f8114dc785433e401b4e3203516be9f71b, the producer pages still have
the old external links dropdown.
|
|
There's a lot of unused code in VNDB::DB::{VN,Release} still, but I'll
not fiddle with that for now.
|
|
So that I can now work on adding a few more fields.
|
|
This also changes the voting interface a little bit:
- Spoiler options are a bit more concise
- Mouse-over a button indicates what it does
- The -1 and -2 options are not available anymore
- Downvoted tags are hidden by default
- Moderators can now vote-and-overrule in a single go
|
|
This removes the user list management functionality, I'll reimplement
those in a bit.
|
|
https://vndb.org/t2520.349
|
|
Minimal version. It reuses the LabelEdit and VoteEdit widgets, but
doesn't allow setting a note or start/finish date at the moment.
VN pages now have both v2rw.js and the old vndb.js; Those two scripts
aren't meant to be used together on a single page, so I'm hoping this
will be temporary. I removed the 'checkall' handling from vndb.js as
that might conflict. It's only used on the old list pages anyway.
|
|
Also fixes the hover effect for threads, which I broke earlier due to
the threads moving to v2rw.js.
|
|
This is a remnant from when I was running a public sandbox VNDB, to
avoid getting people confused and wasting their time contributing to the
sandbox.
Removed for consistency with pages that have migrated to the new
v2rw.js, which doesn't have the message, and for the new .onion address.
|
|
I found myself forgetting to add a file to $JS_FILES in the Makefile
several times now, and with Perl and Elm modules being detected and
loaded automatically, it feels weird not to do the same for .js files.
This embedded order trick is ugly, but it's pretty simple and gets the
job done.
|
|
|
|
This is the first major editing form to be converted, so I'm expecting a
little breakage. A good chunk of this code has been copied from v3.
In terms of the UI there has been a small change: aliases that are still
referenced do not have the 'remove' link and instead have a flag that
shows that they are still referenced. This ought to be a bit friendlier
than throwing an error message after the user has submitted the form.
Some other things I'd like to improve in this form:
- BBCode preview
- Pasting in external links and letting the form figure out the Pixiv
ID, etc.
- Or perhaps even: Integrate AniDB/Wikidata search/autocompletion.
|
|
|
|
Apparently the page background is not part of document.body.
|
|
I did create a function to export arrays, but ended up exporting them as
hashes. That ought to simplify a conversion to an enum type. Which will
likely never happen because I'd rather switch to dynamic user-defined
statuses, but that's quite a step further...
|
|
Part one in converting data/global.pl lists into a separate VNDB::Types
module. This is basically what I had started with VN3::Types, but it
looks like a gradual rewrite/cleanup may be more successful. At least
it'll be more useful on the short term.
|
|
As suggested in https://vndb.org/t12755.15 - although this
implementation is a little bit quirky.
|
|
The current affiliate links format doesn't display as much information
as before but it's also a lot less messy.
|
|
|
|
Fixes #4.
|
|
Fixes https://vndb.org/t12602.20
|
|
|
|
This is some ugly JS, but it'll do.
|
|
This also abstracts and changes the tag/trait filter selection interface
a little bit. Non-searchable tags/traits are now simply not listed
anymore in the dropdown search.
|
|
This is a bit experimental, not sure how the performance is going to be.
|
|
|
|
As discussed in https://vndb.org/t12507
TODO:
- Same conversion for traits
- Re-add mod ability to delete all votes for a particular tag?
|
|
Fixes https://vndb.org/t12492.1
|
|
Squashed commit of the following:
commit bfc1de9f73f93981445b3451ba6087ef1de9ce36
Author: zx14 <zx14@vndb.org>
Date: Thu Jun 20 20:19:39 2019 +0659
Fix issues, pointed out in https://code.blicky.net/yorhel/vndb/pulls/24
commit c2b250b24e87d1b5c9589770fcff65f848f2e8f0
Author: zx14 <zx14@vndb.org>
Date: Sat Jun 15 22:27:21 2019 +0659
CSS-based character descriptions
|
|
This code is a horrible piece of shit. I can't tell if I broke something
else with this change. Testing seems to suggest it's okay.
https://vndb.org/t2520.281
|
|
|
|
|
|
|
|
https://vndb.org/t950.521
|
|
Broken in 0687115f99
Fixes https://vndb.org/t2520.277
The JS check is based on
https://makandracards.com/makandra/1339-check-whether-an-element-is-visible-or-hidden-with-javascript
|
|
(cherry picked from commit 6446d7d185543440b97be009fdf2a1f0c379b26f)
|
|
|
|
|
|
https://vndb.org/t11296
|
|
As discussed in https://vndb.org/t10665
|
|
|
|
|
|
The backend does this validation as well, but if that validation fails
it will show an unhelpful "Malformed JSON" error. This JS message should
be more helpful.
|