mirror of https://github.com/abpframework/abp.git
5 changed files with 34 additions and 5 deletions
|
After Width: | Height: | Size: 3.1 KiB |
@ -1,13 +1,28 @@ |
|||||
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Components; |
using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Components; |
||||
|
using Volo.Abp.Configuration; |
||||
using Volo.Abp.DependencyInjection; |
using Volo.Abp.DependencyInjection; |
||||
namespace VoloDocs.Branding |
namespace VoloDocs.Branding |
||||
{ |
{ |
||||
public class VoloDocsBrandingProvider |
[Dependency(ReplaceServices = true)] |
||||
|
public class VoloDocsBrandingProvider : DefaultBrandingProvider |
||||
{ |
{ |
||||
[Dependency(ReplaceServices = true)] |
public VoloDocsBrandingProvider(IConfigurationAccessor configurationAccessor) |
||||
public class MyProjectNameBrandingProvider : DefaultBrandingProvider |
|
||||
{ |
{ |
||||
public override string AppName => "VoloDocs"; |
var configuration = configurationAccessor.Configuration; |
||||
|
|
||||
|
if (configuration["Title"] != null) |
||||
|
{ |
||||
|
AppName = configuration["Title"]; |
||||
|
} |
||||
|
|
||||
|
if (configuration["LogoUrl"] != null) |
||||
|
{ |
||||
|
LogoUrl = configuration["LogoUrl"]; |
||||
|
} |
||||
} |
} |
||||
|
|
||||
|
public override string AppName { get; } |
||||
|
|
||||
|
public override string LogoUrl { get; } |
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,3 +1,5 @@ |
|||||
{ |
{ |
||||
"ConnectionString": "Server=localhost;Database=VoloDocs;Trusted_Connection=True;MultipleActiveResultSets=true" |
"ConnectionString": "Server=localhost;Database=VoloDocs;Trusted_Connection=True;MultipleActiveResultSets=true", |
||||
|
"Title": "Volo Documents", |
||||
|
"LogoUrl": "/Assets/Images/Logo.png" |
||||
} |
} |
||||
Loading…
Reference in new issue