实现配置向导功能

This commit is contained in:
jxxghp
2025-09-09 13:50:37 +08:00
parent 280de47dac
commit 584f580e3b
6 changed files with 2036 additions and 1241 deletions

View File

@@ -2880,4 +2880,111 @@ export default {
customBackgroundImageHint: 'Supports web image URLs, leave blank for gradient background',
pluginCount: '{count} Plugins',
},
setupWizard: {
title: 'Setup Wizard',
subtitle: 'Quickly configure MoviePilot basic settings',
completed: 'Setup Wizard completed!',
failed: 'Setup Wizard failed, please try again',
complete: 'Complete Configuration',
step1: {
title: 'Basic',
description: 'Set access domain, background wallpaper and recognition data source',
},
step2: {
title: 'Storage Directory',
description: 'Configure download directory and media library directory',
},
step3: {
title: 'Downloader',
description: 'Configure downloader (optional)',
},
step4: {
title: 'Media Server',
description: 'Configure media server (optional)',
},
step5: {
title: 'Notification',
description: 'Configure notification channels (optional)',
},
step6: {
title: 'Resource Preferences',
description: 'Set resource download preferences',
},
basic: {
appDomain: 'App Domain',
appDomainHint: 'Used to add quick jump links when sending notifications',
wallpaper: 'Background Wallpaper',
wallpaperHint: 'Choose the source of the login page background',
recognizeSource: 'Recognize Source',
recognizeSourceHint: 'Set the default media info recognition data source',
apiToken: 'API Token',
apiTokenHint: 'System automatically generated API access token',
},
storage: {
info: 'Storage Configuration',
infoDesc: 'Configure local storage directories for download and media library management',
downloadPath: 'Download Directory',
downloadPathHint: 'Set the storage path for downloaded files',
libraryPath: 'Media Library Directory',
libraryPathHint: 'Set the storage path for media files',
},
downloader: {
info: 'Downloader Configuration',
infoDesc: 'Configure downloader for automatic resource download (optional)',
type: 'Downloader Type',
typeHint: 'Select the type of downloader to use',
name: 'Downloader Name',
nameHint: 'Set a name for the downloader',
qbittorrentConfig: 'qBittorrent Configuration',
transmissionConfig: 'Transmission Configuration',
host: 'Server Address',
username: 'Username',
password: 'Password',
downloadPath: 'Download Path',
},
mediaServer: {
info: 'Media Server Configuration',
infoDesc: 'Configure media server for media library management (optional)',
type: 'Media Server Type',
typeHint: 'Select the type of media server to use',
name: 'Server Name',
nameHint: 'Set a name for the media server',
embyConfig: 'Emby Configuration',
jellyfinConfig: 'Jellyfin Configuration',
plexConfig: 'Plex Configuration',
host: 'Server Address',
apiKey: 'API Key',
token: 'Access Token',
},
notification: {
info: 'Notification Configuration',
infoDesc: 'Configure notification channels for receiving system messages (optional)',
type: 'Notification Type',
typeHint: 'Select the type of notification channel to use',
name: 'Notification Name',
nameHint: 'Set a name for the notification channel',
telegramConfig: 'Telegram Configuration',
emailConfig: 'Email Configuration',
botToken: 'Bot Token',
chatId: 'Chat ID',
smtpServer: 'SMTP Server',
smtpPort: 'SMTP Port',
senderEmail: 'Sender Email',
senderPassword: 'Sender Password',
receiverEmail: 'Receiver Email',
},
preferences: {
info: 'Resource Preferences',
infoDesc:
'Set resource download preferences, the system will automatically select the best resources based on these preferences',
quality: 'Quality Preference',
qualityHint: 'Select preferred video quality',
subtitle: 'Subtitle Preference',
subtitleHint: 'Select preferred subtitle type',
resolution: 'Resolution Preference',
resolutionHint: 'Select preferred video resolution',
presetRules: 'Preset Rules',
detailedConfig: 'Detailed Configuration',
},
},
}

View File

