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.
|
|
|
|
Moved old release browser, VN browser and tag pages to /old/, moved
/experimental/ pages to /, removed warnings and updated some references.
|
|
|
|
It's the only Elm module used on VN pages for not-logged-in visitors, so
doing this in CSS makes it possible to not load an Elm bundle on those
pages (when I get to splitting up the JS files).
This solution also simplifies code reuse with the producer pages, but a
v2rw migration of that page would have taken care of that as well.
|
|
So that I can now work on adding a few more fields.
|
|
Not totally super happy with this solution; I'd rather automatically
create an empty entry and send that to 'RelEdit.Main', but initializing
all fields in Perl is tricky. At least in Elm we get some sort of type
checking (though Elm can't tell whether the default value makes sense)
and doing this in Elm makes it possible to initialize to something
invalid that the user has to change (not currently done yet).
It's messy either way.
|
|
The new form does change a few things to the UI, so I'll keep the old
form around for a while so that people have something to fallback to
when it doesn't work (like, right now).
I'm also doing this rewrite in multiple commits as it's a pretty large
change.
|
|
This removes the user list management functionality, I'll reimplement
those in a bit.
|
|
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
|
|
https://vndb.org/t950.634
|
|
Turns out dropdownsearch.js can't handle the '0' id.
|
|
https://vndb.org/t12613.41
|
|
|
|
|
|
|
|
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...
|
|
|
|
|
|
To handle https://vndb.org/t12755.37
|
|
|
|
|
|
https://vndb.org/t12755.31
|
|
https://vndb.org/t12755.28
|
|
|
|
|
|
A rather common mistake made by people who don't read.
|
|
It's redundant, and normalization is actually easier when removed.
|
|
|
|
This allows for easy insertion of affiliate referral tag.
|
|
Full URL, because DMM has too many little sub-shops, and handling them
all is a pain. I assume for now that a release is only in a single DMM
shop.
|
|
|
|
MG has an all-ages section at / and an adult section at /r18/, but the
adult section includes everything, so we'll just link to that. Maybe
I'll write a bot that figures out the correct link, but it's not
something we have to bother our users with.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Fixes #4.
|
|
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.
|
|
As discussed in https://vndb.org/t10665
|
|
There's still a glitch that, when a character is linked to a deleted
release, the release selection will not show up in the form. But that's
much easier to work around.
|