@wangnanshan/dsh-nanshan-publish-manager 1.0.5 → 1.0.7

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 CHANGED
@@ -1,4 +1,4 @@
1
- # 【南山】DSH发布管理
1
+ # 【南山】DSH发布Npm助手
2
2
 
3
3
  把本机开发的 DSH 组件,按 DeepSeek Harness 官方推荐的 npm 包形式发布给其他人安装。
4
4
 
@@ -158,7 +158,7 @@ OTP 不是插件强制每次都要填写的字段:
158
158
 
159
159
  ## 安装
160
160
 
161
- 在 Harness 的插件页安装这个 bundle 目录(推荐使用 Harness 的安装入口),安装后左侧栏会出现「【南山】DSH发布管理」图标。
161
+ 在 Harness 的插件页安装这个 bundle 目录(推荐使用 Harness 的安装入口),安装后左侧栏会出现「【南山】DSH发布Npm助手」图标。
162
162
 
163
163
  开发时也可以在 profile 里链接:
164
164
 
package/client.js CHANGED
@@ -12,8 +12,8 @@ window.__ModuleLoader__.load({
12
12
 
13
13
  const DICTIONARIES = {
14
14
  zh: {
15
- 'nav.title': '【南山】DSH发布管理',
16
- 'page.title': '【南山】DSH发布管理',
15
+ 'nav.title': '【南山】DSH发布Npm助手',
16
+ 'page.title': '【南山】DSH发布Npm助手',
17
17
  'page.subtitle': '把本机 DSH 组件按官方 npm 形式发布:配置、预检查、发布与记录。',
18
18
  'page.footnote': '官方发布形式:npm 包 + cordis.patch.yml(dsh.bundle)+ dsh.client。发布后,其他人可以在 DSH 插件页安装这个包名,组件就能直接使用。',
19
19
  'page.npmMissing': '没有找到 npm:请先安装 Node.js / npm,再刷新本页。',
@@ -348,8 +348,8 @@ window.__ModuleLoader__.load({
348
348
  'checkDetail.emptyList': 'npm pack 没有返回文件列表',
349
349
  },
350
350
  en: {
351
- 'nav.title': 'Nanshan DSH publishing',
352
- 'page.title': 'Nanshan DSH publish manager',
351
+ 'nav.title': 'Nanshan DSH npm publish assistant',
352
+ 'page.title': 'Nanshan DSH npm publish assistant',
353
353
  'page.subtitle': 'Publish local DSH components the official npm way: configure, pre-check, publish, and record.',
354
354
  'page.footnote': 'Official bundle form: an npm package with cordis.patch.yml (dsh.bundle) and dsh.client. Once published, anyone can install the package from the DSH plugin page.',
355
355
  'page.npmMissing': 'npm was not found. Install Node.js / npm, then refresh this page.',
@@ -759,7 +759,9 @@ window.__ModuleLoader__.load({
759
759
  .np-card__name{display:block;margin-top:2px;color:var(--np-ink-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
760
760
  .np-card__desc{margin:0;height:38px;font-size:12.5px;line-height:1.55;color:var(--np-ink-soft);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
761
761
  .np-card__tags{display:flex;flex-wrap:wrap;gap:6px}
762
- .np-card__foot{display:flex;align-items:center;gap:10px;margin-top:auto;padding-top:10px;border-top:1px solid var(--np-line);font-size:12px;color:var(--np-ink-soft)}
762
+ .np-card__bottom{display:flex;flex-direction:column;gap:8px;margin-top:auto;padding-top:10px;border-top:1px solid var(--np-line)}
763
+ .np-card__statusline{display:flex;align-items:center;gap:6px;min-height:22px}
764
+ .np-card__foot{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;font-size:12px;color:var(--np-ink-soft);min-width:0}
763
765
  .np-card__version{flex:none;font-size:12.5px;font-weight:600;color:var(--np-ink);font-variant-numeric:tabular-nums}
764
766
  .np-card__version-label{margin-right:4px;font-size:11px;font-weight:400;color:var(--np-ink-soft)}
765
767
  .np-card__last{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@@ -1600,7 +1602,6 @@ window.__ModuleLoader__.load({
1600
1602
  h('span', { className: 'np-card__title' }, component.title || component.name),
1601
1603
  h('span', { className: 'np-card__name np-mono' }, component.name),
1602
1604
  ),
1603
- h(StatusTag, { status: component.status }),
1604
1605
  ),
1605
1606
  h('p', { className: 'np-card__desc' }, component.description || t('common.noDescription')),
1606
1607
  h('div', { className: 'np-card__tags' },
@@ -1613,17 +1614,22 @@ window.__ModuleLoader__.load({
1613
1614
  component.status && component.status.attention ? h('span', { className: 'np-chip np-chip--fail' }, t('card.attention')) : null,
1614
1615
  component.recordCount > 0 ? h('span', { className: 'np-chip' }, tr('card.records', { n: component.recordCount })) : null,
1615
1616
  ),
1616
- h('div', { className: 'np-card__foot' },
1617
- h('span', { className: 'np-card__version' },
1618
- h('span', { className: 'np-card__version-label' }, t('card.version')),
1619
- `v${component.version || '0.0.0'}`,
1617
+ h('div', { className: 'np-card__bottom' },
1618
+ h('div', { className: 'np-card__statusline' },
1619
+ h(StatusTag, { status: component.status }),
1620
1620
  ),
1621
- h('span', { className: 'np-card__last' },
1622
- component.lastPublish
1623
- ? tr('card.lastPublish', { version: component.lastPublish.version, time: formatShortDate(component.lastPublish.at) })
1624
- : t('card.never'),
1621
+ h('div', { className: 'np-card__foot' },
1622
+ h('span', { className: 'np-card__version' },
1623
+ h('span', { className: 'np-card__version-label' }, t('card.version')),
1624
+ `v${component.version || '0.0.0'}`,
1625
+ ),
1626
+ h('span', { className: 'np-card__last' },
1627
+ component.lastPublish
1628
+ ? tr('card.lastPublish', { version: component.lastPublish.version, time: formatShortDate(component.lastPublish.at) })
1629
+ : t('card.never'),
1630
+ ),
1631
+ h('span', { className: 'np-card__open' }, t('card.open'), h(Glyph, { name: 'arrow', size: 13 })),
1625
1632
  ),
1626
- h('span', { className: 'np-card__open' }, t('card.open'), h(Glyph, { name: 'arrow', size: 13 })),
1627
1633
  ),
1628
1634
  )
1629
1635
  }
package/icon.svg CHANGED
@@ -1,4 +1,4 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" width="128" height="128" role="img" aria-label="Nanshan DSH publish manager">
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 128" width="128" height="128" role="img" aria-label="Nanshan DSH npm publish assistant">
2
2
  <defs>
3
3
  <linearGradient id="np-bg" x1="18" y1="10" x2="110" y2="120" gradientUnits="userSpaceOnUse">
4
4
  <stop offset="0" stop-color="#262932"/>
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Host half of 【南山】DSH发布管理.
2
+ * Host half of 【南山】DSH发布Npm助手.
3
3
  *
4
4
  * DSH components ship as ordinary npm packages: a bundle declares
5
5
  * `dsh.bundle.patch` (a cordis.patch.yml row) and, when it draws UI, a
package/locale/en.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "meta": {
3
- "title": "Nanshan DSH publish manager",
3
+ "title": "Nanshan DSH npm publish assistant",
4
4
  "description": "Publish locally developed DSH components as npm packages: component cards, release settings, publish pre-checks, and a publish history."
5
5
  },
6
- "title": "Nanshan DSH publish manager",
6
+ "title": "Nanshan DSH npm publish assistant",
7
7
  "description": "Publish locally developed DSH components as npm packages: component cards, release settings, publish pre-checks, and a publish history."
8
8
  }
package/locale/zh.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "meta": {
3
- "title": "【南山】DSH发布管理",
3
+ "title": "【南山】DSH发布Npm助手",
4
4
  "description": "把本机开发的 DSH 组件按 npm 官方形式发布:组件清单、发布设置、发布预检查、发布记录。"
5
5
  },
6
- "title": "【南山】DSH发布管理",
6
+ "title": "【南山】DSH发布Npm助手",
7
7
  "description": "把本机开发的 DSH 组件按 npm 官方形式发布:组件清单、发布设置、发布预检查、发布记录。"
8
8
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@wangnanshan/dsh-nanshan-publish-manager",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "type": "module",
5
- "description": "【南山】DSH发布管理:以 npm 包(dsh.bundle + dsh.client)的官方形式,管理本机 DSH 组件的发布设置、发布预检查、npm 发布与发布记录。",
5
+ "description": "【南山】DSH发布Npm助手:以 npm 包(dsh.bundle + dsh.client)的官方形式,管理本机 DSH 组件的发布设置、发布预检查、npm 发布与发布记录。",
6
6
  "license": "MIT",
7
7
  "keywords": [
8
8
  "dsh",