131 lines
7.2 KiB
HTML
131 lines
7.2 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title><!--PLATFORM--> · Explore</title>
|
|
<script src="https://cdn.plot.ly/plotly-4.1.1.min.js"></script>
|
|
<style>
|
|
/* Maquette de la page Explore avec l'onglet Diagnosis (D-053, vues-deplacements/maquette/spec.md). Données injectées
|
|
par explore.py. Habillage repris de maquettes/user/summary_template.html. */
|
|
:root {
|
|
--sidebar: #2a3f54; --topbar: #ededed; --page: #f7f7f7; --panel-border: #e6e9ed;
|
|
--muted: #73879c; --text: #333; --line: #dee2e6; --blue: #2a78d6;
|
|
}
|
|
* { box-sizing: border-box; }
|
|
body { margin: 0; background: var(--page); color: var(--muted);
|
|
font: 13px/1.47 "Helvetica Neue", Roboto, Arial, "Droid Sans", sans-serif; }
|
|
svg.i { width: 15px; height: 15px; fill: currentColor; vertical-align: -2px; }
|
|
|
|
.sidebar { position: fixed; inset: 0 auto 0 0; width: 230px; background: var(--sidebar); color: #fff; }
|
|
.brand { height: 57px; padding: 0 10px; display: flex; align-items: center; font-size: 22px; }
|
|
.profile { display: flex; align-items: center; gap: 22px; padding: 18px 12px 24px; }
|
|
.avatar { width: 56px; height: 56px; border-radius: 50%; background: #9b59b6; border: 3px solid #fff;
|
|
display: grid; place-items: center; font-size: 19px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
|
|
.profile small { display: block; color: #bab8b8; font-size: 13px; }
|
|
.profile span { font-size: 14px; }
|
|
.section { padding: 0 23px 18px; font-size: 11px; font-weight: bold; letter-spacing: .3px; }
|
|
.nav a { display: flex; align-items: center; gap: 4px; padding: 13px 15px; color: #e7e7e7;
|
|
text-decoration: none; font-weight: bold; }
|
|
.nav a .chev { margin-left: auto; }
|
|
|
|
.topbar { margin-left: 230px; height: 52px; background: var(--topbar); border-bottom: 1px solid #d9dee4;
|
|
display: flex; align-items: center; justify-content: space-between; padding: 0 15px; }
|
|
.topbar .burger { color: #5a738e; width: 26px; height: 26px; }
|
|
.user { display: flex; align-items: center; gap: 10px; color: #515356; }
|
|
.user .avatar { width: 29px; height: 29px; border-width: 0; font-size: 11px; box-shadow: none; }
|
|
|
|
main { margin-left: 230px; padding: 10px 28px; }
|
|
.panel { background: #fff; border: 1px solid var(--panel-border); padding: 10px 17px 20px; }
|
|
.panel-title { display: flex; align-items: center; border-bottom: 2px solid var(--panel-border); padding: 4px 6px 12px; }
|
|
.panel-title h2 { margin: 0; font-size: 18px; font-weight: 400; }
|
|
.panel-title h2 small { font-size: 14px; margin-left: 10px; }
|
|
.panel-title .tools { margin-left: auto; color: #c5c7cb; }
|
|
|
|
/* Période (inerte) et onglets, comme la page Explore de la plateforme. */
|
|
.period { display: flex; margin: 22px 22px 0; }
|
|
.period span { border: 1px solid #ced4da; border-radius: 4px 0 0 4px; padding: 7px 12px; color: var(--text); font-size: 15px; }
|
|
.period b { background: #6c757d; color: #fff; padding: 7px 12px; font-weight: normal; font-size: 15px; border-radius: 0 4px 4px 0; }
|
|
.tabs { display: flex; margin: 18px 22px 0; border-bottom: 1px solid var(--line); }
|
|
.tabs button { border: 1px solid transparent; border-bottom: 0; background: none; padding: 7px 16px; margin-bottom: -1px;
|
|
font: inherit; font-size: 15px; color: var(--blue); cursor: pointer; border-radius: 4px 4px 0 0; }
|
|
.tabs button.active { color: var(--text); background: #fff; border-color: var(--line); }
|
|
.pane { display: none; margin: 0 22px; padding-top: 14px; }
|
|
.pane.active { display: block; }
|
|
.pane > img { display: block; width: 100%; margin-bottom: 8px; border: 1px solid var(--line); }
|
|
.empty { padding: 30px 0; color: var(--muted); }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<svg style="display:none">
|
|
<symbol id="home" viewBox="0 0 20 20"><path d="M10 2 1 10h3v8h5v-5h2v5h5v-8h3z"/></symbol>
|
|
<symbol id="list" viewBox="0 0 20 20"><path d="M1 3h3v3H1zm5 0h13v3H6zM1 8.5h3v3H1zm5 0h13v3H6zM1 14h3v3H1zm5 0h13v3H6z"/></symbol>
|
|
<symbol id="cog" viewBox="0 0 20 20"><circle cx="10" cy="10" r="6" fill="none" stroke="currentColor" stroke-width="4" stroke-dasharray="2.4 2.3"/><circle cx="10" cy="10" r="5" fill="none" stroke="currentColor" stroke-width="3"/></symbol>
|
|
<symbol id="chev" viewBox="0 0 20 20"><path d="M4 7l6 6 6-6" fill="none" stroke="currentColor" stroke-width="2.2"/></symbol>
|
|
<symbol id="burger" viewBox="0 0 20 20"><path d="M2 4h16v2.4H2zm0 4.8h16v2.4H2zm0 4.8h16V16H2z"/></symbol>
|
|
<symbol id="wrench" viewBox="0 0 20 20"><path d="M13.5 1.5a5 5 0 0 0-4.6 6.9L2 15.3 4.7 18l6.9-6.9a5 5 0 0 0 6.9-4.6l-3 3-2.8-.6-.6-2.8z"/></symbol>
|
|
</svg>
|
|
|
|
<aside class="sidebar">
|
|
<div class="brand">AIMsight monitoring</div>
|
|
<div class="profile"><div class="avatar">MP</div><div><small>Welcome,</small><span>Maxime Pasquier</span></div></div>
|
|
<div class="section">GENERAL</div>
|
|
<nav class="nav">
|
|
<a><svg class="i"><use href="#home"/></svg>Home</a>
|
|
<a><svg class="i"><use href="#list"/></svg>Explore<svg class="i chev"><use href="#chev"/></svg></a>
|
|
<a><svg class="i"><use href="#cog"/></svg>Settings<svg class="i chev"><use href="#chev"/></svg></a>
|
|
</nav>
|
|
</aside>
|
|
|
|
<header class="topbar">
|
|
<svg class="burger"><use href="#burger"/></svg>
|
|
<div class="user"><div class="avatar">MP</div>Maxime Pasquier ▾</div>
|
|
</header>
|
|
|
|
<main>
|
|
<section class="panel">
|
|
<div class="panel-title">
|
|
<h2><!--PLATFORM--><small>Explore</small></h2>
|
|
<span class="tools"><svg class="i"><use href="#wrench"/></svg> ▾</span>
|
|
</div>
|
|
<div class="period"><span id="period"></span><b>Apply</b></div>
|
|
<nav class="tabs">
|
|
<button type="button" data-pane="time_series">Time Series</button>
|
|
<button type="button" data-pane="advanced">Advanced</button>
|
|
<button type="button" data-pane="diagnosis" class="active">Diagnosis</button>
|
|
</nav>
|
|
<div class="pane" id="time_series"></div>
|
|
<div class="pane" id="advanced"></div>
|
|
<div class="pane active" id="diagnosis">
|
|
<div class="toolbar">Color <span id="columns"></span><span class="meta" id="instant"></span></div>
|
|
<div id="image"></div>
|
|
<div id="grid"></div>
|
|
<div id="details"></div>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
|
|
<script>
|
|
const D = /*DATA*/null;
|
|
const day = t => `${+t.slice(8, 10)}/${+t.slice(5, 7)}/${t.slice(0, 4)}`;
|
|
document.getElementById("period").textContent = `${day(D.times[0])} → ${day(D.times[D.times.length - 1])}`;
|
|
|
|
// Onglets : un seul volet visible ; Plotly recalcule la taille des graphiques du volet qui s'affiche.
|
|
for (const b of document.querySelectorAll(".tabs button")) b.addEventListener("click", () => {
|
|
document.querySelectorAll(".tabs button, .pane").forEach(e => e.classList.remove("active"));
|
|
b.classList.add("active");
|
|
const pane = document.getElementById(b.dataset.pane);
|
|
pane.classList.add("active");
|
|
pane.querySelectorAll(".js-plotly-plot").forEach(p => Plotly.Plots.resize(p));
|
|
});
|
|
|
|
// Time Series et Advanced : les captures de la plateforme, telles quelles (décor, spec « La page »).
|
|
for (const [tab, srcs] of Object.entries(D.captures)) {
|
|
const pane = document.getElementById(tab);
|
|
if (!srcs.length) pane.innerHTML = '<p class="empty">No capture of this page.</p>';
|
|
for (const src of srcs) pane.insertAdjacentHTML("beforeend", `<img src="${src}" alt="">`);
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|