befly-admin 3.12.17 → 3.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,30 +1,14 @@
1
- import axios, { AxiosHeaders, type AxiosRequestConfig, type AxiosResponse, type InternalAxiosRequestConfig } from "axios";
2
- import { cleanParams } from "befly-shared/utils/cleanParams";
1
+ import axios, { AxiosHeaders } from "axios";
2
+ import { cleanParams } from "befly-admin-ui/utils/cleanParams";
3
3
 
4
4
  import { $Storage } from "./storage";
5
5
 
6
- export type HttpApiResponse<TData> = {
7
- code: number;
8
- msg?: string;
9
- data?: TData;
10
- };
11
-
12
- export type HttpCleanParamsOptions = {
13
- dropValues?: readonly unknown[];
14
- dropKeyValue?: Record<string, readonly unknown[]>;
15
- };
16
-
17
- export type HttpClientOptions = AxiosRequestConfig & HttpCleanParamsOptions;
18
-
19
- export type HttpGetData = Record<string, unknown>;
20
- export type HttpPostData = Record<string, unknown> | FormData;
21
-
22
- function toAxiosRequestConfig(options: HttpClientOptions | undefined): AxiosRequestConfig | undefined {
6
+ function toAxiosRequestConfig(options) {
23
7
  if (!options) {
24
8
  return undefined;
25
9
  }
26
10
 
27
- const out = Object.assign({}, options) as Record<string, unknown>;
11
+ const out = Object.assign({}, options);
28
12
  delete out["dropValues"];
29
13
  delete out["dropKeyValue"];
30
14
 
@@ -32,17 +16,17 @@ function toAxiosRequestConfig(options: HttpClientOptions | undefined): AxiosRequ
32
16
  return undefined;
33
17
  }
34
18
 
35
- return out as AxiosRequestConfig;
19
+ return out;
36
20
  }
37
21
 
