wuheng há 1 ano atrás
pai
commit
055e1591d5

+ 37 - 37
src/router/modules/auth-demo.ts

@@ -1,38 +1,38 @@
-const authDemo: AuthRoute.Route = {
-  name: 'auth-demo',
-  path: '/auth-demo',
-  component: 'basic',
-  children: [
-    {
-      name: 'auth-demo_permission',
-      path: '/auth-demo/permission',
-      component: 'self',
-      meta: {
-        title: '权限切换',
-        i18nTitle: 'message.routes.auth-demo.permission',
-        requiresAuth: true,
-        icon: 'ic:round-construction'
-      }
-    },
-    {
-      name: 'auth-demo_super',
-      path: '/auth-demo/super',
-      component: 'self',
-      meta: {
-        title: '超级管理员可见',
-        i18nTitle: 'message.routes.auth-demo.super',
-        requiresAuth: true,
-        permissions: ['admin'],
-        icon: 'ic:round-supervisor-account'
-      }
-    }
-  ],
-  meta: {
-    title: '权限示例',
-    i18nTitle: 'message.routes.auth-demo._value',
-    icon: 'ic:baseline-security',
-    order: 5
-  }
-};
+// const authDemo: AuthRoute.Route = {
+//   name: 'auth-demo',
+//   path: '/auth-demo',
+//   component: 'basic',
+//   children: [
+//     {
+//       name: 'auth-demo_permission',
+//       path: '/auth-demo/permission',
+//       component: 'self',
+//       meta: {
+//         title: '权限切换',
+//         i18nTitle: 'message.routes.auth-demo.permission',
+//         requiresAuth: true,
+//         icon: 'ic:round-construction'
+//       }
+//     },
+//     {
+//       name: 'auth-demo_super',
+//       path: '/auth-demo/super',
+//       component: 'self',
+//       meta: {
+//         title: '超级管理员可见',
+//         i18nTitle: 'message.routes.auth-demo.super',
+//         requiresAuth: true,
+//         permissions: ['admin'],
+//         icon: 'ic:round-supervisor-account'
+//       }
+//     }
+//   ],
+//   meta: {
+//     title: '权限示例',
+//     i18nTitle: 'message.routes.auth-demo._value',
+//     icon: 'ic:baseline-security',
+//     order: 5
+//   }
+// };
 
-export default authDemo;
+// export default authDemo;

+ 47 - 47
src/router/modules/component.ts

@@ -1,48 +1,48 @@
-const component: AuthRoute.Route = {
-  name: 'component',
-  path: '/component',
-  component: 'basic',
-  children: [
-    {
-      name: 'component_button',
-      path: '/component/button',
-      component: 'self',
-      meta: {
-        title: '按钮',
-        i18nTitle: 'message.routes.component.button',
-        requiresAuth: true,
-        icon: 'mdi:button-cursor'
-      }
-    },
-    {
-      name: 'component_card',
-      path: '/component/card',
-      component: 'self',
-      meta: {
-        title: '卡片',
-        i18nTitle: 'message.routes.component.card',
-        requiresAuth: true,
-        icon: 'mdi:card-outline'
-      }
-    },
-    {
-      name: 'component_table',
-      path: '/component/table',
-      component: 'self',
-      meta: {
-        title: '表格',
-        i18nTitle: 'message.routes.component.table',
-        requiresAuth: true,
-        icon: 'mdi:table-large'
-      }
-    }
-  ],
-  meta: {
-    title: '组件示例',
-    i18nTitle: 'message.routes.component._value',
-    icon: 'cib:app-store',
-    order: 3
-  }
-};
+// const component: AuthRoute.Route = {
+//   name: 'component',
+//   path: '/component',
+//   component: 'basic',
+//   children: [
+//     {
+//       name: 'component_button',
+//       path: '/component/button',
+//       component: 'self',
+//       meta: {
+//         title: '按钮',
+//         i18nTitle: 'message.routes.component.button',
+//         requiresAuth: true,
+//         icon: 'mdi:button-cursor'
+//       }
+//     },
+//     {
+//       name: 'component_card',
+//       path: '/component/card',
+//       component: 'self',
+//       meta: {
+//         title: '卡片',
+//         i18nTitle: 'message.routes.component.card',
+//         requiresAuth: true,
+//         icon: 'mdi:card-outline'
+//       }
+//     },
+//     {
+//       name: 'component_table',
+//       path: '/component/table',
+//       component: 'self',
+//       meta: {
+//         title: '表格',
+//         i18nTitle: 'message.routes.component.table',
+//         requiresAuth: true,
+//         icon: 'mdi:table-large'
+//       }
+//     }
+//   ],
+//   meta: {
+//     title: '组件示例',
+//     i18nTitle: 'message.routes.component._value',
+//     icon: 'cib:app-store',
+//     order: 3
+//   }
+// };
 
