about summary refs log tree commit diff
path: root/companion-lite/index.html
blob: f5e0bdb3de299b46022588a9d5428a28eb30a997 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
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>