2
0
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:
耗子
2024-09-30 19:00:26 +08:00
parent 67055a5aac
commit dc0174c64e
116 changed files with 1380 additions and 237 deletions

View File

@@ -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

View File

@@ -1,5 +1,5 @@
export * from './common'
export * from './color'
export * from './common'
export * from './crypto'
export * from './icon'
export * from './is'

View File

@@ -1,4 +1,5 @@
import * as NaiveUI from 'naive-ui'
import { useThemeStore } from '@/store'
export async function setupNaiveDiscreteApi() {

View File

@@ -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
}

View File

@@ -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 {

View File

@@ -1,4 +1,5 @@
import axios from 'axios'
import { reqReject, reqResolve, resReject, resResolve } from './interceptors'
export function createAxios(options = {}) {

View File

@@ -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) {

View File

@@ -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'