Skip to content

Commit 2fd9059

Browse files
committed
wip: Provide ready-made configuration snippets to help set up the app's configuration file #1140
1 parent 74892e4 commit 2fd9059

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

extras/configs/helpers.js

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
module.exports = {
22
verticalSeparator: (options) => {
33
// color: color to be used. Default to `grey-4`
4-
const color = options?.color || 'grey-4'
5-
return {
4+
return Object.assign({
65
component: 'QSeparator',
76
vertical: true,
8-
color
9-
}
7+
color: 'grey-4',
8+
style: 'margin-left: 2px; margin-right: 2px;'
9+
}, options)
1010
},
1111
horizontalSeparator: (options) => {
1212
// color: color to be used. Default to `grey-4`
13-
const color = options?.color || 'grey-4'
14-
return {
13+
return Object.assign({
1514
component: 'QSeparator',
1615
class: 'full-width',
1716
style: 'min-height: 1px;',
18-
color
19-
}
17+
color: 'grey-4'
18+
}, options)
2019
},
2120
leftPane: (options) => {
2221
// component: component to be used to render the leftPane. Default to 'LeftPane`

0 commit comments

Comments
 (0)