mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-24 01:30:16 +08:00
🔨 Refactor(custom): change type defination in universal to global
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { IRPCActionType } from '@/utils/enum'
|
||||
import type { IGalleryDB } from '#/types/extra-vue'
|
||||
|
||||
interface IFilter {
|
||||
orderBy?: 'asc' | 'desc'
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user