-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Support MudBlazor. #25235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Support MudBlazor. #25235
Changes from 100 commits
Commits
Show all changes
104 commits
Select commit
Hold shift + click to select a range
16a8722
Migrat to Mudblazor (vibe-kanban 00113e51)
ismcagdas 52019de
created Volo.Abp.AspNetCore.Components.Web.Theming.MudBlazor package
ismcagdas 76b2d68
created MudBlazor theming packages
ismcagdas d3303d1
add delete confirmation to AbpMudCrudPageBase
ismcagdas beb195b
created empty modules for MudBlazor similar to Blazorise dependent mo…
ismcagdas e1f1e47
added account module pages for MudBlazor
ismcagdas 29aa409
created identity module pages for MudBlazor
ismcagdas 2615988
created permission management module pages for MudBlazor
ismcagdas 4393a24
created feature management module pages for MudBlazor
ismcagdas 36a29c4
added setting-management and tenant-management module pages for MudBl…
ismcagdas d414a1d
created MudBlazor theme packages
ismcagdas ed7b6ee
implemented theme detail pages for MudBlazor themes
ismcagdas c798e45
replace Blazorise with MudBlazor in app template
ismcagdas 4b74750
fixed several build problems
ismcagdas b54a5b6
fixed several build errors
ismcagdas 26854c5
added MudBlazor projects to ABP solution
ismcagdas 4bf9ceb
fixed build problem in several modules for MudBlazor
ismcagdas 5c2bf08
fixed build problems on tenant management module for MudBlazor
ismcagdas e566843
fixed build problems on permission management module for MudBlazor
ismcagdas 7358786
fixed build problems in account module for MudBlazor
ismcagdas b863bbb
replace LeptonXLiteTheme with MudBlazorBasicTheme
ismcagdas b1610f2
fixed build problems in app template
ismcagdas c5c20bf
fix several runtime errors
ismcagdas 98b3834
fix dependent modules of AbpAspNetCoreComponentsWebThemingMudBlazorMo…
ismcagdas 310ff90
Update MudBlazor theming module in Blazor app
maliming 5f707a5
fix style loading problem on Blazor server template
ismcagdas 788bc1e
fix LoginDisplay.razor not showing logged-in user info problem
ismcagdas 7d97167
fix errors in MudDataGrid showing data
ismcagdas 8f0c027
removed Volo.Abp.MudBlazorUI\BreadcrumbItem.cs
ismcagdas fd2581f
remove BreadcrumbItem related errors
ismcagdas 5173c8e
fix PageHeader spacing problem
ismcagdas d91bab3
change @bind-IsVisible with @bind-Visible
ismcagdas 1131c89
fix modal close problem for MudBlazor
ismcagdas 27badac
refactored AbpMudCrudPageBase and AbpMudExtensibleDataGrid for clearity
ismcagdas 204ba7e
Fix sorting problem for template columns
ismcagdas 85aa80f
fix action buttons not being visible on grud data grids
ismcagdas 65bd5a1
fix MudBlazor mapping error in identity module
ismcagdas 08e8952
fix double delete confirmation on identity module for MudBlazor
ismcagdas 6584bd6
correctly set checkbox values for role management
ismcagdas 7804c65
replace bind-IsVisible with bind-Visible
ismcagdas 582b01c
remove width of permission modal inline tab
ismcagdas 377c04c
remove Variant="Variant.Outlined" from MudBlazor inputs
ismcagdas 90bfe20
fix error on user list page
ismcagdas 0affeb3
Render PageHeader in TenantManagement.razor
ismcagdas 5f2af43
show tenant creation and edit modals correctly
ismcagdas 35bfbfc
correctly use icon in MudBlazor menu items
ismcagdas 24829ad
fix layout of FeatureManagementModal for MudBlazor
ismcagdas 5ea02fa
remove unnecessary logout button
ismcagdas e7bc081
add missing namespace to App.razor for Blazor WebApp
ismcagdas 3238a67
Fix home page layout for Blazor Web App
ismcagdas 0a6709d
remove commented module dependencies
ismcagdas 98cd53a
show button when there is only 1 action in datagrid
ismcagdas 5982e28
several bug fixes for MudBlazor
ismcagdas b69ef77
Merge branch 'dev' into feat/mudblazor
maliming a2adf27
Standardize RequiredError localization keys
maliming ce78800
Enhance navigation components with improved layout and styling
maliming 8b62569
Refactor navigation components.
maliming 1d14438
Add PageAlert component and AlertWrapper
maliming aecd12d
Add MudBlazorExtensionPropertyPolicyChecker for feature and permissio…
maliming 3049116
Add missing using directives.
maliming d5abc3f
Add MudBlazor theming support with bundling configuration and contrib…
maliming c434e89
Remove public font reference from MudBlazor style contributors
maliming 540f9d4
Add Roboto font link to App.razor files for improved typography
maliming b169952
Add FontAwesome webfonts and update authentication URLs
maliming 6c76cb1
Add missing using directives and update AbpStyles references in App.r…
maliming d820b08
Merge branch 'dev' into feat/mudblazor
maliming 2ffd01d
refactor: remove unused MudBlazor theming module and update dependenc…
maliming 1f854d2
Merge branch 'dev' into feat/mudblazor
maliming 340416b
refactor: Clean up filter handling in UserManagement and optimize per…
maliming 4a7fc63
feat: Add FodyWeavers configuration files for MudBlazor theming compo…
maliming 83b3915
fix: Set width to 100% for form container in SettingManagement page
maliming ac0c96a
refactor: Simplify layout structure in FeatureManagementModal and imp…
maliming ba35f06
refactor: Remove unused ConfigureBundle method and update project SDK…
maliming 5183038
Add FontAwesome webfont files for MudBlazor theming
maliming 9099bac
refactor: Change project SDK from Web to Razor for MudBlazor theming
maliming 609bf8a
Merge branch 'dev' into feat/mudblazor
maliming 07a50ea
refactor: migrate Blazor project from LeptonXLite theme to MudBlazor …
maliming 12643a7
fix: add padding class to MudMainContent for improved layout
maliming c0b0136
fix: update breadcrumb items to be disabled in Role, User, Setting, a…
maliming 67cd855
fix: add dense margin to MudTextField components for improved spacing…
maliming 451ace3
fix: update layout and styling for improved user experience across va…
maliming 15e99a0
Refactor Index.razor pages to use MudBlazor components for improved U…
maliming e6c8ac6
fix: update MudMenu components in LanguageSwitch and LoginDisplay for…
maliming 89bf2ee
fix: update login button href for consistency and remove loading spin…
maliming 0e28516
fix: update login button href for consistency across Index.razor pages
maliming e5f5b58
fix: update user menu configuration to handle browser and non-browser…
maliming 506fc80
fix: update logout menu item order for better placement in user menu
maliming 3c09c68
fix: update stylesheet link for consistency in App component
maliming 835d22f
feat: add MudBlazor theming support to various projects
maliming 6b16452
fix: update MudCheckBox color to primary for better visibility across…
maliming 27f644d
feat: standardize dialog options across various components for consis…
maliming 49a4aab
feat: enhance sorting functionality by mapping SortBy func references…
maliming e686ed3
fix: update feature style margin property for improved layout consist…
maliming a6a988b
Remove Migration Plan for Volo.Abp.AspNetCore.Components.Web.Theming.…
maliming 9fe5214
Merge remote-tracking branch 'origin/dev' into feat/mudblazor
maliming 41bc282
feat: add culture-specific routing for account, authentication, role,…
maliming 59f102d
feat: add Culture parameter to multiple management pages for localiza…
maliming e0d7c81
feat: implement culture-aware login redirection and update login URL …
maliming c3b461a
feat: update MudBlazor bundling and enhance email settings UI components
maliming 7ddd755
fix: correct namespace reference for BlazorStandardBundles in MudBlaz…
maliming 3efb0b1
Merge remote-tracking branch 'origin/dev' into feat/mudblazor
maliming 7e312f6
docs: update package version changes [skip ci]
github-actions[bot] 3cd90a0
Merge remote-tracking branch 'origin/dev' into feat/mudblazor
maliming 9bea1ea
docs: update package version changes [skip ci]
github-actions[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...ing.MudBlazor.Bundling/AbpAspNetCoreComponentsMauiBlazorThemingMudBlazorBundlingModule.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| using Volo.Abp.AspNetCore.Mvc.UI.Bundling; | ||
| using Volo.Abp.Modularity; | ||
|
|
||
| namespace Volo.Abp.AspNetCore.Components.MauiBlazor.Theming.MudBlazor.Bundling; | ||
|
|
||
| [DependsOn( | ||
| typeof(AbpAspNetCoreMvcUiBundlingAbstractionsModule) | ||
| )] | ||
| public class AbpAspNetCoreComponentsMauiBlazorThemingMudBlazorBundlingModule : AbpModule | ||
| { | ||
| public override void ConfigureServices(ServiceConfigurationContext context) | ||
| { | ||
| Configure<AbpBundlingOptions>(options => | ||
| { | ||
| options.GlobalAssets.Enabled = true; | ||
| options.GlobalAssets.GlobalStyleBundleName = MauiBlazorMudBlazorStandardBundles.Styles.Global; | ||
| options.GlobalAssets.GlobalScriptBundleName = MauiBlazorMudBlazorStandardBundles.Scripts.Global; | ||
|
|
||
| options | ||
| .StyleBundles | ||
| .Add(MauiBlazorMudBlazorStandardBundles.Styles.Global, bundle => | ||
| { | ||
| bundle.AddContributors(typeof(MauiBlazorMudBlazorStyleContributor)); | ||
| }); | ||
|
|
||
| options | ||
| .ScriptBundles | ||
| .Add(MauiBlazorMudBlazorStandardBundles.Scripts.Global, bundle => | ||
| { | ||
| bundle.AddContributors(typeof(MauiBlazorMudBlazorScriptContributor)); | ||
| }); | ||
| }); | ||
| } | ||
| } |
3 changes: 3 additions & 0 deletions
3
.../src/Volo.Abp.AspNetCore.Components.MauiBlazor.Theming.MudBlazor.Bundling/FodyWeavers.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| <Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd"> | ||
| <ConfigureAwait ContinueOnCapturedContext="false" /> | ||
| </Weavers> |
30 changes: 30 additions & 0 deletions
30
.../src/Volo.Abp.AspNetCore.Components.MauiBlazor.Theming.MudBlazor.Bundling/FodyWeavers.xsd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
| <!-- This file was generated by Fody. Manual changes to this file will be lost when your project is rebuilt. --> | ||
| <xs:element name="Weavers"> | ||
| <xs:complexType> | ||
| <xs:all> | ||
| <xs:element name="ConfigureAwait" minOccurs="0" maxOccurs="1"> | ||
| <xs:complexType> | ||
| <xs:attribute name="ContinueOnCapturedContext" type="xs:boolean" /> | ||
| </xs:complexType> | ||
| </xs:element> | ||
| </xs:all> | ||
| <xs:attribute name="VerifyAssembly" type="xs:boolean"> | ||
| <xs:annotation> | ||
| <xs:documentation>'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.</xs:documentation> | ||
| </xs:annotation> | ||
| </xs:attribute> | ||
| <xs:attribute name="VerifyIgnoreCodes" type="xs:string"> | ||
| <xs:annotation> | ||
| <xs:documentation>A comma-separated list of error codes that can be safely ignored in assembly verification.</xs:documentation> | ||
| </xs:annotation> | ||
| </xs:attribute> | ||
| <xs:attribute name="GenerateXsd" type="xs:boolean"> | ||
| <xs:annotation> | ||
| <xs:documentation>'false' to turn off automatic generation of the XML Schema file.</xs:documentation> | ||
| </xs:annotation> | ||
| </xs:attribute> | ||
| </xs:complexType> | ||
| </xs:element> | ||
| </xs:schema> |
14 changes: 14 additions & 0 deletions
14
....Components.MauiBlazor.Theming.MudBlazor.Bundling/MauiBlazorMudBlazorScriptContributor.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| using System.Collections.Generic; | ||
| using Volo.Abp.AspNetCore.Mvc.UI.Bundling; | ||
|
|
||
| namespace Volo.Abp.AspNetCore.Components.MauiBlazor.Theming.MudBlazor.Bundling; | ||
|
|
||
| public class MauiBlazorMudBlazorScriptContributor : BundleContributor | ||
| { | ||
| public override void ConfigureBundle(BundleConfigurationContext context) | ||
| { | ||
| context.Files.AddIfNotContains("_content/MudBlazor/MudBlazor.min.js"); | ||
| context.Files.AddIfNotContains("_content/Volo.Abp.AspNetCore.Components.Web/libs/abp/js/abp.js"); | ||
| context.Files.AddIfNotContains("_content/Volo.Abp.AspNetCore.Components.Web/libs/abp/js/lang-utils.js"); | ||
| } | ||
| } |
14 changes: 14 additions & 0 deletions
14
...re.Components.MauiBlazor.Theming.MudBlazor.Bundling/MauiBlazorMudBlazorStandardBundles.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| namespace Volo.Abp.AspNetCore.Components.MauiBlazor.Theming.MudBlazor.Bundling; | ||
|
|
||
| public class MauiBlazorMudBlazorStandardBundles | ||
| { | ||
| public static class Styles | ||
| { | ||
| public static string Global = "MauiBlazorMudBlazor.Global"; | ||
| } | ||
|
|
||
| public static class Scripts | ||
| { | ||
| public static string Global = "MauiBlazorMudBlazor.Global"; | ||
| } | ||
| } |
16 changes: 16 additions & 0 deletions
16
...e.Components.MauiBlazor.Theming.MudBlazor.Bundling/MauiBlazorMudBlazorStyleContributor.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| using System.Collections.Generic; | ||
| using Volo.Abp.AspNetCore.Mvc.UI.Bundling; | ||
|
|
||
| namespace Volo.Abp.AspNetCore.Components.MauiBlazor.Theming.MudBlazor.Bundling; | ||
|
|
||
| public class MauiBlazorMudBlazorStyleContributor : BundleContributor | ||
| { | ||
| public override void ConfigureBundle(BundleConfigurationContext context) | ||
| { | ||
| context.Files.AddIfNotContains("_content/Volo.Abp.AspNetCore.Components.MauiBlazor.Theming.MudBlazor/libs/fontawesome/css/all.css"); | ||
| context.Files.AddIfNotContains("_content/MudBlazor/MudBlazor.min.css"); | ||
| context.Files.AddIfNotContains("_content/Volo.Abp.AspNetCore.Components.Web/libs/abp/css/abp.css"); | ||
| context.Files.AddIfNotContains("_content/Volo.Abp.MudBlazorUI/volo.abp.mudblazorui.css"); | ||
| context.Files.AddIfNotContains("_content/Volo.Abp.AspNetCore.Components.MauiBlazor.Theming.MudBlazor/libs/flag-icon/css/flag-icon.css"); | ||
| } | ||
| } |
16 changes: 16 additions & 0 deletions
16
...azor.Bundling/Volo.Abp.AspNetCore.Components.MauiBlazor.Theming.MudBlazor.Bundling.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk.Razor"> | ||
|
|
||
| <Import Project="..\..\..\configureawait.props" /> | ||
| <Import Project="..\..\..\common.props" /> | ||
|
|
||
| <PropertyGroup> | ||
| <TargetFramework>net10.0</TargetFramework> | ||
| <Nullable>enable</Nullable> | ||
| <WarningsAsErrors>Nullable</WarningsAsErrors> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <ProjectReference Include="..\Volo.Abp.AspNetCore.Mvc.UI.Bundling.Abstractions\Volo.Abp.AspNetCore.Mvc.UI.Bundling.Abstractions.csproj" /> | ||
| </ItemGroup> | ||
|
|
||
| </Project> |
15 changes: 15 additions & 0 deletions
15
...s.MauiBlazor.Theming.MudBlazor/AbpAspNetCoreComponentsMauiBlazorThemingMudBlazorModule.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| using Volo.Abp.AspNetCore.Components.MauiBlazor.Theming.MudBlazor.Bundling; | ||
| using Volo.Abp.AspNetCore.Components.Web.Theming.MudBlazor; | ||
| using Volo.Abp.AspNetCore.Components.MauiBlazor; | ||
| using Volo.Abp.Modularity; | ||
|
|
||
| namespace Volo.Abp.AspNetCore.Components.MauiBlazor.Theming.MudBlazor; | ||
|
|
||
| [DependsOn( | ||
| typeof(AbpAspNetCoreComponentsMauiBlazorThemingMudBlazorBundlingModule), | ||
| typeof(AbpAspNetCoreComponentsWebThemingMudBlazorModule), | ||
| typeof(AbpAspNetCoreComponentsMauiBlazorModule) | ||
| )] | ||
| public class AbpAspNetCoreComponentsMauiBlazorThemingMudBlazorModule : AbpModule | ||
| { | ||
| } |
3 changes: 3 additions & 0 deletions
3
framework/src/Volo.Abp.AspNetCore.Components.MauiBlazor.Theming.MudBlazor/FodyWeavers.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| <Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd"> | ||
| <ConfigureAwait ContinueOnCapturedContext="false" /> | ||
| </Weavers> |
30 changes: 30 additions & 0 deletions
30
framework/src/Volo.Abp.AspNetCore.Components.MauiBlazor.Theming.MudBlazor/FodyWeavers.xsd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
| <!-- This file was generated by Fody. Manual changes to this file will be lost when your project is rebuilt. --> | ||
| <xs:element name="Weavers"> | ||
| <xs:complexType> | ||
| <xs:all> | ||
| <xs:element name="ConfigureAwait" minOccurs="0" maxOccurs="1"> | ||
| <xs:complexType> | ||
| <xs:attribute name="ContinueOnCapturedContext" type="xs:boolean" /> | ||
| </xs:complexType> | ||
| </xs:element> | ||
| </xs:all> | ||
| <xs:attribute name="VerifyAssembly" type="xs:boolean"> | ||
| <xs:annotation> | ||
| <xs:documentation>'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.</xs:documentation> | ||
| </xs:annotation> | ||
| </xs:attribute> | ||
| <xs:attribute name="VerifyIgnoreCodes" type="xs:string"> | ||
| <xs:annotation> | ||
| <xs:documentation>A comma-separated list of error codes that can be safely ignored in assembly verification.</xs:documentation> | ||
| </xs:annotation> | ||
| </xs:attribute> | ||
| <xs:attribute name="GenerateXsd" type="xs:boolean"> | ||
| <xs:annotation> | ||
| <xs:documentation>'false' to turn off automatic generation of the XML Schema file.</xs:documentation> | ||
| </xs:annotation> | ||
| </xs:attribute> | ||
| </xs:complexType> | ||
| </xs:element> | ||
| </xs:schema> |
18 changes: 18 additions & 0 deletions
18
...azor.Theming.MudBlazor/Volo.Abp.AspNetCore.Components.MauiBlazor.Theming.MudBlazor.csproj
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk.Razor"> | ||
|
|
||
| <Import Project="..\..\..\configureawait.props" /> | ||
| <Import Project="..\..\..\common.props" /> | ||
|
|
||
| <PropertyGroup> | ||
| <TargetFramework>net10.0</TargetFramework> | ||
| <Nullable>enable</Nullable> | ||
| <WarningsAsErrors>Nullable</WarningsAsErrors> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <ProjectReference Include="..\Volo.Abp.AspNetCore.Components.MauiBlazor.Theming.MudBlazor.Bundling\Volo.Abp.AspNetCore.Components.MauiBlazor.Theming.MudBlazor.Bundling.csproj" /> | ||
| <ProjectReference Include="..\Volo.Abp.AspNetCore.Components.Web.Theming.MudBlazor\Volo.Abp.AspNetCore.Components.Web.Theming.MudBlazor.csproj" /> | ||
| <ProjectReference Include="..\Volo.Abp.AspNetCore.Components.MauiBlazor\Volo.Abp.AspNetCore.Components.MauiBlazor.csproj" /> | ||
| </ItemGroup> | ||
|
|
||
| </Project> |
36 changes: 36 additions & 0 deletions
36
...omponents.Server.Theming.MudBlazor/AbpAspNetCoreComponentsServerThemingMudBlazorModule.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| using Volo.Abp.AspNetCore.Components.Server.Theming.MudBlazor.Bundling; | ||
| using Volo.Abp.AspNetCore.Components.Web.Theming.MudBlazor; | ||
| using Volo.Abp.AspNetCore.Mvc.UI.Bundling; | ||
| using Volo.Abp.Modularity; | ||
| using Volo.Abp.AspNetCore.Mvc.UI.Packages; | ||
|
|
||
| namespace Volo.Abp.AspNetCore.Components.Server.Theming.MudBlazor; | ||
|
|
||
| [DependsOn( | ||
| typeof(AbpAspNetCoreComponentsServerModule), | ||
| typeof(AbpAspNetCoreMvcUiPackagesModule), | ||
| typeof(AbpAspNetCoreComponentsWebThemingMudBlazorModule), | ||
| typeof(AbpAspNetCoreMvcUiBundlingModule) | ||
| )] | ||
| public class AbpAspNetCoreComponentsServerThemingMudBlazorModule : AbpModule | ||
| { | ||
| public override void ConfigureServices(ServiceConfigurationContext context) | ||
| { | ||
| Configure<AbpBundlingOptions>(options => | ||
| { | ||
| options | ||
| .StyleBundles | ||
| .Add(BlazorServerMudBlazorStandardBundles.Styles.Global, bundle => | ||
| { | ||
| bundle.AddContributors(typeof(BlazorServerMudBlazorStyleContributor)); | ||
| }); | ||
|
|
||
| options | ||
| .ScriptBundles | ||
| .Add(BlazorServerMudBlazorStandardBundles.Scripts.Global, bundle => | ||
| { | ||
| bundle.AddContributors(typeof(BlazorServerMudBlazorScriptContributor)); | ||
| }); | ||
| }); | ||
| } | ||
| } |
28 changes: 28 additions & 0 deletions
28
...mponents.Server.Theming.MudBlazor/Bundling/BlazorServerMudBlazorComponentBundleManager.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| using System.Collections.Generic; | ||
| using System.Linq; | ||
| using System.Threading.Tasks; | ||
| using Volo.Abp.AspNetCore.Bundling; | ||
| using Volo.Abp.AspNetCore.Components.Web.Theming.MudBlazor.Bundling; | ||
|
maliming marked this conversation as resolved.
|
||
| using Volo.Abp.DependencyInjection; | ||
|
|
||
| namespace Volo.Abp.AspNetCore.Components.Server.Theming.MudBlazor.Bundling; | ||
|
|
||
| public class BlazorServerMudBlazorComponentBundleManager : IComponentBundleManager, ITransientDependency | ||
| { | ||
| protected IBundleManager BundleManager { get; } | ||
|
|
||
| public BlazorServerMudBlazorComponentBundleManager(IBundleManager bundleManager) | ||
| { | ||
| BundleManager = bundleManager; | ||
| } | ||
|
|
||
| public virtual async Task<IReadOnlyList<string>> GetStyleBundleFilesAsync(string bundleName) | ||
| { | ||
| return (await BundleManager.GetStyleBundleFilesAsync(bundleName)).Select(f => f.FileName).ToList(); | ||
| } | ||
|
|
||
| public virtual async Task<IReadOnlyList<string>> GetScriptBundleFilesAsync(string bundleName) | ||
| { | ||
| return (await BundleManager.GetScriptBundleFilesAsync(bundleName)).Select(f => f.FileName).ToList(); | ||
| } | ||
| } | ||
22 changes: 22 additions & 0 deletions
22
...re.Components.Server.Theming.MudBlazor/Bundling/BlazorServerMudBlazorScriptContributor.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| using System.Collections.Generic; | ||
| using Microsoft.Extensions.DependencyInjection; | ||
| using Microsoft.Extensions.Options; | ||
| using Volo.Abp.AspNetCore.Components.Web; | ||
| using Volo.Abp.AspNetCore.Mvc.UI.Bundling; | ||
|
|
||
| namespace Volo.Abp.AspNetCore.Components.Server.Theming.MudBlazor.Bundling; | ||
|
|
||
| public class BlazorServerMudBlazorScriptContributor : BundleContributor | ||
| { | ||
| public override void ConfigureBundle(BundleConfigurationContext context) | ||
| { | ||
| var options = context.ServiceProvider.GetRequiredService<IOptions<AbpAspNetCoreComponentsWebOptions>>().Value; | ||
| if (!options.IsBlazorWebApp) | ||
| { | ||
| context.Files.AddIfNotContains("/_framework/blazor.server.js"); | ||
| } | ||
| context.Files.AddIfNotContains("/_content/MudBlazor/MudBlazor.min.js"); | ||
| context.Files.AddIfNotContains("/_content/Volo.Abp.AspNetCore.Components.Web/libs/abp/js/abp.js"); | ||
| context.Files.AddIfNotContains("/_content/Volo.Abp.AspNetCore.Components.Web/libs/abp/js/authentication-state-listener.js"); | ||
| } | ||
| } |
14 changes: 14 additions & 0 deletions
14
...Core.Components.Server.Theming.MudBlazor/Bundling/BlazorServerMudBlazorStandardBundles.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| namespace Volo.Abp.AspNetCore.Components.Server.Theming.MudBlazor.Bundling; | ||
|
|
||
| public class BlazorServerMudBlazorStandardBundles | ||
| { | ||
| public static class Styles | ||
| { | ||
| public static string Global = "Blazor.Global"; | ||
| } | ||
|
|
||
| public static class Scripts | ||
| { | ||
| public static string Global = "Blazor.Global"; | ||
|
maliming marked this conversation as resolved.
maliming marked this conversation as resolved.
|
||
| } | ||
| } | ||
16 changes: 16 additions & 0 deletions
16
...ore.Components.Server.Theming.MudBlazor/Bundling/BlazorServerMudBlazorStyleContributor.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| using System.Collections.Generic; | ||
| using Volo.Abp.AspNetCore.Mvc.UI.Bundling; | ||
|
|
||
| namespace Volo.Abp.AspNetCore.Components.Server.Theming.MudBlazor.Bundling; | ||
|
|
||
| public class BlazorServerMudBlazorStyleContributor : BundleContributor | ||
| { | ||
| public override void ConfigureBundle(BundleConfigurationContext context) | ||
| { | ||
| context.Files.AddIfNotContains("/_content/Volo.Abp.AspNetCore.Components.Server.Theming.MudBlazor/libs/fontawesome/css/all.css"); | ||
| context.Files.AddIfNotContains("/_content/MudBlazor/MudBlazor.min.css"); | ||
| context.Files.AddIfNotContains("/_content/Volo.Abp.AspNetCore.Components.Web/libs/abp/css/abp.css"); | ||
| context.Files.AddIfNotContains("/_content/Volo.Abp.MudBlazorUI/volo.abp.mudblazorui.css"); | ||
| context.Files.AddIfNotContains("/_content/Volo.Abp.AspNetCore.Components.Server.Theming.MudBlazor/libs/flag-icon/css/flag-icon.css"); | ||
|
maliming marked this conversation as resolved.
|
||
| } | ||
| } | ||
3 changes: 3 additions & 0 deletions
3
framework/src/Volo.Abp.AspNetCore.Components.Server.Theming.MudBlazor/FodyWeavers.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| <Weavers xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="FodyWeavers.xsd"> | ||
| <ConfigureAwait ContinueOnCapturedContext="false" /> | ||
| </Weavers> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.