Compare commits
3 Commits
5e088961f5
...
3b165b0086
Author | SHA1 | Date |
---|---|---|
wangyu | 3b165b0086 | |
wangyu | 39ade7ddc2 | |
wixy | b8d0ca7dda |
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2024 wixy
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
|
@ -23,21 +23,15 @@ using Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.Bundling;
|
|||
using Volo.Abp.AspNetCore.Components.Web.Theming.Routing;
|
||||
using Volo.Abp.AspNetCore.Mvc;
|
||||
using Volo.Abp.AspNetCore.Mvc.Localization;
|
||||
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.Shared;
|
||||
using Volo.Abp.AspNetCore.Serilog;
|
||||
using Volo.Abp.Autofac;
|
||||
using Volo.Abp.AutoMapper;
|
||||
using Volo.Abp.Identity.Blazor.Server;
|
||||
using Volo.Abp.Localization;
|
||||
using Volo.Abp.Modularity;
|
||||
using Volo.Abp.SettingManagement.Blazor.Server;
|
||||
using Volo.Abp.Swashbuckle;
|
||||
using Volo.Abp.TenantManagement.Blazor.Server;
|
||||
using Volo.Abp.UI;
|
||||
using Volo.Abp.UI.Navigation;
|
||||
using Volo.Abp.UI.Navigation.Urls;
|
||||
using Volo.Abp.VirtualFileSystem;
|
||||
|
@ -95,14 +89,7 @@ public class AdminBlazorModule : AbpModule
|
|||
var hostingEnvironment = context.Services.GetHostingEnvironment();
|
||||
var configuration = context.Services.GetConfiguration();
|
||||
|
||||
context.Services.AddMasaBlazor(builder =>
|
||||
{
|
||||
builder.ConfigureTheme(theme =>
|
||||
{
|
||||
theme.Themes.Light.Primary = "#4318FF";
|
||||
theme.Themes.Light.Accent = "#4318FF";
|
||||
});
|
||||
}).AddI18nForServer("wwwroot/i18n");
|
||||
context.Services.AddMasaBlazor().AddI18nForServer("wwwroot/i18n");
|
||||
|
||||
var basePath = Path.GetDirectoryName(Assembly.GetAssembly(typeof(AdminBlazorServerModule)).Location) ?? throw new Exception("Get the assembly root directory exception!");
|
||||
context.Services.AddNav(Path.Combine(basePath, $"wwwroot/nav/nav.json"));
|
||||
|
|
Loading…
Reference in New Issue