346 lines
14 KiB
HTML
346 lines
14 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Pages Index · WEVAL · 251 pages · 0 orphelin</title>
|
|
<style>
|
|
:root {
|
|
--bg-0: #0a0e1a;
|
|
--bg-1: #111827;
|
|
--bg-2: #1a2333;
|
|
--txt-0: #f1f5f9;
|
|
--txt-1: #94a3b8;
|
|
--txt-2: #64748b;
|
|
--accent: #6366f1;
|
|
--accent-hot: #f59e0b;
|
|
--ok: #10b981;
|
|
--warn: #f59e0b;
|
|
--err: #ef4444;
|
|
--border: #1f2937;
|
|
}
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
body {
|
|
background: linear-gradient(135deg, var(--bg-0), var(--bg-1));
|
|
color: var(--txt-0);
|
|
font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
min-height: 100vh;
|
|
}
|
|
header {
|
|
padding: 32px 40px;
|
|
background: linear-gradient(90deg, rgba(99,102,241,.08), transparent);
|
|
border-bottom: 1px solid var(--border);
|
|
backdrop-filter: blur(10px);
|
|
position: sticky; top: 0; z-index: 10;
|
|
}
|
|
h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
|
|
h1 span { color: var(--accent); }
|
|
.sub { color: var(--txt-1); font-size: 13px; margin-top: 4px; }
|
|
.stats {
|
|
display: flex; gap: 32px; margin-top: 20px;
|
|
}
|
|
.stat {
|
|
display: flex; flex-direction: column;
|
|
}
|
|
.stat-val { font-size: 24px; font-weight: 700; color: var(--accent); }
|
|
.stat-lbl { font-size: 11px; color: var(--txt-2); text-transform: uppercase; letter-spacing: 0.05em; }
|
|
.search {
|
|
width: 100%;
|
|
margin-top: 20px;
|
|
padding: 14px 18px;
|
|
background: var(--bg-2);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
color: var(--txt-0);
|
|
font-size: 14px;
|
|
transition: border-color .2s;
|
|
}
|
|
.search:focus { outline: none; border-color: var(--accent); }
|
|
.container { padding: 32px 40px; max-width: 1600px; margin: 0 auto; }
|
|
.class-section {
|
|
margin-bottom: 40px;
|
|
}
|
|
.class-title {
|
|
display: flex; align-items: center; gap: 12px;
|
|
font-size: 18px; font-weight: 600;
|
|
margin-bottom: 16px;
|
|
padding-bottom: 8px; border-bottom: 1px solid var(--border);
|
|
}
|
|
.class-title .icon { font-size: 22px; }
|
|
.class-title .count { color: var(--txt-1); font-size: 13px; font-weight: 400; }
|
|
.class-title .orph-flag { color: var(--warn); font-size: 12px; font-weight: 500; }
|
|
.grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
gap: 12px;
|
|
}
|
|
.card {
|
|
background: var(--bg-2);
|
|
border: 1px solid var(--border);
|
|
border-radius: 10px;
|
|
padding: 14px 16px;
|
|
text-decoration: none;
|
|
color: inherit;
|
|
transition: transform .15s, border-color .15s;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
|
|
.card.orphan::before {
|
|
content: '';
|
|
position: absolute; top: 0; left: 0;
|
|
width: 4px; height: 100%;
|
|
background: var(--warn);
|
|
}
|
|
.card.top::before {
|
|
content: '';
|
|
position: absolute; top: 0; left: 0;
|
|
width: 4px; height: 100%;
|
|
background: var(--ok);
|
|
}
|
|
.card-name {
|
|
font-weight: 600;
|
|
font-size: 13px;
|
|
margin-bottom: 4px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.card-meta {
|
|
font-size: 11px;
|
|
color: var(--txt-2);
|
|
display: flex; gap: 10px;
|
|
}
|
|
.meta-in, .meta-out { display: flex; align-items: center; gap: 3px; }
|
|
.meta-in::before { content: '↓'; color: var(--ok); }
|
|
.meta-out::before { content: '↑'; color: var(--accent); }
|
|
.card.orphan .meta-in::before { color: var(--warn); }
|
|
.loading { text-align: center; padding: 60px; color: var(--txt-1); }
|
|
.hidden { display: none !important; }
|
|
footer {
|
|
padding: 20px 40px;
|
|
text-align: center;
|
|
color: var(--txt-2);
|
|
font-size: 12px;
|
|
border-top: 1px solid var(--border);
|
|
margin-top: 60px;
|
|
}
|
|
footer a { color: var(--accent); text-decoration: none; }
|
|
|
|
/* === OPUS RESPONSIVE FIX v2 19avr — append-only, doctrine #14 === */
|
|
@media(max-width: 480px) {
|
|
html, body { overflow-x: hidden !important; max-width: 100vw; }
|
|
body, main, section, article { word-break: break-word; overflow-wrap: anywhere; }
|
|
img, video, iframe, canvas, svg, table, pre, code { max-width: 100% !important; }
|
|
pre, code { white-space: pre-wrap; word-break: break-all; }
|
|
table { display: block; overflow-x: auto; }
|
|
.container, [class*="container"], [class*="wrapper"] { max-width: 100vw !important; padding-left: 12px !important; padding-right: 12px !important; }
|
|
[class*="grid"], [class*="-grid"] { grid-template-columns: 1fr !important; gap: 10px !important; }
|
|
[class*="kpi"], [class*="stats"], [class*="-cards"] { grid-template-columns: 1fr !important; }
|
|
header, nav, footer { flex-wrap: wrap !important; }
|
|
header > *, nav > *, footer > * { max-width: 100%; }
|
|
h1 { font-size: 22px !important; word-break: break-word; }
|
|
h2 { font-size: 18px !important; }
|
|
.pitch, [class*="pitch"], [class*="hero"] { word-break: break-word; overflow-wrap: anywhere; }
|
|
}
|
|
/* === OPUS RESPONSIVE FIX v2 END === */
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<h1>Pages Index · <span>WEVAL Technology Platform</span></h1>
|
|
<div class="sub">Référentiel unifié · toutes les pages de l'architecture · liens de navigation live</div>
|
|
<div class="stats">
|
|
<div class="stat"><div class="stat-val" id="stat-total">—</div><div class="stat-lbl">Pages totales</div></div>
|
|
<div class="stat"><div class="stat-val" id="stat-ref">—</div><div class="stat-lbl">Reliées</div></div>
|
|
<div class="stat"><div class="stat-val" id="stat-orph" style="color:var(--warn)">—</div><div class="stat-lbl">Orphelines</div></div>
|
|
<div class="stat"><div class="stat-val" id="stat-links">—</div><div class="stat-lbl">Liens totaux</div></div>
|
|
<div class="stat"><div class="stat-val" id="stat-classes">—</div><div class="stat-lbl">Catégories</div></div>
|
|
</div>
|
|
<input class="search" id="search" placeholder="🔍 Rechercher une page (nom / titre / catégorie) ..." autofocus>
|
|
</header>
|
|
<div class="container" id="main">
|
|
<div class="loading">Chargement du registre...</div>
|
|
</div>
|
|
<footer>
|
|
Source de vérité live · <a href="/api/wevia-pages-registry.php?action=summary" target="_blank">API Summary</a> ·
|
|
<a href="/api/wevia-pages-registry.php?action=orphans" target="_blank">Orphans</a> ·
|
|
<a href="/api/wevia-pages-registry.php?action=full" target="_blank">Full JSON</a> ·
|
|
<a href="/wevia-master.html">Retour WEVIA Master</a>
|
|
</footer>
|
|
|
|
<script>
|
|
const ICONS = {
|
|
entry: '🏠', hub: '🔗', dashboard: '📊', architecture: '🏛️',
|
|
visualization: '📈', admin: '⚙️', wevia: '🤖', ethica: '⚕️',
|
|
paperclip: '📎', strategy: '🎯', operations: '⚡', business: '💼',
|
|
test: '🧪', tools: '🛠️', office: '🏢', deerflow: '🦌',
|
|
security: '🔐', monitoring: '📡', agents: '👥', api_tools: '🔌',
|
|
module: '📄'
|
|
};
|
|
|
|
const CLASS_ORDER = [
|
|
'entry','hub','dashboard','architecture','wevia','ethica','agents','paperclip',
|
|
'operations','business','strategy','tools','office','monitoring','security',
|
|
'visualization','admin','deerflow','api_tools','test','module'
|
|
];
|
|
|
|
async function load() {
|
|
try {
|
|
const r = await fetch('/api/wevia-pages-registry.php?action=full&rebuild=1');
|
|
const d = await r.json();
|
|
render(d);
|
|
} catch (e) {
|
|
document.getElementById('main').innerHTML = '<div class="loading" style="color:var(--err)">Erreur: ' + e.message + '</div>';
|
|
}
|
|
}
|
|
|
|
function render(d) {
|
|
// Stats
|
|
document.getElementById('stat-total').textContent = d.total_pages;
|
|
document.getElementById('stat-ref').textContent = d.referenced_pages;
|
|
document.getElementById('stat-orph').textContent = d.orphans_count;
|
|
document.getElementById('stat-links').textContent = d.links_count;
|
|
document.getElementById('stat-classes').textContent = Object.keys(d.by_class).length;
|
|
|
|
// Group pages
|
|
const pages = d.pages;
|
|
const byClass = {};
|
|
for (const name in pages) {
|
|
const c = pages[name].class;
|
|
if (!byClass[c]) byClass[c] = [];
|
|
byClass[c].push(pages[name]);
|
|
}
|
|
|
|
// Sort each class: orphans first, then by incoming_links desc
|
|
for (const c in byClass) {
|
|
byClass[c].sort((a, b) => {
|
|
if (a.orphan !== b.orphan) return a.orphan ? -1 : 1;
|
|
return b.incoming_links - a.incoming_links;
|
|
});
|
|
}
|
|
|
|
// Render in order
|
|
const main = document.getElementById('main');
|
|
main.innerHTML = '';
|
|
const orderedClasses = CLASS_ORDER.filter(c => byClass[c]).concat(
|
|
Object.keys(byClass).filter(c => !CLASS_ORDER.includes(c))
|
|
);
|
|
|
|
for (const c of orderedClasses) {
|
|
const pages = byClass[c];
|
|
const icon = ICONS[c] || '📄';
|
|
const section = document.createElement('section');
|
|
section.className = 'class-section';
|
|
section.dataset.class = c;
|
|
const orphCount = pages.filter(p => p.orphan).length;
|
|
section.innerHTML = `
|
|
<div class="class-title">
|
|
<span class="icon">${icon}</span>
|
|
<span>${c}</span>
|
|
<span class="count">${pages.length} pages</span>
|
|
${orphCount > 0 ? `<span class="orph-flag">${orphCount} orphelines</span>` : ''}
|
|
</div>
|
|
<div class="grid">
|
|
${pages.map(p => `
|
|
<a class="card${p.orphan ? ' orphan' : (p.incoming_links > 20 ? ' top' : '')}"
|
|
href="${p.path}" target="_blank"
|
|
data-search="${(p.name + ' ' + (p.title||'') + ' ' + c).toLowerCase()}">
|
|
<div class="card-name" title="${p.name}">${p.title || p.name}</div>
|
|
<div class="card-meta">
|
|
<span class="meta-in" title="Liens entrants">${p.incoming_links}</span>
|
|
<span class="meta-out" title="Liens sortants">${p.outgoing_links}</span>
|
|
<span style="color:var(--txt-2)">${p.size_kb}kb</span>
|
|
</div>
|
|
</a>
|
|
`).join('')}
|
|
</div>
|
|
`;
|
|
main.appendChild(section);
|
|
}
|
|
|
|
// Search
|
|
const search = document.getElementById('search');
|
|
search.addEventListener('input', () => {
|
|
const q = search.value.trim().toLowerCase();
|
|
document.querySelectorAll('.card').forEach(card => {
|
|
const hit = !q || card.dataset.search.includes(q);
|
|
card.classList.toggle('hidden', !hit);
|
|
});
|
|
document.querySelectorAll('.class-section').forEach(s => {
|
|
const visibleCards = s.querySelectorAll('.card:not(.hidden)');
|
|
s.classList.toggle('hidden', q && visibleCards.length === 0);
|
|
});
|
|
});
|
|
}
|
|
|
|
load();
|
|
</script>
|
|
|
|
<!-- === OPUS UNIVERSAL DRILL-DOWN v1 19avr — append-only, doctrine #14 === -->
|
|
<script>
|
|
(function(){
|
|
if (window.__opusUniversalDrill) return; window.__opusUniversalDrill = true;
|
|
var d = document;
|
|
var m = d.createElement('div');
|
|
m.id = 'opus-udrill';
|
|
m.style.cssText = 'position:fixed;inset:0;background:rgba(0,0,0,0.82);backdrop-filter:blur(6px);display:none;align-items:center;justify-content:center;z-index:99995;padding:20px;cursor:pointer';
|
|
var inner = d.createElement('div');
|
|
inner.id = 'opus-udrill-in';
|
|
inner.style.cssText = 'max-width:900px;width:100%;max-height:90vh;overflow:auto;background:#0b0d15;border:1px solid rgba(99,102,241,0.35);border-radius:14px;padding:28px;cursor:default;box-shadow:0 20px 60px rgba(0,0,0,0.6);color:#e2e8f0;font:14px/1.55 Inter,system-ui,sans-serif';
|
|
inner.addEventListener('click', function(e){ e.stopPropagation(); });
|
|
m.appendChild(inner);
|
|
m.addEventListener('click', function(){ m.style.display='none'; });
|
|
d.addEventListener('keydown', function(e){ if(e.key==='Escape') m.style.display='none'; });
|
|
(d.body || d.documentElement).appendChild(m);
|
|
|
|
function openCard(card) {
|
|
// Clone card content + show close btn + increase font-size
|
|
var html = '<div style="display:flex;justify-content:flex-end;margin-bottom:14px"><button id="opus-udrill-close" style="padding:6px 14px;background:#171b2a;border:1px solid rgba(99,102,241,0.25);color:#e2e8f0;border-radius:8px;cursor:pointer;font-size:12px">✕ Fermer (Esc)</button></div>';
|
|
html += '<div style="transform-origin:top left;font-size:1.05em">' + card.outerHTML + '</div>';
|
|
inner.innerHTML = html;
|
|
d.getElementById('opus-udrill-close').onclick = function(){ m.style.display='none'; };
|
|
m.style.display = 'flex';
|
|
}
|
|
|
|
function wire(root) {
|
|
var sels = '.card,[class*="card"],.kpi,[class*="kpi"],.stat,[class*="stat"],.tile,[class*="tile"],.metric,[class*="metric"],.widget,[class*="widget"]';
|
|
var cards = root.querySelectorAll(sels);
|
|
for (var i = 0; i < cards.length; i++) {
|
|
var c = cards[i];
|
|
if (c.__opusWired) continue;
|
|
if (c.closest('button, a, input, select, textarea, #opus-udrill')) continue;
|
|
var r = c.getBoundingClientRect();
|
|
if (r.width < 60 || r.height < 40) continue;
|
|
c.__opusWired = true;
|
|
c.style.cursor = 'pointer';
|
|
c.setAttribute('role','button');
|
|
c.setAttribute('tabindex','0');
|
|
c.addEventListener('click', function(ev){
|
|
// If a more-specific drill is already active (e.g. pp-card custom), let it handle
|
|
if (ev.target.closest('[data-pp-id]') && window.__opusDrillInit) return;
|
|
if (ev.target.closest('a,button,input,select')) return;
|
|
ev.preventDefault(); ev.stopPropagation();
|
|
openCard(this);
|
|
});
|
|
c.addEventListener('keydown', function(ev){ if(ev.key==='Enter'||ev.key===' '){ev.preventDefault();openCard(this);} });
|
|
}
|
|
}
|
|
|
|
// Initial + mutation observer
|
|
var initRun = function(){ wire(d.body || d.documentElement); };
|
|
if (d.readyState === 'loading') d.addEventListener('DOMContentLoaded', initRun);
|
|
else initRun();
|
|
var mo = new MutationObserver(function(muts){
|
|
var newCard = false;
|
|
for (var i=0;i<muts.length;i++) if (muts[i].addedNodes.length) { newCard = true; break; }
|
|
if (newCard) initRun();
|
|
});
|
|
mo.observe(d.body || d.documentElement, {childList:true, subtree:true});
|
|
})();
|
|
</script>
|
|
<!-- === OPUS UNIVERSAL DRILL-DOWN END === -->
|
|
|
|
</body>
|
|
</html>
|