diff --git a/capacitor.config.ts b/capacitor.config.ts index fa581f6f..f8144edb 100644 --- a/capacitor.config.ts +++ b/capacitor.config.ts @@ -1,9 +1,14 @@ import type { CapacitorConfig } from '@capacitor/cli' + const config: CapacitorConfig = { appId: 'cn.stapxs.webqq', appName: 'Stapxs QQ Lite', - webDir: 'dist' + webDir: 'dist', + server: { + url: 'http://localhost:8080', + cleartext: true + } } export default config diff --git a/ios/App/App.xcodeproj/project.pbxproj b/ios/App/App.xcodeproj/project.pbxproj index af020d64..5a3796d4 100644 --- a/ios/App/App.xcodeproj/project.pbxproj +++ b/ios/App/App.xcodeproj/project.pbxproj @@ -349,6 +349,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = LZ4NKVK3NY; INFOPLIST_FILE = App/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; @@ -369,6 +370,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = LZ4NKVK3NY; INFOPLIST_FILE = App/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 13.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; diff --git a/ios/App/App/Info.plist b/ios/App/App/Info.plist index 40aed8bd..9964c103 100644 --- a/ios/App/App/Info.plist +++ b/ios/App/App/Info.plist @@ -3,7 +3,7 @@ CFBundleDevelopmentRegion - en + zh CFBundleDisplayName Stapxs QQ Lite CFBundleExecutable @@ -45,5 +45,10 @@ UIViewControllerBasedStatusBarAppearance + NSAppTransportSecurity + + NSAllowsArbitraryLoads + + diff --git a/ios/App/Podfile b/ios/App/Podfile index 14cdb5b7..1543babe 100644 --- a/ios/App/Podfile +++ b/ios/App/Podfile @@ -12,6 +12,7 @@ def capacitor_pods pod 'Capacitor', :path => '../../node_modules/@capacitor/ios' pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios' pod 'CapacitorApp', :path => '../../node_modules/@capacitor/app' + pod 'UntinyCapacitorSafeArea', :path => '../../node_modules/@untiny/capacitor-safe-area' end target 'App' do diff --git a/ios/App/Podfile.lock b/ios/App/Podfile.lock index 385355b3..8807b25c 100644 --- a/ios/App/Podfile.lock +++ b/ios/App/Podfile.lock @@ -4,11 +4,14 @@ PODS: - CapacitorApp (6.0.2): - Capacitor - CapacitorCordova (6.2.0) + - UntinyCapacitorSafeArea (1.0.3): + - Capacitor DEPENDENCIES: - "Capacitor (from `../../node_modules/@capacitor/ios`)" - "CapacitorApp (from `../../node_modules/@capacitor/app`)" - "CapacitorCordova (from `../../node_modules/@capacitor/ios`)" + - "UntinyCapacitorSafeArea (from `../../node_modules/@untiny/capacitor-safe-area`)" EXTERNAL SOURCES: Capacitor: @@ -17,12 +20,15 @@ EXTERNAL SOURCES: :path: "../../node_modules/@capacitor/app" CapacitorCordova: :path: "../../node_modules/@capacitor/ios" + UntinyCapacitorSafeArea: + :path: "../../node_modules/@untiny/capacitor-safe-area" SPEC CHECKSUMS: Capacitor: 1f3c7b9802d958cd8c4eb63895fff85dff2e1eea CapacitorApp: 2a8c3a0b0814322e5e6e15fe595f02c3808f0f8b CapacitorCordova: b33e7f4aa4ed105dd43283acdd940964374a87d9 + UntinyCapacitorSafeArea: 6354c662c37e272d587bb2a224cba030d902b2bd -PODFILE CHECKSUM: 4233f5c5f414604460ff96d372542c311b0fb7a8 +PODFILE CHECKSUM: 3775bab260748c1734d8cf38ed633c5ff6a48b36 COCOAPODS: 1.16.2 diff --git a/package.json b/package.json index 279d3203..28662f82 100644 --- a/package.json +++ b/package.json @@ -12,11 +12,12 @@ "lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts,.vue --fix", "dev": "vite dev", "dev:electron": "electron-vite dev", - "dev:ios": "vite build && capacitor sync && capacitor run ios", + "dev:ios": "capacitor sync ios && capacitor run ios", "build": "vite build", "build:win": "electron-vite build && electron-builder --win", "build:mac": "electron-vite build && electron-builder --mac", - "build:linux": "electron-vite build && electron-builder --linux" + "build:linux": "electron-vite build && electron-builder --linux", + "build:ios": "vite build && capacitor sync ios && capacitor open ios" }, "dependencies": { "@electron-toolkit/preload": "^3.0.0", @@ -44,6 +45,7 @@ "@stapxs/umami-logger-typescript": "^1.0.12", "@types/jsonpath": "^0.2.4", "@types/node": "^20.14.8", + "@untiny/capacitor-safe-area": "^1.0.3", "@vitejs/plugin-vue": "^5.0.5", "@vue/eslint-config-typescript": "^13.0.0", "animejs": "^3.2.2", diff --git a/src/renderer/src/App.vue b/src/renderer/src/App.vue index dfa8893c..6fce5001 100644 --- a/src/renderer/src/App.vue +++ b/src/renderer/src/App.vue @@ -45,24 +45,28 @@ " @click="changeTab('主页', 'Home', false)"> + {{ $t('主页') }}
  • + {{ $t('信息') }}
  • + {{ $t('列表') }}