routes.ts 905 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Copyright (C) 2012-2025 Zammad Foundation, https://zammad-foundation.org/
  2. import type { RouteRecordRaw } from 'vue-router'
  3. const route: RouteRecordRaw[] = [
  4. {
  5. path: '/playground',
  6. name: 'Playground',
  7. props: true,
  8. component: () => import('./views/Playground.vue'),
  9. meta: {
  10. title: 'Playground',
  11. icon: 'logo-flat',
  12. requiresAuth: true,
  13. requiredPermission: ['*'],
  14. order: 500,
  15. },
  16. },
  17. ]
  18. // Temporary until we work on the dashboard
  19. if (import.meta.env.DEV || VITE_TEST_MODE) {
  20. route.push({
  21. path: '/dashboard',
  22. name: 'Dashboard',
  23. alias: '/',
  24. props: true,
  25. component: () => import('./views/Dashboard.vue'),
  26. meta: {
  27. title: __('Dashboard'),
  28. requiresAuth: true,
  29. icon: 'speedometer2',
  30. requiredPermission: ['*'],
  31. order: 0,
  32. level: 1,
  33. permanentItem: true,
  34. },
  35. })
  36. }
  37. export default route