38
- function isPlainRecord(value: unknown): value is Record<string, unknown> {
22
+ function isPlainRecord(value) {
39
23
  if (typeof value !== "object" || value === null) return false;
40
24
  if (Array.isArray(value)) return false;
41
25
  if (value instanceof FormData) return false;
42
26
  return true;
43
27
  }
44
28
 
45
- function maybeCleanRequestData(data: Record<string, unknown>, cleanOptions: HttpCleanParamsOptions | undefined): Record<string, unknown> {
29
+ function maybeCleanRequestData(data, cleanOptions) {
46
30
  if (!isPlainRecord(data)) {
47
31
  return data;
48
32
  }
@@ -53,11 +37,7 @@ function maybeCleanRequestData(data: Record<string, unknown>, cleanOptions: Http
53
37
  }
54
38
 
55
39
  class HttpError extends Error {
56
- public code: number;
57
- public data?: unknown;
58
- public rawError?: unknown;
59
-
60
- public constructor(code: number, msg: string, data?: unknown, rawError?: unknown) {
40
+ constructor(code, msg, data, rawError) {
61
41
  super(msg);
62
42
  this.name = "HttpError";
63
43
  this.code = code;
@@ -66,11 +46,11 @@ class HttpError extends Error {
66
46
  }
67
47
  }
68
48
 
69
- function isNormalizedHttpError(value: unknown): value is HttpError {
49
+ function isNormalizedHttpError(value) {
70
50
  return value instanceof HttpError;
71
51
  }
72
52
 
73
- async function showNetworkErrorToast(): Promise<void> {
53
+ async function showNetworkErrorToast() {
74
54
  try {
75
55
  // 在测试/非浏览器环境下,提示组件可能不可用;仅在需要展示提示时再加载。
76
56
  MessagePlugin.error("网络连接失败");
@@ -79,7 +59,7 @@ async function showNetworkErrorToast(): Promise<void> {
79
59
  }
80
60
  }
81
61
 
82
- async function unwrapApiResponse<TData>(promise: Promise<AxiosResponse<HttpApiResponse<TData>>>): Promise<HttpApiResponse<TData>> {
62
+ async function unwrapApiResponse(promise) {
83
63
  try {
84
64
  const response = await promise;
85
65
  const res = response.data;
@@ -102,7 +82,7 @@ async function unwrapApiResponse<TData>(promise: Promise<AxiosResponse<HttpApiRe
102
82
 
103
83
  // 创建 axios 实例
104
84
  const request = axios.create({
105
- baseURL: (import.meta as unknown as { env?: Record<string, string> }).env?.["VITE_API_BASE_URL"] || "",
85
+ baseURL: import.meta.env["VITE_API_BASE_URL"] || "",
106
86
  timeout: 10000,
107
87
  headers: {
108
88
  "Content-Type": "application/json"
@@ -111,7 +91,7 @@ const request = axios.create({
111
91
 
112
92
  // 请求拦截器
113
93
  request.interceptors.request.use(
114
- (config: InternalAxiosRequestConfig) => {
94
+ (config) => {
115
95
  const token = $Storage.local.get("token");
116
96
  if (token) {
117
97
  const headers = new AxiosHeaders(config.headers);
@@ -120,41 +100,41 @@ request.interceptors.request.use(
120
100
  }
121
101
  return config;
122
102
  },
123
- (error: unknown) => {
103
+ (error) => {
124
104
  return Promise.reject(error);
125
105
  }
126
106
  );
127
107
 
128
- async function httpGet<TData>(url: string, data?: HttpGetData, options?: HttpClientOptions): Promise<HttpApiResponse<TData>> {
108
+ async function httpGet(url, data, options) {
129
109
  const axiosConfig = toAxiosRequestConfig(options);
130
110
  const inputData = data ?? {};
131
111
  const cleanedData = maybeCleanRequestData(inputData, options);
132
112
 
133
113
  // 规则:GET 必须传 params;为空也传空对象
134
114
  const finalConfig = Object.assign({}, axiosConfig);
135
- (finalConfig as { params?: unknown }).params = cleanedData;
115
+ finalConfig.params = cleanedData;
136
116
 
137
- return unwrapApiResponse<TData>(request.get<HttpApiResponse<TData>>(url, finalConfig));
117
+ return unwrapApiResponse(request.get(url, finalConfig));
138
118
  }
139
119
 
140
- async function httpPost<TData>(url: string, data?: HttpPostData, options?: HttpClientOptions): Promise<HttpApiResponse<TData>> {
120
+ async function httpPost(url, data, options) {
141
121
  const axiosConfig = toAxiosRequestConfig(options);
142
122
  if (data === undefined) {
143
123
  // 规则:POST 必须传 body;为空也传空对象
144
- return unwrapApiResponse<TData>(request.post<HttpApiResponse<TData>>(url, {}, axiosConfig));
124
+ return unwrapApiResponse(request.post(url, {}, axiosConfig));
145
125
  }
146
126
 
147
127
  if (data instanceof FormData) {
148
- return unwrapApiResponse<TData>(request.post<HttpApiResponse<TData>>(url, data, axiosConfig));
128
+ return unwrapApiResponse(request.post(url, data, axiosConfig));
149
129
  }
150
130
 
151
131
  const cleanedData = maybeCleanRequestData(data, options);
152
132
  if (Object.keys(cleanedData).length === 0) {
153
133
  // 规则:POST 必须传 body;清洗为空则传空对象
154
- return unwrapApiResponse<TData>(request.post<HttpApiResponse<TData>>(url, {}, axiosConfig));
134
+ return unwrapApiResponse(request.post(url, {}, axiosConfig));
155
135
  }
156
136
 
157
- return unwrapApiResponse<TData>(request.post<HttpApiResponse<TData>>(url, cleanedData, axiosConfig));
137
+ return unwrapApiResponse(request.post(url, cleanedData, axiosConfig));
158
138
  }
159
139
 
160
140
  /**
@@ -177,5 +157,3 @@ export const $Http = {
177
157
  get: httpGet,
178
158
  post: httpPost
179
159
  };
180
-
181
- export type HttpClient = typeof $Http;
@@ -5,7 +5,7 @@ import { routes } from "vue-router/auto-routes";
5
5
  import { $Storage } from "./storage";
6
6
 
7
7
  // 应用自定义布局系统(同时可选注入根路径重定向)
8
- const finalRoutes = Layouts(routes, $Config.homePath, (layoutName: string) => {
8
+ const finalRoutes = Layouts(routes, $Config.homePath, (layoutName) => {
9
9
  if (layoutName === "default") {
10
10
  return () => import("../layouts/default.vue");
11
11
  }
@@ -15,7 +15,7 @@ const finalRoutes = Layouts(routes, $Config.homePath, (layoutName: string) => {
15
15
 
16
16
  /**
17
17
  * 创建并导出路由实例
18
- * 可直接在 main.ts 中使用 app.use($Router)
18
+ * 可直接在 main.js 中使用 app.use($Router)
19
19
  */
20
20
  export const $Router = createRouter({
21
21
  history: createWebHashHistory(import.meta.env.BASE_URL),
@@ -4,48 +4,46 @@
4
4
  */
5
5
 
6
6
  // 获取命名空间
7
- const NAMESPACE = (import.meta as unknown as { env?: Record<string, string> }).env?.["VITE_STORAGE_NAMESPACE"] || "befly";
7
+ const NAMESPACE = import.meta.env["VITE_STORAGE_NAMESPACE"] || "befly";
8
8
 
9
- class MemoryStorage implements Storage {
10
- private map: Map<string, string>;
11
-
12
- public constructor() {
13
- this.map = new Map<string, string>();
9
+ class MemoryStorage {
10
+ constructor() {
11
+ this.map = new Map();
14
12
  }
15
13
 
16
- public get length(): number {
14
+ get length() {
17
15
  return this.map.size;
18
16
  }
19
17
 
20
- public clear(): void {
18
+ clear() {
21
19
  for (const key of this.map.keys()) {
22
- delete (this as unknown as Record<string, unknown>)[key];
20
+ delete this[key];
23
21
  }
24
22
  this.map.clear();
25
23
  }
26
24
 
27
- public getItem(key: string): string | null {
25
+ getItem(key) {
28
26
  return this.map.get(key) ?? null;
29
27
  }
30
28
 
31
- public key(index: number): string | null {
29
+ key(index) {
32
30
  const keys = Array.from(this.map.keys());
33
31
  return keys[index] ?? null;
34
32
  }
35
33
 
36
- public removeItem(key: string): void {
34
+ removeItem(key) {
37
35
  this.map.delete(key);
38
- delete (this as unknown as Record<string, unknown>)[key];
36
+ delete this[key];
39
37
  }
40
38
 
41
- public setItem(key: string, value: string): void {
39
+ setItem(key, value) {
42
40
  this.map.set(key, value);
43
- (this as unknown as Record<string, unknown>)[key] = value;
41
+ this[key] = value;
44
42
  }
45
43
  }
46
44
 
47
- function getBrowserStorage(kind: "localStorage" | "sessionStorage"): Storage {
48
- const win = globalThis as unknown as { window?: { localStorage?: Storage; sessionStorage?: Storage } };
45
+ function getBrowserStorage(kind) {
46
+ const win = globalThis;
49
47
  const storage = win.window?.[kind];
50
48
  if (storage) {
51
49
  return storage;
@@ -53,40 +51,23 @@ function getBrowserStorage(kind: "localStorage" | "sessionStorage"): Storage {
53
51
  return new MemoryStorage();
54
52
  }
55
53
 
56
- type StorageOps = {
57
- set: (key: string, value: unknown) => void;
58
- get: {
59
- (key: string): string | null;
60
- (key: string, defaultValue: string | null): string | null;
61
- <T>(key: string, defaultValue: T): T;
62
- };
63
- remove: (key: string) => void;
64
- clear: () => void;
65
- has: (key: string) => boolean;
66
- keys: () => string[];
67
- };
68
-
69
54
  /**
70
55
  * 存储操作类
71
56
  */
72
57
  class StorageManager {
73
- private localStorage: Storage;
74
- private sessionStorage: Storage;
75
- private namespace: string;
76
-
77
- public constructor(namespace: string = NAMESPACE) {
58
+ constructor(namespace = NAMESPACE) {
78
59
  this.localStorage = getBrowserStorage("localStorage");
79
60
  this.sessionStorage = getBrowserStorage("sessionStorage");
80
61
  this.namespace = namespace;
81
62
  }
82
63
 
83
- private getKey(key: string): string {
64
+ getKey(key) {
84
65
  return `${this.namespace}:${key}`;
85
66
  }
86
67
 
87
- private createStorageOps(storage: Storage): StorageOps {
68
+ createStorageOps(storage) {
88
69
  return {
89
- set: (key: string, value: unknown) => {
70
+ set: (key, value) => {
90
71
  try {
91
72
  const fullKey = this.getKey(key);
92
73
  const serializedValue = JSON.stringify(value);
@@ -96,20 +77,20 @@ class StorageManager {
96
77
  }
97
78
  },
98
79
 
99
- get: ((key: string, defaultValue?: unknown) => {
80
+ get: (key, defaultValue) => {
100
81
  try {
101
82
  const fullKey = this.getKey(key);
102
83
  const value = storage.getItem(fullKey);
103
84
  if (value === null) {
104
85
  return defaultValue ?? null;
105
86
  }
106
- return JSON.parse(value) as unknown;
87
+ return JSON.parse(value);
107
88
  } catch {
108
89
  return defaultValue ?? null;
109
90
  }
110
- }) as StorageOps["get"],
91
+ },
111
92
 
112
- remove: (key: string) => {
93
+ remove: (key) => {
113
94
  try {
114
95
  const fullKey = this.getKey(key);
115
96
  storage.removeItem(fullKey);
@@ -132,7 +113,7 @@ class StorageManager {
132
113
  }
133
114
  },
134
115
 
135
- has: (key: string) => {
116
+ has: (key) => {
136
117
  const fullKey = this.getKey(key);
137
118
  return storage.getItem(fullKey) !== null;
138
119
  },
@@ -145,11 +126,11 @@ class StorageManager {
145
126
  };
146
127
  }
147
128
 
148
- public get local(): StorageOps {
129
+ get local() {
149
130
  return this.createStorageOps(this.localStorage);
150
131
  }
151
132
 
152
- public get session(): StorageOps {
133
+ get session() {
153
134
  return this.createStorageOps(this.sessionStorage);
154
135
  }
155
136
  }
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 判断值是否为字符串。
3
+ */
4
+ export function isString(value) {
5
+ return Object.prototype.toString.call(value) === "[object String]";
6
+ }
@@ -57,7 +57,20 @@
57
57
  <div class="line-chart">
58
58
  <div class="chart-line"></div>
59
59
  <div class="chart-grid"></div>
60
- <div class="chart-labels"><span>1月</span><span>2月</span><span>3月</span><span>4月</span><span>5月</span><span>6月</span><span>7月</span><span>8月</span><span>9月</span><span>10月</span><span>11月</span><span>12月</span></div>
60
+ <div class="chart-labels">
61
+ <span>1月</span>
62
+ <span>2月</span>
63
+ <span>3月</span>
64
+ <span>4月</span>
65
+ <span>5月</span>
66
+ <span>6月</span>
67
+ <span>7月</span>
68
+ <span>8月</span>
69
+ <span>9月</span>
70
+ <span>10月</span>
71
+ <span>11月</span>
72
+ <span>12月</span>
73
+ </div>
61
74
  </div>
62
75
  </div>
63
76
  </div>
@@ -142,7 +155,7 @@
142
155
  </div>
143
156
  </template>
144
157
 
145
- <script setup lang="ts"></script>
158
+ <script setup></script>
146
159
 
147
160
  <style lang="scss" scoped>
148
161
  .dashboard {
package/vite.config.js CHANGED
@@ -3,6 +3,5 @@ import { fileURLToPath } from "node:url";
3
3
  import { createBeflyViteConfig } from "befly-vite";
4
4
 
5
5
  export default createBeflyViteConfig({
6
- root: fileURLToPath(new URL(".", import.meta.url)),
7
- addonView: "adminViews"
6
+ root: fileURLToPath(new URL(".", import.meta.url))
8
7
  });
@@ -1,191 +0,0 @@
1
- /* eslint-disable */
2
- /* prettier-ignore */
3
- // @ts-nocheck
4
- // noinspection JSUnusedGlobalSymbols
5
- // Generated by unplugin-auto-import
6
- // biome-ignore lint: disable
7
- export {}
8
- declare global {
9
- const $Config: typeof import('../plugins/config').$Config
10
- const $Http: typeof import('../plugins/http').$Http
11
- const $Router: typeof import('../plugins/router').$Router
12
- const $Storage: typeof import('../plugins/storage').$Storage
13
- const DialogPlugin: typeof import('tdesign-vue-next').DialogPlugin
14
- const EffectScope: typeof import('vue').EffectScope
15
- const MessagePlugin: typeof import('tdesign-vue-next').MessagePlugin
16
- const acceptHMRUpdate: typeof import('pinia').acceptHMRUpdate
17
- const computed: typeof import('vue').computed
18
- const createApp: typeof import('vue').createApp
19
- const createPinia: typeof import('pinia').createPinia
20
- const customRef: typeof import('vue').customRef
21
- const defineAsyncComponent: typeof import('vue').defineAsyncComponent
22
- const defineComponent: typeof import('vue').defineComponent
23
- const definePage: typeof import('vue-router/experimental').definePage
24
- const defineStore: typeof import('pinia').defineStore
25
- const effectScope: typeof import('vue').effectScope
26
- const getActivePinia: typeof import('pinia').getActivePinia
27
- const getCurrentInstance: typeof import('vue').getCurrentInstance
28
- const getCurrentScope: typeof import('vue').getCurrentScope
29
- const getCurrentWatcher: typeof import('vue').getCurrentWatcher
30
- const h: typeof import('vue').h
31
- const inject: typeof import('vue').inject
32
- const isProxy: typeof import('vue').isProxy
33
- const isReactive: typeof import('vue').isReactive
34
- const isReadonly: typeof import('vue').isReadonly
35
- const isRef: typeof import('vue').isRef
36
- const isShallow: typeof import('vue').isShallow
37
- const mapActions: typeof import('pinia').mapActions
38
- const mapGetters: typeof import('pinia').mapGetters
39
- const mapState: typeof import('pinia').mapState
40
- const mapStores: typeof import('pinia').mapStores
41
- const mapWritableState: typeof import('pinia').mapWritableState
42
- const markRaw: typeof import('vue').markRaw
43
- const nextTick: typeof import('vue').nextTick
44
- const onActivated: typeof import('vue').onActivated
45
- const onBeforeMount: typeof import('vue').onBeforeMount
46
- const onBeforeRouteLeave: typeof import('vue-router').onBeforeRouteLeave
47
- const onBeforeRouteUpdate: typeof import('vue-router').onBeforeRouteUpdate
48
- const onBeforeUnmount: typeof import('vue').onBeforeUnmount
49
- const onBeforeUpdate: typeof import('vue').onBeforeUpdate
50
- const onDeactivated: typeof import('vue').onDeactivated
51
- const onErrorCaptured: typeof import('vue').onErrorCaptured
52
- const onMounted: typeof import('vue').onMounted
53
- const onRenderTracked: typeof import('vue').onRenderTracked
54
- const onRenderTriggered: typeof import('vue').onRenderTriggered
55
- const onScopeDispose: typeof import('vue').onScopeDispose
56
- const onServerPrefetch: typeof import('vue').onServerPrefetch
57
- const onUnmounted: typeof import('vue').onUnmounted
58
- const onUpdated: typeof import('vue').onUpdated
59
- const onWatcherCleanup: typeof import('vue').onWatcherCleanup
60
- const provide: typeof import('vue').provide
61
- const reactive: typeof import('vue').reactive
62
- const readonly: typeof import('vue').readonly
63
- const ref: typeof import('vue').ref
64
- const resolveComponent: typeof import('vue').resolveComponent
65
- const setActivePinia: typeof import('pinia').setActivePinia
66
- const setMapStoreSuffix: typeof import('pinia').setMapStoreSuffix
67
- const shallowReactive: typeof import('vue').shallowReactive
68
- const shallowReadonly: typeof import('vue').shallowReadonly
69
- const shallowRef: typeof import('vue').shallowRef
70
- const storeToRefs: typeof import('pinia').storeToRefs
71
- const toRaw: typeof import('vue').toRaw
72
- const toRef: typeof import('vue').toRef
73
- const toRefs: typeof import('vue').toRefs
74
- const toValue: typeof import('vue').toValue
75
- const triggerRef: typeof import('vue').triggerRef
76
- const unref: typeof import('vue').unref
77
- const useAttrs: typeof import('vue').useAttrs
78
- const useCssModule: typeof import('vue').useCssModule
79
- const useCssVars: typeof import('vue').useCssVars
80
- const useGlobal: typeof import('../plugins/global').useGlobal
81
- const useId: typeof import('vue').useId
82
- const useModel: typeof import('vue').useModel
83
- const useRoute: typeof import('vue-router').useRoute
84
- const useRouter: typeof import('vue-router').useRouter
85
- const useSlots: typeof import('vue').useSlots
86
- const useTemplateRef: typeof import('vue').useTemplateRef
87
- const watch: typeof import('vue').watch
88
- const watchEffect: typeof import('vue').watchEffect
89
- const watchPostEffect: typeof import('vue').watchPostEffect
90
- const watchSyncEffect: typeof import('vue').watchSyncEffect
91
- }
92
- // for type re-export
93
- declare global {
94
- // @ts-ignore
95
- export type { Component, Slot, Slots, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, ShallowRef, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue'
96
- import('vue')
97
- // @ts-ignore
98
- export type { BeflyAdminConfig } from '../plugins/config'
99
- import('../plugins/config')
100
- // @ts-ignore
101
- export type { HttpApiResponse, HttpCleanParamsOptions, HttpClientOptions, HttpGetData, HttpPostData } from '../plugins/http'
102
- import('../plugins/http')
103
- }
104
-
105
- // for vue template auto import
106
- import { UnwrapRef } from 'vue'
107
- declare module 'vue' {
108
- interface GlobalComponents {}
109
- interface ComponentCustomProperties {
110
- readonly $Config: UnwrapRef<typeof import('../plugins/config')['$Config']>
111
- readonly $Http: UnwrapRef<typeof import('../plugins/http')['$Http']>
112
- readonly $Router: UnwrapRef<typeof import('../plugins/router')['$Router']>
113
- readonly $Storage: UnwrapRef<typeof import('../plugins/storage')['$Storage']>
114
- readonly EffectScope: UnwrapRef<typeof import('vue')['EffectScope']>
115
- readonly acceptHMRUpdate: UnwrapRef<typeof import('pinia')['acceptHMRUpdate']>
116
- readonly computed: UnwrapRef<typeof import('vue')['computed']>
117
- readonly createApp: UnwrapRef<typeof import('vue')['createApp']>
118
- readonly createPinia: UnwrapRef<typeof import('pinia')['createPinia']>
119
- readonly customRef: UnwrapRef<typeof import('vue')['customRef']>
120
- readonly defineAsyncComponent: UnwrapRef<typeof import('vue')['defineAsyncComponent']>
121
- readonly defineComponent: UnwrapRef<typeof import('vue')['defineComponent']>
122
- readonly definePage: UnwrapRef<typeof import('vue-router/experimental')['definePage']>
123
- readonly defineStore: UnwrapRef<typeof import('pinia')['defineStore']>
124
- readonly effectScope: UnwrapRef<typeof import('vue')['effectScope']>
125
- readonly getActivePinia: UnwrapRef<typeof import('pinia')['getActivePinia']>
126
- readonly getCurrentInstance: UnwrapRef<typeof import('vue')['getCurrentInstance']>
127
- readonly getCurrentScope: UnwrapRef<typeof import('vue')['getCurrentScope']>
128
- readonly getCurrentWatcher: UnwrapRef<typeof import('vue')['getCurrentWatcher']>
129
- readonly h: UnwrapRef<typeof import('vue')['h']>
130
- readonly inject: UnwrapRef<typeof import('vue')['inject']>
131
- readonly isProxy: UnwrapRef<typeof import('vue')['isProxy']>
132
- readonly isReactive: UnwrapRef<typeof import('vue')['isReactive']>
133
- readonly isReadonly: UnwrapRef<typeof import('vue')['isReadonly']>
134
- readonly isRef: UnwrapRef<typeof import('vue')['isRef']>
135
- readonly isShallow: UnwrapRef<typeof import('vue')['isShallow']>
136
- readonly mapActions: UnwrapRef<typeof import('pinia')['mapActions']>
137
- readonly mapGetters: UnwrapRef<typeof import('pinia')['mapGetters']>
138
- readonly mapState: UnwrapRef<typeof import('pinia')['mapState']>
139
- readonly mapStores: UnwrapRef<typeof import('pinia')['mapStores']>
140
- readonly mapWritableState: UnwrapRef<typeof import('pinia')['mapWritableState']>
141
- readonly markRaw: UnwrapRef<typeof import('vue')['markRaw']>
142
- readonly nextTick: UnwrapRef<typeof import('vue')['nextTick']>
143
- readonly onActivated: UnwrapRef<typeof import('vue')['onActivated']>
144
- readonly onBeforeMount: UnwrapRef<typeof import('vue')['onBeforeMount']>
145
- readonly onBeforeRouteLeave: UnwrapRef<typeof import('vue-router')['onBeforeRouteLeave']>
146
- readonly onBeforeRouteUpdate: UnwrapRef<typeof import('vue-router')['onBeforeRouteUpdate']>
147
- readonly onBeforeUnmount: UnwrapRef<typeof import('vue')['onBeforeUnmount']>
148
- readonly onBeforeUpdate: UnwrapRef<typeof import('vue')['onBeforeUpdate']>
149
- readonly onDeactivated: UnwrapRef<typeof import('vue')['onDeactivated']>
150
- readonly onErrorCaptured: UnwrapRef<typeof import('vue')['onErrorCaptured']>
151
- readonly onMounted: UnwrapRef<typeof import('vue')['onMounted']>
152
- readonly onRenderTracked: UnwrapRef<typeof import('vue')['onRenderTracked']>
153
- readonly onRenderTriggered: UnwrapRef<typeof import('vue')['onRenderTriggered']>
154
- readonly onScopeDispose: UnwrapRef<typeof import('vue')['onScopeDispose']>
155
- readonly onServerPrefetch: UnwrapRef<typeof import('vue')['onServerPrefetch']>
156
- readonly onUnmounted: UnwrapRef<typeof import('vue')['onUnmounted']>
157
- readonly onUpdated: UnwrapRef<typeof import('vue')['onUpdated']>
158
- readonly onWatcherCleanup: UnwrapRef<typeof import('vue')['onWatcherCleanup']>
159
- readonly provide: UnwrapRef<typeof import('vue')['provide']>
160
- readonly reactive: UnwrapRef<typeof import('vue')['reactive']>
161
- readonly readonly: UnwrapRef<typeof import('vue')['readonly']>
162
- readonly ref: UnwrapRef<typeof import('vue')['ref']>
163
- readonly resolveComponent: UnwrapRef<typeof import('vue')['resolveComponent']>
164
- readonly setActivePinia: UnwrapRef<typeof import('pinia')['setActivePinia']>
165
- readonly setMapStoreSuffix: UnwrapRef<typeof import('pinia')['setMapStoreSuffix']>
166
- readonly shallowReactive: UnwrapRef<typeof import('vue')['shallowReactive']>
167
- readonly shallowReadonly: UnwrapRef<typeof import('vue')['shallowReadonly']>
168
- readonly shallowRef: UnwrapRef<typeof import('vue')['shallowRef']>
169
- readonly storeToRefs: UnwrapRef<typeof import('pinia')['storeToRefs']>
170
- readonly toRaw: UnwrapRef<typeof import('vue')['toRaw']>
171
- readonly toRef: UnwrapRef<typeof import('vue')['toRef']>
172
- readonly toRefs: UnwrapRef<typeof import('vue')['toRefs']>
173
- readonly toValue: UnwrapRef<typeof import('vue')['toValue']>
174
- readonly triggerRef: UnwrapRef<typeof import('vue')['triggerRef']>
175
- readonly unref: UnwrapRef<typeof import('vue')['unref']>
176
- readonly useAttrs: UnwrapRef<typeof import('vue')['useAttrs']>
177
- readonly useCssModule: UnwrapRef<typeof import('vue')['useCssModule']>
178
- readonly useCssVars: UnwrapRef<typeof import('vue')['useCssVars']>
179
- readonly useGlobal: UnwrapRef<typeof import('../plugins/global')['useGlobal']>
180
- readonly useId: UnwrapRef<typeof import('vue')['useId']>
181
- readonly useModel: UnwrapRef<typeof import('vue')['useModel']>
182
- readonly useRoute: UnwrapRef<typeof import('vue-router')['useRoute']>
183
- readonly useRouter: UnwrapRef<typeof import('vue-router')['useRouter']>
184
- readonly useSlots: UnwrapRef<typeof import('vue')['useSlots']>
185
- readonly useTemplateRef: UnwrapRef<typeof import('vue')['useTemplateRef']>
186
- readonly watch: UnwrapRef<typeof import('vue')['watch']>
187
- readonly watchEffect: UnwrapRef<typeof import('vue')['watchEffect']>
188
- readonly watchPostEffect: UnwrapRef<typeof import('vue')['watchPostEffect']>
189
- readonly watchSyncEffect: UnwrapRef<typeof import('vue')['watchSyncEffect']>
190
- }
191
- }
@@ -1,20 +0,0 @@
1
- /* eslint-disable */
2
- // @ts-nocheck
3
- // biome-ignore lint: disable
4
- // oxlint-disable
5
- // ------
6
- // Generated by unplugin-vue-components
7
- // Read more: https://github.com/vuejs/core/pull/3399
8
-
9
- export {}
10
-
11
- /* prettier-ignore */
12
- declare module 'vue' {
13
- export interface GlobalComponents {
14
- DetailPanel: typeof import('./../components/detailPanel.vue')['default']
15
- PageDialog: typeof import('./../components/pageDialog.vue')['default']
16
- PagedTableDetail: typeof import('./../components/pagedTableDetail.vue')['default']
17
- RouterLink: typeof import('vue-router')['RouterLink']
18
- RouterView: typeof import('vue-router')['RouterView']
19
- }
20
- }