Niansuh commited on
Commit
19fcbed
·
verified ·
1 Parent(s): 37321c4

Update templates/user.html

Browse files
Files changed (1) hide show
  1. templates/user.html +31 -9
templates/user.html CHANGED
@@ -1,14 +1,36 @@
1
  <!DOCTYPE html>
2
- <html>
3
  <head>
4
- <meta charset="UTF-8">
5
- <title>User Panel</title>
6
- <link rel="stylesheet" href="/static/style.css">
 
7
  </head>
8
- <body>
9
- <h1>User Panel</h1>
10
- <button id="testApiButton">Test API</button>
11
- <div id="apiResult"></div>
12
- <script src="/static/user.js"></script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  </body>
14
  </html>
 
1
  <!DOCTYPE html>
2
+ <html lang="en">
3
  <head>
4
+ <meta charset="UTF-8">
5
+ <title>User Panel</title>
6
+ <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
7
+ <link rel="stylesheet" href="/static/style.css">
8
  </head>
9
+ <body class="container">
10
+ <h1 class="mt-4">User Panel</h1>
11
+ <hr>
12
+ <div class="mb-4">
13
+ <h3>Generate New API Key</h3>
14
+ <form id="generateKeyForm">
15
+ <div class="mb-3">
16
+ <label for="expiry_date" class="form-label">Expiry Date (ISO format, optional)</label>
17
+ <input type="text" id="expiry_date" class="form-control" placeholder="e.g., 2025-03-01T00:00:00">
18
+ </div>
19
+ <button type="submit" class="btn btn-primary">Generate API Key</button>
20
+ </form>
21
+ </div>
22
+ <hr>
23
+ <div class="mb-4">
24
+ <h3>Your API Keys</h3>
25
+ <button id="loadApiKeys" class="btn btn-secondary">Load API Keys</button>
26
+ <pre id="apiKeysList" class="mt-3"></pre>
27
+ </div>
28
+ <hr>
29
+ <div>
30
+ <h3>Test API</h3>
31
+ <button id="testApiButton" class="btn btn-success">Test API</button>
32
+ <pre id="apiTestResult" class="mt-3"></pre>
33
+ </div>
34
+ <script src="/static/user.js"></script>
35
  </body>
36
  </html>