|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
using System;
|
|
|
|
|
using System;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Net.Http;
|
|
|
|
|
using Blazorise.Bootstrap5;
|
|
|
|
@ -17,8 +17,16 @@ using MyCompanyName.MyProjectName.MultiTenancy;
|
|
|
|
|
using StackExchange.Redis;
|
|
|
|
|
using Volo.Abp;
|
|
|
|
|
using Volo.Abp.AspNetCore.Authentication.OpenIdConnect;
|
|
|
|
|
//<TEMPLATE-REMOVE IF-NOT='BASIC'>
|
|
|
|
|
using Volo.Abp.AspNetCore.Components.Server.BasicTheme;
|
|
|
|
|
using Volo.Abp.AspNetCore.Components.Server.BasicTheme.Bundling;
|
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic;
|
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.Bundling;
|
|
|
|
|
//</TEMPLATE-REMOVE>
|
|
|
|
|
//<TEMPLATE-REMOVE IF-NOT='LEPTONX-LITE'>
|
|
|
|
|
using Volo.Abp.AspNetCore.Components.Server.LeptonXLiteTheme;
|
|
|
|
|
using Volo.Abp.AspNetCore.Components.Server.LeptonXLiteTheme.Bundling;
|
|
|
|
|
//</TEMPLATE-REMOVE>
|
|
|
|
|
using Volo.Abp.AspNetCore.Components.Web.Theming.Routing;
|
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.Client;
|
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.Localization;
|
|
|
|
@ -26,8 +34,6 @@ using Volo.Abp.AspNetCore.Mvc.UI;
|
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Bootstrap;
|
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Bundling;
|
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy;
|
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic;
|
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.Bundling;
|
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared;
|
|
|
|
|
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Toolbars;
|
|
|
|
|
using Volo.Abp.AspNetCore.Serilog;
|
|
|
|
@ -56,11 +62,16 @@ namespace MyCompanyName.MyProjectName.Blazor.Server.Tiered;
|
|
|
|
|
typeof(AbpAspNetCoreMvcClientModule),
|
|
|
|
|
typeof(AbpAspNetCoreAuthenticationOpenIdConnectModule),
|
|
|
|
|
typeof(AbpHttpClientIdentityModelWebModule),
|
|
|
|
|
//<TEMPLATE-REMOVE IF-NOT='BASIC'>
|
|
|
|
|
typeof(AbpAspNetCoreMvcUiBasicThemeModule),
|
|
|
|
|
typeof(AbpAspNetCoreComponentsServerBasicThemeModule),
|
|
|
|
|
//</TEMPLATE-REMOVE>
|
|
|
|
|
//<TEMPLATE-REMOVE IF-NOT='LEPTONX-LITE'>
|
|
|
|
|
typeof(AbpAspNetCoreComponentsServerLeptonXLiteThemeModule),
|
|
|
|
|
//</TEMPLATE-REMOVE>
|
|
|
|
|
typeof(AbpAutofacModule),
|
|
|
|
|
typeof(AbpSwashbuckleModule),
|
|
|
|
|
typeof(AbpAspNetCoreSerilogModule),
|
|
|
|
|
typeof(AbpAspNetCoreComponentsServerBasicThemeModule),
|
|
|
|
|
typeof(AbpIdentityBlazorServerModule),
|
|
|
|
|
typeof(AbpTenantManagementBlazorServerModule),
|
|
|
|
|
typeof(AbpSettingManagementBlazorServerModule)
|
|
|
|
@ -120,8 +131,9 @@ public class MyProjectNameBlazorModule : AbpModule
|
|
|
|
|
{
|
|
|
|
|
Configure<AbpBundlingOptions>(options =>
|
|
|
|
|
{
|
|
|
|
|
// MVC UI
|
|
|
|
|
options.StyleBundles.Configure(
|
|
|
|
|
//<TEMPLATE-REMOVE IF-NOT='BASIC'>
|
|
|
|
|
// MVC UI
|
|
|
|
|
options.StyleBundles.Configure(
|
|
|
|
|
BasicThemeBundles.Styles.Global,
|
|
|
|
|
bundle =>
|
|
|
|
|
{
|
|
|
|
@ -129,16 +141,38 @@ public class MyProjectNameBlazorModule : AbpModule
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
//BLAZOR UI
|
|
|
|
|
options.StyleBundles.Configure(
|
|
|
|
|
//BLAZOR UI
|
|
|
|
|
options.StyleBundles.Configure(
|
|
|
|
|
BlazorBasicThemeBundles.Styles.Global,
|
|
|
|
|
bundle =>
|
|
|
|
|
{
|
|
|
|
|
bundle.AddFiles("/blazor-global-styles.css");
|
|
|
|
|
//You can remove the following line if you don't use Blazor CSS isolation for components
|
|
|
|
|
bundle.AddFiles("/MyCompanyName.MyProjectName.Blazor.Server.Tiered.styles.css");
|
|
|
|
|
//You can remove the following line if you don't use Blazor CSS isolation for components
|
|
|
|
|
bundle.AddFiles("/MyCompanyName.MyProjectName.Blazor.Server.Tiered.styles.css");
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
//</TEMPLATE-REMOVE>
|
|
|
|
|
//<TEMPLATE-REMOVE IF-NOT='LEPTONX-LITE'>
|
|
|
|
|
// MVC UI
|
|
|
|
|
options.StyleBundles.Configure(
|
|
|
|
|
BlazorLeptonXLiteThemeBundles.Styles.Global,
|
|
|
|
|
bundle =>
|
|
|
|
|
{
|
|
|
|
|
bundle.AddFiles("/global-styles.css");
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
//BLAZOR UI
|
|
|
|
|
options.StyleBundles.Configure(
|
|
|
|
|
BlazorLeptonXLiteThemeBundles.Styles.Global,
|
|
|
|
|
bundle =>
|
|
|
|
|
{
|
|
|
|
|
bundle.AddFiles("/blazor-global-styles.css");
|
|
|
|
|
//You can remove the following line if you don't use Blazor CSS isolation for components
|
|
|
|
|
bundle.AddFiles("/MyCompanyName.MyProjectName.Blazor.Server.Tiered.styles.css");
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
//</TEMPLATE-REMOVE>
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -186,19 +220,19 @@ public class MyProjectNameBlazorModule : AbpModule
|
|
|
|
|
{
|
|
|
|
|
Configure<AbpVirtualFileSystemOptions>(options =>
|
|
|
|
|
{
|
|
|
|
|
//<TEMPLATE-REMOVE>
|
|
|
|
|
options.FileSets.ReplaceEmbeddedByPhysical<AbpUiModule>(Path.Combine(hostingEnvironment.ContentRootPath, string.Format("..{0}..{0}..{0}..{0}..{0}framework{0}src{0}Volo.Abp.UI", Path.DirectorySeparatorChar)));
|
|
|
|
|
//<TEMPLATE-REMOVE>
|
|
|
|
|
options.FileSets.ReplaceEmbeddedByPhysical<AbpUiModule>(Path.Combine(hostingEnvironment.ContentRootPath, string.Format("..{0}..{0}..{0}..{0}..{0}framework{0}src{0}Volo.Abp.UI", Path.DirectorySeparatorChar)));
|
|
|
|
|
options.FileSets.ReplaceEmbeddedByPhysical<AbpAspNetCoreMvcUiModule>(Path.Combine(hostingEnvironment.ContentRootPath, string.Format("..{0}..{0}..{0}..{0}..{0}framework{0}src{0}Volo.Abp.AspNetCore.Mvc.UI", Path.DirectorySeparatorChar)));
|
|
|
|
|
options.FileSets.ReplaceEmbeddedByPhysical<AbpAspNetCoreMvcUiBootstrapModule>(Path.Combine(hostingEnvironment.ContentRootPath, string.Format("..{0}..{0}..{0}..{0}..{0}framework{0}src{0}Volo.Abp.AspNetCore.Mvc.UI.Bootstrap", Path.DirectorySeparatorChar)));
|
|
|
|
|
options.FileSets.ReplaceEmbeddedByPhysical<AbpAspNetCoreMvcUiThemeSharedModule>(Path.Combine(hostingEnvironment.ContentRootPath, string.Format("..{0}..{0}..{0}..{0}..{0}framework{0}src{0}Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared", Path.DirectorySeparatorChar)));
|
|
|
|
|
options.FileSets.ReplaceEmbeddedByPhysical<AbpAspNetCoreMvcUiBasicThemeModule>(Path.Combine(hostingEnvironment.ContentRootPath, string.Format("..{0}..{0}..{0}..{0}..{0}modules{0}basic-theme{0}src{0}Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic", Path.DirectorySeparatorChar)));
|
|
|
|
|
options.FileSets.ReplaceEmbeddedByPhysical<AbpAspNetCoreMvcUiMultiTenancyModule>(Path.Combine(hostingEnvironment.ContentRootPath, string.Format("..{0}..{0}..{0}..{0}..{0}framework{0}src{0}Volo.Abp.AspNetCore.Mvc.UI.MultiTenancy", Path.DirectorySeparatorChar)));
|
|
|
|
|
//options.FileSets.ReplaceEmbeddedByPhysical<AbpPermissionManagementWebModule>(Path.Combine(hostingEnvironment.ContentRootPath, string.Format("..{0}..{0}..{0}..{0}..{0}modules{0}permission-management{0}src{0}Volo.Abp.PermissionManagement.Web", Path.DirectorySeparatorChar)));
|
|
|
|
|
//options.FileSets.ReplaceEmbeddedByPhysical<AbpFeatureManagementWebModule>(Path.Combine(hostingEnvironment.ContentRootPath, string.Format("..{0}..{0}..{0}..{0}..{0}modules{0}feature-management{0}src{0}Volo.Abp.FeatureManagement.Web", Path.DirectorySeparatorChar)));
|
|
|
|
|
//options.FileSets.ReplaceEmbeddedByPhysical<AbpIdentityWebModule>(Path.Combine(hostingEnvironment.ContentRootPath, string.Format("..{0}..{0}..{0}..{0}..{0}modules{0}identity{0}src{0}Volo.Abp.Identity.Web", Path.DirectorySeparatorChar)));
|
|
|
|
|
//options.FileSets.ReplaceEmbeddedByPhysical<AbpTenantManagementWebModule>(Path.Combine(hostingEnvironment.ContentRootPath, string.Format("..{0}..{0}..{0}..{0}..{0}modules{0}tenant-management{0}src{0}Volo.Abp.TenantManagement.Web", Path.DirectorySeparatorChar)));
|
|
|
|
|
//</TEMPLATE-REMOVE>
|
|
|
|
|
options.FileSets.ReplaceEmbeddedByPhysical<MyProjectNameDomainSharedModule>(Path.Combine(hostingEnvironment.ContentRootPath, $"..{Path.DirectorySeparatorChar}MyCompanyName.MyProjectName.Domain.Shared"));
|
|
|
|
|
//options.FileSets.ReplaceEmbeddedByPhysical<AbpPermissionManagementWebModule>(Path.Combine(hostingEnvironment.ContentRootPath, string.Format("..{0}..{0}..{0}..{0}..{0}modules{0}permission-management{0}src{0}Volo.Abp.PermissionManagement.Web", Path.DirectorySeparatorChar)));
|
|
|
|
|
//options.FileSets.ReplaceEmbeddedByPhysical<AbpFeatureManagementWebModule>(Path.Combine(hostingEnvironment.ContentRootPath, string.Format("..{0}..{0}..{0}..{0}..{0}modules{0}feature-management{0}src{0}Volo.Abp.FeatureManagement.Web", Path.DirectorySeparatorChar)));
|
|
|
|
|
//options.FileSets.ReplaceEmbeddedByPhysical<AbpIdentityWebModule>(Path.Combine(hostingEnvironment.ContentRootPath, string.Format("..{0}..{0}..{0}..{0}..{0}modules{0}identity{0}src{0}Volo.Abp.Identity.Web", Path.DirectorySeparatorChar)));
|
|
|
|
|
//options.FileSets.ReplaceEmbeddedByPhysical<AbpTenantManagementWebModule>(Path.Combine(hostingEnvironment.ContentRootPath, string.Format("..{0}..{0}..{0}..{0}..{0}modules{0}tenant-management{0}src{0}Volo.Abp.TenantManagement.Web", Path.DirectorySeparatorChar)));
|
|
|
|
|
//</TEMPLATE-REMOVE>
|
|
|
|
|
options.FileSets.ReplaceEmbeddedByPhysical<MyProjectNameDomainSharedModule>(Path.Combine(hostingEnvironment.ContentRootPath, $"..{Path.DirectorySeparatorChar}MyCompanyName.MyProjectName.Domain.Shared"));
|
|
|
|
|
options.FileSets.ReplaceEmbeddedByPhysical<MyProjectNameApplicationContractsModule>(Path.Combine(hostingEnvironment.ContentRootPath, $"..{Path.DirectorySeparatorChar}MyCompanyName.MyProjectName.Application.Contracts"));
|
|
|
|
|
options.FileSets.ReplaceEmbeddedByPhysical<MyProjectNameBlazorModule>(hostingEnvironment.ContentRootPath);
|
|
|
|
|
});
|
|
|
|
|