Use '@' path mapping (#94)

This commit is contained in:
Chenlei Hu
2024-07-05 22:04:29 -04:00
committed by GitHub
parent b676604f81
commit d1934f27c8
17 changed files with 20 additions and 20 deletions

View File

@@ -3,7 +3,7 @@ import { applyClasses, ClassList, toggleElement } from "../utils";
import { prop } from "../../utils";
import type { ComfyPopup } from "./popup";
import type { ComfyComponent } from ".";
import type { ComfyApp } from "scripts/app";
import type { ComfyApp } from "@/scripts/app";
type ComfyButtonProps = {
icon?: string;

View File

@@ -1,4 +1,4 @@
import type { ComfyApp } from "scripts/app";
import type { ComfyApp } from "@/scripts/app";
import { api } from "../../api";
import { $el } from "../../ui";
import { downloadBlob } from "../../utils";

View File

@@ -4,7 +4,7 @@ import { api } from "../../api";
import { ComfySplitButton } from "../components/splitButton";
import { ComfyQueueOptions } from "./queueOptions";
import { prop } from "../../utils";
import type { ComfyApp } from "scripts/app";
import type { ComfyApp } from "@/scripts/app";
export class ComfyQueueButton {
element = $el("div.comfyui-queue-button");

View File

@@ -1,4 +1,4 @@
import type { ComfyApp } from "scripts/app";
import type { ComfyApp } from "@/scripts/app";
import { $el } from "../../ui";
import { prop } from "../../utils";

View File

@@ -1,4 +1,4 @@
import type { ComfyApp } from "scripts/app";
import type { ComfyApp } from "@/scripts/app";
import { ComfyButton } from "../components/button";
import { ComfyViewList, ComfyViewListButton } from "./viewList";

View File

@@ -2,7 +2,7 @@ import { ComfyButton } from "../components/button";
import { $el } from "../../ui";
import { api } from "../../api";
import { ComfyPopup } from "../components/popup";
import type { ComfyApp } from "scripts/app";
import type { ComfyApp } from "@/scripts/app";
type ViewListMode = "Queue" | "History";

View File

@@ -1,7 +1,7 @@
import { ComfyButton } from "../components/button";
import { ComfyViewList, ComfyViewListButton } from "./viewList";
import { api } from "../../api";
import type { ComfyApp } from "scripts/app";
import type { ComfyApp } from "@/scripts/app";
export class ComfyViewQueueButton extends ComfyViewListButton {
constructor(app: ComfyApp) {

View File

@@ -6,7 +6,7 @@ import { ComfyPopup } from "../components/popup";
import { createSpinner } from "../spinner";
import { ComfyWorkflow, trimJsonExt } from "../../workflows";
import { ComfyAsyncDialog } from "../components/asyncDialog";
import type { ComfyApp } from "scripts/app";
import type { ComfyApp } from "@/scripts/app";
import type { ComfyComponent } from "../components";
export class ComfyWorkflowsMenu {