feat: 更新capacitor配置,添加服务器设置以支持HTTP连接
This commit is contained in:
@@ -4,6 +4,10 @@ const config: CapacitorConfig = {
|
|||||||
appId: "io.ionic.starter",
|
appId: "io.ionic.starter",
|
||||||
appName: "riwa-ionic",
|
appName: "riwa-ionic",
|
||||||
webDir: "dist",
|
webDir: "dist",
|
||||||
|
server: {
|
||||||
|
url: "http://localhost:5173", // Vite默认端口
|
||||||
|
cleartext: true, // 允许HTTP连接
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
|||||||
32
components.d.ts
vendored
32
components.d.ts
vendored
@@ -12,36 +12,26 @@ export {}
|
|||||||
/* prettier-ignore */
|
/* prettier-ignore */
|
||||||
declare module 'vue' {
|
declare module 'vue' {
|
||||||
export interface GlobalComponents {
|
export interface GlobalComponents {
|
||||||
IIcBaselineArrowForwardIos: typeof import('~icons/ic/baseline-arrow-forward-ios')['default']
|
|
||||||
IIcBaselineDataSaverOff: typeof import('~icons/ic/baseline-data-saver-off')['default']
|
IIcBaselineDataSaverOff: typeof import('~icons/ic/baseline-data-saver-off')['default']
|
||||||
IIcBaselineDownloading: typeof import('~icons/ic/baseline-downloading')['default']
|
IIcBaselineDownloading: typeof import('~icons/ic/baseline-downloading')['default']
|
||||||
IIcRoundArrowForwardIos: typeof import('~icons/ic/round-arrow-forward-ios')['default']
|
IIcRoundArrowForwardIos: typeof import('~icons/ic/round-arrow-forward-ios')['default']
|
||||||
IonApp: typeof import('@ionic/vue')['IonApp']
|
IonApp: typeof import('@ionic/vue')['IonApp']
|
||||||
IonAvatar: typeof import('@ionic/vue')['IonAvatar']
|
IonAvatar: typeof import('@ionic/vue')['IonAvatar']
|
||||||
IonBackButton: typeof import('@ionic/vue')['IonBackButton']
|
IonBackButton: typeof import('@ionic/vue')['IonBackButton']
|
||||||
IonBackdrop: typeof import('@ionic/vue')['IonBackdrop']
|
|
||||||
IonBreadcrumb: typeof import('@ionic/vue')['IonBreadcrumb']
|
IonBreadcrumb: typeof import('@ionic/vue')['IonBreadcrumb']
|
||||||
IonBreadcrumbs: typeof import('@ionic/vue')['IonBreadcrumbs']
|
IonBreadcrumbs: typeof import('@ionic/vue')['IonBreadcrumbs']
|
||||||
IonButton: typeof import('@ionic/vue')['IonButton']
|
IonButton: typeof import('@ionic/vue')['IonButton']
|
||||||
IonButtons: typeof import('@ionic/vue')['IonButtons']
|
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']
|
IonContent: typeof import('@ionic/vue')['IonContent']
|
||||||
IonDatetime: typeof import('@ionic/vue')['IonDatetime']
|
IonDatetime: typeof import('@ionic/vue')['IonDatetime']
|
||||||
IonDatetimeButton: typeof import('@ionic/vue')['IonDatetimeButton']
|
IonDatetimeButton: typeof import('@ionic/vue')['IonDatetimeButton']
|
||||||
IonHeader: typeof import('@ionic/vue')['IonHeader']
|
IonHeader: typeof import('@ionic/vue')['IonHeader']
|
||||||
IonIcon: typeof import('@ionic/vue')['IonIcon']
|
IonIcon: typeof import('@ionic/vue')['IonIcon']
|
||||||
IonImg: typeof import('@ionic/vue')['IonImg']
|
|
||||||
IonInputOtp: typeof import('@ionic/vue')['IonInputOtp']
|
IonInputOtp: typeof import('@ionic/vue')['IonInputOtp']
|
||||||
IonItem: typeof import('@ionic/vue')['IonItem']
|
IonItem: typeof import('@ionic/vue')['IonItem']
|
||||||
IonLabel: typeof import('@ionic/vue')['IonLabel']
|
IonLabel: typeof import('@ionic/vue')['IonLabel']
|
||||||
IonList: typeof import('@ionic/vue')['IonList']
|
IonList: typeof import('@ionic/vue')['IonList']
|
||||||
IonModal: typeof import('@ionic/vue')['IonModal']
|
IonModal: typeof import('@ionic/vue')['IonModal']
|
||||||
IonNavLink: typeof import('@ionic/vue')['IonNavLink']
|
|
||||||
IonNote: typeof import('@ionic/vue')['IonNote']
|
IonNote: typeof import('@ionic/vue')['IonNote']
|
||||||
IonPage: typeof import('@ionic/vue')['IonPage']
|
IonPage: typeof import('@ionic/vue')['IonPage']
|
||||||
IonRadio: typeof import('@ionic/vue')['IonRadio']
|
IonRadio: typeof import('@ionic/vue')['IonRadio']
|
||||||
@@ -61,52 +51,36 @@ declare module 'vue' {
|
|||||||
RouterView: typeof import('vue-router')['RouterView']
|
RouterView: typeof import('vue-router')['RouterView']
|
||||||
UiAvatar: typeof import('./src/components/ui/avatar/index.vue')['default']
|
UiAvatar: typeof import('./src/components/ui/avatar/index.vue')['default']
|
||||||
UiCollapse: typeof import('./src/components/ui/collapse/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']
|
UiDatetime: typeof import('./src/components/ui/datetime/index.vue')['default']
|
||||||
UiDivider: typeof import('./src/components/ui/divider/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']
|
UiInput: typeof import('./src/components/ui/input/index.vue')['default']
|
||||||
UiInputLabel: typeof import('./src/components/ui/input-label/index.vue')['default']
|
UiInputLabel: typeof import('./src/components/ui/input-label/index.vue')['default']
|
||||||
UiResult: typeof import('./src/components/ui/result/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
|
// For TSX support
|
||||||
declare global {
|
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 IIcBaselineDataSaverOff: typeof import('~icons/ic/baseline-data-saver-off')['default']
|
||||||
const IIcBaselineDownloading: typeof import('~icons/ic/baseline-downloading')['default']
|
const IIcBaselineDownloading: typeof import('~icons/ic/baseline-downloading')['default']
|
||||||
const IIcRoundArrowForwardIos: typeof import('~icons/ic/round-arrow-forward-ios')['default']
|
const IIcRoundArrowForwardIos: typeof import('~icons/ic/round-arrow-forward-ios')['default']
|
||||||
const IonApp: typeof import('@ionic/vue')['IonApp']
|
const IonApp: typeof import('@ionic/vue')['IonApp']
|
||||||
const IonAvatar: typeof import('@ionic/vue')['IonAvatar']
|
const IonAvatar: typeof import('@ionic/vue')['IonAvatar']
|
||||||
const IonBackButton: typeof import('@ionic/vue')['IonBackButton']
|
const IonBackButton: typeof import('@ionic/vue')['IonBackButton']
|
||||||
const IonBackdrop: typeof import('@ionic/vue')['IonBackdrop']
|
|
||||||
const IonBreadcrumb: typeof import('@ionic/vue')['IonBreadcrumb']
|
const IonBreadcrumb: typeof import('@ionic/vue')['IonBreadcrumb']
|
||||||
const IonBreadcrumbs: typeof import('@ionic/vue')['IonBreadcrumbs']
|
const IonBreadcrumbs: typeof import('@ionic/vue')['IonBreadcrumbs']
|
||||||
const IonButton: typeof import('@ionic/vue')['IonButton']
|
const IonButton: typeof import('@ionic/vue')['IonButton']
|
||||||
const IonButtons: typeof import('@ionic/vue')['IonButtons']
|
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 IonContent: typeof import('@ionic/vue')['IonContent']
|
||||||
const IonDatetime: typeof import('@ionic/vue')['IonDatetime']
|
const IonDatetime: typeof import('@ionic/vue')['IonDatetime']
|
||||||
const IonDatetimeButton: typeof import('@ionic/vue')['IonDatetimeButton']
|
const IonDatetimeButton: typeof import('@ionic/vue')['IonDatetimeButton']
|
||||||
const IonHeader: typeof import('@ionic/vue')['IonHeader']
|
const IonHeader: typeof import('@ionic/vue')['IonHeader']
|
||||||
const IonIcon: typeof import('@ionic/vue')['IonIcon']
|
const IonIcon: typeof import('@ionic/vue')['IonIcon']
|
||||||
const IonImg: typeof import('@ionic/vue')['IonImg']
|
|
||||||
const IonInputOtp: typeof import('@ionic/vue')['IonInputOtp']
|
const IonInputOtp: typeof import('@ionic/vue')['IonInputOtp']
|
||||||
const IonItem: typeof import('@ionic/vue')['IonItem']
|
const IonItem: typeof import('@ionic/vue')['IonItem']
|
||||||
const IonLabel: typeof import('@ionic/vue')['IonLabel']
|
const IonLabel: typeof import('@ionic/vue')['IonLabel']
|
||||||
const IonList: typeof import('@ionic/vue')['IonList']
|
const IonList: typeof import('@ionic/vue')['IonList']
|
||||||
const IonModal: typeof import('@ionic/vue')['IonModal']
|
const IonModal: typeof import('@ionic/vue')['IonModal']
|
||||||
const IonNavLink: typeof import('@ionic/vue')['IonNavLink']
|
|
||||||
const IonNote: typeof import('@ionic/vue')['IonNote']
|
const IonNote: typeof import('@ionic/vue')['IonNote']
|
||||||
const IonPage: typeof import('@ionic/vue')['IonPage']
|
const IonPage: typeof import('@ionic/vue')['IonPage']
|
||||||
const IonRadio: typeof import('@ionic/vue')['IonRadio']
|
const IonRadio: typeof import('@ionic/vue')['IonRadio']
|
||||||
@@ -126,15 +100,9 @@ declare global {
|
|||||||
const RouterView: typeof import('vue-router')['RouterView']
|
const RouterView: typeof import('vue-router')['RouterView']
|
||||||
const UiAvatar: typeof import('./src/components/ui/avatar/index.vue')['default']
|
const UiAvatar: typeof import('./src/components/ui/avatar/index.vue')['default']
|
||||||
const UiCollapse: typeof import('./src/components/ui/collapse/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 UiDatetime: typeof import('./src/components/ui/datetime/index.vue')['default']
|
||||||
const UiDivider: typeof import('./src/components/ui/divider/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 UiInput: typeof import('./src/components/ui/input/index.vue')['default']
|
||||||
const UiInputLabel: typeof import('./src/components/ui/input-label/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 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']
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user