Loading...
+ }
+
+ return (
+
+
User Search Analytics
+
+
+
Queries by Category
+
+
+
+
+
+
+
+
+
+
+
+
Queries by Source
+
+
+ {sourceData.map((entry, index) => (
+ |
+ ))}
+
+
+
+
+
+
+ {queries.length === 0 ? (
+
No data available
+ ) : (
+
+
+
+ Query |
+ Source |
+ Category |
+ Timestamp |
+
+
+
+ {queries.map((query) => (
+
+ {query.query} |
+ {query.source} |
+ {query.category} |
+
+ {new Date(query.timestamp).toLocaleString()}
+ |
+
+ ))}
+
+
+ )}
+
+ )
+}
+
+export default AnalyticsDashboard
diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js
index b46b750f7..44d492642 100644
--- a/frontend/tailwind.config.js
+++ b/frontend/tailwind.config.js
@@ -11,6 +11,6 @@ export default {
},
},
},
- darkMode: 'selector',
- plugins: [],
+ darkMode: ['selector', 'class'],
+ plugins: [require('tailwindcss-animate')],
}