@dickpy/dsh-imagegen 1.0.2 → 1.0.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/README.md +7 -7
- package/docs/images/image-generation-studio.png +0 -0
- package/docs/images/plugin-settings.png +0 -0
- package/lib/client.js +356 -129
- package/lib/client.js.map +1 -1
- package/lib/index.js +3 -1
- package/package.json +1 -1
- package/src/client/ImageGenPanel.tsx +132 -27
- package/src/client/SettingsCard.tsx +5 -0
- package/src/client/locales.ts +22 -0
- package/src/client/panel.module.css +197 -26
- package/src/client/settings-card.module.css +26 -0
- package/src/protocol.ts +3 -0
- package/src/updater.ts +2 -1
|
@@ -95,6 +95,32 @@
|
|
|
95
95
|
padding-bottom: 8px;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
.versionRow {
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
justify-content: space-between;
|
|
102
|
+
gap: 12px;
|
|
103
|
+
padding: 12px 0;
|
|
104
|
+
border-bottom: 1px solid var(--dsw-alias-border-l2);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.versionLabel {
|
|
108
|
+
font-size: 13px;
|
|
109
|
+
font-weight: 500;
|
|
110
|
+
line-height: 1.5;
|
|
111
|
+
color: var(--dsw-alias-label-primary);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.versionValue {
|
|
115
|
+
padding: 1px 8px;
|
|
116
|
+
border-radius: 999px;
|
|
117
|
+
background: var(--dsw-alias-bg-module-platform);
|
|
118
|
+
color: var(--dsw-alias-label-secondary);
|
|
119
|
+
font-family: var(--dsw-font-family-mono, monospace);
|
|
120
|
+
font-size: 12px;
|
|
121
|
+
line-height: 1.5;
|
|
122
|
+
}
|
|
123
|
+
|
|
98
124
|
/* --- fields (mirror of the official plugin-config fields) --------------------- */
|
|
99
125
|
|
|
100
126
|
.field {
|
package/src/protocol.ts
CHANGED
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|
/** Settings namespace this plugin owns (host settings seam + bridge). */
|
|
8
8
|
export const IMAGEGEN_SETTINGS_NAMESPACE = 'dsh-imagegen'
|
|
9
9
|
|
|
10
|
+
/** Published package version shared by the host updater and the client UI. */
|
|
11
|
+
export const PLUGIN_VERSION = '1.0.4'
|
|
12
|
+
|
|
10
13
|
/** Same-origin route family (loopback-only, mirroring the dsh-ssh fence). */
|
|
11
14
|
export const SETTINGS_API = {
|
|
12
15
|
describe: '/api/dsh-imagegen/settings/describe',
|
package/src/updater.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/** GitHub Release discovery and explicit, user-triggered plugin updates. */
|
|
2
2
|
|
|
3
3
|
import { spawn, type ChildProcess } from 'node:child_process'
|
|
4
|
+
import { PLUGIN_VERSION } from './protocol.ts'
|
|
4
5
|
|
|
5
6
|
/** Keep this in sync with package.json for each published release. */
|
|
6
|
-
export const CURRENT_VERSION =
|
|
7
|
+
export const CURRENT_VERSION = PLUGIN_VERSION
|
|
7
8
|
export const PACKAGE_NAME = '@dickpy/dsh-imagegen'
|
|
8
9
|
export const RELEASES_URL = 'https://api.github.com/repos/dickpy/dsh-imagegen/releases/latest'
|
|
9
10
|
|