forked from boos/BoosAPI
feat: add sorting and pinning functionality for accounts and sites
- Introduced `isPinned` and `sortOrder` fields in the `accounts` and `sites` tables to allow users to pin and sort their accounts and sites. - Updated API routes to handle pinning and sorting operations for accounts and sites. - Enhanced the frontend to support sorting by balance and custom order, as well as toggling the pin status of accounts and sites. - Added tests for sorting and reordering logic to ensure correct functionality. - Updated documentation to reflect changes in token management and new features.
This commit is contained in:
@@ -43,7 +43,9 @@ services:
|
||||
### 3. 设置令牌并启动
|
||||
|
||||
```bash
|
||||
# AUTH_TOKEN = 管理后台初始管理员令牌(登录后台时输入这个值)
|
||||
export AUTH_TOKEN=your-admin-token
|
||||
# PROXY_TOKEN = 下游客户端调用 /v1/* 使用的令牌
|
||||
export PROXY_TOKEN=your-proxy-sk-token
|
||||
docker compose up -d
|
||||
```
|
||||
@@ -52,6 +54,11 @@ docker compose up -d
|
||||
|
||||
打开 `http://localhost:4000`,使用 `AUTH_TOKEN` 的值登录。
|
||||
|
||||
> [!TIP]
|
||||
> 初始管理员令牌就是启动时配置的 `AUTH_TOKEN`。
|
||||
> 如果未显式设置(非 Compose 场景),默认值为 `change-me-admin-token`(仅建议本地调试)。
|
||||
> 若你在后台「设置」里修改过管理员令牌,后续登录请使用新令牌。
|
||||
|
||||
## 方式二:本地开发启动
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user