Revert "feat(cloud): 115/夸克网盘 providers with cookie + QR login and 302 playback"

This reverts commit c6455103e6.
This commit is contained in:
Shuke
2026-05-30 21:03:25 +08:00
parent c6455103e6
commit 6a9096d3aa
9 changed files with 9 additions and 1281 deletions
+1 -42
View File
@@ -1,26 +1,6 @@
import { api } from './client'
export type StorageType = 'alist' | 's3' | 'webdav' | 'cloud115' | 'quark'
export interface CloudEntry {
id: string
name: string
is_dir: boolean
size: number
pick_code?: string
}
export interface QRSession {
uid: string
time: number
sign: string
qr_image_url: string
}
export interface QRStatus {
state: 'waiting' | 'scanned' | 'confirmed' | 'expired'
cookie?: string
}
export type StorageType = 'alist' | 's3' | 'webdav'
export interface StorageConfig {
id: string
@@ -54,24 +34,3 @@ export const storageAPI = {
})
.then((r) => r.data),
}
// cloudAPI drives 网盘 browsing, QR login and 302 import.
export const cloudAPI = {
list: (type: StorageType, dir = '') =>
api
.get<{ items: CloudEntry[]; error?: string }>(`/admin/cloud/${type}/list`, {
params: { dir },
})
.then((r) => r.data),
import: (type: StorageType, ref: string, name: string, size: number) =>
api
.post(`/admin/cloud/${type}/import`, { ref, name, size })
.then((r) => r.data),
qrStart: (type: StorageType) =>
api.post<QRSession>(`/admin/cloud/${type}/qr/start`).then((r) => r.data),
qrPoll: (type: StorageType, sess: QRSession) =>
api.post<QRStatus>(`/admin/cloud/${type}/qr/poll`, sess).then((r) => r.data),
}