mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
refactor(projects): 路由声明重构,添加composables,BaseLayout进行中,文件夹规范
This commit is contained in:
5
src/enum/common/index.ts
Normal file
5
src/enum/common/index.ts
Normal file
@ -0,0 +1,5 @@
|
||||
export * from './system';
|
||||
export * from './theme';
|
||||
export * from './animate';
|
||||
export * from './typeof';
|
||||
export * from './storage';
|
@ -5,21 +5,6 @@ export enum ContentType {
|
||||
formData = 'multipart/form-data'
|
||||
}
|
||||
|
||||
/** 数据类型 */
|
||||
export enum EnumDataType {
|
||||
number = '[object Number]',
|
||||
string = '[object String]',
|
||||
boolean = '[object Boolean]',
|
||||
null = '[object Null]',
|
||||
undefined = '[object Undefined]',
|
||||
object = '[object Object]',
|
||||
array = '[object Array]',
|
||||
date = '[object Date]',
|
||||
regexp = '[object RegExp]',
|
||||
set = '[object Set]',
|
||||
map = '[object Map]'
|
||||
}
|
||||
|
||||
/** 登录模块 */
|
||||
export enum EnumLoginModule {
|
||||
'pwd-login' = '账密登录',
|
14
src/enum/common/typeof.ts
Normal file
14
src/enum/common/typeof.ts
Normal file
@ -0,0 +1,14 @@
|
||||
/** 数据类型 */
|
||||
export enum EnumDataType {
|
||||
number = '[object Number]',
|
||||
string = '[object String]',
|
||||
boolean = '[object Boolean]',
|
||||
null = '[object Null]',
|
||||
undefined = '[object Undefined]',
|
||||
object = '[object Object]',
|
||||
array = '[object Array]',
|
||||
date = '[object Date]',
|
||||
regexp = '[object RegExp]',
|
||||
set = '[object Set]',
|
||||
map = '[object Map]'
|
||||
}
|
@ -1,5 +1 @@
|
||||
export * from './common';
|
||||
export * from './animate';
|
||||
export * from './theme';
|
||||
export * from './route';
|
||||
export * from './storage';
|
||||
|
@ -1,71 +0,0 @@
|
||||
export enum EnumRoutePath {
|
||||
'root' = '/',
|
||||
'login' = '/login',
|
||||
'not-found' = '/404',
|
||||
'no-permission' = '/403',
|
||||
'service-error' = '/500',
|
||||
'reload' = '/reload',
|
||||
// 自定义路由
|
||||
'dashboard' = '/dashboard',
|
||||
'dashboard_analysis' = '/dashboard/analysis',
|
||||
'dashboard_workbench' = '/dashboard/workbench',
|
||||
'document' = '/document',
|
||||
'document_vue' = '/document/vue',
|
||||
'document_vite' = '/document/vite',
|
||||
'document_naive' = '/document/naive',
|
||||
'component' = '/component',
|
||||
'component_map' = '/component/map',
|
||||
'component_video' = '/component/video',
|
||||
'component_editor' = '/component/editor',
|
||||
'component_editor_quill' = '/component/editor/quill',
|
||||
'component_editor_markdown' = '/component/editor/markdown',
|
||||
'component_swiper' = '/component/swiper',
|
||||
'feat' = '/feat',
|
||||
'feat_copy' = '/feat/copy',
|
||||
'feat_icon' = '/feat/icon',
|
||||
'feat_print' = '/feat/print',
|
||||
'multi-menu' = '/multi-menu',
|
||||
'multi-menu_first' = '/multi-menu/first',
|
||||
'multi-menu_first_second' = '/multi-menu/first/second',
|
||||
'exception' = '/exception',
|
||||
'exception_403' = '/exception/403',
|
||||
'exception_404' = '/exception/404',
|
||||
'exception_500' = '/exception/500',
|
||||
'about' = '/about'
|
||||
}
|
||||
|
||||
export enum EnumRouteTitle {
|
||||
'root' = 'root',
|
||||
'login' = '登录',
|
||||
'not-found' = '未找到',
|
||||
'no-permission' = '无权限',
|
||||
'service-error' = '服务器错误',
|
||||
'reload' = '重载',
|
||||
// 自定义路由
|
||||
'dashboard' = '仪表盘',
|
||||
'dashboard_analysis' = '分析页',
|
||||
'dashboard_workbench' = '工作台',
|
||||
'document' = '文档',
|
||||
'document_vue' = 'vue文档',
|
||||
'document_vite' = 'vite文档',
|
||||
'document_naive' = 'naive文档',
|
||||
'component' = '组件插件',
|
||||
'component_map' = '地图插件',
|
||||
'component_video' = '视频插件',
|
||||
'component_editor' = '编辑器',
|
||||
'component_editor_quill' = '富文本编辑器',
|
||||
'component_editor_markdown' = 'markdown编辑器',
|
||||
'component_swiper' = 'Swiper插件',
|
||||
'feat' = '功能示例',
|
||||
'feat_copy' = '剪贴板',
|
||||
'feat_icon' = '图标',
|
||||
'feat_print' = '打印',
|
||||
'multi-menu' = '多级菜单',
|
||||
'multi-menu_first' = '一级菜单',
|
||||
'multi-menu_first_second' = '二级菜单',
|
||||
'exception' = '异常页',
|
||||
'exception_403' = '异常页-403',
|
||||
'exception_404' = '异常页-404',
|
||||
'exception_500' = '异常页-500',
|
||||
'about' = '关于'
|
||||
}
|
Reference in New Issue
Block a user