path: root/data
AgeCommit message (Collapse)AuthorFilesLines
2019-12-29ulist: Display labels on VN browserYorhel1-2/+2
Replaces the old "wishlist status" column that I removed earlier. It's kind of awkward, but at least the functionality still exists now.
2019-12-24ulist: Add list management widget on VN pagesYorhel2-19/+4
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-12v2rw: Discussion board editing & thread creationYorhel1-5/+6
Now with BBCode preview, interactive board search, client-side error reporting and lots of new bugs. This took me far too long, turns out it wasn't such a trivial rewrite.
2019-12-09Add SubscribeStar buttonYorhel1-2/+5
2019-12-06Handle BBCode spoiler tags in CSSYorhel2-13/+3
Also fixes the hover effect for threads, which I broke earlier due to the threads moving to v2rw.js.
2019-12-06Add link to d9#3 to quick reply box + allow customizing TextPreview headerYorhel1-3/+4
2019-12-05v2rw: Convert thread reply form to ElmYorhel1-1/+1
So we can apply the new preview functionality. I got rid of the "Go advanced" button, because there's really nothing advanced about it.
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-12-01v2rw: Convert thread display + poll votingYorhel1-1/+2
I did not reimplement the 'poll_recast' and 'poll_preview' settings, these actions are now always permitted. Updated CSS a little bit to highlight the linked post and fix the double border at the bottom. The nice thing about the sql_visible_threads() function I wrote earlier is that is can also be used for access control on a single thread. More code re-use. \o/
2019-11-28Use plain links for JS-ified linkradio inputs + fix focus of non-JS linkradiosYorhel1-0/+25
Kind of backwards to use input elements to display a link when they're backed by Javascript anyway. This also avoids the need to create a unique id for each linkradio element.
2019-11-27ulist: Add column selection + voted, modified, release date & rating columnsYorhel1-22/+27
It works pretty well, but is getting *really* ugly now. :(
2019-11-27CSS: Less hacky .maintabsYorhel1-32/+17
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-19ulist: Compact the notes field and "add release" link in the expanded viewYorhel1-1/+2
Less clutter when not editing.
2019-11-15v2rw: Convert discussion board searchYorhel1-2/+2
With minor styling improvements and full pagination for thread title search. I did combine a few queries which I initially separated for performance reasons. A few quick benchmarks show that it's fast enough, but I'll have to see how it performs in production.
2019-11-10ulist: Improve page load time by lazily loading some thingsYorhel1-1/+1
Instantiating 100 <input type="date"> takes about 180ms on my system with Firefox, so doing that lazily is a big win. UList.Opt is typically hidden, lazily initializing that saves an additional 60ms. Also increase the mouse-over div for the date editor a bit so that there's more hover space.
2019-11-10ulist: Dynamically update releases summary on changeYorhel1-0/+1
2019-11-10ulist: Generalize Elm dropdown + add release status change & removalYorhel1-15/+17
Found a cleaner way to recognize outside-of-dropdown clicks, so that gets rid of the weird and unreliable message timing workarounds. TODO: - Dynamically updating that releases summary thing (1/1 blah) - Adding releases - Add "linkradio" styling for plain <a> tags? These hidden checkboxes are silly for stuff that requires JS anyway.
2019-11-10ulist: Implement notes editing + small code reorgYorhel1-0/+1
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-10ulist: Add (nonfunctional) releases + options UI; More consistent namingYorhel1-2/+10
2019-11-10ulist: Add comment and "this item is public" iconsYorhel1-1/+1
Dynamically updating the visibility state of the "this item is public" icon kind of sucks. But meh, you really want that state to update correctly.
2019-11-10ulist: Inline start/end date editingYorhel1-0/+6
2019-11-10ulist: Inline assigning labels to VNsYorhel1-8/+20
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 votesYorhel1-0/+1
2019-11-10ulist: Add some styling, sorting and a framework for extended info/optionsYorhel1-0/+9
2019-11-10ulist: Add data model for new lists + Perl/Elm for label managementYorhel1-1/+17
Very much experimental. I'm not sure this is even the right model.
2019-11-10CSS: Fix weird mainbox sizing when hovering maintabs on history browserYorhel1-1/+1
I really need to rewrite that maintabs CSS to be less magical, because just setting 'overflow:hidden' on the mainbox below it causes weird behavior. Setting a width seems to kind of magically work around the problem. Found by experimentation. I have no idea what I'm doing.
2019-11-10CSS: Fix table overflow of history browserYorhel1-1/+2
Solution suggested by Wolf480pl -
2019-11-09CSS: More flexible column sizing for history tablesYorhel1-5/+3
2019-11-02Add character cup size field + conversion + filterYorhel1-4/+20
2019-10-22Fix CSS for staff & cast editingYorhel1-1/+1
Accidentally broken in 678f511619708ba893cb2414eead90cdae685708
2019-10-21Elm: Add text preview framework + BBCode preview in formsYorhel1-2/+6
2019-10-20CSS: Give more room for the number in poll barsYorhel1-1/+1
2019-10-19VNWeb::History: Use unicode ✓ and ✗ to indicate filter selection + turn ↵Yorhel1-5/+7
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-18CSS: Increase space in forums for long usernameYorhel1-1/+1
2019-10-16v2rw: Convert staff adding/editing formYorhel3-95/+12
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)Yorhel2-16/+3
2019-10-12Add Patreon link to main menu + minor fixesYorhel1-0/+3
2019-10-04v2rw: Convert user pagesYorhel1-2/+2
Pretty simple conversion, not much special. Did change a few minor display thingies to be more consistent.
2019-09-30v2rw: Convert login, logout & insecure-password-change formsYorhel1-0/+2
The insecure-password-change flow is now slightly more friendly. The logout functionality has been hardened to use POST and require CSRF.
2019-09-27Add Malay languageYorhel1-0/+0
Sorry for re-using update_20190923.sql, but I'm not sure anyone even uses those scripts. For documentation purposes it's neat to have similar things in a short time window combined, anyway.
2019-09-27v2rw: Convert history listingsYorhel1-1/+6
And I changed the filter selection into a more form-like thing. It's slightly more powerful, but not sure it's such a huge improvement in terms of UI. Everything should be identical apart from that.
2019-09-25v2rw: Add Elm & db_edit framework + Convert doc page editingYorhel1-1/+5
Most of this is copied from v3. I did improve on a few aspects: - db_edit() and db_entry() use VNDB::Schema rather than dynamically querying the DB. This has the minor advantage of a faster startup. - The Elm code generator now writes to multiple files, this avoids the namespace pollution seen in v3's Lib.Gen and makes the dependency graph a bit more lean (i.e. faster incremental builds). - The Elm code generator doesn't update the timestamp of files that haven't been modified. This also speeds up incremental builds, the elm compiler can now skip rebuilding unmodified files. - The Elm API response generator code now uses plain functions rather than code references and all possible responses are now defined in Turns out most API responses were used from more than a single place, so it makes sense to have them centrally defined. The doc page preview function is also much nicer; I'd like to apply this to all BBCode textareas as well. ( itself is ugly as hell though. And we will prolly need some HTML form generation functions in Elm to make that part less verbose)
2019-09-24Add language: Scottish GaelicYorhel1-0/+0
2019-09-23Add 4 new languagesYorhel4-0/+0
2019-09-20CSS: Increase doc index box a bit + Add API/Dumps/Query links to main menuYorhel1-1/+1
2019-09-19CSS: Widen a few table columns for the increased font sizeYorhel1-7/+7
2019-09-18CSS: Really gapless vote graphs in all browsers. I hopeYorhel1-2/+2
2019-09-18CSS: Get rid of gaps in the vote graphYorhel1-1/+1
Introduced in caa61fc860b455ada9bf4f589f8d64307ce77314
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.