优化 PWA 安装提示组件

This commit is contained in:
jxxghp
2025-07-07 23:18:32 +08:00
parent 3ce7fc34f0
commit 5f82cc715e
6 changed files with 297 additions and 104 deletions

View File

@@ -148,6 +148,76 @@ export default {
online: 'Online Mode',
onlineMessage: 'Network connection restored',
},
pwa: {
installApp: 'Install MoviePilot App',
installDescription: 'Get better offline experience and performance',
install: 'Install',
installSuccess: 'App installed successfully!',
installGuide: 'Installation Guide',
installInstructions: 'Install MoviePilot on {platform}:',
installNote: 'After installation, you can quickly access MoviePilot from your home screen and enjoy offline features.',
gotIt: 'Got it',
// Platform specific descriptions
platforms: {
ios: 'iOS',
android: 'Android',
chrome: 'Chrome',
edge: 'Edge',
firefox: 'Firefox',
safari: 'Safari',
desktop: 'Desktop',
mobile: 'Mobile',
other: 'Other Browser',
},
// Installation steps
installSteps: {
ios: [
'Tap the share button at the bottom of the browser',
'Select "Add to Home Screen"',
'Tap "Add" to confirm installation',
],
android: [
'Tap the browser menu (three dots)',
'Select "Add to Home Screen" or "Install App"',
'Tap "Install" to confirm',
],
chrome: [
'Click the install icon in the address bar',
'Or click "Install MoviePilot" in the browser menu',
'Click "Install" to confirm',
],
edge: [
'Click the app icon in the address bar',
'Select "Install this site as an app"',
'Click "Install" to confirm',
],
firefox: [
'Click the install icon in the address bar',
'Select "Install"',
'Confirm installation to desktop',
],
safari: [
'Click the share button',
'Select "Add to Home Screen"',
'Tap "Add" to confirm',
],
desktop: [
'Click the install icon in the address bar',
'Select "Install App"',
'Follow the prompts to complete installation',
],
mobile: [
'Tap the browser menu',
'Select "Add to Home Screen"',
'Confirm installation',
],
other: [
'Look for "Install" option in your browser',
'Usually in the address bar or menu',
'Follow the prompts to complete installation',
],
},
},
login: {
wallpapers: 'Wallpapers',
username: 'Username',

View File

@@ -148,6 +148,76 @@ export default {
online: '在线模式',
onlineMessage: '网络连接已恢复',
},
pwa: {
installApp: '安装 MoviePilot 应用',
installDescription: '获得更好的离线体验和性能',
install: '安装',
installSuccess: '应用安装成功!',
installGuide: '安装指南',
installInstructions: '在 {platform} 上安装 MoviePilot',
installNote: '安装后,您可以从主屏幕快速访问 MoviePilot并享受离线功能。',
gotIt: '知道了',
// 平台特定的说明
platforms: {
ios: 'iOS',
android: 'Android',
chrome: 'Chrome',
edge: 'Edge',
firefox: 'Firefox',
safari: 'Safari',
desktop: '桌面设备',
mobile: '移动设备',
other: '其他浏览器',
},
// 安装步骤
installSteps: {
ios: [
'点击浏览器底部的分享按钮',
'选择"添加到主屏幕"',
'点击"添加"确认安装',
],
android: [
'点击浏览器菜单(三个点)',
'选择"添加到主屏幕"或"安装应用"',
'点击"安装"确认',
],
chrome: [
'点击地址栏右侧的安装图标',
'或者点击浏览器菜单中的"安装 MoviePilot"',
'点击"安装"确认',
],
edge: [
'点击地址栏右侧的应用图标',
'选择"安装此站点为应用"',
'点击"安装"确认',
],
firefox: [
'点击地址栏右侧的安装图标',
'选择"安装"',
'确认安装到桌面',
],
safari: [
'点击分享按钮',
'选择"添加到主屏幕"',
'点击"添加"确认',
],
desktop: [
'点击地址栏右侧的安装图标',
'选择"安装应用"',
'按照提示完成安装',
],
mobile: [
'点击浏览器菜单',
'选择"添加到主屏幕"',
'确认安装',
],
other: [
'查找浏览器中的"安装"选项',
'通常在地址栏或菜单中',
'按照提示完成安装',
],
},
},
login: {
wallpapers: '壁纸',
username: '用户名',

View File

@@ -149,6 +149,76 @@ export default {
online: '在線模式',
onlineMessage: '網絡連接已恢復',
},
pwa: {
installApp: '安裝 MoviePilot 應用',
installDescription: '獲得更好的離線體驗和性能',
install: '安裝',
installSuccess: '應用安裝成功!',
installGuide: '安裝指南',
installInstructions: '在 {platform} 上安裝 MoviePilot',
installNote: '安裝後,您可以從主屏幕快速訪問 MoviePilot並享受離線功能。',
gotIt: '知道了',
// 平台特定的說明
platforms: {
ios: 'iOS',
android: 'Android',
chrome: 'Chrome',
edge: 'Edge',
firefox: 'Firefox',
safari: 'Safari',
desktop: '桌面設備',
mobile: '移動設備',
other: '其他瀏覽器',
},
// 安裝步驟
installSteps: {
ios: [
'點擊瀏覽器底部的分享按鈕',
'選擇"添加到主屏幕"',
'點擊"添加"確認安裝',
],
android: [
'點擊瀏覽器菜單(三個點)',
'選擇"添加到主屏幕"或"安裝應用"',
'點擊"安裝"確認',
],
chrome: [
'點擊地址欄右側的安裝圖標',
'或者點擊瀏覽器菜單中的"安裝 MoviePilot"',
'點擊"安裝"確認',
],
edge: [
'點擊地址欄右側的應用圖標',
'選擇"安裝此站點為應用"',
'點擊"安裝"確認',
],
firefox: [
'點擊地址欄右側的安裝圖標',
'選擇"安裝"',
'確認安裝到桌面',
],
safari: [
'點擊分享按鈕',
'選擇"添加到主屏幕"',
'點擊"添加"確認',
],
desktop: [
'點擊地址欄右側的安裝圖標',
'選擇"安裝應用"',
'按照提示完成安裝',
],
mobile: [
'點擊瀏覽器菜單',
'選擇"添加到主屏幕"',
'確認安裝',
],
other: [
'查找瀏覽器中的"安裝"選項',
'通常在地址欄或菜單中',
'按照提示完成安裝',
],
},
},
login: {
wallpapers: '壁紙',
username: '用戶名',