Skip to content

Commit 8400b76

Browse files
committed
Update Templates PATH
1 parent 1d63c30 commit 8400b76

File tree

6 files changed

+15
-3
lines changed

6 files changed

+15
-3
lines changed

templates/pages/apps/charts.html renamed to templates/apps/charts.html

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
{% block content %}
55

66
<main>
7+
78
<div class="px-4 pt-6">
89
<div class="grid gap-4">
10+
911
<div
1012
class="p-4 bg-white border border-gray-200 rounded-lg shadow-sm dark:border-gray-700 sm:p-6 dark:bg-gray-800">
1113
<div class="items-center justify-between pb-4 border-b border-gray-200 sm:flex dark:border-gray-700">
@@ -24,7 +26,9 @@ <h3 class="text-base font-normal text-gray-500 dark:text-gray-400">Sales by cate
2426
</span>
2527
Since last month
2628
</p>
27-
<span class="block mr-1.5 text-sm text-blue-500 dark:text-blue-400 mt-5">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text.</span>
29+
<span class="block mr-1.5 text-sm text-blue-500 dark:text-blue-400 mt-5">
30+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text.
31+
</span>
2832
</div>
2933
<div class="w-full max-w-lg">
3034
<div date-rangepicker class="grid items-center grid-cols-2 gap-4">
@@ -64,6 +68,7 @@ <h3 class="text-base font-normal text-gray-500 dark:text-gray-400">Sales by cate
6468
</div>
6569
</div>
6670
<div class="w-full" id="sales-by-category"></div>
71+
6772
<!-- Card Footer -->
6873
<div class="flex items-center justify-between pt-3 mt-4 border-t border-gray-200 sm:pt-6 dark:border-gray-700">
6974
<div>
@@ -128,13 +133,16 @@ <h3 class="text-base font-normal text-gray-500 dark:text-gray-400">Sales by cate
128133
</div>
129134
</div>
130135
</div>
136+
131137
<div
132138
class="p-4 bg-white border border-gray-200 rounded-lg shadow-sm dark:border-gray-700 sm:p-6 dark:bg-gray-800">
133139
<div class="flex items-center justify-between pb-4 mb-4 border-b border-gray-200 dark:border-gray-700">
134140
<div>
135141
<h3 class="text-base font-normal text-gray-500 dark:text-gray-400">Traffic by device</h3>
136142
<span class="text-2xl font-bold leading-none text-gray-900 sm:text-3xl dark:text-white">Products</span>
137-
<span class="block mr-1.5 text-sm text-blue-500 dark:text-blue-400 mt-5">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.</span>
143+
<span class="block mr-1.5 text-sm text-blue-500 dark:text-blue-400 mt-5">
144+
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.
145+
</span>
138146
</div>
139147
<a href="#"
140148
class="inline-flex items-center p-2 text-xs font-medium uppercase rounded-lg text-primary-700 sm:text-sm hover:bg-gray-100 dark:text-primary-500 dark:hover:bg-gray-700">
@@ -223,8 +231,10 @@ <h4 class="text-xl font-bold dark:text-white">
223231
</div>
224232
</div>
225233
</div>
234+
226235
</div>
227236
</div>
237+
228238
</main>
229239

230240

@@ -235,6 +245,8 @@ <h4 class="text-xl font-bold dark:text-white">
235245
<script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
236246

237247
<script>
248+
249+
// Pull data from the backend
238250
const products = JSON.parse('{{ products | safe }}');
239251

240252
function getSalesByCategoryOptions(data) {
@@ -311,7 +323,6 @@ <h4 class="text-xl font-bold dark:text-white">
311323
};
312324
}
313325

314-
315326
const trafficByDeviceOptions = (data) => {
316327
let trafficChannelsChartColors = {};
317328
if (document.documentElement.classList.contains('dark')) {
@@ -400,6 +411,7 @@ <h4 class="text-xl font-bold dark:text-white">
400411
trafficByDeviceChart.updateOptions(trafficByDeviceOptions(products));
401412
});
402413
})();
414+
403415
</script>
404416

405417

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)