dsh-config-manager 0.1.38 → 0.1.40
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.d.ts +3 -65
- package/lib/client.js +111 -931
- package/lib/client.js.map +1 -1
- package/lib/index.js +5 -1
- package/lib/index.js.map +1 -1
- package/lib/market/github-repos.js +2 -2
- package/lib/market/github-repos.js.map +1 -1
- package/lib/market/my-repo.d.ts +3 -0
- package/lib/market/my-repo.js +10 -1
- package/lib/market/my-repo.js.map +1 -1
- package/lib/security/secret-scanner.d.ts +4 -1
- package/lib/security/secret-scanner.js +47 -8
- package/lib/security/secret-scanner.js.map +1 -1
- package/lib/ui/i18n.d.ts +0 -10
- package/lib/ui/i18n.js +0 -21
- package/lib/ui/i18n.js.map +1 -1
- package/package.json +1 -1
- package/src/client/market/MarketPanel.tsx +2 -15
- package/src/client/market/MyConfigsView.tsx +5 -7
- package/src/client/market/market-locales.ts +0 -117
- package/src/client/market/my-configs-view.ts +6 -2
- package/src/index.ts +6 -3
- package/src/market/github-repos.ts +2 -2
- package/src/market/my-repo.test.ts +32 -0
- package/src/market/my-repo.ts +12 -1
- package/src/security/secret-scanner.ts +41 -8
- package/src/security/security.test.ts +29 -0
- package/src/ui/i18n.ts +0 -21
- package/lib/ui/market-publish.d.ts +0 -129
- package/lib/ui/market-publish.js +0 -168
- package/lib/ui/market-publish.js.map +0 -1
- package/src/client/market/PublishView.tsx +0 -388
- package/src/ui/market-publish.test.ts +0 -219
- package/src/ui/market-publish.ts +0 -256
package/lib/client.d.ts
CHANGED
|
@@ -517,16 +517,6 @@ declare const uiZh: {
|
|
|
517
517
|
readonly 'market.detail.sectionsEmpty': "未声明分区";
|
|
518
518
|
readonly 'market.detail.statusValid': "校验通过";
|
|
519
519
|
readonly 'market.detail.statusInvalid': "校验未通过";
|
|
520
|
-
readonly 'marketPublish.stepSelect': "选择配置包";
|
|
521
|
-
readonly 'marketPublish.stepValidate': "本地校验";
|
|
522
|
-
readonly 'marketPublish.stepPrepare': "生成条目包";
|
|
523
|
-
readonly 'marketPublish.stepPush': "推送作者仓库";
|
|
524
|
-
readonly 'marketPublish.stepSubmit': "提交收录申请";
|
|
525
|
-
readonly 'marketPublish.errorItemId': "条目 id 仅允许字母数字开头,字符限 . _ -(最长 128)";
|
|
526
|
-
readonly 'marketPublish.errorName': "条目名称不能为空";
|
|
527
|
-
readonly 'marketPublish.repoWhitespace': "仓库地址不能包含空白字符";
|
|
528
|
-
readonly 'marketPublish.repoScheme': "仓库地址必须为 http(s) 链接";
|
|
529
|
-
readonly 'marketPublish.repoUserinfo': "仓库地址不能包含用户名或密码(userinfo);凭据请通过 DSH credentials 提供";
|
|
530
520
|
readonly 'myConfigs.autoField': "系统自动";
|
|
531
521
|
readonly 'myConfigs.field.id': "条目 ID";
|
|
532
522
|
readonly 'myConfigs.field.author': "作者";
|
|
@@ -1194,6 +1184,9 @@ type MyItemStatus = 'not-listed' | 'pr-pending' | 'listed';
|
|
|
1194
1184
|
interface MyRepoForm {
|
|
1195
1185
|
/** 配置名(预填 zip 文件名,可改);id 由其派生稳定 slug */
|
|
1196
1186
|
name: string;
|
|
1187
|
+
/** 显式目标条目 id(**仅 update 模式**用:由列表「更新」按钮预填,避免靠 name→slug 猜测匹配;
|
|
1188
|
+
* 上传(新条目)时省略;后端校验存在性,缺省回退 name slug 匹配(向后兼容) */
|
|
1189
|
+
id?: string;
|
|
1197
1190
|
description?: string;
|
|
1198
1191
|
categories?: string[];
|
|
1199
1192
|
}
|
|
@@ -1675,61 +1668,6 @@ declare const zh: {
|
|
|
1675
1668
|
readonly 'detail.approval.safe': "可导入";
|
|
1676
1669
|
readonly 'detail.approval.count': "已批准 {selected}/{total} 分区";
|
|
1677
1670
|
readonly 'detail.noApproval': "未批准任何分区,无法导入";
|
|
1678
|
-
readonly 'publish.title': "发布到市场";
|
|
1679
|
-
readonly 'publish.subtitle': "把本地导出配置分享到社区:作者自托管公开仓库 + 官方收录引用(方案 B),官方市场只读、零凭据";
|
|
1680
|
-
readonly 'publish.back': "返回市场";
|
|
1681
|
-
readonly 'publish.stepIndicator': "步骤 {current}/{total}:{label}";
|
|
1682
|
-
readonly 'publish.next': "下一步";
|
|
1683
|
-
readonly 'publish.prev': "上一步";
|
|
1684
|
-
readonly 'publish.step.select': "选择配置包";
|
|
1685
|
-
readonly 'publish.step.validate': "本地校验";
|
|
1686
|
-
readonly 'publish.step.prepare': "生成条目包";
|
|
1687
|
-
readonly 'publish.step.push': "推送作者仓库";
|
|
1688
|
-
readonly 'publish.step.submit': "提交收录申请";
|
|
1689
|
-
readonly 'publish.select.hint': "发布内容来自你的导出 zip:先在「导出」tab 生成备份文件,再回到这里选择。市场通道永不携带秘密——包含密钥的备份将被拒绝。";
|
|
1690
|
-
readonly 'publish.select.browse': "选择导出 ZIP…";
|
|
1691
|
-
readonly 'publish.select.reselect': "重新选择";
|
|
1692
|
-
readonly 'publish.select.file': "已选择:{name}";
|
|
1693
|
-
readonly 'publish.select.uploading': "上传中…";
|
|
1694
|
-
readonly 'publish.validate.hint': "本地 dry-run 校验(零写入):确认内容合法且不含密钥,之后才能生成条目包。";
|
|
1695
|
-
readonly 'publish.validate.run': "开始校验";
|
|
1696
|
-
readonly 'publish.validate.running': "校验中…";
|
|
1697
|
-
readonly 'publish.validate.ok': "校验通过:内容合法、不含密钥";
|
|
1698
|
-
readonly 'publish.validate.secrets': "包含密钥:市场通道永不携带秘密,拒绝发布";
|
|
1699
|
-
readonly 'publish.validate.invalid': "内容校验未通过,无法发布";
|
|
1700
|
-
readonly 'publish.validate.retry': "重新校验";
|
|
1701
|
-
readonly 'publish.form.title': "条目元数据";
|
|
1702
|
-
readonly 'publish.form.id': "条目 ID(必需)";
|
|
1703
|
-
readonly 'publish.form.idHint': "字母数字开头,仅 . _ -,最长 128;将作为 items/<id>/ 目录名";
|
|
1704
|
-
readonly 'publish.form.name': "条目名称(必需)";
|
|
1705
|
-
readonly 'publish.form.description': "描述";
|
|
1706
|
-
readonly 'publish.form.author': "作者";
|
|
1707
|
-
readonly 'publish.form.version': "版本";
|
|
1708
|
-
readonly 'publish.form.categories': "类别(逗号分隔)";
|
|
1709
|
-
readonly 'publish.form.repoUrl': "托管仓库 URL(可选)";
|
|
1710
|
-
readonly 'publish.form.repoUrlHint': "作者公开 Git 仓库地址(http(s),不含用户名/密码)。留空表示暂不关联仓库;推送指引与收录引用需要它。";
|
|
1711
|
-
readonly 'publish.form.generate': "生成条目包";
|
|
1712
|
-
readonly 'publish.form.generating': "生成中…";
|
|
1713
|
-
readonly 'publish.prepare.title': "条目包已生成";
|
|
1714
|
-
readonly 'publish.prepare.manifest': "items/<id>/manifest.json";
|
|
1715
|
-
readonly 'publish.prepare.sha256': "SHA-256:{hash}";
|
|
1716
|
-
readonly 'publish.prepare.sections': "包含分区:{sections}";
|
|
1717
|
-
readonly 'publish.prepare.warnings': "发布即公开、未经官方审核;下载方导入前会逐项核对";
|
|
1718
|
-
readonly 'publish.prepare.dirHint': "发布目录已在宿主受控临时区生成({dir}):items/<id>/manifest.json + config.zip";
|
|
1719
|
-
readonly 'publish.prepare.copyManifest': "复制 manifest";
|
|
1720
|
-
readonly 'publish.push.hint': "先下载「发布包」并解压为 dist/,然后在你自己的公开仓库中按序执行以下命令(插件不做任何 git 写操作、不持有凭据):";
|
|
1721
|
-
readonly 'publish.push.commands': "git 命令";
|
|
1722
|
-
readonly 'publish.push.download': "下载发布包";
|
|
1723
|
-
readonly 'publish.push.copy': "复制命令";
|
|
1724
|
-
readonly 'publish.push.repoMissing': "尚未填写托管仓库 URL——请在上一步「生成条目包」中填写,或手动把 items/{id}/ 目录推送到你的公开仓库。";
|
|
1725
|
-
readonly 'publish.submit.hint': "把下面的片段追加到官方市场仓库 index.json 的 items[],然后提 PR。收录由创建者人工审核。";
|
|
1726
|
-
readonly 'publish.submit.snippet': "index.json 追加片段(items[] 内新增一条)";
|
|
1727
|
-
readonly 'publish.submit.copy': "复制片段";
|
|
1728
|
-
readonly 'publish.submit.fork': "提交流程:fork 官方仓库({url})→ 在 index.json 的 items[] 追加上述片段 → 提交 PR。";
|
|
1729
|
-
readonly 'publish.submit.manual': "也可把「条目 ID + 仓库地址」提交到项目 issue,由创建者人工收录。";
|
|
1730
|
-
readonly 'publish.submit.repoMissing': "收录引用需要托管仓库 URL——请先在上一步「生成条目包」中填写。";
|
|
1731
|
-
readonly 'publish.copied': "已复制";
|
|
1732
|
-
readonly 'publish.copyFailed': "复制失败,请手动选择文本复制";
|
|
1733
1671
|
readonly 'myconfigs.tab.browse': "浏览市场";
|
|
1734
1672
|
readonly 'myconfigs.tab.myconfigs': "我的配置";
|
|
1735
1673
|
readonly 'myconfigs.back': "返回市场";
|