mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-27 17:52:16 +00:00
Display frontend version in settings dialog (#157)
* Display frontend version in settings dialog * Change execution order
This commit is contained in:
@@ -12,11 +12,11 @@
|
|||||||
font-family: 'Roboto Mono', 'Noto Color Emoji';
|
font-family: 'Roboto Mono', 'Noto Color Emoji';
|
||||||
}
|
}
|
||||||
</style> -->
|
</style> -->
|
||||||
<script type="module" src="/src/main.ts"></script>
|
|
||||||
<script type="module">
|
<script type="module">
|
||||||
window["__COMFYUI_FRONTEND_VERSION__"] = __COMFYUI_FRONTEND_VERSION__;
|
window["__COMFYUI_FRONTEND_VERSION__"] = __COMFYUI_FRONTEND_VERSION__;
|
||||||
console.log("ComfyUI Front-end version:", __COMFYUI_FRONTEND_VERSION__);
|
console.log("ComfyUI Front-end version:", __COMFYUI_FRONTEND_VERSION__);
|
||||||
</script>
|
</script>
|
||||||
|
<script type="module" src="/src/main.ts"></script>
|
||||||
<link rel="stylesheet" type="text/css" href="/user.css" />
|
<link rel="stylesheet" type="text/css" href="/user.css" />
|
||||||
<link rel="stylesheet" type="text/css" href="/materialdesignicons.min.css" />
|
<link rel="stylesheet" type="text/css" href="/materialdesignicons.min.css" />
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ export class ComfySettingsDialog extends ComfyDialog<HTMLDialogElement> {
|
|||||||
|
|
||||||
constructor(app: ComfyApp) {
|
constructor(app: ComfyApp) {
|
||||||
super();
|
super();
|
||||||
|
const frontendVersion = window["__COMFYUI_FRONTEND_VERSION__"];
|
||||||
this.app = app;
|
this.app = app;
|
||||||
this.settingsValues = {};
|
this.settingsValues = {};
|
||||||
this.settingsLookup = {};
|
this.settingsLookup = {};
|
||||||
@@ -24,7 +25,7 @@ export class ComfySettingsDialog extends ComfyDialog<HTMLDialogElement> {
|
|||||||
$el("table.comfy-modal-content.comfy-table", [
|
$el("table.comfy-modal-content.comfy-table", [
|
||||||
$el(
|
$el(
|
||||||
"caption",
|
"caption",
|
||||||
{ textContent: "Settings" },
|
{ textContent: `Settings (v${frontendVersion})` },
|
||||||
$el("button.comfy-btn", {
|
$el("button.comfy-btn", {
|
||||||
type: "button",
|
type: "button",
|
||||||
textContent: "\u00d7",
|
textContent: "\u00d7",
|
||||||
|
|||||||
Reference in New Issue
Block a user