-export default component;
+// export default component;

+ 44 - 44
src/router/modules/crud.ts

@@ -1,45 +1,45 @@
-const component: any = {
-  name: 'crud',
-  path: '/crud',
-  component: 'basic',
-  meta: {
-    title: 'CRUD示例',
-    requiresAuth: true,
-    icon: 'mdi:table-large',
-    order: 4
-  },
-  children: [
-    {
-      name: 'crud_demo',
-      path: '/crud/demo',
-      component: 'self',
-      meta: {
-        title: '基本示例',
-        requiresAuth: true,
-        icon: 'mdi:button-cursor'
-      }
-    },
-    {
-      name: 'crud_header_group',
-      path: '/crud/header_group',
-      component: 'self',
-      meta: {
-        title: '多级表头',
-        requiresAuth: true,
-        icon: 'mdi:button-cursor'
-      }
-    },
-    {
-      name: 'crud_doc',
-      path: '/crud/doc',
-      component: 'self',
-      meta: {
-        title: 'FastCrud文档',
-        requiresAuth: true,
-        icon: 'logos:vue'
-      }
-    }
-  ]
-};
+// const component: any = {
+//   name: 'crud',
+//   path: '/crud',
+//   component: 'basic',
+//   meta: {
+//     title: 'CRUD示例',
+//     requiresAuth: true,
+//     icon: 'mdi:table-large',
+//     order: 4
+//   },
+//   children: [
+//     {
+//       name: 'crud_demo',
+//       path: '/crud/demo',
+//       component: 'self',
+//       meta: {
+//         title: '基本示例',
+//         requiresAuth: true,
+//         icon: 'mdi:button-cursor'
+//       }
+//     },
+//     {
+//       name: 'crud_header_group',
+//       path: '/crud/header_group',
+//       component: 'self',
+//       meta: {
+//         title: '多级表头',
+//         requiresAuth: true,
+//         icon: 'mdi:button-cursor'
+//       }
+//     },
+//     {
+//       name: 'crud_doc',
+//       path: '/crud/doc',
+//       component: 'self',
+//       meta: {
+//         title: 'FastCrud文档',
+//         requiresAuth: true,
+//         icon: 'logos:vue'
+//       }
+//     }
+//   ]
+// };
 
-export default component;
+// export default component;

+ 47 - 47
src/router/modules/exception.ts

