111 lines
6.1 KiB
HTML
111 lines
6.1 KiB
HTML
<!-- file: kb-app-demo-desktop/frontend/demo_store_diag.html -->
|
|
<!-- version: 7 -->
|
|
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta content="width=device-width, initial-scale=1.0" name="viewport">
|
|
<link rel="icon" href="imgs/logo.png">
|
|
<link rel="stylesheet" href="sass/main.scss">
|
|
<title>Khadhroony Bot3 — Store diagnostics</title>
|
|
</head>
|
|
|
|
<body>
|
|
<header class="app-header">
|
|
<nav class="navbar navbar-expand-lg h-100 py-0 bg-light text-dark">
|
|
<div class="container-fluid px-4 my-0">
|
|
<div class="navbar-brand d-flex align-items-center">
|
|
<img alt="Logo" src="imgs/logo.png" class="app-logo">
|
|
<span class="ps-2 fs-4 fw-bold text-primary font-logo">Bot3 — <span class="badge text-bg-primary">Store diagnostics</span></span>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
</header>
|
|
|
|
<main class="app-main">
|
|
<div class="osb-scrollable pt-1 pb-4" data-simplebar>
|
|
<div class="container-fluid px-4 py-4">
|
|
<div class="row g-4 justify-content-center">
|
|
<div class="col-12">
|
|
<div class="card shadow-sm border-0">
|
|
<div class="card-body">
|
|
<div class="d-flex flex-wrap gap-2 justify-content-between align-items-center mb-3">
|
|
<h1 class="h3 card-title mb-0">Diagnostic du store</h1>
|
|
<div class="d-flex gap-2">
|
|
<button id="refreshSqlDiagButton" class="btn btn-primary" type="button">Rafraîchir</button>
|
|
<button id="copySqlDiagButton" class="btn btn-outline-secondary" type="button">Copier JSON</button>
|
|
</div>
|
|
</div>
|
|
<dl class="row mb-0">
|
|
<dt class="col-sm-3">Statut</dt>
|
|
<dd class="col-sm-9"><code id="storeDiagStatus">Chargement...</code></dd>
|
|
<dt class="col-sm-3">Fichier config</dt>
|
|
<dd class="col-sm-9"><code id="storeDiagConfigPath">—</code></dd>
|
|
<dt class="col-sm-3">Profil</dt>
|
|
<dd class="col-sm-9"><code id="storeDiagProfile">—</code></dd>
|
|
<dt class="col-sm-3">Backend</dt>
|
|
<dd class="col-sm-9"><code id="storeDiagBackend">—</code></dd>
|
|
<dt class="col-sm-3">Connexion</dt>
|
|
<dd class="col-sm-9"><code id="storeDiagConnection">—</code></dd>
|
|
<dt class="col-sm-3">Schema courant</dt>
|
|
<dd class="col-sm-9"><code id="storeDiagSchema">—</code></dd>
|
|
<dt class="col-sm-3">Healthcheck</dt>
|
|
<dd class="col-sm-9"><code id="storeDiagHealth">—</code></dd>
|
|
<dt class="col-sm-3">Migrations</dt>
|
|
<dd class="col-sm-9"><code id="storeDiagMigration">—</code></dd>
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-12">
|
|
<div class="card shadow-sm border-0">
|
|
<div class="card-body">
|
|
<h2 class="h5 card-title mb-3">Ressources store connues</h2>
|
|
<div class="table-responsive app-table-full-width">
|
|
<table class="table table-sm align-middle mb-0" id="storeDiagTable">
|
|
<thead>
|
|
<tr>
|
|
<th>Ressource</th>
|
|
<th>Modèle</th>
|
|
<th>Rôle</th>
|
|
<th>Existe</th>
|
|
<th>Lignes</th>
|
|
<th>Slot min</th>
|
|
<th>Slot max</th>
|
|
<th>Dernière insertion</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="storeDiagTableBody"></tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-12">
|
|
<div class="card shadow-sm border-0">
|
|
<div class="card-body">
|
|
<h2 class="h5 card-title mb-3">Payload JSON</h2>
|
|
<div id="storeDiagJson" class="app-config-box app-json-viewer mb-0">{"status":"loading","message":"Chargement des données du store."}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
<footer class="app-footer bg-dark text-light">
|
|
<div class="container h-100 d-flex align-items-center">
|
|
<div class="row flex-grow-1 align-items-center">
|
|
<div class="col-12 text-center text-small my-1 my-md-0">© 2026 SASEDEV</div>
|
|
</div>
|
|
</div>
|
|
</footer>
|
|
<script type="module" src="ts/demo_store_diag.ts" defer></script>
|
|
</body>
|
|
|
|
</html>
|