feat: 更新capacitor配置,添加服务器设置以支持HTTP连接

This commit is contained in:
2025-12-16 15:56:43 +07:00
parent d9ee6a5662
commit 20fc071ebb
2 changed files with 4 additions and 32 deletions

View File

@@ -4,6 +4,10 @@ const config: CapacitorConfig = {
appId: "io.ionic.starter",
appName: "riwa-ionic",
webDir: "dist",
server: {
url: "http://localhost:5173", // Vite默认端口
cleartext: true, // 允许HTTP连接
},
};
export default config;

32
components.d.ts vendored
View File

@@ -12,36 +12,26 @@ export {}
/* prettier-ignore */
declare module 'vue' {
export interface GlobalComponents {
IIcBaselineArrowForwardIos: typeof import('~icons/ic/baseline-arrow-forward-ios')['default']
IIcBaselineDataSaverOff: typeof import('~icons/ic/baseline-data-saver-off')['default']
IIcBaselineDownloading: typeof import('~icons/ic/baseline-downloading')['default']
IIcRoundArrowForwardIos: typeof import('~icons/ic/round-arrow-forward-ios')['default']
IonApp: typeof import('@ionic/vue')['IonApp']
IonAvatar: typeof import('@ionic/vue')['IonAvatar']
IonBackButton: typeof import('@ionic/vue')['IonBackButton']
IonBackdrop: typeof import('@ionic/vue')['IonBackdrop']
IonBreadcrumb: typeof import('@ionic/vue')['IonBreadcrumb']
IonBreadcrumbs: typeof import('@ionic/vue')['IonBreadcrumbs']
IonButton: typeof import('@ionic/vue')['IonButton']
IonButtons: typeof import('@ionic/vue')['IonButtons']
IonCard: typeof import('@ionic/vue')['IonCard']
IonCardContent: typeof import('@ionic/vue')['IonCardContent']
IonCardHeader: typeof import('@ionic/vue')['IonCardHeader']
IonCardSubtitle: typeof import('@ionic/vue')['IonCardSubtitle']
IonCardTitle: typeof import('@ionic/vue')['IonCardTitle']
IonCheckbox: typeof import('@ionic/vue')['IonCheckbox']
IonContent: typeof import('@ionic/vue')['IonContent']
IonDatetime: typeof import('@ionic/vue')['IonDatetime']
IonDatetimeButton: typeof import('@ionic/vue')['IonDatetimeButton']
IonHeader: typeof import('@ionic/vue')['IonHeader']
IonIcon: typeof import('@ionic/vue')['IonIcon']
IonImg: typeof import('@ionic/vue')['IonImg']
IonInputOtp: typeof import('@ionic/vue')['IonInputOtp']
IonItem: typeof import('@ionic/vue')['IonItem']
IonLabel: typeof import('@ionic/vue')['IonLabel']
IonList: typeof import('@ionic/vue')['IonList']
IonModal: typeof import('@ionic/vue')['IonModal']
IonNavLink: typeof import('@ionic/vue')['IonNavLink']
IonNote: typeof import('@ionic/vue')['IonNote']
IonPage: typeof import('@ionic/vue')['IonPage']
IonRadio: typeof import('@ionic/vue')['IonRadio']
@@ -61,52 +51,36 @@ declare module 'vue' {
RouterView: typeof import('vue-router')['RouterView']
UiAvatar: typeof import('./src/components/ui/avatar/index.vue')['default']
UiCollapse: typeof import('./src/components/ui/collapse/index.vue')['default']
UiCollapseExample: typeof import('./src/components/ui/collapse/example.vue')['default']
UiDatetime: typeof import('./src/components/ui/datetime/index.vue')['default']
UiDivider: typeof import('./src/components/ui/divider/index.vue')['default']
UiForm: typeof import('./src/components/ui/form/index.vue')['default']
UiFormFormItem: typeof import('./src/components/ui/form/form-item.vue')['default']
UiFormItem: typeof import('./src/components/ui/form/item.vue')['default']
UiInput: typeof import('./src/components/ui/input/index.vue')['default']
UiInputLabel: typeof import('./src/components/ui/input-label/index.vue')['default']
UiResult: typeof import('./src/components/ui/result/index.vue')['default']
UiSelect: typeof import('./src/components/ui/select/index.vue')['default']
UiSelectLabel: typeof import('./src/components/ui/select-label/index.vue')['default']
}
}
// For TSX support
declare global {
const IIcBaselineArrowForwardIos: typeof import('~icons/ic/baseline-arrow-forward-ios')['default']
const IIcBaselineDataSaverOff: typeof import('~icons/ic/baseline-data-saver-off')['default']
const IIcBaselineDownloading: typeof import('~icons/ic/baseline-downloading')['default']
const IIcRoundArrowForwardIos: typeof import('~icons/ic/round-arrow-forward-ios')['default']
const IonApp: typeof import('@ionic/vue')['IonApp']
const IonAvatar: typeof import('@ionic/vue')['IonAvatar']
const IonBackButton: typeof import('@ionic/vue')['IonBackButton']
const IonBackdrop: typeof import('@ionic/vue')['IonBackdrop']
const IonBreadcrumb: typeof import('@ionic/vue')['IonBreadcrumb']
const IonBreadcrumbs: typeof import('@ionic/vue')['IonBreadcrumbs']
const IonButton: typeof import('@ionic/vue')['IonButton']
const IonButtons: typeof import('@ionic/vue')['IonButtons']
const IonCard: typeof import('@ionic/vue')['IonCard']
const IonCardContent: typeof import('@ionic/vue')['IonCardContent']
const IonCardHeader: typeof import('@ionic/vue')['IonCardHeader']
const IonCardSubtitle: typeof import('@ionic/vue')['IonCardSubtitle']
const IonCardTitle: typeof import('@ionic/vue')['IonCardTitle']
const IonCheckbox: typeof import('@ionic/vue')['IonCheckbox']
const IonContent: typeof import('@ionic/vue')['IonContent']
const IonDatetime: typeof import('@ionic/vue')['IonDatetime']
const IonDatetimeButton: typeof import('@ionic/vue')['IonDatetimeButton']
const IonHeader: typeof import('@ionic/vue')['IonHeader']
const IonIcon: typeof import('@ionic/vue')['IonIcon']
const IonImg: typeof import('@ionic/vue')['IonImg']
const IonInputOtp: typeof import('@ionic/vue')['IonInputOtp']
const IonItem: typeof import('@ionic/vue')['IonItem']
const IonLabel: typeof import('@ionic/vue')['IonLabel']
const IonList: typeof import('@ionic/vue')['IonList']
const IonModal: typeof import('@ionic/vue')['IonModal']
const IonNavLink: typeof import('@ionic/vue')['IonNavLink']
const IonNote: typeof import('@ionic/vue')['IonNote']
const IonPage: typeof import('@ionic/vue')['IonPage']
const IonRadio: typeof import('@ionic/vue')['IonRadio']
@@ -126,15 +100,9 @@ declare global {
const RouterView: typeof import('vue-router')['RouterView']
const UiAvatar: typeof import('./src/components/ui/avatar/index.vue')['default']
const UiCollapse: typeof import('./src/components/ui/collapse/index.vue')['default']
const UiCollapseExample: typeof import('./src/components/ui/collapse/example.vue')['default']
const UiDatetime: typeof import('./src/components/ui/datetime/index.vue')['default']
const UiDivider: typeof import('./src/components/ui/divider/index.vue')['default']
const UiForm: typeof import('./src/components/ui/form/index.vue')['default']
const UiFormFormItem: typeof import('./src/components/ui/form/form-item.vue')['default']
const UiFormItem: typeof import('./src/components/ui/form/item.vue')['default']
const UiInput: typeof import('./src/components/ui/input/index.vue')['default']
const UiInputLabel: typeof import('./src/components/ui/input-label/index.vue')['default']
const UiResult: typeof import('./src/components/ui/result/index.vue')['default']
const UiSelect: typeof import('./src/components/ui/select/index.vue')['default']
const UiSelectLabel: typeof import('./src/components/ui/select-label/index.vue')['default']
}