codemirror option for text widgets & danbooru tag autocomplete
This commit is contained in:
@@ -34,6 +34,7 @@ import { tick } from "svelte";
|
||||
import { type SvelteComponentDev } from "svelte/internal";
|
||||
import { get, writable, type Writable } from "svelte/store";
|
||||
import ComfyPromptSerializer, { isActiveBackendNode, UpstreamNodeLocator } from "./ComfyPromptSerializer";
|
||||
import DanbooruTags from "$lib/DanbooruTags";
|
||||
|
||||
export const COMFYBOX_SERIAL_VERSION = 1;
|
||||
|
||||
@@ -232,6 +233,8 @@ export default class ComfyApp {
|
||||
|
||||
await this.updateHistoryAndQueue();
|
||||
|
||||
await this.initFrontendFeatures();
|
||||
|
||||
// await this.#invokeExtensionsAsync("setup");
|
||||
|
||||
// Ensure the canvas fills the window
|
||||
@@ -586,6 +589,10 @@ export default class ComfyApp {
|
||||
});
|
||||
}
|
||||
|
||||
private async initFrontendFeatures() {
|
||||
await DanbooruTags.instance.load();
|
||||
}
|
||||
|
||||
private async updateHistoryAndQueue() {
|
||||
const queue = await this.api.getQueue();
|
||||
const history = await this.api.getHistory();
|
||||
|
||||
Reference in New Issue
Block a user