refactor(settings): 通用置顶;删除「图片保存」页(并入通用,去掉定时清理);设置面板少框线多留白
This commit is contained in:
1 parent
ade1bbfda7
commit
d0d2d9587c
4 files changed
+38
-54
No files matched your search
@@ -169,7 +169,7 @@
|
||||
}
|
||||
|
||||
function renderGeneralTab (ctx) {
|
||||
const { GEN_CONCURRENCY_DEFAULT, GEN_CONCURRENCY_MAX, GEN_CONCURRENCY_MIN, TASK_STALL_END_MAX, TASK_STALL_END_MIN, applyTheme, draft, setDraft, setTheme, theme } = ctx
|
||||
const { TASK_STALL_END_MAX, TASK_STALL_END_MIN, applyTheme, draft, imageLibSection, setDraft, setTheme, theme } = ctx
|
||||
const generalTab = el('div', { className: 'iwb-section' },
|
||||
el('div', { className: 'iwb-section-title' }, '数据与目录'),
|
||||
// 桌面端才有目录概念;网页版退回原来的浏览器说明
|
||||
@@ -191,6 +191,9 @@
|
||||
el('div', { className: 'iwb-row' },
|
||||
el('label', { className: 'iwb-check' }, el('input', { type: 'checkbox', checked: draft.canvas.soundEnabled === true, onChange: (e) => setDraft((d) => ({ ...d, canvas: { ...d.canvas, soundEnabled: e.target.checked } })) }, null), ' 生成完成提示音'),
|
||||
),
|
||||
el('div', { style: { height: 16 } }),
|
||||
// 原「图片保存」页并入这里(定时清理已去掉)
|
||||
imageLibSection || null,
|
||||
// 桌面端没有服务端、也没有「浏览器本地模式」这回事 ⇒ 整段不渲染
|
||||
isDesk() ? null : el('div', { className: 'iwb-section-sub' }, '访问口令'),
|
||||
isDesk() ? null : el('div', { className: 'iwb-hint' }, '口令是服务端(Node 版 image-workbench-app)的 Basic Auth 功能;当前为浏览器本地模式(数据存在你的浏览器),页面与数据本就只在本机,无需设置口令。'),
|
||||
|
||||
Reference in new issue
Block a user