Fix main.rs to run with new Slint UI
This commit is contained in:
@@ -13,86 +13,86 @@ export component AppWindow inherits Window {
|
||||
callback menu_exit();
|
||||
callback menu_add_controller();
|
||||
|
||||
property<bool> connected: false;
|
||||
property<bool> is_loading: false;
|
||||
property<string> status_text: "Disconnected";
|
||||
property<int> current_tab: 0;
|
||||
in-out property<bool> connected: false;
|
||||
in-out property<bool> is_loading: false;
|
||||
in-out property<string> status_text: "Disconnected";
|
||||
in-out property<int> current_tab: 0;
|
||||
|
||||
property<int> controller_count: 0;
|
||||
property<int> raid_count: 0;
|
||||
property<int> disk_count: 0;
|
||||
property<bool> auto_refresh: true;
|
||||
in-out property<int> controller_count: 0;
|
||||
in-out property<int> raid_count: 0;
|
||||
in-out property<int> disk_count: 0;
|
||||
in-out property<bool> auto_refresh: true;
|
||||
|
||||
property<int> selected_controller_index: 0;
|
||||
property<string> ctrl1_name: "RAID Controller";
|
||||
property<string> ctrl1_ip: "192.168.1.100";
|
||||
property<string> ctrl1_status: "Online";
|
||||
property<string> ctrl1_model: "Accusys RAID 9000";
|
||||
property<string> ctrl1_firmware: "v3.8.0";
|
||||
property<string> ctrl1_sn: "ACC123456789";
|
||||
property<string> ctrl1_vendor: "Accusys";
|
||||
property<string> ctrl2_name: "-";
|
||||
property<string> ctrl2_ip: "-";
|
||||
property<string> ctrl2_status: "-";
|
||||
property<string> ctrl2_model: "-";
|
||||
property<string> ctrl2_firmware: "-";
|
||||
property<string> ctrl2_sn: "-";
|
||||
property<string> ctrl2_vendor: "-";
|
||||
in-out property<int> selected_controller_index: 0;
|
||||
in-out property<string> ctrl1_name: "RAID Controller";
|
||||
in-out property<string> ctrl1_ip: "192.168.1.100";
|
||||
in-out property<string> ctrl1_status: "Online";
|
||||
in-out property<string> ctrl1_model: "Accusys RAID 9000";
|
||||
in-out property<string> ctrl1_firmware: "v3.8.0";
|
||||
in-out property<string> ctrl1_sn: "ACC123456789";
|
||||
in-out property<string> ctrl1_vendor: "Accusys";
|
||||
in-out property<string> ctrl2_name: "-";
|
||||
in-out property<string> ctrl2_ip: "-";
|
||||
in-out property<string> ctrl2_status: "-";
|
||||
in-out property<string> ctrl2_model: "-";
|
||||
in-out property<string> ctrl2_firmware: "-";
|
||||
in-out property<string> ctrl2_sn: "-";
|
||||
in-out property<string> ctrl2_vendor: "-";
|
||||
|
||||
property<string> raid1_name: "RAID-01";
|
||||
property<string> raid1_level: "RAID 5";
|
||||
property<string> raid1_status: "Normal";
|
||||
property<string> raid1_capacity: "2.0 TB";
|
||||
property<string> raid1_usage: "45%";
|
||||
property<float> raid1_usage_pct: 45.0;
|
||||
property<string> raid2_name: "RAID-02";
|
||||
property<string> raid2_level: "RAID 6";
|
||||
property<string> raid2_status: "Normal";
|
||||
property<string> raid2_capacity: "4.0 TB";
|
||||
property<string> raid2_usage: "30%";
|
||||
property<float> raid2_usage_pct: 30.0;
|
||||
in-out property<string> raid1_name: "RAID-01";
|
||||
in-out property<string> raid1_level: "RAID 5";
|
||||
in-out property<string> raid1_status: "Normal";
|
||||
in-out property<string> raid1_capacity: "2.0 TB";
|
||||
in-out property<string> raid1_usage: "45%";
|
||||
in-out property<float> raid1_usage_pct: 45.0;
|
||||
in-out property<string> raid2_name: "RAID-02";
|
||||
in-out property<string> raid2_level: "RAID 6";
|
||||
in-out property<string> raid2_status: "Normal";
|
||||
in-out property<string> raid2_capacity: "4.0 TB";
|
||||
in-out property<string> raid2_usage: "30%";
|
||||
in-out property<float> raid2_usage_pct: 30.0;
|
||||
|
||||
property<string> disk1_loc: "Enclosure 0 Slot 0";
|
||||
property<string> disk1_model: "ST3000VX000";
|
||||
property<string> disk1_status: "Online";
|
||||
property<string> disk1_capacity: "3.0 TB";
|
||||
property<string> disk1_vendor: "Seagate";
|
||||
property<string> disk2_loc: "Enclosure 0 Slot 1";
|
||||
property<string> disk2_model: "ST3000VX000";
|
||||
property<string> disk2_status: "Online";
|
||||
property<string> disk2_capacity: "3.0 TB";
|
||||
property<string> disk2_vendor: "Seagate";
|
||||
property<string> disk3_loc: "Enclosure 0 Slot 2";
|
||||
property<string> disk3_model: "ST3000VX000";
|
||||
property<string> disk3_status: "Online";
|
||||
property<string> disk3_capacity: "3.0 TB";
|
||||
property<string> disk3_vendor: "Seagate";
|
||||
property<string> disk4_loc: "Enclosure 0 Slot 3";
|
||||
property<string> disk4_model: "ST3000VX000";
|
||||
property<string> disk4_status: "Online";
|
||||
property<string> disk4_capacity: "3.0 TB";
|
||||
property<string> disk4_vendor: "Seagate";
|
||||
in-out property<string> disk1_loc: "Enclosure 0 Slot 0";
|
||||
in-out property<string> disk1_model: "ST3000VX000";
|
||||
in-out property<string> disk1_status: "Online";
|
||||
in-out property<string> disk1_capacity: "3.0 TB";
|
||||
in-out property<string> disk1_vendor: "Seagate";
|
||||
in-out property<string> disk2_loc: "Enclosure 0 Slot 1";
|
||||
in-out property<string> disk2_model: "ST3000VX000";
|
||||
in-out property<string> disk2_status: "Online";
|
||||
in-out property<string> disk2_capacity: "3.0 TB";
|
||||
in-out property<string> disk2_vendor: "Seagate";
|
||||
in-out property<string> disk3_loc: "Enclosure 0 Slot 2";
|
||||
in-out property<string> disk3_model: "ST3000VX000";
|
||||
in-out property<string> disk3_status: "Online";
|
||||
in-out property<string> disk3_capacity: "3.0 TB";
|
||||
in-out property<string> disk3_vendor: "Seagate";
|
||||
in-out property<string> disk4_loc: "Enclosure 0 Slot 3";
|
||||
in-out property<string> disk4_model: "ST3000VX000";
|
||||
in-out property<string> disk4_status: "Online";
|
||||
in-out property<string> disk4_capacity: "3.0 TB";
|
||||
in-out property<string> disk4_vendor: "Seagate";
|
||||
|
||||
property<string> evtime1: "2026/03/29-10:30:00";
|
||||
property<string> evlevel1: "Info";
|
||||
property<string> evmsg1: "Controller started successfully";
|
||||
property<string> evsource1: "System";
|
||||
property<string> evtime2: "2026/03/29-10:25:00";
|
||||
property<string> evlevel2: "Info";
|
||||
property<string> evmsg2: "Disk online";
|
||||
property<string> evsource2: "Disk";
|
||||
property<string> evtime3: "2026/03/29-10:20:00";
|
||||
property<string> evlevel3: "Warning";
|
||||
property<string> evmsg3: "Temperature warning";
|
||||
property<string> evsource3: "Enclosure";
|
||||
property<string> evtime4: "2026/03/29-10:15:00";
|
||||
property<string> evlevel4: "Info";
|
||||
property<string> evmsg4: "RAID-01 status: Normal";
|
||||
property<string> evsource4: "RAID";
|
||||
property<string> evtime5: "2026/03/29-10:10:00";
|
||||
property<string> evlevel5: "Info";
|
||||
property<string> evmsg5: "Power supply online";
|
||||
property<string> evsource5: "Power";
|
||||
in-out property<string> evtime1: "2026/03/29-10:30:00";
|
||||
in-out property<string> evlevel1: "Info";
|
||||
in-out property<string> evmsg1: "Controller started successfully";
|
||||
in-out property<string> evsource1: "System";
|
||||
in-out property<string> evtime2: "2026/03/29-10:25:00";
|
||||
in-out property<string> evlevel2: "Info";
|
||||
in-out property<string> evmsg2: "Disk online";
|
||||
in-out property<string> evsource2: "Disk";
|
||||
in-out property<string> evtime3: "2026/03/29-10:20:00";
|
||||
in-out property<string> evlevel3: "Warning";
|
||||
in-out property<string> evmsg3: "Temperature warning";
|
||||
in-out property<string> evsource3: "Enclosure";
|
||||
in-out property<string> evtime4: "2026/03/29-10:15:00";
|
||||
in-out property<string> evlevel4: "Info";
|
||||
in-out property<string> evmsg4: "RAID-01 status: Normal";
|
||||
in-out property<string> evsource4: "RAID";
|
||||
in-out property<string> evtime5: "2026/03/29-10:10:00";
|
||||
in-out property<string> evlevel5: "Info";
|
||||
in-out property<string> evmsg5: "Power supply online";
|
||||
in-out property<string> evsource5: "Power";
|
||||
|
||||
VerticalLayout {
|
||||
spacing: 0;
|
||||
|
||||
Reference in New Issue
Block a user