@civilization/dsh-git-workbench 0.4.2 → 0.4.4
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 +56 -108
- package/lib/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client/GitBody.module.css +10 -3
- package/src/client/GitBranchPill.module.css +242 -87
- package/src/client/GitBranchPill.tsx +15 -42
- package/src/client/locales.ts +31 -31
package/src/client/locales.ts
CHANGED
|
@@ -6,14 +6,14 @@ export const NS = 'gitView'
|
|
|
6
6
|
|
|
7
7
|
export const zh = {
|
|
8
8
|
'type.label': 'Git',
|
|
9
|
-
'guide.title': 'Git
|
|
10
|
-
'guide.description': '
|
|
9
|
+
'guide.title': 'Git 源代码管理',
|
|
10
|
+
'guide.description': '查看项目代码变更、分支、提交历史与代码对比',
|
|
11
11
|
'shortcut.noSession': '没有激活的会话',
|
|
12
12
|
'tabs.changes': '更改',
|
|
13
13
|
'tabs.history': '提交历史',
|
|
14
|
-
'tabs.tree': '
|
|
15
|
-
'tabs.branches': '
|
|
16
|
-
'tabs.tags': '
|
|
14
|
+
'tabs.tree': '提交图谱',
|
|
15
|
+
'tabs.branches': '分支',
|
|
16
|
+
'tabs.tags': '标签',
|
|
17
17
|
'actions.refresh': '刷新状态',
|
|
18
18
|
'actions.viewDiff': '查看差异',
|
|
19
19
|
'actions.closeDiff': '收起差异',
|
|
@@ -27,68 +27,68 @@ export const zh = {
|
|
|
27
27
|
'actions.checkout': '检出分支',
|
|
28
28
|
'actions.newBranch': '新建分支',
|
|
29
29
|
'actions.fetch': '获取远程',
|
|
30
|
-
'actions.pull': '拉取',
|
|
31
|
-
'actions.push': '推送',
|
|
32
|
-
'commit.placeholder': '
|
|
30
|
+
'actions.pull': '拉取 (Pull)',
|
|
31
|
+
'actions.push': '推送 (Push)',
|
|
32
|
+
'commit.placeholder': '提交说明信息 (Ctrl+Enter 提交)...',
|
|
33
33
|
'commit.emptyWarning': '请输入提交说明',
|
|
34
34
|
'commit.success': '提交成功',
|
|
35
|
-
'branch.filter': '
|
|
35
|
+
'branch.filter': '搜索或过滤分支...',
|
|
36
36
|
'branch.local': '本地分支',
|
|
37
37
|
'branch.remote': '远程分支',
|
|
38
38
|
'branch.current': '当前分支',
|
|
39
|
-
'branch.newPrompt': '
|
|
39
|
+
'branch.newPrompt': '新分支名称 (按 Enter 创建)...',
|
|
40
40
|
'branch.createAndCheckout': '创建并检出',
|
|
41
41
|
'tree.author': '作者',
|
|
42
42
|
'tree.date': '时间',
|
|
43
43
|
'tree.hash': '哈希',
|
|
44
44
|
'tree.changedFiles': '变更文件',
|
|
45
|
-
'tree.selectCommit': '
|
|
46
|
-
'status.clean': '
|
|
45
|
+
'tree.selectCommit': '选择一次提交以查看详情与代码差异',
|
|
46
|
+
'status.clean': '工作区干净,无未提交的更改',
|
|
47
47
|
'status.notRepo': '当前工作区不是 Git 仓库',
|
|
48
|
-
'status.staged': '
|
|
49
|
-
'status.unstaged': '
|
|
48
|
+
'status.staged': '暂存的更改',
|
|
49
|
+
'status.unstaged': '更改',
|
|
50
50
|
'status.untracked': '未跟踪文件',
|
|
51
51
|
'status.ahead': '领先 {count} 个提交',
|
|
52
52
|
'status.behind': '落后 {count} 个提交',
|
|
53
53
|
'diff.additions': '+{count}',
|
|
54
54
|
'diff.deletions': '-{count}',
|
|
55
55
|
'diff.empty': '无内容变动',
|
|
56
|
-
'tag.filter': '
|
|
56
|
+
'tag.filter': '过滤标签 (名称、Hash或提交说明)...',
|
|
57
57
|
'tag.newPrompt': '新建标签 (Tag)',
|
|
58
58
|
'tag.nameLabel': '标签名称',
|
|
59
|
-
'tag.namePlaceholder': '输入标签名称 (
|
|
60
|
-
'tag.targetCommitLabel': '目标 Commit Hash (
|
|
61
|
-
'tag.messageLabel': '
|
|
62
|
-
'tag.messagePrompt': '
|
|
59
|
+
'tag.namePlaceholder': '输入标签名称 (如 v1.0.0)...',
|
|
60
|
+
'tag.targetCommitLabel': '目标 Commit Hash (可选,默认 HEAD)',
|
|
61
|
+
'tag.messageLabel': '附注说明信息 (可选)',
|
|
62
|
+
'tag.messagePrompt': '请输入附注说明信息 (可选)...',
|
|
63
63
|
'tag.createBtn': '创建标签',
|
|
64
64
|
'tag.cancelBtn': '取消',
|
|
65
65
|
'tag.locateBtn': '在图谱中定位',
|
|
66
66
|
'tag.copyName': '复制标签名',
|
|
67
67
|
'tag.deleteBtn': '删除',
|
|
68
68
|
'tag.deleteConfirm': '确定要删除标签 "{name}" 吗?',
|
|
69
|
-
'tag.empty': '
|
|
70
|
-
'tag.annotated': '
|
|
71
|
-
'tag.locatedNotice': '已定位到标签 "{name}"
|
|
69
|
+
'tag.empty': '未找到任何 Git 标签',
|
|
70
|
+
'tag.annotated': '含附注',
|
|
71
|
+
'tag.locatedNotice': '已定位到标签 "{name}" 所在提交',
|
|
72
72
|
'actions.locate': '定位',
|
|
73
73
|
'tree.colGraph': '图谱',
|
|
74
|
-
'tree.colSubject': '
|
|
74
|
+
'tree.colSubject': '提交说明与分支引用',
|
|
75
75
|
'tree.colAuthor': '作者',
|
|
76
76
|
'tree.colTime': '时间',
|
|
77
77
|
'tree.colSha': 'Commit SHA',
|
|
78
78
|
'tree.searchPlaceholder': '搜索提交说明、SHA 或作者...',
|
|
79
|
-
'tree.filterAll': '
|
|
80
|
-
'tree.filterMainline': '
|
|
79
|
+
'tree.filterAll': '全部提交',
|
|
80
|
+
'tree.filterMainline': '主线分支',
|
|
81
81
|
'detail.title': '提交详情 (COMMIT DETAILS)',
|
|
82
|
-
'detail.references': '
|
|
83
|
-
'detail.author': '
|
|
82
|
+
'detail.references': '分支引用 (REFERENCES)',
|
|
83
|
+
'detail.author': '提交作者 (Author)',
|
|
84
84
|
'detail.date': '提交时间 (Date)',
|
|
85
85
|
'detail.parent': '父级提交 (Parent)',
|
|
86
86
|
'detail.checkout': '检出分支 (Checkout)',
|
|
87
|
-
'detail.createBranchOrTag': '
|
|
88
|
-
'footer.showingCount': '
|
|
87
|
+
'detail.createBranchOrTag': '从此检出分支 / 标签',
|
|
88
|
+
'footer.showingCount': '显示 {count} 条提交 (共 {total} 条)',
|
|
89
89
|
'footer.loadMore': '加载更多',
|
|
90
|
-
'footer.syncNormal': '
|
|
91
|
-
'footer.ahead': '
|
|
90
|
+
'footer.syncNormal': '分支已与远程同步',
|
|
91
|
+
'footer.ahead': '领先远程 {count} 个提交',
|
|
92
92
|
'footer.behind': '落后远程 {count} 个提交',
|
|
93
93
|
} satisfies Record<string, string>
|
|
94
94
|
|