dsh-mo-image 0.5.1 → 0.7.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/CHANGELOG.md +18 -0
- package/README.md +468 -409
- package/icon.png +0 -0
- package/lib/adapter-kit.js +670 -0
- package/lib/adapters/async.js +578 -0
- package/lib/adapters/cn.js +108 -0
- package/lib/adapters/openai.js +252 -0
- package/lib/adapters.js +1112 -454
- package/lib/client.js +1006 -150
- package/lib/comfy-workflow.js +528 -0
- package/lib/config-store.js +692 -0
- package/lib/image-execution.js +835 -0
- package/lib/image-jobs.js +333 -0
- package/lib/image-queue.js +195 -0
- package/lib/image-service.js +226 -0
- package/lib/image-worker.js +195 -0
- package/lib/index.js +517 -739
- package/lib/localized-error.js +1 -0
- package/lib/png-scale.js +103 -28
- package/lib/prompt-profiles.js +160 -68
- package/lib/request-auth.js +143 -0
- package/lib/retry.js +162 -0
- package/lib/settings-memory.js +33 -0
- package/lib/status.js +187 -0
- package/locale/messages.csv +49 -3
- package/package.json +3 -1
- package/skills/mo-image-editing/SKILL.md +34 -72
- package/skills/mo-image-generation/SKILL.md +59 -152
package/lib/client.js
CHANGED
|
@@ -574,27 +574,6 @@ window.__ModuleLoader__.load({
|
|
|
574
574
|
return out;
|
|
575
575
|
}
|
|
576
576
|
|
|
577
|
-
// Fast 是纯视觉开关( codex 一样),按会话记住;存储不可用时只。
|
|
578
|
-
// 内存镜像,绝不能因为它把选择器弄坏。
|
|
579
|
-
const CODEX_FAST_PREFIX = 'dsh.mo-image.codex-fast.v1.';
|
|
580
|
-
const codexFastMemory = new Map();
|
|
581
|
-
function readCodexFast(sessionId) {
|
|
582
|
-
if (!sessionId) return false;
|
|
583
|
-
if (codexFastMemory.has(sessionId)) return codexFastMemory.get(sessionId);
|
|
584
|
-
try {
|
|
585
|
-
if (typeof localStorage === 'undefined') return false;
|
|
586
|
-
return localStorage.getItem(CODEX_FAST_PREFIX + sessionId) === '1';
|
|
587
|
-
} catch (_error) { return false; }
|
|
588
|
-
}
|
|
589
|
-
function writeCodexFast(sessionId, on) {
|
|
590
|
-
if (!sessionId) return;
|
|
591
|
-
codexFastMemory.set(sessionId, on);
|
|
592
|
-
try {
|
|
593
|
-
if (typeof localStorage === 'undefined') return;
|
|
594
|
-
localStorage.setItem(CODEX_FAST_PREFIX + sessionId, on ? '1' : '0');
|
|
595
|
-
} catch (_error) { /* storage disabled; the memory mirror still holds it */ }
|
|
596
|
-
}
|
|
597
|
-
|
|
598
577
|
function useThemeClassRevision() {
|
|
599
578
|
const [, setRevision] = React.useState(0);
|
|
600
579
|
React.useEffect(() => {
|
|
@@ -608,13 +587,12 @@ window.__ModuleLoader__.load({
|
|
|
608
587
|
// 质量档位由宿主按「当前模型」下发;不同适配器的挡位名称、数量都不同,
|
|
609
588
|
// 不支持的模型直接隐藏这一栏。
|
|
610
589
|
const IMAGE_DEFAULT_QUALITY = 'high';
|
|
611
|
-
const QUALITY_VALUES = new Set(['off', 'low', 'medium', 'high', 'max', 'auto', 'standard', 'hd', 'default', 'quality', 'turbo']);
|
|
590
|
+
const QUALITY_VALUES = new Set(['off', 'low', 'medium', 'high', 'xhigh', 'max', 'auto', 'standard', 'hd', 'default', 'quality', 'turbo']);
|
|
612
591
|
const IMAGE_MIN_SIDE = 64;
|
|
613
592
|
const IMAGE_MAX_SIDE = 4096;
|
|
614
593
|
|
|
615
594
|
function normalizeQuality(value) {
|
|
616
595
|
const raw = String(value || '').trim().toLowerCase();
|
|
617
|
-
if (raw === 'xhigh') return 'max'; // 旧的极高 → Max
|
|
618
596
|
return QUALITY_VALUES.has(raw) ? raw : IMAGE_DEFAULT_QUALITY;
|
|
619
597
|
}
|
|
620
598
|
|
|
@@ -627,6 +605,41 @@ window.__ModuleLoader__.load({
|
|
|
627
605
|
return spec && Array.isArray(spec.options) && spec.options.length ? spec : null;
|
|
628
606
|
}
|
|
629
607
|
|
|
608
|
+
/**
|
|
609
|
+
* 尺寸能力:由宿主按「提供商 + 模型」下发,查不到就按宽高输入框渲染。
|
|
610
|
+
* control: 'wh' | 'aspect' | 'preset' | 'prompt'
|
|
611
|
+
*/
|
|
612
|
+
function sizeSpecFor(providerId, model) {
|
|
613
|
+
const provider = imageCatalog.capabilities.find((item) => item && item.providerId === providerId);
|
|
614
|
+
const entry = provider && Array.isArray(provider.models)
|
|
615
|
+
? provider.models.find((item) => item && item.model === model)
|
|
616
|
+
: undefined;
|
|
617
|
+
const spec = entry && entry.size;
|
|
618
|
+
return spec && typeof spec === 'object' ? spec : null;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
function sizeControlOf(spec) {
|
|
622
|
+
const control = spec && spec.control ? String(spec.control) : 'wh';
|
|
623
|
+
return ['wh', 'aspect', 'preset', 'prompt'].includes(control) ? control : 'wh';
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
/** 尺寸的一级显示值:和面板里实际的控件保持一致。 */
|
|
627
|
+
function sizeValueLabel(spec, defaults, translate) {
|
|
628
|
+
const t = translate || fallbackTranslate;
|
|
629
|
+
if (!defaults || defaults.auto) return t('seat.sizeAutoValue');
|
|
630
|
+
const control = sizeControlOf(spec);
|
|
631
|
+
if (control === 'aspect') {
|
|
632
|
+
const aspect = String(defaults.aspect || '');
|
|
633
|
+
const tier = String(defaults.tier || '');
|
|
634
|
+
return [aspect, tier].filter(Boolean).join(' · ') || t('seat.sizeAutoValue');
|
|
635
|
+
}
|
|
636
|
+
if (control === 'preset') {
|
|
637
|
+
const preset = String(defaults.preset || '');
|
|
638
|
+
return /^\d+x\d+$/.test(preset) ? preset.split('x').join(' × ') : preset;
|
|
639
|
+
}
|
|
640
|
+
return defaults.width + ' × ' + defaults.height;
|
|
641
|
+
}
|
|
642
|
+
|
|
630
643
|
function qualityValueFor(value, spec) {
|
|
631
644
|
const raw = normalizeQuality(value);
|
|
632
645
|
if (spec) {
|
|
@@ -710,9 +723,8 @@ window.__ModuleLoader__.load({
|
|
|
710
723
|
};
|
|
711
724
|
}
|
|
712
725
|
|
|
713
|
-
function sizeLabelOf(defaults, translate) {
|
|
714
|
-
|
|
715
|
-
return defaults.width + ' × ' + defaults.height;
|
|
726
|
+
function sizeLabelOf(defaults, translate, spec) {
|
|
727
|
+
return sizeValueLabel(spec, defaults, translate);
|
|
716
728
|
}
|
|
717
729
|
|
|
718
730
|
function makeId() {
|
|
@@ -1055,6 +1067,8 @@ window.__ModuleLoader__.load({
|
|
|
1055
1067
|
useThemeClassRevision();
|
|
1056
1068
|
const t = props.t || fallbackTranslate;
|
|
1057
1069
|
const isNew = !!props.isNew;
|
|
1070
|
+
// 尺寸交给模型(自动)时,面板里才需要显示宽高落在哪。
|
|
1071
|
+
const sizeAuto = props.sizeAuto !== false;
|
|
1058
1072
|
const [draft, setDraft] = React.useState(() => ({
|
|
1059
1073
|
...props.provider,
|
|
1060
1074
|
id: props.provider.id,
|
|
@@ -1064,6 +1078,7 @@ window.__ModuleLoader__.load({
|
|
|
1064
1078
|
apiKeyEnv: props.provider.apiKeyEnv || '',
|
|
1065
1079
|
keySource: props.provider.keySource || '',
|
|
1066
1080
|
adapter: props.provider.adapter || '',
|
|
1081
|
+
hostModel: props.provider.hostModel || '',
|
|
1067
1082
|
protocol: props.provider.protocol || 'openai-images',
|
|
1068
1083
|
optionalKey: !!props.provider.optionalKey,
|
|
1069
1084
|
models: (props.provider.models || []).slice(),
|
|
@@ -1083,6 +1098,9 @@ window.__ModuleLoader__.load({
|
|
|
1083
1098
|
const [showAllCandidates, setShowAllCandidates] = React.useState(false);
|
|
1084
1099
|
const [dragFrom, setDragFrom] = React.useState(-1);
|
|
1085
1100
|
const [dropAt, setDropAt] = React.useState(null);
|
|
1101
|
+
// 工作流解析结果与用户确认过的映射,按模型 id 分开存。
|
|
1102
|
+
const [workflowAnalysis, setWorkflowAnalysis] = React.useState({});
|
|
1103
|
+
const [mappingDraft, setMappingDraft] = React.useState({});
|
|
1086
1104
|
const candidateSearchRef = React.useRef(null);
|
|
1087
1105
|
const rowDragPreview = useModelRowDragPreview(MC.modelDragPreview);
|
|
1088
1106
|
const providerPresets = providerPresetsForUi();
|
|
@@ -1282,7 +1300,26 @@ window.__ModuleLoader__.load({
|
|
|
1282
1300
|
h('input', { className: MC.input, value: draft.baseUrl, onChange: (e) => setDraft({ ...draft, baseUrl: e.target.value }), placeholder: urlPlaceholder }),
|
|
1283
1301
|
urlHint ? h('p', { className: MC.advancedHint, style: { margin: 0 } }, urlHint) : null
|
|
1284
1302
|
);
|
|
1285
|
-
const protocolField = field(t('form.protocol'), h('select', {
|
|
1303
|
+
const protocolField = field(t('form.protocol'), h('select', {
|
|
1304
|
+
className: MC.input + ' ' + MC.selectInput,
|
|
1305
|
+
value: draft.adapter || '',
|
|
1306
|
+
onChange: (e) => setDraft({ ...draft, adapter: e.target.value })
|
|
1307
|
+
}, [h('option', { key: '', value: '' }, t('form.protocolAuto'))].concat(
|
|
1308
|
+
imageCatalog.adapters.map((item) => h('option', { key: item.id, value: item.id }, item.label || item.id))
|
|
1309
|
+
)));
|
|
1310
|
+
// Responses API 的顶层模型是「调度模型」,只有这个协议需要填。
|
|
1311
|
+
const hostModelField = draft.adapter === 'openai-responses'
|
|
1312
|
+
? h('div', { className: MC.field },
|
|
1313
|
+
h('label', { className: MC.fieldLabel }, t('form.hostModel')),
|
|
1314
|
+
h('input', {
|
|
1315
|
+
className: MC.input,
|
|
1316
|
+
value: draft.hostModel || 'gpt-5.2',
|
|
1317
|
+
placeholder: 'gpt-5.2',
|
|
1318
|
+
onChange: (e) => setDraft({ ...draft, hostModel: e.target.value })
|
|
1319
|
+
}),
|
|
1320
|
+
h('p', { className: MC.advancedHint, style: { margin: 0 } }, t('form.hostModelHint'))
|
|
1321
|
+
)
|
|
1322
|
+
: null;
|
|
1286
1323
|
const keyPlaceholder = isNew
|
|
1287
1324
|
? (draft.optionalKey ? t('form.keyLocalOptional') : t('form.keyEnter'))
|
|
1288
1325
|
: (props.provider.hasKey || props.provider.key
|
|
@@ -1320,12 +1357,280 @@ window.__ModuleLoader__.load({
|
|
|
1320
1357
|
const entry = draft.modelOptions[id];
|
|
1321
1358
|
return entry && typeof entry.workflow === 'string' ? entry.workflow : '';
|
|
1322
1359
|
};
|
|
1360
|
+
/** 统一改某个模型的选项:函数式更新,避免连续 setDraft 用同一份旧 draft 互相覆盖。 */
|
|
1361
|
+
const updateModelEntry = (id, mutate) => {
|
|
1362
|
+
setDraft((prev) => {
|
|
1363
|
+
const modelOptions = { ...prev.modelOptions };
|
|
1364
|
+
const entry = { ...(modelOptions[id] || {}) };
|
|
1365
|
+
mutate(entry);
|
|
1366
|
+
if (entry.workflow || entry.params || entry.expose) modelOptions[id] = entry;
|
|
1367
|
+
else delete modelOptions[id];
|
|
1368
|
+
return { ...prev, modelOptions: modelOptions };
|
|
1369
|
+
});
|
|
1370
|
+
};
|
|
1323
1371
|
const setModelWorkflow = (id, workflow) => {
|
|
1324
|
-
const modelOptions = { ...draft.modelOptions };
|
|
1325
1372
|
const text = String(workflow || '');
|
|
1326
|
-
if (text.trim())
|
|
1327
|
-
|
|
1328
|
-
|
|
1373
|
+
if (!text.trim()) {
|
|
1374
|
+
setDraft((prev) => {
|
|
1375
|
+
const modelOptions = { ...prev.modelOptions };
|
|
1376
|
+
delete modelOptions[id];
|
|
1377
|
+
return { ...prev, modelOptions: modelOptions };
|
|
1378
|
+
});
|
|
1379
|
+
return;
|
|
1380
|
+
}
|
|
1381
|
+
updateModelEntry(id, (entry) => { entry.workflow = text; });
|
|
1382
|
+
};
|
|
1383
|
+
const setModelMapping = (id, mapping) => updateModelEntry(id, (entry) => {
|
|
1384
|
+
if (mapping) entry.mapping = mapping;
|
|
1385
|
+
else delete entry.mapping;
|
|
1386
|
+
});
|
|
1387
|
+
/** 解析出的可调参数逐项保存;没有 expose 字段表示暴露。 */
|
|
1388
|
+
const setModelParamsList = (id, params) => updateModelEntry(id, (entry) => {
|
|
1389
|
+
if (Array.isArray(params) && params.length) entry.params = params;
|
|
1390
|
+
else delete entry.params;
|
|
1391
|
+
});
|
|
1392
|
+
const paramsOf = (id, analysis) => {
|
|
1393
|
+
const entry = draft.modelOptions[id];
|
|
1394
|
+
if (entry && Array.isArray(entry.params) && entry.params.length) return entry.params;
|
|
1395
|
+
return Array.isArray(analysis && analysis.params) ? analysis.params : [];
|
|
1396
|
+
};
|
|
1397
|
+
/** 解析结果一次写进 draft。 */
|
|
1398
|
+
const applyAnalysis = (id, analysis) => updateModelEntry(id, (entry) => {
|
|
1399
|
+
if (analysis && analysis.mapping) entry.mapping = analysis.mapping;
|
|
1400
|
+
if (analysis && Array.isArray(analysis.params) && analysis.params.length) {
|
|
1401
|
+
entry.params = analysis.params;
|
|
1402
|
+
}
|
|
1403
|
+
});
|
|
1404
|
+
const toggleParam = (id, name, checked) => updateModelEntry(id, (entry) => {
|
|
1405
|
+
entry.expose = { ...(entry.expose || {}), [name]: !!checked };
|
|
1406
|
+
});
|
|
1407
|
+
/** 逐项暴露开关:没显式设过时,角色参数默认开、可调参数默认关。 */
|
|
1408
|
+
const exposedOf = (id, name, fallback) => {
|
|
1409
|
+
const entry = draft.modelOptions[id];
|
|
1410
|
+
const map = entry && entry.expose;
|
|
1411
|
+
if (map && Object.prototype.hasOwnProperty.call(map, name)) return map[name] !== false;
|
|
1412
|
+
return fallback;
|
|
1413
|
+
};
|
|
1414
|
+
/** 换绑:把某个参数指到同名的另一个输入上。 */
|
|
1415
|
+
const rebindParam = (id, analysis, name, node, input) => {
|
|
1416
|
+
const list = paramsOf(id, analysis).map((param) => (
|
|
1417
|
+
param.name === name ? { ...param, node: node, input: input } : { ...param }
|
|
1418
|
+
));
|
|
1419
|
+
setModelParamsList(id, list);
|
|
1420
|
+
};
|
|
1421
|
+
/** 把工作流交给宿主解析,结果原样留着给面板渲染。 */
|
|
1422
|
+
const analyzeModelWorkflow = async (id) => {
|
|
1423
|
+
const workflow = modelWorkflowOf(id);
|
|
1424
|
+
if (!workflow.trim()) return;
|
|
1425
|
+
setWorkflowAnalysis((prev) => ({ ...prev, [id]: { loading: true } }));
|
|
1426
|
+
try {
|
|
1427
|
+
const response = await fetch('/api/mo-image/comfy/analyze', {
|
|
1428
|
+
method: 'POST',
|
|
1429
|
+
headers: { 'Content-Type': 'application/json' },
|
|
1430
|
+
body: JSON.stringify({
|
|
1431
|
+
providerId: isNew ? undefined : draft.id,
|
|
1432
|
+
baseUrl: draft.baseUrl.trim(),
|
|
1433
|
+
model: id,
|
|
1434
|
+
workflow: workflow
|
|
1435
|
+
}),
|
|
1436
|
+
signal: AbortSignal.timeout(60000)
|
|
1437
|
+
});
|
|
1438
|
+
const data = await response.json().catch(() => ({}));
|
|
1439
|
+
if (!data.ok) throw new Error(data.error || t('form.modelMappingFailed'));
|
|
1440
|
+
setWorkflowAnalysis((prev) => ({ ...prev, [id]: { loading: false, analysis: data } }));
|
|
1441
|
+
if (data.mapping) setMappingDraft((prev) => ({ ...prev, [id]: data.mapping }));
|
|
1442
|
+
// mapping 和 params 必须一次写进 draft:连着两次 setDraft 会互相覆盖。
|
|
1443
|
+
if (data.mapping || (Array.isArray(data.params) && data.params.length)) {
|
|
1444
|
+
applyAnalysis(id, data);
|
|
1445
|
+
}
|
|
1446
|
+
} catch (error) {
|
|
1447
|
+
setWorkflowAnalysis((prev) => ({
|
|
1448
|
+
...prev,
|
|
1449
|
+
[id]: { loading: false, error: String(error && error.message ? error.message : error) }
|
|
1450
|
+
}));
|
|
1451
|
+
}
|
|
1452
|
+
};
|
|
1453
|
+
/** 下拉里只显示输入名,节点 id 对用户没有意义。 */
|
|
1454
|
+
const mappingOptionLabel = (item) => (item ? item.input : '');
|
|
1455
|
+
/** 参数名走翻译;没有译文时退回原始名字。 */
|
|
1456
|
+
const paramLabel = (name) => {
|
|
1457
|
+
const key = 'param.' + name;
|
|
1458
|
+
const value = t(key);
|
|
1459
|
+
return value === key ? name : value;
|
|
1460
|
+
};
|
|
1461
|
+
/** 参数的悬停说明;没写说明的参数不显示问号。 */
|
|
1462
|
+
const paramHint = (name) => {
|
|
1463
|
+
const key = 'param.' + name + '.desc';
|
|
1464
|
+
const value = t(key);
|
|
1465
|
+
return value === key ? '' : value;
|
|
1466
|
+
};
|
|
1467
|
+
/** 默认对对话模型可见的参数,和服务端的 DEFAULT_EXPOSED 保持一致。 */
|
|
1468
|
+
const DEFAULT_EXPOSED = new Set(['prompt', 'negative_prompt']);
|
|
1469
|
+
/** 尺寸由选择器经 mapping 注入;认出来就不占列表,认不出来才留手选。 */
|
|
1470
|
+
const SIZE_ROLES = new Set(['width', 'height']);
|
|
1471
|
+
const MAPPING_ROWS = [
|
|
1472
|
+
['prompt', 'form.modelMappingPrompt'],
|
|
1473
|
+
['negative_prompt', 'form.modelMappingNegative'],
|
|
1474
|
+
['width', 'form.modelMappingWidth'],
|
|
1475
|
+
['height', 'form.modelMappingHeight'],
|
|
1476
|
+
['seed', 'form.modelMappingSeed'],
|
|
1477
|
+
['model', 'form.modelMappingModel'],
|
|
1478
|
+
['image', 'form.modelMappingImage']
|
|
1479
|
+
];
|
|
1480
|
+
const mappingPanel = (id) => {
|
|
1481
|
+
const state = workflowAnalysis[id];
|
|
1482
|
+
if (!state || state.loading) return null;
|
|
1483
|
+
if (state.error) {
|
|
1484
|
+
return h('p', { className: MC.advancedHint, style: { gridColumn: '1 / -1', margin: 0 } },
|
|
1485
|
+
t('form.modelMappingFailed') + ':' + state.error);
|
|
1486
|
+
}
|
|
1487
|
+
const analysis = state.analysis || {};
|
|
1488
|
+
const candidates = analysis.candidates || {};
|
|
1489
|
+
const mapping = mappingDraft[id] || analysis.mapping || {};
|
|
1490
|
+
const warnings = Array.isArray(analysis.warnings) ? analysis.warnings : [];
|
|
1491
|
+
return h('div', { style: { gridColumn: '1 / -1', display: 'grid', gap: 8 } },
|
|
1492
|
+
h('p', { className: MC.advancedHint, style: { margin: 0 } },
|
|
1493
|
+
(analysis.format === 'ui' ? t('form.modelMappingFormatUi') : t('form.modelMappingFormatApi'))
|
|
1494
|
+
+ ' · ' + t('form.modelMappingSampler') + ' ' + (analysis.samplerId || '—')),
|
|
1495
|
+
...warnings.map((line, at) => h('p', { key: 'warn' + at, className: MC.advancedHint, style: { margin: 0, opacity: 0.8 } }, line)),
|
|
1496
|
+
(() => {
|
|
1497
|
+
const rows = [];
|
|
1498
|
+
for (const [key, labelKey] of MAPPING_ROWS) {
|
|
1499
|
+
const pool = Array.isArray(candidates[key]) ? candidates[key] : [];
|
|
1500
|
+
const current = mapping[key];
|
|
1501
|
+
if (!pool.length && !current) continue;
|
|
1502
|
+
// 尺寸固定时由选择器注入,认出来就不再占列表;自动时留给模型,需要看见落点。
|
|
1503
|
+
if (SIZE_ROLES.has(key) && current && !sizeAuto) continue;
|
|
1504
|
+
rows.push({
|
|
1505
|
+
key, name: key, label: t(labelKey), role: true, allowSkip: true,
|
|
1506
|
+
value: current ? current.node + '::' + current.input : '',
|
|
1507
|
+
options: pool.slice(),
|
|
1508
|
+
onPick: (picked) => {
|
|
1509
|
+
const next = { ...(mappingDraft[id] || analysis.mapping || {}) };
|
|
1510
|
+
if (!picked) next[key] = null;
|
|
1511
|
+
else {
|
|
1512
|
+
const [node, input] = picked.split('::');
|
|
1513
|
+
next[key] = { node, input };
|
|
1514
|
+
}
|
|
1515
|
+
setMappingDraft((prev) => ({ ...prev, [id]: next }));
|
|
1516
|
+
setModelMapping(id, next);
|
|
1517
|
+
}
|
|
1518
|
+
});
|
|
1519
|
+
}
|
|
1520
|
+
// 角色参数由上面的 MAPPING_ROWS 渲染,这里只放可调参数,避免出现重复行。
|
|
1521
|
+
for (const param of paramsOf(id, analysis).filter((item) => item.role !== true)) {
|
|
1522
|
+
const options = Array.isArray(param.candidates) && param.candidates.length
|
|
1523
|
+
? param.candidates.slice()
|
|
1524
|
+
: [{ node: param.node, input: param.input }];
|
|
1525
|
+
rows.push({
|
|
1526
|
+
key: 'param-' + param.name, name: param.name, label: param.name,
|
|
1527
|
+
role: param.role === true, allowSkip: false,
|
|
1528
|
+
value: param.node + '::' + param.input,
|
|
1529
|
+
options,
|
|
1530
|
+
onPick: (picked) => {
|
|
1531
|
+
const [node, input] = picked.split('::');
|
|
1532
|
+
rebindParam(id, analysis, param.name, node, input);
|
|
1533
|
+
}
|
|
1534
|
+
});
|
|
1535
|
+
}
|
|
1536
|
+
const cell = {
|
|
1537
|
+
display: 'grid', gridTemplateColumns: 'minmax(88px, 1fr) 168px 76px',
|
|
1538
|
+
alignItems: 'center', gap: 8, minHeight: 32
|
|
1539
|
+
};
|
|
1540
|
+
return h('div', { style: { display: 'grid', gap: 4 } },
|
|
1541
|
+
h('div', { className: MC.advancedHint, style: Object.assign({}, cell, { minHeight: 0 }) },
|
|
1542
|
+
h('span', null, t('form.modelMappingColName')),
|
|
1543
|
+
h('span', null, t('form.modelMappingColTarget')),
|
|
1544
|
+
h('span', { style: { textAlign: 'right', whiteSpace: 'nowrap' } }, t('form.modelMappingColExpose'))),
|
|
1545
|
+
h('div', {
|
|
1546
|
+
style: {
|
|
1547
|
+
display: 'grid', gap: 4, maxHeight: 184,
|
|
1548
|
+
overflowY: 'auto', paddingRight: 2
|
|
1549
|
+
}
|
|
1550
|
+
}, ...rows.map((row) => {
|
|
1551
|
+
const list = row.options.map((item) => ({
|
|
1552
|
+
value: item.node + '::' + item.input,
|
|
1553
|
+
label: mappingOptionLabel(item)
|
|
1554
|
+
}));
|
|
1555
|
+
if (row.allowSkip) list.unshift({ value: '', label: t('form.modelMappingSkip') });
|
|
1556
|
+
if (row.value && !list.some((option) => option.value === row.value)) {
|
|
1557
|
+
list.push({ value: row.value, label: row.value.split('::')[1] });
|
|
1558
|
+
}
|
|
1559
|
+
const label = row.role ? row.label : paramLabel(row.name);
|
|
1560
|
+
const hint = row.role ? '' : paramHint(row.name);
|
|
1561
|
+
return h('div', { key: row.key, style: cell },
|
|
1562
|
+
h('span', {
|
|
1563
|
+
className: MC.modelFieldLabel,
|
|
1564
|
+
style: { margin: 0, display: 'flex', alignItems: 'center', gap: 4, minWidth: 0 }
|
|
1565
|
+
},
|
|
1566
|
+
h('span', { style: { overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' } }, label),
|
|
1567
|
+
hint ? h('span', {
|
|
1568
|
+
title: hint,
|
|
1569
|
+
'aria-label': hint,
|
|
1570
|
+
style: {
|
|
1571
|
+
width: 14, height: 14, flex: 'none', borderRadius: '50%',
|
|
1572
|
+
border: '1px solid currentColor', display: 'inline-flex',
|
|
1573
|
+
alignItems: 'center', justifyContent: 'center',
|
|
1574
|
+
fontSize: 10, lineHeight: 1, opacity: 0.55, cursor: 'help'
|
|
1575
|
+
}
|
|
1576
|
+
}, '?') : null),
|
|
1577
|
+
h('select', {
|
|
1578
|
+
className: MC.input + ' ' + MC.selectInput,
|
|
1579
|
+
style: { width: '100%', minWidth: 0 },
|
|
1580
|
+
value: row.value,
|
|
1581
|
+
onChange: (event) => row.onPick(event.target.value)
|
|
1582
|
+
}, list.map((option) => h('option', { key: option.value || 'none', value: option.value }, option.label))),
|
|
1583
|
+
h('input', {
|
|
1584
|
+
type: 'checkbox',
|
|
1585
|
+
checked: exposedOf(id, row.name, DEFAULT_EXPOSED.has(row.name)),
|
|
1586
|
+
'aria-label': label,
|
|
1587
|
+
style: {
|
|
1588
|
+
accentColor: 'var(--dsw-alias-state-business-primary, #3989f6)',
|
|
1589
|
+
width: 16, height: 16, flex: 'none', justifySelf: 'end'
|
|
1590
|
+
},
|
|
1591
|
+
onChange: (event) => toggleParam(id, row.name, event.target.checked)
|
|
1592
|
+
})
|
|
1593
|
+
);
|
|
1594
|
+
}))
|
|
1595
|
+
);
|
|
1596
|
+
})()
|
|
1597
|
+
);
|
|
1598
|
+
};
|
|
1599
|
+
/** A1111 没有工作流,只给一张参数开关表;默认全不暴露。 */
|
|
1600
|
+
const A1111_ROWS = [
|
|
1601
|
+
['steps', 'param.steps', 'INT'],
|
|
1602
|
+
['cfg_scale', 'param.cfg', 'FLOAT'],
|
|
1603
|
+
['sampler_name', 'param.sampler_name', 'STRING'],
|
|
1604
|
+
['scheduler', 'param.scheduler', 'STRING'],
|
|
1605
|
+
['seed', 'param.seed', 'INT'],
|
|
1606
|
+
['denoising_strength', 'param.denoise', 'FLOAT']
|
|
1607
|
+
];
|
|
1608
|
+
const a1111ParamsPanel = (id) => {
|
|
1609
|
+
const cell = {
|
|
1610
|
+
display: 'grid', gridTemplateColumns: 'minmax(96px, 1fr) 64px 76px',
|
|
1611
|
+
alignItems: 'center', gap: 8, minHeight: 32
|
|
1612
|
+
};
|
|
1613
|
+
return h('div', { style: { display: 'grid', gap: 4 } },
|
|
1614
|
+
h('p', { className: MC.advancedHint, style: { margin: 0 } }, t('form.a1111ParamsHint')),
|
|
1615
|
+
h('div', { className: MC.advancedHint, style: Object.assign({}, cell, { minHeight: 0 }) },
|
|
1616
|
+
h('span', null, t('form.modelMappingColName')),
|
|
1617
|
+
h('span', null, t('form.a1111ColType')),
|
|
1618
|
+
h('span', { style: { textAlign: 'right', whiteSpace: 'nowrap' } }, t('form.modelMappingColExpose'))),
|
|
1619
|
+
...A1111_ROWS.map(([name, labelKey, type]) => h('div', { key: name, style: cell },
|
|
1620
|
+
h('span', { className: MC.modelFieldLabel, style: { margin: 0 } }, t(labelKey)),
|
|
1621
|
+
h('span', { className: MC.advancedHint, style: { margin: 0 } }, type),
|
|
1622
|
+
h('input', {
|
|
1623
|
+
type: 'checkbox',
|
|
1624
|
+
checked: exposedOf(id, name, false),
|
|
1625
|
+
'aria-label': t(labelKey),
|
|
1626
|
+
style: {
|
|
1627
|
+
accentColor: 'var(--dsw-alias-state-business-primary, #3989f6)',
|
|
1628
|
+
width: 16, height: 16, flex: 'none', justifySelf: 'end'
|
|
1629
|
+
},
|
|
1630
|
+
onChange: (event) => toggleParam(id, name, event.target.checked)
|
|
1631
|
+
})
|
|
1632
|
+
))
|
|
1633
|
+
);
|
|
1329
1634
|
};
|
|
1330
1635
|
// 没有自己的 ComfyUI 工作流时,先插一个能跑 SD/SDXL 的骨架,改起来比重写快。
|
|
1331
1636
|
const modelWorkflowTemplate = () => JSON.stringify({
|
|
@@ -1425,7 +1730,7 @@ window.__ModuleLoader__.load({
|
|
|
1425
1730
|
const dragging = dragFrom === index;
|
|
1426
1731
|
const target = !dragging && dragFrom >= 0 && dropAt && dropAt.index === index ? dropAt.half : null;
|
|
1427
1732
|
// 自定义工作流只对 ComfyUI 部署器有意义,其它提供商(含云端)禁用该入口。
|
|
1428
|
-
const workflowSupported = String(draft.adapter || '') === 'comfyui';
|
|
1733
|
+
const workflowSupported = String(draft.adapter || '') === 'comfyui' || String(draft.adapter || '') === 'a1111';
|
|
1429
1734
|
const optionsOpen = optionsFor === model && model !== '' && workflowSupported;
|
|
1430
1735
|
return h('div', {
|
|
1431
1736
|
className: MC.modelEntry,
|
|
@@ -1476,19 +1781,21 @@ window.__ModuleLoader__.load({
|
|
|
1476
1781
|
title: t('form.deleteModel'), 'aria-label': t('form.deleteModel') + ' ' + (index + 1)
|
|
1477
1782
|
}, IconTrash ? h(IconTrash, { size: 14 }) : '×'),
|
|
1478
1783
|
modelField('name', index, model),
|
|
1479
|
-
optionsOpen ?
|
|
1784
|
+
optionsOpen ? (String(draft.adapter || '') === 'a1111'
|
|
1785
|
+
? h('div', { className: MC.modelAdvanced }, a1111ParamsPanel(model))
|
|
1786
|
+
: h('div', { className: MC.modelAdvanced },
|
|
1480
1787
|
h('p', { className: MC.advancedHint, style: { gridColumn: '1 / -1', margin: 0 } },
|
|
1481
1788
|
t('form.modelOptionsHint')),
|
|
1482
1789
|
h('label', { className: MC.modelField, style: { gridColumn: '1 / -1' } },
|
|
1483
1790
|
h('span', { className: MC.modelFieldLabel }, t('form.modelWorkflow')),
|
|
1484
1791
|
h('textarea', {
|
|
1485
1792
|
className: MC.input,
|
|
1486
|
-
rows:
|
|
1793
|
+
rows: 8,
|
|
1487
1794
|
spellCheck: false,
|
|
1488
1795
|
style: {
|
|
1489
1796
|
fontFamily: 'var(--ds-font-family-code, ui-monospace, monospace)',
|
|
1490
1797
|
fontSize: 13,
|
|
1491
|
-
minHeight:
|
|
1798
|
+
minHeight: 160,
|
|
1492
1799
|
resize: 'vertical'
|
|
1493
1800
|
},
|
|
1494
1801
|
value: modelWorkflowOf(model),
|
|
@@ -1504,11 +1811,15 @@ window.__ModuleLoader__.load({
|
|
|
1504
1811
|
onClick: () => setModelWorkflow(model, modelWorkflowTemplate())
|
|
1505
1812
|
}, t('form.modelWorkflowSample')),
|
|
1506
1813
|
modelWorkflowOf(model) ? h('button', {
|
|
1507
|
-
type: 'button', className: MC.
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1814
|
+
type: 'button', className: MC.secondaryButton,
|
|
1815
|
+
disabled: !!(workflowAnalysis[model] && workflowAnalysis[model].loading),
|
|
1816
|
+
onClick: () => analyzeModelWorkflow(model)
|
|
1817
|
+
}, workflowAnalysis[model] && workflowAnalysis[model].loading
|
|
1818
|
+
? t('form.modelMappingParsing')
|
|
1819
|
+
: t('form.modelMappingParse')) : null
|
|
1820
|
+
),
|
|
1821
|
+
mappingPanel(model)
|
|
1822
|
+
)) : null
|
|
1512
1823
|
)
|
|
1513
1824
|
);
|
|
1514
1825
|
})
|
|
@@ -1611,6 +1922,7 @@ window.__ModuleLoader__.load({
|
|
|
1611
1922
|
nameField,
|
|
1612
1923
|
urlField,
|
|
1613
1924
|
protocolField,
|
|
1925
|
+
hostModelField,
|
|
1614
1926
|
keyField,
|
|
1615
1927
|
modelDirectory
|
|
1616
1928
|
);
|
|
@@ -1652,6 +1964,7 @@ window.__ModuleLoader__.load({
|
|
|
1652
1964
|
nameField,
|
|
1653
1965
|
urlField,
|
|
1654
1966
|
protocolField,
|
|
1967
|
+
hostModelField,
|
|
1655
1968
|
modelDirectory
|
|
1656
1969
|
)
|
|
1657
1970
|
),
|
|
@@ -1924,13 +2237,13 @@ window.__ModuleLoader__.load({
|
|
|
1924
2237
|
h('button', { type: 'button', className: MC.dangerButton, onClick: () => remove(provider) }, t('action.delete'))
|
|
1925
2238
|
)
|
|
1926
2239
|
),
|
|
1927
|
-
editing ? h(ImageProviderForm, { provider: edit.provider, onSave: save, onClose: () => setEdit(null), t: t }) : null
|
|
2240
|
+
editing ? h(ImageProviderForm, { provider: edit.provider, onSave: save, onClose: () => setEdit(null), sizeAuto: store.defaults.auto !== false, t: t }) : null
|
|
1928
2241
|
);
|
|
1929
2242
|
})
|
|
1930
2243
|
),
|
|
1931
2244
|
h('div', { className: MC.addBlock },
|
|
1932
2245
|
edit && edit.isNew
|
|
1933
|
-
? h('div', { className: MC.addCard }, h(ImageProviderForm, { provider: edit.provider, isNew: true, onSave: save, onClose: () => setEdit(null), t: t }))
|
|
2246
|
+
? h('div', { className: MC.addCard }, h(ImageProviderForm, { provider: edit.provider, isNew: true, onSave: save, onClose: () => setEdit(null), sizeAuto: store.defaults.auto !== false, t: t }))
|
|
1934
2247
|
: h('div', { className: MC.addActions },
|
|
1935
2248
|
h('button', { type: 'button', className: MC.addButton, onClick: () => setEdit({ provider: { id: makeId(), name: '', baseUrl: '', key: '', apiKeyEnv: '', adapter: '', protocol: 'openai-images', optionalKey: false, models: [] }, isNew: true }) }, '+ ' + t('action.addProvider'))
|
|
1936
2249
|
)
|
|
@@ -1962,6 +2275,23 @@ window.__ModuleLoader__.load({
|
|
|
1962
2275
|
const triggerLabel = seatView.triggerLabel;
|
|
1963
2276
|
const activeSpec = seatView.qualitySpec;
|
|
1964
2277
|
const levels = qualityRailLevels(activeSpec);
|
|
2278
|
+
// 真正写进请求的提示词优化开关,不是 codex 的纯视觉 Fast。
|
|
2279
|
+
const promptOptimization = defaults.promptOptimization !== false;
|
|
2280
|
+
// The visual peak is always "Ultra", whatever the backend calls its top
|
|
2281
|
+
// stop (high/max/xhigh/...). The stored value and request are untouched.
|
|
2282
|
+
const topLevelValue = levels.length > 1 ? levels[levels.length - 1].value : null;
|
|
2283
|
+
const codexQualityLabel = (value) => (
|
|
2284
|
+
topLevelValue !== null && qualityValueFor(value, activeSpec) === topLevelValue
|
|
2285
|
+
? 'Ultra'
|
|
2286
|
+
: qualityLabelFor(value, activeSpec, t)
|
|
2287
|
+
);
|
|
2288
|
+
// Ultra is a frontend skin: whatever id the backend uses for its top
|
|
2289
|
+
// stop, the label and its violet ink both use the codex peak bucket.
|
|
2290
|
+
const codexVisualValue = (value) => (
|
|
2291
|
+
topLevelValue !== null && qualityValueFor(value, activeSpec) === topLevelValue
|
|
2292
|
+
? 'max'
|
|
2293
|
+
: value
|
|
2294
|
+
);
|
|
1965
2295
|
|
|
1966
2296
|
function isDarkNow() {
|
|
1967
2297
|
try {
|
|
@@ -1992,16 +2322,11 @@ window.__ModuleLoader__.load({
|
|
|
1992
2322
|
const [menuPos, setMenuPos] = React.useState(null);
|
|
1993
2323
|
const [liveFraction, setLiveFraction] = React.useState(null);
|
|
1994
2324
|
const [hoveredDot, setHoveredDot] = React.useState(-1);
|
|
1995
|
-
const [
|
|
1996
|
-
const setFast = (next) => {
|
|
1997
|
-
setFastState(next);
|
|
1998
|
-
writeCodexFast(props.sessionId, next);
|
|
1999
|
-
};
|
|
2000
|
-
React.useEffect(() => {
|
|
2001
|
-
setFastState(readCodexFast(props.sessionId));
|
|
2002
|
-
}, [props.sessionId]);
|
|
2325
|
+
const [tipOn, setTipOn] = React.useState(false);
|
|
2003
2326
|
const triggerRef = React.useRef(null);
|
|
2004
2327
|
const popoverRef = React.useRef(null);
|
|
2328
|
+
const fastBtnRef = React.useRef(null);
|
|
2329
|
+
const tipRef = React.useRef(null);
|
|
2005
2330
|
const railRef = React.useRef(null);
|
|
2006
2331
|
const searchRef = React.useRef(null);
|
|
2007
2332
|
const messageTimer = React.useRef(0);
|
|
@@ -2018,8 +2343,9 @@ window.__ModuleLoader__.load({
|
|
|
2018
2343
|
// 动画和额度提示都跟「滑到最高档」走;Auto 不在最高档时不误报。
|
|
2019
2344
|
const atTop = levels.length > 1 && displayIndex === levels.length - 1;
|
|
2020
2345
|
const peak = atTop;
|
|
2021
|
-
const qualityLabel = levels.length ?
|
|
2022
|
-
const displayLabel = levels.length ?
|
|
2346
|
+
const qualityLabel = levels.length ? codexQualityLabel(value) : '';
|
|
2347
|
+
const displayLabel = levels.length ? codexQualityLabel(displayed) : '';
|
|
2348
|
+
const tipShown = tipOn && open && pane === 'quality';
|
|
2023
2349
|
const sparkles = React.useMemo(() => buildCodexSparkles(22), []);
|
|
2024
2350
|
const bloomMotes = React.useMemo(() => buildCodexBloom(18), []);
|
|
2025
2351
|
const hasAnyModel = seatView.hasAnyModel;
|
|
@@ -2175,6 +2501,33 @@ window.__ModuleLoader__.load({
|
|
|
2175
2501
|
if (messageTimer.current) clearTimeout(messageTimer.current);
|
|
2176
2502
|
}, []);
|
|
2177
2503
|
|
|
2504
|
+
// Codex 的 Fast 浮层同款:fixed 定位,贴在星标按钮上方。工具提示不能
|
|
2505
|
+
// 放进弹层内部,弹层的 backdrop-filter 会成为 fixed 后代的包含块并裁剪它。
|
|
2506
|
+
function positionTip() {
|
|
2507
|
+
const tip = tipRef.current;
|
|
2508
|
+
const btn = fastBtnRef.current;
|
|
2509
|
+
if (!tip || !btn) return;
|
|
2510
|
+
const rect = btn.getBoundingClientRect();
|
|
2511
|
+
const tipWidth = tip.offsetWidth || 120;
|
|
2512
|
+
const tipHeight = tip.offsetHeight || 44;
|
|
2513
|
+
const left = Math.max(8, Math.min(rect.left + rect.width / 2 - tipWidth / 2, window.innerWidth - tipWidth - 8));
|
|
2514
|
+
tip.style.left = `${left}px`;
|
|
2515
|
+
tip.style.top = `${Math.max(8, rect.top - tipHeight - 7)}px`;
|
|
2516
|
+
}
|
|
2517
|
+
React.useLayoutEffect(() => {
|
|
2518
|
+
if (!tipShown) return undefined;
|
|
2519
|
+
positionTip();
|
|
2520
|
+
const settle = () => positionTip();
|
|
2521
|
+
window.addEventListener('resize', settle);
|
|
2522
|
+
document.addEventListener('scroll', settle, true);
|
|
2523
|
+
return () => {
|
|
2524
|
+
window.removeEventListener('resize', settle);
|
|
2525
|
+
document.removeEventListener('scroll', settle, true);
|
|
2526
|
+
};
|
|
2527
|
+
}, [tipShown]);
|
|
2528
|
+
React.useEffect(() => { if (!open) setTipOn(false); }, [open]);
|
|
2529
|
+
React.useEffect(() => { if (pane !== 'quality') setTipOn(false); }, [pane]);
|
|
2530
|
+
|
|
2178
2531
|
const commitSide = (side, text) => {
|
|
2179
2532
|
const digits = String(text || '').replace(/[^0-9]/g, '');
|
|
2180
2533
|
const number = Number(digits);
|
|
@@ -2273,20 +2626,6 @@ window.__ModuleLoader__.load({
|
|
|
2273
2626
|
: [];
|
|
2274
2627
|
const page2Rows = providerModels.length;
|
|
2275
2628
|
const page1Rows = (showAutoRow ? 1 : 0) + store.providers.length;
|
|
2276
|
-
let desiredHeight = CODEX_QUALITY_HEIGHT;
|
|
2277
|
-
if (pane === 'models') {
|
|
2278
|
-
const M = CODEX_METRICS;
|
|
2279
|
-
desiredHeight = isSettingsPage
|
|
2280
|
-
? M.pad + M.head + 2 * M.section + 4 * M.row + 2 * M.listPad
|
|
2281
|
-
: (view === 2
|
|
2282
|
-
? M.pad + Math.max(44, M.head + M.search
|
|
2283
|
-
+ Math.min(page2Rows * M.model + M.listPad, M.listMax)
|
|
2284
|
-
+ (providerModels.length ? 0 : M.empty))
|
|
2285
|
-
: M.pad + Math.max(44, M.section + page1Rows * M.row
|
|
2286
|
-
+ (store.providers.length ? 0 : M.empty)));
|
|
2287
|
-
}
|
|
2288
|
-
const roomAbove = menuPos ? Math.max(120, window.innerHeight - menuPos.bottom - CODEX_MARGIN) : desiredHeight;
|
|
2289
|
-
const popoverHeight = Math.min(desiredHeight, roomAbove);
|
|
2290
2629
|
|
|
2291
2630
|
const checkIcon = (on) => h('span', { className: 'cmes-ck' },
|
|
2292
2631
|
on ? h('svg', {
|
|
@@ -2305,14 +2644,22 @@ window.__ModuleLoader__.load({
|
|
|
2305
2644
|
className: 'cmes-chev', viewBox: '0 0 24 24', 'aria-hidden': true,
|
|
2306
2645
|
fill: 'none', stroke: 'currentColor', strokeWidth: 1.7, strokeLinecap: 'round', strokeLinejoin: 'round'
|
|
2307
2646
|
}, h('path', { d: 'm6 9 6 6 6-6' }));
|
|
2308
|
-
const
|
|
2309
|
-
className: cls, viewBox: '0 0 24 24', 'aria-hidden': true,
|
|
2647
|
+
const starIcon = (cls, on) => h('svg', {
|
|
2648
|
+
className: (cls ? cls + ' ' : '') + 'cmes-star', viewBox: '0 0 24 24', 'aria-hidden': true,
|
|
2310
2649
|
fill: on ? 'currentColor' : 'none', stroke: 'currentColor',
|
|
2311
|
-
strokeWidth: on ? 0.7 : 1.
|
|
2312
|
-
style: { width:
|
|
2313
|
-
},
|
|
2314
|
-
|
|
2315
|
-
|
|
2650
|
+
strokeWidth: on ? 0.7 : 1.4, strokeLinejoin: 'round', strokeLinecap: 'round',
|
|
2651
|
+
style: { width: 16, height: 16, display: 'block', flex: 'none', margin: '0 auto' }
|
|
2652
|
+
},
|
|
2653
|
+
// Big centre sparkle plus the two small ones — the familiar AI mark.
|
|
2654
|
+
h('path', {
|
|
2655
|
+
d: 'M12 3.5c.85 5.1 2.45 6.7 7.55 7.55-5.1.85-6.7 2.45-7.55 7.55-.85-5.1-2.45-6.7-7.55-7.55 5.1-.85 6.7-2.45 7.55-7.55Z'
|
|
2656
|
+
}),
|
|
2657
|
+
h('path', {
|
|
2658
|
+
d: 'M19 1.5c.35 2.1 1.05 2.8 3.15 3.15-2.1.35-2.8 1.05-3.15 3.15-.35-2.1-1.05-2.8-3.15-3.15 2.1-.35 2.8-1.05 3.15-3.15Z'
|
|
2659
|
+
}),
|
|
2660
|
+
h('path', {
|
|
2661
|
+
d: 'M5 15.5c.35 2.1 1.05 2.8 3.15 3.15-2.1.35-2.8 1.05-3.15 3.15-.35-2.1-1.05-2.8-3.15-3.15 2.1-.35 2.8-1.05 3.15-3.15Z'
|
|
2662
|
+
}));
|
|
2316
2663
|
// 其他设置工具用齿轮,避免和尺寸/全屏混淆。
|
|
2317
2664
|
const sizeIcon = h('svg', {
|
|
2318
2665
|
className: 'cmes-iconSmall', viewBox: '0 0 24 24', 'aria-hidden': true,
|
|
@@ -2331,15 +2678,16 @@ window.__ModuleLoader__.load({
|
|
|
2331
2678
|
h('circle', { cx: 8.2, cy: 9.2, r: 1.4 }),
|
|
2332
2679
|
h('path', { d: 'M4 17l5-4.6 3.2 3 3.8-4.2L20 17' }));
|
|
2333
2680
|
|
|
2681
|
+
const visualDisplay = codexVisualValue(displayed);
|
|
2334
2682
|
const railColors = {
|
|
2335
|
-
'--cmes-fill': codexFillFor(
|
|
2336
|
-
'--cmes-track': codexTrackFor(codexFillFor(
|
|
2337
|
-
'--cmes-ink': codexInkFor(
|
|
2683
|
+
'--cmes-fill': codexFillFor(visualDisplay, dark),
|
|
2684
|
+
'--cmes-track': codexTrackFor(codexFillFor(visualDisplay, dark), dark),
|
|
2685
|
+
'--cmes-ink': codexInkFor(visualDisplay, dark),
|
|
2338
2686
|
'--cmes-dot': 'var(--dsw-alias-label-caption,#b6b6b8)',
|
|
2339
|
-
'--cmes-mote': codexMixHex(codexFillFor(
|
|
2687
|
+
'--cmes-mote': codexMixHex(codexFillFor(visualDisplay, dark), '#ffffff', dark ? 0.30 : 0.42),
|
|
2340
2688
|
'--cmes-pos': String(fraction)
|
|
2341
2689
|
};
|
|
2342
|
-
const triggerStyle = { '--cmes-ink': codexInkFor(value, dark) };
|
|
2690
|
+
const triggerStyle = { '--cmes-ink': codexInkFor(codexVisualValue(value), dark) };
|
|
2343
2691
|
|
|
2344
2692
|
const autoRow = h('button', {
|
|
2345
2693
|
key: '__auto', type: 'button', className: 'cmes-row',
|
|
@@ -2384,22 +2732,54 @@ window.__ModuleLoader__.load({
|
|
|
2384
2732
|
checkIcon(selected)
|
|
2385
2733
|
);
|
|
2386
2734
|
});
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2735
|
+
// Codex 皮肤的这一页也按模型形态渲染:宽高 / 比例+档位 / 档位下拉 / 写进提示词。
|
|
2736
|
+
const pageSizeSpec = sizeSpecFor(activeProviderForPage ? activeProviderForPage.id : '', store.active.model);
|
|
2737
|
+
const pageControl = sizeControlOf(pageSizeSpec);
|
|
2738
|
+
const pageAspects = pageSizeSpec && Array.isArray(pageSizeSpec.aspects) ? pageSizeSpec.aspects : [];
|
|
2739
|
+
const pageTiers = pageSizeSpec && Array.isArray(pageSizeSpec.tiers) ? pageSizeSpec.tiers.map((tier) => String(tier.value)) : [];
|
|
2740
|
+
const pageCustom = !!(pageSizeSpec && pageSizeSpec.custom);
|
|
2741
|
+
const inputStyle = { width: 92, height: 26, borderRadius: 8, border: '1px solid var(--dsw-alias-border-l2)', background: 'var(--dsw-alias-bg-layer-1)', color: 'var(--dsw-alias-label-primary)', fontFamily: 'inherit', fontSize: 12, textAlign: 'right', padding: '0 8px', outline: 'none' };
|
|
2742
|
+
const codexSelect = (label, value, options, onPick) => h('div', { className: 'cmes-row', style: { cursor: 'default' } },
|
|
2743
|
+
h('span', { className: 'cmes-rowName' }, label),
|
|
2744
|
+
h('select', {
|
|
2745
|
+
'aria-label': label, value: value, disabled: defaults.auto,
|
|
2746
|
+
style: Object.assign({}, inputStyle, { width: 110 }),
|
|
2747
|
+
onChange: (event) => onPick(String(event.target.value))
|
|
2748
|
+
}, options.map((option) => (typeof option === 'string'
|
|
2749
|
+
? h('option', { key: option, value: option }, option)
|
|
2750
|
+
: h('option', { key: option.value, value: option.value }, option.label))))
|
|
2751
|
+
);
|
|
2752
|
+
// 严格模式紧跟自动尺寸:它管的是请求里的尺寸算不算数,与自动/固定无关。
|
|
2753
|
+
const codexRows = [h('div', { className: 'cmes-row', style: { cursor: 'default' } },
|
|
2754
|
+
h('span', { className: 'cmes-rowName', title: t('seat.sizeStrictHint') }, t('seat.sizeStrict')),
|
|
2755
|
+
h('input', {
|
|
2756
|
+
type: 'checkbox', checked: !!defaults.strict, 'aria-label': t('seat.sizeStrict'),
|
|
2757
|
+
title: t('seat.sizeStrictHint'),
|
|
2758
|
+
style: { accentColor: 'var(--dsw-alias-state-business-primary, #3989f6)', width: 16, height: 16 },
|
|
2759
|
+
onChange: (event) => saveDefaults({ strict: event.target.checked })
|
|
2760
|
+
})
|
|
2761
|
+
)];
|
|
2762
|
+
if (pageControl === 'aspect' && pageAspects.length) {
|
|
2763
|
+
codexRows.push(codexSelect(t('seat.sizeAspect'), defaults.aspect || pageAspects[0], pageAspects,
|
|
2764
|
+
(value) => saveDefaults({ aspect: value })));
|
|
2765
|
+
if (pageTiers.length) {
|
|
2766
|
+
codexRows.push(codexSelect(t('seat.sizeTier'), defaults.tier || pageTiers[0], pageTiers,
|
|
2767
|
+
(value) => saveDefaults({ tier: value })));
|
|
2768
|
+
}
|
|
2769
|
+
} else if (pageControl === 'preset') {
|
|
2770
|
+
const presetOptions = pageTiers.concat(pageCustom ? [{ value: '__custom', label: t('seat.sizeCustom') }] : []);
|
|
2771
|
+
codexRows.push(codexSelect(t('seat.sizePreset'),
|
|
2772
|
+
pageTiers.includes(String(defaults.preset)) ? String(defaults.preset) : (pageTiers[0] || '__custom'),
|
|
2773
|
+
presetOptions,
|
|
2774
|
+
(value) => { if (value !== '__custom') saveDefaults({ preset: value }); }));
|
|
2775
|
+
}
|
|
2776
|
+
if (pageControl === 'wh' || pageControl === 'prompt' || (pageControl === 'preset' && pageCustom)) {
|
|
2777
|
+
codexRows.push(h('div', { className: 'cmes-row', style: { cursor: 'default' } },
|
|
2398
2778
|
h('span', { className: 'cmes-rowName' }, t('seat.width')),
|
|
2399
2779
|
h('input', {
|
|
2400
2780
|
type: 'text', inputMode: 'numeric', disabled: defaults.auto, 'aria-label': t('seat.width'),
|
|
2401
2781
|
value: widthDraft || String(defaults.width),
|
|
2402
|
-
style:
|
|
2782
|
+
style: inputStyle,
|
|
2403
2783
|
onBlur: () => setWidthDraft(''),
|
|
2404
2784
|
onChange: (event) => {
|
|
2405
2785
|
const text = String(event.target.value).replace(/[^0-9]/g, '');
|
|
@@ -2407,13 +2787,13 @@ window.__ModuleLoader__.load({
|
|
|
2407
2787
|
commitSide('width', text);
|
|
2408
2788
|
}
|
|
2409
2789
|
})
|
|
2410
|
-
)
|
|
2411
|
-
h('div', { className: 'cmes-row', style: { cursor: 'default' } },
|
|
2790
|
+
));
|
|
2791
|
+
codexRows.push(h('div', { className: 'cmes-row', style: { cursor: 'default' } },
|
|
2412
2792
|
h('span', { className: 'cmes-rowName' }, t('seat.height')),
|
|
2413
2793
|
h('input', {
|
|
2414
2794
|
type: 'text', inputMode: 'numeric', disabled: defaults.auto, 'aria-label': t('seat.height'),
|
|
2415
2795
|
value: heightDraft || String(defaults.height),
|
|
2416
|
-
style:
|
|
2796
|
+
style: inputStyle,
|
|
2417
2797
|
onBlur: () => setHeightDraft(''),
|
|
2418
2798
|
onChange: (event) => {
|
|
2419
2799
|
const text = String(event.target.value).replace(/[^0-9]/g, '');
|
|
@@ -2421,18 +2801,43 @@ window.__ModuleLoader__.load({
|
|
|
2421
2801
|
commitSide('height', text);
|
|
2422
2802
|
}
|
|
2423
2803
|
})
|
|
2424
|
-
)
|
|
2425
|
-
|
|
2804
|
+
));
|
|
2805
|
+
}
|
|
2806
|
+
if (pageControl === 'prompt') {
|
|
2807
|
+
codexRows.push(h('div', { className: 'cmes-row', style: { cursor: 'default' } },
|
|
2808
|
+
h('span', { className: 'cmes-rowName', style: { opacity: 0.7 } }, t('seat.sizePromptHint'))));
|
|
2809
|
+
}
|
|
2810
|
+
if (pageSizeSpec && pageSizeSpec.hint) {
|
|
2811
|
+
const pageHintKey = 'seat.sizeHint.' + String(pageSizeSpec.hint);
|
|
2812
|
+
codexRows.push(h('div', { className: 'cmes-row', style: { cursor: 'default' } },
|
|
2813
|
+
h('span', { className: 'cmes-rowName', style: { opacity: 0.7 } }, t(pageHintKey))));
|
|
2814
|
+
}
|
|
2815
|
+
const settingsForm = h('div', { key: 'size-form', className: 'cmes-rows' },
|
|
2816
|
+
h('div', { className: 'cmes-sec' }, t('seat.sizeTitle')),
|
|
2426
2817
|
h('div', { className: 'cmes-row', style: { cursor: 'default' } },
|
|
2427
|
-
h('span', { className: 'cmes-rowName' }, t('seat.
|
|
2818
|
+
h('span', { className: 'cmes-rowName' }, t('seat.sizeAutoValue')),
|
|
2428
2819
|
h('input', {
|
|
2429
|
-
type: 'checkbox', checked: defaults.
|
|
2430
|
-
'aria-label': t('seat.menuPromptOptimization'),
|
|
2820
|
+
type: 'checkbox', checked: !!defaults.auto, 'aria-label': t('seat.sizeAutoAria'),
|
|
2431
2821
|
style: { accentColor: 'var(--dsw-alias-state-business-primary, #3989f6)', width: 16, height: 16 },
|
|
2432
|
-
onChange: (event) => saveDefaults({
|
|
2822
|
+
onChange: (event) => saveDefaults({ auto: event.target.checked })
|
|
2433
2823
|
})
|
|
2434
|
-
)
|
|
2824
|
+
),
|
|
2825
|
+
...codexRows
|
|
2435
2826
|
);
|
|
2827
|
+
let desiredHeight = CODEX_QUALITY_HEIGHT;
|
|
2828
|
+
if (pane === 'models') {
|
|
2829
|
+
const M = CODEX_METRICS;
|
|
2830
|
+
desiredHeight = isSettingsPage
|
|
2831
|
+
? M.pad + M.head + M.section + (1 + codexRows.length) * M.row + 2 * M.listPad
|
|
2832
|
+
: (view === 2
|
|
2833
|
+
? M.pad + Math.max(44, M.head + M.search
|
|
2834
|
+
+ Math.min(page2Rows * M.model + M.listPad, M.listMax)
|
|
2835
|
+
+ (providerModels.length ? 0 : M.empty))
|
|
2836
|
+
: M.pad + Math.max(44, M.section + page1Rows * M.row
|
|
2837
|
+
+ (store.providers.length ? 0 : M.empty)));
|
|
2838
|
+
}
|
|
2839
|
+
const roomAbove = menuPos ? Math.max(120, window.innerHeight - menuPos.bottom - CODEX_MARGIN) : desiredHeight;
|
|
2840
|
+
const popoverHeight = Math.min(desiredHeight, roomAbove);
|
|
2436
2841
|
const page2Body = isSettingsPage
|
|
2437
2842
|
? settingsForm
|
|
2438
2843
|
: [
|
|
@@ -2483,9 +2888,10 @@ window.__ModuleLoader__.load({
|
|
|
2483
2888
|
inert: pane !== 'models' ? '' : undefined
|
|
2484
2889
|
},
|
|
2485
2890
|
h('div', { className: 'cmes-viewport' + (view === 2 ? ' view2' : '') },
|
|
2891
|
+
// 不要在这里写 transition:`.cmes-page` 的 .3s cubic-bezier(.32,.72,.28,1)
|
|
2892
|
+
// 由 codex 样式表提供;内联 ease 会让滑动比 codex 更快、还会抖。
|
|
2486
2893
|
h('div', {
|
|
2487
2894
|
className: 'cmes-page slot1',
|
|
2488
|
-
style: { transition: 'transform .3s ease' },
|
|
2489
2895
|
inert: view === 2 ? '' : undefined
|
|
2490
2896
|
},
|
|
2491
2897
|
h('div', { className: 'cmes-sec' }, t('seat.menuModel')),
|
|
@@ -2493,7 +2899,6 @@ window.__ModuleLoader__.load({
|
|
|
2493
2899
|
),
|
|
2494
2900
|
h('div', {
|
|
2495
2901
|
className: 'cmes-page slot2',
|
|
2496
|
-
style: { transition: 'transform .3s ease' },
|
|
2497
2902
|
inert: view === 2 ? undefined : ''
|
|
2498
2903
|
},
|
|
2499
2904
|
h('div', { className: 'cmes-head' },
|
|
@@ -2514,11 +2919,18 @@ window.__ModuleLoader__.load({
|
|
|
2514
2919
|
inert: pane !== 'quality' ? '' : undefined
|
|
2515
2920
|
},
|
|
2516
2921
|
h('button', {
|
|
2517
|
-
className: 'cmes-tool cmes-fast' + (
|
|
2518
|
-
|
|
2519
|
-
'
|
|
2520
|
-
|
|
2521
|
-
|
|
2922
|
+
className: 'cmes-tool cmes-fast' + (promptOptimization ? ' active' : ''),
|
|
2923
|
+
ref: fastBtnRef,
|
|
2924
|
+
style: { display: 'flex', alignItems: 'center', justifyContent: 'center', padding: 0, lineHeight: 0 },
|
|
2925
|
+
'aria-label': t('seat.menuPromptOptimization'),
|
|
2926
|
+
'aria-describedby': 'mo-image-prompt-tip',
|
|
2927
|
+
'aria-pressed': promptOptimization,
|
|
2928
|
+
onPointerEnter: () => setTipOn(true),
|
|
2929
|
+
onPointerLeave: () => setTipOn(false),
|
|
2930
|
+
onFocus: () => setTipOn(true),
|
|
2931
|
+
onBlur: () => setTipOn(false),
|
|
2932
|
+
onClick: () => saveDefaults({ promptOptimization: !promptOptimization })
|
|
2933
|
+
}, starIcon('', promptOptimization)),
|
|
2522
2934
|
h('button', {
|
|
2523
2935
|
className: 'cmes-modelLink', type: 'button',
|
|
2524
2936
|
onClick: () => setPane('models'),
|
|
@@ -2586,13 +2998,16 @@ window.__ModuleLoader__.load({
|
|
|
2586
2998
|
'cmes-popover',
|
|
2587
2999
|
open ? '' : ' closed',
|
|
2588
3000
|
peak ? ' peak' : '',
|
|
2589
|
-
|
|
3001
|
+
promptOptimization ? ' fast-mode' : '',
|
|
2590
3002
|
message ? ' message' : ''
|
|
2591
3003
|
].filter(Boolean).join(' ');
|
|
2592
3004
|
const popoverStyle = {
|
|
2593
3005
|
'--cmes-height': popoverHeight + 'px',
|
|
2594
3006
|
'--cmes-left': (menuPos ? menuPos.left : 0) + 'px',
|
|
2595
3007
|
'--cmes-bottom': (menuPos ? menuPos.bottom : 40) + 'px',
|
|
3008
|
+
// Heading and trigger share the same ink; at the top stop that is the
|
|
3009
|
+
// codex violet even when the backend calls the stop high/max/xhigh.
|
|
3010
|
+
'--cmes-ink': codexInkFor(visualDisplay, dark),
|
|
2596
3011
|
// codex 样式没到位( CSP/加载时序挡住)时也要保证它脱离文档流。
|
|
2597
3012
|
// 否则整块弹层会把输入区顶上去、页面底部多出一大片空白。
|
|
2598
3013
|
position: 'fixed',
|
|
@@ -2631,7 +3046,7 @@ window.__ModuleLoader__.load({
|
|
|
2631
3046
|
return h('div', { className: 'cmes-root', 'data-mo-image-seat': '' },
|
|
2632
3047
|
h('button', {
|
|
2633
3048
|
type: 'button', ref: triggerRef,
|
|
2634
|
-
className: 'cmes-trigger' + (
|
|
3049
|
+
className: 'cmes-trigger' + (promptOptimization ? ' fast' : ''),
|
|
2635
3050
|
style: triggerStyle,
|
|
2636
3051
|
'aria-label': qualityLabel ? t('seat.triggerAriaQuality', { model: triggerLabel, quality: qualityLabel }) : t('seat.triggerAria', { model: triggerLabel }),
|
|
2637
3052
|
'aria-haspopup': 'dialog', 'aria-expanded': open,
|
|
@@ -2645,7 +3060,7 @@ window.__ModuleLoader__.load({
|
|
|
2645
3060
|
setOpen(true);
|
|
2646
3061
|
}
|
|
2647
3062
|
},
|
|
2648
|
-
|
|
3063
|
+
promptOptimization ? starIcon('cmes-bolt', true) : null,
|
|
2649
3064
|
h('span', { className: 'cmes-compact' }, imageIcon),
|
|
2650
3065
|
h('span', { className: 'cmes-caption' }, triggerLabel),
|
|
2651
3066
|
qualityLabel ? h('span', { className: 'cmes-triggerEffort' }, qualityLabel) : null,
|
|
@@ -2653,16 +3068,28 @@ window.__ModuleLoader__.load({
|
|
|
2653
3068
|
),
|
|
2654
3069
|
// 弹层必须挂到 body:输入区里任何 transform/filter/backdrop-filter 都会
|
|
2655
3070
|
// 把 position:fixed 变成相对包含块,位置和裁剪都会错。
|
|
2656
|
-
portalNode(h(
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
3071
|
+
portalNode(h(React.Fragment, null,
|
|
3072
|
+
h('section', {
|
|
3073
|
+
ref: popoverRef, id: 'mo-image-codex-popover', className: popoverClasses, role: 'dialog',
|
|
3074
|
+
'data-mo-image-codex-popover': '',
|
|
3075
|
+
'aria-label': pane === 'models' ? t('seat.menuModel') : t('seat.menuQuality'),
|
|
3076
|
+
'aria-hidden': !open,
|
|
3077
|
+
inert: !open ? '' : undefined,
|
|
3078
|
+
style: popoverStyle
|
|
3079
|
+
},
|
|
3080
|
+
modelsPane,
|
|
3081
|
+
qualityPane
|
|
3082
|
+
),
|
|
3083
|
+
// Same two-line codex tooltip card as the Fast button, but this one
|
|
3084
|
+
// describes the real prompt-optimization switch. It stays outside the
|
|
3085
|
+
// popover: backdrop-filter would otherwise become its containing block.
|
|
3086
|
+
h('span', {
|
|
3087
|
+
role: 'tooltip', id: 'mo-image-prompt-tip',
|
|
3088
|
+
className: 'cmes-tip' + (tipShown ? ' show' : ''),
|
|
3089
|
+
ref: tipRef, 'aria-hidden': tipShown ? undefined : 'true'
|
|
3090
|
+
},
|
|
3091
|
+
h('span', { className: 'cmes-tipTitle' }, t('seat.menuPromptOptimization')),
|
|
3092
|
+
h('span', null, t('seat.promptOptimizationUsage')))
|
|
2666
3093
|
))
|
|
2667
3094
|
);
|
|
2668
3095
|
}
|
|
@@ -2867,7 +3294,7 @@ window.__ModuleLoader__.load({
|
|
|
2867
3294
|
];
|
|
2868
3295
|
if (qualitySpec) homePanel.push(cellRow('quality', t('seat.menuQuality'), qualityLabel, () => setPanel('quality')));
|
|
2869
3296
|
homePanel.push(
|
|
2870
|
-
cellRow('size', t('seat.menuSize'),
|
|
3297
|
+
cellRow('size', t('seat.menuSize'), sizeValueLabel(sizeSpecFor(active.providerId, active.model), defaults, t), () => setPanel('size')),
|
|
2871
3298
|
cellRow('promptOptimization', t('seat.menuPromptOptimization'), defaults.promptOptimization === false ? t('seat.off') : t('seat.on'), () => setPanel('promptOptimization'))
|
|
2872
3299
|
);
|
|
2873
3300
|
// 尺寸面板里的行是静态表单,不要 cell 的悬停高光;
|
|
@@ -2888,6 +3315,58 @@ window.__ModuleLoader__.load({
|
|
|
2888
3315
|
}
|
|
2889
3316
|
})
|
|
2890
3317
|
);
|
|
3318
|
+
// 尺寸面板按所选模型的形态渲染:宽高 / 比例+档位 / 档位下拉 / 写进提示词。
|
|
3319
|
+
const seatSizeSpec = sizeSpecFor(active.providerId, active.model);
|
|
3320
|
+
const seatControl = sizeControlOf(seatSizeSpec);
|
|
3321
|
+
const seatAspects = seatSizeSpec && Array.isArray(seatSizeSpec.aspects) ? seatSizeSpec.aspects : [];
|
|
3322
|
+
const seatTiers = seatSizeSpec && Array.isArray(seatSizeSpec.tiers) ? seatSizeSpec.tiers : [];
|
|
3323
|
+
const seatPresets = seatTiers.map((tier) => String(tier.value));
|
|
3324
|
+
const seatCustom = !!(seatSizeSpec && seatSizeSpec.custom);
|
|
3325
|
+
const selectRow = (key, label, value, options, onPick) => h('div', { key: key, className: plainRow },
|
|
3326
|
+
h('span', { className: MS.cellLabel }, label),
|
|
3327
|
+
h('select', {
|
|
3328
|
+
className: MS.cellValue, value: value, disabled: defaults.auto, 'aria-label': label,
|
|
3329
|
+
onChange: (event) => onPick(String(event.target.value))
|
|
3330
|
+
}, options.map((option) => (typeof option === 'string'
|
|
3331
|
+
? h('option', { key: option, value: option }, option)
|
|
3332
|
+
: h('option', { key: option.value, value: option.value }, option.label))))
|
|
3333
|
+
);
|
|
3334
|
+
const presetInList = seatPresets.includes(String(defaults.preset || ''));
|
|
3335
|
+
const sizeRows = [];
|
|
3336
|
+
if (seatControl === 'aspect' && seatAspects.length) {
|
|
3337
|
+
sizeRows.push(selectRow('aspect', t('seat.sizeAspect'), defaults.aspect || seatAspects[0], seatAspects,
|
|
3338
|
+
(value) => saveDefaults({ aspect: value })));
|
|
3339
|
+
if (seatTiers.length) {
|
|
3340
|
+
sizeRows.push(selectRow('tier', t('seat.sizeTier'), defaults.tier || seatTiers[0].value, seatPresets,
|
|
3341
|
+
(value) => saveDefaults({ tier: value })));
|
|
3342
|
+
}
|
|
3343
|
+
} else if (seatControl === 'preset') {
|
|
3344
|
+
const presetOptions = seatPresets.concat(seatCustom ? [{ value: '__custom', label: t('seat.sizeCustom') }] : []);
|
|
3345
|
+
sizeRows.push(selectRow('preset', t('seat.sizePreset'),
|
|
3346
|
+
presetInList ? String(defaults.preset) : (seatPresets[0] || '__custom'), presetOptions,
|
|
3347
|
+
(value) => { if (value !== '__custom') saveDefaults({ preset: value }); }));
|
|
3348
|
+
if (seatCustom) {
|
|
3349
|
+
sizeRows.push(sideInput('width', t('seat.width'), defaults.width, defaults.width, IMAGE_MIN_SIDE, IMAGE_MAX_SIDE,
|
|
3350
|
+
(value) => saveDefaults({ width: value, preset: value + 'x' + defaults.height }), widthDraft, setWidthDraft, t('seat.width')));
|
|
3351
|
+
sizeRows.push(sideInput('height', t('seat.height'), defaults.height, defaults.height, IMAGE_MIN_SIDE, IMAGE_MAX_SIDE,
|
|
3352
|
+
(value) => saveDefaults({ height: value, preset: defaults.width + 'x' + value }), heightDraft, setHeightDraft, t('seat.height')));
|
|
3353
|
+
}
|
|
3354
|
+
} else {
|
|
3355
|
+
// wh / prompt:两个宽高输入框;prompt 另加一句说明。
|
|
3356
|
+
sizeRows.push(sideInput('width', t('seat.width'), defaults.width, defaults.width, IMAGE_MIN_SIDE, IMAGE_MAX_SIDE,
|
|
3357
|
+
(value) => saveDefaults({ width: value }), widthDraft, setWidthDraft, t('seat.width')));
|
|
3358
|
+
sizeRows.push(sideInput('height', t('seat.height'), defaults.height, defaults.height, IMAGE_MIN_SIDE, IMAGE_MAX_SIDE,
|
|
3359
|
+
(value) => saveDefaults({ height: value }), heightDraft, setHeightDraft, t('seat.height')));
|
|
3360
|
+
if (seatControl === 'prompt') {
|
|
3361
|
+
sizeRows.push(h('div', { key: 'promptHint', className: plainRow },
|
|
3362
|
+
h('span', { className: MS.cellLabel, style: { opacity: 0.7 } }, t('seat.sizePromptHint'))));
|
|
3363
|
+
}
|
|
3364
|
+
}
|
|
3365
|
+
const sizeHintKey = seatSizeSpec && seatSizeSpec.hint ? 'seat.sizeHint.' + String(seatSizeSpec.hint) : '';
|
|
3366
|
+
if (sizeHintKey) {
|
|
3367
|
+
sizeRows.push(h('div', { key: 'sizeHint', className: plainRow },
|
|
3368
|
+
h('span', { className: MS.cellLabel, style: { opacity: 0.7 } }, t(sizeHintKey))));
|
|
3369
|
+
}
|
|
2891
3370
|
const sizePanel = [
|
|
2892
3371
|
h('div', { key: 'size', className: MS.groups + ' scrollable', role: 'menu', 'aria-label': t('seat.menuSize') },
|
|
2893
3372
|
h('div', { key: 'auto', className: plainRow },
|
|
@@ -2900,11 +3379,17 @@ window.__ModuleLoader__.load({
|
|
|
2900
3379
|
})
|
|
2901
3380
|
)
|
|
2902
3381
|
),
|
|
2903
|
-
//
|
|
2904
|
-
|
|
2905
|
-
(
|
|
2906
|
-
|
|
2907
|
-
|
|
3382
|
+
// 严格模式紧跟自动尺寸:它管的是请求里的尺寸算不算数,与自动/固定无关。
|
|
3383
|
+
h('div', { key: 'strict', className: plainRow },
|
|
3384
|
+
h('span', { className: MS.cellLabel, title: t('seat.sizeStrictHint') }, t('seat.sizeStrict')),
|
|
3385
|
+
h('label', { className: MS.cellValue, title: t('seat.sizeStrictHint') },
|
|
3386
|
+
h('input', {
|
|
3387
|
+
type: 'checkbox', checked: !!defaults.strict, 'aria-label': t('seat.sizeStrict'),
|
|
3388
|
+
onChange: (event) => saveDefaults({ strict: event.target.checked })
|
|
3389
|
+
})
|
|
3390
|
+
)
|
|
3391
|
+
),
|
|
3392
|
+
...sizeRows
|
|
2908
3393
|
)
|
|
2909
3394
|
];
|
|
2910
3395
|
// Auto 行固定在第一行(搜索框下面):只有它被选中时,对话模型才能挑模型。
|
|
@@ -3086,6 +3571,9 @@ window.__ModuleLoader__.load({
|
|
|
3086
3571
|
"form.displayName": "显示名称",
|
|
3087
3572
|
"form.baseUrl": "API 地址",
|
|
3088
3573
|
"form.protocol": "API 协议",
|
|
3574
|
+
"form.protocolAuto": "自动识别",
|
|
3575
|
+
"form.hostModel": "调度模型",
|
|
3576
|
+
"form.hostModelHint": "Responses API 需要一个能调用生图工具的主模型。",
|
|
3089
3577
|
"form.apiKey": "API 密钥",
|
|
3090
3578
|
"form.keyLocalOptional": "本地无鉴权可留空",
|
|
3091
3579
|
"form.keyEnter": "输入 API 密钥",
|
|
@@ -3108,7 +3596,6 @@ window.__ModuleLoader__.load({
|
|
|
3108
3596
|
"form.modelWorkflowPlaceholder": "在 ComfyUI 里用「导出(API)」保存,把 JSON 粘到这里",
|
|
3109
3597
|
"form.modelWorkflowHelp": "可用占位符:{{prompt}}、{{negative_prompt}}、{{width}}、{{height}}、{{seed}}、{{model}}、{{image}}(图生图时自动换成上传的参考图)",
|
|
3110
3598
|
"form.modelOptionsDone": "收起",
|
|
3111
|
-
"form.modelWorkflowClear": "清除工作流",
|
|
3112
3599
|
"form.modelWorkflowSample": "插入示例模板",
|
|
3113
3600
|
"form.modelEmpty": "模型选择器中将不显示任何模型;请先在模型目录里添加模型 ID。",
|
|
3114
3601
|
"form.addModel": "添加模型",
|
|
@@ -3145,7 +3632,7 @@ window.__ModuleLoader__.load({
|
|
|
3145
3632
|
"seat.menuQuality": "质量",
|
|
3146
3633
|
"seat.menuSize": "尺寸",
|
|
3147
3634
|
"seat.menuPromptOptimization": "提示词优化",
|
|
3148
|
-
"seat.
|
|
3635
|
+
"seat.promptOptimizationUsage": "用量更多",
|
|
3149
3636
|
"seat.notSelected": "未选择",
|
|
3150
3637
|
"seat.on": "开",
|
|
3151
3638
|
"seat.off": "关",
|
|
@@ -3163,7 +3650,6 @@ window.__ModuleLoader__.load({
|
|
|
3163
3650
|
"seat.triggerAriaQuality": "生图模型:{model},质量 {quality}",
|
|
3164
3651
|
"seat.settingsAria": "生图设置",
|
|
3165
3652
|
"seat.moreSettings": "其他设置",
|
|
3166
|
-
"seat.promptSection": "提示词",
|
|
3167
3653
|
"seat.qualityUnsupported": "此模型未提供质量档位",
|
|
3168
3654
|
"seat.qualityWarning": "更快消耗使用额度",
|
|
3169
3655
|
"seat.levelsCount": "{count} 档",
|
|
@@ -3200,6 +3686,7 @@ window.__ModuleLoader__.load({
|
|
|
3200
3686
|
"serverError.provider.missingKey": "生图提供商「{provider}」缺少 API Key",
|
|
3201
3687
|
"serverError.provider.missingKeyWithRef": "生图提供商「{provider}」缺少 API Key(凭据 {ref})",
|
|
3202
3688
|
"serverError.models.unsupported": "该部署方式不支持获取模型列表",
|
|
3689
|
+
"serverError.models.notFound": "该地址没有模型列表接口(HTTP 404),请手动填写模型 ID",
|
|
3203
3690
|
"serverError.adapter.unknownProtocol": "暂不支持该生图协议:{protocol}(可用:{available})",
|
|
3204
3691
|
"serverError.adapter.notFound": "找不到生图适配器:{adapter}(可用:{available})",
|
|
3205
3692
|
"serverError.config.credentialsUnavailable": "凭据服务未挂载,无法安全保存 API Key",
|
|
@@ -3213,6 +3700,7 @@ window.__ModuleLoader__.load({
|
|
|
3213
3700
|
"quality.low": "低",
|
|
3214
3701
|
"quality.medium": "中",
|
|
3215
3702
|
"quality.high": "高",
|
|
3703
|
+
"quality.xhigh": "极高",
|
|
3216
3704
|
"quality.max": "最高",
|
|
3217
3705
|
"quality.auto": "自动",
|
|
3218
3706
|
"quality.standard": "标准",
|
|
@@ -3249,6 +3737,49 @@ window.__ModuleLoader__.load({
|
|
|
3249
3737
|
"update.command": "dsh plugin add dsh-mo-image@{tag}",
|
|
3250
3738
|
"update.viewRelease": "在 npm 查看",
|
|
3251
3739
|
"update.noNotes": "暂无更新说明",
|
|
3740
|
+
"form.modelMappingParse": "解析工作流",
|
|
3741
|
+
"form.modelMappingParsing": "解析中…",
|
|
3742
|
+
"form.modelMappingFailed": "解析失败",
|
|
3743
|
+
"form.modelMappingSkip": "不注入",
|
|
3744
|
+
"form.modelMappingFormatApi": "API 格式",
|
|
3745
|
+
"form.modelMappingFormatUi": "UI 格式",
|
|
3746
|
+
"form.modelMappingSampler": "采样器",
|
|
3747
|
+
"form.modelMappingPrompt": "提示词",
|
|
3748
|
+
"form.modelMappingNegative": "负面词",
|
|
3749
|
+
"form.modelMappingWidth": "宽度",
|
|
3750
|
+
"form.modelMappingHeight": "高度",
|
|
3751
|
+
"form.modelMappingSeed": "种子",
|
|
3752
|
+
"form.modelMappingModel": "模型",
|
|
3753
|
+
"form.modelMappingImage": "参考图",
|
|
3754
|
+
"form.modelMappingColName": "参数名",
|
|
3755
|
+
"form.modelMappingColTarget": "参数映射",
|
|
3756
|
+
"form.modelMappingColExpose": "是否暴露",
|
|
3757
|
+
"param.steps": "步数",
|
|
3758
|
+
"param.cfg": "提示词强度",
|
|
3759
|
+
"param.sampler_name": "采样器",
|
|
3760
|
+
"param.scheduler": "调度器",
|
|
3761
|
+
"param.denoise": "重绘幅度",
|
|
3762
|
+
"param.batch_size": "批量张数",
|
|
3763
|
+
"param.guidance": "引导强度",
|
|
3764
|
+
"param.cfg.desc": "提示词对画面的约束强度;过高画面僵硬,过低容易跑题",
|
|
3765
|
+
"param.sampler_name.desc": "采样算法,决定收敛方式和画面质感",
|
|
3766
|
+
"param.scheduler.desc": "噪声调度曲线,和采样器配合决定去噪节奏",
|
|
3767
|
+
"param.denoise.desc": "图生图时保留原图的程度;1 表示完全重绘",
|
|
3768
|
+
"param.batch_size.desc": "一次生成的图片数量,越大越占显存",
|
|
3769
|
+
"param.guidance.desc": "蒸馏模型的引导系数,通常固定在 1 附近",
|
|
3770
|
+
"form.a1111ParamsHint": "勾选后对话模型可以通过 params 覆盖这些参数;不勾选就沿用 WebUI 里的设置",
|
|
3771
|
+
"form.a1111ColType": "类型",
|
|
3772
|
+
"seat.sizeAspect": "比例",
|
|
3773
|
+
"seat.sizeTier": "档位",
|
|
3774
|
+
"seat.sizePreset": "尺寸",
|
|
3775
|
+
"seat.sizeCustom": "自定义",
|
|
3776
|
+
"seat.sizeStrict": "严格",
|
|
3777
|
+
"seat.sizeStrictHint": "成品尺寸一定等于设置值;会话里没指定尺寸时不生效",
|
|
3778
|
+
"seat.sizePromptHint": "该模型不接收尺寸参数;尺寸会写进提示词",
|
|
3779
|
+
"seat.sizeHint.ratioOnly": "分辨率由模型按比例决定",
|
|
3780
|
+
"seat.sizeHint.fixedPixels": "分辨率由平台固定:core 1.5MP,sd3/ultra 1MP",
|
|
3781
|
+
"seat.sizeHint.noSizeField": "该模型不接收尺寸参数",
|
|
3782
|
+
"seat.sizeHint.modelDecides": "不传尺寸时由模型自选",
|
|
3252
3783
|
},
|
|
3253
3784
|
"en": {
|
|
3254
3785
|
"nav": "Image models",
|
|
@@ -3267,6 +3798,9 @@ window.__ModuleLoader__.load({
|
|
|
3267
3798
|
"form.displayName": "Display name",
|
|
3268
3799
|
"form.baseUrl": "API URL",
|
|
3269
3800
|
"form.protocol": "API protocol",
|
|
3801
|
+
"form.protocolAuto": "Auto-detect",
|
|
3802
|
+
"form.hostModel": "Host model",
|
|
3803
|
+
"form.hostModelHint": "The Responses API needs a main model that can call the image tool.",
|
|
3270
3804
|
"form.apiKey": "API key",
|
|
3271
3805
|
"form.keyLocalOptional": "Optional for local services without auth",
|
|
3272
3806
|
"form.keyEnter": "Enter API key",
|
|
@@ -3289,7 +3823,6 @@ window.__ModuleLoader__.load({
|
|
|
3289
3823
|
"form.modelWorkflowPlaceholder": "In ComfyUI use Export (API), then paste the JSON here",
|
|
3290
3824
|
"form.modelWorkflowHelp": "Placeholders: {{prompt}}, {{negative_prompt}}, {{width}}, {{height}}, {{seed}}, {{model}}, {{image}} (replaced by the uploaded reference on image edit)",
|
|
3291
3825
|
"form.modelOptionsDone": "Done",
|
|
3292
|
-
"form.modelWorkflowClear": "Clear workflow",
|
|
3293
3826
|
"form.modelWorkflowSample": "Insert sample template",
|
|
3294
3827
|
"form.modelEmpty": "The model picker will be empty. Add at least one model ID to the catalog first.",
|
|
3295
3828
|
"form.addModel": "Add model",
|
|
@@ -3326,7 +3859,7 @@ window.__ModuleLoader__.load({
|
|
|
3326
3859
|
"seat.menuQuality": "Quality",
|
|
3327
3860
|
"seat.menuSize": "Size",
|
|
3328
3861
|
"seat.menuPromptOptimization": "Prompt optimization",
|
|
3329
|
-
"seat.
|
|
3862
|
+
"seat.promptOptimizationUsage": "Uses more quota",
|
|
3330
3863
|
"seat.notSelected": "Not selected",
|
|
3331
3864
|
"seat.on": "On",
|
|
3332
3865
|
"seat.off": "Off",
|
|
@@ -3344,7 +3877,6 @@ window.__ModuleLoader__.load({
|
|
|
3344
3877
|
"seat.triggerAriaQuality": "Image model: {model}, quality {quality}",
|
|
3345
3878
|
"seat.settingsAria": "Image settings",
|
|
3346
3879
|
"seat.moreSettings": "More settings",
|
|
3347
|
-
"seat.promptSection": "Prompt",
|
|
3348
3880
|
"seat.qualityUnsupported": "This model has no quality levels",
|
|
3349
3881
|
"seat.qualityWarning": "Consumes usage quota faster",
|
|
3350
3882
|
"seat.levelsCount": "{count} levels",
|
|
@@ -3381,6 +3913,7 @@ window.__ModuleLoader__.load({
|
|
|
3381
3913
|
"serverError.provider.missingKey": "The image provider “{provider}” has no API key.",
|
|
3382
3914
|
"serverError.provider.missingKeyWithRef": "The image provider “{provider}” has no API key (credential {ref}).",
|
|
3383
3915
|
"serverError.models.unsupported": "This provider does not expose a model list.",
|
|
3916
|
+
"serverError.models.notFound": "This address has no model list endpoint (HTTP 404). Type the model ID manually.",
|
|
3384
3917
|
"serverError.adapter.unknownProtocol": "Unsupported image protocol: {protocol}. Available: {available}.",
|
|
3385
3918
|
"serverError.adapter.notFound": "Image adapter not found: {adapter}. Available: {available}.",
|
|
3386
3919
|
"serverError.config.credentialsUnavailable": "The credentials service is unavailable, so the API key cannot be stored securely.",
|
|
@@ -3394,6 +3927,7 @@ window.__ModuleLoader__.load({
|
|
|
3394
3927
|
"quality.low": "Low",
|
|
3395
3928
|
"quality.medium": "Medium",
|
|
3396
3929
|
"quality.high": "High",
|
|
3930
|
+
"quality.xhigh": "XHigh",
|
|
3397
3931
|
"quality.max": "Max",
|
|
3398
3932
|
"quality.auto": "Auto",
|
|
3399
3933
|
"quality.standard": "Standard",
|
|
@@ -3430,6 +3964,49 @@ window.__ModuleLoader__.load({
|
|
|
3430
3964
|
"update.command": "dsh plugin add dsh-mo-image@{tag}",
|
|
3431
3965
|
"update.viewRelease": "View on npm",
|
|
3432
3966
|
"update.noNotes": "This release has no notes.",
|
|
3967
|
+
"form.modelMappingParse": "Parse workflow",
|
|
3968
|
+
"form.modelMappingParsing": "Parsing…",
|
|
3969
|
+
"form.modelMappingFailed": "Parsing failed",
|
|
3970
|
+
"form.modelMappingSkip": "Do not inject",
|
|
3971
|
+
"form.modelMappingFormatApi": "API format",
|
|
3972
|
+
"form.modelMappingFormatUi": "UI format",
|
|
3973
|
+
"form.modelMappingSampler": "Sampler",
|
|
3974
|
+
"form.modelMappingPrompt": "Prompt",
|
|
3975
|
+
"form.modelMappingNegative": "Negative prompt",
|
|
3976
|
+
"form.modelMappingWidth": "Width",
|
|
3977
|
+
"form.modelMappingHeight": "Height",
|
|
3978
|
+
"form.modelMappingSeed": "Seed",
|
|
3979
|
+
"form.modelMappingModel": "Model",
|
|
3980
|
+
"form.modelMappingImage": "Reference image",
|
|
3981
|
+
"form.modelMappingColName": "Parameter",
|
|
3982
|
+
"form.modelMappingColTarget": "Mapping",
|
|
3983
|
+
"form.modelMappingColExpose": "Exposed",
|
|
3984
|
+
"param.steps": "Steps",
|
|
3985
|
+
"param.cfg": "CFG scale",
|
|
3986
|
+
"param.sampler_name": "Sampler",
|
|
3987
|
+
"param.scheduler": "Scheduler",
|
|
3988
|
+
"param.denoise": "Denoise",
|
|
3989
|
+
"param.batch_size": "Batch size",
|
|
3990
|
+
"param.guidance": "Guidance",
|
|
3991
|
+
"param.cfg.desc": "How strongly the prompt constrains the image; too high looks stiff, too low drifts off topic",
|
|
3992
|
+
"param.sampler_name.desc": "Sampling algorithm that decides convergence and texture",
|
|
3993
|
+
"param.scheduler.desc": "Noise schedule; with the sampler it sets the denoising rhythm",
|
|
3994
|
+
"param.denoise.desc": "How much of the source image is kept in image-to-image; 1 redraws it completely",
|
|
3995
|
+
"param.batch_size.desc": "Images generated per run; larger values use more VRAM",
|
|
3996
|
+
"param.guidance.desc": "Guidance scale for distilled models, usually close to 1",
|
|
3997
|
+
"form.a1111ParamsHint": "Checked parameters can be overridden through params; unchecked ones follow the WebUI settings",
|
|
3998
|
+
"form.a1111ColType": "Type",
|
|
3999
|
+
"seat.sizeAspect": "Ratio",
|
|
4000
|
+
"seat.sizeTier": "Tier",
|
|
4001
|
+
"seat.sizePreset": "Size",
|
|
4002
|
+
"seat.sizeCustom": "Custom",
|
|
4003
|
+
"seat.sizeStrict": "Strict",
|
|
4004
|
+
"seat.sizeStrictHint": "The result is forced to the configured size; no effect when the request carries no size",
|
|
4005
|
+
"seat.sizePromptHint": "This model takes no size field; the size is written into the prompt",
|
|
4006
|
+
"seat.sizeHint.ratioOnly": "Resolution follows the ratio",
|
|
4007
|
+
"seat.sizeHint.fixedPixels": "Resolution is fixed by the platform: core 1.5MP, sd3/ultra 1MP",
|
|
4008
|
+
"seat.sizeHint.noSizeField": "This model takes no size field",
|
|
4009
|
+
"seat.sizeHint.modelDecides": "The model picks when no size is sent",
|
|
3433
4010
|
},
|
|
3434
4011
|
"ja": {
|
|
3435
4012
|
"nav": "画像生成モデル",
|
|
@@ -3448,6 +4025,9 @@ window.__ModuleLoader__.load({
|
|
|
3448
4025
|
"form.displayName": "表示名",
|
|
3449
4026
|
"form.baseUrl": "API URL",
|
|
3450
4027
|
"form.protocol": "API プロトコル",
|
|
4028
|
+
"form.protocolAuto": "自動判別",
|
|
4029
|
+
"form.hostModel": "ホストモデル",
|
|
4030
|
+
"form.hostModelHint": "Responses API では画像ツールを呼び出せるメインモデルが必要です。",
|
|
3451
4031
|
"form.apiKey": "API キー",
|
|
3452
4032
|
"form.keyLocalOptional": "認証なしのローカルサービスでは空欄可",
|
|
3453
4033
|
"form.keyEnter": "API キーを入力",
|
|
@@ -3470,7 +4050,6 @@ window.__ModuleLoader__.load({
|
|
|
3470
4050
|
"form.modelWorkflowPlaceholder": "ComfyUI で「エクスポート(API)」して JSON をここに貼り付け",
|
|
3471
4051
|
"form.modelWorkflowHelp": "利用できるプレースホルダー:{{prompt}}、{{negative_prompt}}、{{width}}、{{height}}、{{seed}}、{{model}}、{{image}}(画像編集時はアップロードした参照画像に置き換わります)",
|
|
3472
4052
|
"form.modelOptionsDone": "閉じる",
|
|
3473
|
-
"form.modelWorkflowClear": "ワークフローを消去",
|
|
3474
4053
|
"form.modelWorkflowSample": "サンプルを挿入",
|
|
3475
4054
|
"form.modelEmpty": "モデル選択には何も表示されません。先にモデルカタログへモデル ID を追加してください。",
|
|
3476
4055
|
"form.addModel": "モデルを追加",
|
|
@@ -3507,7 +4086,7 @@ window.__ModuleLoader__.load({
|
|
|
3507
4086
|
"seat.menuQuality": "画質",
|
|
3508
4087
|
"seat.menuSize": "サイズ",
|
|
3509
4088
|
"seat.menuPromptOptimization": "プロンプト最適化",
|
|
3510
|
-
"seat.
|
|
4089
|
+
"seat.promptOptimizationUsage": "使用量が増えます",
|
|
3511
4090
|
"seat.notSelected": "未選択",
|
|
3512
4091
|
"seat.on": "オン",
|
|
3513
4092
|
"seat.off": "オフ",
|
|
@@ -3525,7 +4104,6 @@ window.__ModuleLoader__.load({
|
|
|
3525
4104
|
"seat.triggerAriaQuality": "画像生成モデル:{model}、画質 {quality}",
|
|
3526
4105
|
"seat.settingsAria": "画像生成設定",
|
|
3527
4106
|
"seat.moreSettings": "その他の設定",
|
|
3528
|
-
"seat.promptSection": "プロンプト",
|
|
3529
4107
|
"seat.qualityUnsupported": "このモデルには画質レベルがありません",
|
|
3530
4108
|
"seat.qualityWarning": "使用量を早く消費します",
|
|
3531
4109
|
"seat.levelsCount": "{count} 段階",
|
|
@@ -3562,6 +4140,7 @@ window.__ModuleLoader__.load({
|
|
|
3562
4140
|
"serverError.provider.missingKey": "画像プロバイダー「{provider}」に API キーがありません。",
|
|
3563
4141
|
"serverError.provider.missingKeyWithRef": "画像プロバイダー「{provider}」に API キーがありません(認証情報 {ref})。",
|
|
3564
4142
|
"serverError.models.unsupported": "このデプロイ方法ではモデル一覧を取得できません。",
|
|
4143
|
+
"serverError.models.notFound": "このアドレスにはモデル一覧の API がありません(HTTP 404)。モデル ID を手動で入力してください。",
|
|
3565
4144
|
"serverError.adapter.unknownProtocol": "未対応の画像プロトコルです:{protocol}(利用可能:{available})",
|
|
3566
4145
|
"serverError.adapter.notFound": "画像アダプターが見つかりません:{adapter}(利用可能:{available})",
|
|
3567
4146
|
"serverError.config.credentialsUnavailable": "認証情報サービスが利用できないため、API キーを安全に保存できません。",
|
|
@@ -3575,6 +4154,7 @@ window.__ModuleLoader__.load({
|
|
|
3575
4154
|
"quality.low": "低",
|
|
3576
4155
|
"quality.medium": "中",
|
|
3577
4156
|
"quality.high": "高",
|
|
4157
|
+
"quality.xhigh": "極高",
|
|
3578
4158
|
"quality.max": "最大",
|
|
3579
4159
|
"quality.auto": "自動",
|
|
3580
4160
|
"quality.standard": "標準",
|
|
@@ -3611,6 +4191,49 @@ window.__ModuleLoader__.load({
|
|
|
3611
4191
|
"update.command": "dsh plugin add dsh-mo-image@{tag}",
|
|
3612
4192
|
"update.viewRelease": "npm で見る",
|
|
3613
4193
|
"update.noNotes": "このリリースには説明がありません。",
|
|
4194
|
+
"form.modelMappingParse": "ワークフローを解析",
|
|
4195
|
+
"form.modelMappingParsing": "解析中…",
|
|
4196
|
+
"form.modelMappingFailed": "解析に失敗しました",
|
|
4197
|
+
"form.modelMappingSkip": "注入しない",
|
|
4198
|
+
"form.modelMappingFormatApi": "API 形式",
|
|
4199
|
+
"form.modelMappingFormatUi": "UI 形式",
|
|
4200
|
+
"form.modelMappingSampler": "サンプラー",
|
|
4201
|
+
"form.modelMappingPrompt": "プロンプト",
|
|
4202
|
+
"form.modelMappingNegative": "ネガティブプロンプト",
|
|
4203
|
+
"form.modelMappingWidth": "幅",
|
|
4204
|
+
"form.modelMappingHeight": "高さ",
|
|
4205
|
+
"form.modelMappingSeed": "シード",
|
|
4206
|
+
"form.modelMappingModel": "モデル",
|
|
4207
|
+
"form.modelMappingImage": "参照画像",
|
|
4208
|
+
"form.modelMappingColName": "パラメータ",
|
|
4209
|
+
"form.modelMappingColTarget": "マッピング",
|
|
4210
|
+
"form.modelMappingColExpose": "公開",
|
|
4211
|
+
"param.steps": "ステップ数",
|
|
4212
|
+
"param.cfg": "プロンプト強度",
|
|
4213
|
+
"param.sampler_name": "サンプラー",
|
|
4214
|
+
"param.scheduler": "スケジューラー",
|
|
4215
|
+
"param.denoise": "再描画量",
|
|
4216
|
+
"param.batch_size": "バッチ数",
|
|
4217
|
+
"param.guidance": "ガイダンス強度",
|
|
4218
|
+
"param.cfg.desc": "プロンプトが画像を拘束する強さ。高すぎると硬く、低すぎると意図から外れる",
|
|
4219
|
+
"param.sampler_name.desc": "収束の仕方と質感を決めるサンプリングアルゴリズム",
|
|
4220
|
+
"param.scheduler.desc": "ノイズのスケジュール。サンプラーと組で除去のリズムを決める",
|
|
4221
|
+
"param.denoise.desc": "画像から画像で元画像を残す度合い。1 は完全な再描画",
|
|
4222
|
+
"param.batch_size.desc": "一度に生成する枚数。大きいほど VRAM を使う",
|
|
4223
|
+
"param.guidance.desc": "蒸留モデルのガイダンス係数。通常は 1 付近",
|
|
4224
|
+
"form.a1111ParamsHint": "チェックした項目だけ params で上書きできます。チェックしない項目は WebUI の設定に従います",
|
|
4225
|
+
"form.a1111ColType": "種類",
|
|
4226
|
+
"seat.sizeAspect": "比率",
|
|
4227
|
+
"seat.sizeTier": "解像度",
|
|
4228
|
+
"seat.sizePreset": "サイズ",
|
|
4229
|
+
"seat.sizeCustom": "カスタム",
|
|
4230
|
+
"seat.sizeStrict": "厳密",
|
|
4231
|
+
"seat.sizeStrictHint": "出力サイズを設定値に揃えます。指定がない場合は無効です",
|
|
4232
|
+
"seat.sizePromptHint": "このモデルはサイズ指定を受け取らないためプロンプトに書き込みます",
|
|
4233
|
+
"seat.sizeHint.ratioOnly": "解像度は比率に応じて決まります",
|
|
4234
|
+
"seat.sizeHint.fixedPixels": "解像度は固定です:core 1.5MP、sd3/ultra 1MP",
|
|
4235
|
+
"seat.sizeHint.noSizeField": "このモデルはサイズ指定を受け取りません",
|
|
4236
|
+
"seat.sizeHint.modelDecides": "未指定ならモデルが選びます",
|
|
3614
4237
|
},
|
|
3615
4238
|
"es": {
|
|
3616
4239
|
"nav": "Modelos de imagen",
|
|
@@ -3629,6 +4252,9 @@ window.__ModuleLoader__.load({
|
|
|
3629
4252
|
"form.displayName": "Nombre visible",
|
|
3630
4253
|
"form.baseUrl": "URL de la API",
|
|
3631
4254
|
"form.protocol": "Protocolo de API",
|
|
4255
|
+
"form.protocolAuto": "Detección automática",
|
|
4256
|
+
"form.hostModel": "Modelo anfitrión",
|
|
4257
|
+
"form.hostModelHint": "La API Responses necesita un modelo principal que pueda llamar a la herramienta de imagen.",
|
|
3632
4258
|
"form.apiKey": "Clave de API",
|
|
3633
4259
|
"form.keyLocalOptional": "Opcional para servicios locales sin autenticación",
|
|
3634
4260
|
"form.keyEnter": "Introduce la clave de API",
|
|
@@ -3651,7 +4277,6 @@ window.__ModuleLoader__.load({
|
|
|
3651
4277
|
"form.modelWorkflowPlaceholder": "En ComfyUI usa Exportar (API) y pega el JSON aquí",
|
|
3652
4278
|
"form.modelWorkflowHelp": "Marcadores: {{prompt}}, {{negative_prompt}}, {{width}}, {{height}}, {{seed}}, {{model}}, {{image}} (se sustituye por la referencia subida al editar)",
|
|
3653
4279
|
"form.modelOptionsDone": "Listo",
|
|
3654
|
-
"form.modelWorkflowClear": "Borrar flujo de trabajo",
|
|
3655
4280
|
"form.modelWorkflowSample": "Insertar plantilla de ejemplo",
|
|
3656
4281
|
"form.modelEmpty": "El selector de modelos estará vacío. Añade primero al menos un ID de modelo al catálogo.",
|
|
3657
4282
|
"form.addModel": "Añadir modelo",
|
|
@@ -3688,7 +4313,7 @@ window.__ModuleLoader__.load({
|
|
|
3688
4313
|
"seat.menuQuality": "Calidad",
|
|
3689
4314
|
"seat.menuSize": "Tamaño",
|
|
3690
4315
|
"seat.menuPromptOptimization": "Optimización de prompts",
|
|
3691
|
-
"seat.
|
|
4316
|
+
"seat.promptOptimizationUsage": "Usa más cuota",
|
|
3692
4317
|
"seat.notSelected": "Sin seleccionar",
|
|
3693
4318
|
"seat.on": "Activado",
|
|
3694
4319
|
"seat.off": "Desactivado",
|
|
@@ -3706,7 +4331,6 @@ window.__ModuleLoader__.load({
|
|
|
3706
4331
|
"seat.triggerAriaQuality": "Modelo de imagen: {model}, calidad {quality}",
|
|
3707
4332
|
"seat.settingsAria": "Ajustes de imagen",
|
|
3708
4333
|
"seat.moreSettings": "Más ajustes",
|
|
3709
|
-
"seat.promptSection": "Prompt",
|
|
3710
4334
|
"seat.qualityUnsupported": "Este modelo no ofrece niveles de calidad",
|
|
3711
4335
|
"seat.qualityWarning": "Consume la cuota más rápido",
|
|
3712
4336
|
"seat.levelsCount": "{count} niveles",
|
|
@@ -3743,6 +4367,7 @@ window.__ModuleLoader__.load({
|
|
|
3743
4367
|
"serverError.provider.missingKey": "El proveedor de imágenes «{provider}» no tiene clave de API.",
|
|
3744
4368
|
"serverError.provider.missingKeyWithRef": "El proveedor de imágenes «{provider}» no tiene clave de API (credencial {ref}).",
|
|
3745
4369
|
"serverError.models.unsupported": "Este proveedor no ofrece una lista de modelos.",
|
|
4370
|
+
"serverError.models.notFound": "Esta dirección no tiene un endpoint de lista de modelos (HTTP 404). Escribe el ID del modelo manualmente.",
|
|
3746
4371
|
"serverError.adapter.unknownProtocol": "Protocolo de imagen no compatible: {protocol}. Disponibles: {available}.",
|
|
3747
4372
|
"serverError.adapter.notFound": "No se encontró el adaptador de imágenes: {adapter}. Disponibles: {available}.",
|
|
3748
4373
|
"serverError.config.credentialsUnavailable": "El servicio de credenciales no está disponible, así que la clave de API no se puede guardar de forma segura.",
|
|
@@ -3756,6 +4381,7 @@ window.__ModuleLoader__.load({
|
|
|
3756
4381
|
"quality.low": "Baja",
|
|
3757
4382
|
"quality.medium": "Media",
|
|
3758
4383
|
"quality.high": "Alta",
|
|
4384
|
+
"quality.xhigh": "Muy alta",
|
|
3759
4385
|
"quality.max": "Máxima",
|
|
3760
4386
|
"quality.auto": "Automática",
|
|
3761
4387
|
"quality.standard": "Estándar",
|
|
@@ -3792,6 +4418,49 @@ window.__ModuleLoader__.load({
|
|
|
3792
4418
|
"update.command": "dsh plugin add dsh-mo-image@{tag}",
|
|
3793
4419
|
"update.viewRelease": "Ver en npm",
|
|
3794
4420
|
"update.noNotes": "Esta versión no tiene notas.",
|
|
4421
|
+
"form.modelMappingParse": "Analizar flujo de trabajo",
|
|
4422
|
+
"form.modelMappingParsing": "Analizando…",
|
|
4423
|
+
"form.modelMappingFailed": "No se pudo analizar",
|
|
4424
|
+
"form.modelMappingSkip": "No inyectar",
|
|
4425
|
+
"form.modelMappingFormatApi": "Formato API",
|
|
4426
|
+
"form.modelMappingFormatUi": "Formato UI",
|
|
4427
|
+
"form.modelMappingSampler": "Muestreador",
|
|
4428
|
+
"form.modelMappingPrompt": "Prompt",
|
|
4429
|
+
"form.modelMappingNegative": "Prompt negativo",
|
|
4430
|
+
"form.modelMappingWidth": "Ancho",
|
|
4431
|
+
"form.modelMappingHeight": "Alto",
|
|
4432
|
+
"form.modelMappingSeed": "Semilla",
|
|
4433
|
+
"form.modelMappingModel": "Modelo",
|
|
4434
|
+
"form.modelMappingImage": "Imagen de referencia",
|
|
4435
|
+
"form.modelMappingColName": "Parámetro",
|
|
4436
|
+
"form.modelMappingColTarget": "Mapeo",
|
|
4437
|
+
"form.modelMappingColExpose": "Expuesto",
|
|
4438
|
+
"param.steps": "Pasos",
|
|
4439
|
+
"param.cfg": "Intensidad del prompt",
|
|
4440
|
+
"param.sampler_name": "Muestreador",
|
|
4441
|
+
"param.scheduler": "Planificador",
|
|
4442
|
+
"param.denoise": "Redibujado",
|
|
4443
|
+
"param.batch_size": "Tamaño de lote",
|
|
4444
|
+
"param.guidance": "Intensidad de guía",
|
|
4445
|
+
"param.cfg.desc": "Cuánto constriñe el prompt la imagen; demasiado alto la vuelve rígida, demasiado bajo se desvía",
|
|
4446
|
+
"param.sampler_name.desc": "Algoritmo de muestreo que decide la convergencia y la textura",
|
|
4447
|
+
"param.scheduler.desc": "Curva de ruido; junto al muestreador marca el ritmo de eliminación de ruido",
|
|
4448
|
+
"param.denoise.desc": "Cuánto de la imagen original se conserva; 1 la redibuja por completo",
|
|
4449
|
+
"param.batch_size.desc": "Imágenes por ejecución; valores mayores usan más VRAM",
|
|
4450
|
+
"param.guidance.desc": "Escala de guía para modelos destilados, normalmente cerca de 1",
|
|
4451
|
+
"form.a1111ParamsHint": "Los parámetros marcados se pueden sobrescribir con params; los demás siguen la configuración del WebUI",
|
|
4452
|
+
"form.a1111ColType": "Tipo",
|
|
4453
|
+
"seat.sizeAspect": "Proporción",
|
|
4454
|
+
"seat.sizeTier": "Nivel",
|
|
4455
|
+
"seat.sizePreset": "Tamaño",
|
|
4456
|
+
"seat.sizeCustom": "Personalizado",
|
|
4457
|
+
"seat.sizeStrict": "Estricto",
|
|
4458
|
+
"seat.sizeStrictHint": "El resultado se ajusta al tamaño configurado; sin tamaño no aplica",
|
|
4459
|
+
"seat.sizePromptHint": "Este modelo no acepta tamaño; se escribe en el prompt",
|
|
4460
|
+
"seat.sizeHint.ratioOnly": "La resolución depende de la proporción",
|
|
4461
|
+
"seat.sizeHint.fixedPixels": "La resolución la fija la plataforma: core 1.5MP, sd3/ultra 1MP",
|
|
4462
|
+
"seat.sizeHint.noSizeField": "Este modelo no acepta tamaño",
|
|
4463
|
+
"seat.sizeHint.modelDecides": "Si no se envía tamaño, lo elige el modelo",
|
|
3795
4464
|
},
|
|
3796
4465
|
"fr": {
|
|
3797
4466
|
"nav": "Modèles d'image",
|
|
@@ -3810,6 +4479,9 @@ window.__ModuleLoader__.load({
|
|
|
3810
4479
|
"form.displayName": "Nom affiché",
|
|
3811
4480
|
"form.baseUrl": "URL de l'API",
|
|
3812
4481
|
"form.protocol": "Protocole d'API",
|
|
4482
|
+
"form.protocolAuto": "Détection automatique",
|
|
4483
|
+
"form.hostModel": "Modèle hôte",
|
|
4484
|
+
"form.hostModelHint": "L'API Responses nécessite un modèle principal capable d'appeler l'outil d'image.",
|
|
3813
4485
|
"form.apiKey": "Clé d'API",
|
|
3814
4486
|
"form.keyLocalOptional": "Facultatif pour un service local sans authentification",
|
|
3815
4487
|
"form.keyEnter": "Saisissez la clé d'API",
|
|
@@ -3832,7 +4504,6 @@ window.__ModuleLoader__.load({
|
|
|
3832
4504
|
"form.modelWorkflowPlaceholder": "Dans ComfyUI, utilisez Exporter (API) puis collez le JSON ici",
|
|
3833
4505
|
"form.modelWorkflowHelp": "Variables : {{prompt}}, {{negative_prompt}}, {{width}}, {{height}}, {{seed}}, {{model}}, {{image}} (remplacé par l'image de référence envoyée lors de l'édition)",
|
|
3834
4506
|
"form.modelOptionsDone": "Terminé",
|
|
3835
|
-
"form.modelWorkflowClear": "Effacer le workflow",
|
|
3836
4507
|
"form.modelWorkflowSample": "Insérer un modèle d’exemple",
|
|
3837
4508
|
"form.modelEmpty": "Le sélecteur de modèles sera vide. Ajoutez d'abord au moins un ID de modèle au catalogue.",
|
|
3838
4509
|
"form.addModel": "Ajouter un modèle",
|
|
@@ -3869,7 +4540,7 @@ window.__ModuleLoader__.load({
|
|
|
3869
4540
|
"seat.menuQuality": "Qualité",
|
|
3870
4541
|
"seat.menuSize": "Taille",
|
|
3871
4542
|
"seat.menuPromptOptimization": "Optimisation du prompt",
|
|
3872
|
-
"seat.
|
|
4543
|
+
"seat.promptOptimizationUsage": "Consomme plus de quota",
|
|
3873
4544
|
"seat.notSelected": "Non sélectionné",
|
|
3874
4545
|
"seat.on": "Activé",
|
|
3875
4546
|
"seat.off": "Désactivé",
|
|
@@ -3887,7 +4558,6 @@ window.__ModuleLoader__.load({
|
|
|
3887
4558
|
"seat.triggerAriaQuality": "Modèle d'image : {model}, qualité {quality}",
|
|
3888
4559
|
"seat.settingsAria": "Paramètres d'image",
|
|
3889
4560
|
"seat.moreSettings": "Autres réglages",
|
|
3890
|
-
"seat.promptSection": "Prompt",
|
|
3891
4561
|
"seat.qualityUnsupported": "Ce modèle n'expose pas de niveaux de qualité",
|
|
3892
4562
|
"seat.qualityWarning": "Consomme le quota plus vite",
|
|
3893
4563
|
"seat.levelsCount": "{count} niveaux",
|
|
@@ -3924,6 +4594,7 @@ window.__ModuleLoader__.load({
|
|
|
3924
4594
|
"serverError.provider.missingKey": "Le fournisseur d'images « {provider} » n'a pas de clé d'API.",
|
|
3925
4595
|
"serverError.provider.missingKeyWithRef": "Le fournisseur d'images « {provider} » n'a pas de clé d'API (identifiant {ref}).",
|
|
3926
4596
|
"serverError.models.unsupported": "Ce fournisseur n'expose pas de liste de modèles.",
|
|
4597
|
+
"serverError.models.notFound": "Cette adresse n'a pas d'endpoint de liste de modèles (HTTP 404). Saisissez l'ID du modèle manuellement.",
|
|
3927
4598
|
"serverError.adapter.unknownProtocol": "Protocole d'image non pris en charge : {protocol}. Disponibles : {available}.",
|
|
3928
4599
|
"serverError.adapter.notFound": "Adaptateur d'images introuvable : {adapter}. Disponibles : {available}.",
|
|
3929
4600
|
"serverError.config.credentialsUnavailable": "Le service d'identifiants n'est pas disponible ; la clé d'API ne peut pas être stockée en toute sécurité.",
|
|
@@ -3937,6 +4608,7 @@ window.__ModuleLoader__.load({
|
|
|
3937
4608
|
"quality.low": "Basse",
|
|
3938
4609
|
"quality.medium": "Moyenne",
|
|
3939
4610
|
"quality.high": "Haute",
|
|
4611
|
+
"quality.xhigh": "Très haute",
|
|
3940
4612
|
"quality.max": "Maximale",
|
|
3941
4613
|
"quality.auto": "Automatique",
|
|
3942
4614
|
"quality.standard": "Standard",
|
|
@@ -3973,6 +4645,49 @@ window.__ModuleLoader__.load({
|
|
|
3973
4645
|
"update.command": "dsh plugin add dsh-mo-image@{tag}",
|
|
3974
4646
|
"update.viewRelease": "Voir sur npm",
|
|
3975
4647
|
"update.noNotes": "Cette version n'a pas de notes.",
|
|
4648
|
+
"form.modelMappingParse": "Analyser le workflow",
|
|
4649
|
+
"form.modelMappingParsing": "Analyse…",
|
|
4650
|
+
"form.modelMappingFailed": "Analyse impossible",
|
|
4651
|
+
"form.modelMappingSkip": "Ne pas injecter",
|
|
4652
|
+
"form.modelMappingFormatApi": "Format API",
|
|
4653
|
+
"form.modelMappingFormatUi": "Format UI",
|
|
4654
|
+
"form.modelMappingSampler": "Sampler",
|
|
4655
|
+
"form.modelMappingPrompt": "Prompt",
|
|
4656
|
+
"form.modelMappingNegative": "Prompt négatif",
|
|
4657
|
+
"form.modelMappingWidth": "Largeur",
|
|
4658
|
+
"form.modelMappingHeight": "Hauteur",
|
|
4659
|
+
"form.modelMappingSeed": "Graine",
|
|
4660
|
+
"form.modelMappingModel": "Modèle",
|
|
4661
|
+
"form.modelMappingImage": "Image de référence",
|
|
4662
|
+
"form.modelMappingColName": "Paramètre",
|
|
4663
|
+
"form.modelMappingColTarget": "Correspondance",
|
|
4664
|
+
"form.modelMappingColExpose": "Exposé",
|
|
4665
|
+
"param.steps": "Étapes",
|
|
4666
|
+
"param.cfg": "Intensité du prompt",
|
|
4667
|
+
"param.sampler_name": "Échantillonneur",
|
|
4668
|
+
"param.scheduler": "Planificateur",
|
|
4669
|
+
"param.denoise": "Redessin",
|
|
4670
|
+
"param.batch_size": "Taille du lot",
|
|
4671
|
+
"param.guidance": "Intensité du guidage",
|
|
4672
|
+
"param.cfg.desc": "Force avec laquelle le prompt contraint l’image ; trop élevé fige, trop bas dérive",
|
|
4673
|
+
"param.sampler_name.desc": "Algorithme d’échantillonnage qui décide de la convergence et de la texture",
|
|
4674
|
+
"param.scheduler.desc": "Courbe de bruit ; avec l’échantillonneur, règle le rythme de débruitage",
|
|
4675
|
+
"param.denoise.desc": "Part de l’image d’origine conservée ; 1 la redessine entièrement",
|
|
4676
|
+
"param.batch_size.desc": "Nombre d’images par exécution ; plus grand consomme plus de VRAM",
|
|
4677
|
+
"param.guidance.desc": "Échelle de guidage des modèles distillés, généralement proche de 1",
|
|
4678
|
+
"form.a1111ParamsHint": "Les paramètres cochés peuvent être remplacés via params ; les autres suivent les réglages du WebUI",
|
|
4679
|
+
"form.a1111ColType": "Type",
|
|
4680
|
+
"seat.sizeAspect": "Ratio",
|
|
4681
|
+
"seat.sizeTier": "Palier",
|
|
4682
|
+
"seat.sizePreset": "Taille",
|
|
4683
|
+
"seat.sizeCustom": "Personnalisé",
|
|
4684
|
+
"seat.sizeStrict": "Strict",
|
|
4685
|
+
"seat.sizeStrictHint": "La taille finale est forcée; sans taille demandée cela ne s applique pas",
|
|
4686
|
+
"seat.sizePromptHint": "Ce modèle n accepte pas de taille ; elle est écrite dans le prompt",
|
|
4687
|
+
"seat.sizeHint.ratioOnly": "La résolution suit le ratio",
|
|
4688
|
+
"seat.sizeHint.fixedPixels": "La résolution est fixe : core 1.5MP, sd3/ultra 1MP",
|
|
4689
|
+
"seat.sizeHint.noSizeField": "Ce modèle n accepte pas de taille",
|
|
4690
|
+
"seat.sizeHint.modelDecides": "Sans taille, le modèle choisit",
|
|
3976
4691
|
},
|
|
3977
4692
|
"de": {
|
|
3978
4693
|
"nav": "Bildmodelle",
|
|
@@ -3991,6 +4706,9 @@ window.__ModuleLoader__.load({
|
|
|
3991
4706
|
"form.displayName": "Anzeigename",
|
|
3992
4707
|
"form.baseUrl": "API-URL",
|
|
3993
4708
|
"form.protocol": "API-Protokoll",
|
|
4709
|
+
"form.protocolAuto": "Automatisch erkennen",
|
|
4710
|
+
"form.hostModel": "Host-Modell",
|
|
4711
|
+
"form.hostModelHint": "Die Responses-API benötigt ein Hauptmodell, das das Bildwerkzeug aufrufen kann.",
|
|
3994
4712
|
"form.apiKey": "API-Schlüssel",
|
|
3995
4713
|
"form.keyLocalOptional": "Optional für lokale Dienste ohne Authentifizierung",
|
|
3996
4714
|
"form.keyEnter": "API-Schlüssel eingeben",
|
|
@@ -4013,7 +4731,6 @@ window.__ModuleLoader__.load({
|
|
|
4013
4731
|
"form.modelWorkflowPlaceholder": "In ComfyUI „Exportieren (API)\" nutzen und das JSON hier einfügen",
|
|
4014
4732
|
"form.modelWorkflowHelp": "Platzhalter: {{prompt}}, {{negative_prompt}}, {{width}}, {{height}}, {{seed}}, {{model}}, {{image}} (wird beim Bearbeiten durch das hochgeladene Referenzbild ersetzt)",
|
|
4015
4733
|
"form.modelOptionsDone": "Fertig",
|
|
4016
|
-
"form.modelWorkflowClear": "Workflow löschen",
|
|
4017
4734
|
"form.modelWorkflowSample": "Beispiel einfügen",
|
|
4018
4735
|
"form.modelEmpty": "Die Modellauswahl bleibt leer. Fügen Sie zuerst mindestens eine Modell-ID zum Katalog hinzu.",
|
|
4019
4736
|
"form.addModel": "Modell hinzufügen",
|
|
@@ -4050,7 +4767,7 @@ window.__ModuleLoader__.load({
|
|
|
4050
4767
|
"seat.menuQuality": "Qualität",
|
|
4051
4768
|
"seat.menuSize": "Größe",
|
|
4052
4769
|
"seat.menuPromptOptimization": "Prompt-Optimierung",
|
|
4053
|
-
"seat.
|
|
4770
|
+
"seat.promptOptimizationUsage": "Verbraucht mehr Kontingent",
|
|
4054
4771
|
"seat.notSelected": "Nicht ausgewählt",
|
|
4055
4772
|
"seat.on": "Ein",
|
|
4056
4773
|
"seat.off": "Aus",
|
|
@@ -4068,7 +4785,6 @@ window.__ModuleLoader__.load({
|
|
|
4068
4785
|
"seat.triggerAriaQuality": "Bildmodell: {model}, Qualität {quality}",
|
|
4069
4786
|
"seat.settingsAria": "Bildeinstellungen",
|
|
4070
4787
|
"seat.moreSettings": "Weitere Einstellungen",
|
|
4071
|
-
"seat.promptSection": "Prompt",
|
|
4072
4788
|
"seat.qualityUnsupported": "Dieses Modell bietet keine Qualitätsstufen",
|
|
4073
4789
|
"seat.qualityWarning": "Verbraucht das Kontingent schneller",
|
|
4074
4790
|
"seat.levelsCount": "{count} Stufen",
|
|
@@ -4105,6 +4821,7 @@ window.__ModuleLoader__.load({
|
|
|
4105
4821
|
"serverError.provider.missingKey": "Der Bildanbieter „{provider}“ hat keinen API-Schlüssel.",
|
|
4106
4822
|
"serverError.provider.missingKeyWithRef": "Der Bildanbieter „{provider}“ hat keinen API-Schlüssel (Anmeldedaten {ref}).",
|
|
4107
4823
|
"serverError.models.unsupported": "Dieser Anbieter stellt keine Modellliste bereit.",
|
|
4824
|
+
"serverError.models.notFound": "Diese Adresse hat keinen Modelllisten-Endpunkt (HTTP 404). Geben Sie die Modell-ID manuell ein.",
|
|
4108
4825
|
"serverError.adapter.unknownProtocol": "Nicht unterstütztes Bildprotokoll: {protocol}. Verfügbar: {available}.",
|
|
4109
4826
|
"serverError.adapter.notFound": "Bildadapter nicht gefunden: {adapter}. Verfügbar: {available}.",
|
|
4110
4827
|
"serverError.config.credentialsUnavailable": "Der Anmeldedatendienst ist nicht verfügbar; der API-Schlüssel kann nicht sicher gespeichert werden.",
|
|
@@ -4118,6 +4835,7 @@ window.__ModuleLoader__.load({
|
|
|
4118
4835
|
"quality.low": "Niedrig",
|
|
4119
4836
|
"quality.medium": "Mittel",
|
|
4120
4837
|
"quality.high": "Hoch",
|
|
4838
|
+
"quality.xhigh": "Sehr hoch",
|
|
4121
4839
|
"quality.max": "Maximal",
|
|
4122
4840
|
"quality.auto": "Automatisch",
|
|
4123
4841
|
"quality.standard": "Standard",
|
|
@@ -4154,6 +4872,49 @@ window.__ModuleLoader__.load({
|
|
|
4154
4872
|
"update.command": "dsh plugin add dsh-mo-image@{tag}",
|
|
4155
4873
|
"update.viewRelease": "Auf npm ansehen",
|
|
4156
4874
|
"update.noNotes": "Diese Version hat keine Hinweise.",
|
|
4875
|
+
"form.modelMappingParse": "Workflow analysieren",
|
|
4876
|
+
"form.modelMappingParsing": "Analysiere…",
|
|
4877
|
+
"form.modelMappingFailed": "Analyse fehlgeschlagen",
|
|
4878
|
+
"form.modelMappingSkip": "Nicht einsetzen",
|
|
4879
|
+
"form.modelMappingFormatApi": "API-Format",
|
|
4880
|
+
"form.modelMappingFormatUi": "UI-Format",
|
|
4881
|
+
"form.modelMappingSampler": "Sampler",
|
|
4882
|
+
"form.modelMappingPrompt": "Prompt",
|
|
4883
|
+
"form.modelMappingNegative": "Negativ-Prompt",
|
|
4884
|
+
"form.modelMappingWidth": "Breite",
|
|
4885
|
+
"form.modelMappingHeight": "Höhe",
|
|
4886
|
+
"form.modelMappingSeed": "Seed",
|
|
4887
|
+
"form.modelMappingModel": "Modell",
|
|
4888
|
+
"form.modelMappingImage": "Referenzbild",
|
|
4889
|
+
"form.modelMappingColName": "Parameter",
|
|
4890
|
+
"form.modelMappingColTarget": "Zuordnung",
|
|
4891
|
+
"form.modelMappingColExpose": "Freigeben",
|
|
4892
|
+
"param.steps": "Schritte",
|
|
4893
|
+
"param.cfg": "Prompt-Stärke",
|
|
4894
|
+
"param.sampler_name": "Sampler",
|
|
4895
|
+
"param.scheduler": "Scheduler",
|
|
4896
|
+
"param.denoise": "Neuzeichnen",
|
|
4897
|
+
"param.batch_size": "Stapelgröße",
|
|
4898
|
+
"param.guidance": "Führungsstärke",
|
|
4899
|
+
"param.cfg.desc": "Wie stark der Prompt das Bild bestimmt; zu hoch wirkt starr, zu niedrig schweift ab",
|
|
4900
|
+
"param.sampler_name.desc": "Sampling-Algorithmus, der Konvergenz und Textur bestimmt",
|
|
4901
|
+
"param.scheduler.desc": "Rauschplan; legt mit dem Sampler den Entrauschungsrhythmus fest",
|
|
4902
|
+
"param.denoise.desc": "Wie viel vom Ausgangsbild erhalten bleibt; 1 zeichnet komplett neu",
|
|
4903
|
+
"param.batch_size.desc": "Bilder pro Lauf; größere Werte brauchen mehr VRAM",
|
|
4904
|
+
"param.guidance.desc": "Führungsskala für distillierte Modelle, meist nahe 1",
|
|
4905
|
+
"form.a1111ParamsHint": "Angehakte Parameter lassen sich über params überschreiben; die übrigen folgen den WebUI-Einstellungen",
|
|
4906
|
+
"form.a1111ColType": "Typ",
|
|
4907
|
+
"seat.sizeAspect": "Seitenverhältnis",
|
|
4908
|
+
"seat.sizeTier": "Stufe",
|
|
4909
|
+
"seat.sizePreset": "Größe",
|
|
4910
|
+
"seat.sizeCustom": "Benutzerdefiniert",
|
|
4911
|
+
"seat.sizeStrict": "Strikt",
|
|
4912
|
+
"seat.sizeStrictHint": "Die Ausgabegröße wird erzwungen; ohne Größe im Request wirkungslos",
|
|
4913
|
+
"seat.sizePromptHint": "Dieses Modell nimmt keine Größe an; sie wird in den Prompt geschrieben",
|
|
4914
|
+
"seat.sizeHint.ratioOnly": "Die Auflösung folgt dem Seitenverhältnis",
|
|
4915
|
+
"seat.sizeHint.fixedPixels": "Die Auflösung ist fest: core 1.5MP, sd3/ultra 1MP",
|
|
4916
|
+
"seat.sizeHint.noSizeField": "Dieses Modell nimmt keine Größe an",
|
|
4917
|
+
"seat.sizeHint.modelDecides": "Ohne Größe wählt das Modell",
|
|
4157
4918
|
},
|
|
4158
4919
|
"ru": {
|
|
4159
4920
|
"nav": "Модели изображений",
|
|
@@ -4172,6 +4933,9 @@ window.__ModuleLoader__.load({
|
|
|
4172
4933
|
"form.displayName": "Отображаемое имя",
|
|
4173
4934
|
"form.baseUrl": "URL API",
|
|
4174
4935
|
"form.protocol": "Протокол API",
|
|
4936
|
+
"form.protocolAuto": "Автоопределение",
|
|
4937
|
+
"form.hostModel": "Ведущая модель",
|
|
4938
|
+
"form.hostModelHint": "Responses API требует основную модель, которая может вызывать инструмент изображений.",
|
|
4175
4939
|
"form.apiKey": "Ключ API",
|
|
4176
4940
|
"form.keyLocalOptional": "Необязательно для локальных служб без авторизации",
|
|
4177
4941
|
"form.keyEnter": "Введите ключ API",
|
|
@@ -4194,7 +4958,6 @@ window.__ModuleLoader__.load({
|
|
|
4194
4958
|
"form.modelWorkflowPlaceholder": "В ComfyUI выберите «Экспорт (API)» и вставьте JSON сюда",
|
|
4195
4959
|
"form.modelWorkflowHelp": "Доступные подстановки: {{prompt}}, {{negative_prompt}}, {{width}}, {{height}}, {{seed}}, {{model}}, {{image}} (при редактировании подставляется загруженный референс)",
|
|
4196
4960
|
"form.modelOptionsDone": "Готово",
|
|
4197
|
-
"form.modelWorkflowClear": "Очистить workflow",
|
|
4198
4961
|
"form.modelWorkflowSample": "Вставить пример",
|
|
4199
4962
|
"form.modelEmpty": "Выбор моделей будет пустым. Сначала добавьте хотя бы один ID модели в каталог.",
|
|
4200
4963
|
"form.addModel": "Добавить модель",
|
|
@@ -4231,7 +4994,7 @@ window.__ModuleLoader__.load({
|
|
|
4231
4994
|
"seat.menuQuality": "Качество",
|
|
4232
4995
|
"seat.menuSize": "Размер",
|
|
4233
4996
|
"seat.menuPromptOptimization": "Оптимизация промпта",
|
|
4234
|
-
"seat.
|
|
4997
|
+
"seat.promptOptimizationUsage": "Расходует больше квоты",
|
|
4235
4998
|
"seat.notSelected": "Не выбрано",
|
|
4236
4999
|
"seat.on": "Вкл.",
|
|
4237
5000
|
"seat.off": "Выкл.",
|
|
@@ -4249,7 +5012,6 @@ window.__ModuleLoader__.load({
|
|
|
4249
5012
|
"seat.triggerAriaQuality": "Модель изображений: {model}, качество {quality}",
|
|
4250
5013
|
"seat.settingsAria": "Настройки изображений",
|
|
4251
5014
|
"seat.moreSettings": "Другие настройки",
|
|
4252
|
-
"seat.promptSection": "Промпт",
|
|
4253
5015
|
"seat.qualityUnsupported": "У этой модели нет уровней качества",
|
|
4254
5016
|
"seat.qualityWarning": "Быстрее расходует квоту",
|
|
4255
5017
|
"seat.levelsCount": "{count} уровней",
|
|
@@ -4286,6 +5048,7 @@ window.__ModuleLoader__.load({
|
|
|
4286
5048
|
"serverError.provider.missingKey": "У поставщика изображений «{provider}» нет ключа API.",
|
|
4287
5049
|
"serverError.provider.missingKeyWithRef": "У поставщика изображений «{provider}» нет ключа API (учётные данные {ref}).",
|
|
4288
5050
|
"serverError.models.unsupported": "Этот поставщик не предоставляет список моделей.",
|
|
5051
|
+
"serverError.models.notFound": "У этого адреса нет эндпоинта списка моделей (HTTP 404). Введите ID модели вручную.",
|
|
4289
5052
|
"serverError.adapter.unknownProtocol": "Неподдерживаемый протокол изображений: {protocol}. Доступны: {available}.",
|
|
4290
5053
|
"serverError.adapter.notFound": "Адаптер изображений не найден: {adapter}. Доступны: {available}.",
|
|
4291
5054
|
"serverError.config.credentialsUnavailable": "Служба учётных данных недоступна, поэтому ключ API нельзя сохранить безопасно.",
|
|
@@ -4299,6 +5062,7 @@ window.__ModuleLoader__.load({
|
|
|
4299
5062
|
"quality.low": "Низкое",
|
|
4300
5063
|
"quality.medium": "Среднее",
|
|
4301
5064
|
"quality.high": "Высокое",
|
|
5065
|
+
"quality.xhigh": "Очень высокое",
|
|
4302
5066
|
"quality.max": "Максимум",
|
|
4303
5067
|
"quality.auto": "Авто",
|
|
4304
5068
|
"quality.standard": "Стандартное",
|
|
@@ -4335,6 +5099,49 @@ window.__ModuleLoader__.load({
|
|
|
4335
5099
|
"update.command": "dsh plugin add dsh-mo-image@{tag}",
|
|
4336
5100
|
"update.viewRelease": "Открыть на npm",
|
|
4337
5101
|
"update.noNotes": "В этом выпуске нет примечаний.",
|
|
5102
|
+
"form.modelMappingParse": "Разобрать workflow",
|
|
5103
|
+
"form.modelMappingParsing": "Разбор…",
|
|
5104
|
+
"form.modelMappingFailed": "Не удалось разобрать",
|
|
5105
|
+
"form.modelMappingSkip": "Не внедрять",
|
|
5106
|
+
"form.modelMappingFormatApi": "Формат API",
|
|
5107
|
+
"form.modelMappingFormatUi": "Формат UI",
|
|
5108
|
+
"form.modelMappingSampler": "Сэмплер",
|
|
5109
|
+
"form.modelMappingPrompt": "Промпт",
|
|
5110
|
+
"form.modelMappingNegative": "Негативный промпт",
|
|
5111
|
+
"form.modelMappingWidth": "Ширина",
|
|
5112
|
+
"form.modelMappingHeight": "Высота",
|
|
5113
|
+
"form.modelMappingSeed": "Сид",
|
|
5114
|
+
"form.modelMappingModel": "Модель",
|
|
5115
|
+
"form.modelMappingImage": "Референс",
|
|
5116
|
+
"form.modelMappingColName": "Параметр",
|
|
5117
|
+
"form.modelMappingColTarget": "Привязка",
|
|
5118
|
+
"form.modelMappingColExpose": "Доступен",
|
|
5119
|
+
"param.steps": "Шаги",
|
|
5120
|
+
"param.cfg": "Сила промпта",
|
|
5121
|
+
"param.sampler_name": "Сэмплер",
|
|
5122
|
+
"param.scheduler": "Планировщик",
|
|
5123
|
+
"param.denoise": "Перерисовка",
|
|
5124
|
+
"param.batch_size": "Размер пакета",
|
|
5125
|
+
"param.guidance": "Сила наведения",
|
|
5126
|
+
"param.cfg.desc": "Насколько промпт управляет изображением; слишком высоко — жёстко, слишком низко — уходит в сторону",
|
|
5127
|
+
"param.sampler_name.desc": "Алгоритм сэмплирования, определяющий сходимость и текстуру",
|
|
5128
|
+
"param.scheduler.desc": "Расписание шума; вместе с сэмплером задаёт ритм удаления шума",
|
|
5129
|
+
"param.denoise.desc": "Доля исходного изображения, которая сохраняется; 1 — полная перерисовка",
|
|
5130
|
+
"param.batch_size.desc": "Сколько изображений за запуск; больше — больше видеопамяти",
|
|
5131
|
+
"param.guidance.desc": "Коэффициент наведения для дистиллированных моделей, обычно около 1",
|
|
5132
|
+
"form.a1111ParamsHint": "Отмеченные параметры можно переопределить через params; остальные берутся из настроек WebUI",
|
|
5133
|
+
"form.a1111ColType": "Тип",
|
|
5134
|
+
"seat.sizeAspect": "Пропорции",
|
|
5135
|
+
"seat.sizeTier": "Уровень",
|
|
5136
|
+
"seat.sizePreset": "Размер",
|
|
5137
|
+
"seat.sizeCustom": "Свой",
|
|
5138
|
+
"seat.sizeStrict": "Строго",
|
|
5139
|
+
"seat.sizeStrictHint": "Размер результата принудительно задаётся; без размера в запросе не действует",
|
|
5140
|
+
"seat.sizePromptHint": "Модель не принимает размер; он добавляется в промпт",
|
|
5141
|
+
"seat.sizeHint.ratioOnly": "Разрешение зависит от пропорций",
|
|
5142
|
+
"seat.sizeHint.fixedPixels": "Разрешение задаёт платформа: core 1.5MP, sd3/ultra 1MP",
|
|
5143
|
+
"seat.sizeHint.noSizeField": "Модель не принимает размер",
|
|
5144
|
+
"seat.sizeHint.modelDecides": "Без размера выбирает модель",
|
|
4338
5145
|
},
|
|
4339
5146
|
"pt": {
|
|
4340
5147
|
"nav": "Modelos de imagem",
|
|
@@ -4353,6 +5160,9 @@ window.__ModuleLoader__.load({
|
|
|
4353
5160
|
"form.displayName": "Nome de exibição",
|
|
4354
5161
|
"form.baseUrl": "URL da API",
|
|
4355
5162
|
"form.protocol": "Protocolo da API",
|
|
5163
|
+
"form.protocolAuto": "Detecção automática",
|
|
5164
|
+
"form.hostModel": "Modelo host",
|
|
5165
|
+
"form.hostModelHint": "A API Responses precisa de um modelo principal que possa chamar a ferramenta de imagem.",
|
|
4356
5166
|
"form.apiKey": "Chave de API",
|
|
4357
5167
|
"form.keyLocalOptional": "Opcional para serviços locais sem autenticação",
|
|
4358
5168
|
"form.keyEnter": "Insira a chave de API",
|
|
@@ -4375,7 +5185,6 @@ window.__ModuleLoader__.load({
|
|
|
4375
5185
|
"form.modelWorkflowPlaceholder": "No ComfyUI use Exportar (API) e cole o JSON aqui",
|
|
4376
5186
|
"form.modelWorkflowHelp": "Marcadores: {{prompt}}, {{negative_prompt}}, {{width}}, {{height}}, {{seed}}, {{model}}, {{image}} (substituído pela referência enviada ao editar)",
|
|
4377
5187
|
"form.modelOptionsDone": "Concluído",
|
|
4378
|
-
"form.modelWorkflowClear": "Limpar fluxo de trabalho",
|
|
4379
5188
|
"form.modelWorkflowSample": "Inserir modelo de exemplo",
|
|
4380
5189
|
"form.modelEmpty": "O seletor de modelos ficará vazio. Adicione pelo menos um ID de modelo ao catálogo primeiro.",
|
|
4381
5190
|
"form.addModel": "Adicionar modelo",
|
|
@@ -4412,7 +5221,7 @@ window.__ModuleLoader__.load({
|
|
|
4412
5221
|
"seat.menuQuality": "Qualidade",
|
|
4413
5222
|
"seat.menuSize": "Tamanho",
|
|
4414
5223
|
"seat.menuPromptOptimization": "Otimização de prompt",
|
|
4415
|
-
"seat.
|
|
5224
|
+
"seat.promptOptimizationUsage": "Usa mais cota",
|
|
4416
5225
|
"seat.notSelected": "Não selecionado",
|
|
4417
5226
|
"seat.on": "Ativado",
|
|
4418
5227
|
"seat.off": "Desativado",
|
|
@@ -4430,7 +5239,6 @@ window.__ModuleLoader__.load({
|
|
|
4430
5239
|
"seat.triggerAriaQuality": "Modelo de imagem: {model}, qualidade {quality}",
|
|
4431
5240
|
"seat.settingsAria": "Configurações de imagem",
|
|
4432
5241
|
"seat.moreSettings": "Mais ajustes",
|
|
4433
|
-
"seat.promptSection": "Prompt",
|
|
4434
5242
|
"seat.qualityUnsupported": "Este modelo não oferece níveis de qualidade",
|
|
4435
5243
|
"seat.qualityWarning": "Consome a cota mais rápido",
|
|
4436
5244
|
"seat.levelsCount": "{count} níveis",
|
|
@@ -4467,6 +5275,7 @@ window.__ModuleLoader__.load({
|
|
|
4467
5275
|
"serverError.provider.missingKey": "O provedor de imagens “{provider}” não tem chave de API.",
|
|
4468
5276
|
"serverError.provider.missingKeyWithRef": "O provedor de imagens “{provider}” não tem chave de API (credencial {ref}).",
|
|
4469
5277
|
"serverError.models.unsupported": "Este provedor não expõe uma lista de modelos.",
|
|
5278
|
+
"serverError.models.notFound": "Este endereço não tem endpoint de lista de modelos (HTTP 404). Digite o ID do modelo manualmente.",
|
|
4470
5279
|
"serverError.adapter.unknownProtocol": "Protocolo de imagem não suportado: {protocol}. Disponíveis: {available}.",
|
|
4471
5280
|
"serverError.adapter.notFound": "Adaptador de imagem não encontrado: {adapter}. Disponíveis: {available}.",
|
|
4472
5281
|
"serverError.config.credentialsUnavailable": "O serviço de credenciais não está disponível, então a chave de API não pode ser armazenada com segurança.",
|
|
@@ -4480,6 +5289,7 @@ window.__ModuleLoader__.load({
|
|
|
4480
5289
|
"quality.low": "Baixa",
|
|
4481
5290
|
"quality.medium": "Média",
|
|
4482
5291
|
"quality.high": "Alta",
|
|
5292
|
+
"quality.xhigh": "Muito alta",
|
|
4483
5293
|
"quality.max": "Máxima",
|
|
4484
5294
|
"quality.auto": "Automática",
|
|
4485
5295
|
"quality.standard": "Padrão",
|
|
@@ -4516,6 +5326,49 @@ window.__ModuleLoader__.load({
|
|
|
4516
5326
|
"update.command": "dsh plugin add dsh-mo-image@{tag}",
|
|
4517
5327
|
"update.viewRelease": "Ver no npm",
|
|
4518
5328
|
"update.noNotes": "Esta versão não tem notas.",
|
|
5329
|
+
"form.modelMappingParse": "Analisar fluxo",
|
|
5330
|
+
"form.modelMappingParsing": "Analisando…",
|
|
5331
|
+
"form.modelMappingFailed": "Falha ao analisar",
|
|
5332
|
+
"form.modelMappingSkip": "Não injetar",
|
|
5333
|
+
"form.modelMappingFormatApi": "Formato API",
|
|
5334
|
+
"form.modelMappingFormatUi": "Formato UI",
|
|
5335
|
+
"form.modelMappingSampler": "Amostrador",
|
|
5336
|
+
"form.modelMappingPrompt": "Prompt",
|
|
5337
|
+
"form.modelMappingNegative": "Prompt negativo",
|
|
5338
|
+
"form.modelMappingWidth": "Largura",
|
|
5339
|
+
"form.modelMappingHeight": "Altura",
|
|
5340
|
+
"form.modelMappingSeed": "Semente",
|
|
5341
|
+
"form.modelMappingModel": "Modelo",
|
|
5342
|
+
"form.modelMappingImage": "Imagem de referência",
|
|
5343
|
+
"form.modelMappingColName": "Parâmetro",
|
|
5344
|
+
"form.modelMappingColTarget": "Mapeamento",
|
|
5345
|
+
"form.modelMappingColExpose": "Exposto",
|
|
5346
|
+
"param.steps": "Passos",
|
|
5347
|
+
"param.cfg": "Intensidade do prompt",
|
|
5348
|
+
"param.sampler_name": "Amostrador",
|
|
5349
|
+
"param.scheduler": "Agendador",
|
|
5350
|
+
"param.denoise": "Redesenho",
|
|
5351
|
+
"param.batch_size": "Tamanho do lote",
|
|
5352
|
+
"param.guidance": "Intensidade de orientação",
|
|
5353
|
+
"param.cfg.desc": "Quanto o prompt restringe a imagem; alto demais fica rígido, baixo demais desvia",
|
|
5354
|
+
"param.sampler_name.desc": "Algoritmo de amostragem que define convergência e textura",
|
|
5355
|
+
"param.scheduler.desc": "Curva de ruído; com o amostrador define o ritmo de remoção de ruído",
|
|
5356
|
+
"param.denoise.desc": "Quanto da imagem original é mantido; 1 redesenha por completo",
|
|
5357
|
+
"param.batch_size.desc": "Imagens por execução; valores maiores usam mais VRAM",
|
|
5358
|
+
"param.guidance.desc": "Escala de orientação para modelos destilados, normalmente perto de 1",
|
|
5359
|
+
"form.a1111ParamsHint": "Os parâmetros marcados podem ser substituídos via params; os demais seguem as configurações do WebUI",
|
|
5360
|
+
"form.a1111ColType": "Tipo",
|
|
5361
|
+
"seat.sizeAspect": "Proporção",
|
|
5362
|
+
"seat.sizeTier": "Nível",
|
|
5363
|
+
"seat.sizePreset": "Tamanho",
|
|
5364
|
+
"seat.sizeCustom": "Personalizado",
|
|
5365
|
+
"seat.sizeStrict": "Estrito",
|
|
5366
|
+
"seat.sizeStrictHint": "O resultado é forçado ao tamanho configurado; sem tamanho no pedido não se aplica",
|
|
5367
|
+
"seat.sizePromptHint": "Este modelo não aceita tamanho; ele vai no prompt",
|
|
5368
|
+
"seat.sizeHint.ratioOnly": "A resolução segue a proporção",
|
|
5369
|
+
"seat.sizeHint.fixedPixels": "A resolução é fixa: core 1.5MP, sd3/ultra 1MP",
|
|
5370
|
+
"seat.sizeHint.noSizeField": "Este modelo não aceita tamanho",
|
|
5371
|
+
"seat.sizeHint.modelDecides": "Sem tamanho, o modelo escolhe",
|
|
4519
5372
|
},
|
|
4520
5373
|
};
|
|
4521
5374
|
// END GENERATED LOCALES
|
|
@@ -4698,6 +5551,9 @@ window.__ModuleLoader__.load({
|
|
|
4698
5551
|
postUpdateAction: postUpdateAction,
|
|
4699
5552
|
qualityRailLevels: qualityRailLevels,
|
|
4700
5553
|
qualityBucketOf: qualityBucketOf,
|
|
5554
|
+
sizeSpecFor: sizeSpecFor,
|
|
5555
|
+
sizeValueLabel: sizeValueLabel,
|
|
5556
|
+
sizeControlOf: sizeControlOf,
|
|
4701
5557
|
codexSkinProbe: codexSkinProbe,
|
|
4702
5558
|
deriveSeatView: deriveSeatView,
|
|
4703
5559
|
detectSeatSkinFromMarkers: detectSeatSkinFromMarkers,
|