- New modular pipeline architecture allowing custom workflow combinations
- Per-step LLM provider configuration (Claude, OpenAI, Gemini, Deepseek, Moonshot, Mistral)
- Visual pipeline builder and runner interfaces with drag-and-drop
- 10 predefined pipeline templates (minimal-test to originality-bypass)
- Pipeline CRUD operations via ConfigManager and REST API
- Fix variable resolution in instructions (HTML tags were breaking {{variables}})
- Fix hardcoded LLM providers in AdversarialCore
- Add TESTS_LLM_PROVIDER.md documentation with validation results
- Update dashboard to disable legacy config editor
API Endpoints:
- POST /api/pipeline/save, execute, validate, estimate
- GET /api/pipeline/list, modules, templates
Backward compatible with legacy modular workflow system.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
374 lines
12 KiB
HTML
374 lines
12 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>SEO Generator - Dashboard</title>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:root {
|
|
--primary: #667eea;
|
|
--secondary: #764ba2;
|
|
--success: #48bb78;
|
|
--warning: #ed8936;
|
|
--error: #f56565;
|
|
--bg-light: #f7fafc;
|
|
--bg-dark: #1a202c;
|
|
--text-dark: #2d3748;
|
|
--text-light: #a0aec0;
|
|
--border-light: #e2e8f0;
|
|
}
|
|
|
|
body {
|
|
font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
min-height: 100vh;
|
|
color: var(--text-dark);
|
|
padding: 20px;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
header {
|
|
text-align: center;
|
|
color: white;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 2.5em;
|
|
margin-bottom: 10px;
|
|
text-shadow: 0 2px 10px rgba(0,0,0,0.2);
|
|
}
|
|
|
|
.server-status {
|
|
display: inline-block;
|
|
padding: 8px 16px;
|
|
background: rgba(255,255,255,0.2);
|
|
border-radius: 20px;
|
|
font-size: 0.9em;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.server-status.online {
|
|
background: rgba(72, 187, 120, 0.3);
|
|
}
|
|
|
|
.card-container {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
|
|
gap: 30px;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.card {
|
|
background: white;
|
|
border-radius: 15px;
|
|
padding: 30px;
|
|
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 4px;
|
|
background: linear-gradient(90deg, var(--primary), var(--secondary));
|
|
transform: scaleX(0);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.card:hover::before {
|
|
transform: scaleX(1);
|
|
}
|
|
|
|
.card:hover {
|
|
transform: translateY(-5px);
|
|
box-shadow: 0 15px 40px rgba(0,0,0,0.15);
|
|
}
|
|
|
|
.card-icon {
|
|
font-size: 3em;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.card h2 {
|
|
color: var(--text-dark);
|
|
margin-bottom: 15px;
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
.card p {
|
|
color: var(--text-light);
|
|
margin-bottom: 20px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.card ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.card ul li {
|
|
padding: 8px 0;
|
|
color: var(--text-dark);
|
|
border-bottom: 1px solid var(--border-light);
|
|
}
|
|
|
|
.card ul li:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.card ul li::before {
|
|
content: '✓';
|
|
color: var(--success);
|
|
font-weight: bold;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.stats-panel {
|
|
background: white;
|
|
border-radius: 15px;
|
|
padding: 30px;
|
|
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.stats-panel h3 {
|
|
color: var(--text-dark);
|
|
margin-bottom: 20px;
|
|
font-size: 1.3em;
|
|
}
|
|
|
|
.stats-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.stat-item {
|
|
background: var(--bg-light);
|
|
padding: 20px;
|
|
border-radius: 10px;
|
|
text-align: center;
|
|
border: 1px solid var(--border-light);
|
|
}
|
|
|
|
.stat-value {
|
|
display: block;
|
|
font-size: 2em;
|
|
font-weight: 700;
|
|
color: var(--primary);
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.stat-label {
|
|
display: block;
|
|
font-size: 0.9em;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
.footer {
|
|
text-align: center;
|
|
color: white;
|
|
margin-top: 40px;
|
|
font-size: 0.9em;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.loading {
|
|
text-align: center;
|
|
padding: 20px;
|
|
color: var(--text-light);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.card-container {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 1.8em;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<header>
|
|
<h1>🎯 SEO Generator Dashboard</h1>
|
|
<div class="server-status" id="serverStatus">
|
|
<span id="statusText">Vérification...</span>
|
|
</div>
|
|
</header>
|
|
|
|
<main>
|
|
<div class="card-container">
|
|
<!-- Card 1: Configuration Editor (DÉSACTIVÉ - ancien système) -->
|
|
<div class="card" style="opacity: 0.5; cursor: not-allowed;" onclick="alert('⚠️ Ancien système désactivé. Utilisez Pipeline Builder à la place.')">
|
|
<div class="card-icon">🔧</div>
|
|
<h2>Éditeur de Configuration</h2>
|
|
<p style="color: var(--warning);">⚠️ ANCIEN SYSTÈME - Désactivé</p>
|
|
<ul>
|
|
<li>4 couches modulaires configurables</li>
|
|
<li>Save/Load des configurations</li>
|
|
<li>Test en direct avec logs temps réel</li>
|
|
<li>Preview JSON de la configuration</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<!-- Card 2: Production Runner (DÉSACTIVÉ - ancien système) -->
|
|
<div class="card" style="opacity: 0.5; cursor: not-allowed;" onclick="alert('⚠️ Ancien système désactivé. Utilisez Pipeline Runner à la place.')">
|
|
<div class="card-icon">🚀</div>
|
|
<h2>Runner de Production</h2>
|
|
<p style="color: var(--warning);">⚠️ ANCIEN SYSTÈME - Désactivé</p>
|
|
<ul>
|
|
<li>Load configuration sauvegardée</li>
|
|
<li>Sélection ligne Google Sheets</li>
|
|
<li>Logs temps réel pendant l'exécution</li>
|
|
<li>Résultats et lien direct vers GSheets</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<!-- Card 3: Pipeline Builder -->
|
|
<div class="card" onclick="navigateTo('pipeline-builder.html')">
|
|
<div class="card-icon">🎨</div>
|
|
<h2>Pipeline Builder</h2>
|
|
<p>Créer des pipelines modulaires flexibles avec drag-and-drop</p>
|
|
<ul>
|
|
<li>Construction visuelle par glisser-déposer</li>
|
|
<li>Ordre et intensités personnalisables</li>
|
|
<li>Multi-passes d'un même module</li>
|
|
<li>Templates prédéfinis chargeables</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<!-- Card 4: Pipeline Runner -->
|
|
<div class="card" onclick="navigateTo('pipeline-runner.html')">
|
|
<div class="card-icon">⚡</div>
|
|
<h2>Pipeline Runner</h2>
|
|
<p>Exécuter vos pipelines personnalisés sur Google Sheets</p>
|
|
<ul>
|
|
<li>Chargement pipelines sauvegardés</li>
|
|
<li>Preview détaillée avant exécution</li>
|
|
<li>Suivi progression étape par étape</li>
|
|
<li>Logs d'exécution complets</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="stats-panel">
|
|
<h3>📊 Statistiques Système</h3>
|
|
<div class="stats-grid">
|
|
<div class="stat-item">
|
|
<span class="stat-value" id="configCount">
|
|
<div class="loading">⏳</div>
|
|
</span>
|
|
<span class="stat-label">Configurations sauvegardées</span>
|
|
</div>
|
|
<div class="stat-item">
|
|
<span class="stat-value" id="uptime">
|
|
<div class="loading">⏳</div>
|
|
</span>
|
|
<span class="stat-label">Uptime serveur</span>
|
|
</div>
|
|
<div class="stat-item">
|
|
<span class="stat-value" id="clientsCount">
|
|
<div class="loading">⏳</div>
|
|
</span>
|
|
<span class="stat-label">Clients connectés</span>
|
|
</div>
|
|
<div class="stat-item">
|
|
<span class="stat-value" id="requestsCount">
|
|
<div class="loading">⏳</div>
|
|
</span>
|
|
<span class="stat-label">Requêtes traitées</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
<footer class="footer">
|
|
<p>SEO Generator Server v1.0 - Mode MANUAL</p>
|
|
<p>Architecture Modulaire | WebSocket Logs | Production Ready</p>
|
|
</footer>
|
|
</div>
|
|
|
|
<script>
|
|
function navigateTo(page) {
|
|
window.location.href = page;
|
|
}
|
|
|
|
async function loadStats() {
|
|
try {
|
|
// Charger status serveur
|
|
const statusResponse = await fetch('/api/status');
|
|
const statusData = await statusResponse.json();
|
|
|
|
if (statusData.success) {
|
|
document.getElementById('serverStatus').classList.add('online');
|
|
document.getElementById('statusText').textContent = `🟢 En ligne (${statusData.mode})`;
|
|
|
|
// Uptime
|
|
const uptimeSeconds = Math.floor(statusData.uptime / 1000);
|
|
const uptimeMinutes = Math.floor(uptimeSeconds / 60);
|
|
const uptimeHours = Math.floor(uptimeMinutes / 60);
|
|
|
|
let uptimeText;
|
|
if (uptimeHours > 0) {
|
|
uptimeText = `${uptimeHours}h ${uptimeMinutes % 60}m`;
|
|
} else if (uptimeMinutes > 0) {
|
|
uptimeText = `${uptimeMinutes}m`;
|
|
} else {
|
|
uptimeText = `${uptimeSeconds}s`;
|
|
}
|
|
|
|
document.getElementById('uptime').textContent = uptimeText;
|
|
document.getElementById('clientsCount').textContent = statusData.clients || 0;
|
|
document.getElementById('requestsCount').textContent = statusData.stats?.requests || 0;
|
|
} else {
|
|
throw new Error('Server status check failed');
|
|
}
|
|
|
|
// Charger configs
|
|
const configResponse = await fetch('/api/config/list');
|
|
const configData = await configResponse.json();
|
|
|
|
if (configData.success) {
|
|
document.getElementById('configCount').textContent = configData.count || 0;
|
|
} else {
|
|
document.getElementById('configCount').textContent = '0';
|
|
}
|
|
|
|
} catch (error) {
|
|
console.error('Erreur chargement stats:', error);
|
|
document.getElementById('statusText').textContent = '🔴 Hors ligne';
|
|
document.getElementById('configCount').textContent = 'N/A';
|
|
document.getElementById('uptime').textContent = 'N/A';
|
|
document.getElementById('clientsCount').textContent = 'N/A';
|
|
document.getElementById('requestsCount').textContent = 'N/A';
|
|
}
|
|
}
|
|
|
|
// Charger les stats au démarrage
|
|
window.onload = loadStats;
|
|
|
|
// Rafraîchir les stats toutes les 30 secondes
|
|
setInterval(loadStats, 30000);
|
|
</script>
|
|
</body>
|
|
</html>
|