forked from jzfai/vue3-admin-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.ts
113 lines (109 loc) · 2.53 KB
/
settings.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
interface SettingTy {
title: string
sidebarLogo: boolean
showLeftMenu: boolean
ShowDropDown: boolean
showHamburger: boolean
isNeedLogin: boolean
isNeedNprogress: boolean
showTagsView: boolean
tagsViewNum: number
openProdMock: boolean
errorLog: string | Array<string>
permissionMode: string
delWindowHeight: string
tmpToken: string
showNavbarTitle: boolean
showTopNavbar: boolean
mainNeedAnimation: boolean
viteBasePath: string
}
const setting: SettingTy = {
title: 'Vue3 Admin Ts',
/**
* @type {boolean} true | false
* @description Whether show the logo in sidebar
*/
sidebarLogo: true,
/**
* @type {boolean} true | false
* @description Whether show the title in Navbar
*/
showNavbarTitle: false,
/**
* @type {boolean} true | false
* @description Whether show the drop-down
*/
ShowDropDown: true,
/**
* @type {boolean} true | false
* @description Whether show Hamburger
*/
showHamburger: true,
/**
* @type {boolean} true | false
* @description Whether show the settings right-panel
*/
showLeftMenu: true,
/**
* @type {boolean} true | false
* @description Whether show TagsView
*/
showTagsView: true,
/**
* @description TagsView show number
*/
tagsViewNum: 6,
/**
* @type {boolean} true | false
* @description Whether show the top Navbar
*/
showTopNavbar: true,
/* page animation related*/
/**
* @type {boolean} true | false
* @description Whether need animation of main area
*/
mainNeedAnimation: true,
/**
* @type {boolean} true | false
* @description Whether need nprogress
*/
isNeedNprogress: true,
/*page login or other*/
/**
* @type {boolean} true | false
* @description Whether need login
*/
isNeedLogin: true,
/**
* @type {string} 'roles' | 'code'
*/
permissionMode: 'roles',
/**
* @type {boolean} true | false
* @description Whether open prod mock
*/
openProdMock: true,
/**
* @type {string | array} 'dev' | ['prod','test','dev'] according to the .env file props of VITE_APP_ENV
* @description Need show err logs component.
* The default is only used in the production env
* If you want to also use it in dev, you can pass ['dev', 'test']
*/
errorLog: ['prod'],
/*
* table height(100vh-delWindowHeight)
* */
delWindowHeight: '210px',
/*
* setting dev token when isNeedLogin is setting false
* */
tmpToken: 'tmp_token',
/*
* vite.config.js base config
* such as
* */
viteBasePath: '/vue3-admin-ts/'
}
export default setting