summaryrefslogtreecommitdiff
path: root/lib/VNDB/Util/LayoutHTML.pm
AgeCommit message (Collapse)AuthorFilesLines
2021-01-20v2rw: Rewrite done, time to clean up old v2 codeYorhel1-44/+0
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.
2021-01-17Use SASS for CSS + static asset reoganizationYorhel1-1/+1
Had been planning to use a more powerful preprocessor for CSS for a while, so that I can also reorganize and clean up the CSS a bit. The cleanup will come later, this is the first step to reorganize the build system a bit and remove skingen.pl. I moved all generated static assets to static/g/ (for _g_enerated), including icons.png and js files. This simplifies management of static/f/ and static/s/, which are fully in git. Skins are now defined as sass files in css/skins/ with their images in static/s/ using plain directory structure.
2021-01-04VNDB::Util::LayoutHTML: Fix reference to config params in old codeYorhel1-1/+2
Turns out I forgot something in 3fc190f1898342d63b1308a83152fe45a88f7c3f
2020-10-13notifications: Add subscribing for (un)applications of traitsYorhel1-0/+1
2020-05-29JS: Split v2rw.js into plain.js and elm.js, only include JS files when necessaryYorhel1-1/+0
The trace_log showed that the vast majority of pageviews do not need any Elm modules at all, so we can save a lot by not loading them on the page. Some pages (most notably: VN pages for not-logged-in visitors) do need JS but don't load any Elm modules. I've added a 'js' flag to HTML::framework_() to indicate that and ensure that plain.js is still loaded.
2019-12-24ulist: Add list management widget on VN pagesYorhel1-0/+2
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.
2019-10-10Fix noinxed tag on non-v2rw pagesYorhel1-0/+1
2019-09-17v2rw: Initial start on an incremental rewrite; Layout HTML firstYorhel1-174/+10
I copied and modified VN3::DB to VNWeb::DB, but it isn't used yet. Now that I think about it, that module isn't "web" specific at all and should perhaps be in the VNDB:: namespace. Oh well.
2019-09-17Clean up DB statistics displayYorhel1-6/+3
Present them in the same order as the main menu. Remove user and forum stats, they're pretty much irrelevant. The user count, in particular, is misleading - those aren't "active" users.
2019-09-12Add VNDB::Config module and unified conf.pl config fileYorhel1-3/+6
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...
2017-12-16Fix query debugging output with new TUWFYorhel1-4/+6
2017-01-21Don't omit metadata with a value of '0'flan1-1/+1
2017-01-19Add Open Graph tags for the main page and vrspcflan1-2/+20
2016-11-03Add duplicate check to producer entryYorhel1-4/+4
2016-01-20L10N: Intern all VNDB::Util::* stuffYorhel1-39/+45
With some related edits in other parts of the code, mostly due to interface changes to htmlRevision() and htmlFormError(). Trivial replacements were automated by a super awesome script.
2016-01-17L10N: Intern all Javascript strings and rename main JS fileYorhel1-1/+1
This has been mostly automated.
2016-01-16L10N: Remove all translationsYorhel1-5/+2
TODO: Intern strings again to simplify the code. The immediate effect of this commit is that starting the util/vndb.pl script and generating the JS file is much faster now and that vndb.pl uses less memory. Translations have already been disabled on the main VNDB for a week now.
2015-11-01Util::LayoutHTML: Suppress warning when $o{search} isn't definedYorhel1-1/+1
2015-11-01Use HTML5 'placeholder' attribute for main search boxYorhel1-1/+1
Instead of the JS hack.
2015-11-01Switch to HTML5 doctype + s/acronym/abbr/ + s/ / /eYorhel1-5/+2
I'd have preferred to stick with XHTML 1.0, but unfortunately browsers won't allow you to use modern Javascript APIs with an older doctype. Note that most pages don't actually validate correctly as HTML5, I'm relying on browsers to be lenient. In either case, I'd like VNDB to stay valid XML (XHTML5, then), and luckily that shouldn't be a problem.
2015-11-01Remove deprecated 'staffedit' permission flagYorhel1-3/+1
2015-09-20Use the new reqQuery() + update usage of reqPath() for TUWF 1.0Yorhel1-2/+1
2015-07-19Remove reliance on Referer header for the login formYorhel1-2/+5
2015-05-13Add staff statistic to main menuYorhel1-1/+1
2015-01-25staff: Add staff edit permission + alias layoutingmorkt1-1/+3
2014-12-22Initial implementation of a staff/seiyuu databasemorkt1-0/+2
2014-12-01Don't use inline script tag to pass pref_code to JSYorhel1-11/+4
This also simplifies the code a bit, as the value of the preference data was never used so doesn't need to be included now. Primary reason for this change is to work towards disabling inline JS with a CSP header. There's still more stuff to fix before the CSP header can be applied, though.
2014-10-21Use TUWF's reqBaseURI() instead of $self->{uri} on site linksYorhel1-1/+1
TUWF properly detects HTTPS and includes this in the returned URL, so this change ensures that all URLs adopt properly to HTTP and HTTPS.
2014-10-16Completely get rid of the old charedit perm flagYorhel1-2/+0
2014-08-29Strengthen formcode for non-logged-in visitors + CSRF protect login formYorhel1-14/+4
formcode is strengthened by including the IP (-prefix) into the hash, ensuring that the code can't be obtained by someone on a different network. I also removed the login form of every page. Felt kinda pointless.
2011-12-29Added duplicate check when adding VNsYorhel1-1/+1
2011-05-01Don't show some contribute links when you can't contributeYorhel1-3/+7
2011-04-30Replaced user ranks with a permission systemYorhel1-1/+0
This is far more flexible.
2011-04-08Added char/tag/trait stats to database statistics boxYorhel1-1/+1
2011-03-20chardb: Added character link to main menu + improved organisationYorhel1-2/+3
2011-03-19chardb: Added 'Add character' linkYorhel1-0/+1
2011-02-14chardb: Added trait index and searchYorhel1-0/+1
2011-02-03TUWF: Replaced reqParam() with reqGet() or reqPost() where applicableYorhel1-1/+1
Cleaner this way. Also found two occurences of manually HTML-escaping text for textareas, which isn't necessary anymore.
2011-01-27TUWF: Added tag name to several end() callsYorhel1-6/+6
Haven't found any bugs this way, yet. I doubt there'll be any problems, but it's a nice new feature that could help quite a bit. :-D
2011-01-27TUWF: Replaced ugly html() redefine hack with the new html() optionsYorhel1-2/+6
2011-01-25TUWF: Initial convert from YAWF to TUWFYorhel1-3/+4
There may still be some bugs present and I've only converted the points where TUWF is incompatible with YAWF. The new TUWF features are not in use yet, I'll do that later on. Note that, in order to run the new code, TUWF must be installed on your system. The configuration for the TransAdmin plugin has also changed. Other than that there shouldn't be any issues.
2011-01-01More infrastructural changes to accomodate for the permanent filtersYorhel1-2/+13
- Added a 'prefs' option to htmlFooter() to add preference data for use by Javascript. - Added an /xml/prefs.xml URL for setting preferences from JS. - Added 'filter_*' keys to the prefs_key ENUM - Load filters by default on VN and Release browser
2010-12-23Added users_prefs table and removed users.(skin|customcss)Yorhel1-3/+3
Will convert the other preferences later.
2010-12-19Added tab and link for /u+/votes to user tabs & main menuYorhel1-0/+1
2010-12-13Removed /u+/tags and replaced/added links to /g/links?u=XYorhel1-1/+1
The new tag link browser has replaced the crappy old user-tags-browser.
2010-11-25JS: Split script.js into a separate file for each languageYorhel1-1/+1
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!
2010-11-13Added <link> elements for the related atom feeds to some pagesYorhel1-1/+3
2010-11-06URL change: /u/logout => /u$id/logoutYorhel1-1/+1
Also fixes a cross-site request forgery vulnerability. Not as strong as the others but it's not very crucial anyway.
2010-02-05Merge branch 'master' into betaYorhel1-3/+3
Conflicts: data/lang.txt
2010-02-01Made the "My notifications" link less easier to ignore when n>0Yorhel1-2/+1