remove wip backup-feature for later releases, see branch backup-feature
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -1,123 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the Froxlor project.
|
||||
* Copyright (c) 2010 the Froxlor Team (see authors).
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, you can also view it online at
|
||||
* https://files.froxlor.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright the authors
|
||||
* @author Froxlor team <team@froxlor.org>
|
||||
* @license https://files.froxlor.org/misc/COPYING.txt GPLv2
|
||||
*/
|
||||
|
||||
use Froxlor\UI\Callbacks\Admin;
|
||||
use Froxlor\UI\Callbacks\Customer;
|
||||
use Froxlor\UI\Callbacks\Impersonate;
|
||||
use Froxlor\UI\Callbacks\PHPConf;
|
||||
use Froxlor\UI\Callbacks\ProgressBar;
|
||||
use Froxlor\UI\Callbacks\Style;
|
||||
use Froxlor\UI\Callbacks\Text;
|
||||
use Froxlor\UI\Listing;
|
||||
|
||||
return [
|
||||
'backup_storages_list' => [
|
||||
'title' => lng('backup.backup_storage.list'),
|
||||
'icon' => 'fa-solid fa-file-archive',
|
||||
'self_overview' => ['section' => 'backups', 'page' => 'storages'],
|
||||
'default_sorting' => ['description' => 'asc'],
|
||||
'columns' => [
|
||||
'id' => [
|
||||
'label' => 'ID',
|
||||
'field' => 'id',
|
||||
'sortable' => true,
|
||||
],
|
||||
'description' => [
|
||||
'label' => lng('backup.backup_storage.description'),
|
||||
'field' => 'description',
|
||||
'sortable' => true,
|
||||
],
|
||||
'type' => [
|
||||
'label' => lng('backup.backup_storage.type'),
|
||||
'field' => 'type',
|
||||
'sortable' => true,
|
||||
],
|
||||
'region' => [
|
||||
'label' => lng('backup.backup_storage.region'),
|
||||
'field' => 'region',
|
||||
'sortable' => true,
|
||||
],
|
||||
'bucket' => [
|
||||
'label' => lng('backup.backup_storage.bucket'),
|
||||
'field' => 'bucket',
|
||||
'sortable' => true,
|
||||
],
|
||||
'destination_path' => [
|
||||
'label' => lng('backup.backup_storage.destination_path.title'),
|
||||
'field' => 'destination_path',
|
||||
'sortable' => true,
|
||||
],
|
||||
'hostname' => [
|
||||
'label' => lng('backup.backup_storage.hostname'),
|
||||
'field' => 'hostname',
|
||||
'sortable' => true,
|
||||
],
|
||||
'username' => [
|
||||
'label' => lng('backup.backup_storage.username'),
|
||||
'field' => 'username',
|
||||
'sortable' => true,
|
||||
],
|
||||
'retention' => [
|
||||
'label' => lng('backup.backup_storage.retention'),
|
||||
'field' => 'retention',
|
||||
'sortable' => true,
|
||||
],
|
||||
],
|
||||
'visible_columns' => Listing::getVisibleColumnsForListing('backup_storages_list', [
|
||||
'id',
|
||||
'description',
|
||||
'type',
|
||||
'retention',
|
||||
]),
|
||||
'actions' => [
|
||||
'show' => [
|
||||
'icon' => 'fa-solid fa-eye',
|
||||
'title' => lng('usersettings.custom_notes.title'),
|
||||
],
|
||||
'edit' => [
|
||||
'icon' => 'fa-solid fa-edit',
|
||||
'title' => lng('panel.edit'),
|
||||
'href' => [
|
||||
'section' => 'backups',
|
||||
'page' => 'storages',
|
||||
'action' => 'edit',
|
||||
'id' => ':id'
|
||||
],
|
||||
],
|
||||
'delete' => [
|
||||
'icon' => 'fa-solid fa-trash',
|
||||
'title' => lng('panel.delete'),
|
||||
'class' => 'btn-danger',
|
||||
'href' => [
|
||||
'section' => 'backups',
|
||||
'page' => 'storages',
|
||||
'action' => 'delete',
|
||||
'id' => ':id'
|
||||
],
|
||||
'visible' => [PHPConf::class, 'isNotDefault']
|
||||
],
|
||||
],
|
||||
]
|
||||
];
|
||||
@@ -1,114 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file is part of the Froxlor project.
|
||||
* Copyright (c) 2010 the Froxlor Team (see authors).
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, you can also view it online at
|
||||
* https://files.froxlor.org/misc/COPYING.txt
|
||||
*
|
||||
* @copyright the authors
|
||||
* @author Froxlor team <team@froxlor.org>
|
||||
* @license https://files.froxlor.org/misc/COPYING.txt GPLv2
|
||||
*/
|
||||
|
||||
use Froxlor\UI\Callbacks\Admin;
|
||||
use Froxlor\UI\Callbacks\Backup;
|
||||
use Froxlor\UI\Callbacks\Customer;
|
||||
use Froxlor\UI\Callbacks\Impersonate;
|
||||
use Froxlor\UI\Callbacks\ProgressBar;
|
||||
use Froxlor\UI\Callbacks\Style;
|
||||
use Froxlor\UI\Callbacks\Text;
|
||||
use Froxlor\UI\Listing;
|
||||
|
||||
return [
|
||||
'backups_list' => [
|
||||
'title' => lng('admin.backups.backups'),
|
||||
'icon' => 'fa-solid fa-file-archive',
|
||||
'self_overview' => ['section' => 'admins', 'page' => 'admins'],
|
||||
'default_sorting' => ['loginname' => 'asc'],
|
||||
'columns' => [
|
||||
'id' => [
|
||||
'label' => 'ID',
|
||||
'field' => 'id',
|
||||
'sortable' => true,
|
||||
],
|
||||
'customerid' => [
|
||||
'label' => lng('customerid'),
|
||||
'field' => 'customerid',
|
||||
'sortable' => true,
|
||||
],
|
||||
'loginname' => [
|
||||
'label' => lng('login.username'),
|
||||
'field' => 'loginname',
|
||||
'callback' => [Impersonate::class, 'customer'],
|
||||
'sortable' => true,
|
||||
],
|
||||
'adminid' => [
|
||||
'label' => lng('adminid'),
|
||||
'field' => 'adminid',
|
||||
'sortable' => true,
|
||||
],
|
||||
'adminname' => [
|
||||
'label' => lng('admin.admin'),
|
||||
'field' => 'adminname',
|
||||
'callback' => [Impersonate::class, 'admin'],
|
||||
],
|
||||
'size' => [
|
||||
'label' => lng('backup.size'),
|
||||
'field' => 'size',
|
||||
'sortable' => true,
|
||||
'callback' => [Text::class, 'size'],
|
||||
],
|
||||
'storage_id' => [
|
||||
'label' => lng('backup.backup_storage.title'),
|
||||
'field' => 'storage_id',
|
||||
'class' => 'text-center',
|
||||
'callback' => [Backup::class, 'backupStorageLink'],
|
||||
],
|
||||
'filename' => [
|
||||
'label' => lng('backup.size'),
|
||||
'field' => 'filename',
|
||||
'sortable' => true,
|
||||
],
|
||||
'created_at' => [
|
||||
'label' => lng('backup.created_at'),
|
||||
'field' => 'created_at',
|
||||
'sortable' => true,
|
||||
'callback' => [Text::class, 'timestamp'],
|
||||
],
|
||||
],
|
||||
'visible_columns' => Listing::getVisibleColumnsForListing('backups_list', [
|
||||
'id',
|
||||
'adminname',
|
||||
'loginname',
|
||||
'size',
|
||||
'created_at',
|
||||
]),
|
||||
'actions' => [
|
||||
'delete' => [
|
||||
'icon' => 'fa-solid fa-trash',
|
||||
'title' => lng('panel.delete'),
|
||||
'class' => 'btn-danger',
|
||||
'href' => [
|
||||
'section' => 'backups',
|
||||
'page' => 'storages',
|
||||
'action' => 'delete',
|
||||
'id' => ':id'
|
||||
],
|
||||
'visible' => [Admin::class, 'canChangeServerSettings'],
|
||||
],
|
||||
]
|
||||
]
|
||||
];
|
||||
@@ -23,13 +23,11 @@
|
||||
* @license https://files.froxlor.org/misc/COPYING.txt GPLv2
|
||||
*/
|
||||
|
||||
use Froxlor\Settings;
|
||||
use Froxlor\UI\Callbacks\Backup;
|
||||
use Froxlor\UI\Callbacks\Customer;
|
||||
use Froxlor\UI\Callbacks\Impersonate;
|
||||
use Froxlor\UI\Callbacks\ProgressBar;
|
||||
use Froxlor\UI\Callbacks\Text;
|
||||
use Froxlor\UI\Callbacks\Style;
|
||||
use Froxlor\UI\Callbacks\Text;
|
||||
use Froxlor\UI\Listing;
|
||||
|
||||
return [
|
||||
@@ -151,20 +149,6 @@ return [
|
||||
'class' => 'text-center',
|
||||
'callback' => [Text::class, 'boolean'],
|
||||
],
|
||||
'c.backup' => [
|
||||
'label' => lng('backup.backup_storage.title'),
|
||||
'field' => 'backup',
|
||||
'class' => 'text-center',
|
||||
'callback' => [Backup::class, 'backupStorageLink'],
|
||||
'visible' => (bool)Settings::Get('backup.enabled'),
|
||||
],
|
||||
'c.access_backups' => [
|
||||
'label' => lng('backup.access_backups'),
|
||||
'field' => 'access_backups',
|
||||
'class' => 'text-center',
|
||||
'callback' => [Text::class, 'boolean'],
|
||||
'visible' => (bool)Settings::Get('backup.enabled'),
|
||||
],
|
||||
],
|
||||
'visible_columns' => Listing::getVisibleColumnsForListing('customer_list', [
|
||||
'c.name',
|
||||
|
||||
Reference in New Issue
Block a user