auto imports.

This commit is contained in:
2023-04-12 18:43:57 +08:00
parent d46d371cf5
commit 965de2f069
2 changed files with 44 additions and 0 deletions

38
src/auto-imports.d.ts vendored
View File

@@ -4,10 +4,27 @@
// Generated by unplugin-auto-import
export {}
declare global {
const CODE_TEMPLATES: typeof import('./utils/constants')['CODE_TEMPLATES']
const CONTEST_STATUS: typeof import('./utils/constants')['CONTEST_STATUS']
const CONTEST_TYPE: typeof import('./utils/constants')['CONTEST_TYPE']
const ContestStatus: typeof import('./utils/constants')['ContestStatus']
const ContestType: typeof import('./utils/constants')['ContestType']
const DEAD_RESULTS: typeof import('./utils/constants')['DEAD_RESULTS']
const DIFFICULTY: typeof import('./utils/constants')['DIFFICULTY']
const EffectScope: typeof import('vue')['EffectScope']
const JUDGE_STATUS: typeof import('./utils/constants')['JUDGE_STATUS']
const LANGUAGE_FORMAT_VALUE: typeof import('./utils/constants')['LANGUAGE_FORMAT_VALUE']
const LANGUAGE_ID: typeof import('./utils/constants')['LANGUAGE_ID']
const LANGUAGE_SHOW_VALUE: typeof import('./utils/constants')['LANGUAGE_SHOW_VALUE']
const PROBLEM_PERMISSION: typeof import('./utils/constants')['PROBLEM_PERMISSION']
const SOURCES: typeof import('./utils/constants')['SOURCES']
const STORAGE_KEY: typeof import('./utils/constants')['STORAGE_KEY']
const SubmissionStatus: typeof import('./utils/constants')['SubmissionStatus']
const USER_TYPE: typeof import('./utils/constants')['USER_TYPE']
const acceptHMRUpdate: typeof import('pinia')['acceptHMRUpdate']
const asyncComputed: typeof import('@vueuse/core')['asyncComputed']
const autoResetRef: typeof import('@vueuse/core')['autoResetRef']
const buildProblemCodeKey: typeof import('./utils/functions')['buildProblemCodeKey']
const computed: typeof import('vue')['computed']
const computedAsync: typeof import('@vueuse/core')['computedAsync']
const computedEager: typeof import('@vueuse/core')['computedEager']
@@ -22,23 +39,35 @@ declare global {
const createPinia: typeof import('pinia')['createPinia']
const createReactiveFn: typeof import('@vueuse/core')['createReactiveFn']
const createSharedComposable: typeof import('@vueuse/core')['createSharedComposable']
const createTestSubmission: typeof import('./utils/judge')['createTestSubmission']
const createUnrefFn: typeof import('@vueuse/core')['createUnrefFn']
const customRef: typeof import('vue')['customRef']
const debounce: typeof import('./utils/functions')['debounce']
const debouncedRef: typeof import('@vueuse/core')['debouncedRef']
const debouncedWatch: typeof import('@vueuse/core')['debouncedWatch']
const decode: typeof import('./utils/functions')['decode']
const defineAsyncComponent: typeof import('vue')['defineAsyncComponent']
const defineComponent: typeof import('vue')['defineComponent']
const defineStore: typeof import('pinia')['defineStore']
const download: typeof import('./utils/download')['default']
const duration: typeof import('./utils/functions')['duration']
const eagerComputed: typeof import('@vueuse/core')['eagerComputed']
const effectScope: typeof import('vue')['effectScope']
const encode: typeof import('./utils/functions')['encode']
const extendRef: typeof import('@vueuse/core')['extendRef']
const filterEmptyValue: typeof import('./utils/functions')['filterEmptyValue']
const getACRate: typeof import('./utils/functions')['getACRate']
const getActivePinia: typeof import('pinia')['getActivePinia']
const getCurrentInstance: typeof import('vue')['getCurrentInstance']
const getCurrentScope: typeof import('vue')['getCurrentScope']
const getTagColor: typeof import('./utils/functions')['getTagColor']
const getUserRole: typeof import('./utils/functions')['getUserRole']
const h: typeof import('vue')['h']
const http: typeof import('./utils/http')['default']
const ignorableWatch: typeof import('@vueuse/core')['ignorableWatch']
const inject: typeof import('vue')['inject']
const isDefined: typeof import('@vueuse/core')['isDefined']
const isLowVersion: typeof import('./utils/functions')['isLowVersion']
const isProxy: typeof import('vue')['isProxy']
const isReactive: typeof import('vue')['isReactive']
const isReadonly: typeof import('vue')['isReadonly']
@@ -70,7 +99,9 @@ declare global {
const onStartTyping: typeof import('@vueuse/core')['onStartTyping']
const onUnmounted: typeof import('vue')['onUnmounted']
const onUpdated: typeof import('vue')['onUpdated']
const parseTime: typeof import('./utils/functions')['parseTime']
const pausableWatch: typeof import('@vueuse/core')['pausableWatch']
const protocol: typeof import('./utils/functions')['protocol']
const provide: typeof import('vue')['provide']
const reactify: typeof import('@vueuse/core')['reactify']
const reactifyObject: typeof import('@vueuse/core')['reactifyObject']
@@ -88,12 +119,16 @@ declare global {
const resolveComponent: typeof import('vue')['resolveComponent']
const resolveRef: typeof import('@vueuse/core')['resolveRef']
const resolveUnref: typeof import('@vueuse/core')['resolveUnref']
const secondsToDuration: typeof import('./utils/functions')['secondsToDuration']
const setActivePinia: typeof import('pinia')['setActivePinia']
const setMapStoreSuffix: typeof import('pinia')['setMapStoreSuffix']
const shallowReactive: typeof import('vue')['shallowReactive']
const shallowReadonly: typeof import('vue')['shallowReadonly']
const shallowRef: typeof import('vue')['shallowRef']
const storage: typeof import('./utils/storage')['default']
const storeToRefs: typeof import('pinia')['storeToRefs']
const submissionMemoryFormat: typeof import('./utils/functions')['submissionMemoryFormat']
const submissionTimeFormat: typeof import('./utils/functions')['submissionTimeFormat']
const syncRef: typeof import('@vueuse/core')['syncRef']
const syncRefs: typeof import('@vueuse/core')['syncRefs']
const templateRef: typeof import('@vueuse/core')['templateRef']
@@ -109,6 +144,7 @@ declare global {
const tryOnMounted: typeof import('@vueuse/core')['tryOnMounted']
const tryOnScopeDispose: typeof import('@vueuse/core')['tryOnScopeDispose']
const tryOnUnmounted: typeof import('@vueuse/core')['tryOnUnmounted']
const unique: typeof import('./utils/functions')['unique']
const unref: typeof import('vue')['unref']
const unrefElement: typeof import('@vueuse/core')['unrefElement']
const until: typeof import('@vueuse/core')['until']
@@ -290,4 +326,6 @@ declare global {
declare global {
// @ts-ignore
export type { Component, ComponentPublicInstance, ComputedRef, InjectionKey, PropType, Ref, VNode } from 'vue'
// @ts-ignore
export type { RouteLocationRaw } from 'vue-router'
}

View File

@@ -73,7 +73,13 @@ export default defineConfig({
"useLoadingBar",
],
},
{
from: "vue-router",
imports: ["RouteLocationRaw"],
type: true,
},
],
dirs: ["./src/utils"],
dts: "./src/auto-imports.d.ts",
}),
Components({