docs: record recipe detail split progress

This commit is contained in:
DemonGatanjieu
2026-09-17 00:59:09 +08:00
parent d8691d8811
commit d9ce967de7
2 changed files with 9 additions and 6 deletions
+6 -1
View File
@@ -205,4 +205,9 @@
已验证设置/工具箱互斥、固定工具过滤、语言刷新及既有快捷栏测试。尚未拆
`main.js` 的 `browser.js` / `browser_entry.js` / `interface_settings.js`,也尚未把
笔记模块的公共返回协调迁入导航模块;真实 ComfyUI 拖动、停靠与窗口缩放待宿主验收。
- 阶段 3–7:待执行。
- 阶段 3(进行中,`d8691d881`):配方版本历史/差异/恢复归
`ui_recipe_versions.js`,结果图库与图片工作台跳转归 `ui_recipe_gallery.js`,跨子页
共用的 DOM、长值展示和复制控件归 `ui_recipe_detail_dom.js`。删除了无人调用的旧图库
对比实现;图库不再借道素材目录模块打开图片工作台。新增检查覆盖版本恢复请求、刷新回调
和图库工作台条目交接。模型匹配、参数方案、总览与配方目录拆分仍待执行。
- 阶段 4–7:待执行。
+3 -5
View File
@@ -47,7 +47,7 @@ export async function copyTextWithFeedback(buttonElement, value) {
const original = buttonElement.textContent;
const isIcon = original.length <= 2;
const copied = await copyText(value);
if (isIcon) {
buttonElement.textContent = copied ? '✓' : '!';
} else {
@@ -55,11 +55,11 @@ export async function copyTextWithFeedback(buttonElement, value) {
? `✓ ${t('recipeCopied')}`
: `! ${t('recipeCopyFailed')}`;
}
buttonElement.style.color = copied ? '#6ee7b7' : '#fca5a5';
buttonElement.style.borderColor = copied ? 'rgba(110, 231, 183, 0.7)' : 'rgba(252, 165, 165, 0.7)';
buttonElement.style.transition = 'all 0.2s ease';
window.setTimeout(() => {
buttonElement.textContent = original;
buttonElement.style.color = '';
@@ -67,7 +67,6 @@ export async function copyTextWithFeedback(buttonElement, value) {
}, 1200);
return copied;
}
export function appendCopyButton(parent, value, label = t('recipeCopyParameter')) {
const copy = button(parent, '', 'anomalous-recipe-copy-param anomalous-recipe-detail-copy');
copy.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg>`;
@@ -102,4 +101,3 @@ export function appendValueViewer(parent, value, className = '', options = {}) {
const PROMPT_ROLES = new Set(['positive', 'negative', 'both', 'ignored', 'unknown']);
const PROMPT_WIDGET_NAME = /^(?:text|prompt|text_[gl]|positive|negative)$/i;