mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-02 22:46:16 +00:00
#591 - backups
This commit is contained in:
13
resources/js/types/backup-file.d.ts
vendored
Normal file
13
resources/js/types/backup-file.d.ts
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
export interface BackupFile {
|
||||
id: number;
|
||||
backup_id: number;
|
||||
name: string;
|
||||
size: number;
|
||||
restored_to: string;
|
||||
restored_at: string;
|
||||
status: string;
|
||||
status_color: 'gray' | 'success' | 'info' | 'warning' | 'danger';
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
[key: string]: unknown;
|
||||
}
|
22
resources/js/types/backup.d.ts
vendored
Normal file
22
resources/js/types/backup.d.ts
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
import { BackupFile } from '@/types/backup-file';
|
||||
import { StorageProvider } from '@/types/storage-provider';
|
||||
import { Database } from '@/types/database';
|
||||
|
||||
export interface Backup {
|
||||
id: number;
|
||||
server_id: number;
|
||||
storage_id: number;
|
||||
storage: StorageProvider;
|
||||
database_id: number;
|
||||
database: Database;
|
||||
type: string;
|
||||
keep_backups: number;
|
||||
interval: string;
|
||||
files_count: number;
|
||||
status: string;
|
||||
status_color: 'gray' | 'success' | 'info' | 'warning' | 'danger';
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
last_file?: BackupFile;
|
||||
[key: string]: unknown;
|
||||
}
|
5
resources/js/types/index.d.ts
vendored
5
resources/js/types/index.d.ts
vendored
@ -54,6 +54,9 @@ export interface Configs {
|
||||
webservers: string[];
|
||||
databases: string[];
|
||||
php_versions: string[];
|
||||
cronjob_intervals: {
|
||||
[key: string]: string;
|
||||
};
|
||||
|
||||
[key: string]: unknown;
|
||||
}
|
||||
@ -71,6 +74,8 @@ export interface SharedData {
|
||||
flash?: {
|
||||
success: string;
|
||||
error: string;
|
||||
info: string;
|
||||
warning: string;
|
||||
data: unknown;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user