summaryrefslogtreecommitdiff
path: root/data/js
AgeCommit message (Collapse)AuthorFilesLines
2021-01-20v2rw: Rewrite done, time to clean up old v2 codeYorhel7-1349/+0
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.
2020-07-21Delete old producer edit form + a few more cleanupsYorhel4-180/+0
2020-07-19Delete old VN edit form + some other unreferenced codeYorhel6-710/+0
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.
2020-06-15js: Fix VN edit form referencing the old resolutions listYorhel2-8/+9
2020-06-15Releases: Allow custom resolutions to be enteredYorhel1-1/+8
The resolution field now works much like the engine field.
2020-06-04Delete old character edit formYorhel3-321/+0
Not used anymore.
2020-05-28Drop ReleaseExtLinks.elm in favor of pure CSS solutionYorhel1-19/+0
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.
2020-04-25Delete unused charops CSS + bring back still-used rllinks dd JSYorhel1-0/+19
Turns out I deleted a bit too much in 493866f8114dc785433e401b4e3203516be9f71b, the producer pages still have the old external links dropdown.
2020-04-24v2rw/VN::Page: Remove old and unused codeYorhel5-371/+0
There's a lot of unused code in VNDB::DB::{VN,Release} still, but I'll not fiddle with that for now.
2020-03-22Delete old release edit formYorhel4-266/+0
So that I can now work on adding a few more fields.
2020-01-28v2rw: Convert the VN tagmod interfaceYorhel2-166/+0
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
2020-01-23v2rw: Convert release pagesYorhel1-8/+0
This removes the user list management functionality, I'll reimplement those in a bit.
2020-01-06Char/VN filters: Keep tagspoil level even if no tags/traits are selectedYorhel1-3/+0
https://vndb.org/t2520.349
2019-12-24ulist: Add list management widget on VN pagesYorhel1-15/+0
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.
2019-12-06Handle BBCode spoiler tags in CSSYorhel1-10/+0
Also fixes the hover effect for threads, which I broke earlier due to the threads moving to v2rw.js.
2019-12-01JS: Remove old "This is not VNDB!" domain checkYorhel1-11/+0
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.
2019-11-10JS: Add LibreJS compatibility + use embedded comment tag to sort v2rw.js filesYorhel1-0/+7
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.
2019-11-02Add character cup size field + conversion + filterYorhel1-4/+20
2019-10-16v2rw: Convert staff adding/editing formYorhel2-83/+0
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.
2019-10-12v2rw: Convert user notifications interface (/u+/notifies)Yorhel1-13/+0
2019-09-16JS: Fix hiding of image viewer when clicking outside of document.bodyYorhel1-2/+2
Apparently the page background is not part of document.body.
2019-09-11VNDB::Types: Convert (wishlist|rlist|vnlist)_statusYorhel1-4/+4
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...
2019-09-11VNDB::Types: Convert staff_roles into %CREDIT_TYPEYorhel2-2/+2
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.
2019-08-26Add release links dropdown to VN pagesYorhel1-0/+18
As suggested in https://vndb.org/t12755.15 - although this implementation is a little bit quirky.
2019-08-26Display shop+price info on VN pages + delete old affiliate codeYorhel1-19/+0
The current affiliate links format doesn't display as much information as before but it's also a lot less messy.
2019-08-15Add engine autocompletion to release filtersYorhel1-1/+15
2019-07-15Add engine field to releasesYorhel2-1/+25
Fixes #4.
2019-07-15Increase maximum number of tags/traits/producers/staff in filtersYorhel1-3/+3
Fixes https://vndb.org/t12602.20
2019-07-14iv.js: Fix closing of overlay when clicking on it or the resolution linkYorhel1-1/+1
2019-07-13iv.js improvements: Close window when clicking on page + arrow key supportYorhel1-1/+15
This is some ugly JS, but it'll do.
2019-07-08Add Producer/Staff/Seiyuu filters to Release/VN/Char filtersYorhel1-36/+97
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.
2019-06-28VNBrowse: Add character filtersYorhel1-2/+4
This is a bit experimental, not sure how the performance is going to be.
2019-06-26Traits: Split "meta" field into "searchable" and "applicable"Yorhel1-3/+3
2019-06-26Tags: Split "meta" field into "searchable" and "applicable"Yorhel2-8/+8
As discussed in https://vndb.org/t12507 TODO: - Same conversion for traits - Re-add mod ability to delete all votes for a particular tag?
2019-06-21JS: Fix charops throwing an exception when there is no spoiler radio thingYorhel1-0/+5
Fixes https://vndb.org/t12492.1
2019-06-21CSS-based character descriptionszx141-19/+21
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
2018-12-06js/filters: Fix hidden tag/trait selection on tab switchYorhel1-0/+1
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
2018-11-07Fix "make" after removal of tagops.jsYorhel1-1/+0
2018-11-04Remove JS fallback for VN tagszx141-58/+0
2018-11-04JS-less tag visibility toggleszx141-16/+9
2018-10-31VNEdit: Remove "import cast" functionalityYorhel1-35/+0
https://vndb.org/t950.521
2018-10-28Ignore hidden-by-CSS NSFW images in next/prev in image viewerYorhel1-1/+1
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
2018-10-28Add JS-less NSFW screenshot togglezx141-19/+0
(cherry picked from commit 6446d7d185543440b97be009fdf2a1f0c379b26f)
2018-10-28Fix titles with commas getting truncated in VN relation tablealto1-1/+3
2018-10-23Add JS-less NSFW togglezx141-19/+0
2018-09-29Add default spoiler level to traits and use it on character editYorhel1-1/+1
https://vndb.org/t11296
2018-05-25Add uncensored flag to release entriesYorhel2-2/+10
As discussed in https://vndb.org/t10665
2018-03-04Allow decimal voting from /u+/votesYorhel1-16/+46
2017-03-03Add date filters to VN searchYorhel1-1/+4
2016-07-31vnstaff.js: Show error message when staff is credited multiple timesYorhel1-1/+20
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.