feat:移除了弹窗,服务器添加sls

This commit is contained in:
2026-09-08 22:39:45 +08:00
commit 6a295f9a7a
4082 changed files with 1322534 additions and 0 deletions

View File

@ -0,0 +1,67 @@
import type { ClassificationChoice, ClassificationResult } from './use-global-drop'
export type BatchDropPhase =
| 'idle'
| 'scanning'
| 'picking-instance'
| 'picking-world'
| 'confirming'
| 'installing'
| 'done'
| 'cancelled'
export type BatchDropScanState = 'pending' | 'scanning' | 'done' | 'skipped' | 'error'
export type BatchDropInstallState =
| 'queued'
| 'processing'
| 'success'
| 'failed'
| 'cancelled'
| 'skipped'
export type BatchDropResultStatus = 'success' | 'failed' | 'skipped' | 'cancelled'
export interface BatchDropItem {
id: string
sourcePath: string
name: string
/** Optional source qualifier used to disambiguate identical names (e.g. launcher folder). */
sourceLabel?: string
scanState: BatchDropScanState
classification?: ClassificationResult
/** Resolved type after confirmation: mod, resource_pack, shader_pack, world_save, litematic, schematic, datapack, modpack, instance. */
itemType?: string
innerBase?: string
launcherType?: string
basePath?: string
instanceFolder?: string
instancePath?: string
fromZip?: boolean
tempDir?: string
reason?: string
candidates?: string[]
choices?: ClassificationChoice[]
confirmedType?: string
selected?: boolean
importName?: string
installState?: BatchDropInstallState
installError?: string
symlink?: boolean
gameVersion?: string | null
loader?: string | null
loaderVersion?: string | null
gameDirOverride?: string | null
}
export interface BatchDropGroup {
id: string
/** Stable type key used by the UI to choose labels/options. */
type: string
items: BatchDropItem[]
}
export interface BatchDropResult {
id: string
name: string
status: BatchDropResultStatus
message?: string
}