mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 03:01:54 +00:00
[Electron] Add version number to error state (#1707)
This commit is contained in:
@@ -62,7 +62,7 @@ export default {
|
|||||||
'python-setup': 'Setting up Python Environment...',
|
'python-setup': 'Setting up Python Environment...',
|
||||||
'starting-server': 'Starting ComfyUI server...',
|
'starting-server': 'Starting ComfyUI server...',
|
||||||
ready: 'Finishing...',
|
ready: 'Finishing...',
|
||||||
error: 'Unable to start ComfyUI'
|
error: 'Unable to start ComfyUI Desktop'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
serverConfig: {
|
serverConfig: {
|
||||||
|
|||||||
@@ -2,9 +2,14 @@
|
|||||||
<div
|
<div
|
||||||
class="font-sans flex flex-col justify-center items-center h-screen m-0 text-neutral-300 bg-neutral-900 dark-theme pointer-events-auto"
|
class="font-sans flex flex-col justify-center items-center h-screen m-0 text-neutral-300 bg-neutral-900 dark-theme pointer-events-auto"
|
||||||
>
|
>
|
||||||
<h2 class="text-2xl font-bold">{{ t(`serverStart.process.${status}`) }}</h2>
|
<h2 class="text-2xl font-bold">
|
||||||
|
{{ t(`serverStart.process.${status}`) }}
|
||||||
|
<span v-if="status === ProgressStatus.ERROR">
|
||||||
|
v{{ electronVersion }}
|
||||||
|
</span>
|
||||||
|
</h2>
|
||||||
<div
|
<div
|
||||||
v-if="status == ProgressStatus.ERROR"
|
v-if="status === ProgressStatus.ERROR"
|
||||||
class="flex items-center my-4 gap-2"
|
class="flex items-center my-4 gap-2"
|
||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
@@ -43,6 +48,7 @@ const electron = electronAPI()
|
|||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
|
||||||
const status = ref<ProgressStatus>(ProgressStatus.INITIAL_STATE)
|
const status = ref<ProgressStatus>(ProgressStatus.INITIAL_STATE)
|
||||||
|
const electronVersion = ref<string>('')
|
||||||
let xterm: Terminal | undefined
|
let xterm: Terminal | undefined
|
||||||
|
|
||||||
const updateProgress = ({ status: newStatus }: { status: ProgressStatus }) => {
|
const updateProgress = ({ status: newStatus }: { status: ProgressStatus }) => {
|
||||||
@@ -72,9 +78,10 @@ const reportIssue = () => {
|
|||||||
}
|
}
|
||||||
const openLogs = () => electron.openLogsFolder()
|
const openLogs = () => electron.openLogsFolder()
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(async () => {
|
||||||
electron.sendReady()
|
electron.sendReady()
|
||||||
electron.onProgressUpdate(updateProgress)
|
electron.onProgressUpdate(updateProgress)
|
||||||
|
electronVersion.value = await electron.getElectronVersion()
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user