@@ -1,48 +1,48 @@
-const exception: AuthRoute.Route = {
-  name: 'exception',
-  path: '/exception',
-  component: 'basic',
-  children: [
-    {
-      name: 'exception_403',
-      path: '/exception/403',
-      component: 'self',
-      meta: {
-        title: '异常页403',
-        i18nTitle: 'message.routes.exception.403',
-        requiresAuth: true,
-        icon: 'ic:baseline-block'
-      }
-    },
-    {
-      name: 'exception_404',
-      path: '/exception/404',
-      component: 'self',
-      meta: {
-        title: '异常页404',
-        i18nTitle: 'message.routes.exception.404',
-        requiresAuth: true,
-        icon: 'ic:baseline-web-asset-off'
-      }
-    },
-    {
-      name: 'exception_500',
-      path: '/exception/500',
-      component: 'self',
-      meta: {
-        title: '异常页500',
-        i18nTitle: 'message.routes.exception.500',
-        requiresAuth: true,
-        icon: 'ic:baseline-wifi-off'
-      }
-    }
-  ],
-  meta: {
-    i18nTitle: 'message.routes.exception._value',
-    title: '异常页',
-    icon: 'ant-design:exception-outlined',
-    order: 7
-  }
-};
+// const exception: AuthRoute.Route = {
+//   name: 'exception',
+//   path: '/exception',
+//   component: 'basic',
+//   children: [
+//     {
+//       name: 'exception_403',
+//       path: '/exception/403',
+//       component: 'self',
+//       meta: {
+//         title: '异常页403',
+//         i18nTitle: 'message.routes.exception.403',
+//         requiresAuth: true,
+//         icon: 'ic:baseline-block'
+//       }
+//     },
+//     {
+//       name: 'exception_404',
+//       path: '/exception/404',
+//       component: 'self',
+//       meta: {
+//         title: '异常页404',
+//         i18nTitle: 'message.routes.exception.404',
+//         requiresAuth: true,
+//         icon: 'ic:baseline-web-asset-off'
+//       }
+//     },
+//     {
+//       name: 'exception_500',
+//       path: '/exception/500',
+//       component: 'self',
+//       meta: {
+//         title: '异常页500',
+//         i18nTitle: 'message.routes.exception.500',
+//         requiresAuth: true,
+//         icon: 'ic:baseline-wifi-off'
+//       }
+//     }
+//   ],
+//   meta: {
+//     i18nTitle: 'message.routes.exception._value',
+//     title: '异常页',
+//     icon: 'ant-design:exception-outlined',
+//     order: 7
+//   }
+// };
 
-export default exception;
+// export default exception;

+ 50 - 50
src/router/modules/function.ts

@@ -1,51 +1,51 @@
-const functionRoute: AuthRoute.Route = {
-  name: 'function',
-  path: '/function',
-  component: 'basic',
-  children: [
-    {
-      name: 'function_tab',
-      path: '/function/tab',
-      component: 'self',
-      meta: {
-        title: 'Tab',
-        i18nTitle: 'message.routes.function.tab',
-        requiresAuth: true,
-        icon: 'ic:round-tab'
-      }
-    },
-    {
-      name: 'function_tab-detail',
-      path: '/function/tab-detail',
-      component: 'self',
-      meta: {
-        title: 'Tab Detail',
-        requiresAuth: true,
-        hide: true,
-        activeMenu: 'function_tab',
-        icon: 'ic:round-tab'
-      }
-    },
-    {
-      name: 'function_tab-multi-detail',
-      path: '/function/tab-multi-detail',
-      component: 'self',
-      meta: {
-        title: 'Tab Multi Detail',
-        requiresAuth: true,
-        hide: true,
-        multiTab: true,
-        activeMenu: 'function_tab',
-        icon: 'ic:round-tab'
-      }
-    }
-  ],
-  meta: {
-    title: '功能',
-    i18nTitle: 'message.routes.function._value',
-    icon: 'icon-park-outline:all-application',
-    order: 6
-  }
-};
+// const functionRoute: AuthRoute.Route = {
+//   name: 'function',
+//   path: '/function',
+//   component: 'basic',
+//   children: [
+//     {
+//       name: 'function_tab',
+//       path: '/function/tab',
+//       component: 'self',
+//       meta: {
+//         title: 'Tab',
+//         i18nTitle: 'message.routes.function.tab',
+//         requiresAuth: true,
+//         icon: 'ic:round-tab'
+//       }
+//     },
+//     {
+//       name: 'function_tab-detail',
+//       path: '/function/tab-detail',
+//       component: 'self',
+//       meta: {
+//         title: 'Tab Detail',
+//         requiresAuth: true,
+//         hide: true,
+//         activeMenu: 'function_tab',
+//         icon: 'ic:round-tab'
+//       }
+//     },
+//     {
+//       name: 'function_tab-multi-detail',
+//       path: '/function/tab-multi-detail',
+//       component: 'self',
+//       meta: {
+//         title: 'Tab Multi Detail',
+//         requiresAuth: true,
+//         hide: true,
+//         multiTab: true,
+//         activeMenu: 'function_tab',
+//         icon: 'ic:round-tab'
+//       }
+//     }
+//   ],
+//   meta: {
+//     title: '功能',
+//     i18nTitle: 'message.routes.function._value',
+//     icon: 'icon-park-outline:all-application',
+//     order: 6
+//   }
+// };
 
