[Electron] Add not supported hardware page (#1717)

This commit is contained in:
Chenlei Hu
2024-11-27 07:46:24 -08:00
committed by GitHub
parent 2d022e4e49
commit 39eaa2e850
4 changed files with 78 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 KiB

View File

@@ -3,6 +3,16 @@ export default {
title: 'Welcome to ComfyUI',
getStarted: 'Get Started'
},
notSupported: {
title: 'Your device is not supported',
message: 'Only following devices are supported:',
learnMore: 'Learn More',
reportIssue: 'Report Issue',
supportedDevices: {
macos: 'MacOS (M1 or later)',
windows: 'Windows (Nvidia GPU with CUDA support)'
}
},
install: {
installLocation: 'Install Location',
migration: 'Migration',

View File

@@ -57,6 +57,12 @@ const router = createRouter({
name: 'WelcomeView',
component: () => import('@/views/WelcomeView.vue'),
beforeEnter: guardElectronAccess
},
{
path: 'not-supported',
name: 'NotSupportedView',
component: () => import('@/views/NotSupportedView.vue'),
beforeEnter: guardElectronAccess
}
]
}

View File

@@ -0,0 +1,62 @@
<template>
<div
class="font-sans w-screen h-screen flex items-center m-0 text-neutral-900 bg-neutral-300 pointer-events-auto"
>
<div class="flex-grow flex items-center justify-center">
<div class="flex flex-col gap-8 p-8">
<!-- Header -->
<h1 class="text-4xl font-bold text-red-500">
{{ $t('notSupported.title') }}
</h1>
<!-- Message -->
<div class="space-y-4">
<p class="text-xl">
{{ $t('notSupported.message') }}
</p>
<ul class="list-disc list-inside space-y-1 text-neutral-800">
<li>{{ $t('notSupported.supportedDevices.macos') }}</li>
<li>{{ $t('notSupported.supportedDevices.windows') }}</li>
</ul>
</div>
<!-- Actions -->
<div class="flex gap-4">
<Button
:label="$t('notSupported.learnMore')"
icon="pi pi-github"
@click="openDocs"
severity="secondary"
/>
<Button
:label="$t('notSupported.reportIssue')"
icon="pi pi-flag"
@click="reportIssue"
severity="danger"
/>
</div>
</div>
</div>
<!-- Right side image -->
<div class="h-screen flex-grow-0">
<img
src="/assets/images/sad_girl.png"
alt="Sad girl illustration"
class="h-full object-cover"
/>
</div>
</div>
</template>
<script setup lang="ts">
import Button from 'primevue/button'
const openDocs = () => {
window.open('https://github.com/Comfy-Org/desktop', '_blank')
}
const reportIssue = () => {
window.open('https://forum.comfy.org/c/v1-feedback/', '_blank')
}
</script>