Skip to content

Commit 94ab162

Browse files
committed
docs(website): 演示站文档新增公开令牌说明并去掉 URL 携带 token
Web 登录页不解析 URL 查询参数,导航栏链接携带 ?token= 无效;改为在中英文 Web 界面文档中给出演示令牌,说明需手动粘贴登录。
1 parent 1011ff9 commit 94ab162

3 files changed

Lines changed: 27 additions & 4 deletions

File tree

website/src/content/docs/en/headless-server/web-ui.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,18 @@ The login screen asks for a **server address** (pre-filled with the current orig
1313

1414
Checking **"Remember this device"** stores the token in `localStorage` (persists across browser restarts); leaving it unchecked stores it in `sessionStorage` (cleared when the tab closes). Nothing is ever sent anywhere except to the server itself.
1515

16+
### Trying the public demo
17+
18+
A public demo instance runs at [https://demo.zerx.dev/](https://demo.zerx.dev/). Sign in with this shared access token:
19+
20+
```
21+
fxd_bfc6b03e8e494ec8907415a2e8a0b21b
22+
```
23+
24+
You must paste the token into the **access token** field on the login screen — the Web UI does not read a token from the page URL, so appending `?token=...` to the address has no effect. Leave the server address as pre-filled.
25+
26+
The demo server runs in demo mode (`FLUXDOWN_DEMO`, see [Server Setup](/docs/en/headless-server/setup/)): only a built-in generated test file can be downloaded, and since the token is public, treat everything on it as visible to and modifiable by anyone.
27+
1628
<!-- TODO(screenshot): login screen with server address and token fields -->
1729

1830
## Main layout

website/src/content/docs/zh/headless-server/web-ui.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Web 界面
33
description: 用服务器自带的浏览器界面登录并管理下载。
44
section: headless-server
55
order: 2
6-
sourceHash: "326b42c89ecc"
6+
sourceHash: "50cbeb4cbb24"
77
---
88

99
服务器跑起来后(见[服务器部署](/docs/zh/headless-server/setup/)),在浏览器里打开它的地址即可,例如 `http://<host>:17800/`。它的任务管理体验与桌面客户端一致,只是为远程、多会话场景做了适配。
@@ -14,6 +14,18 @@ sourceHash: "326b42c89ecc"
1414

1515
勾选**"记住此设备"**会把 token 存进 `localStorage`(浏览器重启后依然有效);不勾选则存进 `sessionStorage`(关闭标签页即清除)。token 只会发给服务器本身,不会流向别处。
1616

17+
### 在线演示
18+
19+
公开演示站部署在 [https://demo.zerx.dev/](https://demo.zerx.dev/),使用以下共享访问令牌登录:
20+
21+
```
22+
fxd_bfc6b03e8e494ec8907415a2e8a0b21b
23+
```
24+
25+
需要把令牌手动粘贴到登录页的**访问令牌**输入框——Web 界面不会识别页面 URL 里携带的 token,在地址后面加 `?token=...` 不起作用。服务器地址保持预填值即可。
26+
27+
演示站运行在演示模式下(`FLUXDOWN_DEMO`,见[服务器部署](/docs/zh/headless-server/setup/)):只能下载内置生成的测试文件;由于令牌是公开的,站内的一切内容任何人都能看到和改动。
28+
1729
<!-- TODO(screenshot): 登录页,展示服务器地址与访问令牌输入框 -->
1830

1931
## 主界面三栏布局

website/src/lib/utils.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ export function cn(...inputs: ClassValue[]) {
88
/** FluxDown 开源仓库地址 */
99
export const GITHUB_REPO_URL = "https://github.com/zerx-lab/FluxDown";
1010

11-
/** Web 版演示站地址(带公开演示令牌,访客点开即自动登录) */
12-
export const DEMO_URL =
13-
"https://demo.zerx.dev/?token=fxd_bfc6b03e8e494ec8907415a2e8a0b21b";
11+
/** Web 版演示站地址(登录页不识别 URL 携带的 token,演示令牌见文档 /docs 的 Web 界面页) */
12+
export const DEMO_URL = "https://demo.zerx.dev/";

0 commit comments

Comments
 (0)