diff --git a/web-plugin/api.js b/web-plugin/api.js deleted file mode 100644 index f152d28..0000000 --- a/web-plugin/api.js +++ /dev/null @@ -1,4 +0,0 @@ -/** @typedef {import('../../../web/scripts/api.js').api} API*/ -import { api as _api } from '../../scripts/api.js'; -/** @type {API} */ -export const api = _api; diff --git a/web-plugin/app.js b/web-plugin/app.js deleted file mode 100644 index 53ccc05..0000000 --- a/web-plugin/app.js +++ /dev/null @@ -1,4 +0,0 @@ -/** @typedef {import('../../../web/scripts/app.js').ComfyApp} ComfyApp*/ -import { app as _app } from '../../scripts/app.js'; -/** @type {ComfyApp} */ -export const app = _app; diff --git a/web-plugin/index.js b/web-plugin/index.js index de9e724..a997abf 100644 --- a/web-plugin/index.js +++ b/web-plugin/index.js @@ -1,8 +1,11 @@ -import { app } from "./app.js"; -import { api } from "./api.js"; -import { ComfyWidgets, LGraphNode } from "./widgets.js"; +import { app } from "../../scripts/app.js"; +import { api } from "../../scripts/api.js"; +// import { LGraphNode } from "../../scripts/widgets.js"; +LGraphNode = LiteGraph.LGraphNode; +import { ComfyDialog, $el } from "../../scripts/ui.js"; + import { generateDependencyGraph } from "https://esm.sh/comfyui-json@0.1.25"; -import { ComfyDeploy } from "https://esm.sh/comfydeploy@0.0.19-beta.30"; +import { ComfyDeploy } from "https://esm.sh/comfydeploy@2.0.0-beta.69"; const styles = ` .comfydeploy-menu-item { @@ -1287,8 +1290,6 @@ function addButton() { app.registerExtension(ext); -import { ComfyDialog, $el } from "../../scripts/ui.js"; - export class InfoDialog extends ComfyDialog { constructor() { super(); diff --git a/web-plugin/widgets.js b/web-plugin/widgets.js deleted file mode 100644 index a5bd3cf..0000000 --- a/web-plugin/widgets.js +++ /dev/null @@ -1,18 +0,0 @@ -// /** @typedef {import('../../../web/scripts/api.js').api} API*/ -// import { api as _api } from "../../scripts/api.js"; -// /** @type {API} */ -// export const api = _api; - -/** @typedef {typeof import('../../../web/scripts/widgets.js').ComfyWidgets} Widgets*/ -import { ComfyWidgets as _ComfyWidgets } from "../../scripts/widgets.js"; - -/** - * @type {Widgets} - */ -export const ComfyWidgets = _ComfyWidgets; - -// import { LGraphNode as _LGraphNode } from "../../types/litegraph.js"; - -/** @typedef {typeof import('../../../web/types/litegraph.js').LGraphNode} LGraphNode*/ -/** @type {LGraphNode}*/ -export const LGraphNode = LiteGraph.LGraphNode;