dsh-plugin-pack 1.0.7 → 1.0.8
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 +19 -29
- package/package.json +1 -1
package/client.js
CHANGED
|
@@ -2325,6 +2325,25 @@ window.__ModuleLoader__.load({ id: 'dsh-plugin-pack', factory: (require) => {
|
|
|
2325
2325
|
hotBusy ? h(Spinner, { label: t('hotload.running') }) : t('hotload'),
|
|
2326
2326
|
),
|
|
2327
2327
|
h('button', { className: 'pp-btn sm', disabled: busy, onClick: load }, busy ? h(Spinner, { label: t('loading') }) : t('refresh')),
|
|
2328
|
+
/* 「添加整合包」放在这一行最右,对齐 DSH 自带的「添加插件」位置
|
|
2329
|
+
* (页面标题行右上角),而不是沉到「导入插件整合包」小标题旁边。
|
|
2330
|
+
* 只在导入页出现,其它子页不占位。 */
|
|
2331
|
+
onlyTab === 'import' || tab === 'import'
|
|
2332
|
+
? h(
|
|
2333
|
+
'button',
|
|
2334
|
+
{
|
|
2335
|
+
className: 'pp-btn sm',
|
|
2336
|
+
style: { display: 'inline-flex', alignItems: 'center', gap: 5 },
|
|
2337
|
+
disabled: busy,
|
|
2338
|
+
onClick: () => {
|
|
2339
|
+
setNetResult(null);
|
|
2340
|
+
setNetOpen(true);
|
|
2341
|
+
},
|
|
2342
|
+
},
|
|
2343
|
+
h('span', { style: { fontSize: 14, lineHeight: 1 } }, '+'),
|
|
2344
|
+
t('net.button'),
|
|
2345
|
+
)
|
|
2346
|
+
: null,
|
|
2328
2347
|
),
|
|
2329
2348
|
error ? h(Alert, { kind: 'err' }, `${t('failed')}: ${error}`) : null,
|
|
2330
2349
|
hotResult
|
|
@@ -2550,35 +2569,6 @@ window.__ModuleLoader__.load({ id: 'dsh-plugin-pack', factory: (require) => {
|
|
|
2550
2569
|
const importPage = h(
|
|
2551
2570
|
'div',
|
|
2552
2571
|
null,
|
|
2553
|
-
/* 右上角「添加整合包」按钮 —— 和 DSH 自带的「添加插件」同位置同风格。
|
|
2554
|
-
* 点开是一个弹窗,在里面填地址、点安装。 */
|
|
2555
|
-
h(
|
|
2556
|
-
'div',
|
|
2557
|
-
{
|
|
2558
|
-
style: {
|
|
2559
|
-
display: 'flex',
|
|
2560
|
-
alignItems: 'center',
|
|
2561
|
-
justifyContent: 'space-between',
|
|
2562
|
-
gap: 12,
|
|
2563
|
-
marginBottom: 12,
|
|
2564
|
-
},
|
|
2565
|
-
},
|
|
2566
|
-
h('div', { style: { fontSize: 14, fontWeight: 600 } }, t('import.pageTitle')),
|
|
2567
|
-
h(
|
|
2568
|
-
'button',
|
|
2569
|
-
{
|
|
2570
|
-
className: 'pp-btn',
|
|
2571
|
-
style: { display: 'inline-flex', alignItems: 'center', gap: 6, flex: 'none' },
|
|
2572
|
-
onClick: () => {
|
|
2573
|
-
setNetResult(null);
|
|
2574
|
-
setNetOpen(true);
|
|
2575
|
-
},
|
|
2576
|
-
},
|
|
2577
|
-
h('span', { style: { fontSize: 15, lineHeight: 1 } }, '+'),
|
|
2578
|
-
t('net.button'),
|
|
2579
|
-
),
|
|
2580
|
-
),
|
|
2581
|
-
|
|
2582
2572
|
h(DropZone, { onFile: runDrop, busy, dropRef: lastDrop, phase }),
|
|
2583
2573
|
|
|
2584
2574
|
// 后台任务:切走画面回来能看到刚才那次导入的结果
|