path: root/lib/VNDB/Handler/
AgeCommit message (Collapse)AuthorFilesLines
2021-01-20v2rw: Rewrite done, time to clean up old v2 codeYorhel1-165/+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-16TraitPage: Rewrite to use new AdvSearch systemYorhel1-1/+1
Largely a copy-paste from TagPage.
2020-09-30v2rw/Tags::Index: Re-use tag index for trait indexYorhel1-80/+0
This code is pretty easy to re-use.
2020-09-29v2rw/Tag::List: Re-use tag listing to implement trait listingYorhel1-72/+0
Duplicating that code was really too much, the listings are way too similar.
2020-09-29v2rw/TraitEdit: Rewrite trait edit form + cleanup bunch of old codeYorhel1-140/+0
This was the last form in the old v2 code, so this allowed me to get rid of the old form validation and generation abstractions. The form is mostly a duplicate of the tag editing form, as expected. It's really annoying to have to maintain pretty much duplicate code for tags and traits, but there are just enough differences that the complexity of sharing code or creating a new abstraction outweigh the benefits. :(
2020-09-27v2rw/Tags::List: Re-implement & improve the tag listYorhel1-1/+1
Now supports full pagination, displaying & sorting on VN count and displaying & filtering the searchable and applicable flags.
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.
2019-10-10rewards: Apply supporters badge and unicode name (almost) everywhereYorhel1-1/+1
Only place where this isn't applied (yet?): Sorting user lists still goes by the old username and board names don't use the new unicode names. I have to say, I quite like the sql_user() and user_() pattern. It's not without problems when applied to everything, but it's good enough for several use cases.
2019-10-07Tag/trait pages: Removed cache info line, it is not accurate anymoreYorhel1-1/+3
2019-07-08Add Producer/Staff/Seiyuu filters to Release/VN/Char filtersYorhel1-0/+2
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-26Traits: Split "meta" field into "searchable" and "applicable"Yorhel1-8/+23
2018-10-07Handler::(Tags|Traits): Remember spoiler/filter settings when changing the otherYorhel1-3/+4
2018-09-29Add default spoiler level to traits and use it on character editYorhel1-2/+7
2018-07-07Handler::Traits: Fix link in duplicate trait creationYorhel1-1/+1
2017-03-03Don't allow deleted or unapproved traits to be linked to char entriesYorhel1-0/+1
2016-07-03Generalize substring search relevance + apply to most dropdown searchesYorhel1-15/+3
This is a generalization of the search improvements made in 7da2edeaa0f6cf7794f4f8f68960497dc1be893c and 92235222dba4e5d0c7713d53ef12e0f10e371b83 And has been applied to the dropdown searches for producers, staff, tags and traits. For all those searches, exact matches are listed first, followed by prefix matches, and then substring matches. Relevance is currently only based on the primary name/title and ignores aliases (except for staff). This is fixable, but not trivial, and I'm not sure it's all that useful.
2016-07-03Charedit/traits: Prioritize exact match when finding traitsYorhel1-1/+13
2016-01-23L10N: Intern all VNDB::Handler::* stuffYorhel1-55/+57
Most of these replacements were automated. This ended up being less work than I had anticipated. I also fixed a few minor bugs along the way, but probably introduced more than I fixed.
2016-01-20L10N: Intern all VNDB::Util::* stuffYorhel1-7/+4
With some related edits in other parts of the code, mostly due to interface changes to htmlRevision() and htmlFormError(). Trivial replacements were automated by a super awesome script.
2016-01-19Move some VNDB::L10N stuff to VNDB::Func + intern VNDB::FuncYorhel1-4/+4
2015-12-30Add release filters to VN browserYorhel1-2/+4
2015-09-20Update usage kv_validate() to upcoming TUWF 1.0Yorhel1-5/+5
And added new 'page' and 'id' templates for more strict validation.
2015-07-21Add profile option for the default spoiler settingYorhel1-6/+4
This fixes the unexpected behaviour that changing the spoiler setting on one page will change it for all pages. All manual spoiler changing options are temporary now.
2015-07-21L10N: Combine spoiler setting stringsYorhel1-4/+3
2015-01-15Double the limit of number of traits to a characterYorhel1-1/+1
As per t2520.119 and t2520.120.
2014-12-01Replace some 'onclick' attributes with JS-generated eventsYorhel1-3/+3
I think this was the last piece of inline JS.
2014-10-16Completely get rid of the old charedit perm flagYorhel1-3/+3
2012-11-05Handler::Traits: Include filter string in paginationYorhel1-1/+1
2012-01-25Do most of the table striping in CSSYorhel1-1/+1
Using CSS3 selectors. This is a more elegant approach, and since browser support for CSS3 selectors isn't as crap as it used to be I can finally make use of them.
2011-08-27Added filters to character browse page and trait pageQCyph1-4/+11
2011-08-21Bugfix: Don't display "group number" field on trait creation for non-modsYorhel1-1/+3
2011-05-17Bugfix: Don't allow duplicate trait names/aliasses within the same groupYorhel1-0/+8
This makes the denied trait listing useful again.
2011-04-08Update traits_chars cache daily using Multi::MaintenanceYorhel1-5/+1
I'd really prefer incremental updates, but I'll first need to find a proper algorithm...
2011-04-06Use same browsing-table on trait pages and char browserYorhel1-19/+4
2011-04-03Order the traits groups on /i by their 'order' columnYorhel1-1/+1
2011-03-14chardb: Added Char<->VN linking edit interfaceYorhel1-1/+1
Still somewhat quircky, but it works.
2011-02-27chardb: Allow specifying the order of trait groups +'sexual' trait flagYorhel1-2/+13
The sexual flag isn't used yet.
2011-02-21chardb: char-by-trait lookup + trait usage count + tag-code sharingYorhel1-6/+68
I'll have to optimize the updating of traits_chars as soon as I have some data to test with. Also renamed tags.c_vns to c_items, to have it share the same name as traits.c_items. This makes it a lot easier to re-use code for both tags and traits, such as what I did with dbTagTree/dbTraitTree -> dbTTTree and the childtags() and parenttags() functions.
2011-02-20chardb: Added friendly character <-> trait linking interfaceYorhel1-1/+30
2011-02-20chardb: Added "group" property to traitsYorhel1-1/+26
It's more like a cache, and has some unintuitive problems when a trait is applied to multiple top-level traits. But this'll do the trick anyway.
2011-02-19chardb: Removed unique constraints from traits and traits_aliasesYorhel1-20/+11
This makes things somewhat simpler.
2011-02-14chardb: Added trait index and searchYorhel1-4/+142
2011-02-13chardb: Added trait add/edit formYorhel1-9/+106
2011-02-13chardb: Added notes file and started implementing the traitsYorhel1-0/+82