diff --git a/Client/Modules/FileHub/Category.razor b/Client/Modules/FileHub/Category.razor index d6a8c53..969c1f2 100644 --- a/Client/Modules/FileHub/Category.razor +++ b/Client/Modules/FileHub/Category.razor @@ -1,11 +1,10 @@ @namespace ICTAce.FileHub @inherits ModuleBase -

Categories

- - +

Categories

+ @if (IsLoading) {

Loading...

diff --git a/Client/Modules/FileHub/RadzenThemeChanger.razor b/Client/Modules/FileHub/RadzenThemeChanger.razor new file mode 100644 index 0000000..94b8275 --- /dev/null +++ b/Client/Modules/FileHub/RadzenThemeChanger.razor @@ -0,0 +1,510 @@ +@namespace ICTAce.FileHub +@inherits ModuleBase + + + +

Theme Settings

+
+ @foreach (var theme in AvailableThemes) + { +
+
@theme.Name
+ + + + + + + + + + + A + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ } +
+ + +
+
Theme Preview
+ + + +
+ Buttons + + + + + + + + + + +
+ + +
+ Form Elements + + + + + + + + + + + + + + +
+ + +
+ Controls + + + + + + + + + + + + + + + + + +
+ + +
+ Progress & Badges + + + + + + + + + +
+ + +
+ Alerts + + + Success alert message + + + Info alert message + + + Warning alert message + + +
+ + +
+ DataGrid + + + + + + + + + + + + +
+ + +
+ Tabs + + + + Content of Tab 1. This demonstrates the tab styling. + + + Content of Tab 2. Switch tabs to see the active state. + + + Content of Tab 3. Tabs are commonly used for navigation. + + + +
+ + +
+ Panel & Fieldset + + + + Collapsible Panel + + + This is panel content that can be collapsed. + + + + This is fieldset content with a border and legend. + + +
+ + +
+ Menu + + + + + + + + + +
+ + +
+ Timeline + + + + + Jan 2024 + + + + Project Started + Initial setup complete + + + + + + Mar 2024 + + + + Beta Release + Testing phase + + + + + + Jun 2024 + + + + Production + Live deployment + + + + + +
+ + +
+ Steps + + + + Review your shopping cart items. + + + Enter your shipping address. + + + Complete your payment. + + + Order confirmation. + + + +
+ + +
+ Accordion + + + + This is the content of section 1. Accordions help organize content into collapsible sections. + + + This is the content of section 2. Click the headers to expand or collapse. + + + This is the content of section 3. Great for FAQs and settings pages. + + + +
+ + +
+ Rating & Gauges + + + Rating + + + + + + + + + + + + + +
+ + +
+ Splitter + + +
+ Left Pane + Drag the splitter to resize. +
+
+ +
+ Right Pane + Content adjusts dynamically. +
+
+
+
+ + +
+ Breadcrumb + + + + + + +
+ + +
+ ListBox & Tree + + + + + + + + + + + + + + + + + +
+ + +
+ Chips & Split Button + + + + + + + + + + + + + + + +
+ + +
+ Typography + + Display H3 + Heading H4 + Heading H5 + Heading H6 + Subtitle 1 + Subtitle 2 + Body 1 - Regular paragraph text for content. + Body 2 - Smaller body text for secondary content. + Caption - Small text for labels and hints. + OVERLINE TEXT + +
+
+
+
+ + diff --git a/Client/Modules/FileHub/RadzenThemeChanger.razor.cs b/Client/Modules/FileHub/RadzenThemeChanger.razor.cs new file mode 100644 index 0000000..3717295 --- /dev/null +++ b/Client/Modules/FileHub/RadzenThemeChanger.razor.cs @@ -0,0 +1,93 @@ +// Licensed to ICTAce under the MIT license. + +namespace ICTAce.FileHub; + +public partial class RadzenThemeChanger +{ + [Inject] + protected ISettingService SettingService { get; set; } = default!; + + [Inject] + private Radzen.ThemeService ThemeService { get; set; } = default!; + + private string RadzenTheme { get; set; } = "default"; + + // Preview component state + private bool _switchValue = true; + private int _radioValue = 1; + private int _sliderValue = 50; + private int _stepsIndex = 1; + private int _ratingValue = 4; + private double _gaugeValue = 72; + private bool _toggleValue = true; + + // Sample data for DataGrid + private List _sampleData = + [ + new(1, "Product A", "Electronics", 299.99m, DateTime.Now.AddDays(-5), true), + new(2, "Product B", "Clothing", 49.99m, DateTime.Now.AddDays(-3), true), + new(3, "Product C", "Electronics", 199.99m, DateTime.Now.AddDays(-1), false), + new(4, "Product D", "Home", 89.99m, DateTime.Now.AddDays(-7), true), + new(5, "Product E", "Clothing", 29.99m, DateTime.Now.AddDays(-2), true), + new(6, "Product F", "Home", 149.99m, DateTime.Now.AddDays(-10), false), + new(7, "Product G", "Electronics", 599.99m, DateTime.Now.AddDays(-4), true), + new(8, "Product H", "Clothing", 79.99m, DateTime.Now.AddDays(-6), true), + ]; + + private record SampleData(int Id, string Name, string Category, decimal Price, DateTime Date, bool IsActive); + + private record ThemeOption( + string Name, + string Value, + string Background, + string Card, + string Primary, + string Accent, + string Text, + string ChartColor1, + string ChartColor2, + string ChartColor3, + string BorderRadius); + + private List AvailableThemes { get; } = + [ + new("Default", "default", "#f5f5f5", "#ffffff", "#007bff", "#dc3545", "#212529", "#3700b3", "#ba68c8", "#f06292", "4"), + new("Dark", "dark", "#121212", "#1e1e1e", "#90caf9", "#f48fb1", "#e0e0e0", "#3700b3", "#ba68c8", "#f06292", "4"), + new("Material", "material", "#f5f5f5", "#ffffff", "#4340d2", "#e31c65", "#212121", "#3700b3", "#ba68c8", "#f06292", "4"), + new("Material Dark", "material-dark", "#121212", "#1e1e1e", "#90caf9", "#f48fb1", "#e0e0e0", "#3700b3", "#ba68c8", "#f06292", "4"), + new("Standard", "standard", "#f4f5f9", "#ffffff", "#1776d1", "#c3002f", "#212121", "#3d7cf4", "#64dfdf", "#f68769", "4"), + new("Standard Dark", "standard-dark", "#19191a", "#242527", "#90caf9", "#f48fb1", "#e0e0e0", "#3d7cf4", "#64dfdf", "#f68769", "4"), + new("Humanistic", "humanistic", "#f6f7fa", "#ffffff", "#376df5", "#e91e63", "#212121", "#376df5", "#64dfdf", "#f68769", "4"), + new("Humanistic Dark", "humanistic-dark", "#28363c", "#38474e", "#90caf9", "#f48fb1", "#e0e0e0", "#376df5", "#64dfdf", "#f68769", "4"), + new("Software", "software", "#f6f7fa", "#ffffff", "#4a5568", "#ed8936", "#2d3748", "#376df5", "#64dfdf", "#f68769", "4"), + new("Software Dark", "software-dark", "#28363c", "#3a474d", "#63b3ed", "#f6ad55", "#e2e8f0", "#376df5", "#64dfdf", "#f68769", "4"), + ]; + + private Dictionary _settings = new(); + + protected override async Task OnInitializedAsync() + { + await base.OnInitializedAsync(); + if (PageState.User != null) + { + _settings = await SettingService.GetUserSettingsAsync(PageState.User.UserId); + RadzenTheme = SettingService.GetSetting(_settings, "RadzenTheme", "default"); + ThemeService.SetTheme(RadzenTheme); + } + } + + private async Task OnThemeSelectedAsync(string theme) + { + RadzenTheme = theme; + + // Apply theme immediately + ThemeService.SetTheme(theme); + + // Save to user settings + if (PageState.User != null) + { + SettingService.SetSetting(_settings, "RadzenTheme", theme); + await SettingService.UpdateUserSettingsAsync(_settings, PageState.User.UserId); + } + } +} diff --git a/Client/Modules/FileHub/RadzenThemeManager.razor b/Client/Modules/FileHub/RadzenThemeManager.razor new file mode 100644 index 0000000..60a186f --- /dev/null +++ b/Client/Modules/FileHub/RadzenThemeManager.razor @@ -0,0 +1,5 @@ +@namespace ICTAce.FileHub +@inherits ModuleBase + + + diff --git a/Client/Modules/FileHub/RadzenThemeManager.razor.cs b/Client/Modules/FileHub/RadzenThemeManager.razor.cs new file mode 100644 index 0000000..e652f02 --- /dev/null +++ b/Client/Modules/FileHub/RadzenThemeManager.razor.cs @@ -0,0 +1,23 @@ +// Licensed to ICTAce under the MIT license. + +namespace ICTAce.FileHub; + +public partial class RadzenThemeManager +{ + [Inject] + protected ISettingService SettingService { get; set; } = default!; + + [Inject] + private Radzen.ThemeService ThemeService { get; set; } = default!; + + protected override async Task OnInitializedAsync() + { + await base.OnInitializedAsync(); + if (PageState.User != null) + { + var settings = await SettingService.GetUserSettingsAsync(PageState.User.UserId); + var radzenTheme = SettingService.GetSetting(settings, "RadzenTheme", "default"); + ThemeService.SetTheme(radzenTheme); + } + } +} diff --git a/Client/Modules/FileHub/Settings.razor b/Client/Modules/FileHub/Settings.razor index 288c008..0ee0457 100644 --- a/Client/Modules/FileHub/Settings.razor +++ b/Client/Modules/FileHub/Settings.razor @@ -1,10 +1,20 @@ @namespace ICTAce.FileHub @inherits ModuleBase + +
- + +
+
+
+ +
+
+
+
diff --git a/Client/Modules/FileHub/Settings.razor.cs b/Client/Modules/FileHub/Settings.razor.cs index 9655acd..5bc9b75 100644 --- a/Client/Modules/FileHub/Settings.razor.cs +++ b/Client/Modules/FileHub/Settings.razor.cs @@ -4,14 +4,6 @@ namespace ICTAce.FileHub; public partial class Settings : ModuleBase { - [Inject] - protected ISettingService SettingService { get; set; } = default!; - - [Inject] - protected IStringLocalizer Localizer { get; set; } = default!; - - private const string ResourceType = "ICTAce.FileHub.Settings, ICTAce.FileHub.Client.Oqtane"; - public override string Title => "FileHub Settings"; public override List Resources => @@ -20,10 +12,4 @@ public partial class Settings : ModuleBase new Script(ModulePath() + "Module.js"), new Script("_content/Radzen.Blazor/Radzen.Blazor.js"), ]; - - private async Task HandleErrorAsync(Exception ex) - { - AddModuleMessage(ex.Message, MessageType.Error); - await Task.CompletedTask; - } } diff --git a/Directory.Packages.props b/Directory.Packages.props index 021a895..10aab80 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -13,23 +13,23 @@ - + - + - - - + + + - - + + diff --git a/Server/wwwroot/Modules/ICTAce.FileHub/Module.css b/Server/wwwroot/Modules/ICTAce.FileHub/Module.css index f9012a8..024c4bf 100644 --- a/Server/wwwroot/Modules/ICTAce.FileHub/Module.css +++ b/Server/wwwroot/Modules/ICTAce.FileHub/Module.css @@ -1,6 +1,6 @@ /* Module Custom Styles */ /* Ensure Radzen overlays appear above Oqtane modals */ -div.rz-tooltip.rz-open.rz-popup { +.rz-popup { z-index: 99999 !important; } diff --git a/Solution ItemsError2025-11-15.log b/Solution ItemsError2025-11-15.log deleted file mode 100644 index c5f5172..0000000 --- a/Solution ItemsError2025-11-15.log +++ /dev/null @@ -1,10 +0,0 @@ - - -Date:2025-11-15 08:41:53,522 -Thread:[1] -Level:ERROR -Logger:InsertBlazorCode.SyncfusionCodeGeneratorMenuCommand [(null)] -Message:System.ArgumentException: The path is not of a legal form. - at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths) - at System.IO.Path.InternalGetDirectoryName(String path) - at InsertBlazorCode.SyncfusionCodeGeneratorMenuCommand.queryStatusMenuCommand_BeforeQueryStatus(Object sender, EventArgs e) in C:\Git\RP\vsext_insertblazorcode\SyncfusionBlazorcodegenerator\SyncfusionCodeGeneratorMenuCommand.cs:line 386