🔨 Refactor(custom): change type defination in universal to global

This commit is contained in:
Kuingsmile
2026-01-01 09:10:43 +08:00
parent 8a4e4d02eb
commit 5ea2517460
125 changed files with 200 additions and 440 deletions

View File

@@ -1,25 +1,5 @@
import type { IBuildInCompressOptions, IBuildInWaterMarkOptions } from 'piclist'
import type {
IAliYunConfig,
IAwsS3PListUserConfig,
IGitHubConfig,
IImgurConfig,
ILocalConfig,
ILskyConfig,
IPicBedType,
IQiniuConfig,
IServerConfig,
ISftpPlistConfig,
IShortKeyConfig,
ISMMSConfig,
ISyncConfig,
ITcYunConfig,
IUploaderConfig,
IUpYunConfig,
IWebdavPlistConfig,
} from '#/types/types'
export type manualPageOpenType = 'window' | 'browser'
type IPicGoPlugins = Record<`picgo-plugin-${string}`, boolean>

View File

@@ -1,6 +1,5 @@
import { getRawData } from '@/utils/common'
import { IRPCActionType } from '@/utils/enum'
import type { IObj } from '#/types/types'
export function saveConfig(config: IObj | string, value?: any) {
const configObject = typeof config === 'string' ? { [config]: value } : config

View File

@@ -1,5 +1,4 @@
import { IRPCActionType } from '@/utils/enum'
import type { IGalleryDB } from '#/types/extra-vue'
interface IFilter {
orderBy?: 'asc' | 'desc'

View File

@@ -1,5 +1,4 @@
import { RELEASE_URL, RELEASE_URL_BACKUP } from '@/utils/static'
import type { IStringKeyMap } from '#/types/types'
export const getLatestVersion = async (): Promise<string> => {
try {

View File

@@ -1,7 +1,6 @@
import { ref } from 'vue'
import { IRPCActionType } from '@/utils/enum'
import type { IPicBedType } from '#/types/types'
const osGlobal = ref<string>(window.electron.platform)

View File

@@ -1,5 +1,3 @@
import type { IStringKeyMap } from '#/types/types'
export const RELEASE_URL = 'https://api.github.com/repos/Kuingsmile/PicList/releases'
export const RELEASE_URL_BACKUP = 'https://release.piclist.cn'