This commit is contained in:
Saeed Vaziry
2025-05-21 21:05:13 +02:00
parent fe3317692b
commit a40c2828c2
20 changed files with 568 additions and 14 deletions

13
resources/js/types/backup-file.d.ts vendored Normal file
View 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
View 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;
}

View File

@ -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;
};