Age | Commit message (Collapse) | Author | Files | Lines |
|
This greatly reduces the size of the Javascript file. The compressed
size has been reduced with about 9kB, and is now a total of 14kB for
en.js. A nice property of this is that more translations can be added
without increasing the JS size.
While I was at it, I made jsgen.pl also replace mt() function calls in
cases where an exact TL string was requested without any additional
arguments and/or formatting codes. This helped reduce the compressed
size by about 1kB.
My aim is to keep *all* the JS code of VNDB smaller than the jQuery core
library, as a general "fuck you" towards users of large and bloated JS
libraries. We must keep the VNDB page loading times lower than that of
other sites, after all!
|
|
Rather than trying to figure out what to update in the Perl code,
duplicating the logic that's already present in the Makefile.
This is only enabled when 'regen_static' is set to true in
data/config.pl.
|
|
This effectively reverts 799c9e44b1a1a7776609273733f67887a74e33bf.
|
|
Doesn't look very nice; but serves its purpose.
|
|
|
|
It seems a comma has to be escaped in query string values. A ~ doesn't
and thus makes the URIs significantly shorter.
|
|
There's no validation of the filter string yet, and somehow I don't feel
like adding that; it's a lot of code and there's nothing to protect -
the values are inserted using parameters into a SELECT query, the worst
thing that could happen is the user receiving a 500.
Also, I've started using the perl '//=' operator, which was added in
5.10. This removes support for older perls.
|
|
This isn't entirely functional yet, the server side will need to be
rewritten as well. And after that new filters should be added and this
system should also be used for VN/producer search.
script.js is getting quite large with all those new translation strings,
it may be an idea to generate a separate .js file for each language and
only load the one being used.
I won't have a valid reason to feel bored anytime soon, at least...
|
|
This also gets rid of three perl warnings.
|
|
|
|
|
|
TODO: add links to these feeds from the site
|
|
It's an awesome feature now. :-)
|
|
A nice expanded view. It also happens to be faster than the old view in
terms of SQL queries. (In most cases at least)
Can be improved a little more by:
- Adding an 'expand/collapse' feature to list only the VNs
- Adding a column indicating the role of the producer (dev/pub)
|
|
|
|
|
|
This is the first part. The flag is stored in the database, can be
edited through the usual VN edit form, and is displayed in the diff
viewer.
Things to do to make this feature fully functional:
- display "official" status on VN page at the relation listing
- update relation graphs to display unofficial relations differently
- update guidelines
|
|
Not very useful, anyway.
|
|
|
|
Just a simple question.
|
|
|
|
|
|
|
|
Conflicts:
lib/VNDB/DB/VN.pm
lib/VNDB/Func.pm
|
|
|
|
|
|
|
|
|
|
This makes jsgen.pl a bit easier to maintain, as there's not one
reliable source to get the keys from (namely, the JS code itself).
Also cleaned up the l10n() function in jsgen.pl to be more readable.
I had expected the new .js file to be smaller because this trick may
remove some keys that were previously present but unused. Unfortunately
it seems the file only grew a bit larger and compression seems to be
less effective now. No idea why this happened. :-(
|
|
This replaces the "cookie_auth" setting, and applies to all cookies in
use by VNDB.
|
|
As those may also be useful for other scripts.
|
|
Was growing too large and isn't really necessary anymore, now that VNDB
is indexed quite well in most search engines.
|
|
And changed the order a bit, as suggested by ImmLff.
|
|
|
|
This prevents vim from using syntax highlighting on the file, which you
really don't want for two reasons:
- There are no syntax files for lang.txt
- The file is huge and syntax highlighting is slow
(vim thought it was an asciidoc file...)
|
|
Should have done this in 25aa82f5e15115e58d91ecb09d5f0da75ccba354
but I'm not used to working on VNDB anymore after such a long period of
non-VNDB. >.>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Now it's finally possible to run multiple VNDB's with different
databases on the same domain without constantly getting logged out.
|
|
|
|
The BG image would disappear when there is an HTML element with a
negative positioning. Replaced the negative positioning with a
display: hidden.
|
|
|
|
This makes sure that these also get forced reloaded on a version change.
|
|
|
|
|