Extract API_ROOT const

This commit is contained in:
relhamdi
2026-06-03 11:27:45 +02:00
parent 954887822f
commit 9d4e8f2b84
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -1,3 +1,4 @@
export const API_ROOT = "/re-customutils";
export const EMPTY_VALUE = "--";
export const COLORS = {
+2 -2
View File
@@ -1,4 +1,4 @@
import { EMPTY_VALUE } from "./constants.js";
import { API_ROOT, EMPTY_VALUE } from "./constants.js";
import { findWidget, registerNode, waitForWidgets } from "./utils.js";
import { ButtonRowWidget } from "./widgets/button_row_widget.js";
import { LoraRowWidget } from "./widgets/lora_row_widget.js";
@@ -7,7 +7,7 @@ import { LoraRowWidget } from "./widgets/lora_row_widget.js";
const NODE_NAME = "StyleLoader";
const BASE_ENDPOINT = "/re-customutils/styles";
const BASE_ENDPOINT = `${API_ROOT}/styles`;
const NO_VAE = "none";
const MAX_LORAS = 15;
const DEFAULT_LORA_WEIGHT = 0.8;