Compare commits

...

7 Commits

Author SHA1 Message Date
Yiqun Xu
46b9f1b2f9 test: remove test 2025-06-12 22:21:18 -07:00
Yiqun Xu
cfdc5fd25a Merge branch 'main' into feat/template-version-setting 2025-06-12 18:09:21 -07:00
Yiqun Xu
7c88d41a02 test: remove test 2025-06-12 17:30:55 -07:00
Yiqun Xu
3b03ef3afa Create aboutPanel.spec.ts 2025-06-09 10:46:34 -07:00
Yiqun Xu
8002c471ea Update aboutPanelStore.ts
simplify computed version access with shared system reference
2025-06-08 22:27:53 -07:00
yiqun12
a8bbe8f301 fix: update version 2025-06-08 09:14:38 -07:00
yiqun12
048af23439 feat: template version display 2025-06-07 14:00:23 -07:00
2 changed files with 13 additions and 3 deletions

View File

@@ -313,6 +313,7 @@ export const zSystemStats = z.object({
python_version: z.string(),
embedded_python: z.boolean(),
comfyui_version: z.string(),
workflows_templates_version: z.string(),
pytorch_version: z.string(),
argv: z.array(z.string()),
ram_total: z.number(),

View File

@@ -11,8 +11,12 @@ export const useAboutPanelStore = defineStore('aboutPanel', () => {
const frontendVersion = __COMFYUI_FRONTEND_VERSION__
const extensionStore = useExtensionStore()
const systemStatsStore = useSystemStatsStore()
const coreVersion = computed(
() => systemStatsStore?.systemStats?.system?.comfyui_version ?? ''
const system = computed(() => systemStatsStore?.systemStats?.system)
const coreVersion = computed(() => system.value?.comfyui_version ?? '')
const workflowsTemplatesVersion = computed(
() => system.value?.workflows_templates_version ?? ''
)
const coreBadges = computed<AboutPageBadge[]>(() => [
@@ -37,7 +41,12 @@ export const useAboutPanelStore = defineStore('aboutPanel', () => {
url: 'https://www.comfy.org/discord',
icon: 'pi pi-discord'
},
{ label: 'ComfyOrg', url: 'https://www.comfy.org/', icon: 'pi pi-globe' }
{ label: 'ComfyOrg', url: 'https://www.comfy.org/', icon: 'pi pi-globe' },
{
label: `Workflows_Templates v${workflowsTemplatesVersion.value}`,
url: 'https://github.com/Comfy-Org/workflow_templates',
icon: 'pi pi-globe'
}
])
const allBadges = computed<AboutPageBadge[]>(() => [