Spaces:
Paused
Paused
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>User Panel</title> | |
| <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"> | |
| <link rel="stylesheet" href="/static/style.css"> | |
| </head> | |
| <body class="container"> | |
| <h1 class="mt-4">User Panel</h1> | |
| <hr> | |
| <div class="mb-4"> | |
| <h3>Generate New API Key</h3> | |
| <form id="generateKeyForm"> | |
| <div class="mb-3"> | |
| <label for="expiry_date" class="form-label">Expiry Date (ISO format, optional)</label> | |
| <input type="text" id="expiry_date" class="form-control" placeholder="e.g., 2025-03-01T00:00:00"> | |
| </div> | |
| <button type="submit" class="btn btn-primary">Generate API Key</button> | |
| </form> | |
| </div> | |
| <hr> | |
| <div class="mb-4"> | |
| <h3>Your API Keys</h3> | |
| <button id="loadApiKeys" class="btn btn-secondary">Load API Keys</button> | |
| <pre id="apiKeysList" class="mt-3"></pre> | |
| </div> | |
| <hr> | |
| <div> | |
| <h3>Test API</h3> | |
| <button id="testApiButton" class="btn btn-success">Test API</button> | |
| <pre id="apiTestResult" class="mt-3"></pre> | |
| </div> | |
| <script src="/static/user.js"></script> | |
| </body> | |
| </html> | |