Add JS license information

This commit is contained in:
swaggboi 2024-06-26 01:08:31 -04:00
parent b1cbaceaa5
commit bbc12f2b4a
5 changed files with 38 additions and 0 deletions

View File

@ -147,6 +147,8 @@ sub startup($self) {
$r->get('/feeds')->to('page#feeds')->name('feeds_page'); $r->get('/feeds')->to('page#feeds')->name('feeds_page');
$r->get('/javascript')->to('page#javascript')->name('javascript_page');
# Not-so-static but I mean they're all 'pages' c'mon # Not-so-static but I mean they're all 'pages' c'mon
$human->get('/search')->to('page#search')->name('search_page'); $human->get('/search')->to('page#search')->name('search_page');

View File

@ -10,6 +10,8 @@ sub rules($self) { $self->render }
sub feeds($self) { $self->render } sub feeds($self) { $self->render }
sub javascript($self) { $self->render }
sub captcha($self) { sub captcha($self) {
my $v; my $v;

View File

@ -10,4 +10,7 @@ $t->get_ok('/rules')->status_is(200)->text_like(h2 => qr/The Rules/);
$t->get_ok('/feeds')->status_is(200)->text_like(h2 => qr/Feeds/); $t->get_ok('/feeds')->status_is(200)->text_like(h2 => qr/Feeds/);
$t->get_ok('/javascript')->status_is(200)
->text_like(h2 => qr/JavaScript License Information/);
done_testing; done_testing;

View File

@ -93,6 +93,9 @@
<%= content =%> <%= content =%>
<footer class="site-footer"> <footer class="site-footer">
<p>In UTF-8 we trust. 🫡</p> <p>In UTF-8 we trust. 🫡</p>
<p><%= link_to javascript_page =>
('data-jslicense', 1),
begin %>JavaScript License Information<% end %></p>
</footer> </footer>
</body> </body>
</html> </html>

View File

@ -0,0 +1,28 @@
% layout 'default';
% title 'JavaScript License Information';
% content_for open_graph => begin
<meta property="og:type" content="website">
<meta property="og:title" content="<%= title %>">
<meta
property="og:description"
content="Post::Text is a textboard a bit like 2channel. You can post whatever you want anonymously just please mind the rules."
>
% end
% content_for twitter_card => begin
<meta name="twitter:title" content="<%= title %>">
<meta
name="twitter:description"
content="Post::Text is a textboard a bit like 2channel. You can post whatever you want anonymously just please mind the rules."
>
% end
<h2 class="page-title"><%= title %></h2>
<main class="page-body">
<table id="jslicense-labels1">
<tr>
<td><%= link_to 'background.js', '/js/background.js' %></td>
<td><%= link_to 'http://www.gnu.org/licenses/gpl-3.0.html',
begin%>GNU General Public License 3.0 or later<% end %></td>
<td><%= link_to 'background.js', '/js/background.js' %></td>
</tr>
</table>
</main>