feat: start work on edit/create page

This commit is contained in:
Calum H. committed 2025-06-14 19:33:04 +01:00
1 parent 6482d5b465
commit 7eee57eca3
6 files changed
+622 -201

No files matched your search

+16 -7
View File
@@ -1,10 +1,19 @@
export interface ScheduledTask {
id?: number
export type ActionKind = 'game-command' | 'restart'
export type ScheduleOptions = { command: string } | Record<string, never>
export interface Schedule {
title: string
action_kind: 'game-command' | 'restart'
options: { command?: string }
enabled: boolean
warn_msg?: string
warn_intervals: number[]
every: string
action_kind: ActionKind
options: ScheduleOptions
enabled: boolean
warn_msg: string
warn_intervals: number[]
}
export interface ServerSchedule extends Schedule {
id: number
server_id: string
added_on: string
}