diff --git a/frontend/README.md b/frontend/README.md
index 0cf5138..4717978 100644
--- a/frontend/README.md
+++ b/frontend/README.md
@@ -1,4 +1,4 @@
-# AUTO MAA Frontend
+# AUTO_MAA Frontend
基于 Vue 3 + TypeScript + Ant Design Vue + Electron 的桌面应用程序。
diff --git a/frontend/package.json b/frontend/package.json
index 3221657..c56b4d1 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -13,7 +13,7 @@
},
"build": {
"appId": "xyz.automaa.frontend",
- "productName": "AUTO MAA",
+ "productName": "AUTO_MAA",
"files": [
"dist",
"dist-electron",
diff --git a/frontend/src/components/AppLayout.vue b/frontend/src/components/AppLayout.vue
index 1504778..ff83365 100644
--- a/frontend/src/components/AppLayout.vue
+++ b/frontend/src/components/AppLayout.vue
@@ -12,7 +12,7 @@
-

+
AUTO_MAA
diff --git a/frontend/src/components/ScriptTable.vue b/frontend/src/components/ScriptTable.vue
index 0e62f21..39a425a 100644
--- a/frontend/src/components/ScriptTable.vue
+++ b/frontend/src/components/ScriptTable.vue
@@ -17,7 +17,7 @@
alt="MAA"
class="script-logo"
/>
-

+
{{ record.name }}
diff --git a/frontend/src/components/initialization/AdminCheck.vue b/frontend/src/components/initialization/AdminCheck.vue
new file mode 100644
index 0000000..9443d9a
--- /dev/null
+++ b/frontend/src/components/initialization/AdminCheck.vue
@@ -0,0 +1,38 @@
+
+
+
+
+
+ 重新以管理员权限启动
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/frontend/src/components/initialization/AutoMode.vue b/frontend/src/components/initialization/AutoMode.vue
new file mode 100644
index 0000000..7892dce
--- /dev/null
+++ b/frontend/src/components/initialization/AutoMode.vue
@@ -0,0 +1,224 @@
+
+
+
+
+
+
+
+
{{ progressText }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/components/initialization/DependenciesStep.vue b/frontend/src/components/initialization/DependenciesStep.vue
index bf3c795..f0853bb 100644
--- a/frontend/src/components/initialization/DependenciesStep.vue
+++ b/frontend/src/components/initialization/DependenciesStep.vue
@@ -50,9 +50,7 @@ const pipMirrors = ref
([
{ key: 'official', name: 'PyPI 官方', url: 'https://pypi.org/simple/', speed: null },
{ key: 'tsinghua', name: '清华大学', url: 'https://pypi.tuna.tsinghua.edu.cn/simple/', speed: null },
{ key: 'aliyun', name: '阿里云', url: 'https://mirrors.aliyun.com/pypi/simple/', speed: null },
- { key: 'douban', name: '豆瓣', url: 'https://pypi.douban.com/simple/', speed: null },
{ key: 'ustc', name: '中科大', url: 'https://pypi.mirrors.ustc.edu.cn/simple/', speed: null },
- { key: 'huawei', name: '华中科技大学', url: 'https://pypi.hustunique.com/simple/', speed: null }
])
const selectedPipMirror = ref('tsinghua')
diff --git a/frontend/src/components/initialization/ManualMode.vue b/frontend/src/components/initialization/ManualMode.vue
new file mode 100644
index 0000000..0c32021
--- /dev/null
+++ b/frontend/src/components/initialization/ManualMode.vue
@@ -0,0 +1,503 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 上一步
+
+
+
+
+ {{ getNextButtonText() }}
+
+
+
+
+ 启动服务
+
+
+
+
+ 进入应用
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts
index 111dc9a..3e348a1 100644
--- a/frontend/src/router/index.ts
+++ b/frontend/src/router/index.ts
@@ -11,7 +11,7 @@ const routes: RouteRecordRaw[] = [
{
path: '/initialization',
name: 'Initialization',
- component: () => import('../views/InitializationNew.vue'),
+ component: () => import('../views/Initialization.vue'),
meta: { title: '初始化' },
},
{
@@ -89,23 +89,23 @@ const router = createRouter({
import { isAppInitialized } from '@/utils/config'
-// 添加路由守卫,确保在生产环境中也能正确进入初始化页面
-router.beforeEach(async (to, from, next) => {
- console.log('路由守卫:', { to: to.path, from: from.path })
-
- // 如果访问的不是初始化页面,且没有初始化标记,则重定向到初始化页面
- if (to.path !== '/initialization') {
- const initialized = await isAppInitialized()
- console.log('检查初始化状态:', initialized)
-
- if (!initialized) {
- console.log('应用未初始化,重定向到初始化页面')
- next('/initialization')
- return
- }
- }
-
- next()
-})
+// // 添加路由守卫,确保在生产环境中也能正确进入初始化页面
+// router.beforeEach(async (to, from, next) => {
+// console.log('路由守卫:', { to: to.path, from: from.path })
+//
+// // 如果访问的不是初始化页面,且没有初始化标记,则重定向到初始化页面
+// if (to.path !== '/initialization') {
+// const initialized = await isAppInitialized()
+// console.log('检查初始化状态:', initialized)
+//
+// if (!initialized) {
+// console.log('应用未初始化,重定向到初始化页面')
+// next('/initialization')
+// return
+// }
+// }
+//
+// next()
+// })
export default router
diff --git a/frontend/src/views/Initialization.vue b/frontend/src/views/Initialization.vue
index 94296ac..4f6482d 100644
--- a/frontend/src/views/Initialization.vue
+++ b/frontend/src/views/Initialization.vue
@@ -1,604 +1,78 @@
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
选择您的主题偏好
-
-
-
-
- 浅色模式
- 深色模式
- 跟随系统
-
-
-
-
-
-
-
-
-
Python 运行环境
-
-
需要安装 Python 3.12.0 运行环境(64位嵌入式版本)
-
-
-
-
-
- {{ testingSpeed ? '测速中...' : '重新测速' }}
-
-
3秒无响应视为超时
-
-
-
-
-
-
-
-
-
-
-
获取后端源码
-
-
{{ backendExists ? '更新最新的后端代码' : '获取后端源代码' }}
-
-
-
-
-
- {{ testingGitSpeed ? '测速中...' : '开始测速' }}
-
-
3秒无响应视为超时
-
-
-
-
-
-
-
安装 Python 依赖包
-
-
通过 pip 安装项目所需的 Python 依赖包
-
-
-
-
-
- {{ testingPipSpeed ? '测速中...' : '重新测速' }}
-
-
3秒无响应视为超时
-
-
-
-
-
-
-
启动后端服务
-
-
-
-
{{ serviceStatus }}
-
-
-
-
-
-
-
-
-
- 上一步
-
-
-
- {{ getNextButtonText() }}
-
-
-
-
- {{ canStartService ? '启动服务' : '请先完成前置步骤' }}
-
-
-
-
- 强制启动(调试用)
-
-
-
-
- 进入应用
-
-
-
-
-
+
+
+
+
+
-
-
\ No newline at end of file
diff --git a/frontend/src/views/ScriptEdit.vue b/frontend/src/views/ScriptEdit.vue
index 5845ecc..6d04803 100644
--- a/frontend/src/views/ScriptEdit.vue
+++ b/frontend/src/views/ScriptEdit.vue
@@ -13,7 +13,7 @@
alt="MAA"
class="breadcrumb-logo"
/>
-