summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2019-11-10ulist: Inline assigning labels to VNsYorhel1-6/+47
I'm really unhappy with the workarounds to deal with the global onClick subscription doing the right thing, but I wasn't able to find a good alternative.
2019-11-10ulist: Inline editable votesYorhel3-5/+34
2019-11-10ulist: Add some styling, sorting and a framework for extended info/optionsYorhel1-32/+70
2019-11-10ulist: Use lower numbers for custom labels + add VN listingYorhel1-37/+135
2019-11-10ulist: Add data model for new lists + Perl/Elm for label managementYorhel1-0/+119
Very much experimental. I'm not sure this is even the right model.
2019-11-10CSS: Fix table overflow of history browserYorhel1-1/+1
Solution suggested by Wolf480pl - http://s.blicky.net/19/table.html
2019-11-09BBCode: Fix resolving of staff aliasesYorhel1-1/+1
2019-11-08Wikidata: Add support for doujinshi.org author linksYorhel2-0/+3
2019-11-02Add character age field + conversionYorhel2-4/+13
2019-11-02Add character cup size field + conversion + filterYorhel4-8/+24
2019-10-31Footer: Shorten version string + move source URLYorhel2-5/+4
2019-10-30v2rw: Convert /u+/postsYorhel2-69/+72
Simple conversion, no real changes other than that the new version has full pagination.
2019-10-26Fix Wikipedia URLs with a question markYorhel1-2/+2
https://vndb.org/t2520.307
2019-10-22"nofancy" option also removes the star next to "My Profile"Yorhel1-1/+1
2019-10-21Elm: Add text preview framework + BBCode preview in formsYorhel1-0/+9
2019-10-20Add some common engines to the common engine listYorhel1-0/+4
2019-10-19VNWeb::History: Use unicode ✓ and ✗ to indicate filter selection + turn ↵Yorhel1-15/+13
booleans into plain checkboxes I kept forgetting which color meant what, these glyphs ought to make that more clear without going back to the uglyness of unstyled form elements.
2019-10-18User::Edit: Throw 404 if user does not existYorhel1-1/+1
2019-10-16Fix editing of staff entries without WikidataYorhel1-1/+1
And I can't say the wikidata field is all that intuitive to edit. Need to look at it later...
2019-10-16v2rw: Convert staff adding/editing formYorhel11-268/+278
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-16Display star next to 'My profile' link when supporter options are availableYorhel1-1/+2
It's not very obvious when a users' account has been linked, and it wasn't clear to some that the rewards need to be enabled manually. Hopefully this clears up both.
2019-10-16HTML: Make "noindex" the defaultYorhel12-14/+14
Adding 'index => 0' to all pages is error-prone, and the majority of the pages aren't indexed. Requiring an 'index => 1' for pages that may be indexed is less work and a safer solution. (Doesn't affect the v2 codebase, which still requires an explicit 'noindex => 1')
2019-10-14v2rw: Convert user listingYorhel9-145/+153
2019-10-14Delete the user deletion featureYorhel4-59/+1
It's rather much code just to run a single SQL statement that I almost never need. Incidentally, the feature was also broken because the DELETE permission wasn't granted in perms.sql.
2019-10-14User::PassSet: Show a CSRF error when the reset token is invalidYorhel1-1/+4
2019-10-14Fix fetching of c_olang for revision pagesYorhel1-1/+1
2019-10-14Add lang HTML attribute to some original language fieldsYorhel6-10/+24
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-13Sort languages by name rather than tagYorhel3-4/+4
https://vndb.org/t950.634
2019-10-13Fix 500 when posting notification form with empty selectionYorhel1-1/+1
Broken in 0be1aa6acb62c13b4bcb4bd52a9c76df5f248e45
2019-10-12Revert username capitalization in main menu and user pageYorhel2-4/+5
2019-10-12rewards: Fix applying the public skin even when disabledYorhel4-5/+6
2019-10-12v2rw: Convert user notifications interface (/u+/notifies)Yorhel4-224/+178
2019-10-12DB: Add sql_identifier() for safer and cleaner dynamic queriesYorhel1-10/+17
2019-10-12Add Patreon link to main menu + minor fixesYorhel2-2/+8
2019-10-11Two rewards-related bug fixesYorhel2-3/+3
2019-10-10rewards: Honor public custom css/skinYorhel7-17/+22
2019-10-10rewards: Apply supporters badge and unicode name (almost) everywhereYorhel26-146/+134
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-10rewards: Add user settingsYorhel1-3/+23
They don't do anything yet.
2019-10-10Fix noinxed tag on non-v2rw pagesYorhel1-0/+1
2019-10-07API: Add wikidata and pixiv linksYorhel1-5/+12
2019-10-07Tag/trait pages: Removed cache info line, it is not accurate anymoreYorhel2-3/+6
2019-10-07SQL: Perform incremental updates on traits_chars when characters are editedYorhel1-1/+1
Same thing as 65ed955890c7ee7250a2bce4467c8c092c1bbbbe, with the same limitations (except this does take hiding/unhiding characters into account).
2019-10-07SQL: Perform incremental updates on tags_vn_inherit when tags are modifiedYorhel2-1/+4
This has some limitations: - tags.c_items is not updated, so that may be out of sync. (The UPDATE takes about 400ms, so doing that more regularly from Multi::Maintenance should be a viable option) - When the hidden flag of a VN is changed, the tags will also be out of sync. - I don't see a way to do fast incremental updates when tag entries themselves are changed, e.g. to handle changes in the tag tree or searchable flag
2019-10-05Handler::VNPage: Fix default tag categories when not logged inYorhel1-1/+2
2019-10-04v2rw: Convert user pagesYorhel4-125/+164
Pretty simple conversion, not much special. Did change a few minor display thingies to be more consistent.
2019-10-04VNWeb::HTML: Make sure to force reload v2rw.js on version changeYorhel1-1/+1
Not sure how I missed this.
2019-10-04VNDB::DB::Discussions: Don't count private threads in the discussions tab numberYorhel1-1/+1
2019-10-03Disallow changing email address to one already used by another accountYorhel3-51/+3
2019-10-03Require email confirmation when changing email addressYorhel3-10/+62
This ensures that the email address linked to a user is always valid and actually belong(s|ed) to that user.
2019-10-03SQL: Add session types + use sessions for password reset tokensYorhel1-5/+4
This improves the password reset workflow a bit. The users.passwd field is now no longer used for reset tokens, meaning that the current password isn't affected until the user actually clicks the link and changes it. It is now also possible to have multiple active password reset tokens, in case one of the emails got lost. All existing tokens are invalidated when the user finally changes their password. Tokens are now valid for at most 1 week instead of indefinitely.