diff options
author | Vika <vika@fireburn.ru> | 2022-10-07 19:53:04 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2022-10-07 19:53:04 +0300 |
commit | 9f7b903901acb0cd6ec9cb2146406a92ebf79cab (patch) | |
tree | c7a45f69d2d59621365494dc2d3657848390b61d /kittybox-rs/templates/assets/jslicense.html | |
parent | 6cb479acc61ab19f655cedd878283b214e352a3d (diff) | |
download | kittybox-9f7b903901acb0cd6ec9cb2146406a92ebf79cab.tar.zst |
templates: move static assets to the templates crate
It makes more sense to keep CSS near the templates, and the client-side JavaScript code too, since it depends on the DOM structure to work. Additionally, the overhead of `include_dir!()` is almost completely mitigated by the fact that this is a separate crate that isn't recompiled often. The linking stage, however, is still expected to take a little bit long. But I doubt it'd be longer than what it was before, since it's the same exact files that get linked into the app.
Diffstat (limited to 'kittybox-rs/templates/assets/jslicense.html')
-rw-r--r-- | kittybox-rs/templates/assets/jslicense.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/kittybox-rs/templates/assets/jslicense.html b/kittybox-rs/templates/assets/jslicense.html new file mode 100644 index 0000000..90c681c --- /dev/null +++ b/kittybox-rs/templates/assets/jslicense.html @@ -0,0 +1,31 @@ +<!DOCTYPE html> +<html> + <head> + <title>JavaScript licensing information for Kittybox</title> + </head> + <body> + <p>All JavaScript included with Kittybox is licensed as free software, most of it under AGPL-3.0.</p> + <table id="jslicense-labels1"> + <tr> + <td><a href="/.kittybox/static/onboarding.js">onboarding.js</a></td> + <td><a href="http://www.gnu.org/licenses/agpl-3.0.html">AGPL-3.0</a></td> + <td><a href="https://git.sr.ht/~vikanezrimaya/kittybox/tree/main/item/kittybox-rs/javascript/src/onboarding.ts">onboarding.ts (Kittybox source code)</a></td> + </tr> + <tr> + <td><a href="/.kittybox/static/indieauth.js">indieauth.js</a></td> + <td><a href="http://www.gnu.org/licenses/agpl-3.0.html">AGPL-3.0</a></td> + <td><a href="https://git.sr.ht/~vikanezrimaya/kittybox/tree/main/item/kittybox-rs/javascript/src/indieauth.ts">indieauth.ts (Kittybox source code)</a></td> + </tr> + <tr> + <td><a href="/.kittybox/static/lib.js">lib.js</a></td> + <td><a href="http://www.gnu.org/licenses/agpl-3.0.html">AGPL-3.0</a></td> + <td><a href="https://git.sr.ht/~vikanezrimaya/kittybox/tree/main/item/kittybox-rs/javascript/src/lib.ts">lib.ts (Kittybox source code)</a></td> + </tr> + <tr> + <td><a href="/.kittybox/static/indieauth.js">indieauth.js</a></td> + <td><a href="http://www.gnu.org/licenses/agpl-3.0.html">AGPL-3.0</a></td> + <td><a href="https://git.sr.ht/~vikanezrimaya/kittybox/tree/main/item/kittybox-rs/javascript/src/indieauth.ts">indieauth.ts (Kittybox source code)</a></td> + </tr> + </table> + </body> +</html> |