File size: 2,109 Bytes
6a49f21
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Active Sessions</title>
    <link rel="stylesheet" href="https://cdn.datatables.net/1.13.7/css/jquery.dataTables.min.css">
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            margin: 20px;
            background-color: #fff;
        }
        h1 {
            margin-bottom: 20px;
            color: #333;
            font-size: 1.4em;
        }
        #sessionsTable {
            font-size: 0.9em;
            width: 100%;
        }
        #sessionsTable thead th {
            background-color: #f5f5f5;
            font-weight: 600;
        }
        #sessionsTable tbody tr:nth-child(even) { background-color: #f9f9f9; }
        #sessionsTable tbody tr:hover { background-color: #f0f0f0; }
        td:last-child { white-space: nowrap; }
        .dataTables_wrapper .dataTables_paginate .paginate_button { padding: 0.3em 0.8em; }
        #footer-actions { margin-top: 20px; }
        #end-all-btn {
            padding: 6px 16px;
            background: #d9534f;
            color: white;
            border: none;
            border-radius: 3px;
            cursor: pointer;
            font-size: 0.9em;
        }
        #end-all-btn:hover { background: #c9302c; }
    </style>
</head>
<body>
    <h1>Active Sessions</h1>
    <table id="sessionsTable" class="display stripe hover">
        <thead>
            <tr>
                <th>Session ID</th>
                <th>Age</th>
                <th>Last Access</th>
                <th>Owner</th>
                <th>Action</th>
            </tr>
        </thead>
        <tbody></tbody>
    </table>
    <div id="footer-actions"></div>

    <script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
    <script src="https://cdn.datatables.net/1.13.7/js/jquery.dataTables.min.js"></script>
    <script type="module" src="/api/plugins/active-sessions/static/view.js"></script>
</body>
</html>