-export default functionRoute;
+// export default functionRoute;

+ 60 - 60
src/router/modules/multi-menu.ts

@@ -1,61 +1,61 @@
-const multiMenu: AuthRoute.Route = {
-  name: 'multi-menu',
-  path: '/multi-menu',
-  component: 'basic',
-  children: [
-    {
-      name: 'multi-menu_first',
-      path: '/multi-menu/first',
-      component: 'multi',
-      children: [
-        {
-          name: 'multi-menu_first_second',
-          path: '/multi-menu/first/second',
-          component: 'self',
-          meta: {
-            title: '二级菜单',
-            i18nTitle: 'message.routes.multi-menu.first.second',
-            requiresAuth: true,
-            icon: 'mdi:menu'
-          }
-        },
-        {
-          name: 'multi-menu_first_second-new',
-          path: '/multi-menu/first/second-new',
-          component: 'multi',
-          children: [
-            {
-              name: 'multi-menu_first_second-new_third',
-              path: '/multi-menu/first/second-new/third',
-              component: 'self',
-              meta: {
-                title: '三级菜单',
-                i18nTitle: 'message.routes.multi-menu.first.second-new.third',
-                requiresAuth: true,
-                icon: 'mdi:menu'
-              }
-            }
-          ],
-          meta: {
-            title: '二级菜单(有子菜单)',
-            i18nTitle: 'message.routes.multi-menu.first.second-new._value',
-            icon: 'mdi:menu'
-          }
-        }
-      ],
-      meta: {
-        title: '一级菜单',
-        i18nTitle: 'message.routes.multi-menu.first._value',
-        icon: 'mdi:menu'
-      }
-    }
-  ],
-  meta: {
-    title: '多级菜单',
-    i18nTitle: 'message.routes.multi-menu._value',
-    icon: 'carbon:menu',
-    order: 8
-  }
-};
+// const multiMenu: AuthRoute.Route = {
+//   name: 'multi-menu',
+//   path: '/multi-menu',
+//   component: 'basic',
+//   children: [
+//     {
+//       name: 'multi-menu_first',
+//       path: '/multi-menu/first',
+//       component: 'multi',
+//       children: [
+//         {
+//           name: 'multi-menu_first_second',
+//           path: '/multi-menu/first/second',
+//           component: 'self',
+//           meta: {
+//             title: '二级菜单',
+//             i18nTitle: 'message.routes.multi-menu.first.second',
+//             requiresAuth: true,
+//             icon: 'mdi:menu'
+//           }
+//         },
+//         {
+//           name: 'multi-menu_first_second-new',
+//           path: '/multi-menu/first/second-new',
+//           component: 'multi',
+//           children: [
+//             {
+//               name: 'multi-menu_first_second-new_third',
+//               path: '/multi-menu/first/second-new/third',
+//               component: 'self',
+//               meta: {
+//                 title: '三级菜单',
+//                 i18nTitle: 'message.routes.multi-menu.first.second-new.third',
+//                 requiresAuth: true,
+//                 icon: 'mdi:menu'
+//               }
+//             }
+//           ],
+//           meta: {
+//             title: '二级菜单(有子菜单)',
+//             i18nTitle: 'message.routes.multi-menu.first.second-new._value',
+//             icon: 'mdi:menu'
+//           }
+//         }
+//       ],
+//       meta: {
+//         title: '一级菜单',
+//         i18nTitle: 'message.routes.multi-menu.first._value',
+//         icon: 'mdi:menu'
+//       }
+//     }
+//   ],
+//   meta: {
+//     title: '多级菜单',
+//     i18nTitle: 'message.routes.multi-menu._value',
+//     icon: 'carbon:menu',
+//     order: 8
+//   }
+// };
 
-export default multiMenu;
+// export default multiMenu;

+ 148 - 148
src/router/modules/plugin.ts

