diff --git a/README.md b/README.md index bbfe30a..06537c5 100644 --- a/README.md +++ b/README.md @@ -93,6 +93,8 @@ scope,全在 can-api 的 `internal/oauth/registry.go`。应用名称去除首 1–120 个 UTF-8 字节;`invalid_name` 显示四语言提示,`name_reserved` 和其他错误 仍显示上游 `message`。前端不重复校验。 +应用注册和编辑表单可选 `flightplan` 权限,用于读取、提交和撤销飞行计划,以及管理 SimBrief 关联和导入。 + **停用和启用走独立端点。** 应用卡片发送 `POST /api/clients/{id}/disabled`,服务端转到 can-api 的 `POST /api/v1/dev/clients/{id}/disabled`。请求体的 `disabled` 是必填布尔值; diff --git a/language/en-us.json b/language/en-us.json index 486ab2a..52bb1c8 100644 --- a/language/en-us.json +++ b/language/en-us.json @@ -334,6 +334,10 @@ "title": "Controlling records", "detail": "Positions, durations, rating changes." }, + "flightplan": { + "title": "Manage flight plans", + "detail": "Read, file, and cancel a member’s flight plan. Link or unlink their SimBrief account and import plans from it." + }, "offline_access": { "title": "Offline access", "detail": "Keeps working after the member closes the browser, until they revoke it. Do not ask for it unless you are sure." diff --git a/language/ja-jp.json b/language/ja-jp.json index 4a5290a..f9cdd14 100644 --- a/language/ja-jp.json +++ b/language/ja-jp.json @@ -334,6 +334,10 @@ "title": "管制記録", "detail": "ポジション、時間、レーティングの変更。" }, + "flightplan": { + "title": "フライトプランの管理", + "detail": "メンバーのフライトプランを取得、提出、取り消しできます。SimBrief アカウントの連携・解除や、プランの取り込みもできます。" + }, "offline_access": { "title": "オフラインアクセス", "detail": "メンバーがブラウザーを閉じたあとも、取り消されるまでアクセスできます。確信がなければ要求しないでください。" diff --git a/language/zh-cn.json b/language/zh-cn.json index c5ca343..5a88c94 100644 --- a/language/zh-cn.json +++ b/language/zh-cn.json @@ -334,6 +334,10 @@ "title": "管制记录", "detail": "席位、时长、等级变化。" }, + "flightplan": { + "title": "管理飞行计划", + "detail": "读取、提交和撤销成员的飞行计划,绑定或解绑 SimBrief 账号,并从中导入计划。" + }, "offline_access": { "title": "离线访问", "detail": "成员关掉浏览器后仍可访问,直到他撤销。没有把握就别要。" diff --git a/language/zh-tw.json b/language/zh-tw.json index 2495035..f783148 100644 --- a/language/zh-tw.json +++ b/language/zh-tw.json @@ -334,6 +334,10 @@ "title": "管制紀錄", "detail": "席位、時長、等級變化。" }, + "flightplan": { + "title": "管理飛航計畫", + "detail": "讀取、提交及撤銷成員的飛航計畫,連結或解除連結其 SimBrief 帳號,並從中匯入計畫。" + }, "offline_access": { "title": "離線存取", "detail": "成員關掉瀏覽器後仍可存取,直到他撤銷。沒有把握就別要。" diff --git a/src/pages/apps/index.astro b/src/pages/apps/index.astro index d79cefb..a043093 100644 --- a/src/pages/apps/index.astro +++ b/src/pages/apps/index.astro @@ -46,6 +46,7 @@ const SCOPE_NAMES = [ "divisions", "flights:read", "atc:read", + "flightplan", "offline_access", ] as const;