mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
#591 - scripts
This commit is contained in:
20
resources/js/types/script-execution.d.ts
vendored
Normal file
20
resources/js/types/script-execution.d.ts
vendored
Normal 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
16
resources/js/types/script.d.ts
vendored
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user