@iasiv5/dsh-skins 1.3.0 → 1.5.0
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.en.md +9 -17
- package/README.i18n.yaml +2 -2
- package/README.md +9 -17
- package/lib/client.js +89 -292
- package/lib/index.js +3 -46
- package/package.json +2 -3
package/lib/index.js
CHANGED
|
@@ -172,49 +172,6 @@ var WALLPAPER_FIELD = {
|
|
|
172
172
|
maxPixels: GLOBAL_MAX_PIXELS
|
|
173
173
|
};
|
|
174
174
|
var SKINS = {
|
|
175
|
-
tgcf: {
|
|
176
|
-
builtinAssets: {
|
|
177
|
-
// Registry mirrors the grid: the factory default (moonlit) leads.
|
|
178
|
-
moonlit: { mime: "image/webp", labelKey: "personalization.tgcf.moonlit" },
|
|
179
|
-
crimson: { mime: "image/webp", labelKey: "personalization.tgcf.crimson" },
|
|
180
|
-
pale: { mime: "image/webp", labelKey: "personalization.tgcf.pale" },
|
|
181
|
-
"seal-favicon": { mime: "image/webp" }
|
|
182
|
-
},
|
|
183
|
-
fields: [
|
|
184
|
-
// Factory default rides moonlit (花怜 · 月下同伞) since the 1.0.0
|
|
185
|
-
// wallpaper addition; it leads the grid (user ruling) and its label
|
|
186
|
-
// carries the (默认壁纸) suffix. crimson/pale remain selectable, and
|
|
187
|
-
// stored overrides are untouched by the default flip.
|
|
188
|
-
{ ...WALLPAPER_FIELD, default: "builtin:tgcf:moonlit", builtinChoices: ["moonlit", "crimson", "pale"] },
|
|
189
|
-
{
|
|
190
|
-
key: "slogan",
|
|
191
|
-
type: "text",
|
|
192
|
-
scope: "locale",
|
|
193
|
-
labelKey: "personalization.slogan",
|
|
194
|
-
maxLength: 40,
|
|
195
|
-
default: { zh: "百无禁忌", en: "No Taboos" }
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
// Ruling #14: ONE translucency knob. It drives the panel tint, the
|
|
199
|
-
// wallpaper scrim and the blur as one combined visual (the curve
|
|
200
|
-
// lives in the tgcf projector, calibrated through the historical
|
|
201
|
-
// defaults P=82 → scrim 30 / blur 12); the blur/scrim fields are
|
|
202
|
-
// retired — pre-1.0.0 there are no external users to migrate.
|
|
203
|
-
// Ruling #15: factory default 10; ruling #17 re-tunes it to 30 —
|
|
204
|
-
// a faint veil so menus read while the wallpaper still leads;
|
|
205
|
-
// 1.0.0 re-tunes it to 35 (user) for a touch more panel presence.
|
|
206
|
-
key: "panelOpacity",
|
|
207
|
-
type: "range",
|
|
208
|
-
scope: "single",
|
|
209
|
-
labelKey: "personalization.panelTranslucency",
|
|
210
|
-
min: 0,
|
|
211
|
-
max: 100,
|
|
212
|
-
step: 1,
|
|
213
|
-
unit: "%",
|
|
214
|
-
default: 35
|
|
215
|
-
}
|
|
216
|
-
]
|
|
217
|
-
},
|
|
218
175
|
// ADR-0004 (reversing design §9a): every catalog skin declares the same
|
|
219
176
|
// standard field set. The legacy skins' catalog slogan defaults are
|
|
220
177
|
// same-source with their factories' static `slogans`, and panelOpacity
|
|
@@ -273,9 +230,9 @@ var SKINS = {
|
|
|
273
230
|
}
|
|
274
231
|
]
|
|
275
232
|
},
|
|
276
|
-
// 美人志(v1.0.6
|
|
277
|
-
// (001
|
|
278
|
-
//
|
|
233
|
+
// 美人志(v1.0.6 前的出厂皮肤,现注册顺序第三位):6 张内置精选,出厂默认 yuntai
|
|
234
|
+
// (001合照)领头并对齐已移除 tgcf 皮肤的「出厂默认领先」惯例;panelOpacity 锚定
|
|
235
|
+
// 其二次曲线(projector 数学见 skins/meirenzhi/index.js)。
|
|
279
236
|
meirenzhi: {
|
|
280
237
|
builtinAssets: {
|
|
281
238
|
yuntai: { mime: "image/webp", labelKey: "personalization.meirenzhi.yuntai" },
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iasiv5/dsh-skins",
|
|
3
3
|
"description": "DSH Web 皮肤插件:多套品牌皮肤侧栏热切换。",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.5.0",
|
|
5
5
|
"homepage": "https://github.com/iasiv5/dsh-skins#readme",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -21,8 +21,7 @@
|
|
|
21
21
|
"theme",
|
|
22
22
|
"personalization",
|
|
23
23
|
"openbmc",
|
|
24
|
-
"uefi"
|
|
25
|
-
"tgcf"
|
|
24
|
+
"uefi"
|
|
26
25
|
],
|
|
27
26
|
"type": "module",
|
|
28
27
|
"main": "lib/index.js",
|