Try this again...

This commit is contained in:
swaggboi 2024-06-25 13:08:13 -04:00
parent f9149361cf
commit e3155fad7b
9 changed files with 4 additions and 25 deletions

View File

@ -2,7 +2,6 @@ FROM docker.io/perl:5.36
# Move it # Move it
WORKDIR /opt WORKDIR /opt
COPY assets/ ./assets/
COPY lib/ ./lib/ COPY lib/ ./lib/
COPY migrations/ ./migrations/ COPY migrations/ ./migrations/
COPY public/ ./public/ COPY public/ ./public/
@ -17,7 +16,7 @@ RUN apt-get update
RUN apt-get -y upgrade RUN apt-get -y upgrade
# Work around for test failing due to headers being lowercase now that # Work around for test failing due to headers being lowercase now that
# cpan.org is on HTTP/2 # cpan.org is on HTTP/2
RUN cpanm --notest Net::HTTP #RUN cpanm --notest Net::HTTP
RUN cpanm --installdeps . RUN cpanm --installdeps .
# Finish setting up the environment # Finish setting up the environment

View File

@ -1,12 +0,0 @@
[css-min:css/PostText.css]
checksum=3698d7bf52
format=css
minified=1
[css-min:https://unpkg.com/98.css]
checksum=4f089bc53f
format=css
minified=1
[sass:sass/post_text.scss]
checksum=ecda188939
format=css
minified=0

View File

@ -1,5 +0,0 @@
! app.css
< https://unpkg.com/normalize.css@8.0.1/normalize.css
< css/elements.css
< css/simple.css
< css/nested.css

View File

@ -1,11 +1,9 @@
requires 'Mojolicious'; requires 'Mojolicious';
requires 'Mojo::Pg'; requires 'Mojo::Pg';
requires 'Mojolicious::Plugin::TagHelpers::Pagination'; requires 'Mojolicious::Plugin::TagHelpers::Pagination';
requires 'Mojolicious::Plugin::AssetPack';
requires 'Crypt::Passphrase::Argon2'; requires 'Crypt::Passphrase::Argon2';
requires 'Date::Format'; requires 'Date::Format';
requires 'XML::RSS'; requires 'XML::RSS';
requires 'CSS::Minifier::XS';
requires 'Text::Markdown'; requires 'Text::Markdown';
requires 'HTML::Restrict'; requires 'HTML::Restrict';
requires 'IO::Socket::SSL'; requires 'IO::Socket::SSL';

View File

@ -18,7 +18,6 @@ use PostText::Model::Page;
sub startup($self) { sub startup($self) {
$self->plugin('Config'); $self->plugin('Config');
$self->plugin('TagHelpers::Pagination'); $self->plugin('TagHelpers::Pagination');
$self->plugin(AssetPack => {pipes => [qw{Css Combine}]});
# Helpers # Helpers
$self->helper(pg => sub ($c) { $self->helper(pg => sub ($c) {
@ -108,8 +107,6 @@ sub startup($self) {
$self->thread->max_pages($max_thread_pages) $self->thread->max_pages($max_thread_pages)
} }
$self->asset->process;
push @{$self->commands->namespaces}, 'PostText::Command'; push @{$self->commands->namespaces}, 'PostText::Command';
# Begin routing # Begin routing

View File

@ -29,7 +29,9 @@
content="<%= url_for('/images/logo.png')->to_abs %>"> content="<%= url_for('/images/logo.png')->to_abs %>">
<meta name="twitter:image:alt" <meta name="twitter:image:alt"
content="Post::Text logo; a small nerdy anime girl giving a V sign"> content="Post::Text logo; a small nerdy anime girl giving a V sign">
<%= asset 'app.css' %> <%= stylesheet '/css/elements.css' %>
<%= stylesheet '/css/simple.css' %>
<%= stylesheet '/css/nested.css' %>
</head> </head>
<body> <body>
<header class="header"> <header class="header">