auth

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

admin-clients.html (29340B)


      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 clients mockup</title>
      7     <link rel="stylesheet" href="../../app/shared/style/global.css" />
      8     <link rel="stylesheet" href="../../app/shared/component/select-menu.css" />
      9     <link rel="stylesheet" href="../../app/shared/component/user-menu.css" />
     10     <link rel="stylesheet" href="./mockups.css" />
     11   </head>
     12   <body>
     13     <header class="topbar">
     14       <a class="brand" href="./admin-dashboard.html">
     15         <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">
     16           <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" />
     17         </svg>
     18         <span class="brand-name">Auth</span>
     19       </a>
     20       <div class="topbar-actions">
     21         <button class="mobile-nav-toggle" type="button" id="mobile-nav-toggle" aria-controls="mobile-navigation" aria-expanded="false" aria-label="Open navigation">
     22           <span class="mobile-nav-toggle-bars" aria-hidden="true"></span>
     23         </button>
     24         <details class="menu user-menu">
     25           <summary class="menu-trigger" aria-label="Account menu">
     26             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
     27               <circle cx="12" cy="12" r="10" />
     28               <circle cx="12" cy="10" r="3" />
     29               <path d="M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662" />
     30             </svg>
     31           </summary>
     32           <div class="menu-panel">
     33             <div class="menu-heading">
     34               <span class="menu-heading-title">System Admin</span>
     35               <span class="menu-heading-meta">admin@system.test</span>
     36             </div>
     37             <div class="menu-list">
     38               <a class="menu-item" href="#">
     39                 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
     40                   <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" />
     41                   <circle cx="12" cy="12" r="3" />
     42                 </svg>
     43                 <span>Account settings</span>
     44               </a>
     45               <button class="menu-item" type="button" data-user-theme>
     46                 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
     47                   <circle cx="12" cy="12" r="4" />
     48                   <path d="M12 2v2" />
     49                   <path d="M12 20v2" />
     50                   <path d="m4.93 4.93 1.41 1.41" />
     51                   <path d="m17.66 17.66 1.41 1.41" />
     52                   <path d="M2 12h2" />
     53                   <path d="M20 12h2" />
     54                   <path d="m6.34 17.66-1.41 1.41" />
     55                   <path d="m19.07 4.93-1.41 1.41" />
     56                 </svg>
     57                 <span>Theme</span>
     58                 <span class="menu-value" data-user-theme-value>Auto</span>
     59               </button>
     60               <a class="menu-item" href="#">
     61                 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
     62                   <path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" />
     63                   <path d="m16 17 5-5-5-5" />
     64                   <path d="M21 12H9" />
     65                 </svg>
     66                 <span>Sign out</span>
     67               </a>
     68             </div>
     69           </div>
     70         </details>
     71       </div>
     72     </header>
     73 
     74     <div class="mobile-nav" id="mobile-navigation" aria-hidden="true">
     75       <nav class="nav" aria-label="Administration">
     76         <p class="nav-label">Administration</p>
     77         <a class="nav-item" href="./admin-dashboard.html">
     78           <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
     79             <rect x="3" y="3" width="7" height="7" />
     80             <rect x="14" y="3" width="7" height="7" />
     81             <rect x="3" y="14" width="7" height="7" />
     82             <rect x="14" y="14" width="7" height="7" />
     83           </svg>
     84           <span>Overview</span>
     85         </a>
     86         <a class="nav-item" href="./admin-realms.html">
     87           <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
     88             <path d="M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z" />
     89             <path d="M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2" />
     90             <path d="M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2" />
     91             <path d="M10 6h4" />
     92             <path d="M10 10h4" />
     93             <path d="M10 14h4" />
     94             <path d="M10 18h4" />
     95           </svg>
     96             <span>Realms</span>
     97         </a>
     98         <a class="nav-item is-active" href="./admin-clients.html" aria-current="page">
     99           <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    100             <rect x="2" y="4" width="20" height="16" rx="2" />
    101             <path d="M10 4v4" />
    102             <path d="M2 8h20" />
    103             <path d="M6 4v4" />
    104           </svg>
    105           <span>Clients</span>
    106         </a>
    107         <a class="nav-item" href="#">
    108           <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    109             <path d="M22 12h-4l-3 8-6-16-3 8H2" />
    110           </svg>
    111           <span>Sessions</span>
    112         </a>
    113         <a class="nav-item" href="./admin-users.html">
    114           <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    115             <path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" />
    116             <circle cx="12" cy="7" r="4" />
    117           </svg>
    118           <span>Users</span>
    119         </a>
    120         <a class="nav-item" href="./admin-system-settings.html">
    121           <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    122             <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" />
    123             <circle cx="12" cy="12" r="3" />
    124           </svg>
    125           <span>Settings</span>
    126         </a>
    127       </nav>
    128       <div class="mobile-nav-divider" aria-hidden="true"></div>
    129       <section class="mobile-nav-account" aria-label="Account">
    130         <div class="menu-heading">
    131           <span class="menu-heading-title">System Admin</span>
    132           <span class="menu-heading-meta">admin@system.test</span>
    133         </div>
    134         <div class="menu-list">
    135           <a class="menu-item" href="#">
    136             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    137               <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" />
    138               <circle cx="12" cy="12" r="3" />
    139             </svg>
    140             <span>Account settings</span>
    141           </a>
    142           <button class="menu-item" type="button" data-user-theme>
    143             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    144               <circle cx="12" cy="12" r="4" />
    145               <path d="M12 2v2" />
    146               <path d="M12 20v2" />
    147               <path d="m4.93 4.93 1.41 1.41" />
    148               <path d="m17.66 17.66 1.41 1.41" />
    149               <path d="M2 12h2" />
    150               <path d="M20 12h2" />
    151               <path d="m6.34 17.66-1.41 1.41" />
    152               <path d="m19.07 4.93-1.41 1.41" />
    153             </svg>
    154             <span>Theme</span>
    155             <span class="menu-value" data-user-theme-value>Auto</span>
    156           </button>
    157           <a class="menu-item" href="#">
    158             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    159               <path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" />
    160               <path d="m16 17 5-5-5-5" />
    161               <path d="M21 12H9" />
    162             </svg>
    163             <span>Sign out</span>
    164           </a>
    165         </div>
    166       </section>
    167     </div>
    168 
    169     <div class="app">
    170       <aside class="sidebar">
    171         <nav class="nav" aria-label="Administration">
    172           <p class="nav-label">Administration</p>
    173           <a class="nav-item" href="./admin-dashboard.html">
    174             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    175               <rect x="3" y="3" width="7" height="7" />
    176               <rect x="14" y="3" width="7" height="7" />
    177               <rect x="3" y="14" width="7" height="7" />
    178               <rect x="14" y="14" width="7" height="7" />
    179             </svg>
    180             <span>Overview</span>
    181           </a>
    182           <a class="nav-item" href="./admin-realms.html">
    183             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    184               <path d="M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z" />
    185               <path d="M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2" />
    186               <path d="M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2" />
    187               <path d="M10 6h4" />
    188               <path d="M10 10h4" />
    189               <path d="M10 14h4" />
    190               <path d="M10 18h4" />
    191             </svg>
    192               <span>Realms</span>
    193           </a>
    194           <a class="nav-item is-active" href="./admin-clients.html" aria-current="page">
    195             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    196               <rect x="2" y="4" width="20" height="16" rx="2" />
    197               <path d="M10 4v4" />
    198               <path d="M2 8h20" />
    199               <path d="M6 4v4" />
    200             </svg>
    201             <span>Clients</span>
    202           </a>
    203           <a class="nav-item" href="#">
    204             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    205               <path d="M22 12h-4l-3 8-6-16-3 8H2" />
    206             </svg>
    207             <span>Sessions</span>
    208           </a>
    209           <a class="nav-item" href="./admin-users.html">
    210             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    211               <path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" />
    212               <circle cx="12" cy="7" r="4" />
    213             </svg>
    214             <span>Users</span>
    215           </a>
    216           <a class="nav-item" href="./admin-system-settings.html">
    217             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    218               <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" />
    219               <circle cx="12" cy="12" r="3" />
    220             </svg>
    221             <span>Settings</span>
    222           </a>
    223         </nav>
    224       </aside>
    225 
    226       <div class="main">
    227         <main class="content">
    228           <div class="page-header page-header-row">
    229             <div>
    230               <div class="breadcrumb">
    231                 <span aria-current="page">Clients</span>
    232               </div>
    233               <h1>Clients</h1>
    234               <p>OIDC clients registered in this realm.</p>
    235             </div>
    236             <div class="field">
    237               <span class="field-label" id="clients-realm-label">Realm</span>
    238               <div class="select" data-select data-value="acme">
    239                 <button
    240                   class="select-trigger"
    241                   type="button"
    242                   id="clients-realm-trigger"
    243                   role="combobox"
    244                   aria-haspopup="listbox"
    245                   aria-expanded="false"
    246                   aria-controls="clients-realm-listbox"
    247                   aria-labelledby="clients-realm-label"
    248                 >
    249                   <span class="select-value">Acme</span>
    250                   <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    251                     <path d="m6 9 6 6 6-6" />
    252                   </svg>
    253                 </button>
    254                 <div class="select-list" id="clients-realm-listbox" role="listbox" aria-labelledby="clients-realm-label" hidden>
    255                   <div class="select-option is-selected" id="clients-realm-acme" role="option" aria-selected="true" data-value="acme" data-label="Acme">
    256                     <span class="select-option-mark" aria-hidden="true">
    257                       <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
    258                         <path d="M20 6 9 17l-5-5" />
    259                       </svg>
    260                     </span>
    261                     <span class="select-option-label">Acme</span>
    262                   </div>
    263                   <div class="select-option" id="clients-realm-globex" role="option" aria-selected="false" data-value="globex" data-label="Globex">
    264                     <span class="select-option-mark" aria-hidden="true">
    265                       <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
    266                         <path d="M20 6 9 17l-5-5" />
    267                       </svg>
    268                     </span>
    269                     <span class="select-option-label">Globex</span>
    270                   </div>
    271                 </div>
    272               </div>
    273             </div>
    274           </div>
    275 
    276           <section class="card" aria-labelledby="client-table-title">
    277             <h2 id="client-table-title" class="sr-only">Registered clients</h2>
    278             <div class="toolbar toolbar-panel">
    279               <div class="toolbar-search">
    280                 <input id="client-search" type="search" aria-label="Search clients" placeholder="Search clients" />
    281               </div>
    282               <div class="toolbar-actions">
    283                 <button class="button button-primary" type="button" data-dialog-open="client-create-dialog">New client</button>
    284               </div>
    285             </div>
    286 
    287             <table class="table table-linkable">
    288               <thead>
    289                 <tr>
    290                   <th scope="col"><span class="sr-only">Icon</span></th>
    291                   <th scope="col">Application</th>
    292                   <th scope="col">Access</th>
    293                 </tr>
    294               </thead>
    295               <tbody id="client-rows">
    296                 <tr data-row-href="./admin-client-detail.html" data-search="internal app internal-app internal">
    297                   <td>
    298                     <span class="table-icon" aria-hidden="true">
    299                       <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
    300                         <rect x="2" y="4" width="20" height="16" rx="2" />
    301                         <path d="M10 4v4" />
    302                         <path d="M2 8h20" />
    303                         <path d="M6 4v4" />
    304                       </svg>
    305                     </span>
    306                   </td>
    307                   <td>
    308                     <span class="table-title"><a class="link" href="./admin-client-detail.html">Internal App</a></span>
    309                     <span class="table-sub">internal-app</span>
    310                   </td>
    311                   <td data-label="Access">Internal</td>
    312                 </tr>
    313                 <tr data-row-href="./admin-client-detail.html" data-search="members portal members-app members">
    314                   <td>
    315                     <span class="table-icon" aria-hidden="true">
    316                       <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
    317                         <path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" />
    318                         <circle cx="9" cy="7" r="4" />
    319                         <path d="M22 21v-2a4 4 0 0 0-3-3.87" />
    320                         <path d="M16 3.13a4 4 0 0 1 0 7.75" />
    321                       </svg>
    322                     </span>
    323                   </td>
    324                   <td>
    325                     <span class="table-title"><a class="link" href="./admin-client-detail.html">Members Portal</a></span>
    326                     <span class="table-sub">members-app</span>
    327                   </td>
    328                   <td data-label="Access">Members</td>
    329                 </tr>
    330                 <tr data-row-href="./admin-client-detail.html" data-search="public site public-app public">
    331                   <td>
    332                     <span class="table-icon" aria-hidden="true">
    333                       <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
    334                         <circle cx="12" cy="12" r="10" />
    335                         <path d="M12 2a15.3 15.3 0 0 1 0 20" />
    336                         <path d="M12 2a15.3 15.3 0 0 0 0 20" />
    337                         <path d="M2 12h20" />
    338                       </svg>
    339                     </span>
    340                   </td>
    341                   <td>
    342                     <span class="table-title"><a class="link" href="./admin-client-detail.html">Public Site</a></span>
    343                     <span class="table-sub">public-app</span>
    344                   </td>
    345                   <td data-label="Access">Public</td>
    346                 </tr>
    347                 <tr data-row-href="./admin-client-detail.html" data-search="secure service secure-app members disabled confidential">
    348                   <td>
    349                     <span class="table-icon" aria-hidden="true">
    350                       <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
    351                         <rect x="3" y="11" width="18" height="11" rx="2" />
    352                         <path d="M7 11V7a5 5 0 0 1 10 0v4" />
    353                       </svg>
    354                     </span>
    355                   </td>
    356                   <td>
    357                     <span class="table-title"><a class="link" href="./admin-client-detail.html">Secure Service</a></span>
    358                     <span class="table-sub">secure-app</span>
    359                     <span class="status-muted">Disabled</span>
    360                   </td>
    361                   <td data-label="Access">Members</td>
    362                 </tr>
    363               </tbody>
    364             </table>
    365             <p id="client-search-empty" class="empty" hidden>No clients match this search.</p>
    366           </section>
    367         </main>
    368       </div>
    369     </div>
    370 
    371     <div id="client-create-dialog" class="overlay" hidden>
    372       <div class="modal" role="dialog" aria-modal="true" aria-labelledby="client-create-title">
    373         <div class="modal-header">
    374           <h2 id="client-create-title">Register a client</h2>
    375           <button class="modal-close" type="button" aria-label="Close dialog" data-dialog-close>
    376             <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    377               <path d="M18 6 6 18" />
    378               <path d="m6 6 12 12" />
    379             </svg>
    380           </button>
    381         </div>
    382         <div class="modal-body">
    383           <label class="field">
    384             <span class="field-label">Client ID</span>
    385             <input class="field-control" type="text" placeholder="my-app" />
    386           </label>
    387           <label class="field">
    388             <span class="field-label">Name</span>
    389             <input class="field-control" type="text" placeholder="My App" />
    390           </label>
    391           <div class="field">
    392             <span class="field-label" id="client-access-mode-label">Access mode</span>
    393             <div class="select" data-select data-value="members">
    394               <button
    395                 class="select-trigger"
    396                 type="button"
    397                 id="client-access-mode-trigger"
    398                 role="combobox"
    399                 aria-haspopup="listbox"
    400                 aria-expanded="false"
    401                 aria-controls="client-access-mode-listbox"
    402                 aria-labelledby="client-access-mode-label"
    403               >
    404                 <span class="select-value">Members: active realm members</span>
    405                 <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
    406                   <path d="m6 9 6 6 6-6" />
    407                 </svg>
    408               </button>
    409               <div class="select-list" id="client-access-mode-listbox" role="listbox" aria-labelledby="client-access-mode-label" hidden>
    410                 <div class="select-option" id="client-access-mode-internal" role="option" aria-selected="false" data-value="internal" data-label="Internal: home-realm members">
    411                   <span class="select-option-mark" aria-hidden="true">
    412                     <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
    413                       <path d="M20 6 9 17l-5-5" />
    414                     </svg>
    415                   </span>
    416                   <span class="select-option-label">Internal: home-realm members</span>
    417                 </div>
    418                 <div class="select-option is-selected" id="client-access-mode-members" role="option" aria-selected="true" data-value="members" data-label="Members: active realm members">
    419                   <span class="select-option-mark" aria-hidden="true">
    420                     <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
    421                       <path d="M20 6 9 17l-5-5" />
    422                     </svg>
    423                   </span>
    424                   <span class="select-option-label">Members: active realm members</span>
    425                 </div>
    426                 <div class="select-option" id="client-access-mode-public" role="option" aria-selected="false" data-value="public" data-label="Public: any authenticated user">
    427                   <span class="select-option-mark" aria-hidden="true">
    428                     <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
    429                       <path d="M20 6 9 17l-5-5" />
    430                     </svg>
    431                   </span>
    432                   <span class="select-option-label">Public: any authenticated user</span>
    433                 </div>
    434               </div>
    435             </div>
    436           </div>
    437           <label class="field">
    438             <span class="field-label">Redirect URIs</span>
    439             <textarea class="field-textarea" rows="3" placeholder="https://app.example.test/callback"></textarea>
    440           </label>
    441           <div class="modal-actions">
    442             <button class="button button-secondary" type="button" data-dialog-close>Cancel</button>
    443             <button class="button button-primary" type="button" data-dialog-close>Create client</button>
    444           </div>
    445         </div>
    446       </div>
    447     </div>
    448 
    449     <div class="mockup-controls" aria-label="Mockup theme">
    450       <span class="mockup-label">Mockup</span>
    451       <button class="mockup-button is-active" type="button" data-theme-target="auto">Auto</button>
    452       <button class="mockup-button" type="button" data-theme-target="light">Light</button>
    453       <button class="mockup-button" type="button" data-theme-target="dark">Dark</button>
    454     </div>
    455 
    456     <script>
    457       const root = document.documentElement;
    458       const themeButtons = document.querySelectorAll('[data-theme-target]');
    459       const userThemeButtons = document.querySelectorAll('[data-user-theme]');
    460       const userThemeValues = document.querySelectorAll('[data-user-theme-value]');
    461       let currentTheme = 'auto';
    462 
    463       function setTheme(value) {
    464         currentTheme = value;
    465         if (value === 'auto') {
    466           root.removeAttribute('data-theme');
    467         } else {
    468           root.setAttribute('data-theme', value);
    469         }
    470         themeButtons.forEach((button) => {
    471           button.classList.toggle('is-active', button.dataset.themeTarget === value);
    472         });
    473         userThemeValues.forEach((element) => {
    474           element.textContent = value.charAt(0).toUpperCase() + value.slice(1);
    475         });
    476       }
    477 
    478       themeButtons.forEach((button) => {
    479         button.addEventListener('click', () => setTheme(button.dataset.themeTarget));
    480       });
    481 
    482       userThemeButtons.forEach((button) => {
    483         button.addEventListener('click', () => {
    484         const themes = ['auto', 'light', 'dark'];
    485           setTheme(themes[(themes.indexOf(currentTheme) + 1) % themes.length]);
    486         });
    487       });
    488 
    489       const userMenu = document.querySelector('.user-menu');
    490       document.addEventListener('click', (event) => {
    491         if (userMenu && userMenu.open && !userMenu.contains(event.target)) {
    492           userMenu.open = false;
    493         }
    494       });
    495 
    496       function visibleDialogs() {
    497         return [...document.querySelectorAll('.overlay:not([hidden])')];
    498       }
    499 
    500       document.querySelectorAll('[data-dialog-open]').forEach((button) => {
    501         button.addEventListener('click', () => {
    502           const dialog = document.getElementById(button.dataset.dialogOpen);
    503           if (!dialog) return;
    504           dialog.hidden = false;
    505           dialog.querySelector('.modal-close')?.focus();
    506         });
    507       });
    508 
    509       document.querySelectorAll('[data-dialog-close]').forEach((button) => {
    510         button.addEventListener('click', () => {
    511           button.closest('.overlay').hidden = true;
    512         });
    513       });
    514 
    515       document.querySelectorAll('.overlay').forEach((overlay) => {
    516         overlay.addEventListener('mousedown', (event) => {
    517           if (event.target === overlay) overlay.hidden = true;
    518         });
    519       });
    520 
    521       document.addEventListener('keydown', (event) => {
    522         if (event.key === 'Escape') {
    523           visibleDialogs().forEach((dialog) => {
    524             dialog.hidden = true;
    525           });
    526         }
    527       });
    528 
    529       const search = document.getElementById('client-search');
    530       const empty = document.getElementById('client-search-empty');
    531       search?.addEventListener('input', () => {
    532         const term = search.value.trim().toLowerCase();
    533         let visible = 0;
    534         document.querySelectorAll('#client-rows tr').forEach((row) => {
    535           const match = !term || row.dataset.search.includes(term);
    536           row.hidden = !match;
    537           if (match) visible += 1;
    538         });
    539         if (empty) empty.hidden = visible > 0;
    540       });
    541 
    542       document.querySelectorAll('#client-rows tr[data-row-href]').forEach((row) => {
    543         row.addEventListener('click', () => {
    544           window.location.href = row.dataset.rowHref;
    545         });
    546       });
    547     </script>
    548     <script src="./shell.js"></script>
    549   </body>
    550 </html>