cargo fmt

This commit is contained in:
Hakan committed 2026-05-12 10:36:15 +03:00
1 parent 468cbde5e1
commit ca07268c7c
204 files changed
+13997 -5525

No files matched your search

+6 -1
View File
@@ -1,5 +1,10 @@
use crate::modules::{IconKind, ModuleEvent, ToolDef};
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/audit.svg"));
pub fn tool() -> ToolDef {
ToolDef { id: "AUDIT", label: "Audit", icon: ICON, event: ModuleEvent::Command("AUDIT".to_string()) }
ToolDef {
id: "AUDIT",
label: "Audit",
icon: ICON,
event: ModuleEvent::Command("AUDIT".to_string()),
}
}
+6 -1
View File
@@ -1,5 +1,10 @@
use crate::modules::{IconKind, ModuleEvent, ToolDef};
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/cui_export.svg"));
pub fn tool() -> ToolDef {
ToolDef { id: "CUIEXPORT", label: "Export", icon: ICON, event: ModuleEvent::Command("CUIEXPORT".to_string()) }
ToolDef {
id: "CUIEXPORT",
label: "Export",
icon: ICON,
event: ModuleEvent::Command("CUIEXPORT".to_string()),
}
}
+6 -1
View File
@@ -1,5 +1,10 @@
use crate::modules::{IconKind, ModuleEvent, ToolDef};
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/cui_import.svg"));
pub fn tool() -> ToolDef {
ToolDef { id: "CUIIMPORT", label: "Import", icon: ICON, event: ModuleEvent::Command("CUIIMPORT".to_string()) }
ToolDef {
id: "CUIIMPORT",
label: "Import",
icon: ICON,
event: ModuleEvent::Command("CUIIMPORT".to_string()),
}
}
+6 -1
View File
@@ -3,5 +3,10 @@ use crate::modules::{IconKind, ModuleEvent, ToolDef};
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/edit_aliases.svg"));
#[allow(dead_code)]
pub fn tool() -> ToolDef {
ToolDef { id: "ALIASEDIT", label: "Edit Aliases", icon: ICON, event: ModuleEvent::Command("ALIASEDIT".to_string()) }
ToolDef {
id: "ALIASEDIT",
label: "Edit Aliases",
icon: ICON,
event: ModuleEvent::Command("ALIASEDIT".to_string()),
}
}
+9 -2
View File
@@ -1,5 +1,12 @@
use crate::modules::{IconKind, ModuleEvent, ToolDef};
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/find_nonpurgeable.svg"));
pub const ICON: IconKind = IconKind::Svg(include_bytes!(
"../../../assets/icons/find_nonpurgeable.svg"
));
pub fn tool() -> ToolDef {
ToolDef { id: "FINDNONPURGEABLE", label: "Find Non-\nPurgeable Items", icon: ICON, event: ModuleEvent::Command("FINDNONPURGEABLE".to_string()) }
ToolDef {
id: "FINDNONPURGEABLE",
label: "Find Non-\nPurgeable Items",
icon: ICON,
event: ModuleEvent::Command("FINDNONPURGEABLE".to_string()),
}
}
+20 -4
View File
@@ -32,17 +32,33 @@ impl CadModule for ManageModule {
RibbonItem::LargeTool(crate::modules::ToolDef {
id: "TOOLPALETTES",
label: "Tool\nPalettes",
icon: IconKind::Svg(include_bytes!("../../../assets/icons/tool_palettes.svg")),
icon: IconKind::Svg(include_bytes!(
"../../../assets/icons/tool_palettes.svg"
)),
event: crate::modules::ModuleEvent::Command("TOOLPALETTES".to_string()),
}),
RibbonItem::Tool(cui_import::tool()),
RibbonItem::Tool(cui_export::tool()),
RibbonItem::Dropdown {
id: "ALIASEDIT_DROPDOWN",
icon: IconKind::Svg(include_bytes!("../../../assets/icons/edit_aliases.svg")),
icon: IconKind::Svg(include_bytes!(
"../../../assets/icons/edit_aliases.svg"
)),
items: vec![
("ALIASEDIT", "Edit Aliases", IconKind::Svg(include_bytes!("../../../assets/icons/edit_aliases.svg"))),
("CUILOAD", "Load Partial CUI", IconKind::Svg(include_bytes!("../../../assets/icons/cui_import.svg"))),
(
"ALIASEDIT",
"Edit Aliases",
IconKind::Svg(include_bytes!(
"../../../assets/icons/edit_aliases.svg"
)),
),
(
"CUILOAD",
"Load Partial CUI",
IconKind::Svg(include_bytes!(
"../../../assets/icons/cui_import.svg"
)),
),
],
default: "ALIASEDIT",
},
+6 -1
View File
@@ -1,5 +1,10 @@
use crate::modules::{IconKind, ModuleEvent, ToolDef};
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/overkill.svg"));
pub fn tool() -> ToolDef {
ToolDef { id: "OVERKILL", label: "Overkill", icon: ICON, event: ModuleEvent::Command("OVERKILL".to_string()) }
ToolDef {
id: "OVERKILL",
label: "Overkill",
icon: ICON,
event: ModuleEvent::Command("OVERKILL".to_string()),
}
}
+6 -1
View File
@@ -1,5 +1,10 @@
use crate::modules::{IconKind, ModuleEvent, ToolDef};
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/purge.svg"));
pub fn tool() -> ToolDef {
ToolDef { id: "PURGE", label: "Purge", icon: ICON, event: ModuleEvent::Command("PURGE".to_string()) }
ToolDef {
id: "PURGE",
label: "Purge",
icon: ICON,
event: ModuleEvent::Command("PURGE".to_string()),
}
}
+8 -2
View File
@@ -1,5 +1,11 @@
use crate::modules::{IconKind, ModuleEvent, ToolDef};
pub const ICON: IconKind = IconKind::Svg(include_bytes!("../../../assets/icons/user_interface.svg"));
pub const ICON: IconKind =
IconKind::Svg(include_bytes!("../../../assets/icons/user_interface.svg"));
pub fn tool() -> ToolDef {
ToolDef { id: "CUI", label: "User\nInterface", icon: ICON, event: ModuleEvent::Command("CUI".to_string()) }
ToolDef {
id: "CUI",
label: "User\nInterface",
icon: ICON,
event: ModuleEvent::Command("CUI".to_string()),
}
}