mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-31 12:39:48 +08:00
🔨 Refactor(custom): change type defination in universal to global
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import OSS from 'ali-oss'
|
||||
|
||||
import type { IAliYunConfig, PartialKeys } from '#/types/types'
|
||||
import { deleteFailedLog, deleteLog } from '~/utils/deleteLog'
|
||||
|
||||
interface IConfigMap {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import type { IStringKeyMap } from '#/types/types'
|
||||
import AlistApi from '~/apis/delete/alist'
|
||||
import AlistplistApi from '~/apis/delete/alistplist'
|
||||
import AliyunApi from '~/apis/delete/aliyun'
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import type { IStringKeyMap } from '#/types/types'
|
||||
import { getRawData } from '~/utils/common'
|
||||
import { removeFileFromS3InMain } from '~/utils/deleteFunc'
|
||||
import { deleteFailedLog } from '~/utils/deleteLog'
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import type { IStringKeyMap } from '#/types/types'
|
||||
import { getRawData } from '~/utils/common'
|
||||
import { removeFileFromDogeInMain } from '~/utils/deleteFunc'
|
||||
import { deleteFailedLog } from '~/utils/deleteLog'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { Octokit } from '@octokit/rest'
|
||||
|
||||
import type { IGitHubConfig, PartialKeys } from '#/types/types'
|
||||
import { deleteFailedLog, deleteLog } from '~/utils/deleteLog'
|
||||
|
||||
interface IConfigMap {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import type { IStringKeyMap } from '#/types/types'
|
||||
import { getRawData } from '~/utils/common'
|
||||
import { removeFileFromHuaweiInMain } from '~/utils/deleteFunc'
|
||||
import { deleteFailedLog } from '~/utils/deleteLog'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import axios, { AxiosResponse } from 'axios'
|
||||
|
||||
import type { IImgurConfig } from '#/types/types'
|
||||
import { deleteFailedLog, deleteLog } from '~/utils/deleteLog'
|
||||
|
||||
interface IConfigMap {
|
||||
|
||||
@@ -2,7 +2,6 @@ import https from 'node:https'
|
||||
|
||||
import axios, { AxiosResponse } from 'axios'
|
||||
|
||||
import type { IStringKeyMap } from '#/types/types'
|
||||
import { deleteFailedLog, deleteLog } from '~/utils/deleteLog'
|
||||
|
||||
export default class LskyplistApi {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import axios, { AxiosResponse } from 'axios'
|
||||
|
||||
import type { IStringKeyMap } from '#/types/types'
|
||||
import { deleteFailedLog, deleteLog } from '~/utils/deleteLog'
|
||||
|
||||
export default class PiclistApi {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import qiniu from 'qiniu'
|
||||
|
||||
import type { IQiniuConfig, PartialKeys } from '#/types/types'
|
||||
import { deleteFailedLog, deleteLog } from '~/utils/deleteLog'
|
||||
interface IConfigMap {
|
||||
fileName: string
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import type { IStringKeyMap } from '#/types/types'
|
||||
import { getRawData } from '~/utils/common'
|
||||
import { removeFileFromSFTPInMain } from '~/utils/deleteFunc'
|
||||
import { deleteFailedLog } from '~/utils/deleteLog'
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import axios, { AxiosResponse } from 'axios'
|
||||
|
||||
import type { ISMMSConfig } from '#/types/types'
|
||||
import { deleteFailedLog, deleteLog } from '~/utils/deleteLog'
|
||||
|
||||
interface IConfigMap {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import COS from 'cos-nodejs-sdk-v5'
|
||||
|
||||
import type { ITcYunConfig, PartialKeys } from '#/types/types'
|
||||
import { deleteFailedLog, deleteLog } from '~/utils/deleteLog'
|
||||
interface IConfigMap {
|
||||
fileName: string
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import Upyun from 'upyun'
|
||||
|
||||
import type { IUpYunConfig, PartialKeys } from '#/types/types'
|
||||
import { deleteFailedLog, deleteLog } from '~/utils/deleteLog'
|
||||
|
||||
interface IConfigMap {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { AuthType, createClient, WebDAVClientOptions } from 'webdav'
|
||||
|
||||
import type { IWebdavPlistConfig, PartialKeys } from '#/types/types'
|
||||
import { formatEndpoint } from '~/utils/common'
|
||||
import { deleteFailedLog, deleteLog } from '~/utils/deleteLog'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user