This commit is contained in:
Saeed Vaziry
2025-06-04 15:38:07 +02:00
parent c3f69f3247
commit 35894003f5
19 changed files with 738 additions and 93 deletions

View File

@ -0,0 +1,20 @@
import { ServerLog } from '@/types/server-log';
import { Server } from './server';
export interface ScriptExecution {
id: number;
script_id: number;
server_id: number;
server?: Server;
user_id: number;
server_log_id: number;
log: ServerLog;
user: string;
variables: string[];
status: string;
status_color: 'gray' | 'success' | 'info' | 'warning' | 'danger';
created_at: string;
updated_at: string;
[key: string]: unknown;
}

16
resources/js/types/script.d.ts vendored Normal file
View File

@ -0,0 +1,16 @@
import { ScriptExecution } from './script-execution';
import { User } from './user';
export interface Script {
id: number;
user_id: number;
user?: User;
name: string;
content: string;
variables: string[];
last_execution?: ScriptExecution;
created_at: string;
updated_at: string;
[key: string]: unknown;
}