diff --git a/dashboard/components/dashboard/TopSection.vue b/dashboard/components/dashboard/TopSection.vue index 4816a46..2f7f36c 100644 --- a/dashboard/components/dashboard/TopSection.vue +++ b/dashboard/components/dashboard/TopSection.vue @@ -21,7 +21,7 @@ function showAnomalyInfoAlert() { attack or simply higher traffic due to good performance. Additionally, it can detect if someone is stealing parts of your website and hosting a duplicate version—an unfortunately common practice. Litlyx will notify you via email with actionable advices`, - 'far fa-bug', + 'far fa-shield', 10000 ) diff --git a/dashboard/layouts/dashboard.vue b/dashboard/layouts/dashboard.vue index 885830e..2e65a99 100644 --- a/dashboard/layouts/dashboard.vue +++ b/dashboard/layouts/dashboard.vue @@ -18,10 +18,10 @@ const sections: Section[] = [ { label: 'Dashboard', to: '/', icon: 'fal fa-table-layout' }, { label: 'Events', to: '/events', icon: 'fal fa-square-bolt' }, { label: 'AI Analyst', to: '/analyst', icon: 'fal fa-sparkles' }, + { label: 'Security', to: '/security', icon: 'fal fa-shield' }, { label: 'Insights (soon)', to: '#', icon: 'fal fa-lightbulb', disabled: true }, { label: 'Links (soon)', to: '#', icon: 'fal fa-globe-pointer', disabled: true }, { label: 'Integrations (soon)', to: '#', icon: 'fal fa-cube', disabled: true }, - { label: 'Security', to: '/security', icon: 'fal fa-lock' }, { label: 'Settings', to: '/settings', icon: 'fal fa-gear' }, { grow: true, diff --git a/dashboard/pages/security.vue b/dashboard/pages/security.vue index 16220a4..d8782e9 100644 --- a/dashboard/pages/security.vue +++ b/dashboard/pages/security.vue @@ -12,34 +12,60 @@ const headers = computed(() => { const reportList = useFetch(`/api/security/list`, { headers }); +const { createAlert } = useAlert(); + +function showAnomalyInfoAlert() { + createAlert('AI Anomaly Detector info', + `Anomaly detector is running. It helps you detect a spike in visits or events, it could mean an + attack or simply higher traffic due to good performance. Additionally, it can detect if someone is + stealing parts of your website and hosting a duplicate version—an unfortunately common practice. + Litlyx will notify you via email with actionable advices`, + 'far fa-shield', + 10000 + ) +} +