Age | Commit message (Collapse) | Author | Files | Lines |
|
Replaces the old "wishlist status" column that I removed earlier. It's
kind of awkward, but at least the functionality still exists now.
|
|
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.
|
|
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.
|
|
|
|
Also fixes the hover effect for threads, which I broke earlier due to
the threads moving to v2rw.js.
|
|
|
|
So we can apply the new preview functionality.
I got rid of the "Go advanced" button, because there's really nothing
advanced about it.
|
|
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.
|
|
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/
|
|
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.
|
|
It works pretty well, but Lists.pm is getting *really* ugly now. :(
|
|
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.
|
|
Less clutter when not editing.
|
|
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.
|
|
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.
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
|
|
Very much experimental. I'm not sure this is even the right model.
|
|
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.
|
|
Solution suggested by Wolf480pl - http://s.blicky.net/19/table.html
|
|
https://vndb.org/t2520.314
|
|
|
|
Accidentally broken in 678f511619708ba893cb2414eead90cdae685708
|
|
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|
|
|
Pretty simple conversion, not much special. Did change a few minor
display thingies to be more consistent.
|
|
The insecure-password-change flow is now slightly more friendly. The
logout functionality has been hardened to use POST and require CSRF.
|
|
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.
|
|
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.
|
|
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
Elm.pm. 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.
(Elm.pm itself is ugly as hell though. And we will prolly need some HTML
form generation functions in Elm to make that part less verbose)
|
|
|
|
https://vndb.org/t12897.6
|
|
|
|
|
|
|
|
Introduced in caa61fc860b455ada9bf4f589f8d64307ce77314
|
|
Apparently the page background is not part of document.body.
|