mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
refactor(projects): 精简版+动态路由权限初步
This commit is contained in:
@ -1,2 +0,0 @@
|
||||
export * from './theme';
|
||||
export * from './website';
|
@ -1,115 +0,0 @@
|
||||
{
|
||||
"darkMode": false,
|
||||
"themeColor": "#409EFF",
|
||||
"themeColorList": [
|
||||
"#409EFF",
|
||||
"#2d8cf0",
|
||||
"#0960bd",
|
||||
"#009688",
|
||||
"#536dfe",
|
||||
"#ff5c93",
|
||||
"#ee4f12",
|
||||
"#0096c7",
|
||||
"#9c27b0",
|
||||
"#ff9800",
|
||||
"#FF3D68",
|
||||
"#00C1D4",
|
||||
"#71EFA3",
|
||||
"#171010",
|
||||
"#78DEC7",
|
||||
"#1768AC",
|
||||
"#FB9300",
|
||||
"#FC5404"
|
||||
],
|
||||
"otherColor": {
|
||||
"info": "#2080f0",
|
||||
"success": "#67C23A",
|
||||
"warning": "#E6A23C",
|
||||
"error": "#F56C6C"
|
||||
},
|
||||
"navStyle": {
|
||||
"mode": "vertical",
|
||||
"theme": "light"
|
||||
},
|
||||
"menuStyle": {
|
||||
"width": 200,
|
||||
"collapsedWidth": 64,
|
||||
"mixWidth": 80,
|
||||
"mixCollapsedWidth": 48,
|
||||
"horizontalPosition": "flex-start",
|
||||
"horizontalPositionList": [
|
||||
{
|
||||
"value": "flex-start",
|
||||
"label": "居左"
|
||||
},
|
||||
{
|
||||
"value": "center",
|
||||
"label": "居中"
|
||||
},
|
||||
{
|
||||
"value": "flex-end",
|
||||
"label": "居右"
|
||||
}
|
||||
]
|
||||
},
|
||||
"headerStyle": {
|
||||
"height": 56,
|
||||
"bgColor": "#fff"
|
||||
},
|
||||
"multiTabStyle": {
|
||||
"height": 44,
|
||||
"visible": true,
|
||||
"bgColor": "#fff",
|
||||
"mode": "chrome",
|
||||
"isCache": true,
|
||||
"modeList": [
|
||||
{
|
||||
"value": "button",
|
||||
"label": "按钮风格"
|
||||
},
|
||||
{
|
||||
"value": "chrome",
|
||||
"label": "谷歌风格"
|
||||
}
|
||||
]
|
||||
},
|
||||
"crumbsStyle": {
|
||||
"visible": true,
|
||||
"showIcon": true
|
||||
},
|
||||
"footerStyle": {
|
||||
"height": 48
|
||||
},
|
||||
"pageStyle": {
|
||||
"animate": true,
|
||||
"animateType": "fade-slide",
|
||||
"animateTypeList": [
|
||||
{
|
||||
"value": "zoom-fade",
|
||||
"label": "渐变"
|
||||
},
|
||||
{
|
||||
"value": "zoom-out",
|
||||
"label": "闪现"
|
||||
},
|
||||
{
|
||||
"value": "fade-slide",
|
||||
"label": "滑动"
|
||||
},
|
||||
{
|
||||
"value": "fade",
|
||||
"label": "消退"
|
||||
},
|
||||
{
|
||||
"value": "fade-bottom",
|
||||
"label": "底部消退"
|
||||
},
|
||||
{
|
||||
"value": "fade-scale",
|
||||
"label": "缩放消退"
|
||||
}
|
||||
]
|
||||
},
|
||||
"fixedHeaderAndTab": true,
|
||||
"showReload": true
|
||||
}
|
@ -1,92 +0,0 @@
|
||||
import type { ThemeSettings } from '@/interface';
|
||||
import { EnumAnimate, EnumMultiTabMode, EnumHorizontalMenuPosition } from '@/enum';
|
||||
import customThemeSettings from './theme.json';
|
||||
|
||||
const themeColorList = [
|
||||
'#409EFF',
|
||||
'#2d8cf0',
|
||||
'#0960bd',
|
||||
'#009688',
|
||||
'#536dfe',
|
||||
'#ff5c93',
|
||||
'#ee4f12',
|
||||
'#0096c7',
|
||||
'#9c27b0',
|
||||
'#ff9800',
|
||||
'#FF3D68',
|
||||
'#00C1D4',
|
||||
'#71EFA3',
|
||||
'#171010',
|
||||
'#78DEC7',
|
||||
'#1768AC',
|
||||
'#FB9300',
|
||||
'#FC5404'
|
||||
];
|
||||
|
||||
const defaultThemeSettings: ThemeSettings = {
|
||||
darkMode: false,
|
||||
themeColor: themeColorList[0],
|
||||
themeColorList,
|
||||
otherColor: {
|
||||
info: '#2080f0',
|
||||
success: '#67C23A',
|
||||
warning: '#E6A23C',
|
||||
error: '#F56C6C'
|
||||
},
|
||||
navStyle: {
|
||||
mode: 'vertical',
|
||||
theme: 'light'
|
||||
},
|
||||
menuStyle: {
|
||||
width: 200,
|
||||
collapsedWidth: 64,
|
||||
mixWidth: 80,
|
||||
mixCollapsedWidth: 48,
|
||||
horizontalPosition: 'flex-start',
|
||||
horizontalPositionList: [
|
||||
{ value: 'flex-start', label: EnumHorizontalMenuPosition['flex-start'] },
|
||||
{ value: 'center', label: EnumHorizontalMenuPosition.center },
|
||||
{ value: 'flex-end', label: EnumHorizontalMenuPosition['flex-end'] }
|
||||
]
|
||||
},
|
||||
headerStyle: {
|
||||
height: 56,
|
||||
bgColor: '#fff'
|
||||
},
|
||||
multiTabStyle: {
|
||||
height: 44,
|
||||
visible: true,
|
||||
bgColor: '#fff',
|
||||
mode: 'chrome',
|
||||
isCache: true,
|
||||
modeList: [
|
||||
{ value: 'button', label: EnumMultiTabMode.button },
|
||||
{ value: 'chrome', label: EnumMultiTabMode.chrome }
|
||||
]
|
||||
},
|
||||
crumbsStyle: {
|
||||
visible: true,
|
||||
showIcon: true
|
||||
},
|
||||
footerStyle: {
|
||||
height: 48
|
||||
},
|
||||
pageStyle: {
|
||||
animate: true,
|
||||
animateType: 'fade-slide',
|
||||
animateTypeList: [
|
||||
{ value: 'zoom-fade', label: EnumAnimate['zoom-fade'] },
|
||||
{ value: 'zoom-out', label: EnumAnimate['zoom-out'] },
|
||||
{ value: 'fade-slide', label: EnumAnimate['fade-slide'] },
|
||||
{ value: 'fade', label: EnumAnimate.fade },
|
||||
{ value: 'fade-bottom', label: EnumAnimate['fade-bottom'] },
|
||||
{ value: 'fade-scale', label: EnumAnimate['fade-scale'] }
|
||||
]
|
||||
},
|
||||
fixedHeaderAndTab: true,
|
||||
showReload: true
|
||||
};
|
||||
|
||||
export const themeSettings = (customThemeSettings as ThemeSettings) || defaultThemeSettings;
|
||||
|
||||
export { defaultThemeSettings };
|
@ -1,31 +0,0 @@
|
||||
[
|
||||
{
|
||||
"title": "编程",
|
||||
"children": [
|
||||
{
|
||||
"title": "网站论坛",
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"title": "前端",
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"title": "设计",
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"title": "工具",
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"title": "文档",
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "个人",
|
||||
"children": []
|
||||
}
|
||||
]
|
@ -1,5 +0,0 @@
|
||||
import type { WebsiteCategory } from '@/interface';
|
||||
|
||||
import websiteJson from './website.json';
|
||||
|
||||
export const website: WebsiteCategory[] = websiteJson;
|
Reference in New Issue
Block a user