mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 14:57:16 +08:00
feat: 设置页面初步完善及前端import lint
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { h } from 'vue'
|
||||
import { Icon } from '@iconify/vue'
|
||||
import { NIcon } from 'naive-ui'
|
||||
import { h } from 'vue'
|
||||
|
||||
interface Props {
|
||||
size?: number
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export * from './common'
|
||||
export * from './color'
|
||||
export * from './common'
|
||||
export * from './crypto'
|
||||
export * from './icon'
|
||||
export * from './is'
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import * as NaiveUI from 'naive-ui'
|
||||
|
||||
import { useThemeStore } from '@/store'
|
||||
|
||||
export async function setupNaiveDiscreteApi() {
|
||||
|
||||
@@ -315,15 +315,15 @@ const lastDirectory = (path: string) => {
|
||||
}
|
||||
|
||||
export {
|
||||
getExt,
|
||||
getBase,
|
||||
getIconByExt,
|
||||
languageByPath,
|
||||
checkName,
|
||||
checkPath,
|
||||
getFilename,
|
||||
isArchive,
|
||||
formatPercent,
|
||||
formatBytes,
|
||||
formatPercent,
|
||||
getBase,
|
||||
getExt,
|
||||
getFilename,
|
||||
getIconByExt,
|
||||
isArchive,
|
||||
languageByPath,
|
||||
lastDirectory
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { ErrorResolveResponse } from '~/types/axios'
|
||||
import { useUserStore } from '@/store'
|
||||
import type { ErrorResolveResponse } from '~/types/axios'
|
||||
|
||||
/** 自定义错误 */
|
||||
export class AxiosRejectError extends Error {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import axios from 'axios'
|
||||
|
||||
import { reqReject, reqResolve, resReject, resResolve } from './interceptors'
|
||||
|
||||
export function createAxios(options = {}) {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import type { AxiosError, AxiosResponse } from 'axios'
|
||||
import { AxiosRejectError, resolveResError } from './helpers'
|
||||
|
||||
import type { RequestConfig } from '~/types/axios'
|
||||
import { AxiosRejectError, resolveResError } from './helpers'
|
||||
|
||||
/** 请求拦截 */
|
||||
export function reqResolve(config: RequestConfig) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
export * from './auth'
|
||||
export * from './common'
|
||||
export * from './event'
|
||||
export * from './http'
|
||||
export * from './file'
|
||||
export * from './http'
|
||||
export * from './storage'
|
||||
|
||||
Reference in New Issue
Block a user