mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-10 01:50:08 +00:00
Bundle all dynamically loaded css (#28)
* static css * Fix css import in tests
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
import { addStylesheet } from "../utils";
|
||||
import "./spinner.css";
|
||||
|
||||
// @ts-ignore
|
||||
addStylesheet(import.meta.url);
|
||||
|
||||
export function createSpinner() {
|
||||
const div = document.createElement("div");
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { api } from "../api";
|
||||
import { $el } from "../ui";
|
||||
import { addStylesheet } from "../utils";
|
||||
import { createSpinner } from "./spinner";
|
||||
import "./userSelection.css";
|
||||
|
||||
|
||||
interface SelectedUser {
|
||||
username: string;
|
||||
@@ -9,11 +10,9 @@ interface SelectedUser {
|
||||
created: boolean;
|
||||
}
|
||||
|
||||
|
||||
export class UserSelectionScreen {
|
||||
async show(users, user): Promise<SelectedUser>{
|
||||
// This will rarely be hit so move the loading to on demand
|
||||
// @ts-ignore
|
||||
await addStylesheet(import.meta.url);
|
||||
const userSelection = document.getElementById("comfy-user-selection");
|
||||
userSelection.style.display = "";
|
||||
return new Promise((resolve) => {
|
||||
|
||||
Reference in New Issue
Block a user