mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
#591 - sites
This commit is contained in:
16
resources/js/types/command-execution.d.ts
vendored
Normal file
16
resources/js/types/command-execution.d.ts
vendored
Normal 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
12
resources/js/types/command.d.ts
vendored
Normal 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
23
resources/js/types/deployment.d.ts
vendored
Normal 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;
|
||||
}
|
3
resources/js/types/index.d.ts
vendored
3
resources/js/types/index.d.ts
vendored
@ -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 {
|
||||
|
11
resources/js/types/load-balancer-server.d.ts
vendored
Normal file
11
resources/js/types/load-balancer-server.d.ts
vendored
Normal 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
14
resources/js/types/redirect.d.ts
vendored
Normal 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;
|
||||
}
|
3
resources/js/types/server.d.ts
vendored
3
resources/js/types/server.d.ts
vendored
@ -1,6 +1,9 @@
|
||||
export interface Server {
|
||||
id: number;
|
||||
project_id: number;
|
||||
services: {
|
||||
[key: string]: string;
|
||||
};
|
||||
user_id: number;
|
||||
name: string;
|
||||
ssh_user: string;
|
||||
|
14
resources/js/types/site.d.ts
vendored
14
resources/js/types/site.d.ts
vendored
@ -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
17
resources/js/types/ssl.d.ts
vendored
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user