@@ -1,149 +1,149 @@
-const plugin: AuthRoute.Route = {
-  name: 'plugin',
-  path: '/plugin',
-  component: 'basic',
-  children: [
-    {
-      name: 'plugin_charts',
-      path: '/plugin/charts',
-      component: 'multi',
-      children: [
-        {
-          name: 'plugin_charts_echarts',
-          path: '/plugin/charts/echarts',
-          component: 'self',
-          meta: {
-            title: 'ECharts',
-            i18nTitle: 'message.routes.plugin.charts.echarts',
-            requiresAuth: true,
-            icon: 'simple-icons:apacheecharts'
-          }
-        },
-        {
-          name: 'plugin_charts_antv',
-          path: '/plugin/charts/antv',
-          component: 'self',
-          meta: {
-            title: 'AntV',
-            i18nTitle: 'message.routes.plugin.charts.antv',
-            requiresAuth: true,
-            icon: 'simple-icons:antdesign'
-          }
-        }
-      ],
-      meta: {
-        title: '图表',
-        i18nTitle: 'message.routes.plugin.charts._value',
-        icon: 'mdi:chart-areaspline'
-      }
-    },
-    {
-      name: 'plugin_map',
-      path: '/plugin/map',
-      component: 'self',
-      meta: {
-        title: '地图',
-        i18nTitle: 'message.routes.plugin.map',
-        requiresAuth: true,
-        icon: 'mdi:map'
-      }
-    },
-    {
-      name: 'plugin_video',
-      path: '/plugin/video',
-      component: 'self',
-      meta: {
-        title: '视频',
-        i18nTitle: 'message.routes.plugin.video',
-        requiresAuth: true,
-        icon: 'mdi:video'
-      }
-    },
-    {
-      name: 'plugin_editor',
-      path: '/plugin/editor',
-      component: 'multi',
-      children: [
-        {
-          name: 'plugin_editor_quill',
-          path: '/plugin/editor/quill',
-          component: 'self',
-          meta: {
-            title: '富文本编辑器',
-            i18nTitle: 'message.routes.plugin.editor.quill',
-            requiresAuth: true,
-            icon: 'mdi:file-document-edit-outline'
-          }
-        },
-        {
-          name: 'plugin_editor_markdown',
-          path: '/plugin/editor/markdown',
-          component: 'self',
-          meta: {
-            title: 'markdown编辑器',
-            i18nTitle: 'message.routes.plugin.editor.markdown',
-            requiresAuth: true,
-            icon: 'ri:markdown-line'
-          }
-        }
-      ],
-      meta: {
-        title: '编辑器',
-        i18nTitle: 'message.routes.plugin.editor._value',
-        icon: 'icon-park-outline:editor'
-      }
-    },
-    {
-      name: 'plugin_swiper',
-      path: '/plugin/swiper',
-      component: 'self',
-      meta: {
-        title: 'Swiper插件',
-        i18nTitle: 'message.routes.plugin.swiper',
-        requiresAuth: true,
-        icon: 'simple-icons:swiper'
-      }
-    },
-    {
-      name: 'plugin_copy',
-      path: '/plugin/copy',
-      component: 'self',
-      meta: {
-        title: '剪贴板',
-        i18nTitle: 'message.routes.plugin.copy',
-        requiresAuth: true,
-        icon: 'mdi:clipboard-outline'
-      }
-    },
-    {
-      name: 'plugin_icon',
-      path: '/plugin/icon',
-      component: 'self',
-      meta: {
-        title: '图标',
-        i18nTitle: 'message.routes.plugin.icon',
-        requiresAuth: true,
-        localIcon: 'custom-icon'
-      }
-    },
-    {
-      name: 'plugin_print',
-      path: '/plugin/print',
-      component: 'self',
-      meta: {
-        title: '打印',
-        i18nTitle: 'message.routes.plugin.print',
-        requiresAuth: true,
-        icon: 'mdi:printer'
-      }
-    }
-  ],
-  meta: {
-    title: '插件示例',
-    i18nTitle: 'message.routes.plugin._value',
-    icon: 'clarity:plugin-line',
-    order: 4
-  }
-};
+// const plugin: AuthRoute.Route = {
+//   name: 'plugin',
+//   path: '/plugin',
+//   component: 'basic',
+//   children: [
+//     {
+//       name: 'plugin_charts',
+//       path: '/plugin/charts',
+//       component: 'multi',
+//       children: [
+//         {
+//           name: 'plugin_charts_echarts',
+//           path: '/plugin/charts/echarts',
+//           component: 'self',
+//           meta: {
+//             title: 'ECharts',
+//             i18nTitle: 'message.routes.plugin.charts.echarts',
+//             requiresAuth: true,
+//             icon: 'simple-icons:apacheecharts'
+//           }
+//         },
+//         {
+//           name: 'plugin_charts_antv',
+//           path: '/plugin/charts/antv',
+//           component: 'self',
+//           meta: {
+//             title: 'AntV',
+//             i18nTitle: 'message.routes.plugin.charts.antv',
+//             requiresAuth: true,
+//             icon: 'simple-icons:antdesign'
+//           }
+//         }
+//       ],
+//       meta: {
+//         title: '图表',
+//         i18nTitle: 'message.routes.plugin.charts._value',
+//         icon: 'mdi:chart-areaspline'
+//       }
+//     },
+//     {
+//       name: 'plugin_map',
+//       path: '/plugin/map',
+//       component: 'self',
+//       meta: {
+//         title: '地图',
+//         i18nTitle: 'message.routes.plugin.map',
+//         requiresAuth: true,
+//         icon: 'mdi:map'
+//       }
+//     },
+//     {
+//       name: 'plugin_video',
+//       path: '/plugin/video',
+//       component: 'self',
+//       meta: {
+//         title: '视频',
+//         i18nTitle: 'message.routes.plugin.video',
+//         requiresAuth: true,
+//         icon: 'mdi:video'
+//       }
+//     },
+//     {
+//       name: 'plugin_editor',
+//       path: '/plugin/editor',
+//       component: 'multi',
+//       children: [
+//         {
+//           name: 'plugin_editor_quill',
+//           path: '/plugin/editor/quill',
+//           component: 'self',
+//           meta: {
+//             title: '富文本编辑器',
+//             i18nTitle: 'message.routes.plugin.editor.quill',
+//             requiresAuth: true,
+//             icon: 'mdi:file-document-edit-outline'
+//           }
+//         },
+//         {
+//           name: 'plugin_editor_markdown',
+//           path: '/plugin/editor/markdown',
+//           component: 'self',
+//           meta: {
+//             title: 'markdown编辑器',
+//             i18nTitle: 'message.routes.plugin.editor.markdown',
+//             requiresAuth: true,
+//             icon: 'ri:markdown-line'
+//           }
+//         }
+//       ],
+//       meta: {
+//         title: '编辑器',
+//         i18nTitle: 'message.routes.plugin.editor._value',
+//         icon: 'icon-park-outline:editor'
+//       }
+//     },
+//     {
+//       name: 'plugin_swiper',
+//       path: '/plugin/swiper',
+//       component: 'self',
+//       meta: {
+//         title: 'Swiper插件',
+//         i18nTitle: 'message.routes.plugin.swiper',
+//         requiresAuth: true,
+//         icon: 'simple-icons:swiper'
+//       }
+//     },
+//     {
+//       name: 'plugin_copy',
+//       path: '/plugin/copy',
+//       component: 'self',
+//       meta: {
+//         title: '剪贴板',
+//         i18nTitle: 'message.routes.plugin.copy',
+//         requiresAuth: true,
+//         icon: 'mdi:clipboard-outline'
+//       }
+//     },
+//     {
+//       name: 'plugin_icon',
+//       path: '/plugin/icon',
+//       component: 'self',
+//       meta: {
+//         title: '图标',
+//         i18nTitle: 'message.routes.plugin.icon',
+//         requiresAuth: true,
+//         localIcon: 'custom-icon'
+//       }
+//     },
+//     {
+//       name: 'plugin_print',
+//       path: '/plugin/print',
+//       component: 'self',
+//       meta: {
+//         title: '打印',
+//         i18nTitle: 'message.routes.plugin.print',
+//         requiresAuth: true,
+//         icon: 'mdi:printer'
+//       }
+//     }
+//   ],
+//   meta: {
+//     title: '插件示例',
+//     i18nTitle: 'message.routes.plugin._value',
+//     icon: 'clarity:plugin-line',
+//     order: 4
+//   }
+// };
 
-export default plugin;
+// export default plugin;