Switched to new config system
This commit is contained in:
@@ -1,16 +1,12 @@
|
||||
@using Moonlight.App.Services
|
||||
@using Moonlight.App.Services.Files
|
||||
|
||||
@inject ConfigService ConfigService
|
||||
|
||||
@{
|
||||
var moonlightConfig = ConfigService
|
||||
.GetSection("Moonlight");
|
||||
}
|
||||
@inject ResourceService ResourceService
|
||||
|
||||
<div class="card card-flush w-lg-650px py-5">
|
||||
<div class="card-body py-15 py-lg-20">
|
||||
<div class="mb-14">
|
||||
<img alt="Logo" src="@(moonlightConfig.GetValue<string>("AppUrl"))/api/moonlight/resources/images/logolong.png" class="h-40px">
|
||||
<img alt="Logo" src="@(ResourceService.Image("logolong.png"))" class="h-40px">
|
||||
</div>
|
||||
<h1 class="fw-bolder text-gray-900 mb-5"><TL>Your account is banned from moonlight</TL></h1>
|
||||
<div class="fw-semibold fs-6 text-gray-500 mb-8">
|
||||
|
||||
@@ -1,16 +1,12 @@
|
||||
@using Moonlight.App.Services
|
||||
@using Moonlight.App.Services.Files
|
||||
|
||||
@inject ConfigService ConfigService
|
||||
|
||||
@{
|
||||
var moonlightConfig = ConfigService
|
||||
.GetSection("Moonlight");
|
||||
}
|
||||
@inject ResourceService ResourceService
|
||||
|
||||
<div class="card card-flush w-lg-650px py-5">
|
||||
<div class="card-body py-15 py-lg-20">
|
||||
<div class="mb-14">
|
||||
<img alt="Logo" src="@(moonlightConfig.GetValue<string>("AppUrl"))/api/moonlight/resources/images/logolong.png" class="h-40px">
|
||||
<img alt="Logo" src="@(ResourceService.Image("logolong.png"))" class="h-40px">
|
||||
</div>
|
||||
<h1 class="fw-bolder text-gray-900 mb-5"><TL>Your moonlight account is disabled</TL></h1>
|
||||
<div class="fw-semibold fs-6 text-gray-500 mb-8">
|
||||
|
||||
@@ -4,31 +4,31 @@
|
||||
|
||||
@{
|
||||
var marketingConfig = ConfigService
|
||||
.GetSection("Moonlight")
|
||||
.GetSection("Marketing");
|
||||
.Get()
|
||||
.Moonlight.Marketing;
|
||||
}
|
||||
|
||||
<div id="kt_app_footer" class="app-footer">
|
||||
<div class="app-container container-fluid d-flex flex-column flex-md-row flex-center flex-md-stack py-3">
|
||||
<div class="text-dark order-2 order-md-1">
|
||||
<span class="text-muted fw-semibold me-1">2022 - @DateTime.Now.Year©</span>
|
||||
<a href="@(marketingConfig.GetValue<string>("Website"))" target="_blank" class="text-gray-800 text-hover-primary">
|
||||
@(marketingConfig.GetValue<string>("BrandName"))
|
||||
<a href="@(marketingConfig.Website)" target="_blank" class="text-gray-800 text-hover-primary">
|
||||
@(marketingConfig.BrandName)
|
||||
</a>
|
||||
</div>
|
||||
<ul class="menu menu-gray-600 menu-hover-primary fw-semibold order-1">
|
||||
<li class="menu-item">
|
||||
<a href="@(marketingConfig.GetValue<string>("About"))" target="_blank" class="menu-link px-2">
|
||||
<a href="@(marketingConfig.About)" target="_blank" class="menu-link px-2">
|
||||
<TL>About us</TL>
|
||||
</a>
|
||||
</li>
|
||||
<li class="menu-item">
|
||||
<a href="@(marketingConfig.GetValue<string>("Imprint"))" target="_blank" class="menu-link px-2">
|
||||
<a href="@(marketingConfig.Imprint)" target="_blank" class="menu-link px-2">
|
||||
<TL>Imprint</TL>
|
||||
</a>
|
||||
</li>
|
||||
<li class="menu-item">
|
||||
<a href="@(marketingConfig.GetValue<string>("Privacy"))" target="_blank" class="menu-link px-2">
|
||||
<a href="@(marketingConfig.Privacy)" target="_blank" class="menu-link px-2">
|
||||
<TL>Privacy</TL>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
@using Moonlight.App.Services
|
||||
@using Moonlight.App.Services.Files
|
||||
|
||||
@inject ConfigService ConfigService
|
||||
|
||||
@{
|
||||
var moonlightConfig = ConfigService.GetSection("Moonlight");
|
||||
}
|
||||
@inject ResourceService ResourceService
|
||||
|
||||
<div id="kt_app_header" class="app-header">
|
||||
<div class="app-container container-fluid d-flex align-items-stretch justify-content-between">
|
||||
@@ -15,7 +11,7 @@
|
||||
</div>
|
||||
<div class="d-flex align-items-center flex-grow-1 flex-lg-grow-0">
|
||||
<a href="/" class="d-lg-none">
|
||||
<img alt="Logo" src="@(moonlightConfig.GetValue<string>("AppUrl"))/api/moonlight/resources/images/logo.svg" class="h-30px"/>
|
||||
<img alt="Logo" src="@(ResourceService.Image("logo.svg"))" class="h-30px"/>
|
||||
</a>
|
||||
</div>
|
||||
<div class="d-flex align-items-stretch justify-content-between flex-lg-grow-1" id="kt_app_header_wrapper">
|
||||
|
||||
@@ -1,32 +1,28 @@
|
||||
@using Moonlight.App.Services.Sessions
|
||||
@using Moonlight.App.Database.Entities
|
||||
@using Moonlight.App.Services
|
||||
@using Moonlight.App.Services.Files
|
||||
|
||||
@inject IdentityService IdentityService
|
||||
@inject ConfigService ConfigService
|
||||
@inject ResourceService ResourceService
|
||||
@inject IJSRuntime JsRuntime
|
||||
|
||||
@{
|
||||
var moonlightConfig = ConfigService
|
||||
.GetSection("Moonlight");
|
||||
}
|
||||
|
||||
<div id="kt_app_sidebar" class="app-sidebar flex-column" data-kt-drawer="true" data-kt-drawer-name="app-sidebar" data-kt-drawer-activate="{default: true, lg: false}" data-kt-drawer-overlay="true" data-kt-drawer-width="225px" data-kt-drawer-direction="start" data-kt-drawer-toggle="#kt_app_sidebar_mobile_toggle">
|
||||
<div class="app-sidebar-logo px-6" id="kt_app_sidebar_logo">
|
||||
<a href="@(User != null ? "/" : "/login")">
|
||||
@if (sidebar == "dark-sidebar")
|
||||
{
|
||||
<img alt="Logo" src="@(moonlightConfig.GetValue<string>("AppUrl"))/api/moonlight/resources/images/logolong.png" class="h-45px app-sidebar-logo-default"/>
|
||||
<img alt="Logo" src="@(ResourceService.Image("logolong.png"))" class="h-45px app-sidebar-logo-default"/>
|
||||
}
|
||||
else
|
||||
{
|
||||
if (sidebar == "light-sidebar")
|
||||
{
|
||||
<img alt="Logo" src="@(moonlightConfig.GetValue<string>("AppUrl"))/api/moonlight/resources/images/logo.svg" class="theme-light-show h-20px app-sidebar-logo-default"/>
|
||||
<img alt="Logo" src="@(moonlightConfig.GetValue<string>("AppUrl"))/api/moonlight/resources/images/logo.svg" class="theme-dark-show h-20px app-sidebar-logo-default"/>
|
||||
<img alt="Logo" src="@(ResourceService.Image("logo.svg"))" class="theme-light-show h-20px app-sidebar-logo-default"/>
|
||||
<img alt="Logo" src="@(ResourceService.Image("logo.svg"))" class="theme-dark-show h-20px app-sidebar-logo-default"/>
|
||||
}
|
||||
}
|
||||
<img alt="Logo" src="@(moonlightConfig.GetValue<string>("AppUrl"))/api/moonlight/resources/images/logo.svg" class="h-20px app-sidebar-logo-minimize"/>
|
||||
<img alt="Logo" src="@(ResourceService.Image("logo.svg"))" class="h-20px app-sidebar-logo-minimize"/>
|
||||
</a>
|
||||
|
||||
<div id="kt_app_sidebar_toggle" class="app-sidebar-toggle btn btn-icon btn-shadow btn-sm btn-color-muted btn-active-color-primary body-bg h-30px w-30px position-absolute top-50 start-100 translate-middle rotate" data-kt-toggle="true" data-kt-toggle-state="active" data-kt-toggle-target="body" data-kt-toggle-name="app-sidebar-minimize">
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
@using Moonlight.App.Services
|
||||
|
||||
@inject ConfigService ConfigService
|
||||
|
||||
@{
|
||||
var setupComplete = ConfigService
|
||||
.GetSection("Moonlight")
|
||||
.GetValue<bool>("SetupComplete");
|
||||
}
|
||||
|
||||
@if (!setupComplete)
|
||||
{
|
||||
@ChildContent
|
||||
}
|
||||
|
||||
@code
|
||||
{
|
||||
[Parameter]
|
||||
public RenderFragment ChildContent { get; set; }
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
@using Moonlight.App.Services
|
||||
|
||||
@inject ConfigService ConfigService
|
||||
|
||||
@{
|
||||
var setupComplete = ConfigService
|
||||
.GetSection("Moonlight")
|
||||
.GetValue<bool>("SetupComplete");
|
||||
}
|
||||
|
||||
@if (setupComplete)
|
||||
{
|
||||
@ChildContent
|
||||
}
|
||||
|
||||
@code
|
||||
{
|
||||
[Parameter]
|
||||
public RenderFragment ChildContent { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user