chore: initial commit - maqt-desktop v0.2

- Phase 1-5: UI framework, auth, weapon schemes, color filters, system optimization
- Industrial/tech design style with Chinese localization
- Points to gch3n.online/delta backend API
- Hardware monitor, filter editor, and all module pages
This commit is contained in:
Chen Gu
2026-05-09 00:31:09 +08:00
commit 5bd314deb2
80 changed files with 12217 additions and 0 deletions

56
src/types/index.ts Normal file
View File

@@ -0,0 +1,56 @@
export interface User {
id: string;
username: string;
email: string;
avatar: string | null;
isVip: boolean;
vipExpireAt: string | null;
vipLevel: number;
}
export interface Scheme {
id: string;
title: string | null;
weaponName: string | null;
category: string | null;
userId: string;
description: string | null;
viewsCount: number;
downloadsCount: number;
likesCount: number;
favoritesCount: number;
price: number;
status: string;
isOfficial: boolean;
createdAt: string;
user?: { username: string; avatar: string | null };
}
export interface Category {
code: string;
name: string;
icon: string;
}
export interface LoginRequest {
username: string;
password: string;
installId?: string;
deviceHash?: string;
platform?: string;
osVersion?: string;
appVersion?: string;
}
export interface LoginResponse {
success: boolean;
token?: string;
user?: User;
message?: string;
}
export interface ApiResponse<T = any> {
success: boolean;
data?: T;
message?: string;
}