zq
Browse files- templates/admin.html +12 -82
templates/admin.html
CHANGED
|
@@ -69,90 +69,20 @@
|
|
| 69 |
<!-- Header -->
|
| 70 |
<header class="bg-slate-800/50 backdrop-blur-sm border-b border-slate-700/50 sticky top-0 z-50">
|
| 71 |
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 72 |
-
<div class="flex items-center justify-between h-
|
| 73 |
-
<
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
</
|
| 79 |
-
<
|
| 80 |
-
</
|
| 81 |
-
|
| 82 |
-
<div class="flex items-center space-x-4">
|
| 83 |
-
<button id="refreshBtn" class="px-6 py-3 bg-blue-600 hover:bg-blue-700 rounded-lg transition-colors duration-200 flex items-center space-x-2">
|
| 84 |
-
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
| 85 |
-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"/>
|
| 86 |
-
</svg>
|
| 87 |
-
<span>Actualiser</span>
|
| 88 |
-
</button>
|
| 89 |
-
</div>
|
| 90 |
</div>
|
| 91 |
</div>
|
| 92 |
</header>
|
| 93 |
|
| 94 |
-
|
| 95 |
-
<div class="bg-slate-800/30 border-b border-slate-700/30">
|
| 96 |
-
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6 sm:py-8">
|
| 97 |
-
<div class="grid grid-cols-1 md:grid-cols-4 gap-6">
|
| 98 |
-
<div class="bg-gradient-to-r from-blue-500/20 to-blue-600/20 rounded-lg p-6 border border-blue-500/30">
|
| 99 |
-
<div class="flex items-center">
|
| 100 |
-
<div class="p-2 bg-blue-500/30 rounded-lg">
|
| 101 |
-
<svg class="w-6 h-6 text-blue-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
| 102 |
-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"/>
|
| 103 |
-
</svg>
|
| 104 |
-
</div>
|
| 105 |
-
<div class="ml-4">
|
| 106 |
-
<p class="text-sm text-slate-400">Conversations</p>
|
| 107 |
-
<p class="text-2xl font-bold text-white" id="totalConversations">0</p>
|
| 108 |
-
</div>
|
| 109 |
-
</div>
|
| 110 |
-
</div>
|
| 111 |
-
|
| 112 |
-
<div class="bg-gradient-to-r from-green-500/20 to-green-600/20 rounded-lg p-6 border border-green-500/30">
|
| 113 |
-
<div class="flex items-center">
|
| 114 |
-
<div class="p-2 bg-green-500/30 rounded-lg">
|
| 115 |
-
<svg class="w-6 h-6 text-green-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
| 116 |
-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 8h2a2 2 0 012 2v6a2 2 0 01-2 2h-2v4l-4-4H9a1.994 1.994 0 01-1.414-.586m0 0L11 14h4a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2v4l.586-.586z"/>
|
| 117 |
-
</svg>
|
| 118 |
-
</div>
|
| 119 |
-
<div class="ml-4">
|
| 120 |
-
<p class="text-sm text-slate-400">Messages</p>
|
| 121 |
-
<p class="text-2xl font-bold text-white" id="totalMessages">0</p>
|
| 122 |
-
</div>
|
| 123 |
-
</div>
|
| 124 |
-
</div>
|
| 125 |
-
|
| 126 |
-
<div class="bg-gradient-to-r from-purple-500/20 to-purple-600/20 rounded-lg p-6 border border-purple-500/30">
|
| 127 |
-
<div class="flex items-center">
|
| 128 |
-
<div class="p-2 bg-purple-500/30 rounded-lg">
|
| 129 |
-
<svg class="w-6 h-6 text-purple-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
| 130 |
-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"/>
|
| 131 |
-
</svg>
|
| 132 |
-
</div>
|
| 133 |
-
<div class="ml-4">
|
| 134 |
-
<p class="text-sm text-slate-400">Actives</p>
|
| 135 |
-
<p class="text-2xl font-bold text-white" id="activeConversations">0</p>
|
| 136 |
-
</div>
|
| 137 |
-
</div>
|
| 138 |
-
</div>
|
| 139 |
-
|
| 140 |
-
<div class="bg-gradient-to-r from-orange-500/20 to-orange-600/20 rounded-lg p-6 border border-orange-500/30">
|
| 141 |
-
<div class="flex items-center">
|
| 142 |
-
<div class="p-2 bg-orange-500/30 rounded-lg">
|
| 143 |
-
<svg class="w-6 h-6 text-orange-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
| 144 |
-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v4a2 2 0 01-2 2h-2a2 2 0 00-2-2z"/>
|
| 145 |
-
</svg>
|
| 146 |
-
</div>
|
| 147 |
-
<div class="ml-4">
|
| 148 |
-
<p class="text-sm text-slate-400">Avec fichiers</p>
|
| 149 |
-
<p class="text-2xl font-bold text-white" id="fileConversations">0</p>
|
| 150 |
-
</div>
|
| 151 |
-
</div>
|
| 152 |
-
</div>
|
| 153 |
-
</div>
|
| 154 |
-
</div>
|
| 155 |
-
</div>
|
| 156 |
|
| 157 |
<!-- Main Content -->
|
| 158 |
<main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12 sm:py-16">
|
|
@@ -254,8 +184,8 @@
|
|
| 254 |
|
| 255 |
conversations = data.conversations || [];
|
| 256 |
filteredConversations = [...conversations];
|
| 257 |
-
|
| 258 |
-
updateStats(data.stats || {});
|
| 259 |
displayConversations();
|
| 260 |
|
| 261 |
} catch (error) {
|
|
|
|
| 69 |
<!-- Header -->
|
| 70 |
<header class="bg-slate-800/50 backdrop-blur-sm border-b border-slate-700/50 sticky top-0 z-50">
|
| 71 |
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 72 |
+
<div class="flex items-center justify-between h-12">
|
| 73 |
+
<h1 class="text-lg font-bold text-white">Admin Dashboard</h1>
|
| 74 |
+
|
| 75 |
+
<button id="refreshBtn" class="px-4 py-2 bg-blue-600 hover:bg-blue-700 rounded-lg transition-colors duration-200 flex items-center space-x-2">
|
| 76 |
+
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
| 77 |
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"/>
|
| 78 |
+
</svg>
|
| 79 |
+
<span>Actualiser</span>
|
| 80 |
+
</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
</div>
|
| 82 |
</div>
|
| 83 |
</header>
|
| 84 |
|
| 85 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
|
| 87 |
<!-- Main Content -->
|
| 88 |
<main class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12 sm:py-16">
|
|
|
|
| 184 |
|
| 185 |
conversations = data.conversations || [];
|
| 186 |
filteredConversations = [...conversations];
|
| 187 |
+
|
| 188 |
+
// updateStats(data.stats || {}); // Removed stats bar
|
| 189 |
displayConversations();
|
| 190 |
|
| 191 |
} catch (error) {
|