9 lines
2.2 KiB
Plaintext
9 lines
2.2 KiB
Plaintext
@using System.Security.Claims
|
|
@inject PlotLine.Data.IAppearanceRepository AppearancePreferences
|
|
@{
|
|
var userID=int.TryParse(User.FindFirstValue(ClaimTypes.NameIdentifier),out var author)?author:0;
|
|
var appearance=userID>0?await AppearancePreferences.GetAsync(userID):new ApplicationAppearance();
|
|
}
|
|
<!DOCTYPE html><html lang="en" data-theme="light" data-bs-theme="light"><head><meta charset="utf-8" /><partial name="_ApplicationThemeBootstrap" model="appearance" /><meta name="viewport" content="width=device-width, initial-scale=1" /><title>@ViewData["Title"] · PlotDirector</title><link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" /><link rel="stylesheet" href="~/css/site.css" asp-append-version="true" /><link rel="stylesheet" href="~/css/plotline-theme.css" asp-append-version="true" /><link rel="stylesheet" href="~/css/application-shell.css" asp-append-version="true" /><link rel="stylesheet" href="~/css/notifications.css" asp-append-version="true" /></head>
|
|
<body class="app-layout writing-embedded" data-pd-user-id="@User.FindFirstValue(ClaimTypes.NameIdentifier)"><div class="writing-window-bar"><a href="/Writer" target="_blank" rel="noopener">PlotDirector</a><button type="button" id="native-companion-status" class="pd-presence" aria-haspopup="dialog" aria-controls="writing-connection-details" data-word-companion-presence><span class="word-companion-presence-dot"></span><span id="native-companion-status-text">Checking Word…</span></button></div><partial name="_WritingConnectionDetails" />@RenderBody()<partial name="_ToastHost" model="appearance" /><script src="~/js/notifications.js" asp-append-version="true"></script><script src="~/js/word-notifications.js" asp-append-version="true"></script><script src="https://cdn.jsdelivr.net/npm/@@microsoft/signalr@8.0.7/dist/browser/signalr.min.js"></script><script src="~/js/application-theme-sync.js" asp-append-version="true"></script><script src="~/js/story-position.js" asp-append-version="true"></script><script src="~/js/native-companion-status.js" asp-append-version="true" defer></script><script src="~/js/shared-manuscript-focus.js" asp-append-version="true" defer></script>@await RenderSectionAsync("Scripts",required:false)</body></html>
|