dsh-folia 4.26.0-pre.72 → 4.26.0-pre.73
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 +1 -1
- package/lib/client.js +2 -39
- package/package.json +3 -3
package/README.md
CHANGED
package/lib/client.js
CHANGED
|
@@ -1019,7 +1019,7 @@ window.__ModuleLoader__.load({
|
|
|
1019
1019
|
"Grok": "Grok",
|
|
1020
1020
|
"Kimi": "Kimi",
|
|
1021
1021
|
"Qwen": "Qwen",
|
|
1022
|
-
"
|
|
1022
|
+
"dshAI": "dshAI",
|
|
1023
1023
|
"…": "…",
|
|
1024
1024
|
// 开机动画:已开启但无选片时的提示(4.8.2)
|
|
1025
1025
|
"已开启,但还没有选片 —— 下载一条后点「使用」": "Enabled, but no clip is selected yet — download one, then press Use",
|
|
@@ -21842,27 +21842,8 @@ window.__ModuleLoader__.load({
|
|
|
21842
21842
|
const CAP_META = { fontSize: '11px', opacity: 0.6, marginTop: '2px', wordBreak: 'break-all' };
|
|
21843
21843
|
|
|
21844
21844
|
/** 作者仓库预览占位块:固定 120px 高,图片失败时仍占位(不塌、不露裂图)。 */
|
|
21845
|
-
const CAP_PREVIEW_BOX = {
|
|
21846
|
-
width: '100%',
|
|
21847
|
-
height: '120px',
|
|
21848
|
-
overflow: 'hidden',
|
|
21849
|
-
borderRadius: '8px',
|
|
21850
|
-
background: 'rgba(255,255,255,0.06)',
|
|
21851
|
-
};
|
|
21852
|
-
|
|
21853
21845
|
|
|
21854
|
-
/** 本地封面:按名字做确定性色相,永不依赖网络(离线也好看)。 */
|
|
21855
|
-
function capCoverHue(item) {
|
|
21856
|
-
const text = String((item && (item.pkg || item.name)) || '');
|
|
21857
|
-
let h = 0;
|
|
21858
|
-
for (let i = 0; i < text.length; i += 1) h = (h * 31 + text.charCodeAt(i)) % 360;
|
|
21859
|
-
return h;
|
|
21860
|
-
}
|
|
21861
21846
|
|
|
21862
|
-
function capCoverBg(item) {
|
|
21863
|
-
const h = capCoverHue(item);
|
|
21864
|
-
return 'linear-gradient(135deg, hsl(' + h + ' 45% 26%) 0%, hsl(' + ((h + 42) % 360) + ' 50% 15%) 100%)';
|
|
21865
|
-
}
|
|
21866
21847
|
|
|
21867
21848
|
function CapabilityCard({ item }) {
|
|
21868
21849
|
const [open, setOpen] = React.useState(false);
|
|
@@ -21906,24 +21887,6 @@ window.__ModuleLoader__.load({
|
|
|
21906
21887
|
const body = [head];
|
|
21907
21888
|
if (open) {
|
|
21908
21889
|
const line = (k, v) => React.createElement('div', { key: k, className: 'we-picker__hint', style: { marginTop: '4px' } }, v);
|
|
21909
|
-
// 本地生成的封面(图标 + 名称 + 分类),不依赖任何外部图片,离线也好看。
|
|
21910
|
-
const sectionLabel = item.section === 'fun' ? weT('娱乐') : weT('工作');
|
|
21911
|
-
body.push(React.createElement('div', { key: 'cover', style: { marginTop: '8px' } },
|
|
21912
|
-
React.createElement('div', {
|
|
21913
|
-
style: {
|
|
21914
|
-
height: '120px', borderRadius: '8px', overflow: 'hidden',
|
|
21915
|
-
display: 'flex', alignItems: 'center', gap: '12px', padding: '0 16px',
|
|
21916
|
-
background: capCoverBg(item),
|
|
21917
|
-
},
|
|
21918
|
-
}),
|
|
21919
|
-
React.createElement('span', { style: { fontSize: '40px', lineHeight: 1 } }, item.icon || '🧩'),
|
|
21920
|
-
React.createElement('div', { style: { minWidth: 0 } },
|
|
21921
|
-
React.createElement('div', {
|
|
21922
|
-
style: { fontWeight: 600, fontSize: '14px', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' },
|
|
21923
|
-
}, item.name),
|
|
21924
|
-
React.createElement('div', {
|
|
21925
|
-
style: { marginTop: '4px', fontSize: '11px', opacity: 0.78, whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' },
|
|
21926
|
-
}, sectionLabel + ' · ' + (item.pkg || '')))));
|
|
21927
21890
|
body.push(React.createElement('div', { key: 'd-title', style: { marginTop: '8px', fontSize: '12px', fontWeight: 600 } }, weT('详情')));
|
|
21928
21891
|
body.push(line('desc', item.authorDesc || item.summary || ''));
|
|
21929
21892
|
body.push(React.createElement('div', { key: 'u-title', style: { marginTop: '8px', fontSize: '12px', fontWeight: 600 } }, weT('如何使用')));
|
|
@@ -44756,7 +44719,7 @@ window.__ModuleLoader__.load({
|
|
|
44756
44719
|
qwen: { get label() { return weT("Qwen"); }, img: ROPE_IMG_QWEN, w: 64, h: 80 },
|
|
44757
44720
|
// ── 本仓自有形象(fork):`folia` —— 顺序必须与 settings-schema 的 `ROPE_FORM_VALUES` 一致
|
|
44758
44721
|
// (test/verify-presets.mjs 断言两张表的键序逐字相同)。源图 350×384 ⇒ 64 宽时高 70。──
|
|
44759
|
-
folia: { get label() { return weT("
|
|
44722
|
+
folia: { get label() { return weT("dshAI"); }, img: ROPE_IMG_FOLIA, w: 64, h: 70 },
|
|
44760
44723
|
};
|
|
44761
44724
|
|
|
44762
44725
|
/**
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-folia",
|
|
3
|
-
"displayName": "
|
|
4
|
-
"version": "4.26.0-pre.
|
|
5
|
-
"description": "
|
|
3
|
+
"displayName": "dshAI · 壁纸引擎与 AI 桌宠",
|
|
4
|
+
"version": "4.26.0-pre.73",
|
|
5
|
+
"description": "dshAI:壁纸引擎 + AI 桌宠语音助手 + 多人设角色卡 + 皮肤/开机动画 + 能力市场,一站式桌面伴侣。",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=22.12.0",
|