diff options
author | Vika <vika@fireburn.ru> | 2023-07-29 21:59:56 +0300 |
---|---|---|
committer | Vika <vika@fireburn.ru> | 2023-07-29 21:59:56 +0300 |
commit | 0617663b249f9ca488e5de652108b17d67fbaf45 (patch) | |
tree | 11564b6c8fa37bf9203a0a4cc1c4e9cc088cb1a5 /companion-lite/index.html | |
parent | 26c2b79f6a6380ae3224e9309b9f3352f5717bd7 (diff) | |
download | kittybox-0617663b249f9ca488e5de652108b17d67fbaf45.tar.zst |
Moved the entire Kittybox tree into the root
Diffstat (limited to 'companion-lite/index.html')
-rw-r--r-- | companion-lite/index.html | 127 |
1 files changed, 127 insertions, 0 deletions
diff --git a/companion-lite/index.html b/companion-lite/index.html new file mode 100644 index 0000000..fc99c60 --- /dev/null +++ b/companion-lite/index.html @@ -0,0 +1,127 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <title>Kittybox-Micropub debug client</title> + <link rel="stylesheet" href="./style.css"> + <script type="module" src="./main.js"></script> + <link rel="jslicense" href="#jslicense"> + </head> + <body> + <noscript> + <h1 class="header">Kittybox Companion (Lite)</h1> + <p>I'm sorry, Kittybox Companion requires JavaScript to work.</p> + + <p>This is a requirement due to multiple interactive features present in Kittybox, such as support for multiple-entry form fields, interactive login sequence and more.</p> + + <p>However, the Micropub standard is extremely flexible, and if you happen to have a token, you can publish articles, notes, likes, follows and more by sending requests directly to the Micropub endpoint.</p> + + <p><a href="https://micropub.spec.indieweb.org/">The Micropub spec is defined here.</a> Good luck!</p> + </noscript> + + <div class="view" id="unauthorized" style="display:none"> + <form action="#" id="indieauth"> + <label for="me">Your website URL:</label> + <input id="me" name="me" type="url"> + <input type="submit"> + </form> + </div> + + <div class="view" id="authorizing" style="display:none"> + <p>Performing the authorization dance...</p> + </div> + + <div class="view" id="authorized" style="display:none"> + <form action="/.kittybox/micropub" method="POST" id="micropub"> + <fieldset> + <legend>Post details:</legend> + <section> + <label for="name">Name (leave blank for an unnamed post):</label> + <input id="name" type="text"> + </section> + <section> + <label for="content">Content:</label> + <textarea id="content" placeholder="Your post's text goes here"></textarea> + </section> + <section> + <label for="category">Categories (separeted by commas):</label> + <input id="category" type="text"> + </section> + <fieldset> + <legend>Channels</legend> + <section> + <input type="radio" id="no_channel" name="channel_select" checked value=""> + <label for="no_channel">Default channel only</label> + </section> + + <section> + <input type="radio" id="select_channels" name="channel_select" value="on"> + <label for="select_channels">Select channels manually</label> + </section> + + <fieldset id="channels" style="display: none"> + <legend>Available channels:</legend> + <template id="channel_selector"> + <section> + <input type="checkbox" name="channel" id="" value=""> + <label for=""></label> + </section> + </template> + <div id="channels_target"></div> + </fieldset> + </fieldset> + </fieldset> + <input type="submit"> + </form> + </div> + + <details id="jslicense"> + <summary>JavaScript licensing information for this software</summary> + <table id="jslicense-labels1"> + <tr> + <td><a href="/.kittybox/micropub/client/main.js">main.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/companion-lite/src/main.ts">main.ts (Kittybox source code)</a></td> + </tr> + <tr> + <td><a href="/.kittybox/micropub/client/micropub_api.js">micropub_api.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/companion-lite/src/micropub_api.ts">micropub_api.ts (Kittybox source code)</a></td> + </tr> + <tr> + <td><a href="/.kittybox/micropub/client/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/companion-lite/src/indieauth.ts">indieauth.ts (Kittybox source code)</a></td> + </tr> + <tr> + <td><a href="/.kittybox/micropub/client/base64.js">base64.js</a></td> + <td><a href="http://creativecommons.org/publicdomain/zero/1.0/legalcode">CC0 (Public Domain)</a></td> + <td><a href="https://git.sr.ht/~vikanezrimaya/kittybox/tree/main/item/kittybox-rs/companion-lite/src/base64.ts">base64.ts</a>, adapted from <a href="https://developer.mozilla.org/en-US/docs/Glossary/Base64#solution_2_%E2%80%93_rewriting_atob_and_btoa_using_typedarrays_and_utf-8">MDN page on Base64</a></td> + </tr> + <tr> + <td><a href="https://esm.sh/microformats-parser@1.4.1?pin=v96">ESM.sh entrypoint for microformats-parser</a></td> + <td><a href="http://www.jclark.com/xml/copying.txt">MIT/Expat</a></td> + <td><a href="https://github.com/ije/esm.sh/blob/main/server/handler.go">esm.sh source code</a> + </tr> + <tr> + <td><a href="https://esm.sh/v96/microformats-parser@1.4.1/es2022/microformats-parser.js">microformats-parser</a></td> + <td><a href="http://www.jclark.com/xml/copying.txt">MIT/Expat</a></td> + <td><a href="https://github.com/microformats/microformats-parser">GitHub repository</a> + </tr> + <tr> + <td><a href="https://esm.sh/v96/parse5@6.0.1/es2022/parse5.js">parse5</a></td> + <td> + <a href="http://www.jclark.com/xml/copying.txt">MIT/Expat</a> + <br> + <a href="http://www.freebsd.org/copyright/freebsd-license.html">BSD-2-Clause</a> + </td> + <td> + <a href="https://github.com/inikulin/parse5">GitHub repository for parse5</a> + <br> + <a href="https://github.com/fb55/entities">GitHub repository for entitites</a>, a parse5 dependency + </td> + </tr> + </table> + </details> + </body> +</html> |