page-route.d.ts 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. declare namespace PageRoute {
  2. /**
  3. * the root route key
  4. * @translate 根路由
  5. */
  6. type RootRouteKey = 'root';
  7. /**
  8. * the not found route, which catch the invalid route path
  9. * @translate 未找到路由(捕获无效路径的路由)
  10. */
  11. type NotFoundRouteKey = 'not-found';
  12. /**
  13. * the route key
  14. * @translate 页面路由
  15. */
  16. type RouteKey =
  17. | '403'
  18. | '404'
  19. | '500'
  20. | 'constant-page'
  21. | 'login'
  22. | 'not-found'
  23. | 'about'
  24. | 'auth-demo'
  25. | 'auth-demo_permission'
  26. | 'auth-demo_super'
  27. | 'background'
  28. | 'background_event'
  29. | 'background_field'
  30. | 'background_indicators'
  31. | 'background_workflow'
  32. | 'component'
  33. | 'component_button'
  34. | 'component_card'
  35. | 'component_table'
  36. | 'dashboard'
  37. | 'dashboard_analysis'
  38. | 'dashboard_workbench'
  39. | 'document'
  40. | 'document_naive'
  41. | 'document_project-link'
  42. | 'document_project'
  43. | 'document_vite'
  44. | 'document_vue'
  45. | 'exception'
  46. | 'exception_403'
  47. | 'exception_404'
  48. | 'exception_500'
  49. | 'function'
  50. | 'function_tab-detail'
  51. | 'function_tab-multi-detail'
  52. | 'function_tab'
  53. | 'management'
  54. | 'management_auth'
  55. | 'management_role'
  56. | 'management_route'
  57. | 'management_user'
  58. | 'mqtt'
  59. | 'mqtt_authentication'
  60. | 'mqtt_pasture'
  61. | 'mqtt_topic'
  62. | 'mqtt_category'
  63. | 'mqtt_user'
  64. | 'multi-menu'
  65. | 'multi-menu_first'
  66. | 'multi-menu_first_second-new'
  67. | 'multi-menu_first_second-new_third'
  68. | 'multi-menu_first_second'
  69. | 'plugin'
  70. | 'plugin_charts'
  71. | 'plugin_charts_antv'
  72. | 'plugin_charts_echarts'
  73. | 'plugin_copy'
  74. | 'plugin_editor'
  75. | 'plugin_editor_markdown'
  76. | 'plugin_editor_quill'
  77. | 'plugin_icon'
  78. | 'plugin_map'
  79. | 'plugin_print'
  80. | 'plugin_swiper'
  81. | 'plugin_video';
  82. /**
  83. * last degree route key, which has the page file
  84. * @translate 最后一级路由(该级路有对应的页面文件)
  85. */
  86. type LastDegreeRouteKey = Extract<
  87. RouteKey,
  88. | '403'
  89. | '404'
  90. | '500'
  91. | 'constant-page'
  92. | 'login'
  93. | 'not-found'
  94. | 'about'
  95. | 'auth-demo_permission'
  96. | 'auth-demo_super'
  97. | 'background_event'
  98. | 'background_field'
  99. | 'background_indicators'
  100. | 'background_workflow'
  101. | 'component_button'
  102. | 'component_card'
  103. | 'component_table'
  104. | 'dashboard_analysis'
  105. | 'dashboard_workbench'
  106. | 'document_naive'
  107. | 'document_project-link'
  108. | 'document_project'
  109. | 'document_vite'
  110. | 'document_vue'
  111. | 'exception_403'
  112. | 'exception_404'
  113. | 'exception_500'
  114. | 'function_tab-detail'
  115. | 'function_tab-multi-detail'
  116. | 'function_tab'
  117. | 'management_auth'
  118. | 'management_role'
  119. | 'management_route'
  120. | 'management_user'
  121. | 'mqtt_authentication'
  122. | 'mqtt_pasture'
  123. | 'mqtt_topic'
  124. | 'mqtt_category'
  125. | 'mqtt_user'
  126. | 'multi-menu_first_second-new_third'
  127. | 'multi-menu_first_second'
  128. | 'plugin_charts_antv'
  129. | 'plugin_charts_echarts'
  130. | 'plugin_copy'
  131. | 'plugin_editor_markdown'
  132. | 'plugin_editor_quill'
  133. | 'plugin_icon'
  134. | 'plugin_map'
  135. | 'plugin_print'
  136. | 'plugin_swiper'
  137. | 'plugin_video'
  138. >;
  139. }