From 962e47486f2d58e45ad6886b43032bd7c683e370 Mon Sep 17 00:00:00 2001 From: bossgeekgo Date: Thu, 15 Feb 2024 22:45:54 +0800 Subject: [PATCH] rename NEED_WARMING_UP_DEPENDENCIES to NEED_RESETUP_DEPENDENCIES --- .../ui/src/main/flow/CHECK_AND_DOWNLOAD_DEPENDENCIES/index.ts | 2 +- packages/ui/src/main/flow/GEEK_AUTO_START_CHAT_WITH_BOSS.ts | 2 +- packages/ui/src/main/window/mainWindow.ts | 4 ++-- .../src/renderer/src/features/DependenciesWarmingUpDialog.vue | 4 ---- .../src/page/Configuration/GeekAutoStartChatWithBoss.vue | 4 ++-- 5 files changed, 6 insertions(+), 10 deletions(-) diff --git a/packages/ui/src/main/flow/CHECK_AND_DOWNLOAD_DEPENDENCIES/index.ts b/packages/ui/src/main/flow/CHECK_AND_DOWNLOAD_DEPENDENCIES/index.ts index bcddeb5..8d9a2c7 100644 --- a/packages/ui/src/main/flow/CHECK_AND_DOWNLOAD_DEPENDENCIES/index.ts +++ b/packages/ui/src/main/flow/CHECK_AND_DOWNLOAD_DEPENDENCIES/index.ts @@ -11,7 +11,7 @@ export const checkAndDownloadDependenciesForInit = async () => { pipe?.write( JSON.stringify({ - type: 'NEED_WARMING_UP_DEPENDENCIES' + type: 'NEED_RESETUP_DEPENDENCIES' }) + '\r\n' ) diff --git a/packages/ui/src/main/flow/GEEK_AUTO_START_CHAT_WITH_BOSS.ts b/packages/ui/src/main/flow/GEEK_AUTO_START_CHAT_WITH_BOSS.ts index f43e606..1694e27 100644 --- a/packages/ui/src/main/flow/GEEK_AUTO_START_CHAT_WITH_BOSS.ts +++ b/packages/ui/src/main/flow/GEEK_AUTO_START_CHAT_WITH_BOSS.ts @@ -68,7 +68,7 @@ export const runAutoChat = async () => { (raw) => { const data = raw switch (data.type) { - case 'NEED_WARMING_UP_DEPENDENCIES': { + case 'NEED_RESETUP_DEPENDENCIES': { pipe?.write(JSON.stringify(data) + '\r\n') break } diff --git a/packages/ui/src/main/window/mainWindow.ts b/packages/ui/src/main/window/mainWindow.ts index 788143a..e072e1a 100644 --- a/packages/ui/src/main/window/mainWindow.ts +++ b/packages/ui/src/main/window/mainWindow.ts @@ -112,8 +112,8 @@ export function createMainWindow(): void { resolve(data) break } - case 'NEED_WARMING_UP_DEPENDENCIES': { - mainWindow.webContents.send('NEED_WARMING_UP_DEPENDENCIES', data) + case 'NEED_RESETUP_DEPENDENCIES': { + mainWindow.webContents.send('NEED_RESETUP_DEPENDENCIES', data) break } case 'PUPPETEER_DOWNLOAD_PROGRESS': { diff --git a/packages/ui/src/renderer/src/features/DependenciesWarmingUpDialog.vue b/packages/ui/src/renderer/src/features/DependenciesWarmingUpDialog.vue index 6b01713..68cf5fc 100644 --- a/packages/ui/src/renderer/src/features/DependenciesWarmingUpDialog.vue +++ b/packages/ui/src/renderer/src/features/DependenciesWarmingUpDialog.vue @@ -1,7 +1,3 @@ - -import { log } from 'console'; - -import { onUnmounted } from 'vue';