mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-01 20:01:10 +00:00
89 lines
4.1 KiB
Plaintext
89 lines
4.1 KiB
Plaintext
@using Lumina.Presentation.Web.Common.Models.Configuration
|
|
@using Microsoft.AspNetCore.Mvc.Localization
|
|
@using Microsoft.Extensions.Options
|
|
|
|
@inject IViewLocalizer _localizer
|
|
@inject IOptions<ServerConfigurationModel> _serverConfigurationModel
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>@ViewData["Title"] - Lumina</title>
|
|
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
|
|
<link rel="stylesheet" href="~/css/button.css" asp-append-version="true" />
|
|
<link rel="stylesheet" href="~/css/checkbox.css" asp-append-version="true" />
|
|
<link rel="stylesheet" href="~/css/combobox.css" asp-append-version="true" />
|
|
<link rel="stylesheet" href="~/css/file-system-browser.css" asp-append-version="true" />
|
|
<link rel="stylesheet" href="~/css/file-system-tree-view-node.css" asp-append-version="true" />
|
|
<link rel="stylesheet" href="~/css/navigation-menu.css" asp-append-version="true" />
|
|
<link rel="stylesheet" href="~/css/notification.css" asp-append-version="true" />
|
|
<link rel="stylesheet" href="~/css/dialog.css" asp-append-version="true" />
|
|
<link rel="stylesheet" href="~/css/textbox.css" asp-append-version="true" />
|
|
<link rel="stylesheet" href="~/Lumina.Presentation.Web.styles.css" asp-append-version="true" />
|
|
</head>
|
|
<body>
|
|
<div id="page">
|
|
<header>
|
|
@await Html.PartialAsync("_NavMenu")
|
|
</header>
|
|
<main role="main" style="@(User?.Identity?.IsAuthenticated == false ? "bottom: 0px;" : string.Empty)">
|
|
<article class="h-100"> <!--needs to be 100% height so that child pages that require full height as well, can stretch-->
|
|
@RenderBody()
|
|
<div id="modal-background-article"></div>
|
|
<div class="dialog-container"></div>
|
|
</article>
|
|
</main>
|
|
@if (User?.Identity?.IsAuthenticated == true)
|
|
{
|
|
<!--Audio player-->
|
|
<div class="audio-player-container">
|
|
<video controls
|
|
preload="auto"
|
|
height="50" width="600">
|
|
<source src="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" type="video/mp4">
|
|
</video>
|
|
<a id="audio-player-full-height-toggle">@_localizer["ToggleFullHeight"]</a>
|
|
<a id="audio-player-close">@_localizer["ToggleVisibility"]</a>
|
|
</div>
|
|
}
|
|
</div>
|
|
<!--Modal grid background-->
|
|
<div id="modal-background-menu"></div>
|
|
|
|
<script>
|
|
var globalConfiguration = {
|
|
serverBasePath: '@(_serverConfigurationModel.Value.BaseAddress):@(_serverConfigurationModel.Value.Port)',
|
|
apiBasePath: '@(_serverConfigurationModel.Value.BaseAddress):@(_serverConfigurationModel.Value.Port)/api/v@(_serverConfigurationModel.Value.ApiVersion)',
|
|
};
|
|
var jsLocalizedMessages = {
|
|
navigationFailed: '@_localizer["NavigationFailed"]',
|
|
};
|
|
var jsLocalizedDialogs = {
|
|
// button texts
|
|
ok: '@_localizer["Ok"]',
|
|
cancel: '@_localizer["Cancel"]',
|
|
yes: '@_localizer["Yes"]',
|
|
no: '@_localizer["No"]',
|
|
retry: '@_localizer["Retry"]',
|
|
abort: '@_localizer["Abort"]',
|
|
ignore: '@_localizer["Ignore"]',
|
|
// default titles
|
|
confirmation: '@_localizer["Confirmation"]',
|
|
warning: '@_localizer["Warning"]',
|
|
error: '@_localizer["Error"]',
|
|
information: '@_localizer["Information"]'
|
|
};
|
|
|
|
</script>
|
|
<script src="~/libs/microsoft-signalr/signalr.min.js" asp-append-version="true"></script>
|
|
<script defer src="~/js/notifications.js" asp-append-version="true"></script>
|
|
<script defer src="~/js/dialogs.js" asp-append-version="true"></script>
|
|
<script defer src="~/js/site.js" asp-append-version="true"></script>
|
|
<div data-section="scripts">
|
|
@await RenderSectionAsync("Scripts", required: false)
|
|
</div>
|
|
</body>
|
|
</html>
|