Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 86a66d3278 | |||
| e997222068 | |||
| 2145871637 | |||
| 45da04bb18 | |||
| bf2e7e142d | |||
| 70c7351051 |
@@ -1,19 +1,41 @@
|
|||||||
@inherits LayoutComponentBase
|
@inherits LayoutComponentBase
|
||||||
|
@using Blazored.Toast
|
||||||
|
|
||||||
<div class="page">
|
<header class="top-bar">
|
||||||
<main>
|
<a href="/" class="brand">
|
||||||
<div class="top-row px-4">
|
<svg class="brand-mark" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg">
|
||||||
<a href="https://learn.microsoft.com/aspnet/core/" target="_blank">About</a>
|
<path d="M70,25 C65,18 58,15 50,15 C30,15 15,30 15,50 C15,70 30,85 50,85 C58,85 65,82 70,75 L62,68 C58,72 54,74 50,74 C37,74 27,63 27,50 C27,37 37,26 50,26 C54,26 58,28 62,32 L70,25 Z" fill="#0096c7" />
|
||||||
|
<circle cx="85" cy="50" r="8" fill="#4dabff" opacity="0.9" />
|
||||||
|
<circle cx="75" cy="80" r="5" fill="#4dabff" opacity="0.6" />
|
||||||
|
<circle cx="75" cy="20" r="5" fill="#4dabff" opacity="0.6" />
|
||||||
|
</svg>
|
||||||
|
|
||||||
|
<div class="text-column">
|
||||||
|
<span class="brand-main">Lite<span class="brand-accent">Charms</span></span>
|
||||||
|
<span class="payoff-line">Shop Administration & Monitoring</span>
|
||||||
</div>
|
</div>
|
||||||
|
</a>
|
||||||
|
</header>
|
||||||
|
|
||||||
<article class="content px-4">
|
<NavShelf IsOpen="isShelfExpanded" IsOpenChanged="OnShelfStateChanged" @rendermode="InteractiveServer" />
|
||||||
@* @Body *@
|
|
||||||
</article>
|
<div class="page-wrapper @(isShelfExpanded ? "shifted-canvas" : "")">
|
||||||
</main>
|
<main>
|
||||||
|
@Body
|
||||||
|
</main>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div id="blazor-error-ui" data-nosnippet>
|
<BlazoredToasts />
|
||||||
An unhandled error has occurred.
|
|
||||||
<a href="." class="reload">Reload</a>
|
@code {
|
||||||
<span class="dismiss">🗙</span>
|
private bool isShelfExpanded { get; set; } = false;
|
||||||
</div>
|
|
||||||
|
private void OnShelfStateChanged(bool newState)
|
||||||
|
{
|
||||||
|
isShelfExpanded = newState;
|
||||||
|
|
||||||
|
// This forces Blazor to re-evaluate the DOM, instantly applying
|
||||||
|
// the "shelf-open" and "shifted-canvas" CSS utility classes.
|
||||||
|
StateHasChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,98 +1,92 @@
|
|||||||
.page {
|
/* --- Blazored Toast Branded Styling --- */
|
||||||
position: relative;
|
::deep .blazored-toast-container {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 20px;
|
||||||
|
left: 20px;
|
||||||
|
z-index: 9999;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column-reverse;
|
||||||
|
gap: 12px;
|
||||||
|
width: 350px;
|
||||||
|
pointer-events: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .blazored-toast {
|
||||||
|
pointer-events: auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
position: relative;
|
||||||
|
background: rgba(11, 17, 20, 0.95);
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
|
border: 1px solid rgba(0, 150, 199, 0.3);
|
||||||
|
border-left: 4px solid #0096c7;
|
||||||
|
border-radius: 8px;
|
||||||
|
padding: 16px 40px 16px 16px;
|
||||||
|
color: #fff;
|
||||||
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
|
||||||
|
animation: slideInLeft 0.3s ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
main {
|
::deep .blazored-toast-header {
|
||||||
flex: 1;
|
font-weight: 800;
|
||||||
|
font-size: 1rem;
|
||||||
|
color: #0096c7;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar {
|
::deep .blazored-toast-message {
|
||||||
background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
|
font-size: 0.9rem;
|
||||||
|
color: #e0e0e0;
|
||||||
|
line-height: 1.4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-row {
|
::deep .blazored-toast-close {
|
||||||
background-color: #f7f7f7;
|
position: absolute;
|
||||||
border-bottom: 1px solid #d6d5d5;
|
top: 12px;
|
||||||
justify-content: flex-end;
|
right: 12px;
|
||||||
height: 3.5rem;
|
cursor: pointer;
|
||||||
display: flex;
|
background: none;
|
||||||
align-items: center;
|
border: none;
|
||||||
|
color: #888;
|
||||||
|
font-size: 20px;
|
||||||
|
line-height: 1;
|
||||||
|
transition: color 0.2s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-row ::deep a, .top-row ::deep .btn-link {
|
::deep .blazored-toast-close::before {
|
||||||
white-space: nowrap;
|
content: "×";
|
||||||
margin-left: 1.5rem;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-row ::deep a:hover, .top-row ::deep .btn-link:hover {
|
::deep .blazored-toast-close:hover {
|
||||||
text-decoration: underline;
|
color: #ff4d4d;
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-row ::deep a:first-child {
|
::deep .blazored-toast-progressbar {
|
||||||
overflow: hidden;
|
position: absolute;
|
||||||
text-overflow: ellipsis;
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (max-width: 640.98px) {
|
|
||||||
.top-row {
|
|
||||||
justify-content: space-between;
|
|
||||||
}
|
|
||||||
|
|
||||||
.top-row ::deep a, .top-row ::deep .btn-link {
|
|
||||||
margin-left: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media (min-width: 641px) {
|
|
||||||
.page {
|
|
||||||
flex-direction: row;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sidebar {
|
|
||||||
width: 250px;
|
|
||||||
height: 100vh;
|
|
||||||
position: sticky;
|
|
||||||
top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.top-row {
|
|
||||||
position: sticky;
|
|
||||||
top: 0;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.top-row.auth ::deep a:first-child {
|
|
||||||
flex: 1;
|
|
||||||
text-align: right;
|
|
||||||
width: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.top-row, article {
|
|
||||||
padding-left: 2rem !important;
|
|
||||||
padding-right: 1.5rem !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#blazor-error-ui {
|
|
||||||
color-scheme: light only;
|
|
||||||
background: lightyellow;
|
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
|
|
||||||
box-sizing: border-box;
|
|
||||||
display: none;
|
|
||||||
left: 0;
|
left: 0;
|
||||||
padding: 0.6rem 1.25rem 0.7rem 1.25rem;
|
height: 3px;
|
||||||
position: fixed;
|
background: rgba(0, 150, 199, 0.5);
|
||||||
width: 100%;
|
|
||||||
z-index: 1000;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#blazor-error-ui .dismiss {
|
@keyframes slideInLeft {
|
||||||
cursor: pointer;
|
from {
|
||||||
position: absolute;
|
transform: translateX(-100%);
|
||||||
right: 0.75rem;
|
opacity: 0;
|
||||||
top: 0.5rem;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
transform: translateX(0);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
::deep .blazored-toast-container {
|
||||||
|
width: calc(100% - 40px);
|
||||||
|
left: 20px;
|
||||||
|
bottom: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
@page "/counter"
|
|
||||||
@rendermode InteractiveServer
|
|
||||||
|
|
||||||
<PageTitle>Counter</PageTitle>
|
|
||||||
|
|
||||||
<h1>Counter</h1>
|
|
||||||
|
|
||||||
<p role="status">Current count: @currentCount</p>
|
|
||||||
|
|
||||||
<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>
|
|
||||||
|
|
||||||
@code {
|
|
||||||
private int currentCount = 0;
|
|
||||||
|
|
||||||
private void IncrementCount()
|
|
||||||
{
|
|
||||||
currentCount++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
@page "/"
|
||||||
|
|
||||||
|
|
||||||
@@ -0,0 +1,100 @@
|
|||||||
|
@inject NavigationManager NavManager
|
||||||
|
|
||||||
|
<button class="shelf-grip @(IsOpen ? "grip-open" : "")"
|
||||||
|
@onclick="ToggleShelf"
|
||||||
|
aria-label="Toggle Navigation Shelf">
|
||||||
|
<div class="grip-icon">
|
||||||
|
@if (IsOpen)
|
||||||
|
{
|
||||||
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
||||||
|
<polyline points="9 18 15 12 9 6"></polyline>
|
||||||
|
</svg>
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
||||||
|
<line x1="3" y1="12" x2="21" y2="12"></line>
|
||||||
|
<line x1="3" y1="6" x2="21" y2="6"></line>
|
||||||
|
<line x1="3" y1="18" x2="21" y2="18"></line>
|
||||||
|
</svg>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
</button>
|
||||||
|
|
||||||
|
<div class="shelf-backdrop @(IsOpen ? "backdrop-active" : "")" @onclick="CloseShelf"></div>
|
||||||
|
|
||||||
|
<aside class="nav-shelf-panel @(IsOpen ? "shelf-open" : "")">
|
||||||
|
<div class="shelf-header">
|
||||||
|
<h3>Shop Console</h3>
|
||||||
|
<span class="environment-badge">@Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT")</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<nav class="shelf-navigation">
|
||||||
|
<NavLink class="shelf-link" href="" Match="NavLinkMatch.All" @onclick="CloseShelf">
|
||||||
|
<svg class="link-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="7" height="9"></rect><rect x="14" y="3" width="7" height="5"></rect><rect x="14" y="12" width="7" height="9"></rect><rect x="3" y="16" width="7" height="5"></rect></svg>
|
||||||
|
<span>Dashboard</span>
|
||||||
|
</NavLink>
|
||||||
|
|
||||||
|
<NavLink class="shelf-link" href="customers" @onclick="CloseShelf">
|
||||||
|
<svg class="link-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"></path><circle cx="9" cy="7" r="4"></circle><path d="M23 21v-2a4 4 0 0 0-3-3.87"></path><path d="M16 3.13a4 4 0 0 1 0 7.75"></path></svg>
|
||||||
|
<span>Customers</span>
|
||||||
|
</NavLink>
|
||||||
|
|
||||||
|
<NavLink class="shelf-link" href="orders" @onclick="CloseShelf">
|
||||||
|
<svg class="link-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"></path><line x1="3" y1="6" x2="21" y2="6"></line><path d="M16 10a4 4 0 0 1-8 0"></path></svg>
|
||||||
|
<span>Orders</span>
|
||||||
|
</NavLink>
|
||||||
|
|
||||||
|
<NavLink class="shelf-link" href="leads" @onclick="CloseShelf">
|
||||||
|
<svg class="link-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>
|
||||||
|
<span>Leads</span>
|
||||||
|
</NavLink>
|
||||||
|
|
||||||
|
<NavLink class="shelf-link" href="products" @onclick="CloseShelf">
|
||||||
|
<svg class="link-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7.01" y2="7"></line></svg>
|
||||||
|
<span>Products</span>
|
||||||
|
</NavLink>
|
||||||
|
|
||||||
|
<NavLink class="shelf-link" href="notifications" @onclick="CloseShelf">
|
||||||
|
<svg class="link-icon icon-warn" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"></path><path d="M13.73 21a2 2 0 0 1-3.46 0"></path></svg>
|
||||||
|
<span>Notifications</span>
|
||||||
|
</NavLink>
|
||||||
|
|
||||||
|
<div class="shelf-divider"></div>
|
||||||
|
|
||||||
|
<NavLink class="shelf-link" href="settings" @onclick="CloseShelf">
|
||||||
|
<svg class="link-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"></path></svg>
|
||||||
|
<span>Settings</span>
|
||||||
|
</NavLink>
|
||||||
|
|
||||||
|
<NavLink class="shelf-link" href="policies" @onclick="CloseShelf">
|
||||||
|
<svg class="link-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path></svg>
|
||||||
|
<span>Policies</span>
|
||||||
|
</NavLink>
|
||||||
|
|
||||||
|
<NavLink class="shelf-link" href="profile" @onclick="CloseShelf">
|
||||||
|
<svg class="link-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg>
|
||||||
|
<span>Profile</span>
|
||||||
|
</NavLink>
|
||||||
|
</nav>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
@code {
|
||||||
|
[Parameter] public bool IsOpen { get; set; } = false;
|
||||||
|
[Parameter] public EventCallback<bool> IsOpenChanged { get; set; }
|
||||||
|
|
||||||
|
private async Task ToggleShelf()
|
||||||
|
{
|
||||||
|
IsOpen = !IsOpen;
|
||||||
|
await IsOpenChanged.InvokeAsync(IsOpen);
|
||||||
|
}
|
||||||
|
|
||||||
|
private async Task CloseShelf()
|
||||||
|
{
|
||||||
|
if (IsOpen)
|
||||||
|
{
|
||||||
|
IsOpen = false;
|
||||||
|
await IsOpenChanged.InvokeAsync(IsOpen);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,159 @@
|
|||||||
|
/* --- 1. The Flyout Side Panel --- */
|
||||||
|
.nav-shelf-panel {
|
||||||
|
position: fixed;
|
||||||
|
top: var(--header-height); /* Drops clean below your top-bar */
|
||||||
|
right: -300px; /* Hidden by default */
|
||||||
|
width: 300px;
|
||||||
|
height: calc(100vh - var(--header-height));
|
||||||
|
background-color: var(--shelf-bg);
|
||||||
|
border-left: 1px solid rgba(144, 224, 239, 0.15);
|
||||||
|
z-index: 2000;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
padding: 2rem 1.5rem;
|
||||||
|
box-sizing: border-box;
|
||||||
|
transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
|
||||||
|
box-shadow: -15px 0 40px rgba(0, 0, 0, 0.6);
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-shelf-panel.shelf-open {
|
||||||
|
right: 0; /* Animate into viewport */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- 2. The Floating Mechanical Grip Handle --- */
|
||||||
|
.shelf-grip {
|
||||||
|
position: fixed;
|
||||||
|
top: calc(var(--header-height) + 24px);
|
||||||
|
right: 0;
|
||||||
|
width: 44px;
|
||||||
|
height: 44px;
|
||||||
|
background-color: var(--shelf-bg);
|
||||||
|
border: 1px solid var(--border-mid-opacity);
|
||||||
|
border-right: none;
|
||||||
|
border-radius: 8px 0 0 8px;
|
||||||
|
color: var(--payoff-color);
|
||||||
|
cursor: pointer;
|
||||||
|
z-index: 2001;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Moves out dynamically alongside the shelf edge when open */
|
||||||
|
.shelf-grip.grip-open {
|
||||||
|
right: 300px;
|
||||||
|
background-color: var(--shelf-bg);
|
||||||
|
border-color: var(--border-low-opacity);
|
||||||
|
}
|
||||||
|
|
||||||
|
.shelf-grip:hover {
|
||||||
|
background-color: #112930;
|
||||||
|
color: var(--text-white);
|
||||||
|
}
|
||||||
|
|
||||||
|
.grip-icon {
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- 3. Panel Internal Layout & Links --- */
|
||||||
|
.shelf-header {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
padding-bottom: 1rem;
|
||||||
|
border-bottom: 1px solid rgba(144, 224, 239, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.shelf-header h3 {
|
||||||
|
font-size: 1.1rem;
|
||||||
|
font-weight: 700;
|
||||||
|
color: var(--text-white);
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.environment-badge {
|
||||||
|
font-size: 0.65rem;
|
||||||
|
font-family: monospace;
|
||||||
|
font-weight: bold;
|
||||||
|
padding: 2px 6px;
|
||||||
|
background: rgba(0, 150, 199, 0.15);
|
||||||
|
border: 1px solid rgba(0, 150, 199, 0.4);
|
||||||
|
color: var(--payoff-color);
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.shelf-navigation {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Deep selection matching Blazor's active class matching system */
|
||||||
|
::deep .shelf-link {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 14px;
|
||||||
|
color: rgba(255, 255, 255, 0.65);
|
||||||
|
text-decoration: none;
|
||||||
|
padding: 12px 16px;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
font-weight: 500;
|
||||||
|
border-radius: 6px;
|
||||||
|
transition: all 0.2s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .shelf-link:hover {
|
||||||
|
background-color: rgba(0, 150, 199, 0.08);
|
||||||
|
color: var(--text-white);
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep .shelf-link.active {
|
||||||
|
background-color: var(--brand-blue);
|
||||||
|
color: var(--text-white);
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
|
||||||
|
.link-icon {
|
||||||
|
width: 18px;
|
||||||
|
height: 18px;
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-warn {
|
||||||
|
color: var(--payoff-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.shelf-divider {
|
||||||
|
height: 1px;
|
||||||
|
background: rgba(144, 224, 239, 0.1);
|
||||||
|
margin: 1rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- 4. Content Blur/Backdrop Overlay --- */
|
||||||
|
.shelf-backdrop {
|
||||||
|
position: fixed;
|
||||||
|
top: var(--header-height);
|
||||||
|
left: 0;
|
||||||
|
width: 100vw;
|
||||||
|
height: calc(100vh - var(--header-height));
|
||||||
|
background-color: rgba(0, 0, 0, 0.25);
|
||||||
|
backdrop-filter: blur(0px);
|
||||||
|
z-index: 1999;
|
||||||
|
opacity: 0;
|
||||||
|
visibility: hidden;
|
||||||
|
pointer-events: none;
|
||||||
|
transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.shelf-backdrop.backdrop-active {
|
||||||
|
opacity: 1;
|
||||||
|
visibility: visible;
|
||||||
|
pointer-events: auto;
|
||||||
|
backdrop-filter: blur(3px);
|
||||||
|
}
|
||||||
@@ -1,5 +1,40 @@
|
|||||||
@page "/not-found"
|
@page "/404"
|
||||||
@layout MainLayout
|
@page "/not-found"
|
||||||
|
|
||||||
<h3>Not Found</h3>
|
<div class="error-container">
|
||||||
<p>Sorry, the content you are looking for does not exist</p>
|
<div class="error-visual">
|
||||||
|
<svg viewBox="0 0 200 200" fill="none" xmlns="http://www.w3.org/2000/svg" class="tech-svg">
|
||||||
|
<line x1="20" y1="100" x2="180" y2="100" stroke="rgba(144, 224, 239, 0.08)" stroke-width="2" stroke-dasharray="4 4" />
|
||||||
|
<line x1="100" y1="20" x2="100" y2="180" stroke="rgba(144, 224, 239, 0.08)" stroke-width="2" stroke-dasharray="4 4" />
|
||||||
|
|
||||||
|
<circle cx="100" cy="100" r="70" stroke="var(--brand-blue)" stroke-width="1.5" stroke-dasharray="5 10" opacity="0.4" />
|
||||||
|
<circle cx="100" cy="100" r="50" stroke="var(--payoff-color)" stroke-width="1" opacity="0.15" />
|
||||||
|
|
||||||
|
<path d="M65,65 L135,135" stroke="var(--brand-blue)" stroke-width="2" stroke-linecap="round" opacity="0.3" />
|
||||||
|
<path d="M135,65 L65,135" stroke="rgba(144, 224, 239, 0.2)" stroke-width="1.5" stroke-linecap="round" />
|
||||||
|
|
||||||
|
<circle cx="100" cy="100" r="14" fill="var(--bar-bg)" stroke="var(--brand-blue)" stroke-width="3" />
|
||||||
|
<circle cx="100" cy="100" r="4" fill="#4dabff" />
|
||||||
|
|
||||||
|
<circle cx="65" cy="65" r="6" fill="var(--bar-bg)" stroke="var(--payoff-color)" stroke-width="2" />
|
||||||
|
<circle cx="135" cy="65" r="6" fill="var(--bar-bg)" stroke="var(--payoff-color)" stroke-width="2" />
|
||||||
|
<circle cx="135" cy="135" r="6" fill="var(--bar-bg)" stroke="var(--payoff-color)" stroke-width="2" />
|
||||||
|
<circle cx="65" cy="135" r="6" fill="var(--bar-bg)" stroke="var(--payoff-color)" stroke-width="2" />
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="error-meta">
|
||||||
|
<h1 class="error-code">404</h1>
|
||||||
|
<h2 class="error-title">Resource Location Failure</h2>
|
||||||
|
<p class="error-desc">
|
||||||
|
The operational route, package schema, or data record you are querying cannot be resolved within this cluster context.
|
||||||
|
</p>
|
||||||
|
<a href="/" class="btn-return">
|
||||||
|
<svg class="icon-left" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
||||||
|
<line x1="19" y1="12" x2="5" y2="12"></line>
|
||||||
|
<polyline points="12 19 5 12 12 5"></polyline>
|
||||||
|
</svg>
|
||||||
|
Return to Core Dashboard
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
@@ -0,0 +1,102 @@
|
|||||||
|
.error-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
text-align: center;
|
||||||
|
padding: 2rem;
|
||||||
|
max-width: 520px;
|
||||||
|
width: 100%;
|
||||||
|
margin: auto; /* Works alongside layout flex to keep perfectly centered */
|
||||||
|
animation: fadeIn 0.4s ease-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Technical SVG Frame Handling */
|
||||||
|
.error-visual {
|
||||||
|
width: 160px;
|
||||||
|
height: 160px;
|
||||||
|
margin-bottom: 1.5rem;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.tech-svg {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
filter: drop-shadow(0 0 25px rgba(0, 150, 199, 0.25));
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Typography Hierarchy */
|
||||||
|
.error-code {
|
||||||
|
font-family: 'Poppins', sans-serif;
|
||||||
|
font-size: 3.5rem;
|
||||||
|
font-weight: 900;
|
||||||
|
line-height: 1;
|
||||||
|
color: var(--brand-blue);
|
||||||
|
letter-spacing: -1px;
|
||||||
|
margin: 0 0 0.5rem 0;
|
||||||
|
text-shadow: 0 0 20px rgba(0, 150, 199, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.error-title {
|
||||||
|
font-size: 1.25rem;
|
||||||
|
font-weight: 700;
|
||||||
|
color: var(--text-white);
|
||||||
|
margin-bottom: 0.75rem;
|
||||||
|
letter-spacing: -0.2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.error-desc {
|
||||||
|
font-size: 0.9rem;
|
||||||
|
line-height: 1.6;
|
||||||
|
color: var(--payoff-color);
|
||||||
|
opacity: 0.75;
|
||||||
|
margin-bottom: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Control Actions styled precisely to match your existing brand colors */
|
||||||
|
.btn-return {
|
||||||
|
display: inline-flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 10px;
|
||||||
|
background-color: rgba(0, 150, 199, 0.08);
|
||||||
|
color: var(--text-white);
|
||||||
|
border: 1px solid rgba(0, 150, 199, 0.4);
|
||||||
|
padding: 12px 28px;
|
||||||
|
border-radius: 6px;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 0.95rem;
|
||||||
|
text-decoration: none;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 0.25s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-return:hover {
|
||||||
|
background-color: var(--brand-blue);
|
||||||
|
border-color: var(--hover-blue);
|
||||||
|
transform: translateY(-1px);
|
||||||
|
box-shadow: 0 4px 20px rgba(0, 150, 199, 0.3);
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon-left {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
transition: transform 0.25s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-return:hover .icon-left {
|
||||||
|
transform: translateX(-3px);
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes fadeIn {
|
||||||
|
from {
|
||||||
|
opacity: 0;
|
||||||
|
transform: translateY(10px);
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
opacity: 1;
|
||||||
|
transform: translateY(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,6 +1,11 @@
|
|||||||
<Router AppAssembly="typeof(Program).Assembly" NotFoundPage="typeof(Pages.NotFound)">
|
<Router AppAssembly="@typeof(Program).Assembly">
|
||||||
<Found Context="routeData">
|
<Found Context="routeData">
|
||||||
<RouteView RouteData="routeData" DefaultLayout="typeof(Layout.MainLayout)" />
|
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
|
||||||
<FocusOnNavigate RouteData="routeData" Selector="h1" />
|
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
|
||||||
</Found>
|
</Found>
|
||||||
</Router>
|
<NotFound>
|
||||||
|
<LayoutView Layout="@typeof(MainLayout)">
|
||||||
|
<ShopAdmin.Components.Pages.NotFound />
|
||||||
|
</LayoutView>
|
||||||
|
</NotFound>
|
||||||
|
</Router>
|
||||||
@@ -9,3 +9,4 @@
|
|||||||
@using ShopAdmin
|
@using ShopAdmin
|
||||||
@using ShopAdmin.Components
|
@using ShopAdmin.Components
|
||||||
@using ShopAdmin.Components.Layout
|
@using ShopAdmin.Components.Layout
|
||||||
|
@using ShopAdmin.Components.Pages
|
||||||
|
|||||||
+126
-36
@@ -1,60 +1,150 @@
|
|||||||
|
/* --- 1. Variables & Global Reset --- */
|
||||||
|
:root {
|
||||||
|
/* --- BRAND CORES --- */
|
||||||
|
--brand-blue: #0096c7;
|
||||||
|
--hover-blue: #4dabff;
|
||||||
|
/* --- NEW CANVAS BALANCE --- */
|
||||||
|
/* Lighter, slate-tinted midnight for the main workspace body */
|
||||||
|
--body-bg: #0b1519;
|
||||||
|
/* Deep obsidian for the fixed navigation anchors */
|
||||||
|
--bar-bg: #03090b;
|
||||||
|
/* The NavShelf background: sits right between the bar and body */
|
||||||
|
--shelf-bg: #070e10;
|
||||||
|
/* --- TYPOGRAPHY & LINES --- */
|
||||||
|
--text-white: #f8f9fa;
|
||||||
|
/* Soft cyan-gray tone for secondary text and structural borders */
|
||||||
|
--payoff-color: #90e0ef;
|
||||||
|
--border-low-opacity: rgba(144, 224, 239, 0.08);
|
||||||
|
--border-mid-opacity: rgba(144, 224, 239, 0.18);
|
||||||
|
--header-height: 92px;
|
||||||
|
}
|
||||||
|
|
||||||
html, body {
|
html, body {
|
||||||
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
font-family: 'Poppins', sans-serif;
|
||||||
|
background-color: var(--bar-bg);
|
||||||
|
color: var(--text-white);
|
||||||
|
overflow-x: hidden;
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
a, .btn-link {
|
/* --- 2. Layout: Top Bar --- */
|
||||||
color: #006bb7;
|
.top-bar {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
height: var(--header-height);
|
||||||
|
background-color: var(--bar-bg);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 0 4rem 0 1rem;
|
||||||
|
z-index: 1000;
|
||||||
|
border-bottom: 1px solid rgba(144, 224, 239, 0.15);
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-primary {
|
/* --- 3. Branding & Logo --- */
|
||||||
color: #fff;
|
.brand {
|
||||||
background-color: #1b6ec2;
|
text-decoration: none;
|
||||||
border-color: #1861ac;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
|
.brand-mark {
|
||||||
box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
|
height: 70px;
|
||||||
|
width: auto;
|
||||||
|
flex-shrink: 0;
|
||||||
|
filter: drop-shadow(0 0 12px rgba(0, 180, 216, 0.5));
|
||||||
|
transition: transform 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.brand:hover .brand-mark {
|
||||||
padding-top: 1.1rem;
|
transform: rotate(5deg) scale(1.05);
|
||||||
}
|
}
|
||||||
|
|
||||||
h1:focus {
|
.text-column {
|
||||||
outline: none;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
padding-left: 16px;
|
||||||
|
margin-left: 8px;
|
||||||
|
height: 70px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.valid.modified:not([type=checkbox]) {
|
.brand-main {
|
||||||
outline: 1px solid #26b050;
|
font-size: 1.8rem;
|
||||||
|
font-weight: 800;
|
||||||
|
color: var(--text-white);
|
||||||
|
letter-spacing: -0.5px;
|
||||||
|
line-height: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.invalid {
|
.brand-accent {
|
||||||
outline: 1px solid #e50000;
|
color: var(--brand-blue);
|
||||||
}
|
}
|
||||||
|
|
||||||
.validation-message {
|
.payoff-line {
|
||||||
color: #e50000;
|
font-size: 0.82rem;
|
||||||
|
color: var(--payoff-color);
|
||||||
|
margin-top: 2px;
|
||||||
|
letter-spacing: 0.3px;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blazor-error-boundary {
|
/* --- 4. Page Structure --- */
|
||||||
background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
|
.page-wrapper {
|
||||||
padding: 1rem 1rem 1rem 3.7rem;
|
display: flex;
|
||||||
color: white;
|
flex-direction: column;
|
||||||
|
flex: 1 0 auto;
|
||||||
|
padding-top: var(--header-height);
|
||||||
|
box-sizing: border-box;
|
||||||
|
background-color: var(--bar-bg);
|
||||||
|
position: relative;
|
||||||
|
transition: padding-right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.blazor-error-boundary::after {
|
main {
|
||||||
content: "An error has occurred."
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
width: 100%;
|
||||||
|
background-color: var(--body-bg) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Responsive Logic --- */
|
||||||
|
@media (max-width: 1200px) {
|
||||||
|
.top-bar {
|
||||||
|
padding: 0 2rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* --- Custom Scrollbar Branding --- */
|
||||||
|
::-webkit-scrollbar {
|
||||||
|
width: 8px;
|
||||||
|
height: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar-track {
|
||||||
|
background: var(--bar-bg);
|
||||||
|
border-left: 1px solid rgba(144, 224, 239, 0.05);
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar-thumb {
|
||||||
|
background: var(--brand-blue);
|
||||||
|
border-radius: 10px;
|
||||||
|
border: 2px solid var(--bar-bg);
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar-thumb:hover {
|
||||||
|
background: var(--hover-blue);
|
||||||
}
|
}
|
||||||
|
|
||||||
.darker-border-checkbox.form-check-input {
|
* {
|
||||||
border-color: #929292;
|
scrollbar-width: thin;
|
||||||
|
scrollbar-color: var(--brand-blue) var(--bar-bg);
|
||||||
}
|
}
|
||||||
|
|
||||||
.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
|
|
||||||
color: var(--bs-secondary-color);
|
|
||||||
text-align: end;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
|
|
||||||
text-align: start;
|
|
||||||
}
|
|
||||||
@@ -7,18 +7,18 @@ metadata:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: ConfigMap
|
||||||
metadata:
|
metadata:
|
||||||
name: shop-config
|
name: shopadmin-config
|
||||||
namespace: litecharms-shopadmin-uat
|
namespace: litecharms-shopadmin-uat
|
||||||
data:
|
data:
|
||||||
ASPNETCORE_ENVIRONMENT: "Development"
|
ASPNETCORE_ENVIRONMENT: "Development"
|
||||||
ASPNETCORE_URLS: "http://0.0.0.0:8080"
|
ASPNETCORE_URLS: "http://0.0.0.0:8080"
|
||||||
Monitoring__Address: "http://aspire-dashboard-service.aspire.svc.cluster.local:18889"
|
Monitoring__Address: "http://aspire-dashboard-service.aspire.svc.cluster.local:18889"
|
||||||
Monitoring__ServiceName: "LiteCharms.Shop.Uat"
|
Monitoring__ServiceName: "LiteCharms.ShopAdmin.Uat"
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: shop-secrets
|
name: shopadmin-secrets
|
||||||
namespace: litecharms-shopadmin-uat
|
namespace: litecharms-shopadmin-uat
|
||||||
type: Opaque
|
type: Opaque
|
||||||
data:
|
data:
|
||||||
@@ -47,11 +47,11 @@ spec:
|
|||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: shop
|
app: shopadmin
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: shop
|
app: shopadmin
|
||||||
spec:
|
spec:
|
||||||
affinity:
|
affinity:
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
@@ -61,7 +61,7 @@ spec:
|
|||||||
- key: node-role.kubernetes.io/control-plane
|
- key: node-role.kubernetes.io/control-plane
|
||||||
operator: DoesNotExist
|
operator: DoesNotExist
|
||||||
containers:
|
containers:
|
||||||
- name: shop
|
- name: shopadmin
|
||||||
image: nexus.khongisa.co.za/litecharms-shopadmin:latest
|
image: nexus.khongisa.co.za/litecharms-shopadmin:latest
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
resources:
|
resources:
|
||||||
@@ -75,32 +75,32 @@ spec:
|
|||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: shop-config
|
name: shopadmin-config
|
||||||
env:
|
env:
|
||||||
- name: ConnectionStrings__PostgresScheduler
|
- name: ConnectionStrings__PostgresScheduler
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: shop-secrets
|
name: shopadmin-secrets
|
||||||
key: connection-string-quartz
|
key: connection-string-quartz
|
||||||
- name: ConnectionStrings__PostgresShop
|
- name: ConnectionStrings__PostgresShop
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: shop-secrets
|
name: shopadmin-secrets
|
||||||
key: connection-string
|
key: connection-string
|
||||||
- name: Monitoring__Address
|
- name: Monitoring__Address
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: shop-config
|
name: shopadmin-config
|
||||||
key: Monitoring__Address
|
key: Monitoring__Address
|
||||||
- name: Monitoring__ServiceName
|
- name: Monitoring__ServiceName
|
||||||
valueFrom:
|
valueFrom:
|
||||||
configMapKeyRef:
|
configMapKeyRef:
|
||||||
name: shop-config
|
name: shopadmin-config
|
||||||
key: Monitoring__ServiceName
|
key: Monitoring__ServiceName
|
||||||
- name: Monitoring__ApiKey
|
- name: Monitoring__ApiKey
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: shop-secrets
|
name: shopadmin-secrets
|
||||||
key: aspire-apikey
|
key: aspire-apikey
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: data
|
- name: data
|
||||||
@@ -126,12 +126,12 @@ spec:
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: shop-service
|
name: shopadmin-service
|
||||||
namespace: litecharms-shopadmin-uat
|
namespace: litecharms-shopadmin-uat
|
||||||
spec:
|
spec:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
selector:
|
selector:
|
||||||
app: shop
|
app: shopadmin
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
@@ -141,7 +141,7 @@ spec:
|
|||||||
apiVersion: traefik.io/v1alpha1
|
apiVersion: traefik.io/v1alpha1
|
||||||
kind: IngressRoute
|
kind: IngressRoute
|
||||||
metadata:
|
metadata:
|
||||||
name: shop-web-secure
|
name: shopadmin-web-secure
|
||||||
namespace: litecharms-shopadmin-uat
|
namespace: litecharms-shopadmin-uat
|
||||||
spec:
|
spec:
|
||||||
entryPoints:
|
entryPoints:
|
||||||
@@ -150,7 +150,7 @@ spec:
|
|||||||
- match: Host(`shopadmin.uat.khongisa.co.za`)
|
- match: Host(`shopadmin.uat.khongisa.co.za`)
|
||||||
kind: Rule
|
kind: Rule
|
||||||
services:
|
services:
|
||||||
- name: shop-service
|
- name: shopadmin-service
|
||||||
port: 80
|
port: 80
|
||||||
sticky:
|
sticky:
|
||||||
cookie:
|
cookie:
|
||||||
|
|||||||
Reference in New Issue
Block a user