This commit overhauls several core parts of the codebase: - Replace legacy localStorage token storage with secure cookie-based authentication with automatic token refresh logic - Rewrite checkToken and goLogin hooks to support redirect targets and proper async error handling - Update all component navigation flows to use the updated auth checks and correct redirect behavior - Refactor router configuration to support both client-side and server-side rendering via conditional history usage - Remove unused speech recognition constant file and stale component registration for RecordingWaveBtn - Add unit tests for navigation utilities and auth token handling - Fix login post-success redirect logic and add login success event emissions - Overhaul HTTP request handling to include automatic auth token injection and retry on unauthorized errors
122 lines
7.7 KiB
TypeScript
122 lines
7.7 KiB
TypeScript
/* eslint-disable */
|
|
// @ts-nocheck
|
|
// biome-ignore lint: disable
|
|
// oxlint-disable
|
|
// ------
|
|
// Generated by unplugin-vue-components
|
|
// Read more: https://github.com/vuejs/core/pull/3399
|
|
import { GlobalComponents } from 'vue'
|
|
|
|
export {}
|
|
|
|
/* prettier-ignore */
|
|
declare module 'vue' {
|
|
export interface GlobalComponents {
|
|
AddCarCrad: typeof import('./src/components/AddCarCrad/index.vue')['default']
|
|
AiTabSwitch: typeof import('./src/components/AiTabSwitch/index.vue')['default']
|
|
Calender: typeof import('./src/components/Calender/index.vue')['default']
|
|
CheckBox: typeof import('./src/components/CheckBox/index.vue')['default']
|
|
CommandWrapper: typeof import('./src/components/CommandWrapper/index.vue')['default']
|
|
CreateServiceOrder: typeof import('./src/components/CreateServiceOrder/index.vue')['default']
|
|
CustomEmpty: typeof import('./src/components/CustomEmpty/index.vue')['default']
|
|
DateRangeSection: typeof import('./src/components/DateRangeSection/index.vue')['default']
|
|
Demo: typeof import('./src/components/FormCard/demo.vue')['default']
|
|
DetailPopup: typeof import('./src/components/DetailPopup/index.vue')['default']
|
|
Divider: typeof import('./src/components/Divider/index.vue')['default']
|
|
Feedback: typeof import('./src/components/Feedback/index.vue')['default']
|
|
FormCard: typeof import('./src/components/FormCard/index.vue')['default']
|
|
GoodDetail: typeof import('./src/components/GoodDetail/index.vue')['default']
|
|
ImageSwiper: typeof import('./src/components/ImageSwiper/index.vue')['default']
|
|
LocationCard: typeof import('./src/components/LocationCard/index.vue')['default']
|
|
LocationInfo: typeof import('./src/components/LocationInfo/index.vue')['default']
|
|
ModuleTitle: typeof import('./src/components/ModuleTitle/index.vue')['default']
|
|
Privacy: typeof import('./src/components/Privacy/index.vue')['default']
|
|
Qrcode: typeof import('./src/components/Qrcode/index.vue')['default']
|
|
RefundPopup: typeof import('./src/components/RefundPopup/index.vue')['default']
|
|
ResponseIntro: typeof import('./src/components/ResponseIntro/index.vue')['default']
|
|
ResponseWrapper: typeof import('./src/components/ResponseWrapper/index.vue')['default']
|
|
RouterLink: typeof import('vue-router')['RouterLink']
|
|
RouterView: typeof import('vue-router')['RouterView']
|
|
ServiceTipsWord: typeof import('./src/components/ServiceTipsWord/index.vue')['default']
|
|
SpriteAnimator: typeof import('./src/components/SpriteAnimator/index.vue')['default']
|
|
Stepper: typeof import('./src/components/Stepper/index.vue')['default']
|
|
SumCard: typeof import('./src/components/SumCard/index.vue')['default']
|
|
SurveyQuestionnaire: typeof import('./src/components/SurveyQuestionnaire/index.vue')['default']
|
|
SwipeCards: typeof import('./src/components/SwipeCards/index.vue')['default']
|
|
TagsGroup: typeof import('./src/components/TagsGroup/index.vue')['default']
|
|
TopNavBar: typeof import('./src/components/TopNavBar/index.vue')['default']
|
|
UseDateRange: typeof import('./src/components/UseDateRange/index.vue')['default']
|
|
VanButton: typeof import('vant/es')['Button']
|
|
VanCell: typeof import('vant/es')['Cell']
|
|
VanCheckbox: typeof import('vant/es')['Checkbox']
|
|
VanDivider: typeof import('vant/es')['Divider']
|
|
VanField: typeof import('vant/es')['Field']
|
|
VanIcon: typeof import('vant/es')['Icon']
|
|
VanIcons: typeof import('vant/es')['Icons']
|
|
VanList: typeof import('vant/es')['List']
|
|
VanPopup: typeof import('vant/es')['Popup']
|
|
VanPullRefresh: typeof import('vant/es')['PullRefresh']
|
|
VanSearch: typeof import('vant/es')['Search']
|
|
VanSwipe: typeof import('vant/es')['Swipe']
|
|
VanSwipeItem: typeof import('vant/es')['SwipeItem']
|
|
VanSwiperItem: typeof import('vant/es')['SwiperItem']
|
|
VanTab: typeof import('vant/es')['Tab']
|
|
VanTabs: typeof import('vant/es')['Tabs']
|
|
ZnIcon: typeof import('./src/components/ZnIcon/index.vue')['default']
|
|
}
|
|
}
|
|
|
|
// For TSX support
|
|
declare global {
|
|
const AddCarCrad: typeof import('./src/components/AddCarCrad/index.vue')['default']
|
|
const AiTabSwitch: typeof import('./src/components/AiTabSwitch/index.vue')['default']
|
|
const Calender: typeof import('./src/components/Calender/index.vue')['default']
|
|
const CheckBox: typeof import('./src/components/CheckBox/index.vue')['default']
|
|
const CommandWrapper: typeof import('./src/components/CommandWrapper/index.vue')['default']
|
|
const CreateServiceOrder: typeof import('./src/components/CreateServiceOrder/index.vue')['default']
|
|
const CustomEmpty: typeof import('./src/components/CustomEmpty/index.vue')['default']
|
|
const DateRangeSection: typeof import('./src/components/DateRangeSection/index.vue')['default']
|
|
const Demo: typeof import('./src/components/FormCard/demo.vue')['default']
|
|
const DetailPopup: typeof import('./src/components/DetailPopup/index.vue')['default']
|
|
const Divider: typeof import('./src/components/Divider/index.vue')['default']
|
|
const Feedback: typeof import('./src/components/Feedback/index.vue')['default']
|
|
const FormCard: typeof import('./src/components/FormCard/index.vue')['default']
|
|
const GoodDetail: typeof import('./src/components/GoodDetail/index.vue')['default']
|
|
const ImageSwiper: typeof import('./src/components/ImageSwiper/index.vue')['default']
|
|
const LocationCard: typeof import('./src/components/LocationCard/index.vue')['default']
|
|
const LocationInfo: typeof import('./src/components/LocationInfo/index.vue')['default']
|
|
const ModuleTitle: typeof import('./src/components/ModuleTitle/index.vue')['default']
|
|
const Privacy: typeof import('./src/components/Privacy/index.vue')['default']
|
|
const Qrcode: typeof import('./src/components/Qrcode/index.vue')['default']
|
|
const RefundPopup: typeof import('./src/components/RefundPopup/index.vue')['default']
|
|
const ResponseIntro: typeof import('./src/components/ResponseIntro/index.vue')['default']
|
|
const ResponseWrapper: typeof import('./src/components/ResponseWrapper/index.vue')['default']
|
|
const RouterLink: typeof import('vue-router')['RouterLink']
|
|
const RouterView: typeof import('vue-router')['RouterView']
|
|
const ServiceTipsWord: typeof import('./src/components/ServiceTipsWord/index.vue')['default']
|
|
const SpriteAnimator: typeof import('./src/components/SpriteAnimator/index.vue')['default']
|
|
const Stepper: typeof import('./src/components/Stepper/index.vue')['default']
|
|
const SumCard: typeof import('./src/components/SumCard/index.vue')['default']
|
|
const SurveyQuestionnaire: typeof import('./src/components/SurveyQuestionnaire/index.vue')['default']
|
|
const SwipeCards: typeof import('./src/components/SwipeCards/index.vue')['default']
|
|
const TagsGroup: typeof import('./src/components/TagsGroup/index.vue')['default']
|
|
const TopNavBar: typeof import('./src/components/TopNavBar/index.vue')['default']
|
|
const UseDateRange: typeof import('./src/components/UseDateRange/index.vue')['default']
|
|
const VanButton: typeof import('vant/es')['Button']
|
|
const VanCell: typeof import('vant/es')['Cell']
|
|
const VanCheckbox: typeof import('vant/es')['Checkbox']
|
|
const VanDivider: typeof import('vant/es')['Divider']
|
|
const VanField: typeof import('vant/es')['Field']
|
|
const VanIcon: typeof import('vant/es')['Icon']
|
|
const VanIcons: typeof import('vant/es')['Icons']
|
|
const VanList: typeof import('vant/es')['List']
|
|
const VanPopup: typeof import('vant/es')['Popup']
|
|
const VanPullRefresh: typeof import('vant/es')['PullRefresh']
|
|
const VanSearch: typeof import('vant/es')['Search']
|
|
const VanSwipe: typeof import('vant/es')['Swipe']
|
|
const VanSwipeItem: typeof import('vant/es')['SwipeItem']
|
|
const VanSwiperItem: typeof import('vant/es')['SwiperItem']
|
|
const VanTab: typeof import('vant/es')['Tab']
|
|
const VanTabs: typeof import('vant/es')['Tabs']
|
|
const ZnIcon: typeof import('./src/components/ZnIcon/index.vue')['default']
|
|
} |