1
0
Fork 0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2026-03-02 02:31:35 +00:00

Add JavaScript licenses page

This commit is contained in:
Cadence Ember 2021-04-16 16:31:54 +12:00
parent 998bd3d7cb
commit 6f8e03e506
No known key found for this signature in database
GPG key ID: BC1C2C61CF521B17
7 changed files with 46 additions and 1 deletions

View file

@ -43,4 +43,4 @@ html
h3.footer__colhead About
ul.footer__list
li: a(href="/privacy") Privacy policy
// li: a(href="/js-licenses") JavaScript licenses
li: a(href="/js-licenses" data-jslicense=1) JavaScript licenses

22
pug/js-licenses.pug Normal file
View file

@ -0,0 +1,22 @@
extends includes/layout.pug
block head
title JavaScript license information
block content
main.js-licenses-page
h1 JavaScript license information
table#jslicense-labels1
thead
tr
th(scope="col") File
th(scope="col") License
th(scope="col") Source
tbody
each path of static.keys()
if path.match(/^html\/static\/js\/.*\.js$/)
- const file = path.replace(/^html/, "")
tr
td: a(href=file)= file
td: a(href="http://www.gnu.org/licenses/agpl-3.0.html") GNU-AGPL-3.0-or-later
td: a(href=file)= file