@qic-9821/dsh-plugin-sync 0.1.0 → 0.1.1
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/client.js +1 -0
- package/lib/engine.js +1 -0
- package/lib/http.js +1 -0
- package/package.json +1 -1
package/client.js
CHANGED
|
@@ -182,6 +182,7 @@ window.__ModuleLoader__.load({
|
|
|
182
182
|
: status.localError || '读取失败',
|
|
183
183
|
],
|
|
184
184
|
['profile 目录', status.profileDir || '?'],
|
|
185
|
+
['版本', status.package ? `${status.package.name} ${status.package.version || ''}`.trim() : '?'],
|
|
185
186
|
['对端', status.peer?.describe || '?'],
|
|
186
187
|
[
|
|
187
188
|
'上次同步',
|
package/lib/engine.js
CHANGED
|
@@ -90,6 +90,7 @@ export class Engine {
|
|
|
90
90
|
},
|
|
91
91
|
direction: cfg.direction,
|
|
92
92
|
conflict: cfg.conflict,
|
|
93
|
+
package: { name: PACKAGE_NAME, version: this.version || null },
|
|
93
94
|
capabilities: Object.fromEntries(CAPABILITY_KEYS.map((key) => [key, Boolean(cfg[key])])),
|
|
94
95
|
local,
|
|
95
96
|
localError,
|
package/lib/http.js
CHANGED
|
@@ -319,6 +319,7 @@ function render() {
|
|
|
319
319
|
const s = state.status
|
|
320
320
|
$('status').innerHTML = [
|
|
321
321
|
['本机', s.local ? (s.local.node || '?') + ' · ' + (s.local.profile || '') + ' · ' + s.local.bundles + ' 包 / ' + s.local.plugins + ' 条目' : '读取失败'],
|
|
322
|
+
['版本', s.package ? s.package.name + ' ' + (s.package.version || '') : '?'],
|
|
322
323
|
['profile', s.profileDir || '?'],
|
|
323
324
|
['对端', s.peer.describe],
|
|
324
325
|
['上次同步', s.lastRun ? (s.lastRun.at + ' · ' + (s.lastRun.ok ? '成功' : '失败:' + (s.lastRun.error || ''))) : '还没跑过'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qic-9821/dsh-plugin-sync",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Keep the DSH plugin set (inventory, configs, enable state, package installs, local bundle binaries) in sync between two machines, with per-capability switches, schedule controls and a settings/panel UI.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "QIC-9821",
|