nginx_log.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import type { RouteRecordRaw } from 'vue-router'
  2. import { FileTextOutlined } from '@ant-design/icons-vue'
  3. export const nginxLogRoutes: RouteRecordRaw[] = [
  4. {
  5. path: 'nginx_log',
  6. name: 'Nginx Log',
  7. meta: {
  8. name: () => $gettext('Nginx Log'),
  9. icon: FileTextOutlined,
  10. },
  11. children: [{
  12. path: 'access',
  13. name: 'Access Logs',
  14. component: () => import('@/views/nginx_log/NginxLog.vue'),
  15. meta: {
  16. name: () => $gettext('Access Logs'),
  17. },
  18. }, {
  19. path: 'error',
  20. name: 'Error Logs',
  21. component: () => import('@/views/nginx_log/NginxLog.vue'),
  22. meta: {
  23. name: () => $gettext('Error Logs'),
  24. },
  25. }, {
  26. path: 'site',
  27. name: 'Site Logs',
  28. component: () => import('@/views/nginx_log/NginxLog.vue'),
  29. meta: {
  30. name: () => $gettext('Site Logs'),
  31. hiddenInSidebar: true,
  32. },
  33. }, {
  34. path: 'list',
  35. name: 'Log List',
  36. component: () => import('@/views/nginx_log/NginxLogList.vue'),
  37. meta: {
  38. name: () => $gettext('Log List'),
  39. },
  40. }],
  41. },
  42. ]