EMERGENCY FIXES: ✅ DELETE MockSilverPayService.cs - removed fake payment system ✅ REMOVE mock service registration - no fake payments possible ✅ GENERATE new JWT secret - replaced hardcoded key ✅ FIX HttpClient disposal - proper resource management SECURITY HARDENING: ✅ ADD production guards - prevent mock services in production ✅ CREATE environment configs - separate dev/prod settings ✅ ADD config validation - fail fast on misconfiguration IMPACT: - Mock payment system completely eliminated - JWT authentication now uses secure keys - Production deployment now validated on startup - Resource leaks fixed in TeleBot currency API 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
134 lines
7.1 KiB
Plaintext
134 lines
7.1 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, viewport-fit=cover" />
|
|
<title>@ViewData["Title"] - LittleShop Admin</title>
|
|
|
|
<!-- PWA Meta Tags -->
|
|
<meta name="application-name" content="LittleShop Admin" />
|
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
|
|
<meta name="apple-mobile-web-app-title" content="LittleShop" />
|
|
<meta name="description" content="Modern e-commerce admin panel" />
|
|
<meta name="mobile-web-app-capable" content="yes" />
|
|
<meta name="theme-color" content="#2563eb" />
|
|
<meta name="msapplication-TileColor" content="#2563eb" />
|
|
<meta name="msapplication-tap-highlight" content="no" />
|
|
|
|
<!-- PWA Manifest -->
|
|
<link rel="manifest" href="/manifest.json" />
|
|
|
|
<!-- Icons -->
|
|
<link rel="icon" type="image/x-icon" href="/favicon.ico" />
|
|
<link rel="apple-touch-icon" href="/icons/icon-152x152.png" />
|
|
<link rel="apple-touch-icon" sizes="72x72" href="/icons/icon-72x72.png" />
|
|
<link rel="apple-touch-icon" sizes="96x96" href="/icons/icon-96x96.png" />
|
|
<link rel="apple-touch-icon" sizes="128x128" href="/icons/icon-128x128.png" />
|
|
<link rel="apple-touch-icon" sizes="144x144" href="/icons/icon-144x144.png" />
|
|
<link rel="apple-touch-icon" sizes="152x152" href="/icons/icon-152x152.png" />
|
|
<link rel="apple-touch-icon" sizes="192x192" href="/icons/icon-192x192.png" />
|
|
<link rel="apple-touch-icon" sizes="384x384" href="/icons/icon-384x384.png" />
|
|
<link rel="apple-touch-icon" sizes="512x512" href="/icons/icon-512x512.png" />
|
|
<link href="/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet">
|
|
<link href="/lib/fontawesome/css/all.min.css" rel="stylesheet">
|
|
<link href="/lib/bootstrap-icons/bootstrap-icons.css" rel="stylesheet">
|
|
<link href="/css/modern-admin.css" rel="stylesheet">
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<nav class="navbar navbar-expand-sm navbar-light bg-white">
|
|
<div class="container-fluid">
|
|
<a class="navbar-brand" href="@Url.Action("Index", "Dashboard", new { area = "Admin" })">
|
|
<i class="fas fa-store"></i> LittleShop Admin
|
|
</a>
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target=".navbar-collapse">
|
|
<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" href="@Url.Action("Index", "Dashboard", new { area = "Admin" })">
|
|
<i class="fas fa-tachometer-alt"></i> Dashboard
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="@Url.Action("Index", "Categories", new { area = "Admin" })">
|
|
<i class="fas fa-tags"></i> Categories
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="@Url.Action("Index", "Products", new { area = "Admin" })">
|
|
<i class="fas fa-box"></i> Products
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="@Url.Action("Index", "Orders", new { area = "Admin" })">
|
|
<i class="fas fa-shopping-cart"></i> Orders
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="@Url.Action("Index", "Reviews", new { area = "Admin" })">
|
|
<i class="fas fa-star"></i> Reviews
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="@Url.Action("Index", "Messages", new { area = "Admin" })">
|
|
<i class="fas fa-comments"></i> Messages
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="@Url.Action("Index", "ShippingRates", new { area = "Admin" })">
|
|
<i class="fas fa-truck"></i> Shipping
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="@Url.Action("Index", "Users", new { area = "Admin" })">
|
|
<i class="fas fa-users"></i> Users
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="@Url.Action("Index", "Bots", new { area = "Admin" })">
|
|
<i class="fas fa-robot"></i> Bots
|
|
</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="@Url.Action("Index", "SystemSettings", new { area = "Admin" })">
|
|
<i class="fas fa-cog"></i> Settings
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
<ul class="navbar-nav">
|
|
<li class="nav-item dropdown">
|
|
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown">
|
|
<i class="fas fa-user"></i> @User.Identity?.Name
|
|
</a>
|
|
<ul class="dropdown-menu">
|
|
<li>
|
|
<form method="post" action="@Url.Action("Logout", "Account", new { area = "Admin" })">
|
|
<button type="submit" class="dropdown-item">
|
|
<i class="fas fa-sign-out-alt"></i> Logout
|
|
</button>
|
|
</form>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
</header>
|
|
<div class="container-fluid">
|
|
<main role="main" class="pb-3">
|
|
@RenderBody()
|
|
</main>
|
|
</div>
|
|
|
|
<script src="/lib/jquery/jquery.min.js"></script>
|
|
<script src="/lib/bootstrap/js/bootstrap.bundle.min.js"></script>
|
|
<script src="/js/pwa.js"></script>
|
|
<script src="/js/notifications.js"></script>
|
|
<script src="/js/modern-mobile.js"></script>
|
|
@await RenderSectionAsync("Scripts", required: false)
|
|
</body>
|
|
</html> |