2026-06-04 20:48:13 +01:00

135 lines
7.5 KiB
Plaintext

<!DOCTYPE html>
<html lang="en" data-theme="light" data-bs-theme="light">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"] - PlotWeaver Studio</title>
<script>
(() => {
let savedTheme = null;
try {
savedTheme = localStorage.getItem("plotline.theme");
} catch {
savedTheme = null;
}
const theme = savedTheme === "dark" ? "dark" : "light";
document.documentElement.dataset.theme = theme;
document.documentElement.dataset.bsTheme = theme;
})();
</script>
<script type="importmap"></script>
<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="~/PlotLine.styles.css" asp-append-version="true" />
<link rel="stylesheet" href="~/css/plotline-theme.css" asp-append-version="true" />
</head>
<body>
<header>
<nav class="navbar navbar-expand-sm navbar-toggleable-sm border-bottom plotline-nav mb-3">
<div class="container-fluid">
<a class="navbar-brand fw-semibold" asp-area="" asp-controller="Projects" asp-action="Index">PlotWeaver Studio</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target=".navbar-collapse" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="navbar-collapse collapse d-sm-inline-flex justify-content-between">
<ul class="navbar-nav flex-grow-1">
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="Projects" asp-action="Index">Projects</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="Imports" asp-action="Index">Import</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="Writer" asp-action="Index">Writer Workspace</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="RelationshipMap" asp-action="Index">Relationship Map</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="Help" asp-action="Index">Help</a>
</li>
<li class="nav-item">
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Index">About</a>
</li>
</ul>
<div class="theme-switcher btn-group btn-group-sm" role="group" aria-label="Theme selection">
<button type="button" class="btn btn-outline-secondary" data-theme-choice="light" aria-pressed="true">Light</button>
<button type="button" class="btn btn-outline-secondary" data-theme-choice="dark" aria-pressed="false">Dark</button>
</div>
</div>
</div>
</nav>
</header>
<div class="plotweaver-help-layout" data-help-layout>
<div class="plotweaver-help-main">
<div class="container-fluid plotline-shell @ViewData["ShellClass"]">
<main role="main" class="pb-3">
@if (TempData["ArchiveMessage"] is string archiveMessage)
{
<div class="alert alert-info">@archiveMessage</div>
}
@if (TempData["ArchiveError"] is string archiveError)
{
<div class="alert alert-warning">@archiveError</div>
}
@if (TempData["ImportMessage"] is string importMessage)
{
<div class="alert alert-info">@importMessage</div>
}
@RenderBody()
</main>
</div>
</div>
<div class="plotweaver-help-splitter" data-help-splitter role="separator" aria-orientation="vertical" aria-label="Resize help drawer"></div>
<aside class="plotweaver-help-drawer" data-help-drawer aria-label="Help drawer">
<div class="plotweaver-help-collapsed-strip" data-help-expand role="button" tabindex="0" aria-label="Expand help drawer">Help</div>
<div class="plotweaver-help-drawer-panel">
<header class="plotweaver-help-drawer-header">
<div>
<p class="eyebrow mb-0">Contextual help</p>
<strong data-help-drawer-heading>Help</strong>
</div>
<div class="btn-group btn-group-sm" role="group" aria-label="Help drawer controls">
<button class="btn btn-outline-secondary" type="button" data-help-pin aria-pressed="false">Pin</button>
<button class="btn btn-outline-secondary" type="button" data-help-collapse>Collapse</button>
<button class="btn btn-outline-secondary" type="button" data-help-close>Close</button>
</div>
</header>
<div class="plotweaver-help-drawer-content" data-help-content>
<p class="muted">Choose More from a help popover to open the full guide.</p>
</div>
</div>
</aside>
</div>
<div class="modal fade" id="plotlineConfirmModal" tabindex="-1" aria-labelledby="plotlineConfirmModalTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content plotline-confirm-modal">
<div class="modal-header">
<h2 class="modal-title fs-5" id="plotlineConfirmModalTitle">Confirm action</h2>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Cancel"></button>
</div>
<div class="modal-body">
<p id="plotlineConfirmModalMessage" class="mb-0"></p>
<div class="delete-confirm-field d-none mt-3" data-delete-confirm-field>
<label class="form-label" for="plotlineDeleteConfirmInput">Type DELETE to continue</label>
<input class="form-control" id="plotlineDeleteConfirmInput" autocomplete="off" data-delete-confirm-input />
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline-secondary" data-bs-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-danger" data-confirm-submit>Confirm</button>
</div>
</div>
</div>
</div>
<script src="~/lib/jquery/dist/jquery.min.js"></script>
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js@4.4.9/dist/chart.umd.min.js"></script>
<script src="~/js/site.js" asp-append-version="true"></script>
@await RenderSectionAsync("Scripts", required: false)
</body>
</html>