@@ -2854,27 +2854,27 @@ export default {
failed: '配置向导失败,请重试',
complete: '完成配置',
step1: {
title: '基础参数配置',
title: '基础',
description: '设置访问域名、背景壁纸和识别数据源',
},
step2: {
title: '存储目录配置',
title: '存储目录',
description: '配置下载目录和媒体库目录',
},
step3: {
title: '下载器配置',
title: '下载器',
description: '配置下载器(可选)',
},
step4: {
title: '媒体服务器配置',
title: '媒体服务器',
description: '配置媒体服务器(可选)',
},
step5: {
title: '通知配置',
title: '通知',
description: '配置通知渠道(可选)',
},
step6: {
title: '资源偏好配置',
title: '资源偏好',
description: '设置资源下载偏好',
},
basic: {

View File

@@ -2846,4 +2846,110 @@ export default {
customBackgroundImageHint: '支援網路圖片URL留空則使用漸變背景',
pluginCount: '{count} 個插件',
},
setupWizard: {
title: '設定精靈',
subtitle: '快速設定 MoviePilot 的基礎設定',
completed: '設定精靈完成!',
failed: '設定精靈失敗,請重試',
complete: '完成設定',
step1: {
title: '基礎',
description: '設定存取網域、背景桌布和識別資料來源',
},
step2: {
title: '儲存目錄',
description: '設定下載目錄和媒體庫目錄',
},
step3: {
title: '下載器',
description: '設定下載器(可選)',
},
step4: {
title: '媒體伺服器',
description: '設定媒體伺服器(可選)',
},
step5: {
title: '通知',
description: '設定通知管道(可選)',
},
step6: {
title: '資源偏好',
description: '設定資源下載偏好',
},
basic: {
appDomain: '存取網域',
appDomainHint: '用於發送通知時,新增快速跳轉位址',
wallpaper: '背景桌布',
wallpaperHint: '選擇登入頁面背景來源',
recognizeSource: '識別資料來源',
recognizeSourceHint: '設定預設媒體資訊識別資料來源',
apiToken: 'API 權杖',
apiTokenHint: '系統自動產生的 API 存取權杖',
},
storage: {
info: '儲存設定說明',
infoDesc: '設定本機儲存目錄,用於下載和媒體庫管理',
downloadPath: '下載目錄',
downloadPathHint: '設定下載檔案的儲存路徑',
libraryPath: '媒體庫目錄',
libraryPathHint: '設定媒體檔案的儲存路徑',
},
downloader: {
info: '下載器設定說明',
infoDesc: '設定下載器用於自動下載資源(可選)',
type: '下載器類型',
typeHint: '選擇要使用的下載器類型',
name: '下載器名稱',
nameHint: '為下載器設定一個名稱',
qbittorrentConfig: 'qBittorrent 設定',
transmissionConfig: 'Transmission 設定',
host: '伺服器位址',
username: '使用者名稱',
password: '密碼',
downloadPath: '下載路徑',
},
mediaServer: {
info: '媒體伺服器設定說明',
infoDesc: '設定媒體伺服器用於媒體庫管理(可選)',
type: '媒體伺服器類型',
typeHint: '選擇要使用的媒體伺服器類型',
name: '伺服器名稱',
nameHint: '為媒體伺服器設定一個名稱',
embyConfig: 'Emby 設定',
jellyfinConfig: 'Jellyfin 設定',
plexConfig: 'Plex 設定',
host: '伺服器位址',
apiKey: 'API 金鑰',
token: '存取權杖',
},
notification: {
info: '通知設定說明',
infoDesc: '設定通知管道用於接收系統訊息(可選)',
type: '通知類型',
typeHint: '選擇要使用的通知管道類型',
name: '通知名稱',
nameHint: '為通知管道設定一個名稱',
telegramConfig: 'Telegram 設定',
emailConfig: '郵件設定',
botToken: '機器人權杖',
chatId: '聊天ID',
smtpServer: 'SMTP 伺服器',
smtpPort: 'SMTP 連接埠',
senderEmail: '發送信箱',
senderPassword: '發送密碼',
receiverEmail: '接收信箱',
},
preferences: {
info: '資源偏好說明',
infoDesc: '設定資源下載的偏好,系統將根據這些偏好自動選擇最佳資源',
quality: '品質偏好',
qualityHint: '選擇偏好的影片品質',
subtitle: '字幕偏好',
subtitleHint: '選擇偏好的字幕類型',
resolution: '解析度偏好',
resolutionHint: '選擇偏好的影片解析度',
presetRules: '預設規則',
detailedConfig: '詳細設定',
},
},
}

1816
src/pages/setup.vue Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -210,7 +210,7 @@ const router = createRouter({
},
{
path: 'setup-wizard',
component: () => import('../views/setting/SetupWizard.vue'),
component: () => import('../pages/setup.vue'),
meta: {
requiresAuth: true,
},

File diff suppressed because it is too large Load Diff