I have to go to bed now

This commit is contained in:
swag 2023-06-14 01:25:55 -04:00
parent 25f3844184
commit a8bb0049d3
3 changed files with 15 additions and 2 deletions

13
assets/js/captcha.js Normal file
View File

@ -0,0 +1,13 @@
/*
'use strict';
document.getElementById('captcha').value =
*/
'use strict';
let captchaValue =
document
.querySelector('label[for="captcha"]')
.textContent
.match(/'(flag|bump)'/)[1];

View File

@ -4,10 +4,10 @@ requires 'Mojolicious::Plugin::TagHelpers::Pagination';
requires 'Mojolicious::Plugin::AssetPack';
requires 'Crypt::Passphrase::Argon2';
requires 'Crypt::Passphrase::Bcrypt'; # Needed for old passphrases
#requires 'Perl::Critic::Community';
requires 'Date::Format';
requires 'XML::RSS';
requires 'CSS::Minifier::XS';
requires 'Text::Markdown';
requires 'HTML::Restrict';
requires 'IO::Socket::SSL';
requires 'JavaScript::Minifier::XS';

View File

@ -16,7 +16,7 @@ use PostText::Model::Moderator;
sub startup($self) {
$self->plugin('Config');
$self->plugin('TagHelpers::Pagination');
$self->plugin(AssetPack => {pipes => [qw{Css Combine}]});
$self->plugin(AssetPack => {pipes => [qw{Css JavaScript Combine}]});
# Helpers
$self->helper(pg => sub ($c) {