Refactor payment verification to manual workflow and add comprehensive cleanup tools
Major changes: • Remove BTCPay Server integration in favor of SilverPAY manual verification • Add test data cleanup mechanisms (API endpoints and shell scripts) • Fix compilation errors in TestController (IdentityReference vs CustomerIdentity) • Add deployment automation scripts for Hostinger VPS • Enhance integration testing with comprehensive E2E validation • Add Blazor components and mobile-responsive CSS for admin interface • Create production environment configuration scripts Key Features Added: • Manual payment verification through Admin panel Order Details • Bulk test data cleanup with proper cascade handling • Deployment automation with systemd service configuration • Comprehensive E2E testing suite with SilverPAY integration validation • Mobile-first admin interface improvements Security & Production: • Environment variable configuration for production secrets • Proper JWT and VAPID key management • SilverPAY API integration with live credentials • Database cleanup and maintenance tools 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
35
LittleShop/Areas/Admin/Views/Products/Blazor.cshtml
Normal file
35
LittleShop/Areas/Admin/Views/Products/Blazor.cshtml
Normal file
@@ -0,0 +1,35 @@
|
||||
@{
|
||||
ViewData["Title"] = "Products Management";
|
||||
Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
<div id="blazor-products-container" data-blazor-component="products">
|
||||
<component type="typeof(LittleShop.Areas.Admin.Components.Products.ProductsBlazorSimple)"
|
||||
render-mode="ServerPrerendered"
|
||||
param-ProductId="@ViewData["ProductId"]" />
|
||||
</div>
|
||||
|
||||
@section Scripts {
|
||||
<script>
|
||||
// Initialize Blazor Server
|
||||
window.addEventListener('DOMContentLoaded', function () {
|
||||
if (window.Blazor && window.Blazor.start) {
|
||||
console.log('Starting Blazor...');
|
||||
window.Blazor.start();
|
||||
} else {
|
||||
console.log('Blazor not available, attempting manual start...');
|
||||
// Fallback - load the blazor script if not already loaded
|
||||
if (!document.querySelector('script[src*="blazor.server.js"]')) {
|
||||
var script = document.createElement('script');
|
||||
script.src = '/_framework/blazor.server.js';
|
||||
script.onload = function() {
|
||||
if (window.Blazor) {
|
||||
window.Blazor.start();
|
||||
}
|
||||
};
|
||||
document.head.appendChild(script);
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
}
|
||||
@@ -10,14 +10,17 @@
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
<div class="btn-group">
|
||||
<a href="@Url.Action("Blazor")" class="btn btn-success">
|
||||
<i class="fas fa-rocket"></i> <span class="d-none d-sm-inline">New</span> Blazor UI
|
||||
</a>
|
||||
<a href="@Url.Action("Create")" class="btn btn-primary">
|
||||
<i class="fas fa-plus"></i> Add Product
|
||||
<i class="fas fa-plus"></i> <span class="d-none d-sm-inline">Add Product</span>
|
||||
</a>
|
||||
<a href="@Url.Action("Import")" class="btn btn-outline-success">
|
||||
<i class="fas fa-upload"></i> Import CSV
|
||||
<i class="fas fa-upload"></i> <span class="d-none d-sm-inline">Import</span>
|
||||
</a>
|
||||
<a href="@Url.Action("Export")" class="btn btn-outline-info">
|
||||
<i class="fas fa-download"></i> Export CSV
|
||||
<i class="fas fa-download"></i> <span class="d-none d-sm-inline">Export</span>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<base href="/" />
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, viewport-fit=cover" />
|
||||
<title>@ViewData["Title"] - TeleShop Admin</title>
|
||||
@@ -33,7 +34,10 @@
|
||||
<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="/_content/Radzen.Blazor/css/material-base.css" rel="stylesheet">
|
||||
<link href="/css/modern-admin.css" rel="stylesheet">
|
||||
<link href="/css/mobile-admin.css" rel="stylesheet">
|
||||
@await RenderSectionAsync("Head", required: false)
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
@@ -131,9 +135,130 @@
|
||||
|
||||
<script src="/lib/jquery/jquery.min.js"></script>
|
||||
<script src="/lib/bootstrap/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="/_framework/blazor.server.js" autostart="false"></script>
|
||||
<script src="/_content/Radzen.Blazor/Radzen.Blazor.js"></script>
|
||||
<script src="/js/pwa.js"></script>
|
||||
<script src="/js/notifications.js"></script>
|
||||
<script src="/js/modern-mobile.js"></script>
|
||||
<script src="/js/blazor-integration.js"></script>
|
||||
@await RenderSectionAsync("Scripts", required: false)
|
||||
<!-- Mobile Bottom Navigation -->
|
||||
<nav class="mobile-bottom-nav">
|
||||
<ul class="mobile-bottom-nav-items">
|
||||
<li class="mobile-nav-item">
|
||||
<a href="@Url.Action("Index", "Orders", new { area = "Admin" })" class="mobile-nav-link @(ViewContext.RouteData.Values["controller"]?.ToString() == "Orders" ? "active" : "")">
|
||||
<i class="fas fa-shopping-cart"></i>
|
||||
<span>Orders</span>
|
||||
<span class="mobile-nav-badge" id="mobile-orders-badge" style="display: none;">0</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="mobile-nav-item">
|
||||
<a href="@Url.Action("Index", "Reviews", new { area = "Admin" })" class="mobile-nav-link @(ViewContext.RouteData.Values["controller"]?.ToString() == "Reviews" ? "active" : "")">
|
||||
<i class="fas fa-star"></i>
|
||||
<span>Reviews</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="mobile-nav-item">
|
||||
<a href="@Url.Action("Index", "Messages", new { area = "Admin" })" class="mobile-nav-link @(ViewContext.RouteData.Values["controller"]?.ToString() == "Messages" ? "active" : "")">
|
||||
<i class="fas fa-comments"></i>
|
||||
<span>Messages</span>
|
||||
<span class="mobile-nav-badge" id="mobile-messages-badge" style="display: none;">0</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="mobile-nav-item">
|
||||
<a href="@Url.Action("LiveView", "BotActivity", new { area = "Admin" })" class="mobile-nav-link @(ViewContext.RouteData.Values["controller"]?.ToString() == "BotActivity" ? "active" : "")">
|
||||
<i class="fas fa-satellite-dish"></i>
|
||||
<span>Live</span>
|
||||
</a>
|
||||
</li>
|
||||
<li class="mobile-nav-item">
|
||||
<a href="#" class="mobile-nav-link" onclick="toggleSettingsDrawer(); return false;">
|
||||
<i class="fas fa-cog"></i>
|
||||
<span>Settings</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<!-- Settings Drawer -->
|
||||
<div class="drawer-overlay" onclick="toggleSettingsDrawer()"></div>
|
||||
<div class="settings-drawer" id="settingsDrawer">
|
||||
<div class="settings-drawer-header">
|
||||
<h5>Settings</h5>
|
||||
<button class="settings-drawer-close" onclick="toggleSettingsDrawer()">
|
||||
<i class="fas fa-times"></i>
|
||||
</button>
|
||||
</div>
|
||||
<ul class="settings-menu-list">
|
||||
<li class="settings-menu-item">
|
||||
<a href="@Url.Action("Index", "Dashboard", new { area = "Admin" })" class="settings-menu-link">
|
||||
<i class="fas fa-tachometer-alt"></i>
|
||||
Dashboard
|
||||
</a>
|
||||
</li>
|
||||
<li class="settings-menu-item">
|
||||
<a href="@Url.Action("Index", "Categories", new { area = "Admin" })" class="settings-menu-link">
|
||||
<i class="fas fa-tags"></i>
|
||||
Categories
|
||||
</a>
|
||||
</li>
|
||||
<li class="settings-menu-item">
|
||||
<a href="@Url.Action("Index", "Products", new { area = "Admin" })" class="settings-menu-link">
|
||||
<i class="fas fa-box"></i>
|
||||
Products
|
||||
</a>
|
||||
</li>
|
||||
<li class="settings-menu-item">
|
||||
<a href="@Url.Action("Index", "ShippingRates", new { area = "Admin" })" class="settings-menu-link">
|
||||
<i class="fas fa-truck"></i>
|
||||
Shipping
|
||||
</a>
|
||||
</li>
|
||||
<li class="settings-menu-item">
|
||||
<a href="@Url.Action("Index", "Users", new { area = "Admin" })" class="settings-menu-link">
|
||||
<i class="fas fa-users"></i>
|
||||
Users
|
||||
</a>
|
||||
</li>
|
||||
<li class="settings-menu-item">
|
||||
<a href="@Url.Action("Index", "Bots", new { area = "Admin" })" class="settings-menu-link">
|
||||
<i class="fas fa-robot"></i>
|
||||
Bots
|
||||
</a>
|
||||
</li>
|
||||
<li class="settings-menu-item">
|
||||
<a href="@Url.Action("Index", "SystemSettings", new { area = "Admin" })" class="settings-menu-link">
|
||||
<i class="fas fa-sliders-h"></i>
|
||||
System Settings
|
||||
</a>
|
||||
</li>
|
||||
<li class="settings-menu-item">
|
||||
<form method="post" action="@Url.Action("Logout", "Account", new { area = "Admin" })">
|
||||
<button type="submit" class="settings-menu-link" style="width: 100%; border: none; background: none; text-align: left;">
|
||||
<i class="fas fa-sign-out-alt"></i>
|
||||
Logout
|
||||
</button>
|
||||
</form>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
// Settings Drawer Toggle
|
||||
function toggleSettingsDrawer() {
|
||||
const drawer = document.getElementById('settingsDrawer');
|
||||
const overlay = document.querySelector('.drawer-overlay');
|
||||
|
||||
drawer.classList.toggle('open');
|
||||
overlay.classList.toggle('show');
|
||||
|
||||
// Prevent body scroll when drawer is open
|
||||
if (drawer.classList.contains('open')) {
|
||||
document.body.style.overflow = 'hidden';
|
||||
} else {
|
||||
document.body.style.overflow = '';
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user