From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id E9EEA6B2D0 for ; Fri, 18 Mar 2022 14:52:37 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id E08C51E22D for ; Fri, 18 Mar 2022 14:52:37 +0100 (CET) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id 479D61E21B for ; Fri, 18 Mar 2022 14:52:37 +0100 (CET) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id 1FA1246F07 for ; Fri, 18 Mar 2022 14:52:37 +0100 (CET) From: Matthias Heiserer To: pve-devel@lists.proxmox.com Date: Fri, 18 Mar 2022 14:52:21 +0100 Message-Id: <20220318135226.2360890-1-m.heiserer@proxmox.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.009 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record T_SCC_BODY_TEXT_LINE -0.01 - Subject: [pve-devel] [PATCH manager 0/5 v2] BackupView as TreePanel X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Mar 2022 13:52:38 -0000 This replaces the backupview for storages and the BackupView for qemu and lxc with a single TreeView. Less code, no need to maintain two different BackupView files, and reduces complexity of ContentView. Changes from v1: - replace grid/BackupView with storage/BackupView - some bug fixes and code cleanup - group unknown/renamed backups in the folder "Other" - remember expanded nodes and selection Matthias Heiserer (5): Storage GUI: Rewrite backup content view as TreePanel. GUI: Utils: Helpers for backup type and icon Backup GUI: Use the new storage/BackupView instead of grid/BackupView. Remove grid/backupview as it got replaced by storage/backupview Storage ContentView: remove code that was required only for backupview www/manager6/Utils.js | 20 + www/manager6/grid/BackupView.js | 388 --------------- www/manager6/lxc/Config.js | 2 +- www/manager6/qemu/Config.js | 2 +- www/manager6/storage/BackupView.js | 702 ++++++++++++++++++++-------- www/manager6/storage/ContentView.js | 22 +- 6 files changed, 535 insertions(+), 601 deletions(-) delete mode 100644 www/manager6/grid/BackupView.js -- 2.30.2