mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 08:11:10 +00:00
Adds localization to Lumina.Presentation.Web project
This commit is contained in:
1 parent
771fa74991
commit
2c31fd8714
65 files changed
+1111
-319
No files matched your search
@@ -4,63 +4,65 @@
|
||||
|
||||
@using Lumina.Presentation.Web.Common.Models.UsersManagement
|
||||
@using Lumina.Presentation.Web.Common.Services
|
||||
|
||||
@inject IUrlService _urlService
|
||||
@using Microsoft.AspNetCore.Mvc.Localization
|
||||
|
||||
@{
|
||||
// generate a unique id for the scripts section of this view, so it can be dynamically loaded/unloaded by the global AJAX navigator handler
|
||||
var scriptId = ScriptIdentifierHelper.GenerateScriptId();
|
||||
}
|
||||
|
||||
@inject IUrlService _urlService
|
||||
@inject IViewLocalizer _localizer
|
||||
|
||||
@model ChangePasswordRequestModel
|
||||
|
||||
<div class="enlightenment-panel shadow-effect p-2 mx-auto panel w-50 mb-10" style="min-width: 320px; margin-top: 1rem;">
|
||||
<div class="enlightenment-panel shadow-effect p-2 mx-auto panel w-55 mb-10" style="min-width: 320px; margin-top: 1rem;">
|
||||
<div class="shine-effect"></div>
|
||||
<form asp-controller="Auth" asp-action="ChangePassword" method="post" id="change-password-form" class="inline">
|
||||
<form method="post" id="change-password-form" class="inline">
|
||||
@Html.AntiForgeryToken()
|
||||
<input type="text" name="username" autocomplete="username" value="@User.Identity!.Name" hidden />
|
||||
<div class="form-container">
|
||||
<!-- Current Password -->
|
||||
<div class="form-row" id="div-current-password">
|
||||
<div class="form-label">
|
||||
<label asp-for="CurrentPassword">Current Password</label>
|
||||
<label asp-for="CurrentPassword">@_localizer["CurrentPassword"]</label>
|
||||
<span class="mandatory-field">*</span>:
|
||||
</div>
|
||||
<div class="form-field">
|
||||
<input type="password" asp-for="CurrentPassword" autocomplete="new-password" class="enlightenment-input" />
|
||||
</div>
|
||||
<small class="form-label text-disabled form-description">DescriptionCurrentPassword</small>
|
||||
<small class="form-label text-disabled form-description">@_localizer["DescriptionCurrentPassword"]</small>
|
||||
</div>
|
||||
<!-- New Password -->
|
||||
<div class="form-row" id="div-new-password">
|
||||
<div class="form-label">
|
||||
<label asp-for="NewPassword">New Password</label>
|
||||
<label asp-for="NewPassword">@_localizer["NewPassword"]</label>
|
||||
<span class="mandatory-field">*</span>:
|
||||
</div>
|
||||
<div class="form-field">
|
||||
<input type="password" asp-for="NewPassword" autocomplete="new-password" class="enlightenment-input" />
|
||||
</div>
|
||||
<small class="form-label text-disabled form-description">DescriptionNewPassword</small>
|
||||
<small class="form-label text-disabled form-description">@_localizer["DescriptionNewPassword"]</small>
|
||||
</div>
|
||||
<!-- New Password Confirm-->
|
||||
<div class="form-row" id="div-new-password-confirm">
|
||||
<div class="form-label">
|
||||
<label asp-for="NewPasswordConfirm">New Password Confirm</label>
|
||||
<label asp-for="NewPasswordConfirm">@_localizer["NewPasswordConfirm"]</label>
|
||||
<span class="mandatory-field">*</span>:
|
||||
</div>
|
||||
<div class="form-field">
|
||||
<input type="password" asp-for="NewPasswordConfirm" autocomplete="new-password" class="enlightenment-input" />
|
||||
</div>
|
||||
<small class="form-label text-disabled form-description">DescriptionNewPasswordConfirm</small>
|
||||
<small class="form-label text-disabled form-description">@_localizer["DescriptionNewPasswordConfirm"]</small>
|
||||
</div>
|
||||
<div class="form-row" id="div-change-password-submit" style="justify-content: center;">
|
||||
<button type="submit" class="confirm-button h-22px w-150px">Change Password</button>
|
||||
<button type="submit" class="confirm-button h-22px">@_localizer["ChangePasswordKey"]</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<!-- section registration success -->
|
||||
<div class="text-center w-100">
|
||||
<p id="change-password-success" class="text-light-one w-100 hidden">Password Changed</p>
|
||||
<p id="change-password-success" class="text-light-one w-100 hidden">@_localizer["PasswordChanged"]</p>
|
||||
</div>
|
||||
</div>
|
||||
@section Scripts {
|
||||
@@ -103,7 +105,5 @@
|
||||
divChangePasswordSubmit.classList.add('hidden');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
}
|
||||
@@ -4,26 +4,28 @@
|
||||
|
||||
@using Lumina.Presentation.Web.Common.Models.UsersManagement
|
||||
@using Lumina.Presentation.Web.Common.Services
|
||||
|
||||
@inject IUrlService _urlService
|
||||
@using Microsoft.AspNetCore.Mvc.Localization
|
||||
|
||||
@{
|
||||
// generate a unique id for the scripts section of this view, so it can be dynamically loaded/unloaded by the global AJAX navigator handler
|
||||
var scriptId = ScriptIdentifierHelper.GenerateScriptId();
|
||||
}
|
||||
|
||||
@inject IUrlService _urlService
|
||||
@inject IViewLocalizer _localizer
|
||||
|
||||
@model LoginRequestModel
|
||||
|
||||
<div class="enlightenment-panel shadow-effect p-2 mx-auto panel w-50 mb-10" style="min-width: 320px; margin-top: 1rem;">
|
||||
<div class="shine-effect"></div>
|
||||
<form asp-controller="Auth" asp-action="Login" method="post" id="login-form" class="inline">
|
||||
<form method="post" id="login-form" class="inline">
|
||||
@Html.AntiForgeryToken()
|
||||
<input type="hidden" name="ReturnUrl" value="@ViewData["ReturnUrl"]" />
|
||||
<div class="form-container">
|
||||
<!-- Username -->
|
||||
<div class="form-row">
|
||||
<div class="form-label">
|
||||
<label asp-for="Username">Username</label>:
|
||||
<label asp-for="Username">@_localizer["Username"]</label>:
|
||||
</div>
|
||||
<div class="form-field">
|
||||
<input asp-for="Username" autocomplete="username" class="enlightenment-input" />
|
||||
@@ -32,27 +34,27 @@
|
||||
<!-- Password -->
|
||||
<div class="form-row">
|
||||
<div class="form-label">
|
||||
<label asp-for="Password">Password</label>:
|
||||
<label asp-for="Password">@_localizer["Password"]</label>:
|
||||
</div>
|
||||
<div class="form-field">
|
||||
<input type="password" asp-for="Password" autocomplete="current-password" class="enlightenment-input" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<button id="btn-recover-password" type="button" class="abort-button h-22px w-150px">Recover Password</button>
|
||||
<button id="btn-login" type="submit" class="confirm-button h-22px w-100px">Login</button>
|
||||
<button id="btn-recover-password" type="button" class="abort-button h-22px">@_localizer["RecoverPassword"]</button>
|
||||
<button id="btn-login" type="submit" class="confirm-button h-22px">@_localizer["LoginKey"]</button>
|
||||
</div>
|
||||
<!-- 2FA -->
|
||||
<div class="form-row mt-10 hidden" id="div-totp-code">
|
||||
<div class="form-label">
|
||||
<label asp-for="TotpCode">Totp Code</label>
|
||||
<label asp-for="TotpCode">@_localizer["TotpCode"]</label>
|
||||
</div>
|
||||
<div class="form-field">
|
||||
<input type="number" asp-for="TotpCode" autocomplete="one-time-code" class="enlightenment-input" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<button type="submit" id="btn-validate-totp" class="confirm-button h-22px w-100px hidden">Validate Code</button>
|
||||
<button type="submit" id="btn-validate-totp" class="confirm-button h-22px hidden">@_localizer["ValidateCode"]</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -4,25 +4,27 @@
|
||||
|
||||
@using Lumina.Presentation.Web.Common.Models.UsersManagement
|
||||
@using Lumina.Presentation.Web.Common.Services
|
||||
|
||||
@inject IUrlService _urlService
|
||||
@using Microsoft.AspNetCore.Mvc.Localization
|
||||
|
||||
@{
|
||||
// generate a unique id for the scripts section of this view, so it can be dynamically loaded/unloaded by the global AJAX navigator handler
|
||||
var scriptId = ScriptIdentifierHelper.GenerateScriptId();
|
||||
}
|
||||
|
||||
@inject IUrlService _urlService
|
||||
@inject IViewLocalizer _localizer
|
||||
|
||||
@model RecoverPasswordRequestModel
|
||||
|
||||
<div class="enlightenment-panel shadow-effect p-2 mx-auto panel w-50 mb-10" style="min-width: 320px; margin-top: 1rem;">
|
||||
<div class="shine-effect"></div>
|
||||
<form asp-controller="Auth" asp-action="RecoverPassword" method="post" id="recover-password-form" class="inline">
|
||||
<form method="post" id="recover-password-form" class="inline">
|
||||
@Html.AntiForgeryToken()
|
||||
<div class="form-container">
|
||||
<!-- Username -->
|
||||
<div class="form-row" id="div-username">
|
||||
<div class="form-label">
|
||||
<label asp-for="Username">Username</label>
|
||||
<label asp-for="Username">@_localizer["Username"]</label>
|
||||
<span class="mandatory-field">*</span>:
|
||||
</div>
|
||||
<div class="form-field">
|
||||
@@ -32,7 +34,7 @@
|
||||
<!-- 2FA -->
|
||||
<div class="form-row" id="div-totp-code">
|
||||
<div class="form-label">
|
||||
<label asp-for="TotpCode">Totp Code</label>
|
||||
<label asp-for="TotpCode">@_localizer["TotpCode"]</label>
|
||||
<span class="mandatory-field">*</span>:
|
||||
</div>
|
||||
<div class="form-field">
|
||||
@@ -40,15 +42,15 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<button id="btn-login" type="button" class="abort-button h-22px w-100px">Back To Login</button>
|
||||
<button type="submit" id="btn-validate-totp" class="confirm-button h-22px w-100px">Validate Code</button>
|
||||
<button id="btn-login" type="button" class="abort-button h-22px">@_localizer["BackToLogin"]</button>
|
||||
<button type="submit" id="btn-validate-totp" class="confirm-button h-22px">@_localizer["ValidateCode"]</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<!-- section registration success -->
|
||||
<div class="text-center w-100">
|
||||
<p id="recover-password-success" class="text-light-one w-100 hidden">Password Temporarily Reset</p>
|
||||
<button id="btn-redirect-login" type="submit" class="confirm-button h-22px w-80px hidden">Login</button>
|
||||
<p id="recover-password-success" class="text-light-one w-100 hidden">@_localizer["PasswordTemporarilyReset"]</p>
|
||||
<button id="btn-redirect-login" type="submit" class="confirm-button h-22px hidden">@_localizer["Login"]</button>
|
||||
</div>
|
||||
</div>
|
||||
@section Scripts {
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
@using Lumina.Presentation.Web.Common.Models.UsersManagement
|
||||
@using Lumina.Presentation.Web.Common.Services
|
||||
@using Microsoft.AspNetCore.Mvc.Localization
|
||||
|
||||
@{
|
||||
string? registrationType = ViewData["RegistrationType"] as string;
|
||||
@@ -12,12 +13,13 @@
|
||||
}
|
||||
|
||||
@inject IUrlService _urlService
|
||||
@inject IViewLocalizer _localizer
|
||||
|
||||
@model RegisterRequestModel
|
||||
|
||||
<div class="enlightenment-panel shadow-effect p-2 mx-auto panel w-50 mb-10" style="min-width: 320px; margin-top: 1rem;">
|
||||
<div class="shine-effect"></div>
|
||||
<form asp-controller="Auth" asp-action="Register" method="post" id="register-account-form" class="inline">
|
||||
<form method="post" id="register-account-form" class="inline">
|
||||
@Html.AntiForgeryToken()
|
||||
<!-- section for determining registration type (regular user/admin) -->
|
||||
<input type="hidden" name="RegistrationType" value="@registrationType" />
|
||||
@@ -25,41 +27,41 @@
|
||||
@if (registrationType == "Admin")
|
||||
{
|
||||
<div class="form-row">
|
||||
<p class="invalid-feedback w-95 text-center f-18">Admin account registration</p>
|
||||
<p class="invalid-feedback w-95 text-center f-18">@_localizer["AdminAccountRegistration"]</p>
|
||||
</div>
|
||||
}
|
||||
<!-- Username -->
|
||||
<div class="form-row">
|
||||
<div class="form-label">
|
||||
<label asp-for="Username">Username</label>
|
||||
<label asp-for="Username">@_localizer["Username"]</label>
|
||||
<span class="mandatory-field">*</span>:
|
||||
</div>
|
||||
<div class="form-field">
|
||||
<input asp-for="Username" autocomplete="username" class="enlightenment-input" />
|
||||
</div>
|
||||
<small class="form-label text-disabled form-description">DescriptionUsername</small>
|
||||
<small class="form-label text-disabled form-description">@_localizer["DescriptionUsername"]</small>
|
||||
</div>
|
||||
<!-- Password -->
|
||||
<div class="form-row">
|
||||
<div class="form-label">
|
||||
<label asp-for="Password">Password</label>
|
||||
<label asp-for="Password">@_localizer["Password"]</label>
|
||||
<span class="mandatory-field">*</span>:
|
||||
</div>
|
||||
<div class="form-field">
|
||||
<input type="password" asp-for="Password" autocomplete="new-password" class="enlightenment-input" />
|
||||
</div>
|
||||
<small class="form-label text-disabled form-description">DescriptionPassword</small>
|
||||
<small class="form-label text-disabled form-description">@_localizer["DescriptionPassword"]</small>
|
||||
</div>
|
||||
<!-- Password Confirm-->
|
||||
<div class="form-row">
|
||||
<div class="form-label">
|
||||
<label asp-for="PasswordConfirm">Password Confirm</label>
|
||||
<label asp-for="PasswordConfirm">@_localizer["PasswordConfirm"]</label>
|
||||
<span class="mandatory-field">*</span>:
|
||||
</div>
|
||||
<div class="form-field">
|
||||
<input type="password" asp-for="PasswordConfirm" autocomplete="new-password" class="enlightenment-input" />
|
||||
</div>
|
||||
<small class="form-label text-disabled form-description">DescriptionPasswordConfirm</small>
|
||||
<small class="form-label text-disabled form-description">@_localizer["DescriptionPasswordConfirm"]</small>
|
||||
</div>
|
||||
<!-- 2FA -->
|
||||
<input type="hidden" id="hidden-use-two-fa" name="use2fa" value="true">
|
||||
@@ -68,27 +70,27 @@
|
||||
<label class="enlightenment-checkbox-label">
|
||||
<input type="checkbox" asp-for="Use2fa" class="enlightenment-checkbox-hidden" value="true" checked/>
|
||||
<span class="enlightenment-checkbox"></span>
|
||||
Enable two factor authentication
|
||||
@_localizer["EnableTwoFactorAuthentication"]
|
||||
</label>
|
||||
</div>
|
||||
<small class="form-label text-disabled form-description">Description2Fa</small>
|
||||
<small class="form-label text-disabled form-description">@_localizer["Description2Fa"]</small>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<span id="register-two-fa-attention" class="invalid-feedback w-95 text-center hidden">Password recovery is allowed only if two factor authentication is enabled!</span>
|
||||
<span id="register-two-fa-attention" class="invalid-feedback w-95 text-center hidden">@_localizer["DisclaimerTwoFactor"]</span>
|
||||
</div>
|
||||
<div class="form-row" style="justify-content: center;">
|
||||
<button type="submit" class="confirm-button h-22px w-100px">Register</button>
|
||||
<button type="submit" class="confirm-button h-22px">@_localizer["RegisterKey"]</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<!-- section registration success -->
|
||||
<div class="text-center w-100">
|
||||
<p id="register-success" class="text-light-one w-100 hidden">Account Created</p>
|
||||
<p id="register-success" class="text-light-one w-100 hidden">@_localizer["AccountCreated"]</p>
|
||||
<img id="totp-image" class="w-200px h-200px h-align-m mx-auto mt-10 hidden" />
|
||||
<p id="totp-message" class="text-light-one w-100 hidden">Scan Totp Code</p>
|
||||
<p id="totp-message" class="text-light-one w-100 hidden">@_localizer["ScanTotpCode"]</p>
|
||||
@if (User?.Identity?.IsAuthenticated == false)
|
||||
{
|
||||
<button id="btn-login" type="button" class="confirm-button h-22px w-80px mx-auto mt-10 hidden">Login</button>
|
||||
<button id="btn-login" type="button" class="confirm-button h-22px mx-auto mt-10 hidden">@_localizer["Login"]</button>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
@@ -144,11 +146,11 @@
|
||||
}
|
||||
document.querySelector('[name="Use2fa"]').addEventListener('change', function () {
|
||||
const isChecked = this.checked;
|
||||
document.getElementById('#register-two-fa-attention').classList.replace(
|
||||
document.getElementById('register-two-fa-attention').classList.replace(
|
||||
isChecked ? 'inline' : 'hidden',
|
||||
isChecked ? 'hidden' : 'inline'
|
||||
);
|
||||
document.getElementById('#hidden-use-two-fa').value = isChecked.toString();
|
||||
document.getElementById('hidden-use-two-fa').value = isChecked.toString();
|
||||
});
|
||||
if (btnLogin) {
|
||||
btnLogin.addEventListener('click', () => {
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
|
||||
@using Lumina.Presentation.Web.Common.Models.Libraries
|
||||
@using Lumina.Presentation.Web.Common.Services
|
||||
@using Microsoft.AspNetCore.Mvc.Localization
|
||||
|
||||
@{
|
||||
var id = Context.Request.RouteValues["id"] as string;
|
||||
@@ -12,6 +13,7 @@
|
||||
}
|
||||
|
||||
@inject IUrlService _urlService
|
||||
@inject IViewLocalizer _localizer
|
||||
|
||||
@model LibraryModel
|
||||
|
||||
@@ -19,30 +21,32 @@
|
||||
|
||||
<div class="enlightenment-panel shadow-effect p-2 mx-auto panel w-50 mb-10" style="min-width: 320px; margin-top: 1rem;">
|
||||
<div class="shine-effect"></div>
|
||||
<form asp-controller="LibraryManagement" asp-action="EditLibrary" method="post" id="add-media-library-form" class="inline">
|
||||
<form method="post" id="add-media-library-form" class="inline">
|
||||
@Html.AntiForgeryToken()
|
||||
<input type="hidden" asp-for="Id" value="@id" />
|
||||
<input type="hidden" asp-for="UserId" value="@Model.UserId"/>
|
||||
<div class="form-row">
|
||||
<h1 class="text-light-two w-100 text-center pt-0 pb-0 engraved-title">@(id is not null ? "Edit" : "Add New") Library</h1>
|
||||
<h1 class="text-light-two w-100 text-center pt-0 pb-0 engraved-title">
|
||||
@(_localizer[id is not null ? "EditLibrary" : "AddNewLibrary"])
|
||||
</h1>
|
||||
</div>
|
||||
<div class="form-container">
|
||||
<h3 class="text-light-two">General Information</h3>
|
||||
<h3 class="text-light-two">@_localizer["GeneralInformation"]</h3>
|
||||
<!-- Title -->
|
||||
<div class="form-row">
|
||||
<div class="form-label">
|
||||
<label asp-for="Title">Title</label>
|
||||
<label asp-for="Title">@_localizer["Title"]</label>
|
||||
<span class="mandatory-field">*</span>:
|
||||
</div>
|
||||
<div class="form-field">
|
||||
<input asp-for="Title" class="enlightenment-input" />
|
||||
</div>
|
||||
<small class="form-label text-disabled form-description">DescriptionTitle</small>
|
||||
<small class="form-label text-disabled form-description">@_localizer["DescriptionTitle"]</small>
|
||||
</div>
|
||||
<!-- Library Type -->
|
||||
<div class="form-row">
|
||||
<div class="form-label">
|
||||
<label asp-for="LibraryType">Library Type</label>
|
||||
<label asp-for="LibraryType">@_localizer["LibraryType"]</label>
|
||||
<span class="mandatory-field">*</span>:
|
||||
</div>
|
||||
<div class="form-field">
|
||||
@@ -50,60 +54,59 @@
|
||||
<div class="shine-effect" style="top: 1px;"></div>
|
||||
<input type="checkbox" class="enlightenment-toggle-checkbox" id="library-type" />
|
||||
<label class="enlightenment-toggle" for="library-type">
|
||||
<span class="enlightenment-selected-text">@Model.LibraryType</span>
|
||||
<span id="library-selected-item" class="enlightenment-selected-text" data-value="@(Model.LibraryType ?? "Book")">@(Model.LibraryType ?? _localizer["Book"].Value)</span>
|
||||
</label>
|
||||
<div class="enlightenment-dropdown">
|
||||
<div class="shine-effect" style="top: -4px;"></div>
|
||||
<!-- Dropdown options remain the same -->
|
||||
<div class="enlightenment-option first-option disabled">Written Content</div>
|
||||
<div class="enlightenment-option" data-value="Book">Book</div>
|
||||
<div class="enlightenment-option" data-value="EBook">E Book</div>
|
||||
<div class="enlightenment-option" data-value="BookSeries">Book Series</div>
|
||||
<div class="enlightenment-option" data-value="ComicBook">Comic Book</div>
|
||||
<div class="enlightenment-option" data-value="ComicSeries">Comic Series</div>
|
||||
<div class="enlightenment-option" data-value="Magazine">Magazine</div>
|
||||
<div class="enlightenment-option" data-value="Manga">Manga</div>
|
||||
<div class="enlightenment-option" data-value="GraphicNovel">Graphic Novel</div>
|
||||
<div class="enlightenment-option" data-value="AcademicPaper">Academic Paper</div>
|
||||
<div class="enlightenment-option" data-value="SheetMusic">Sheet Music</div>
|
||||
<div class="enlightenment-option" data-value="Screenplay">Screenplay</div>
|
||||
<div class="enlightenment-option disabled">Video Content</div>
|
||||
<div class="enlightenment-option" data-value="TvShow">Tv Show</div>
|
||||
<div class="enlightenment-option" data-value="Movie">Movie</div>
|
||||
<div class="enlightenment-option" data-value="FilmSeries">Film Series</div>
|
||||
<div class="enlightenment-option" data-value="FilmFranchise">Film Franchise</div>
|
||||
<div class="enlightenment-option" data-value="Concert">Concert</div>
|
||||
<div class="enlightenment-option" data-value="Documentary">Documentary</div>
|
||||
<div class="enlightenment-option" data-value="Tutorial">Tutorial</div>
|
||||
<div class="enlightenment-option" data-value="Personal">Personal</div>
|
||||
<div class="enlightenment-option" data-value="Anime">Anime</div>
|
||||
<div class="enlightenment-option" data-value="Youtube">Youtube</div>
|
||||
<div class="enlightenment-option" data-value="Videoclip">Videoclip</div>
|
||||
<div class="enlightenment-option disabled">Audio Content</div>
|
||||
<div class="enlightenment-option" data-value="Music">Music</div>
|
||||
<div class="enlightenment-option" data-value="AudioBook">Audio Book</div>
|
||||
<div class="enlightenment-option" data-value="LivePerformance">Live Performance</div>
|
||||
<div class="enlightenment-option" data-value="Interview">Interview</div>
|
||||
<div class="enlightenment-option" data-value="Cover">Cover</div>
|
||||
<div class="enlightenment-option" data-value="Remix">Remix</div>
|
||||
<div class="enlightenment-option" data-value="Soundeffect">Soundeffect</div>
|
||||
<div class="enlightenment-option" data-value="Podcast">Podcast</div>
|
||||
<div class="enlightenment-option" data-value="RadioShow">Radio Show</div>
|
||||
<div class="enlightenment-option disabled">Visual Content</div>
|
||||
<div class="enlightenment-option" data-value="PhotoAlbum">Photo Album</div>
|
||||
<div class="enlightenment-option disabled">Miscellaneous Content</div>
|
||||
<div class="enlightenment-option last-option" data-value="Other">Other</div>
|
||||
<div class="enlightenment-option first-option disabled">@_localizer["WrittenContent"]</div>
|
||||
<div class="enlightenment-option" data-value="Book">@_localizer["Book"]</div>
|
||||
<div class="enlightenment-option" data-value="EBook">@_localizer["EBook"]</div>
|
||||
<div class="enlightenment-option" data-value="BookSeries">@_localizer["BookSeries"]</div>
|
||||
<div class="enlightenment-option" data-value="ComicBook">@_localizer["ComicBook"]</div>
|
||||
<div class="enlightenment-option" data-value="ComicSeries">@_localizer["ComicSeries"]</div>
|
||||
<div class="enlightenment-option" data-value="Magazine">@_localizer["Magazine"]</div>
|
||||
<div class="enlightenment-option" data-value="Manga">@_localizer["Manga"]</div>
|
||||
<div class="enlightenment-option" data-value="GraphicNovel">@_localizer["GraphicNovel"]</div>
|
||||
<div class="enlightenment-option" data-value="AcademicPaper">@_localizer["AcademicPaper"]</div>
|
||||
<div class="enlightenment-option" data-value="SheetMusic">@_localizer["SheetMusic"]</div>
|
||||
<div class="enlightenment-option" data-value="Screenplay">@_localizer["Screenplay"]</div>
|
||||
<div class="enlightenment-option disabled">@_localizer["VideoContent"]</div>
|
||||
<div class="enlightenment-option" data-value="TvShow">@_localizer["TvShow"]</div>
|
||||
<div class="enlightenment-option" data-value="Movie">@_localizer["Movie"]</div>
|
||||
<div class="enlightenment-option" data-value="FilmSeries">@_localizer["FilmSeries"]</div>
|
||||
<div class="enlightenment-option" data-value="FilmFranchise">@_localizer["FilmFranchise"]</div>
|
||||
<div class="enlightenment-option" data-value="Concert">@_localizer["Concert"]</div>
|
||||
<div class="enlightenment-option" data-value="Documentary">@_localizer["Documentary"]</div>
|
||||
<div class="enlightenment-option" data-value="Tutorial">@_localizer["Tutorial"]</div>
|
||||
<div class="enlightenment-option" data-value="Personal">@_localizer["Personal"]</div>
|
||||
<div class="enlightenment-option" data-value="Anime">@_localizer["Anime"]</div>
|
||||
<div class="enlightenment-option" data-value="Youtube">@_localizer["Youtube"]</div>
|
||||
<div class="enlightenment-option" data-value="Videoclip">@_localizer["Videoclip"]</div>
|
||||
<div class="enlightenment-option disabled">@_localizer["AudioContent"]</div>
|
||||
<div class="enlightenment-option" data-value="Music">@_localizer["Music"]</div>
|
||||
<div class="enlightenment-option" data-value="AudioBook">@_localizer["AudioBook"]</div>
|
||||
<div class="enlightenment-option" data-value="LivePerformance">@_localizer["LivePerformance"]</div>
|
||||
<div class="enlightenment-option" data-value="Interview">@_localizer["Interview"]</div>
|
||||
<div class="enlightenment-option" data-value="Cover">@_localizer["Cover"]</div>
|
||||
<div class="enlightenment-option" data-value="Remix">@_localizer["Remix"]</div>
|
||||
<div class="enlightenment-option" data-value="Soundeffect">@_localizer["Soundeffect"]</div>
|
||||
<div class="enlightenment-option" data-value="Podcast">@_localizer["Podcast"]</div>
|
||||
<div class="enlightenment-option" data-value="RadioShow">@_localizer["RadioShow"]</div>
|
||||
<div class="enlightenment-option disabled">@_localizer["VisualContent"]</div>
|
||||
<div class="enlightenment-option" data-value="PhotoAlbum">@_localizer["PhotoAlbum"]</div>
|
||||
<div class="enlightenment-option disabled">@_localizer["MiscellaneousContent"]</div>
|
||||
<div class="enlightenment-option last-option" data-value="Other">@_localizer["Other"]</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<small class="form-label text-disabled form-description">DescriptionLibraryType</small>
|
||||
<small class="form-label text-disabled form-description">@_localizer["DescriptionLibraryType"]</small>
|
||||
</div>
|
||||
<!-- Directories -->
|
||||
<div class="form-row mt-10">
|
||||
<div class="form-label">
|
||||
<label asp-for="ContentLocations">Directories</label>
|
||||
<label asp-for="ContentLocations">@_localizer["Directories"]</label>
|
||||
<span class="mandatory-field">*</span>:
|
||||
<img src="~/images/ui/add-directory.svg" alt="Add directory" id="add-media-directory" title="Add directory" class="add-form-table-row-icon ml-5" />
|
||||
<img src="~/images/ui/add-directory.svg" alt="@_localizer["AddDirectory"]" id="add-media-directory" title="@_localizer["AddDirectory"]" class="add-form-table-row-icon ml-5" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
@@ -112,22 +115,22 @@
|
||||
{
|
||||
<div class="form-table-row">
|
||||
<span title="@Model.ContentLocations[i]">@Model.ContentLocations[i]</span>
|
||||
<img src="~/images/ui/delete.svg" alt="Remove" title="Remove" class="remove-form-table-row-icon" />
|
||||
<img src="~/images/ui/delete.svg" alt="@_localizer["Remove"]" title="@_localizer["Remove"]" class="remove-form-table-row-icon" />
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<small class="form-label text-disabled form-description">DescriptionDirectories</small>
|
||||
<small class="form-label text-disabled form-description">@_localizer["DescriptionDirectories"]</small>
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<button type="submit" class="confirm-button w-100px">Save</button>
|
||||
<button type="submit" class="confirm-button w-100px">@_localizer["Save"]</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<!-- section success -->
|
||||
<div class="text-center w-100">
|
||||
<p id="save-success" class="text-light-one w-100 hidden">Library Saved</p>
|
||||
<button id="btn-back-to-libraries" type="button" class="abort-button h-22px w-150px mx-auto mt-10 hidden">Back To Libraries</button>
|
||||
<button id="btn-add-new-library" type="button" class="confirm-button h-22px w-150px mx-auto mt-10 hidden">Add New Library</button>
|
||||
<p id="save-success" class="text-light-one w-100 hidden">@_localizer["LibrarySaved"]</p>
|
||||
<button id="btn-back-to-libraries" type="button" class="abort-button h-22px w-150px mx-auto mt-10 hidden">@_localizer["BackToLibraries"]</button>
|
||||
<button id="btn-add-new-library" type="button" class="confirm-button h-22px w-150px mx-auto mt-10 hidden">@_localizer["AddNewLibrary"]</button>
|
||||
</div>
|
||||
</div>
|
||||
@section Scripts {
|
||||
@@ -154,7 +157,7 @@
|
||||
Id: form.querySelector('[name="Id"]').value || null,
|
||||
UserId: form.querySelector('[name="UserId"]').value || null,
|
||||
Title: form.querySelector('[name="Title"]').value,
|
||||
LibraryType: form.querySelector('.enlightenment-selected-text').textContent,
|
||||
LibraryType: form.querySelector('#library-selected-item').getAttribute('data-value'),
|
||||
ContentLocations: Array.from(form.querySelectorAll('.form-table-row span'))
|
||||
.map(span => span.textContent)
|
||||
};
|
||||
@@ -198,7 +201,7 @@
|
||||
formTable.insertAdjacentHTML('beforeend', `
|
||||
<div class="form-table-row">
|
||||
<span title="${path}">${path}</span>
|
||||
<img src="/images/ui/delete.svg" alt="Remove" title="Remove" class="remove-form-table-row-icon" onclick="this.closest('.form-table-row').remove();" />
|
||||
<img src="/images/ui/delete.svg" alt="@_localizer["Remove"]" title="@_localizer["Remove"]" class="remove-form-table-row-icon" onclick="this.closest('.form-table-row').remove();" />
|
||||
</div>
|
||||
`);
|
||||
}
|
||||
|
||||
+27
-24
@@ -4,10 +4,13 @@
|
||||
@using Lumina.Presentation.Web.Common.Enums.Notifications
|
||||
@using Lumina.Presentation.Web.Common.Exceptions
|
||||
@using Lumina.Presentation.Web.Common.Models.FileSystemManagement
|
||||
@using Microsoft.AspNetCore.Mvc.Localization
|
||||
@using Microsoft.AspNetCore.Components
|
||||
@using System.Text.Json
|
||||
@using System.Text
|
||||
|
||||
@inject IViewLocalizer _localizer
|
||||
|
||||
<div id="file-system-browser-dialog" class="container-background above-modal">
|
||||
<div id="file-system-browser-content">
|
||||
<div id="file-system-browser-header">
|
||||
@@ -18,7 +21,7 @@
|
||||
<div id="navigator-view-mode-container">
|
||||
<!--List View Mode-->
|
||||
<svg id="navigator-list-view" class="navigator-icon" width="30" height="30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>List View</title>
|
||||
<title>@_localizer["ListView"]</title>
|
||||
<defs>
|
||||
<filter id="glow" x="-50%" y="-50%" width="200%" height="200%">
|
||||
<feComponentTransfer in="SourceAlpha" result="adjustedAlpha">
|
||||
@@ -70,7 +73,7 @@
|
||||
</svg>
|
||||
<!--Details View Mode-->
|
||||
<svg id="navigator-details-view" class="navigator-icon" width="30" height="30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>Details View</title>
|
||||
<title>@_localizer["DetailsView"]</title>
|
||||
<defs>
|
||||
<filter id="glow" x="-50%" y="-50%" width="200%" height="200%">
|
||||
<feComponentTransfer in="SourceAlpha" result="adjustedAlpha">
|
||||
@@ -121,7 +124,7 @@
|
||||
</svg>
|
||||
<!--Small Icons View Mode-->
|
||||
<svg id="navigator-small-icons-view" class="navigator-icon" width="30" height="30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>Small Icons View</title>
|
||||
<title>@_localizer["SmallIconsView"]</title>
|
||||
<defs>
|
||||
<filter id="glow" x="-50%" y="-50%" width="200%" height="200%">
|
||||
<feComponentTransfer in="SourceAlpha" result="adjustedAlpha">
|
||||
@@ -182,7 +185,7 @@
|
||||
</svg>
|
||||
<!--Medium Icons View Mode-->
|
||||
<svg id="navigator-medium-icons-view" class="navigator-icon" width="30" height="30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>Medium Icons View</title>
|
||||
<title>@_localizer["MediumIconsView"]</title>
|
||||
<defs>
|
||||
<filter id="glow" x="-50%" y="-50%" width="200%" height="200%">
|
||||
<feComponentTransfer in="SourceAlpha" result="adjustedAlpha">
|
||||
@@ -228,7 +231,7 @@
|
||||
</svg>
|
||||
<!--Large Icons View Mode-->
|
||||
<svg id="navigator-large-icons-view" class="navigator-icon" width="30" height="30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>Large Icons View</title>
|
||||
<title>@_localizer["LargeIconsView"]</title>
|
||||
<defs>
|
||||
<filter id="glow" x="-50%" y="-50%" width="200%" height="200%">
|
||||
<feComponentTransfer in="SourceAlpha" result="adjustedAlpha">
|
||||
@@ -265,7 +268,7 @@
|
||||
</svg>
|
||||
<!--Extra Large Icons View Mode-->
|
||||
<svg id="navigator-extra-large-icons-view" class="navigator-icon" width="30" height="30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>Extra Large Icons View</title>
|
||||
<title>@_localizer["ExtraLargeIconsView"]</title>
|
||||
<defs>
|
||||
<filter id="glow" x="-50%" y="-50%" width="200%" height="200%">
|
||||
<feComponentTransfer in="SourceAlpha" result="adjustedAlpha">
|
||||
@@ -304,13 +307,13 @@
|
||||
<div id="navigator-navigation-controls-container">
|
||||
<!--Navigation-->
|
||||
<div id="navigator-history">
|
||||
<img src="~/images/ui/back.svg" id="navigator-navigate-back" class="navigation-icon" alt="Back" title="Back" />
|
||||
<img src="~/images/ui/forward.svg" id="navigator-navigate-forward" class="navigation-icon" alt="Forward" title="Forward" />
|
||||
<img src="~/images/ui/up.svg" id="navigator-navigate-up" class="navigation-icon" alt="Up One Level" title="Up One Level" />
|
||||
<img src="~/images/ui/back.svg" id="navigator-navigate-back" class="navigation-icon" alt="@_localizer["Back"]" title="@_localizer["Back"]" />
|
||||
<img src="~/images/ui/forward.svg" id="navigator-navigate-forward" class="navigation-icon" alt="@_localizer["Forward"]" title="@_localizer["Forward"]" />
|
||||
<img src="~/images/ui/up.svg" id="navigator-navigate-up" class="navigation-icon" alt="@_localizer["UpOneLevel"]" title="@_localizer["UpOneLevel"]" />
|
||||
</div>
|
||||
<!--Toggle Tree View-->
|
||||
<svg id="navigator-toggle-tree-view-button" class="navigator-icon" width="30" height="30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>Toggle Tree View</title>
|
||||
<title>@_localizer["ToggleTreeView"]</title>
|
||||
<defs>
|
||||
<filter id="glow" x="-50%" y="-50%" width="200%" height="200%">
|
||||
<feComponentTransfer in="SourceAlpha" result="adjustedAlpha">
|
||||
@@ -346,7 +349,7 @@
|
||||
</svg>
|
||||
<!--Toggle Thumbnails-->
|
||||
<svg id="navigator-toggle-thumbnails-button" class="navigator-icon" width="30" height="30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>Toggle Thumbanils</title>
|
||||
<title>@_localizer["ToggleThumbanils"]</title>
|
||||
<defs>
|
||||
<filter id="glow" x="-50%" y="-50%" width="200%" height="200%">
|
||||
<feComponentTransfer in="SourceAlpha" result="adjustedAlpha">
|
||||
@@ -382,7 +385,7 @@
|
||||
</svg>
|
||||
<!--Toggle Hidden Elements-->
|
||||
<svg id="navigator-toggle-hidden-button" class="navigator-icon" width="30" height="30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>Toggle Hidden Items</title>
|
||||
<title>@_localizer["ToggleHiddenItems"]</title>
|
||||
<defs>
|
||||
<filter id="glow" x="-50%" y="-50%" width="200%" height="200%">
|
||||
<feComponentTransfer in="SourceAlpha" result="adjustedAlpha">
|
||||
@@ -420,7 +423,7 @@
|
||||
</svg>
|
||||
<!--Toggle Selection Mode-->
|
||||
<svg id="navigator-toggle-selection-button" class="navigator-icon" width="30" height="30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>Toggle Selection Mode</title>
|
||||
<title>@_localizer["ToggleSelectionMode"]</title>
|
||||
<defs>
|
||||
<filter id="glow" x="-50%" y="-50%" width="200%" height="200%">
|
||||
<feComponentTransfer in="SourceAlpha" result="adjustedAlpha">
|
||||
@@ -464,16 +467,16 @@
|
||||
</div>
|
||||
</div>
|
||||
<button id="navigator-edit-path-button" class="navigator-edit-path-button abort-button f-16" style="height:28px; width:35px;">
|
||||
<img src="~/images/ui/edit.svg" id="navigator-edit-icon" alt="Edit Path" title="Edit Path" />
|
||||
<img src="~/images/ui/edit.svg" id="navigator-edit-icon" alt="@_localizer["EditPath"]" title="@_localizer["EditPath"]" />
|
||||
</button>
|
||||
<button id="navigator-navigate-button" class="navigator-navigate-button confirm-button f-16" style="height:28px; width:35px;">
|
||||
<img src="~/images/ui/check.svg" id="navigator-navigate-icon" alt="Navigate" title="Navigate" />
|
||||
<img src="~/images/ui/check.svg" id="navigator-navigate-icon" alt="@_localizer["Navigate"]" title="@_localizer["Navigate"]" />
|
||||
</button>
|
||||
<button class="file-system-browser-content-new-directory abort-button f-16" style="height:28px; width:35px;">
|
||||
<img src="~/images/ui/new-directory.svg" id="navigator-new-directory-icon" alt="New Directory" title="New Directory" />
|
||||
<img src="~/images/ui/new-directory.svg" id="navigator-new-directory-icon" alt="@_localizer["NewDirectory"]" title="@_localizer["NewDirectory"]" />
|
||||
</button>
|
||||
<button class="file-system-browser-content-favorite-directory abort-button f-16" style="height:28px; width:35px;">
|
||||
<img src="~/images/ui/favorite-star.svg" class="navigation-icon favorite-unselected" alt="Favorite directory" title="Favorite directory" />
|
||||
<img src="~/images/ui/favorite-star.svg" class="navigation-icon favorite-unselected" alt="@_localizer["FavoriteDirectory"]" title="@_localizer["FavoriteDirectory"]" />
|
||||
</button>
|
||||
</div>
|
||||
<!--End File System Navigator-->
|
||||
@@ -492,7 +495,7 @@
|
||||
<div id="file-system-browser-file-system-directories">
|
||||
<div id="file-system-browser-file-system-explorer-container" class="scroll-horizontal">
|
||||
<div id="file-system-browser-file-system-explorer-details-header" style="height: 0px;">
|
||||
<span>Name</span>
|
||||
<span>@_localizer["Name"]</span>
|
||||
</div>
|
||||
<div id="file-system-browser-file-system-explorer">
|
||||
</div>
|
||||
@@ -502,20 +505,20 @@
|
||||
</div>
|
||||
<div id="file-system-browser-actions-container">
|
||||
<div id="file-system-browser-actions-path-container">
|
||||
<label class="text-light-one">Directory</label>
|
||||
<label class="text-light-one">@_localizer["Directory"]</label>
|
||||
<input type="text" id="file-system-browser-selected-element" Name="file-system-browser-selected-element" class="enlightenment-input w-100" readonly autocomplete="on" />
|
||||
</div>
|
||||
<div id="file-system-browser-actions">
|
||||
<button id="file-system-browser-cancel-button" class="abort-button w-100px">Cancel</button>
|
||||
<button id="file-system-browser-confirm-button" class="confirm-button w-100px" disabled>Open</button>
|
||||
<button id="file-system-browser-cancel-button" class="abort-button w-100px">@_localizer["Cancel"]</button>
|
||||
<button id="file-system-browser-confirm-button" class="confirm-button w-100px" disabled>@_localizer["Open"]</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@* <div id="divModal"></div>
|
||||
<label class="text-light-one">Enter new directory name:</label>
|
||||
<label class="text-light-one">@_localizer["EnterNewDirectoryName"]</label>
|
||||
<EnlightenmentInput Type="text" Name="newDirectoryName" AutoComplete="true" />
|
||||
<EnlightenmentButton IsConfirmButton="false">Cancel</EnlightenmentButton>
|
||||
<EnlightenmentButton>Confirm</EnlightenmentButton> *@
|
||||
<EnlightenmentButton IsConfirmButton="false">@_localizer["Cancel"]</EnlightenmentButton>
|
||||
<EnlightenmentButton>@_localizer["Confirm"]</EnlightenmentButton> *@
|
||||
</div>
|
||||
<div id="visible-selection-rectangle"></div>
|
||||
<div id="selection-rectangle"></div>
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
@using Microsoft.AspNetCore.Mvc.Localization
|
||||
|
||||
@inject IViewLocalizer _localizer
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
@@ -27,7 +31,6 @@
|
||||
</article>
|
||||
</main>
|
||||
@if (User?.Identity?.IsAuthenticated == true)
|
||||
|
||||
{
|
||||
<!--Audio player-->
|
||||
<div class="audio-player-container">
|
||||
@@ -36,8 +39,8 @@
|
||||
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">Toggle Full Height</a>
|
||||
<a id="audio-player-close">Toggle Visibility</a>
|
||||
<a id="audio-player-full-height-toggle">@_localizer["ToggleFullHeight"]</a>
|
||||
<a id="audio-player-close">@_localizer["ToggleVisibility"]</a>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
@using Lumina.Presentation.Web.Common.Services
|
||||
@using Microsoft.AspNetCore.Mvc.Localization
|
||||
|
||||
@inject IUrlService _urlService
|
||||
@inject IViewLocalizer _localizer
|
||||
|
||||
<input type="checkbox" id="hamburger-input" class="burger-shower" />
|
||||
<label id="hamburger-menu" for="hamburger-input">
|
||||
@@ -10,68 +12,85 @@
|
||||
<nav id="mobile-menu">
|
||||
<div id="mobile-menu-content">
|
||||
<div class="mobile-menu-heading">
|
||||
Account
|
||||
@_localizer["Account"]
|
||||
</div>
|
||||
<ul>
|
||||
@if (User?.Identity?.IsAuthenticated == false)
|
||||
{
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("Login", "Auth")"><span>Login</span></a></li>
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("Login", "Auth")"><span>Recover Password</span></a></li>
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("Login", "Auth")"><span>@_localizer["Login"]</span></a></li>
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("Login", "Auth")"><span>@_localizer["RecoverPassword"]</span></a></li>
|
||||
}
|
||||
else
|
||||
{
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("Logout", "Auth")"><span>Logout</span></a></li>
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("Logout", "Auth")"><span>@_localizer["Logout"]</span></a></li>
|
||||
}
|
||||
@if (User?.Identity?.IsAuthenticated == true)
|
||||
{
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("Register", "Auth")" class="nav-link"><span>Register</span></a></li>
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("ChangePassword", "Auth")" class="nav-link"><span>Change Password</span></a></li>
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("Profile", "Auth")" class="nav-link"><span>Profile</span></a></li>
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("Register", "Auth")" class="nav-link"><span>@_localizer["Register"]</span></a></li>
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("ChangePassword", "Auth")" class="nav-link"><span>@_localizer["ChangePassword"]</span></a></li>
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("Profile", "Auth")" class="nav-link"><span>@_localizer["Profile"]</span></a></li>
|
||||
}
|
||||
</ul>
|
||||
@if (User?.Identity?.IsAuthenticated == true)
|
||||
{
|
||||
<div class="mobile-menu-heading">
|
||||
Tools
|
||||
@_localizer["Library"]
|
||||
</div>
|
||||
<ul>
|
||||
<li><a href="tools/options"><span>Options</span></a></li>
|
||||
<li><a href="library/manage" class="nav-link"><span>@_localizer["ManageLibraries"]</span></a></li>
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("EditLibrary", "LibraryManagement")" class="nav-link"><span>@_localizer["AddNewLibrary"]</span></a></li>
|
||||
</ul>
|
||||
<div class="mobile-menu-heading">
|
||||
Library
|
||||
@_localizer["WrittenContent"]
|
||||
</div>
|
||||
<ul>
|
||||
<li><a href="library/manage"><span>Manage libraries</span></a></li>
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("EditLibrary", "LibraryManagement")" class="nav-link"><span>Add new library</span></a></li>
|
||||
<li><a href="library/written-content-library/books-library/books" class="nav-link"><span>@_localizer["Books"]</span></a></li>
|
||||
<li><a href="library/written-content/magazines" class="nav-link"><span>@_localizer["Magazines"]</span></a></li>
|
||||
</ul>
|
||||
<div class="mobile-menu-heading">
|
||||
Written Content
|
||||
@_localizer["Audio"]
|
||||
</div>
|
||||
<ul>
|
||||
<li><a href="library/written-content-library/books-library/books" class="nav-link"><span>Books</span></a></li>
|
||||
<li><a href="library/written-content/magazines"><span>Magazines</span></a></li>
|
||||
<li><a href="library/audio/music" class="nav-link"><span>@_localizer["Music"]</span></a></li>
|
||||
<li><a href="library/audio/interviews" class="nav-link"><span>@_localizer["Interviews"]</span></a></li>
|
||||
</ul>
|
||||
<div class="mobile-menu-heading">
|
||||
Audio
|
||||
@_localizer["Video"]
|
||||
</div>
|
||||
<ul>
|
||||
<li><a href="library/audio/music"><span>Music</span></a></li>
|
||||
<li><a href="library/audio/interviews"><span>Interviews</span></a></li>
|
||||
</ul>
|
||||
<div class="mobile-menu-heading">
|
||||
Video
|
||||
</div>
|
||||
<ul>
|
||||
<li><a href="library/video/movies"><span>Movies</span></a></li>
|
||||
<li><a href="library/video/tvshows"><span>TV Shows</span></a></li>
|
||||
<li><a href="library/video/movies" class="nav-link"><span>@_localizer["Movies"]</span></a></li>
|
||||
<li><a href="library/video/tvshows" class="nav-link"><span>@_localizer["TvShows"]</span></a></li>
|
||||
</ul>
|
||||
}
|
||||
<div class="mobile-menu-heading">
|
||||
Help
|
||||
@_localizer["Language"]
|
||||
</div>
|
||||
<ul>
|
||||
<li><a href="help/documentation"><span>Documentation</span></a></li>
|
||||
<li><a href="help/about"><span>About</span></a></li>
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("SetLanguage", "Language")?newCulture=zh-cn&returnUrl=@Uri.EscapeDataString(Context.Request.Path + Context.Request.QueryString)"><span>简体中文</span></a></li><!--CN-->
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("SetLanguage", "Language")?newCulture=de-de&returnUrl=@Uri.EscapeDataString(Context.Request.Path + Context.Request.QueryString)"><span>Deutsch</span></a></li><!--DE-->
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("SetLanguage", "Language")?newCulture=en-us&returnUrl=@Uri.EscapeDataString(Context.Request.Path + Context.Request.QueryString)"><span>English</span></a></li><!--EN-->
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("SetLanguage", "Language")?newCulture=es-es&returnUrl=@Uri.EscapeDataString(Context.Request.Path + Context.Request.QueryString)"><span>Español</span></a></li><!--ES-->
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("SetLanguage", "Language")?newCulture=fr-fr&returnUrl=@Uri.EscapeDataString(Context.Request.Path + Context.Request.QueryString)"><span>Français</span></a></li><!--FR-->
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("SetLanguage", "Language")?newCulture=it-it&returnUrl=@Uri.EscapeDataString(Context.Request.Path + Context.Request.QueryString)"><span>Italiano</span></a></li><!--IT-->
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("SetLanguage", "Language")?newCulture=ja-jp&returnUrl=@Uri.EscapeDataString(Context.Request.Path + Context.Request.QueryString)"><span>日本語</span></a></li><!--JP-->
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("SetLanguage", "Language")?newCulture=ro-ro&returnUrl=@Uri.EscapeDataString(Context.Request.Path + Context.Request.QueryString)"><span>Română</span></a></li><!--RO-->
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("SetLanguage", "Language")?newCulture=ru-ru&returnUrl=@Uri.EscapeDataString(Context.Request.Path + Context.Request.QueryString)"><span>Русский</span></a></li><!--RU-->
|
||||
</ul>
|
||||
@if (User?.Identity?.IsAuthenticated == true)
|
||||
{
|
||||
<div class="mobile-menu-heading">
|
||||
@_localizer["Tools"]
|
||||
</div>
|
||||
<ul>
|
||||
<li><a href="tools/options" class="nav-link"><span>@_localizer["Options"]</span></a></li>
|
||||
</ul>
|
||||
}
|
||||
<div class="mobile-menu-heading">
|
||||
@_localizer["Help"]
|
||||
</div>
|
||||
<ul>
|
||||
<li><a href="help/documentation" class="nav-link"><span>@_localizer["Documentation"]</span></a></li>
|
||||
<li><a href="help/about" class="nav-link"><span>@_localizer["About"]</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
@@ -80,70 +99,87 @@
|
||||
<ul>
|
||||
<li tabindex="0">
|
||||
<input type="radio" id="account-menu" name="menu">
|
||||
<label for="account-menu">Account</label>
|
||||
<label for="account-menu">@_localizer["Account"]</label>
|
||||
<ul>
|
||||
@if (User?.Identity?.IsAuthenticated == false)
|
||||
{
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("Login", "Auth")">Login</a></li>
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("RecoverPassword", "Auth")">Recover Password</a></li>
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("Login", "Auth")">@_localizer["Login"]</a></li>
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("RecoverPassword", "Auth")">@_localizer["RecoverPassword"]</a></li>
|
||||
}
|
||||
else
|
||||
{
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("Logout", "Auth")">Logout</a></li>
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("Logout", "Auth")">@_localizer["Logout"]</a></li>
|
||||
}
|
||||
@if (User?.Identity?.IsAuthenticated == true)
|
||||
{
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("Register", "Auth")" class="nav-link">Register</a></li>
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("ChangePassword", "Auth")" class="nav-link">Change Password</a></li>
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("Profile", "Auth")" class="nav-link">Profile</a></li>
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("Register", "Auth")" class="nav-link">@_localizer["Register"]</a></li>
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("ChangePassword", "Auth")" class="nav-link">@_localizer["ChangePassword"]</a></li>
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("Profile", "Auth")" class="nav-link">@_localizer["Profile"]</a></li>
|
||||
}
|
||||
</ul>
|
||||
</li>
|
||||
@if (User?.Identity?.IsAuthenticated == true)
|
||||
{
|
||||
<li tabindex="0">
|
||||
<input type="radio" id="tools-menu" name="menu">
|
||||
<label for="tools-menu">Tools</label>
|
||||
<ul>
|
||||
<li><a href="tools/options">Options</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li tabindex="0">
|
||||
<input type="radio" id="library-menu" name="menu">
|
||||
<label for="library-menu">Library</label>
|
||||
<label for="library-menu">@_localizer["Library"]</label>
|
||||
<ul>
|
||||
<li tabindex="0"><a href="library/manage">Manage libraries</a></li>
|
||||
<li tabindex="0"><a href="@_urlService.GetAbsoluteUrl("EditLibrary", "LibraryManagement")" class="nav-link">Add new library</a></li>
|
||||
<li tabindex="0"><a href="library/manage" class="nav-link">@_localizer["ManageLibraries"]</a></li>
|
||||
<li tabindex="0"><a href="@_urlService.GetAbsoluteUrl("EditLibrary", "LibraryManagement")" class="nav-link">@_localizer["AddNewLibrary"]</a></li>
|
||||
<li class="has-submenu" tabindex="0">
|
||||
<label>Written Content</label>
|
||||
<label>@_localizer["WrittenContent"]</label>
|
||||
<ul>
|
||||
<li><a href="library/written-content-library/books-library/books" class="nav-link">Books</a></li>
|
||||
<li><a href="library/written-content/magazines">Magazines</a></li>
|
||||
<li><a href="library/written-content-library/books-library/books" class="nav-link">@_localizer["Books"]</a></li>
|
||||
<li><a href="library/written-content/magazines" class="nav-link">@_localizer["Magazines"]</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="has-submenu" tabindex="0">
|
||||
<label>Audio</label>
|
||||
<label>@_localizer["Audio"]</label>
|
||||
<ul>
|
||||
<li><a href="library/audio/music">Music</a></li>
|
||||
<li><a href="library/audio/interviews">Interviews</a></li>
|
||||
<li><a href="library/audio/music" class="nav-link">@_localizer["Music"]</a></li>
|
||||
<li><a href="library/audio/interviews" class="nav-link">@_localizer["Interviews"]</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="has-submenu" tabindex="0">
|
||||
<label>Video</label>
|
||||
<label>@_localizer["Video"]</label>
|
||||
<ul>
|
||||
<li><a href="library/video/movies">Movies</a></li>
|
||||
<li><a href="library/video/tvshows">TV Shows</a></li>
|
||||
<li><a href="library/video/movies" class="nav-link">@_localizer["Movies"]</a></li>
|
||||
<li><a href="library/video/tvshows" class="nav-link">@_localizer["TvShows"]</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
}
|
||||
<li tabindex="0">
|
||||
<input type="radio" id="help-menu" name="menu">
|
||||
<label for="help-menu">Help</label>
|
||||
<input type="radio" id="tools-menu" name="menu">
|
||||
<label for="tools-menu">@_localizer["Tools"]</label>
|
||||
<ul>
|
||||
<li><a href="help/documentation">Documentation</a></li>
|
||||
<li><a href="help/about">About</a></li>
|
||||
<li class="has-submenu" tabindex="0">
|
||||
<label>@_localizer["Language"]</label>
|
||||
<ul>
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("SetLanguage", "Language")?newCulture=zh-cn&returnUrl=@Uri.EscapeDataString(Context.Request.Path + Context.Request.QueryString)">简体中文</a></li><!--CN-->
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("SetLanguage", "Language")?newCulture=de-de&returnUrl=@Uri.EscapeDataString(Context.Request.Path + Context.Request.QueryString)">Deutsch</a></li><!--DE-->
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("SetLanguage", "Language")?newCulture=en-us&returnUrl=@Uri.EscapeDataString(Context.Request.Path + Context.Request.QueryString)">English</a></li><!--EN-->
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("SetLanguage", "Language")?newCulture=es-es&returnUrl=@Uri.EscapeDataString(Context.Request.Path + Context.Request.QueryString)">Español</a></li><!--ES-->
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("SetLanguage", "Language")?newCulture=fr-fr&returnUrl=@Uri.EscapeDataString(Context.Request.Path + Context.Request.QueryString)">Français</a></li><!--FR-->
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("SetLanguage", "Language")?newCulture=it-it&returnUrl=@Uri.EscapeDataString(Context.Request.Path + Context.Request.QueryString)">Italiano</a></li><!--IT-->
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("SetLanguage", "Language")?newCulture=ja-jp&returnUrl=@Uri.EscapeDataString(Context.Request.Path + Context.Request.QueryString)">日本語</a></li><!--JP-->
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("SetLanguage", "Language")?newCulture=ro-ro&returnUrl=@Uri.EscapeDataString(Context.Request.Path + Context.Request.QueryString)">Română</a></li><!--RO-->
|
||||
<li><a href="@_urlService.GetAbsoluteUrl("SetLanguage", "Language")?newCulture=ru-ru&returnUrl=@Uri.EscapeDataString(Context.Request.Path + Context.Request.QueryString)">Русский</a></li><!--RU-->
|
||||
</ul>
|
||||
</li>
|
||||
@if (User?.Identity?.IsAuthenticated == true)
|
||||
{
|
||||
<li><a href="tools/options" class="nav-link">@_localizer["Options"]</a></li>
|
||||
}
|
||||
</ul>
|
||||
</li>
|
||||
<li tabindex="0">
|
||||
<input type="radio" id="help-menu" name="menu">
|
||||
<label for="help-menu">@_localizer["Help"]</label>
|
||||
<ul>
|
||||
<li><a href="help/documentation" class="nav-link">@_localizer["Documentation"]</a></li>
|
||||
<li><a href="help/about" class="nav-link">@_localizer["About"]</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
<script src="~/lib/jquery-validation/dist/jquery.validate.min.js"></script>
|
||||
<script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"></script>
|
||||
Reference in new issue
Block a user