@dsh-workbench/shared 1.1.5 → 1.1.6
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/dist/contract/protocol/market-index.d.ts +3 -1
- package/dist/contract/protocol/market-index.js +2 -0
- package/dist/host/market-index-claim.d.ts +2 -0
- package/dist/host/market-index-claim.js +7 -0
- package/dist/host/market-index-doc.d.ts +56 -0
- package/dist/host/market-index-doc.js +1 -0
- package/dist/host/market-index-parse.d.ts +23 -0
- package/dist/host/market-index-parse.js +485 -0
- package/dist/host/market-index.d.ts +13 -21
- package/dist/host/market-index.js +120 -368
- package/dist/i18n/en.js +10 -4
- package/dist/i18n/index.d.ts +11 -5
- package/dist/i18n/zh.d.ts +10 -4
- package/dist/i18n/zh.js +10 -4
- package/package.json +1 -1
- package/src/contract/protocol/market-index.ts +4 -0
- package/src/host/__tests__/market-index.test.ts +114 -0
- package/src/host/market-index-claim.ts +9 -0
- package/src/host/market-index-doc.ts +62 -0
- package/src/host/market-index-parse.ts +482 -0
- package/src/host/market-index.ts +162 -357
- package/src/i18n/en.ts +10 -4
- package/src/i18n/zh.ts +10 -4
package/src/i18n/zh.ts
CHANGED
|
@@ -133,11 +133,14 @@ export const zh = {
|
|
|
133
133
|
'panels.market.update': '更新',
|
|
134
134
|
'panels.market.swapSlow': '还没换上:可能网慢或没装上。再点一次「更新」;一直这样就把 dsh 重启一遍。',
|
|
135
135
|
'panels.market.removeSlow': '还没卸掉:可能网慢或卸载没走完。等一下再看;一直这样就把 dsh 重启一遍。',
|
|
136
|
-
'panels.market.updateNoChange': '
|
|
136
|
+
'panels.market.updateNoChange': '更新没换上:还是 {from};源上最新是 {latest}。',
|
|
137
137
|
'panels.market.updateUnknownVersion': '(问不到)',
|
|
138
138
|
'panels.market.updateGone': '更新失败:更新后找不到这个模块。',
|
|
139
139
|
'panels.market.updateRestored': '更新失败:更新后找不到新版本,已把 {version} 装回去。',
|
|
140
|
-
'panels.market.updateBehind': '装上了 {installed},但源上最新是 {latest}
|
|
140
|
+
'panels.market.updateBehind': '装上了 {installed},但源上最新是 {latest}。',
|
|
141
|
+
'panels.market.updateStuck.title': '更新没换上',
|
|
142
|
+
'panels.market.updateStuck.factNoChange': '盘上还是 {from};源上最新是 {latest}。',
|
|
143
|
+
'panels.market.updateStuck.copiedHint': '粘到终端跑一次,跑完重启一次工作台。',
|
|
141
144
|
'panels.market.selfUpdateFailed': '工作台更新失败:{reason}',
|
|
142
145
|
'panels.market.selfUpdateUnknown': '外部进程没留下原因(看 ~/.dsh/workbench/self-update.log)',
|
|
143
146
|
'panels.market.selfUpdateRolledBack': '工作台更新失败,已回滚到 {version}。',
|
|
@@ -224,6 +227,7 @@ export const zh = {
|
|
|
224
227
|
'panels.market.restartNeeded': '新版装好了,重启一次才生效。',
|
|
225
228
|
'panels.market.foot': '装好后到那个项目的面板页勾选它,模块才会出现。',
|
|
226
229
|
'panels.market.checkUpdates': '检查更新',
|
|
230
|
+
'panels.market.checkAll': '检查全部更新',
|
|
227
231
|
'panels.market.checkingNow': '正在检查…',
|
|
228
232
|
'panels.market.checkFailed': '最近一次没查到,检查网络后重试',
|
|
229
233
|
'panels.market.checkedAt': '最近检查:{time}',
|
|
@@ -290,6 +294,8 @@ export const zh = {
|
|
|
290
294
|
'panels.market.add.failurePermission': '没有写入权限,无法安装',
|
|
291
295
|
'panels.market.add.failureBuildBlocked': '有依赖的安装脚本需要你允许后才能继续',
|
|
292
296
|
'panels.market.add.failureIntegrity': '下载的安装包校验失败',
|
|
297
|
+
'panels.market.add.failureStopProfile': '旧版还在用着(工作台正加载这个模块),这一版 dsh 不肯就地覆盖。',
|
|
298
|
+
'panels.market.add.failureCancelled': '这次操作被取消了,什么都没动。',
|
|
293
299
|
'panels.market.add.failureTimeout': '安装超时',
|
|
294
300
|
'panels.market.add.failurePnpmMissing': '没有找到 pnpm,无法安装',
|
|
295
301
|
'panels.market.add.failureInstalled':
|
|
@@ -374,7 +380,7 @@ export const zh = {
|
|
|
374
380
|
'panels.discover.missingIndex': '仓库里还没有索引文件 {path}',
|
|
375
381
|
'panels.discover.initTitle': '把这个仓库初始化成模块市场索引?',
|
|
376
382
|
'panels.discover.initCta': '初始化成市场索引',
|
|
377
|
-
'panels.discover.initWhat': '会在 {branch}
|
|
383
|
+
'panels.discover.initWhat': '会在 {branch} 分支写索引目录 market/ 与 README.md,提交一次并推上去;之后从这个工作台发布的模块会把打包好的文件提交到 artifacts/<包名>/<版本>/,条目写到 market/<包名>/<版本>.json。仓库的写权限归它的所有者。',
|
|
378
384
|
'panels.discover.initBranch': '分支',
|
|
379
385
|
'panels.discover.initBranchHint': '索引和打包文件都发到这个分支;空仓库会新建它。',
|
|
380
386
|
'panels.discover.initBranchBad': '分支名只能用字母、数字、点、下划线、斜杠或短横线',
|
|
@@ -725,7 +731,7 @@ export const zh = {
|
|
|
725
731
|
'approval.publish.artifacts': '打包文件',
|
|
726
732
|
'approval.publish.index': '索引',
|
|
727
733
|
'approval.publish.commits': '提交',
|
|
728
|
-
'approval.publish.twoCommits': '打包文件 +
|
|
734
|
+
'approval.publish.twoCommits': '打包文件 + 条目文件两次提交,一次推送',
|
|
729
735
|
'approval.publish.reading': '读取中…',
|
|
730
736
|
'approval.publish.changelog': '{version} 的更新日志',
|
|
731
737
|
'approval.publish.changelogPending': '{version} 这一版会写进更新日志,随包发布',
|