feat: component pack builder

- support drag & drop
- add node if single component importing
This commit is contained in:
dr.lt.data
2024-01-16 16:03:40 +09:00
committed by Dr.Lt.Data
parent 58a2494715
commit 4bdf7aabe4
7 changed files with 1022 additions and 90 deletions

View File

@@ -48,8 +48,7 @@ export async function install_checked_custom_node(grid_rows, target_i, caller, m
});
if(response.status == 400) {
app.ui.dialog.show(`${mode} failed: ${target.title}`);
app.ui.dialog.element.style.zIndex = 10010;
show_message(`${mode} failed: ${target.title}`);
continue;
}
@@ -64,8 +63,7 @@ export async function install_checked_custom_node(grid_rows, target_i, caller, m
}
if(failed != '') {
app.ui.dialog.show(`${mode} failed: ${failed}`);
app.ui.dialog.element.style.zIndex = 10010;
show_message(`${mode} failed: ${failed}`);
}
await caller.invalidateControl();
@@ -160,4 +158,9 @@ export async function free_models() {
app.ui.dialog.show('Unloading of models failed.<BR><BR>Installed ComfyUI may be an outdated version.')
}
app.ui.dialog.element.style.zIndex = 10010;
}
export function show_message(msg) {
app.ui.dialog.show(msg);
app.ui.dialog.element.style.zIndex = 10010;
}