From 0bf30e76211d615bb36dd03ee5c676917f7f2468 Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Sat, 30 Nov 2024 05:12:09 +1100 Subject: [PATCH] Add git download page (#1742) --- public/assets/images/Git-Logo-White.svg | 1 + src/locales/en.ts | 11 +++++ src/router.ts | 6 +++ src/views/DownloadGitView.vue | 63 +++++++++++++++++++++++++ 4 files changed, 81 insertions(+) create mode 100644 public/assets/images/Git-Logo-White.svg create mode 100644 src/views/DownloadGitView.vue diff --git a/public/assets/images/Git-Logo-White.svg b/public/assets/images/Git-Logo-White.svg new file mode 100644 index 000000000..f2961b944 --- /dev/null +++ b/public/assets/images/Git-Logo-White.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/locales/en.ts b/src/locales/en.ts index fa6028987..017ea3de4 100644 --- a/src/locales/en.ts +++ b/src/locales/en.ts @@ -20,6 +20,17 @@ export default { windows: 'Windows (Nvidia GPU with CUDA support)' } }, + downloadGit: { + title: 'Download git', + message: + 'Unable to locate git. A working copy of git is required for normal operation.', + instructions: + 'Please download and install the latest version for your operating system. The Download git button below opens the git-scm.com downloads page.', + warning: + 'If you are sure you do not need git installed, or there has been a mistake, you may click Skip to byapss this check. Attempting to run ComfyUI without a working copy of git is not currently supported.', + gitWebsite: 'Download git', + skip: 'Skip' + }, install: { installLocation: 'Install Location', migration: 'Migration', diff --git a/src/router.ts b/src/router.ts index e1afb5a91..39bad89b3 100644 --- a/src/router.ts +++ b/src/router.ts @@ -78,6 +78,12 @@ const router = createRouter({ name: 'NotSupportedView', component: () => import('@/views/NotSupportedView.vue'), beforeEnter: guardElectronAccess + }, + { + path: 'download-git', + name: 'DownloadGitView', + component: () => import('@/views/DownloadGitView.vue'), + beforeEnter: guardElectronAccess } ] } diff --git a/src/views/DownloadGitView.vue b/src/views/DownloadGitView.vue new file mode 100644 index 000000000..720eaeb27 --- /dev/null +++ b/src/views/DownloadGitView.vue @@ -0,0 +1,63 @@ + + +