|
1 | 1 | <template>
|
2 | 2 | <v-container fluid>
|
3 |
| - <v-row> |
4 |
| - <v-col cols="12"> |
5 |
| - <h1 class="text-h4 mb-6">{{ $t('dashboard.title') }}</h1> |
6 |
| - </v-col> |
7 |
| - </v-row> |
8 | 3 | <v-row>
|
9 | 4 | <v-col v-for="shortcut in shortcuts" :key="shortcut.title" cols="12" sm="6" md="4">
|
10 | 5 | <v-card dense :color="shortcut.color" hover @click="navigateTo(shortcut.route)">
|
|
28 | 23 | <script setup>
|
29 | 24 | import { ref } from 'vue';
|
30 | 25 | import { useRouter } from 'vue-router';
|
31 |
| -import { Monitor, Bell, Table, Calendar, FileText, UserCog, HelpCircle,BarChart, Database } from 'lucide-vue-next'; |
| 26 | +import { Monitor, Bell, Table, Calendar, FileText, UserCog, HelpCircle, BarChart, Database } from 'lucide-vue-next'; |
32 | 27 |
|
33 | 28 | const router = useRouter();
|
34 | 29 |
|
35 | 30 | const shortcuts = ref([
|
36 |
| - { titleKey: 'dashboard.displayViewer', icon: Monitor, color: 'primary', route: '/display-viewer', page: '/display.html', target:"_blank" }, |
37 |
| - { titleKey: 'dashboard.alarmsViewer', icon: Bell, color: 'error', route: '/alarms-viewer', page: '/tabular.html?SELMODULO=ALARMS_VIEWER', target:"_blank" }, |
38 |
| - { titleKey: 'dashboard.tabularViewer', icon: Table, color: 'success', route: '/tabular-viewer', page: '/tabular.html', target:"_blank" }, |
39 |
| - { titleKey: 'dashboard.eventsViewer', icon: Calendar, color: 'info', route: '/events-viewer', page: '/events.html', target:"_blank" }, |
40 |
| - { titleKey: 'dashboard.logViewer', icon: FileText, color: 'warning', route: '/log-viewer', page: '/log-io', target:"_blank" }, |
41 |
| - { titleKey: 'dashboard.grafana', icon: BarChart, color: 'secondary', route: '/grafana', page: '/grafana', target:"_blank" }, |
42 |
| - { titleKey: 'dashboard.metabase', icon: Database, color: 'primary', route: '/metabase', page: '/metabase', target:"_blank" }, |
| 31 | + { titleKey: 'dashboard.displayViewer', icon: Monitor, color: 'primary', route: '/display-viewer', page: '/display.html', target: "_blank" }, |
| 32 | + { titleKey: 'dashboard.alarmsViewer', icon: Bell, color: 'error', route: '/alarms-viewer', page: '/tabular.html?SELMODULO=ALARMS_VIEWER', target: "_blank" }, |
| 33 | + { titleKey: 'dashboard.tabularViewer', icon: Table, color: 'success', route: '/tabular-viewer', page: '/tabular.html', target: "_blank" }, |
| 34 | + { titleKey: 'dashboard.eventsViewer', icon: Calendar, color: 'info', route: '/events-viewer', page: '/events.html', target: "_blank" }, |
| 35 | + { titleKey: 'dashboard.logViewer', icon: FileText, color: 'warning', route: '/log-viewer', page: '/log-io', target: "_blank" }, |
| 36 | + { titleKey: 'dashboard.grafana', icon: BarChart, color: 'secondary', route: '/grafana', page: '/grafana', target: "_blank" }, |
| 37 | + { titleKey: 'dashboard.metabase', icon: Database, color: 'primary', route: '/metabase', page: '/metabase', target: "_blank" }, |
43 | 38 | { titleKey: 'dashboard.admin', icon: UserCog, color: 'primary', route: '/admin' },
|
44 | 39 | { titleKey: 'dashboard.about', icon: HelpCircle, color: 'secondary', route: '/about' },
|
45 | 40 | ]);
|
|
0 commit comments