implement cron page (#7)

This commit is contained in:
UUBulb
2024-11-20 00:19:40 +08:00
committed by GitHub
parent 2bf2639080
commit e37f30d335
20 changed files with 555 additions and 28 deletions

View File

@@ -216,7 +216,6 @@ export interface ModelCronForm {
command?: string;
/** @default 0 */
cover: number;
id: number;
/** @minLength 1 */
name: string;
notification_group_id: number;

10
src/types/cron.ts Normal file
View File

@@ -0,0 +1,10 @@
export const cronTypes: Record<number, string> = {
0: "Scheduled",
1: "Trigger",
}
export const cronCoverageTypes: Record<number, string> = {
0: "Only specific servers",
1: "All excludes specific servers",
2: "The alarmed servers"
}

View File

@@ -5,3 +5,4 @@ export * from './service';
export * from './ddns';
export * from './serverStore';
export * from './serverContext';
export * from './cron';