Age | Commit message (Collapse) | Author | Files | Lines |
|
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.
|
|
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.
|
|
|
|
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.
|
|
The resolution field now works much like the engine field.
|
|
There's a lot of unused code in VNDB::DB::{VN,Release} still, but I'll
not fiddle with that for now.
|
|
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.
|
|
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
|
|
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.
|
|
https://vndb.org/t2520.283
|
|
https://vndb.org/t950.610
|
|
|
|
|
|
|
|
|
|
|
|
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...
|
|
|
|
|
|
|
|
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.
|
|
|
|
https://vndb.org/t12755.28
|
|
|
|
As suggested in https://vndb.org/t12755.15 - although this
implementation is a little bit quirky.
|
|
The current affiliate links format doesn't display as much information
as before but it's also a lot less messy.
|
|
|
|
+ Automatically fetch other links from Wikidata
|
|
|
|
The previous code would assume that these tags did not have any votes,
but that assumption doesn't necessarily hold anymore.
|
|
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
|
|
Not sure why I hadn't fixed this several years ago already, the random
ordering has bothering me for at least that long.
|
|
|
|
|
|
|
|
(cherry picked from commit 6446d7d185543440b97be009fdf2a1f0c379b26f)
|
|
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
|
|
|
|
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.
|
|
https://vndb.org/t950.512
|
|
Icon created by fuukanou: https://vndb.org/t10665.49
File size reduced a bit further by removing metadata and using scour
Closes #3
|
|
https://vndb.org/t950.416
|