auth

Main authentication module for my projects
git clone git://git.finwo.net/app/auth
Log | Files | Refs

admin-dashboard.html (17696B)


      1 <!doctype html>
      2 <html lang="en">
      3   <head>
      4     <meta charset="utf-8" />
      5     <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
      6     <title>Admin dashboard mockup</title>
      7     <link rel="stylesheet" href="../../app/shared/style/global.css" />
      8     <link rel="stylesheet" href="../../app/shared/component/user-menu.css" />
      9     <link rel="stylesheet" href="./mockups.css" />
     10   </head>
     11   <body>
     12     <header class="topbar">
     13       <div class="brand">
     14         <svg class="brand-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
     15           <path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z" />
     16         </svg>
     17         <span class="brand-name">Auth</span>
     18       </div>
     19       <div class="topbar-actions">
     20         <button class="mobile-nav-toggle" type="button" id="mobile-nav-toggle" aria-controls="mobile-navigation" aria-expanded="false" aria-label="Open navigation">
     21           <span class="mobile-nav-toggle-bars" aria-hidden="true"></span>
     22         </button>
     23         <details class="menu user-menu" open>
     24           <summary class="menu-trigger" aria-label="Account menu">
     25             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
     26               <circle cx="12" cy="12" r="10" />
     27               <circle cx="12" cy="10" r="3" />
     28               <path d="M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662" />
     29             </svg>
     30           </summary>
     31           <div class="menu-panel">
     32             <div class="menu-heading">
     33               <span class="menu-heading-title">System Admin</span>
     34               <span class="menu-heading-meta">admin@system.test</span>
     35             </div>
     36             <div class="menu-list">
     37               <a class="menu-item" href="#">
     38                 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
     39                   <path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" />
     40                   <circle cx="12" cy="12" r="3" />
     41                 </svg>
     42                 <span>Account settings</span>
     43               </a>
     44               <button class="menu-item" type="button" data-user-theme>
     45                 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
     46                   <circle cx="12" cy="12" r="4" />
     47                   <path d="M12 2v2" />
     48                   <path d="M12 20v2" />
     49                   <path d="m4.93 4.93 1.41 1.41" />
     50                   <path d="m17.66 17.66 1.41 1.41" />
     51                   <path d="M2 12h2" />
     52                   <path d="M20 12h2" />
     53                   <path d="m6.34 17.66-1.41 1.41" />
     54                   <path d="m19.07 4.93-1.41 1.41" />
     55                 </svg>
     56                 <span>Theme</span>
     57                 <span class="menu-value" data-user-theme-value>Auto</span>
     58               </button>
     59               <a class="menu-item" href="#">
     60                 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
     61                   <path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" />
     62                   <path d="m16 17 5-5-5-5" />
     63                   <path d="M21 12H9" />
     64                 </svg>
     65                 <span>Sign out</span>
     66               </a>
     67             </div>
     68           </div>
     69         </details>
     70       </div>
     71     </header>
     72 
     73     <div class="mobile-nav" id="mobile-navigation" aria-hidden="true">
     74       <nav class="nav" aria-label="Administration">
     75         <p class="nav-label">Administration</p>
     76         <a class="nav-item is-active" href="#" aria-current="page">
     77           <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
     78             <rect x="3" y="3" width="7" height="7" />
     79             <rect x="14" y="3" width="7" height="7" />
     80             <rect x="3" y="14" width="7" height="7" />
     81             <rect x="14" y="14" width="7" height="7" />
     82           </svg>
     83           <span>Overview</span>
     84         </a>
     85         <a class="nav-item" href="./admin-realms.html">
     86           <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
     87             <path d="M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z" />
     88             <path d="M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2" />
     89             <path d="M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2" />
     90             <path d="M10 6h4" />
     91             <path d="M10 10h4" />
     92             <path d="M10 14h4" />
     93             <path d="M10 18h4" />
     94           </svg>
     95             <span>Realms</span>
     96         </a>
     97         <a class="nav-item" href="./admin-clients.html">
     98           <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
     99             <rect x="2" y="4" width="20" height="16" rx="2" />
    100             <path d="M10 4v4" />
    101             <path d="M2 8h20" />
    102             <path d="M6 4v4" />
    103           </svg>
    104           <span>Clients</span>
    105         </a>
    106         <a class="nav-item" href="#">
    107           <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    108             <path d="M22 12h-4l-3 8-6-16-3 8H2" />
    109           </svg>
    110           <span>Sessions</span>
    111         </a>
    112         <a class="nav-item" href="./admin-users.html">
    113           <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    114             <path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" />
    115             <circle cx="12" cy="7" r="4" />
    116           </svg>
    117           <span>Users</span>
    118         </a>
    119         <a class="nav-item" href="./admin-system-settings.html">
    120           <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    121             <path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" />
    122             <circle cx="12" cy="12" r="3" />
    123           </svg>
    124           <span>Settings</span>
    125         </a>
    126       </nav>
    127       <div class="mobile-nav-divider" aria-hidden="true"></div>
    128       <section class="mobile-nav-account" aria-label="Account">
    129         <div class="menu-heading">
    130           <span class="menu-heading-title">System Admin</span>
    131           <span class="menu-heading-meta">admin@system.test</span>
    132         </div>
    133         <div class="menu-list">
    134           <a class="menu-item" href="#">
    135             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    136               <path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" />
    137               <circle cx="12" cy="12" r="3" />
    138             </svg>
    139             <span>Account settings</span>
    140           </a>
    141           <button class="menu-item" type="button" data-user-theme>
    142             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    143               <circle cx="12" cy="12" r="4" />
    144               <path d="M12 2v2" />
    145               <path d="M12 20v2" />
    146               <path d="m4.93 4.93 1.41 1.41" />
    147               <path d="m17.66 17.66 1.41 1.41" />
    148               <path d="M2 12h2" />
    149               <path d="M20 12h2" />
    150               <path d="m6.34 17.66-1.41 1.41" />
    151               <path d="m19.07 4.93-1.41 1.41" />
    152             </svg>
    153             <span>Theme</span>
    154             <span class="menu-value" data-user-theme-value>Auto</span>
    155           </button>
    156           <a class="menu-item" href="#">
    157             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    158               <path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" />
    159               <path d="m16 17 5-5-5-5" />
    160               <path d="M21 12H9" />
    161             </svg>
    162             <span>Sign out</span>
    163           </a>
    164         </div>
    165       </section>
    166     </div>
    167 
    168     <div class="app">
    169       <aside class="sidebar">
    170         <nav class="nav" aria-label="Administration">
    171           <p class="nav-label">Administration</p>
    172           <a class="nav-item is-active" href="#" aria-current="page">
    173             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    174               <rect x="3" y="3" width="7" height="7" />
    175               <rect x="14" y="3" width="7" height="7" />
    176               <rect x="3" y="14" width="7" height="7" />
    177               <rect x="14" y="14" width="7" height="7" />
    178             </svg>
    179             <span>Overview</span>
    180           </a>
    181           <a class="nav-item" href="./admin-realms.html">
    182             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    183               <path d="M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z" />
    184               <path d="M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2" />
    185               <path d="M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2" />
    186               <path d="M10 6h4" />
    187               <path d="M10 10h4" />
    188               <path d="M10 14h4" />
    189               <path d="M10 18h4" />
    190             </svg>
    191               <span>Realms</span>
    192           </a>
    193           <a class="nav-item" href="./admin-clients.html">
    194             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    195               <rect x="2" y="4" width="20" height="16" rx="2" />
    196               <path d="M10 4v4" />
    197               <path d="M2 8h20" />
    198               <path d="M6 4v4" />
    199             </svg>
    200             <span>Clients</span>
    201           </a>
    202           <a class="nav-item" href="#">
    203             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    204               <path d="M22 12h-4l-3 8-6-16-3 8H2" />
    205             </svg>
    206             <span>Sessions</span>
    207           </a>
    208           <a class="nav-item" href="./admin-users.html">
    209             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    210               <path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" />
    211               <circle cx="12" cy="7" r="4" />
    212             </svg>
    213             <span>Users</span>
    214           </a>
    215           <a class="nav-item" href="./admin-system-settings.html">
    216             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    217               <path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z" />
    218               <circle cx="12" cy="12" r="3" />
    219             </svg>
    220             <span>Settings</span>
    221           </a>
    222         </nav>
    223       </aside>
    224 
    225       <div class="main">
    226         <main class="content">
    227           <div class="page-header">
    228             <div class="breadcrumb">
    229               <span aria-current="page">Overview</span>
    230             </div>
    231             <h1>Overview</h1>
    232             <p>Provider summary and administration.</p>
    233           </div>
    234 
    235           <section class="grid stats" aria-label="Provider summary">
    236             <article class="card">
    237               <span class="field-label">Realms</span>
    238               <strong class="stat-value">2</strong>
    239             </article>
    240             <article class="card">
    241               <span class="field-label">Users</span>
    242               <strong class="stat-value">6</strong>
    243             </article>
    244             <article class="card">
    245               <span class="field-label">OIDC clients</span>
    246               <strong class="stat-value">6</strong>
    247             </article>
    248             <article class="card">
    249               <span class="field-label">Active sessions</span>
    250               <strong class="stat-value">3</strong>
    251             </article>
    252           </section>
    253 
    254           <div class="grid">
    255             <section class="panel">
    256               <h2>Account</h2>
    257               <dl class="details">
    258                 <div>
    259                   <dt>User</dt>
    260                   <dd>System Admin</dd>
    261                 </div>
    262                 <div>
    263                   <dt>Email</dt>
    264                   <dd>admin@system.test</dd>
    265                 </div>
    266                 <div>
    267                   <dt>Username</dt>
    268                   <dd>admin</dd>
    269                 </div>
    270                 <div>
    271                   <dt>Role</dt>
    272                   <dd>System administrator</dd>
    273                 </div>
    274               </dl>
    275             </section>
    276 
    277             <section class="panel">
    278               <h2>Access</h2>
    279               <dl class="details">
    280                 <div>
    281                   <dt>Client</dt>
    282                   <dd>admin</dd>
    283                 </div>
    284                 <div>
    285                   <dt>Refresh</dt>
    286                   <dd>Automatic</dd>
    287                 </div>
    288                 <div>
    289                   <dt>Scope</dt>
    290                   <dd>openid profile email</dd>
    291                 </div>
    292                 <div>
    293                   <dt>Session</dt>
    294                   <dd>Active</dd>
    295                 </div>
    296               </dl>
    297             </section>
    298           </div>
    299         </main>
    300       </div>
    301     </div>
    302 
    303     <div class="mockup-controls" aria-label="Mockup theme">
    304       <span class="mockup-label">Mockup</span>
    305       <button class="mockup-button is-active" type="button" data-theme-target="auto">Auto</button>
    306       <button class="mockup-button" type="button" data-theme-target="light">Light</button>
    307       <button class="mockup-button" type="button" data-theme-target="dark">Dark</button>
    308     </div>
    309 
    310     <script>
    311       const root = document.documentElement;
    312       const themeButtons = document.querySelectorAll('[data-theme-target]');
    313       const userThemeButtons = document.querySelectorAll('[data-user-theme]');
    314       const userThemeValues = document.querySelectorAll('[data-user-theme-value]');
    315       let currentTheme = 'auto';
    316 
    317       function setTheme(value) {
    318         currentTheme = value;
    319         if (value === 'auto') {
    320           root.removeAttribute('data-theme');
    321         } else {
    322           root.setAttribute('data-theme', value);
    323         }
    324 
    325         themeButtons.forEach((button) => {
    326           button.classList.toggle('is-active', button.dataset.themeTarget === value);
    327         });
    328         userThemeValues.forEach((element) => {
    329           element.textContent = value.charAt(0).toUpperCase() + value.slice(1);
    330         });
    331       }
    332 
    333       themeButtons.forEach((button) => {
    334         button.addEventListener('click', () => setTheme(button.dataset.themeTarget));
    335       });
    336 
    337       userThemeButtons.forEach((button) => {
    338         button.addEventListener('click', () => {
    339         const themes = ['auto', 'light', 'dark'];
    340           setTheme(themes[(themes.indexOf(currentTheme) + 1) % themes.length]);
    341         });
    342       });
    343 
    344       const userMenu = document.querySelector('.user-menu');
    345       document.addEventListener('click', (event) => {
    346         if (userMenu.open && !userMenu.contains(event.target)) {
    347           userMenu.open = false;
    348         }
    349       });
    350     </script>
    351     <script src="./shell.js"></script>
    352   </body>
    353 </html>