routes.ts 912 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. import type { RouteRecordRaw } from 'vue-router'
  3. const routes: RouteRecordRaw[] = [
  4. {
  5. path: '/account',
  6. name: 'AccountOverview',
  7. props: true,
  8. component: () => import('./views/AccountOverview.vue'),
  9. alias: '/profile',
  10. meta: {
  11. title: __('Account'),
  12. requiresAuth: true,
  13. requiredPermission: ['*'],
  14. hasBottomNavigation: true,
  15. hasHeader: true,
  16. level: 1,
  17. },
  18. },
  19. {
  20. path: '/account/avatar',
  21. name: 'PersonalSettingAvatar',
  22. props: true,
  23. component: () => import('./views/PersonalSettingAvatar.vue'),
  24. alias: '/profile/avatar',
  25. meta: {
  26. title: __('Avatar'),
  27. requiresAuth: true,
  28. requiredPermission: ['user_preferences.avatar'],
  29. hasBottomNavigation: false,
  30. hasHeader: true,
  31. level: 2,
  32. },
  33. },
  34. ]
  35. export default routes