diff --git a/web/app/Filament/Resources/RemoteBackupServerResource.php b/web/app/Filament/Resources/RemoteBackupServerResource.php new file mode 100644 index 0000000..0b2727b --- /dev/null +++ b/web/app/Filament/Resources/RemoteBackupServerResource.php @@ -0,0 +1,69 @@ +schema([ + + ]); + } + + public static function table(Table $table): Table + { + return $table + ->columns([ + Tables\Columns\TextColumn::make('name'), + Tables\Columns\TextColumn::make('type'), + Tables\Columns\TextColumn::make('hostname'), + Tables\Columns\TextColumn::make('status'), + ]) + ->filters([ + // + ]) + ->actions([ + Tables\Actions\EditAction::make(), + ]) + ->bulkActions([ + Tables\Actions\BulkActionGroup::make([ + Tables\Actions\DeleteBulkAction::make(), + ]), + ]); + } + + public static function getRelations(): array + { + return [ + // + ]; + } + + public static function getPages(): array + { + return [ + 'index' => Pages\ListRemoteBackupServers::route('/'), + 'create' => Pages\CreateRemoteBackupServer::route('/create'), + 'edit' => Pages\EditRemoteBackupServer::route('/{record}/edit'), + ]; + } +} diff --git a/web/app/Filament/Resources/RemoteBackupServerResource/Pages/CreateRemoteBackupServer.php b/web/app/Filament/Resources/RemoteBackupServerResource/Pages/CreateRemoteBackupServer.php new file mode 100644 index 0000000..388db5d --- /dev/null +++ b/web/app/Filament/Resources/RemoteBackupServerResource/Pages/CreateRemoteBackupServer.php @@ -0,0 +1,12 @@ +id(); + + $table->string('name')->nullable(); + $table->string('type')->nullable(); + $table->string('hostname')->nullable(); + $table->string('port')->nullable(); + $table->string('username')->nullable(); + $table->string('password')->nullable(); + $table->string('path')->nullable(); + + $table->longText('ssh_private_key')->nullable(); + $table->string('ssh_private_key_password')->nullable(); + + $table->string('status')->nullable(); + + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('remote_backup_servers'); + } +};