From 4ffe6e40f8288caf088cbc5eeb982139b8d8b918 Mon Sep 17 00:00:00 2001 From: peptiderepo Date: Sun, 5 Apr 2026 20:28:47 +0700 Subject: [PATCH] feat: add peptide-news-plugin/admin/js/admin-script.js --- peptide-news-plugin/admin/js/admin-script.js | 23 ++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 peptide-news-plugin/admin/js/admin-script.js diff --git a/peptide-news-plugin/admin/js/admin-script.js b/peptide-news-plugin/admin/js/admin-script.js new file mode 100644 index 0000000..5968919 --- /dev/null +++ b/peptide-news-plugin/admin/js/admin-script.js @@ -0,0 +1,23 @@ +/** + * Admin JS for Peptide News Analytics Dashboard + */ + +(function() { + const ctx = document.getElementById('peptide-analytics-chart')?.getContext('2d'); + if (!ctx) return; + + new Chart(ctx, { + type: 'line', + data: { + labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'], + datasets: [ + { + label: 'Clicks', + data: [12, 19, 3, 5, 2, 3], + borderColor: 'rgb(75, 192, 192)', + tension: 0.1 + } + ] + } + }); +})();