pi-hub-server 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +51 -0
- package/README.md +49 -22
- package/bin/pi-hub.mjs +38 -29
- package/docs/AUTH.md +5 -5
- package/docs/PLUGIN-DEPS.md +57 -26
- package/package.json +1 -4
- package/src/help-text.mjs +3 -10
- package/src/lock-protocol.mjs +106 -0
- package/src/pi-session.mjs +38 -1
- package/src/server.mjs +72 -8
- package/src/session-lock-fallback.mjs +23 -19
- package/src/session-lock.mjs +98 -47
- package/src/sessions-index.mjs +122 -4
- package/src/static.mjs +2 -0
- package/web/app.js +93 -5
- package/web/compose.js +39 -0
- package/web/index.html +2 -1
package/web/index.html
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<section id="login" class="screen login" hidden>
|
|
25
25
|
<form id="login-form" class="login-card" autocomplete="off">
|
|
26
26
|
<h1>pi hub</h1>
|
|
27
|
-
<p class="hint">粘贴主机令牌(<code>pi-hub token</code> 可查看),或输入主机上 <code>pi-hub web
|
|
27
|
+
<p class="hint">粘贴主机令牌(<code>pi-hub token</code> 可查看),或输入主机上 <code>pi-hub web</code> 打印的一次性码。</p>
|
|
28
28
|
<p class="hint small">连不上?看<a href="/tutorial.html" target="_blank" rel="noopener">监听地址 / 端口 / 配对教程</a>(本机也能 <code>pi-hub tutorial</code> 打开)。</p>
|
|
29
29
|
<label class="field">
|
|
30
30
|
<span>令牌</span>
|
|
@@ -101,6 +101,7 @@
|
|
|
101
101
|
<input id="doc-input" type="file" hidden />
|
|
102
102
|
<span>📎</span>
|
|
103
103
|
</label>
|
|
104
|
+
<!-- 发送键永远在(F9):执行中也照样发,服务端自己排队 follow-up;停止键只在执行中出现 -->
|
|
104
105
|
<button id="btn-send" class="btn primary send" type="button">发送</button>
|
|
105
106
|
<button id="btn-stop" class="btn danger send" type="button" hidden>停止</button>
|
|
106
107
|
</div>
|