chore: sync various improvements and fixes

- Update gitignore and serena config
- Improve connection and voting stores
- Enhance admin routes and socket handling
- Update client-screen views
- Add auth middleware

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
empty
2026-02-03 23:31:38 +08:00
parent 39caecdd95
commit 83bf1d3a43
25 changed files with 284 additions and 122 deletions

View File

@@ -69,7 +69,6 @@ export interface VotingProgram {
export interface VoteStamp {
id: string;
userName: string;
department: string;
ticketType: string;
x: number; // 随机 X 位置 (0-100%)
y: number; // 随机 Y 位置 (0-100%)

View File

@@ -83,7 +83,6 @@ export interface DrawFilters {
export interface JoinPayload {
userId: string;
userName: string;
department?: string;
role: UserRole;
sessionToken?: string;
}
@@ -192,10 +191,11 @@ export interface InterServerEvents {
export interface SocketData {
userId: string;
userName: string;
department: string;
role: UserRole;
connectedAt: Date;
sessionId: string;
sessionToken?: string;
authenticated?: boolean;
}
// ============================================================================