diff --git a/electron/welcome/assets/svgs/upload-loading.svg b/electron/welcome/assets/svgs/upload-loading.svg new file mode 100644 index 0000000000000000000000000000000000000000..328f23c83d377e6c387e1dbaf63967e34e6b1855 --- /dev/null +++ b/electron/welcome/assets/svgs/upload-loading.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/electron/welcome/index.vue b/electron/welcome/index.vue index be1256640abea738c21c2fe4a8f3e53253e85deb..84be0920d406c27a32660a274236ddbe28aabafc 100644 --- a/electron/welcome/index.vue +++ b/electron/welcome/index.vue @@ -1,9 +1,219 @@ + - \ No newline at end of file + diff --git a/electron/welcome/lang/en.ts b/electron/welcome/lang/en.ts new file mode 100644 index 0000000000000000000000000000000000000000..b87e359fb581758d6a1ae8a6df515e78eb5bab38 --- /dev/null +++ b/electron/welcome/lang/en.ts @@ -0,0 +1,31 @@ +export default { + welcome: { + welcomeText: 'Welcome to use', + localDeploy: 'Back-end local deployment', + onlineService: 'Back-end online services', + back: 'Back', + confirm: 'Ok', + pleaseInput: 'Please Input', + validUrl: 'Please enter a valid URL', + validationFailure:'Validation failure', +}, + localDeploy: { + model: 'Large model', + embeddingModel: 'Embedding Model', + url: 'URL', + modelName: 'ModelName', + apiKey: 'API_Key', + copyTip: 'Reuse the same link for large models', + installation: 'Installation', + dataBase: 'Database services', + authHub: 'AuthHub services', + intelligence: 'Intelligence services', + serviceLaunch: 'Configuration File Initialization & Service Startup', + stopInstall: 'Stop installation', + complete: 'Complete', + retry: 'Retry', + }, + onlineService: { + serviceUrl: 'Backend Service Links', + }, +}; diff --git a/electron/welcome/lang/index.ts b/electron/welcome/lang/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..736df67cb4b0bec3e07de197972c362b5d6c6eea --- /dev/null +++ b/electron/welcome/lang/index.ts @@ -0,0 +1,16 @@ +import { createI18n } from 'vue-i18n'; +// 语言包 +import zh from './zh'; +import en from './en'; + +const locale = 'zh'; + +const i18n_welcome = createI18n({ + legacy: false, // 设置为 false,启用 composition API 模式 + locale, + messages: { + zh, + en, + }, +}); +export default i18n_welcome; \ No newline at end of file diff --git a/electron/welcome/lang/zh.ts b/electron/welcome/lang/zh.ts new file mode 100644 index 0000000000000000000000000000000000000000..9bd17c7984b052248728babd501c058cb2fe8be5 --- /dev/null +++ b/electron/welcome/lang/zh.ts @@ -0,0 +1,31 @@ +export default { + welcome: { + welcomeText: '欢迎使用', + localDeploy: '后端本地部署', + onlineService: '后端在线服务', + back: '返回', + confirm: '确定', + pleaseInput: '请输入', + validUrl: '请输入有效的URL', + validationFailure:'检验失败', +}, + localDeploy: { + model: '大模型', + embeddingModel: 'Embedding模型', + url: 'URL', + modelName: '模型名称', + apiKey: 'API_Key', + copyTip: '复用大模型相同链接', + installation: '安装中', + dataBase: '数据库服务', + authHub: 'AuthHub服务', + intelligence: 'Intelligence服务', + serviceLaunch: '配置文件初始化 & 服务启动', + stopInstall: '停止安装', + complete: '完成', + retry: '重试', + }, + onlineService: { + serviceUrl: '后端服务链接', + }, +}; diff --git a/electron/welcome/localDeploy.vue b/electron/welcome/localDeploy.vue index 679f983557b35327c7b3cd65dfc58e1d67b46edd..7f16531f7f6ebd923848ca1030ec34678d163d09 100644 --- a/electron/welcome/localDeploy.vue +++ b/electron/welcome/localDeploy.vue @@ -1,137 +1,241 @@ - + \ No newline at end of file diff --git a/electron/welcome/main.ts b/electron/welcome/main.ts index 0f4151f629424a99858569fe4578150ae4eeaaf7..79899ab338594979ae5c436844dce24d9db13e91 100644 --- a/electron/welcome/main.ts +++ b/electron/welcome/main.ts @@ -2,9 +2,13 @@ import type { App } from 'vue'; import { createApp } from 'vue'; import WelcomeComponent from './index.vue'; +import ElementPlus from 'element-plus'; +import 'element-plus/dist/index.css'; +import i18n_welcome from './lang'; // 创建 Vue 应用并挂载 const app: App = createApp(WelcomeComponent); +app.use(ElementPlus).use(i18n_welcome); app.mount('#app'); console.log('Welcome Vue app initialized'); diff --git a/electron/welcome/onlineService.vue b/electron/welcome/onlineService.vue index 0adac7ca773ce099da03a42e88ed1e32f910158b..1aaa5ae2287f6134a201a41c0ad065e1caec31f7 100644 --- a/electron/welcome/onlineService.vue +++ b/electron/welcome/onlineService.vue @@ -1,82 +1,133 @@ + \ No newline at end of file diff --git a/electron/welcome/timeLine.vue b/electron/welcome/timeLine.vue new file mode 100644 index 0000000000000000000000000000000000000000..b08c5bc7c0e769b74a43345827d225630ea77533 --- /dev/null +++ b/electron/welcome/timeLine.vue @@ -0,0 +1,201 @@ + + + + diff --git a/src/assets/styles/theme.scss b/src/assets/styles/theme.scss index 3fa6b9c5c5d55058c1993e10126c46443f8eda12..e2b03f5173c8c9c4af9fe74e72dfe150ae0d49a3 100644 --- a/src/assets/styles/theme.scss +++ b/src/assets/styles/theme.scss @@ -73,7 +73,6 @@ body[theme='dark'] { --expand-fold-active: url('../../assets/svgs/dark_expand_fold_active.svg'); --o-scrollbar-thumb: #d3dce9; --o-apiBox-bg: rgb(253, 254, 255); - --o-bg-welcome: url('../../assets/images/welcome_bg.webp'); } body[theme='light'] { @@ -146,7 +145,6 @@ body[theme='light'] { --o-scrollbar-thumb: #c3cedf; --o-apiBox-bg: rgb(253, 254, 255); --el-drawer-padding-primary: 24px !important; - --o-bg-welcome: url('../../assets/images/welcome_bg.webp'); } body {