summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler/VNPage.pm
AgeCommit message (Collapse)AuthorFilesLines
2021-01-20v2rw: Rewrite done, time to clean up old v2 codeYorhel1-293/+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.
2021-01-19v2rw: Convert VN releases tabYorhel1-1/+1
This is the last page in the old v2 code that hadn't been rewritten yet. It's a fairly direct and ugly conversion as I've not decided what the future holds for this page, but at least this will allow me to clean up a lot of old and ugly code.
2020-10-02v2rw: Move redirects + cleanup some moreYorhel1-8/+0
2020-09-02BBCode: Consolidate bb2html & bb2text + only convert ids in thread titlesYorhel1-1/+1
Fixing bb2html to only convert ids would complicate options a lot, adding a new formatting function to only convert ids would make sense, but then all formatting functions kind of look alike, so I figured a single bb_format() to support all use cases may be a better approach. Trigger for this was that people do (understandably) put [spoiler] in thread titles, and that should not be interpreted as the spoiler tag.
2020-06-15Releases: Allow custom resolutions to be enteredYorhel1-4/+2
The resolution field now works much like the engine field.
2020-04-24v2rw/VN::Page: Remove old and unused codeYorhel1-716/+1
There's a lot of unused code in VNDB::DB::{VN,Release} still, but I'll not fiddle with that for now.
2020-04-17v2rw/VN::Page: Start conversion of VN pagesYorhel1-1/+1
Currently implemented: - Revision diff - Info box & tags (already implemented from /v+/chars page) - Stats There's a few annoying TODO's left, this conversion will take some effort.
2020-04-13UList.VNPage: Allow setting notes from the VN pageYorhel1-1/+2
2020-04-11v2rw: Convert VN char pages (/v+/chars)Yorhel1-24/+2
This also reimplements the VN infobox part of the page - a good first step into converting the main VN pages to v2rw. The new '?view=' parameter is used for spoiler and sexual hiding. Also fixes a bug on character pages where release-specific roles weren't displayed correctly.
2020-04-01VN::Graph: Also generate VN graphs on-demandYorhel1-23/+0
Same change as with Producers::Graph before. This also adds an option to show/hide unofficial relations. Restructured the code a bit to allow for sharing code between Producers::Graph and VN::Graph.
2020-01-09ulist: Rework VN "User options" tab to be more prominent and convenientYorhel1-4/+4
Personally not a big fan of this taking so much space when it's not on the user's list, but people want instant options so there we go. It probably still blends in too well with the rest of the VN info though, styling isn't my thing. And there's no need to hit "Add to list" anymore now.
2019-12-24ulist: Add list management widget on VN pagesYorhel1-35/+18
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-11-27CSS: Less hacky .maintabsYorhel1-9/+13
Flexbox instead of floats. Apart from that, it's still very hacky. Uses relative positioning in order to overlay 1px over the .mainbox. This should fix the ages-old 'bottom tabs overlay next mainbox' bug and provide more flexibility with adding a top-level <fieldset> or centered buttons.
2019-11-12v2rw: Move entryLinks() into separate VNDB::ExtLinks moduleYorhel1-5/+8
This is yak shaving. The new module doesn't have much value as it is, apart from having a central place to define link formats. This new enrich_extlinks() approach is also a bit more efficient in that it can avoid separate SQL queries for multiple objects. But the real reason for these changes is that I can use that %LINKS hash table to automatically generate the links part in the edit summary and it should (hopefully) also be useful to generate a more convenient/streamlined Elm edit form.
2019-10-14Add lang HTML attribute to some original language fieldsYorhel1-2/+2
The database doesn't have a language attribute for every field, so this is more of a best-effort heuristic. The attribute should allow browsers to choose the correct font. https://vndb.org/t2520.300
2019-10-05Handler::VNPage: Fix default tag categories when not logged inYorhel1-1/+2
2019-10-03SQL: Get rid of the users_prefs table, store preferences in users tableYorhel1-2/+1
This bloats the users table a little bit, but that's fine. The main advantage of this change is that we now have a proper schema for user preferences, rather than the schemaless key-value mess we had before. This commit also splits the 'tags_cat' preference up into tags_cont, tags_ero and tags_tech bools, as that's more compact to store and easier to work with. This commit also changes the 'notify_nodbedit' preference to 'notify_dbedit' with inverted meaning. The reason the value was negated in the first place was because the old schemaless approach did not support positive defaults.
2019-10-02Handler::VNPage: Fix anime type displayYorhel1-1/+1
https://vndb.org/t2520.283
2019-09-24Handler::VNPage: Turn character names in seiyuu diff into linksYorhel1-2/+2
https://vndb.org/t950.610
2019-09-13Handler::VNPage: Add bundle/partial/patch indicator to affiliate linksYorhel1-4/+14
2019-09-12VNDB::Types: Convert medium & resolutionYorhel1-4/+4
2019-09-12VNDB::Types: Convert animated & voicedYorhel1-6/+6
2019-09-11VNDB::Types: Convert vn_lengths, anime_types and tag_categoriesYorhel1-3/+3
2019-09-11VNDB::Types: Convert char_roles, blood_types and gendersYorhel1-6/+6
2019-09-11VNDB::Types: Convert (wishlist|rlist|vnlist)_statusYorhel1-5/+5
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 vn_relations and prod_relationsYorhel1-2/+2
2019-09-11VNDB::Types: Convert platforms into %PLATFORMYorhel1-5/+5
2019-09-11VNDB::Types: Convert languages into %LANGUAGEYorhel1-7/+7
2019-09-11VNDB::Types: Convert staff_roles into %CREDIT_TYPEYorhel1-3/+4
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-29Handler::VNPage: Indicate patchines in affiliate linksYorhel1-2/+6
2019-08-27Also display release link dropdown on producer pagesYorhel1-22/+1
https://vndb.org/t12755.28
2019-08-27VNPage: Move shop links after regular linksYorhel1-1/+1
2019-08-26Add release links dropdown to VN pagesYorhel1-2/+17
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-24/+12
The current affiliate links format doesn't display as much information as before but it's also a lot less messy.
2019-08-09Handler::VNPage: Move external links down a bitYorhel1-2/+4
2019-08-09Replace Wikipedia links with Wikidata IDsYorhel1-10/+7
+ Automatically fetch other links from Wikidata
2019-08-06Hide Novelnews/Encubed links, site seems deadYorhel1-1/+1
2019-06-26VNPage: Don't show deleted/unapproved tags in tag cloudYorhel1-1/+1
The previous code would assume that these tags did not have any votes, but that assumption doesn't necessarily hold anymore.
2019-06-21CSS-based character descriptionszx141-11/+12
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
2019-06-19VNPage: Display publishers and developers in deterministic orderYorhel1-2/+2
Not sure why I hadn't fixed this several years ago already, the random ordering has bothering me for at least that long.
2018-11-07Fix "make" after removal of tagops.jsYorhel1-1/+0
2018-11-04JS-less tag visibility toggleszx141-17/+38
2018-10-28Code style: Keep the HTML structure explicit and indentation correctYorhel1-5/+3
2018-10-28Add JS-less NSFW screenshot togglezx141-4/+9
(cherry picked from commit 6446d7d185543440b97be009fdf2a1f0c379b26f)
2018-10-27VNPage: Hide vote dropdown when nothing has been released yetYorhel1-3/+9
This is a lazy implementation - it doesn't fully prevent voting on unreleased VNs, but it makes it much harder to do so by accident. Fixes #5
2018-10-23Add JS-less NSFW togglezx141-10/+17
2018-10-02DB: Convert resolution into an enumYorhel1-9/+5
Been wanting to do this for a long time - using an integer index into an array that changes once in a while is way too fragile. Doubly so when said indices are also used in filters and URLs that can't be updated every time a new resolution is added.
2018-10-01Lower the average vote requirement for tag spoilers a bitYorhel1-1/+2
https://vndb.org/t950.512
2018-06-19Add uncensored iconYorhel1-0/+2
Icon created by fuukanou: https://vndb.org/t10665.49 File size reduced a bit further by removing metadata and using scour Closes #3
2018-03-27Add platform icons to VN screenshot listingYorhel1-0/+1
https://vndb.org/t950.416