ruoyi-plus-soybean/src/router/modules/plugin.ts

150 lines
3.6 KiB
TypeScript
Raw Normal View History

2022-03-30 01:19:37 +08:00
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'
}
},
2022-03-30 01:19:37 +08:00
{
name: 'plugin_map',
path: '/plugin/map',
component: 'self',
meta: {
title: '地图',
i18nTitle: 'message.routes.plugin.map',
2022-03-30 01:19:37 +08:00
requiresAuth: true,
icon: 'mdi:map'
}
2022-03-30 01:19:37 +08:00
},
{
name: 'plugin_video',
path: '/plugin/video',
component: 'self',
meta: {
title: '视频',
i18nTitle: 'message.routes.plugin.video',
2022-03-30 01:19:37 +08:00
requiresAuth: true,
icon: 'mdi:video'
}
2022-03-30 01:19:37 +08:00
},
{
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',
2022-03-30 01:19:37 +08:00
requiresAuth: true,
icon: 'mdi:file-document-edit-outline'
}
2022-03-30 01:19:37 +08:00
},
{
name: 'plugin_editor_markdown',
path: '/plugin/editor/markdown',
component: 'self',
meta: {
title: 'markdown编辑器',
i18nTitle: 'message.routes.plugin.editor.markdown',
2022-03-30 01:19:37 +08:00
requiresAuth: true,
icon: 'ri:markdown-line'
}
}
2022-03-30 01:19:37 +08:00
],
meta: {
title: '编辑器',
i18nTitle: 'message.routes.plugin.editor._value',
icon: 'icon-park-outline:editor'
}
2022-03-30 01:19:37 +08:00
},
{
name: 'plugin_swiper',
path: '/plugin/swiper',
component: 'self',
meta: {
title: 'Swiper插件',
i18nTitle: 'message.routes.plugin.swiper',
2022-03-30 01:19:37 +08:00
requiresAuth: true,
icon: 'simple-icons:swiper'
}
2022-03-30 01:19:37 +08:00
},
{
name: 'plugin_copy',
path: '/plugin/copy',
component: 'self',
meta: {
title: '剪贴板',
i18nTitle: 'message.routes.plugin.copy',
2022-03-30 01:19:37 +08:00
requiresAuth: true,
icon: 'mdi:clipboard-outline'
}
2022-03-30 01:19:37 +08:00
},
{
name: 'plugin_icon',
path: '/plugin/icon',
component: 'self',
meta: {
title: '图标',
i18nTitle: 'message.routes.plugin.icon',
2022-03-30 01:19:37 +08:00
requiresAuth: true,
localIcon: 'custom-icon'
}
2022-03-30 01:19:37 +08:00
},
{
name: 'plugin_print',
path: '/plugin/print',
component: 'self',
meta: {
title: '打印',
i18nTitle: 'message.routes.plugin.print',
2022-03-30 01:19:37 +08:00
requiresAuth: true,
icon: 'mdi:printer'
}
}
2022-03-30 01:19:37 +08:00
],
meta: {
title: '插件示例',
i18nTitle: 'message.routes.plugin._value',
2022-03-30 01:19:37 +08:00
icon: 'clarity:plugin-line',
order: 4
}
2022-03-30 01:19:37 +08:00
};
export default plugin;