magpie-multi-usage 0.3.3 → 0.3.5
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/README.md +3 -3
- package/README.zh-CN.md +3 -3
- package/package.json +1 -1
- package/src/aggregator.mjs +1 -1
- package/src/github-store.mjs +94 -12
- package/src/http-server.mjs +1 -1
- package/src/sync-engine.mjs +1 -1
- package/src/ui/app.js +50 -4
- package/src/ui/view-model.mjs +2 -2
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ Bundled vendor logos load in the Models and Providers tabs in Magpie Desktop and
|
|
|
32
32
|
|
|
33
33
|
### 1. Create a dedicated private GitHub repository
|
|
34
34
|
|
|
35
|
-
Create a new **Private** repository solely for sanitized usage stats (for example, `<you>/magpie-usage-stats`)
|
|
35
|
+
Create a new **Private** repository solely for sanitized usage stats (for example, `<you>/magpie-usage-stats`). Leaving it completely empty is fine — the first sync automatically initializes its default branch (such as `main`) when **Branch** is left blank or set to the default branch.
|
|
36
36
|
|
|
37
37
|
> [!IMPORTANT]
|
|
38
38
|
> Do **not** reuse your Magpie configuration sync repository, and do **not** use a public repository. This plugin verifies `private === true` before every read and ref update, and refuses public repositories (`PUBLIC_REPO_REFUSED`).
|
|
@@ -46,7 +46,7 @@ Create a GitHub **fine-grained personal access token** scoped strictly to **Only
|
|
|
46
46
|
|
|
47
47
|
### 3. Configure each machine
|
|
48
48
|
|
|
49
|
-
- **Magpie Desktop / `magpie web`**: open **Multi-Device Usage** → **Settings** gear → set **Device display name** (optional), **Private GitHub repository** (`owner/repo`), and **PAT** → **Test connection** → **Save and sync
|
|
49
|
+
- **Magpie Desktop / `magpie web`**: open **Multi-Device Usage** → **Settings** gear → set **Device display name** (optional), **Private GitHub repository** (`owner/repo`), and **PAT** → **Test connection** → **Save and sync** (the Settings dialog closes automatically once save and sync succeed).
|
|
50
50
|
- **Headless `magpie serve` node**: set non-sensitive options (`repo`, `deviceName`, `pushEnabled`, `pushIntervalSec`) via `magpie plugin options`, and supply the PAT via `MAGPIE_MULTI_USAGE_GITHUB_TOKEN` (or a `0600`-mode `<dataDir>/credentials.json`) — never in plaintext `plugins.json`.
|
|
51
51
|
|
|
52
52
|
> [!NOTE]
|
|
@@ -112,7 +112,7 @@ Only aggregate counters (`calls`, `errors`, `excludedForwarded`, `input`, `outpu
|
|
|
112
112
|
## FAQ
|
|
113
113
|
|
|
114
114
|
- **`PUBLIC_REPO_REFUSED`**: the configured repository is public; switch to a dedicated private one.
|
|
115
|
-
- **`BRANCH_NOT_FOUND` on Test connection**: the
|
|
115
|
+
- **`BRANCH_NOT_FOUND` on Test connection**: the configured custom branch does not exist yet (or the repository is empty and a non-default branch was specified); leave **Branch** blank to use the repository's default branch, or create the custom branch on GitHub first.
|
|
116
116
|
- **Device name shows the hostname**: set a friendly name in **Settings → Device display name**, then save and sync.
|
|
117
117
|
- **Want to reset local plugin state**: remove `<dataDir>` (default `~/.local/share/magpie-multi-usage`); Magpie's own data is untouched and re-ingests cleanly on next open.
|
|
118
118
|
|
package/README.zh-CN.md
CHANGED
|
@@ -32,7 +32,7 @@ Magpie 桌面端和 Web 端的模型与供应商标签页均支持加载内置
|
|
|
32
32
|
|
|
33
33
|
### 1. 创建专用私有 GitHub 仓库
|
|
34
34
|
|
|
35
|
-
新建一个仅用于存放脱敏用量统计的 **Private** 仓库(例如 `<you>/magpie-usage-stats
|
|
35
|
+
新建一个仅用于存放脱敏用量统计的 **Private** 仓库(例如 `<you>/magpie-usage-stats`)。空仓库即可,无需手动创建初始提交——只要**分支**留空或填写默认分支(如 `main`),首次同步会自动初始化。
|
|
36
36
|
|
|
37
37
|
> [!IMPORTANT]
|
|
38
38
|
> 请**不要**复用 Magpie 配置同步仓库,也**不要**使用公共仓库。本插件在每次读取和 ref 更新前都会校验 `private === true`,并拒绝公共仓库(`PUBLIC_REPO_REFUSED`)。
|
|
@@ -46,7 +46,7 @@ Magpie 桌面端和 Web 端的模型与供应商标签页均支持加载内置
|
|
|
46
46
|
|
|
47
47
|
### 3. 配置每台机器
|
|
48
48
|
|
|
49
|
-
- **Magpie 桌面 / `magpie web`**:打开 **多端用量** → **设置**齿轮 → 填写 **设备显示名**(可选)、**私有 GitHub 仓库**(`owner/repo`)与 **PAT** → **测试连接** →
|
|
49
|
+
- **Magpie 桌面 / `magpie web`**:打开 **多端用量** → **设置**齿轮 → 填写 **设备显示名**(可选)、**私有 GitHub 仓库**(`owner/repo`)与 **PAT** → **测试连接** → **保存并同步**(保存与同步成功后设置窗口会自动关闭)。
|
|
50
50
|
- **无头 `magpie serve` 节点**:通过 `magpie plugin options` 设置非敏感项(`repo`、`deviceName`、`pushEnabled`、`pushIntervalSec`),PAT 通过环境变量 `MAGPIE_MULTI_USAGE_GITHUB_TOKEN`(或 `0600` 权限的 `<dataDir>/credentials.json`)提供——绝不写入明文 `plugins.json`。
|
|
51
51
|
|
|
52
52
|
> [!NOTE]
|
|
@@ -112,7 +112,7 @@ devices/
|
|
|
112
112
|
## 常见问题
|
|
113
113
|
|
|
114
114
|
- **提示 `PUBLIC_REPO_REFUSED`**:配置的是公共仓库,请改用专用私有仓库。
|
|
115
|
-
- **测试连接提示 `BRANCH_NOT_FOUND
|
|
115
|
+
- **测试连接提示 `BRANCH_NOT_FOUND`**:填写的自定义分支不存在(或空仓库指定了非默认分支);可将**分支**留空以使用仓库默认分支,或先在 GitHub 上创建该分支。
|
|
116
116
|
- **设备名显示成主机名**:在 **设置 → 设备显示名** 里填一个名字,再保存并同步。
|
|
117
117
|
- **想清空插件本地数据重来**:删除 `<dataDir>`(默认 `~/.local/share/magpie-multi-usage`)即可,Magpie 自身数据不受影响。
|
|
118
118
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "magpie-multi-usage",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "Multi-device token usage dashboard plugin for Magpie using a dedicated private GitHub repository relay (no decryption passphrase required).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.mjs",
|
package/src/aggregator.mjs
CHANGED
package/src/github-store.mjs
CHANGED
|
@@ -179,6 +179,18 @@ export function validateRemoteMonthSnapshot(snapshot, expectedDeviceId, expected
|
|
|
179
179
|
return snapshot;
|
|
180
180
|
}
|
|
181
181
|
|
|
182
|
+
function isEmptyRepoResponse(status, bodyText) {
|
|
183
|
+
if (status !== 409 || !bodyText) {
|
|
184
|
+
return false;
|
|
185
|
+
}
|
|
186
|
+
try {
|
|
187
|
+
const parsed = JSON.parse(bodyText);
|
|
188
|
+
return parsed?.message === "Git Repository is empty.";
|
|
189
|
+
} catch {
|
|
190
|
+
return false;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
182
194
|
function sanitizeGitHubErrorMessage(status, bodyText) {
|
|
183
195
|
let detail = "";
|
|
184
196
|
if (bodyText) {
|
|
@@ -224,7 +236,7 @@ export function createGitHubRelayStore({
|
|
|
224
236
|
apiBaseUrl = DEFAULT_API_BASE_URL,
|
|
225
237
|
fetchImpl = globalThis.fetch,
|
|
226
238
|
timeoutMs = 15000,
|
|
227
|
-
pluginVersion = "0.3.
|
|
239
|
+
pluginVersion = "0.3.5",
|
|
228
240
|
} = {}) {
|
|
229
241
|
const normalizedRepo = normalizeRepo(repo);
|
|
230
242
|
if (!normalizedRepo) {
|
|
@@ -330,7 +342,8 @@ export function createGitHubRelayStore({
|
|
|
330
342
|
}
|
|
331
343
|
verifiedRepoId = repoId;
|
|
332
344
|
|
|
333
|
-
const
|
|
345
|
+
const defaultBranch = (typeof meta.default_branch === "string" && meta.default_branch.trim()) || "main";
|
|
346
|
+
const resolvedBranch = configuredBranch || defaultBranch;
|
|
334
347
|
const canPush = typeof meta?.permissions?.push === "boolean" ? meta.permissions.push : null;
|
|
335
348
|
|
|
336
349
|
if (requirePush && canPush === false) {
|
|
@@ -346,6 +359,7 @@ export function createGitHubRelayStore({
|
|
|
346
359
|
repoId,
|
|
347
360
|
private: true,
|
|
348
361
|
branch: resolvedBranch,
|
|
362
|
+
defaultBranch,
|
|
349
363
|
prefix: normalizedPrefix,
|
|
350
364
|
canPush,
|
|
351
365
|
};
|
|
@@ -361,8 +375,7 @@ export function createGitHubRelayStore({
|
|
|
361
375
|
}
|
|
362
376
|
}
|
|
363
377
|
|
|
364
|
-
|
|
365
|
-
const res = await request(method, apiPath, { body });
|
|
378
|
+
function parseJsonResponseOrThrow(res, label) {
|
|
366
379
|
if (!res.ok) {
|
|
367
380
|
throw new GitHubStoreError(
|
|
368
381
|
res.status === 409 || res.status === 422 ? "GITHUB_CONFLICT" : res.status === 403 ? "GITHUB_FORBIDDEN" : "GITHUB_HTTP_ERROR",
|
|
@@ -379,6 +392,42 @@ export function createGitHubRelayStore({
|
|
|
379
392
|
}
|
|
380
393
|
}
|
|
381
394
|
|
|
395
|
+
async function requestJsonOrThrow(method, apiPath, { body, label }) {
|
|
396
|
+
const res = await request(method, apiPath, { body });
|
|
397
|
+
return parseJsonResponseOrThrow(res, label);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
async function initializeEmptyRepo(verified) {
|
|
401
|
+
if (verified.branch !== verified.defaultBranch) {
|
|
402
|
+
throw new GitHubStoreError(
|
|
403
|
+
"BRANCH_NOT_FOUND",
|
|
404
|
+
`Repository ${verified.repo} is empty; leave branch blank or use its default branch "${verified.defaultBranch}" for the first sync.`,
|
|
405
|
+
{ status: 409 },
|
|
406
|
+
);
|
|
407
|
+
}
|
|
408
|
+
const readmePath = `${normalizedPrefix}/README.md`;
|
|
409
|
+
const note = "This folder holds magpie-multi-usage sanitized usage snapshots.\n";
|
|
410
|
+
// Omitting `branch` lets GitHub Contents API create the default branch's initial commit.
|
|
411
|
+
const initRes = await request(
|
|
412
|
+
"PUT",
|
|
413
|
+
`/repos/${encodeURIComponent(owner)}/${encodeURIComponent(repoName)}/contents/${encodeRepoPath(readmePath)}`,
|
|
414
|
+
{
|
|
415
|
+
body: {
|
|
416
|
+
message: "chore(usage): initialize relay repository",
|
|
417
|
+
content: Buffer.from(note, "utf8").toString("base64"),
|
|
418
|
+
},
|
|
419
|
+
},
|
|
420
|
+
);
|
|
421
|
+
if (initRes.ok || initRes.status === 409 || initRes.status === 422) {
|
|
422
|
+
return;
|
|
423
|
+
}
|
|
424
|
+
throw new GitHubStoreError(
|
|
425
|
+
initRes.status === 403 ? "GITHUB_FORBIDDEN" : "GITHUB_HTTP_ERROR",
|
|
426
|
+
sanitizeGitHubErrorMessage(initRes.status, initRes.text),
|
|
427
|
+
{ status: initRes.status },
|
|
428
|
+
);
|
|
429
|
+
}
|
|
430
|
+
|
|
382
431
|
async function fetchBlobJson(sha, label) {
|
|
383
432
|
const blob = await requestJsonOrThrow(
|
|
384
433
|
"GET",
|
|
@@ -408,28 +457,55 @@ export function createGitHubRelayStore({
|
|
|
408
457
|
|
|
409
458
|
async testConnection() {
|
|
410
459
|
const verified = await verifyPrivateRepo({ requirePush: false });
|
|
411
|
-
const
|
|
460
|
+
const refRes = await request(
|
|
412
461
|
"GET",
|
|
413
|
-
`/repos/${encodeURIComponent(owner)}/${encodeURIComponent(repoName)}/
|
|
462
|
+
`/repos/${encodeURIComponent(owner)}/${encodeURIComponent(repoName)}/git/ref/heads/${encodeRepoPath(verified.branch)}`,
|
|
414
463
|
);
|
|
415
|
-
if (
|
|
464
|
+
if (isEmptyRepoResponse(refRes.status, refRes.text)) {
|
|
465
|
+
if (verified.branch !== verified.defaultBranch) {
|
|
466
|
+
return {
|
|
467
|
+
ok: false,
|
|
468
|
+
code: "BRANCH_NOT_FOUND",
|
|
469
|
+
error: `Repository ${verified.repo} is empty; leave branch blank or use its default branch "${verified.defaultBranch}" for the first sync.`,
|
|
470
|
+
repo: verified.repo,
|
|
471
|
+
repoId: verified.repoId,
|
|
472
|
+
private: true,
|
|
473
|
+
branch: verified.branch,
|
|
474
|
+
branchExists: false,
|
|
475
|
+
emptyRepo: true,
|
|
476
|
+
canPush: verified.canPush,
|
|
477
|
+
};
|
|
478
|
+
}
|
|
479
|
+
return {
|
|
480
|
+
ok: true,
|
|
481
|
+
repo: verified.repo,
|
|
482
|
+
repoId: verified.repoId,
|
|
483
|
+
private: true,
|
|
484
|
+
branch: verified.branch,
|
|
485
|
+
branchExists: false,
|
|
486
|
+
emptyRepo: true,
|
|
487
|
+
canPush: verified.canPush,
|
|
488
|
+
};
|
|
489
|
+
}
|
|
490
|
+
if (refRes.status === 404) {
|
|
416
491
|
return {
|
|
417
492
|
ok: false,
|
|
418
493
|
code: "BRANCH_NOT_FOUND",
|
|
419
|
-
error: `Branch "${verified.branch}" does not exist yet in ${verified.repo}.
|
|
494
|
+
error: `Branch "${verified.branch}" does not exist yet in ${verified.repo}. Create the branch first or leave branch blank to use "${verified.defaultBranch}".`,
|
|
420
495
|
repo: verified.repo,
|
|
421
496
|
repoId: verified.repoId,
|
|
422
497
|
private: true,
|
|
423
498
|
branch: verified.branch,
|
|
424
499
|
branchExists: false,
|
|
500
|
+
emptyRepo: false,
|
|
425
501
|
canPush: verified.canPush,
|
|
426
502
|
};
|
|
427
503
|
}
|
|
428
|
-
if (!
|
|
504
|
+
if (!refRes.ok) {
|
|
429
505
|
throw new GitHubStoreError(
|
|
430
506
|
"GITHUB_HTTP_ERROR",
|
|
431
|
-
sanitizeGitHubErrorMessage(
|
|
432
|
-
{ status:
|
|
507
|
+
sanitizeGitHubErrorMessage(refRes.status, refRes.text),
|
|
508
|
+
{ status: refRes.status },
|
|
433
509
|
);
|
|
434
510
|
}
|
|
435
511
|
|
|
@@ -440,6 +516,7 @@ export function createGitHubRelayStore({
|
|
|
440
516
|
private: true,
|
|
441
517
|
branch: verified.branch,
|
|
442
518
|
branchExists: true,
|
|
519
|
+
emptyRepo: false,
|
|
443
520
|
canPush: verified.canPush,
|
|
444
521
|
};
|
|
445
522
|
},
|
|
@@ -491,7 +568,12 @@ export function createGitHubRelayStore({
|
|
|
491
568
|
for (let attempt = 0; attempt < 2; attempt += 1) {
|
|
492
569
|
const verified = await verifyPrivateRepo({ requirePush: true });
|
|
493
570
|
const refPath = `${repoApiBase}/git/ref/heads/${encodeRepoPath(verified.branch)}`;
|
|
494
|
-
|
|
571
|
+
let refRes = await request("GET", refPath);
|
|
572
|
+
if (isEmptyRepoResponse(refRes.status, refRes.text)) {
|
|
573
|
+
await initializeEmptyRepo(verified);
|
|
574
|
+
refRes = await request("GET", refPath);
|
|
575
|
+
}
|
|
576
|
+
const refObj = parseJsonResponseOrThrow(refRes, `ref heads/${verified.branch}`);
|
|
495
577
|
const headSha = refObj?.object?.sha;
|
|
496
578
|
if (typeof headSha !== "string" || !headSha) {
|
|
497
579
|
throw new GitHubStoreError("GITHUB_INVALID_PAYLOAD", "Branch reference response is missing head SHA.");
|
package/src/http-server.mjs
CHANGED
|
@@ -19,7 +19,7 @@ import { createSyncEngine } from "./sync-engine.mjs";
|
|
|
19
19
|
|
|
20
20
|
export const TOKEN_HEADER = "x-multi-usage-token";
|
|
21
21
|
export const DEFAULT_PORT = DEFAULT_CONFIG.port;
|
|
22
|
-
export const PLUGIN_VERSION = "0.3.
|
|
22
|
+
export const PLUGIN_VERSION = "0.3.5";
|
|
23
23
|
|
|
24
24
|
const MAX_JSON_BODY_BYTES = 256 * 1024;
|
|
25
25
|
const ALLOWED_RANGES = new Set(["today", "7d", "30d", "all"]);
|
package/src/sync-engine.mjs
CHANGED
package/src/ui/app.js
CHANGED
|
@@ -53,6 +53,7 @@ const state = {
|
|
|
53
53
|
sync: null,
|
|
54
54
|
config: null,
|
|
55
55
|
clearTokenRequested: false,
|
|
56
|
+
settingsReturnFocus: null,
|
|
56
57
|
requestGen: 0,
|
|
57
58
|
};
|
|
58
59
|
|
|
@@ -838,7 +839,34 @@ function populateSettingsForm(cfg) {
|
|
|
838
839
|
}
|
|
839
840
|
}
|
|
840
841
|
|
|
842
|
+
function isSettingsDrawerOpen() {
|
|
843
|
+
const drawer = document.getElementById("settings-drawer");
|
|
844
|
+
return Boolean(drawer && !drawer.classList.contains("hidden"));
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
function restoreSettingsFocus() {
|
|
848
|
+
const target = state.settingsReturnFocus;
|
|
849
|
+
state.settingsReturnFocus = null;
|
|
850
|
+
const canFocus = (node) => Boolean(
|
|
851
|
+
node
|
|
852
|
+
&& typeof node.focus === "function"
|
|
853
|
+
&& node !== document.body
|
|
854
|
+
&& document.body?.contains(node),
|
|
855
|
+
);
|
|
856
|
+
if (canFocus(target)) {
|
|
857
|
+
target.focus();
|
|
858
|
+
return;
|
|
859
|
+
}
|
|
860
|
+
const settingsBtn = document.getElementById("settings-btn");
|
|
861
|
+
if (canFocus(settingsBtn)) {
|
|
862
|
+
settingsBtn.focus();
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
|
|
841
866
|
async function openSettingsDrawer() {
|
|
867
|
+
if (!isSettingsDrawerOpen()) {
|
|
868
|
+
state.settingsReturnFocus = document.activeElement || null;
|
|
869
|
+
}
|
|
842
870
|
setFeedback("");
|
|
843
871
|
document.getElementById("drawer-backdrop").classList.remove("hidden");
|
|
844
872
|
document.getElementById("settings-drawer").classList.remove("hidden");
|
|
@@ -851,8 +879,12 @@ async function openSettingsDrawer() {
|
|
|
851
879
|
}
|
|
852
880
|
|
|
853
881
|
function closeSettingsDrawer() {
|
|
882
|
+
const wasOpen = isSettingsDrawerOpen();
|
|
854
883
|
document.getElementById("drawer-backdrop").classList.add("hidden");
|
|
855
884
|
document.getElementById("settings-drawer").classList.add("hidden");
|
|
885
|
+
if (wasOpen) {
|
|
886
|
+
restoreSettingsFocus();
|
|
887
|
+
}
|
|
856
888
|
}
|
|
857
889
|
|
|
858
890
|
async function loadConfigMeta() {
|
|
@@ -1035,15 +1067,29 @@ async function handleSaveSettings(event) {
|
|
|
1035
1067
|
if (refreshed.summary) {
|
|
1036
1068
|
handleSummarySuccess(refreshGen, refreshRange, refreshDevice, refreshed.summary);
|
|
1037
1069
|
}
|
|
1038
|
-
const
|
|
1070
|
+
const pullDeviceErrors = Object.values(refreshed.pull?.devices || {})
|
|
1071
|
+
.map((entry) => entry?.error)
|
|
1072
|
+
.filter(Boolean);
|
|
1073
|
+
const syncErrors = Array.from(new Set([
|
|
1039
1074
|
refreshed.local?.error,
|
|
1040
1075
|
refreshed.push?.error,
|
|
1041
1076
|
refreshed.pull?.error,
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1077
|
+
...pullDeviceErrors,
|
|
1078
|
+
].filter(Boolean)));
|
|
1079
|
+
const hasSyncFailure = syncErrors.length > 0
|
|
1080
|
+
|| refreshed.local?.ok === false
|
|
1081
|
+
|| refreshed.push?.ok === false
|
|
1082
|
+
|| refreshed.pull?.ok === false;
|
|
1083
|
+
if (hasSyncFailure) {
|
|
1084
|
+
const message = syncErrors.length > 0
|
|
1085
|
+
? syncErrors.join("; ")
|
|
1086
|
+
: (refreshed.summary?.sync?.lastPushError
|
|
1087
|
+
|| refreshed.summary?.sync?.lastPullError
|
|
1088
|
+
|| t(state.lang, "statusError"));
|
|
1089
|
+
setFeedback(message, "err");
|
|
1045
1090
|
} else {
|
|
1046
1091
|
setFeedback(t(state.lang, "savedSuccess"), "ok");
|
|
1092
|
+
closeSettingsDrawer();
|
|
1047
1093
|
}
|
|
1048
1094
|
} catch (err) {
|
|
1049
1095
|
if (refreshGen !== null) {
|
package/src/ui/view-model.mjs
CHANGED
|
@@ -112,7 +112,7 @@ export const MESSAGES = Object.freeze({
|
|
|
112
112
|
saving: "Saving...",
|
|
113
113
|
testSuccess: "Private repository verified",
|
|
114
114
|
savedSuccess: "Settings saved and synced.",
|
|
115
|
-
branchMissingWarning: "
|
|
115
|
+
branchMissingWarning: "empty repo, will initialize on first sync",
|
|
116
116
|
readOnlyNote: "read-only token",
|
|
117
117
|
readWriteNote: "read/write token",
|
|
118
118
|
}),
|
|
@@ -224,7 +224,7 @@ export const MESSAGES = Object.freeze({
|
|
|
224
224
|
saving: "保存中...",
|
|
225
225
|
testSuccess: "私有仓库校验通过",
|
|
226
226
|
savedSuccess: "设置已保存并完成同步。",
|
|
227
|
-
branchMissingWarning: "
|
|
227
|
+
branchMissingWarning: "空仓库,首次同步将自动初始化",
|
|
228
228
|
readOnlyNote: "只读权限",
|
|
229
229
|
readWriteNote: "读写权限",
|
|
230
230
|
}),
|