codemirror option for text widgets & danbooru tag autocomplete

This commit is contained in:
space-nuko
2023-05-24 11:47:08 -05:00
parent 6bbd18a261
commit 18c63c9f2e
15 changed files with 100697 additions and 25 deletions

View File

@@ -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();