forked from mbrn/material-table.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
libzy.config.js
279 lines (277 loc) · 8.56 KB
/
libzy.config.js
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
const MainPage = require('libzy-lib').MainPage;
const GetStarted = require('./src/pages/docs/get-started.md').default;
const Install = require('./src/pages/docs/install.md').default;
const AllProps = require('./src/pages/docs/all-props/index.mdx').default;
const Support = require('./src/pages/docs/support.md').default;
const actions = require('./src/pages/docs/features/actions/index.mdx').default;
const componentOverriding = require('./src/pages/docs/features/component-overriding/index.mdx').default;
const customColumnRendering = require('./src/pages/docs/features/custom-column-rendering/index.mdx').default;
const detailPanel = require('./src/pages/docs/features/detail-panel/index.mdx').default;
const editable = require('./src/pages/docs/features/editable/index.mdx').default;
const exportPage = require('./src/pages/docs/features/export/index.mdx').default;
const filtering = require('./src/pages/docs/features/filtering/index.mdx').default;
const grouping = require('./src/pages/docs/features/grouping/index.mdx').default;
const localization = require('./src/pages/docs/features/localization/index.mdx').default;
const remoteData = require('./src/pages/docs/features/remote-data/index.mdx').default;
const search = require('./src/pages/docs/features/search/index.mdx').default;
const selection = require('./src/pages/docs/features/selection/index.mdx').default;
const sorting = require('./src/pages/docs/features/sorting/index.mdx').default;
const styling = require('./src/pages/docs/features/styling/index.mdx').default;
const treeData = require('./src/pages/docs/features/tree-data/index.mdx').default;
module.exports = {
title: 'material-table',
subTitle: 'React data table component that based on material-ui',
logoImage: '/assets/logo.svg',
github: 'https://github.com/mbrn/material-table',
githubShort: 'mbrn/material-table',
menuTree: [
{
path: '',
component: MainPage,
data: {
features: [
{
title: 'Actions',
text: 'You can add one or multiple row based actions easily',
button: {
path: '/docs/features/actions',
text: 'Details and Examples'
}
},
{
title: 'Component Overriding',
text: 'You can override any component of material-table',
button: {
path: '/docs/features/component-overriding',
text: 'Details and Examples'
}
},
{
title: 'Custom Column Rendering',
text: 'You can set a custom render to a column according to row data',
button: {
path: '/docs/features/custom-column-rendering',
text: 'Details and Examples'
}
},
{
title: 'Detail Panel',
text: 'A detail panel could be set for every row easily',
button: {
path: '/docs/features/detail-panel',
text: 'Details and Examples'
}
},
{
title: 'Editable',
text: 'material-table lets you to make data editable',
button: {
path: '/docs/features/editable',
text: 'Details and Examples'
}
},
{
title: 'Export',
text: 'Exporting data as CSV is available with material-table',
button: {
path: '/docs/features/export',
text: 'Details and Examples'
}
},
{
title: 'Filtering',
text: 'material-table has inline filter component that lets user create custom filters on data',
button: {
path: '/docs/features/filtering',
text: 'Details and Examples'
}
},
{
title: 'Grouping',
text: 'material-table has grouping feature that lets users create runtime groups on data by drag on drop',
button: {
path: '/docs/features/grouping',
text: 'Details and Examples'
}
},
{
title: 'Localization',
text: 'You can change text of material-table easily',
button: {
path: '/docs/features/localization',
text: 'Details and Examples'
}
},
{
title: 'Remote Data',
text: 'material-table lets you to manage your data remotely',
button: {
path: '/docs/features/remote-data',
text: 'Details and Examples'
}
},
{
title: 'Search',
text: 'material-table lets users to search any text on data',
button: {
path: '/docs/features/search',
text: 'Details and Examples'
}
},
{
title: 'Selection',
text: 'Selection feature lets users to select rows',
button: {
path: '/docs/features/selection',
text: 'Details and Examples'
}
},
{
title: 'Sorting',
text: 'material-table has sorting feature on columns',
button: {
path: '/docs/features/sorting',
text: 'Details and Examples'
}
},
{
title: 'Styling',
text: 'You can add styles easily to components of material-table',
button: {
path: '/docs/features/styling',
text: 'Details and Examples'
}
},
{
title: 'Tree Data',
text: 'You can manage your nested data in material-table easily',
button: {
path: '/docs/features/tree-data',
text: 'Details and Examples'
}
},
]
}
},
{
path: 'docs',
tree: [
{
text: 'Get Started',
path: 'get-started',
component: GetStarted
},
{
text: 'Install',
path: 'install',
component: Install
},
{
text: 'All Props',
path: 'all-props',
component: AllProps
},
{
text: 'Features',
path: 'features',
tree: [
{
text: 'Actions',
path: 'actions',
component: actions
},
{
text: 'Component Overriding',
path: 'component-overriding',
component: componentOverriding
},
{
text: 'Custom Column Rendering',
path: 'custom-column-rendering',
component: customColumnRendering
},
{
text: 'Detail Panel',
path: 'detail-panel',
component: detailPanel
},
{
text: 'Editable',
path: 'editable',
component: editable
},
{
text: 'Export',
path: 'export',
component: exportPage
},
{
text: 'Filtering',
path: 'filtering',
component: filtering
},
{
text: 'Grouping',
path: 'grouping',
component: grouping
},
{
text: 'Localization',
path: 'localization',
component: localization
},
{
text: 'Remote Data',
path: 'remote-data',
component: remoteData
},
{
text: 'Search',
path: 'search',
component: search
},
{
text: 'Selection',
path: 'selection',
component: selection
},
{
text: 'Sorting',
path: 'sorting',
component: sorting
},
{
text: 'Styling',
path: 'styling',
component: styling
},
{
text: 'Tree Data',
path: 'tree-data',
component: treeData
},
]
},
{
text: 'Support',
path: 'support',
component: Support
}
]
}
],
theme: {
palette: {
primary: {
main: '#3f51b5'
},
secondary: {
main: '#f50057',
},
}
},
options: {
routerType: 'hash', // hash | browser
search: false
}
}