dsh-perm-gate 4.1.0-beta.1 → 4.1.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/lib/client.js CHANGED
@@ -147,20 +147,20 @@ window.__ModuleLoader__.load({
147
147
  "card.dryRunNoRules": "(当前加载了 0 条规则:检查 rulesFile 路径)",
148
148
  "card.dryRunFail": "测试失败:",
149
149
  "card.dryRunStale": "路由不存在(插件未重启?)",
150
- "card.rules": "权限 YAML",
151
- "card.rulesHint": "门禁此刻实际加载的规则文件原文。只读——这里改不了任何东西。要改规则,用下面的白名单,或直接编辑该文件。",
150
+ "card.rules": "Settings 内置规则",
151
+ "card.rulesHint": "门禁此刻实际加载的规则(来自 settings 命名空间 dsh-perm-gate-rules)。只读——这里改不了任何东西。要改规则,用下面的白名单,或在 settings.yaml 中编辑。",
152
152
  "card.rulesRefresh": "刷新",
153
153
  "card.rulesLoading": "读取中…",
154
- "card.rulesPath": "文件",
155
- "card.rulesNone": "未配置规则文件",
154
+ "card.rulesPath": "来源",
155
+ "card.rulesNone": "未配置规则",
156
156
  "card.rulesCounts": "规则",
157
157
  "card.rulesDefault": "defaultAction",
158
158
  "card.rulesStats": "%b 字节 · %l 行",
159
- "card.rulesMissing": "文件不存在。门禁会退到内置默认。",
160
- "card.rulesTruncated": "文件过大,仅显示前 512 KB。",
159
+ "card.rulesMissing": "规则不存在。门禁会退到内置默认。",
160
+ "card.rulesTruncated": "规则过大,仅显示前 512 KB。",
161
161
  "card.rulesError": "加载失败:",
162
162
  "card.rulesStale": "路由不存在(插件未重启?)",
163
- "card.rulesNote": "此处只读:面板无法修改该文件,白名单段是唯一会写入它的地方。"
163
+ "card.rulesNote": "此处只读:面板无法修改规则,白名单段是唯一会写入 settings 的地方。"
164
164
  };
165
165
  /** English dictionary (keys mirror zh). */
166
166
  const en = {
@@ -299,20 +299,20 @@ window.__ModuleLoader__.load({
299
299
  "card.dryRunNoRules": "(0 rules loaded — check the rulesFile path)",
300
300
  "card.dryRunFail": "Test failed: ",
301
301
  "card.dryRunStale": "route missing (plugin not restarted?)",
302
- "card.rules": "Permissions YAML",
303
- "card.rulesHint": "The rules file the gate is loading right now, verbatim. Read-only — nothing here can change it. To change rules, use the allowlist below or edit the file directly.",
302
+ "card.rules": "Settings Built-in Rules",
303
+ "card.rulesHint": "The rules the gate is loading right now (from the dsh-perm-gate-rules settings namespace). Read-only — nothing here can change them. To change rules, use the allowlist below or edit settings.yaml.",
304
304
  "card.rulesRefresh": "Refresh",
305
305
  "card.rulesLoading": "Reading…",
306
- "card.rulesPath": "File",
307
- "card.rulesNone": "no rules file configured",
306
+ "card.rulesPath": "Source",
307
+ "card.rulesNone": "no rules configured",
308
308
  "card.rulesCounts": "Rules",
309
309
  "card.rulesDefault": "defaultAction",
310
310
  "card.rulesStats": "%b bytes · %l lines",
311
- "card.rulesMissing": "The file does not exist. The gate falls back to its built-in defaults.",
312
- "card.rulesTruncated": "File is large; showing the first 512 KB only.",
311
+ "card.rulesMissing": "Rules not found. The gate falls back to its built-in defaults.",
312
+ "card.rulesTruncated": "Rules are large; showing the first 512 KB only.",
313
313
  "card.rulesError": "Load failed: ",
314
314
  "card.rulesStale": "route missing (plugin not restarted?)",
315
- "card.rulesNote": "Read-only: this panel cannot modify the file. The allowlist section is the only place that writes to it."
315
+ "card.rulesNote": "Read-only: this panel cannot modify the rules. The allowlist section is the only place that writes to settings."
316
316
  };
317
317
  //#endregion
318
318
  //#region src/deny-defaults.ts