summaryrefslogtreecommitdiff
path: root/data
AgeCommit message (Collapse)AuthorFilesLines
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 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)
2019-09-24Add language: Scottish GaelicYorhel1-0/+0
2019-09-23Add 4 new languagesYorhel4-0/+0
https://vndb.org/t12897.6
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.
2019-09-16CSS: Increase font size a bit (again)Yorhel1-29/+29
Last time was a year ago: 14517ba2caaef7146044454b6dd2ce00e809261a
2019-09-14CSS: Fix wrapping of some columns in release listingsYorhel1-6/+6
2019-09-12Add VNDB::Config module and unified conf.pl config fileYorhel4-174/+41
This gets rid of global.pl, config.pl and config3.pl and uses the cleaner config3.pl format for the config file. The config is easily accessible from anywhere by importing the new VNDB::Config module; The global $VNDB::S,O,M,ROOT variables have been removed. Sorry for all the churn...
2019-09-12VNDB::Types: Convert medium & resolutionYorhel1-34/+0
2019-09-12VNDB::Types: Convert age_rating and release_typeYorhel1-2/+0
2019-09-12VNDB::Types: Convert animated & voicedYorhel1-5/+0
2019-09-12VNDB::Types: Convert discussion_boards to %BOARD_TYPEYorhel1-12/+0
2019-09-12VNDB::Types: Convert producer_typesYorhel1-5/+0
2019-09-11VNDB::Types: Convert vn_lengths, anime_types and tag_categoriesYorhel1-23/+0
2019-09-11VNDB::Types: Convert char_roles, blood_types and gendersYorhel1-8/+0
2019-09-11VNDB::Types: Convert (wishlist|rlist|vnlist)_statusYorhel2-7/+4
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...
2019-09-11VNDB::Types: Convert vn_relations and prod_relationsYorhel1-23/+0
2019-09-11VNDB::Types: Convert platforms into %PLATFORMYorhel1-40/+0
2019-09-11VNDB::Types: Convert languages into %LANGUAGEYorhel1-36/+0
2019-09-11VNDB::Types: Convert staff_roles into %CREDIT_TYPEYorhel3-11/+2
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.
2019-09-11Cleanup + simplify setup instructions in READMEYorhel1-19/+0
2019-09-09spritegen.pl: Move compression to "make prod"Yorhel1-7/+0
I think this is the last one. 'make' in a development environment is now beautifully fast and 'make prod' generates nicely small assets. (arguably we could have an even faster dev setup by not generating an icons.png in the first place, but then we'd need more code to differentiate between dev & prod, which is also a pain) This change does remove the "slow" option that would use the compressed image size in the optimization algorithm, but I hadn't used that option for a while anyway, it takes an hour and only saves about 100 bytes.
2019-09-09JS/Build: Move minification and compression to "make prod"Yorhel1-7/+0
Similar to previous commit.
2019-09-09CSS/Build: Move minification and compression to "make prod"Yorhel1-1/+1
This rather significantly speeds up development builds. Also simplifies skingen.pl and its config a bit. The new compressed files are written to /s/*/style.min.css{,.gz}, it is up to the web server to serve those instead of /s/*/style.css.
2019-09-09CSS: Get rid of boxbg.png and Image::Magick dep in skingen.plYorhel1-20/+20
Should improve page loading time, reduce server load and speed up CSS generation by a totally insignificant amount. I did run into some trouble with the removal of boxbg.png, because apparently there was something magical about that image that made browsers render it in a different color than the one specified upon creation. I've adjusted the boxbg color of the 'angel' skin accordingly, but other skins may also have a slight color difference with this change. Some details are at http://s.blicky.net/19/colortest.html
2019-09-03Remove old notes, these are not updated and thus not usefulYorhel8-1076/+0
They're interesting from a historical perspective, but that's what a git history is for. They're no substitute for actual documentation.
2019-08-26Add release links dropdown to VN pagesYorhel2-0/+21
As suggested in https://vndb.org/t12755.15 - although this implementation is a little bit quirky.
2019-08-26Display shop+price info on VN pages + delete old affiliate codeYorhel3-23/+2
The current affiliate links format doesn't display as much information as before but it's also a lot less messy.
2019-08-26Display PlayAsia links on release pages + use crawled info to correct shop linksYorhel1-3/+4
2019-08-24Add DenpaSoft price info crawlerYorhel1-0/+1
2019-08-24Add MangaGamer price info crawlerYorhel1-0/+1
2019-08-24Add J-List price info crawlerYorhel1-0/+1
2019-08-21Make some shop URLs configurableYorhel1-0/+5
This allows for easy insertion of affiliate referral tag.
2019-08-15Add engine autocompletion to release filtersYorhel1-1/+15
2019-08-09Replace Wikipedia links with Wikidata IDsYorhel1-0/+1
+ Automatically fetch other links from Wikidata
2019-07-25Merge the v3 branch into separate namespace + fix Docker stuff (again)Yorhel1-0/+26
I was getting tired of having to keep two branches up-to-date with the latest developments, so decided to throw v3 into the same branch - just different files (...which will get mostly rewritten again soon). The two versions aren't very different in terms of dependencies, build system and support code, so they can now properly share files. Added a section to the README to avoid confusion. This merge also makes it easier to quickly switch between the different versions, which is handy for development. It's even possible to run both at the same time, but my scripts use the same port so that needs a workaround. And it's amazing how often I break the Docker scripts.
2019-07-22Move votes/traits/tags exports to dbdump.pl; Get rid of Multi::APIDumpYorhel1-1/+0
This provides more control over when the dumps are being made and makes it easier to generate quick dumps for debugging.
2019-07-20d17 now includes some licensing stuffYorhel1-1/+1
2019-07-17Docker: Store Postgres DB in data/ + simplify the setup a bitYorhel1-1/+1
I initially wanted to move the static/.. files onto the Docker volume, so that all dynamic site data is stored in a single place. But that turned out to be impossible to do without some really ugly hacks. So instead I went with the opposite approach: get rid of the 'vndb-data' volume and instead store everything in the source directory. This also requires running PostgreSQL as the 'devuser', but that's fine for a development setup. All of this makes it more obvious what is going on and simplifies the init script.
2019-07-15Add engine field to releasesYorhel3-1/+42
Fixes #4.
2019-07-15Increase maximum number of tags/traits/producers/staff in filtersYorhel1-3/+3
Fixes https://vndb.org/t12602.20
2019-07-14iv.js: Fix closing of overlay when clicking on it or the resolution linkYorhel1-1/+1
2019-07-13iv.js improvements: Close window when clicking on page + arrow key supportYorhel1-1/+15
This is some ugly JS, but it'll do.
2019-07-08Add Producer/Staff/Seiyuu filters to Release/VN/Char filtersYorhel1-36/+97
This also abstracts and changes the tag/trait filter selection interface a little bit. Non-searchable tags/traits are now simply not listed anymore in the dropdown search.
2019-06-28VNBrowse: Add character filtersYorhel1-2/+4
This is a bit experimental, not sure how the performance is going to be.
2019-06-26Traits: Split "meta" field into "searchable" and "applicable"Yorhel1-3/+3
2019-06-26Tags: Split "meta" field into "searchable" and "applicable"Yorhel2-8/+8
As discussed in https://vndb.org/t12507 TODO: - Same conversion for traits - Re-add mod ability to delete all votes for a particular tag?