Compare commits
No commits in common. "3b165b0086bdcafa5d217b2f2625d66a6a100394" and "5e088961f5bacd1ac1cb6c08c4da276ec933a6e6" have entirely different histories.
3b165b0086
...
5e088961f5
21
LICENSE
21
LICENSE
|
@ -1,21 +0,0 @@
|
|||
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,15 +23,21 @@ 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;
|
||||
|
@ -89,7 +95,14 @@ public class AdminBlazorModule : AbpModule
|
|||
var hostingEnvironment = context.Services.GetHostingEnvironment();
|
||||
var configuration = context.Services.GetConfiguration();
|
||||
|
||||
context.Services.AddMasaBlazor().AddI18nForServer("wwwroot/i18n");
|
||||
context.Services.AddMasaBlazor(builder =>
|
||||
{
|
||||
builder.ConfigureTheme(theme =>
|
||||
{
|
||||
theme.Themes.Light.Primary = "#4318FF";
|
||||
theme.Themes.Light.Accent = "#4318FF";
|
||||
});
|
||||
}).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