This commit is contained in:
Saeed Vaziry
2025-06-04 08:08:20 +02:00
parent efacadba10
commit c3f69f3247
114 changed files with 4032 additions and 765 deletions

View File

@ -0,0 +1,16 @@
import { ServerLog } from '@/types/server-log';
export interface CommandExecution {
id: number;
command_id: number;
server_id: number;
user_id: number;
server_log_id: number;
log: ServerLog;
status: string;
status_color: 'gray' | 'success' | 'info' | 'warning' | 'danger';
created_at: string;
updated_at: string;
[key: string]: unknown;
}

12
resources/js/types/command.d.ts vendored Normal file
View File

@ -0,0 +1,12 @@
export interface Command {
id: number;
server_id: number;
site_id: number;
name: string;
command: string;
variables: string[];
created_at: string;
updated_at: string;
[key: string]: unknown;
}

23
resources/js/types/deployment.d.ts vendored Normal file
View File

@ -0,0 +1,23 @@
import { ServerLog } from '@/types/server-log';
export interface Deployment {
id: number;
site_id: number;
deployment_script_id: number;
log_id: number;
log: ServerLog;
commit_id: string;
commit_id_short: string;
commit_data: {
name?: string;
email?: string;
message?: string;
url?: string;
};
status: string;
status_color: 'gray' | 'success' | 'info' | 'warning' | 'danger';
created_at: string;
updated_at: string;
[key: string]: unknown;
}

View File

@ -26,10 +26,11 @@ export interface NavItem {
title: string;
href: string;
onlyActivePath?: string;
icon?: LucideIcon | string | null;
icon?: LucideIcon | null;
isActive?: boolean;
isDisabled?: boolean;
children?: NavItem[];
hidden?: boolean;
}
export interface Configs {

View File

@ -0,0 +1,11 @@
export interface LoadBalancerServer {
load_balancer_id: number;
ip: number;
port: number;
weight: boolean;
backup: string;
created_at: string;
updated_at: string;
[key: string]: unknown;
}

14
resources/js/types/redirect.d.ts vendored Normal file
View File

@ -0,0 +1,14 @@
export interface Redirect {
id: number;
server_id: number;
site_id: number;
from: string;
to: string;
mode: string;
status: string;
status_color: 'gray' | 'success' | 'info' | 'warning' | 'danger';
created_at: string;
updated_at: string;
[key: string]: unknown;
}

View File

@ -1,6 +1,9 @@
export interface Server {
id: number;
project_id: number;
services: {
[key: string]: string;
};
user_id: number;
name: string;
ssh_user: string;

View File

@ -4,23 +4,31 @@ export interface Site {
id: number;
server_id: number;
server?: Server;
source_control_id: string;
source_control_id: number;
type: string;
type_data: unknown;
type_data: {
method?: 'round-robin' | 'least-connections' | 'ip-hash';
[key: string]: unknown;
};
features: string[];
domain: string;
aliases?: string[];
web_directory: string;
webserver: string;
path: string;
php_version: string;
repository: string;
branch: string;
branch?: string;
status: string;
status_color: 'gray' | 'success' | 'info' | 'warning' | 'danger';
auto_deploy: boolean;
port: number;
user: string;
url: string;
force_ssl: boolean;
progress: number;
created_at: string;
updated_at: string;
[key: string]: unknown;
}

17
resources/js/types/ssl.d.ts vendored Normal file
View File

@ -0,0 +1,17 @@
import { ServerLog } from '@/types/server-log';
export interface SSL {
id: number;
server_id: number;
site_id: number;
is_active: boolean;
type: string;
log?: ServerLog;
status: string;
status_color: 'gray' | 'success' | 'info' | 'warning' | 'danger';
expires_at: string;
created_at: string;
updated_at: string;
[key: string]: unknown;
}