Download admin-control-panel.html from Meech888/malipo: direct link, hf CLI and curl.
- Browser
- Download file 26.2 kB
-
https://huggingface.co/spaces/Meech888/malipo/resolve/main/admin-control-panel.html
- Command line
-
hf download hf://spaces/Meech888/malipo/admin-control-panel.html
-
curl -L -o admin-control-panel.html https://huggingface.co/spaces/Meech888/malipo/resolve/main/admin-control-panel.html
26.2 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Admin Control Panel | MALiPo</title> | |
| <link rel="icon" type="image/x-icon" href="/static/favicon.ico"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
| <style> | |
| .admin-gradient { | |
| background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); | |
| } | |
| .sidebar { | |
| height: calc(100vh - 4rem); | |
| position: fixed; | |
| top: 4rem; | |
| left: 0; | |
| width: 250px; | |
| background-color: #f8fafc; | |
| border-right: 1px solid #e2e8f0; | |
| } | |
| .main-content { | |
| margin-left: 250px; | |
| padding-top: 4rem; | |
| } | |
| .active-link { | |
| background-color: #dbeafe; | |
| border-left: 4px solid #3b82f6; | |
| color: #1d4ed8; | |
| font-weight: 600; | |
| } | |
| .table-row:hover { | |
| background-color: #f1f5f9; | |
| } | |
| .control-card { | |
| transition: all 0.3s ease; | |
| } | |
| .control-card:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); | |
| } | |
| </style> | |
| </head> | |
| <body class="font-sans antialiased text-gray-900"> | |
| <!-- Navigation --> | |
| <nav class="bg-white shadow-sm fixed w-full z-50"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8"> | |
| <div class="flex justify-between h-16"> | |
| <div class="flex items-center"> | |
| <div class="flex-shrink-0 flex items-center"> | |
| <i data-feather="zap" class="h-8 w-8 text-indigo-600"></i> | |
| <span class="ml-2 text-xl font-bold text-gray-900">MALiPo Admin</span> | |
| </div> | |
| </div> | |
| <div class="hidden md:ml-6 md:flex md:items-center md:space-x-8"> | |
| <a href="admin-dashboard.html" class="text-gray-500 hover:text-indigo-600 px-3 py-2 text-sm font-medium">Dashboard</a> | |
| <a href="admin-control-panel.html" class="text-indigo-600 px-3 py-2 text-sm font-medium">Control Panel</a> | |
| <a href="admin-users.html" class="text-gray-500 hover:text-indigo-600 px-3 py-2 text-sm font-medium">Users</a> | |
| <a href="admin-transactions.html" class="text-gray-500 hover:text-indigo-600 px-3 py-2 text-sm font-medium">Transactions</a> | |
| </div> | |
| <div class="flex items-center"> | |
| <div class="relative ml-3"> | |
| <div> | |
| <button type="button" class="flex items-center text-sm rounded-full focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500" id="user-menu-button"> | |
| <span class="sr-only">Open user menu</span> | |
| <div class="h-8 w-8 rounded-full bg-indigo-100 flex items-center justify-center"> | |
| <i data-feather="user" class="h-5 w-5 text-indigo-600"></i> | |
| </div> | |
| <span class="ml-2 text-sm font-medium text-gray-700">Admin User</span> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </nav> | |
| <!-- Sidebar --> | |
| <div class="sidebar hidden md:block"> | |
| <div class="p-4"> | |
| <h3 class="text-xs font-semibold text-gray-500 uppercase tracking-wider mb-2">Main</h3> | |
| <ul class="space-y-1"> | |
| <li> | |
| <a href="admin-dashboard.html" class="flex items-center px-3 py-2 text-sm text-gray-700 rounded-md hover:bg-gray-100"> | |
| <i data-feather="home" class="h-4 w-4 mr-3"></i> | |
| Dashboard | |
| </a> | |
| </li> | |
| <li> | |
| <a href="admin-control-panel.html" class="active-link flex items-center px-3 py-2 text-sm rounded-md"> | |
| <i data-feather="sliders" class="h-4 w-4 mr-3"></i> | |
| Control Panel | |
| </a> | |
| </li> | |
| <li> | |
| <a href="admin-users.html" class="flex items-center px-3 py-2 text-sm text-gray-700 rounded-md hover:bg-gray-100"> | |
| <i data-feather="users" class="h-4 w-4 mr-3"></i> | |
| Users | |
| </a> | |
| </li> | |
| <li> | |
| <a href="admin-transactions.html" class="flex items-center px-3 py-2 text-sm text-gray-700 rounded-md hover:bg-gray-100"> | |
| <i data-feather="repeat" class="h-4 w-4 mr-3"></i> | |
| Transactions | |
| </a> | |
| </li> | |
| </ul> | |
| <h3 class="text-xs font-semibold text-gray-500 uppercase tracking-wider mt-6 mb-2">System</h3> | |
| <ul class="space-y-1"> | |
| <li> | |
| <a href="#" class="flex items-center px-3 py-2 text-sm text-gray-700 rounded-md hover:bg-gray-100"> | |
| <i data-feather="settings" class="h-4 w-4 mr-3"></i> | |
| Settings | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#" class="flex items-center px-3 py-2 text-sm text-gray-700 rounded-md hover:bg-gray-100"> | |
| <i data-feather="shield" class="h-4 w-4 mr-3"></i> | |
| Security | |
| </a> | |
| </li> | |
| <li> | |
| <a href="index.html" class="flex items-center px-3 py-2 text-sm text-gray-700 rounded-md hover:bg-gray-100"> | |
| <i data-feather="log-out" class="h-4 w-4 mr-3"></i> | |
| Logout | |
| </a> | |
| </li> | |
| </ul> | |
| </div> | |
| </div> | |
| <!-- Main Content --> | |
| <div class="main-content"> | |
| <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"> | |
| <!-- Header --> | |
| <div class="bg-white rounded-lg shadow-md p-6 mb-8"> | |
| <div class="flex flex-col md:flex-row md:items-center md:justify-between"> | |
| <div> | |
| <h1 class="text-2xl font-bold text-gray-900">System Control Panel</h1> | |
| <p class="mt-2 text-gray-600">Manage platform settings and system controls</p> | |
| </div> | |
| <div class="mt-4 md:mt-0"> | |
| <div class="px-4 py-2 rounded-full text-sm font-medium bg-green-100 text-green-800"> | |
| <i data-feather="check-circle" class="h-4 w-4 inline mr-1"></i> | |
| System Online | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- System Controls --> | |
| <div class="grid grid-cols-1 lg:grid-cols-2 gap-8 mb-8"> | |
| <!-- Platform Status Controls --> | |
| <div class="bg-white rounded-lg shadow-md p-6 control-card"> | |
| <h2 class="text-xl font-semibold text-gray-900 mb-6">Platform Status</h2> | |
| <div class="space-y-6"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <h3 class="font-medium text-gray-900">Platform Availability</h3> | |
| <p class="text-sm text-gray-500">Enable/disable platform access</p> | |
| </div> | |
| <label class="switch"> | |
| <input type="checkbox" checked id="platform-status"> | |
| <span class="slider"></span> | |
| </label> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <h3 class="font-medium text-gray-900">Transaction Processing</h3> | |
| <p class="text-sm text-gray-500">Enable/disable transactions</p> | |
| </div> | |
| <label class="switch"> | |
| <input type="checkbox" checked id="transaction-status"> | |
| <span class="slider"></span> | |
| </label> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <h3 class="font-medium text-gray-900">Wallet Creation</h3> | |
| <p class="text-sm text-gray-500">Allow new wallet creation</p> | |
| </div> | |
| <label class="switch"> | |
| <input type="checkbox" checked id="wallet-creation"> | |
| <span class="slider"></span> | |
| </label> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <h3 class="font-medium text-gray-900">User Registration</h3> | |
| <p class="text-sm text-gray-500">Allow new user signups</p> | |
| </div> | |
| <label class="switch"> | |
| <input type="checkbox" checked id="user-registration"> | |
| <span class="slider"></span> | |
| </label> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Fee Management --> | |
| <div class="bg-white rounded-lg shadow-md p-6 control-card"> | |
| <h2 class="text-xl font-semibold text-gray-900 mb-6">Fee Management</h2> | |
| <div class="space-y-6"> | |
| <div> | |
| <h3 class="font-medium text-gray-900 mb-2">Transaction Fee Rate</h3> | |
| <div class="flex items-center space-x-4"> | |
| <input type="range" min="0" max="5" step="0.1" value="0.5" class="w-full" id="fee-rate"> | |
| <span class="text-sm font-medium text-gray-900 bg-gray-100 px-3 py-1 rounded" id="fee-rate-value">0.5%</span> | |
| </div> | |
| </div> | |
| <div> | |
| <h3 class="font-medium text-gray-900 mb-2">Minimum Transaction Fee</h3> | |
| <div class="flex items-center"> | |
| <span class="text-gray-500 mr-2">$</span> | |
| <input type="number" min="0" step="0.01" value="0.50" class="w-full px-3 py-2 border border-gray-300 rounded-md" id="min-fee"> | |
| </div> | |
| </div> | |
| <div> | |
| <h3 class="font-medium text-gray-900 mb-2">Maximum Transaction Fee</h3> | |
| <div class="flex items-center"> | |
| <span class="text-gray-500 mr-2">$</span> | |
| <input type="number" min="0" step="0.01" value="10.00" class="w-full px-3 py-2 border border-gray-300 rounded-md" id="max-fee"> | |
| </div> | |
| </div> | |
| <div class="pt-4"> | |
| <button class="w-full px-4 py-2 bg-indigo-600 text-white rounded-md hover:bg-indigo-700"> | |
| Update Fee Structure | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- System Configuration --> | |
| <div class="grid grid-cols-1 lg:grid-cols-2 gap-8 mb-8"> | |
| <!-- Maintenance Mode --> | |
| <div class="bg-white rounded-lg shadow-md p-6 control-card"> | |
| <h2 class="text-xl font-semibold text-gray-900 mb-6">Maintenance Mode</h2> | |
| <div class="space-y-6"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <h3 class="font-medium text-gray-900">Enable Maintenance Mode</h3> | |
| <p class="text-sm text-gray-500">Temporarily disable platform for maintenance</p> | |
| </div> | |
| <label class="switch"> | |
| <input type="checkbox" id="maintenance-mode"> | |
| <span class="slider"></span> | |
| </label> | |
| </div> | |
| <div> | |
| <h3 class="font-medium text-gray-900 mb-2">Maintenance Message</h3> | |
| <textarea class="w-full px-3 py-2 border border-gray-300 rounded-md" rows="3" placeholder="Platform is currently under maintenance. We'll be back shortly." id="maintenance-message"></textarea> | |
| </div> | |
| <div> | |
| <h3 class="font-medium text-gray-900 mb-2">Scheduled Maintenance</h3> | |
| <div class="grid grid-cols-2 gap-4"> | |
| <div> | |
| <label class="block text-sm text-gray-700 mb-1">Start Time</label> | |
| <input type="datetime-local" class="w-full px-3 py-2 border border-gray-300 rounded-md"> | |
| </div> | |
| <div> | |
| <label class="block text-sm text-gray-700 mb-1">End Time</label> | |
| <input type="datetime-local" class="w-full px-3 py-2 border border-gray-300 rounded-md"> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Security Controls --> | |
| <div class="bg-white rounded-lg shadow-md p-6 control-card"> | |
| <h2 class="text-xl font-semibold text-gray-900 mb-6">Security Controls</h2> | |
| <div class="space-y-6"> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <h3 class="font-medium text-gray-900">Two-Factor Authentication</h3> | |
| <p class="text-sm text-gray-500">Require 2FA for all users</p> | |
| </div> | |
| <label class="switch"> | |
| <input type="checkbox" checked id="require-2fa"> | |
| <span class="slider"></span> | |
| </label> | |
| </div> | |
| <div class="flex items-center justify-between"> | |
| <div> | |
| <h3 class="font-medium text-gray-900">IP Whitelisting</h3> | |
| <p class="text-sm text-gray-500">Restrict access to specific IPs</p> | |
| </div> | |
| <label class="switch"> | |
| <input type="checkbox" id="ip-whitelist"> | |
| <span class="slider"></span> | |
| </label> | |
| </div> | |
| <div> | |
| <h3 class="font-medium text-gray-900 mb-2">Session Timeout (minutes)</h3> | |
| <input type="number" min="1" max="1440" value="30" class="w-full px-3 py-2 border border-gray-300 rounded-md" id="session-timeout"> | |
| </div> | |
| <div> | |
| <h3 class="font-medium text-gray-900 mb-2">Failed Login Attempts</h3> | |
| <input type="number" min="1" max="10" value="5" class="w-full px-3 py-2 border border-gray-300 rounded-md" id="login-attempts"> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- System Actions --> | |
| <div class="bg-white rounded-lg shadow-md p-6"> | |
| <h2 class="text-xl font-semibold text-gray-900 mb-6">System Actions</h2> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4"> | |
| <button class="p-4 border border-indigo-600 text-indigo-600 rounded-md hover:bg-indigo-50 flex flex-col items-center"> | |
| <i data-feather="refresh-cw" class="h-6 w-6 mb-2"></i> | |
| <span class="text-sm font-medium">Restart Services</span> | |
| </button> | |
| <button class="p-4 border border-blue-600 text-blue-600 rounded-md hover:bg-blue-50 flex flex-col items-center"> | |
| <i data-feather="database" class="h-6 w-6 mb-2"></i> | |
| <span class="text-sm font-medium">Backup Database</span> | |
| </button> | |
| <button class="p-4 border border-yellow-600 text-yellow-600 rounded-md hover:bg-yellow-50 flex flex-col items-center"> | |
| <i data-feather="zap" class="h-6 w-6 mb-2"></i> | |
| <span class="text-sm font-medium">Clear Cache</span> | |
| </button> | |
| <button class="p-4 border border-red-600 text-red-600 rounded-md hover:bg-red-50 flex flex-col items-center"> | |
| <i data-feather="alert-triangle" class="h-6 w-6 mb-2"></i> | |
| <span class="text-sm font-medium">Emergency Shutdown</span> | |
| </button> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Footer --> | |
| <footer class="bg-gray-50 mt-12"> | |
| <div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:py-16 lg:px-8"> | |
| <div class="xl:grid xl:grid-cols-3 xl:gap-8"> | |
| <div class="space-y-8 xl:col-span-1"> | |
| <div class="flex items-center"> | |
| <i data-feather="zap" class="h-8 w-8 text-indigo-600"></i> | |
| <span class="ml-2 text-xl font-bold text-gray-900">MALiPo Admin</span> | |
| </div> | |
| <p class="text-gray-500 text-base"> | |
| Administrative dashboard for overseeing all MALiPo platform operations. | |
| </p> | |
| </div> | |
| <div class="mt-12 grid grid-cols-2 gap-8 xl:mt-0 xl:col-span-2"> | |
| <div class="md:grid md:grid-cols-2 md:gap-8"> | |
| <div> | |
| <h3 class="text-sm font-semibold text-gray-900 tracking-wider uppercase"> | |
| Resources | |
| </h3> | |
| <ul class="mt-4 space-y-4"> | |
| <li> | |
| <a href="#" class="text-base text-gray-500 hover:text-gray-900"> | |
| Documentation | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#" class="text-base text-gray-500 hover:text-gray-900"> | |
| API Reference | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#" class="text-base text-gray-500 hover:text-gray-900"> | |
| Guides | |
| </a> | |
| </li> | |
| </ul> | |
| </div> | |
| <div class="mt-12 md:mt-0"> | |
| <h3 class="text-sm font-semibold text-gray-900 tracking-wider uppercase"> | |
| Company | |
| </h3> | |
| <ul class="mt-4 space-y-4"> | |
| <li> | |
| <a href="#" class="text-base text-gray-500 hover:text-gray-900"> | |
| About | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#" class="text-base text-gray-500 hover:text-gray-900"> | |
| Blog | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#" class="text-base text-gray-500 hover:text-gray-900"> | |
| Careers | |
| </a> | |
| </li> | |
| </ul> | |
| </div> | |
| </div> | |
| <div class="md:grid md:grid-cols-2 md:gap-8"> | |
| <div> | |
| <h3 class="text-sm font-semibold text-gray-900 tracking-wider uppercase"> | |
| Legal | |
| </h3> | |
| <ul class="mt-4 space-y-4"> | |
| <li> | |
| <a href="#" class="text-base text-gray-500 hover:text-gray-900"> | |
| Privacy | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#" class="text-base text-gray-500 hover:text-gray-900"> | |
| Terms | |
| </a> | |
| </li> | |
| </ul> | |
| </div> | |
| <div class="mt-12 md:mt-0"> | |
| <h3 class="text-sm font-semibold text-gray-900 tracking-wider uppercase"> | |
| Support | |
| </h3> | |
| <ul class="mt-4 space-y-4"> | |
| <li> | |
| <a href="#" class="text-base text-gray-500 hover:text-gray-900"> | |
| Contact | |
| </a> | |
| </li> | |
| <li> | |
| <a href="#" class="text-base text-gray-500 hover:text-gray-900"> | |
| Status | |
| </a> | |
| </li> | |
| </ul> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="mt-12 border-t border-gray-200 pt-8"> | |
| <p class="text-base text-gray-400 text-center"> | |
| © 2023 MALiPo. All rights reserved. | |
| </p> | |
| </div> | |
| </div> | |
| </footer> | |
| <style> | |
| .switch { | |
| position: relative; | |
| display: inline-block; | |
| width: 60px; | |
| height: 34px; | |
| } | |
| .switch input { | |
| opacity: 0; | |
| width: 0; | |
| height: 0; | |
| } | |
| .slider { | |
| position: absolute; | |
| cursor: pointer; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background-color: #ccc; | |
| -webkit-transition: .4s; | |
| transition: .4s; | |
| border-radius: 34px; | |
| } | |
| .slider:before { | |
| position: absolute; | |
| content: ""; | |
| height: 26px; | |
| width: 26px; | |
| left: 4px; | |
| bottom: 4px; | |
| background-color: white; | |
| -webkit-transition: .4s; | |
| transition: .4s; | |
| border-radius: 50%; | |
| } | |
| input:checked + .slider { | |
| background-color: #3b82f6; | |
| } | |
| input:checked + .slider:before { | |
| -webkit-transform: translateX(26px); | |
| -ms-transform: translateX(26px); | |
| transform: translateX(26px); | |
| } | |
| </style> | |
| <script> | |
| feather.replace(); | |
| // Fee rate slider | |
| const feeRateSlider = document.getElementById('fee-rate'); | |
| const feeRateValue = document.getElementById('fee-rate-value'); | |
| feeRateSlider.addEventListener('input', function() { | |
| feeRateValue.textContent = this.value + '%'; | |
| }); | |
| // Toggle switches | |
| const switches = document.querySelectorAll('input[type="checkbox"]'); | |
| switches.forEach(switchEl => { | |
| switchEl.addEventListener('change', function() { | |
| const status = this.checked ? 'enabled' : 'disabled'; | |
| console.log(`${this.id} ${status}`); | |
| }); | |
| }); | |
| // System action buttons | |
| const actionButtons = document.querySelectorAll('.grid button'); | |
| actionButtons.forEach(button => { | |
| button.addEventListener('click', function() { | |
| const action = this.querySelector('span').textContent; | |
| if (confirm(`Are you sure you want to ${action.toLowerCase()}?`)) { | |
| alert(`${action} initiated successfully.`); | |
| } | |
| }); | |
| }); | |
| </script> | |
| </body> | |
| </html> |