File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
Geta.NotFoundHandler.Admin/Areas/GetaNotFoundHandlerAdmin/Pages/Shared
Geta.NotFoundHandler/Infrastructure/Configuration Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 11@using System .Reflection
2+ @using Geta .NotFoundHandler .Infrastructure .Configuration ;
23@using Microsoft .AspNetCore .Mvc .TagHelpers
4+ @using Microsoft .Extensions .Options ;
5+ @inject IOptions <NotFoundHandlerOptions > options ;
36@{
47 var version = GetType ().Assembly .GetCustomAttribute <AssemblyInformationalVersionAttribute >()? .InformationalVersion ;
58 version = version == null ? string .Empty : $" v{version }" ;
1114 <meta name =" viewport" content =" width=device-width, initial-scale=1.0" />
1215 <title >@ViewData ["Title"]</title >
1316
14- <
link href =
" https://cdn.jsdelivr.net/npm/[email protected] /dist/css/bootstrap.min.css " rel =
" stylesheet" integrity =
" sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65 " crossorigin =
" anonymous" >
17+ <link href =" @options.Value.BootstrapCssUrl " rel =" stylesheet" integrity =" @options.Value.BootstrapCssIntegrity " crossorigin =" anonymous" >
1518 <link href =" /_content/GetaNotFoundHandlerAdmin/css/dashboard.css" rel =" stylesheet" >
1619</head >
1720<body >
8790 </div >
8891</div >
8992
90- <
script src =
" https://cdn.jsdelivr.net/npm/[email protected] /dist/js/bootstrap.bundle.min.js " integrity =
" sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4 " crossorigin =
" anonymous" ></
script >
91- <
script src =
" https://cdn.jsdelivr.net/npm/[email protected] /dist/feather.min.js " integrity =
" sha256-7kKJWwCLNN8n5rT1MNUpVPkeLxbwe1EZU73jiLdssrI= " crossorigin =
" anonymous" ></
script >
93+ <script src =" @options.Value.BootstrapJsUrl " integrity =" @options.Value.BootstrapJsIntegrity " crossorigin =" anonymous" ></script >
94+ <script src =" @options.Value.FeatherJsUrl " integrity =" @options.Value.FeatherJsIntegrity " crossorigin =" anonymous" ></script >
9295<script src =" /_content/GetaNotFoundHandlerAdmin/js/dashboard.js" ></script >
9396@RenderSection( "Scripts", required: false)
9497</body >
Original file line number Diff line number Diff line change @@ -21,6 +21,12 @@ public class NotFoundHandlerOptions
2121 public LoggerMode Logging { get ; set ; } = LoggerMode . On ;
2222 public bool LogWithHostname { get ; set ; } = false ;
2323 public string ConnectionString { get ; private set ; }
24+ public string BootstrapJsUrl { get ; set ; } = "https://cdn.jsdelivr.net/npm/[email protected] /dist/js/bootstrap.bundle.min.js" ; 25+ public string BootstrapJsIntegrity { get ; set ; } = "sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" ;
26+ public string BootstrapCssUrl { get ; set ; } = "https://cdn.jsdelivr.net/npm/[email protected] /dist/css/bootstrap.min.css" ; 27+ public string BootstrapCssIntegrity { get ; set ; } = "sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" ;
28+ public string FeatherJsUrl { get ; set ; } = "https://cdn.jsdelivr.net/npm/[email protected] /dist/feather.min.js" ; 29+ public string FeatherJsIntegrity { get ; set ; } = "sha256-7kKJWwCLNN8n5rT1MNUpVPkeLxbwe1EZU73jiLdssrI=" ;
2430
2531 private readonly List < Type > _providers = new ( ) ;
2632 public IEnumerable < Type > Providers => _providers ;
You can’t perform that action at this time.
0 commit comments