@@ -14,86 +14,103 @@ export const routeMeta: RouteMeta = {
1414 imports : [ LucideAngularModule ] ,
1515 template : `
1616 <h1 class="text-4xl font-extrabold text-gray-800 mb-2">Analytics (Mock)</h1>
17- <p class="text-xl text-gray-500 mb-8">Track your dashboard usage and performance</p>
18-
17+ <p class="text-xl text-gray-500 mb-8">
18+ Track your dashboard usage and performance
19+ </p>
20+
1921 <div class="grid grid-cols-1 lg:grid-cols-2 gap-8 mb-8">
2022 <!-- Usage Statistics Card -->
2123 <div class="bg-white p-6 rounded-2xl long-shadow">
2224 <div class="flex items-center mb-4">
23- <i-lucide
24- name="chart-bar-big"
25- class="w-10 h-10 text-pastel-blue bg-pastel-blue/10 rounded-lg">
25+ <i-lucide
26+ name="chart-bar-big"
27+ class="w-10 h-10 text-pastel-blue bg-pastel-blue/10 rounded-lg"
28+ >
2629 </i-lucide>
2730 <h2 class="text-2xl font-bold text-gray-800">Usage Statistics</h2>
2831 </div>
29-
32+
3033 <div class="space-y-4">
31- <div class="flex justify-between items-center pb-2 border-b border-gray-100">
34+ <div
35+ class="flex justify-between items-center pb-2 border-b border-gray-100"
36+ >
3237 <span class="text-gray-600">Total Dashboards</span>
3338 <span class="text-2xl font-bold text-pastel-blue">12</span>
3439 </div>
35-
36- <div class="flex justify-between items-center pb-2 border-b border-gray-100">
40+
41+ <div
42+ class="flex justify-between items-center pb-2 border-b border-gray-100"
43+ >
3744 <span class="text-gray-600">Active Devices</span>
3845 <span class="text-2xl font-bold text-pastel-blue">8</span>
3946 </div>
40-
41- <div class="flex justify-between items-center pb-2 border-b border-gray-100">
47+
48+ <div
49+ class="flex justify-between items-center pb-2 border-b border-gray-100"
50+ >
4251 <span class="text-gray-600">Widgets Deployed</span>
4352 <span class="text-2xl font-bold text-pastel-blue">42</span>
4453 </div>
45-
54+
4655 <div class="flex justify-between items-center">
4756 <span class="text-gray-600">Avg. Updates/Day</span>
4857 <span class="text-2xl font-bold text-pastel-blue">127</span>
4958 </div>
5059 </div>
5160 </div>
52-
61+
5362 <!-- Device Performance Card -->
5463 <div class="bg-white p-6 rounded-2xl long-shadow">
5564 <div class="flex items-center mb-4">
56- <i-lucide
57- name="smartphone"
58- class="w-10 h-10 text-pastel-blue bg-pastel-blue/10 rounded-lg">
65+ <i-lucide
66+ name="smartphone"
67+ class="w-10 h-10 text-pastel-blue bg-pastel-blue/10 rounded-lg"
68+ >
5969 </i-lucide>
6070 <h2 class="text-2xl font-bold text-gray-800">Device Performance</h2>
6171 </div>
62-
72+
6373 <div class="space-y-4">
64- <div class="flex justify-between items-center pb-2 border-b border-gray-100">
74+ <div
75+ class="flex justify-between items-center pb-2 border-b border-gray-100"
76+ >
6577 <span class="text-gray-600">Avg. Response Time</span>
6678 <span class="text-2xl font-bold text-pastel-blue">24ms</span>
6779 </div>
68-
69- <div class="flex justify-between items-center pb-2 border-b border-gray-100">
80+
81+ <div
82+ class="flex justify-between items-center pb-2 border-b border-gray-100"
83+ >
7084 <span class="text-gray-600">Uptime</span>
7185 <span class="text-2xl font-bold text-pastel-blue">99.8%</span>
7286 </div>
73-
74- <div class="flex justify-between items-center pb-2 border-b border-gray-100">
87+
88+ <div
89+ class="flex justify-between items-center pb-2 border-b border-gray-100"
90+ >
7591 <span class="text-gray-600">Offline Events</span>
7692 <span class="text-2xl font-bold text-pastel-blue">3</span>
7793 </div>
78-
94+
7995 <div class="flex justify-between items-center">
8096 <span class="text-gray-600">Cache Hit Rate</span>
8197 <span class="text-2xl font-bold text-pastel-blue">87%</span>
8298 </div>
8399 </div>
84100 </div>
85101 </div>
86-
102+
87103 <!-- Recent Activity Section -->
88104 <div class="bg-white p-6 rounded-2xl long-shadow mb-8">
89105 <div class="flex items-center mb-4">
90- <i-lucide
91- name="activity"
92- class="w-10 h-10 text-pastel-blue bg-pastel-blue/10 rounded-lg">
106+ <i-lucide
107+ name="activity"
108+ class="w-10 h-10 text-pastel-blue bg-pastel-blue/10 rounded-lg"
109+ >
93110 </i-lucide>
94111 <h2 class="text-2xl font-bold text-gray-800">Recent Activity</h2>
95112 </div>
96-
113+
97114 <div class="overflow-x-auto">
98115 <table class="w-full">
99116 <thead>
@@ -110,64 +127,82 @@ export const routeMeta: RouteMeta = {
110127 <td class="py-3">Kitchen Display</td>
111128 <td class="py-3">Dashboard Update</td>
112129 <td class="py-3">
113- <span class="px-2 py-1 rounded-full text-xs bg-green-100 text-green-800">Success</span>
130+ <span
131+ class="px-2 py-1 rounded-full text-xs bg-green-100 text-green-800"
132+ >Success</span
133+ >
114134 </td>
115135 </tr>
116136 <tr class="border-b border-gray-100 hover:bg-gray-50">
117137 <td class="py-3 text-gray-600">5 hours ago</td>
118138 <td class="py-3">Living Room Tablet</td>
119139 <td class="py-3">Widget Added</td>
120140 <td class="py-3">
121- <span class="px-2 py-1 rounded-full text-xs bg-green-100 text-green-800">Success</span>
141+ <span
142+ class="px-2 py-1 rounded-full text-xs bg-green-100 text-green-800"
143+ >Success</span
144+ >
122145 </td>
123146 </tr>
124147 <tr class="border-b border-gray-100 hover:bg-gray-50">
125148 <td class="py-3 text-gray-600">1 day ago</td>
126149 <td class="py-3">Bedroom Phone</td>
127150 <td class="py-3">Settings Changed</td>
128151 <td class="py-3">
129- <span class="px-2 py-1 rounded-full text-xs bg-yellow-100 text-yellow-800">Warning</span>
152+ <span
153+ class="px-2 py-1 rounded-full text-xs bg-yellow-100 text-yellow-800"
154+ >Warning</span
155+ >
130156 </td>
131157 </tr>
132158 <tr class="border-b border-gray-100 hover:bg-gray-50">
133159 <td class="py-3 text-gray-600">2 days ago</td>
134160 <td class="py-3">Office Display</td>
135161 <td class="py-3">Connection Lost</td>
136162 <td class="py-3">
137- <span class="px-2 py-1 rounded-full text-xs bg-red-100 text-red-800">Error</span>
163+ <span
164+ class="px-2 py-1 rounded-full text-xs bg-red-100 text-red-800"
165+ >Error</span
166+ >
138167 </td>
139168 </tr>
140169 </tbody>
141170 </table>
142171 </div>
143172 </div>
144-
173+
145174 <!-- Data Export Section -->
146175 <div class="bg-white p-6 rounded-2xl long-shadow">
147176 <div class="flex items-center mb-4">
148- <i-lucide
149- name="download"
150- class="w-10 h-10 text-pastel-blue bg-pastel-blue/10 rounded-lg">
177+ <i-lucide
178+ name="download"
179+ class="w-10 h-10 text-pastel-blue bg-pastel-blue/10 rounded-lg"
180+ >
151181 </i-lucide>
152182 <h2 class="text-2xl font-bold text-gray-800">Data Export</h2>
153183 </div>
154-
184+
155185 <p class="text-gray-600 mb-4">
156186 Export your analytics data for further analysis or reporting.
157187 </p>
158-
188+
159189 <div class="flex flex-wrap gap-4">
160- <button class="flex items-center text-lg font-bold py-3 px-6 rounded-xl text-white transition-all duration-300 transform hover:scale-[1.02] flat-btn-shadow bg-gradient-to-tr from-[#8A89F0] to-[#A2C0F5] tracking-wide">
190+ <button
191+ class="flex items-center text-lg font-bold py-3 px-6 rounded-xl text-white transition-all duration-300 transform hover:scale-[1.02] flat-btn-shadow bg-gradient-to-tr from-[#8A89F0] to-[#A2C0F5] tracking-wide"
192+ >
161193 <i-lucide name="file-text" class="w-5 h-5 mr-2"></i-lucide>
162194 Export as CSV
163195 </button>
164- <button class="flex items-center text-lg font-bold py-3 px-6 rounded-xl text-white bg-gray-500 transition-all duration-300 transform hover:scale-[1.02] flat-btn-shadow bg-gradient-to-tr from-[#AAB1BF] to-[#8B92A0] tracking-wide">
196+ <button
197+ class="flex items-center text-lg font-bold py-3 px-6 rounded-xl text-white bg-gray-500 transition-all duration-300 transform hover:scale-[1.02] flat-btn-shadow bg-gradient-to-tr from-[#AAB1BF] to-[#8B92A0] tracking-wide"
198+ >
165199 <i-lucide name="chart-bar-big" class="w-5 h-5 mr-2"></i-lucide>
166200 Export as JSON
167201 </button>
168- <a
202+ <a
169203 href="/analytics/delete"
170- class="flex items-center text-lg font-bold py-3 px-6 rounded-xl text-white transition-all duration-300 transform hover:scale-[1.02] flat-btn-shadow bg-gradient-to-tr from-[#FF988A] to-[#FFD5A2] text-gray-800">
204+ class="flex items-center text-lg font-bold py-3 px-6 rounded-xl text-white transition-all duration-300 transform hover:scale-[1.02] flat-btn-shadow bg-gradient-to-tr from-[#FF988A] to-[#FFD5A2] text-gray-800"
205+ >
171206 <i-lucide name="trash-2" class="w-5 h-5 mr-2"></i-lucide>
172207 Delete Data
173208 </a>
@@ -179,4 +214,4 @@ export default class AnalyticsPageComponent {
179214 showError ( ) {
180215 alert ( 'Feature coming soon!' ) ;
181216 }
182- }
217+ }
0 commit comments