Public.js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. import { canSeeUserProfilePanel } from 'src/router/middleware/middleware'
  2. export default {
  3. path: '',
  4. name: 'Public',
  5. component: () => import('layouts/bareLayout.vue'),
  6. meta: { middlewares: [canSeeUserProfilePanel] },
  7. children: [
  8. {
  9. name: 'Public.Home',
  10. path: '',
  11. layoutConfig: {
  12. layoutView: 'lhh Lpr fff'
  13. },
  14. meta: {
  15. hasDynamicSetting: true
  16. },
  17. component: () => import('src/pages/Public/index.vue')
  18. },
  19. {
  20. path: 'post',
  21. name: 'Public.Post',
  22. component: () => import('layouts/bareLayout.vue'),
  23. children: [
  24. { path: '', name: 'Public.Post.List', component: () => import('src/pages/Public/Post/List.vue') },
  25. { path: 'news', name: 'Public.Post.List.News', component: () => import('src/pages/Public/Post/News.vue') },
  26. { path: 'guide', name: 'Public.Post.List.Guide', component: () => import('src/pages/Public/Post/Guide.vue') },
  27. { path: ':id', name: 'Public.Post.Show', component: () => import('src/pages/Public/Post/Show.vue') }
  28. ]
  29. },
  30. { path: 'post_category/:category_id', name: 'Public.PostCategory.Show', component: () => import('src/pages/Public/Post/ChildCategoryPostList.vue') },
  31. {
  32. name: 'Public.AllClassrooms',
  33. path: 'all-classrooms',
  34. meta: {
  35. hasDynamicSetting: true
  36. },
  37. component: () => import('src/pages/Public/classrooms.vue')
  38. },
  39. {
  40. name: 'Public.ShowClassroomInfo',
  41. path: 'classroom/:id',
  42. meta: {
  43. hasDynamicSetting: true
  44. },
  45. component: () => import('src/pages/Public/ShowClassroomInfo.vue')
  46. },
  47. {
  48. name: 'Public.AllEvents',
  49. path: 'all-events',
  50. meta: {
  51. hasDynamicSetting: true
  52. },
  53. component: () => import('src/pages/Public/Events.vue')
  54. },
  55. {
  56. name: 'Public.ShowEventInfo',
  57. path: 'event/:id',
  58. meta: {
  59. hasDynamicSetting: true
  60. },
  61. component: () => import('src/pages/Public/ShowEventInfo.vue')
  62. },
  63. {
  64. path: 'donation-category',
  65. name: 'Public.DonationCategory',
  66. component: () => import('layouts/bareLayout.vue'),
  67. children: [
  68. { path: '', name: 'Public.DonationCategory.List', component: () => import('src/pages/BasicDynamicPage.vue') },
  69. { path: ':donation_category_id', name: 'Public.DonationCategory.Show', component: () => import('src/pages/BasicDynamicPage.vue') },
  70. { path: ':donation_category_id/donation', name: 'Public.DonationCategory.Donation.list', component: () => import('src/pages/BasicDynamicPage.vue') },
  71. { path: ':donation_category_id/donation/:donation_id', name: 'Public.DonationCategory.Donation.Show', component: () => import('src/pages/BasicDynamicPage.vue') }
  72. ]
  73. },
  74. {
  75. name: 'Public.FAQ',
  76. path: 'faq',
  77. meta: {
  78. hasDynamicSetting: true
  79. },
  80. component: () => import('src/pages/Public/FAQ.vue')
  81. },
  82. {
  83. name: 'Public.Rules',
  84. path: 'rules',
  85. meta: {
  86. hasDynamicSetting: true
  87. },
  88. component: () => import('src/pages/Public/Rules.vue')
  89. },
  90. {
  91. name: 'Public.AboutUs',
  92. path: 'about-us',
  93. meta: {
  94. hasDynamicSetting: true
  95. },
  96. component: () => import('src/pages/Public/AboutUs.vue')
  97. },
  98. {
  99. name: 'Public.ContactUs',
  100. path: 'contact-us',
  101. meta: {
  102. hasDynamicSetting: true
  103. },
  104. component: () => import('src/pages/Public/ContactUs.vue')
  105. }
  106. ]
  107. }