feat: add peptide-news-plugin/admin/js/admin-script.js

This commit is contained in:
peptiderepo
2026-04-05 20:28:47 +07:00
parent 739393385e
commit 4ffe6e40f8

View File

@@ -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
}
]
}
});
})();