update: add zustand store and basic setup

This commit is contained in:
purp1e
2024-09-21 02:25:23 +08:00
parent 6625e0c57d
commit b3973fd101
10 changed files with 202 additions and 1 deletions

21
src/types/cfg.ts Normal file
View File

@@ -0,0 +1,21 @@
import { AdvancedListItem } from "@/types/common"
export interface File {
dir: string
filename: string
format: "cfg" | "vcfg" | "txt" | "zip"
createTime: number
updateTime: number
size: number
}
export interface Owner {
ownerSteamId64: string
ownerSteamName: string
ownerToolboxId: string
ownerToolboxName: string
}
export interface CfgBackup extends File, Owner {}
export interface Cfg extends File, AdvancedListItem {}