Skip to content

Commit 5aef0f6

Browse files
committed
fixed pug files
1 parent fa68fee commit 5aef0f6

File tree

9 files changed

+43
-18
lines changed

9 files changed

+43
-18
lines changed

src/components/code/code.pug

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11

2-
mixin code(label = '')
2+
mixin code(options = {})
33
-
4+
const {
5+
label = ''
6+
} = options;
47
const BASE_CLASS = 'code';
58
const CODE_TOP = '$(\'.demo\').RangeSliderFox({';
69
const CODE_BOTTOM = '})';

src/components/grid/grid.pug

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
include ../toggle/toggle.pug
22
include ../text-field/text-field.pug
33

4-
mixin grid(label = '')
4+
mixin grid(options = {})
55
-
6+
const {
7+
label = ''
8+
} = options;
69
const BASE_CLASS = 'grid'
710
const data = require('./grid.json');
811
const textField = data.textField

src/components/hints/hints.pug

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
include ../toggle/toggle.pug
22
include ../text-field/text-field.pug
33

4-
mixin hints(label = '')
4+
mixin hints(options = {})
55
-
6+
const {
7+
label = ''
8+
} = options;
69
const BASE_CLASS = 'hints'
710
const data = require('./hints.json');
811
const textField = data.textField

src/components/input-data/input-data.pug

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
include ../text-field/text-field.pug
22

3-
mixin input-data(label = '')
3+
mixin input-data(options = {})
44
-
5+
const {
6+
label = ''
7+
} = options;
58
const BASE_CLASS = 'input-data'
69
710
fieldset(class=`${BASE_CLASS} js-${BASE_CLASS}`)

src/components/keyboard-control/keyboard-control.pug

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
include ../text-field/text-field.pug
22

3-
mixin keyboard-control(label = '')
3+
mixin keyboard-control(options = {})
44
-
5+
const {
6+
label = ''
7+
} = options;
58
const BASE_CLASS = 'keyboard-control'
69
const data = require('./keyboard-control.json');
710
const textField = data.textField

src/components/miscellaneous/miscellaneous.pug

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
include ../toggle/toggle.pug
22
include ../select/select.pug
33

4-
mixin miscellaneous(label = '')
4+
mixin miscellaneous(options = {})
55
-
6+
const {
7+
label = ''
8+
} = options;
69
const BASE_CLASS = 'miscellaneous'
710
const data = require('./miscellaneous.json');
811
const selectData = data.select

src/components/panel/panel.pug

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@ include ../miscellaneous/miscellaneous.pug
66
include ../code/code.pug
77
include ../keyboard-control/keyboard-control.pug
88

9-
mixin panel(theme = 'base')
9+
mixin panel(options = {})
1010
-
11+
const {
12+
theme = 'base'
13+
} = options;
14+
1115
const BASE_CLASS = 'panel'
1216
1317
div(class=`${BASE_CLASS} js-${BASE_CLASS}`)
@@ -21,22 +25,22 @@ mixin panel(theme = 'base')
2125
)
2226

2327
div(class=`${BASE_CLASS}__values-wrapper`)
24-
+values('Values')
28+
+values({label:'Values'})
2529

2630
div(class=`${BASE_CLASS}__input-data-wrapper`)
27-
+input-data('Input data')
31+
+input-data({label:'Input data'})
2832

2933
div(class=`${BASE_CLASS}__keyboard-control-wrapper`)
30-
+keyboard-control('keyboard control')
34+
+keyboard-control({label:'keyboard control'})
3135

3236
div(class=`${BASE_CLASS}__grid-wrapper`)
33-
+grid('Grid')
37+
+grid({label:'Grid'})
3438

3539
div(class=`${BASE_CLASS}__different-wrapper`)
36-
+miscellaneous('Miscellaneous')
40+
+miscellaneous({label:'Miscellaneous'})
3741

3842
div(class=`${BASE_CLASS}__hints-wrapper`)
39-
+hints('Hints')
43+
+hints({label:'Hints'})
4044

4145
div(class=`${BASE_CLASS}__code-wrapper`)
42-
+code('Config code')
46+
+code({label:'Config code'})

src/components/values/values.pug

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
include ../text-field/text-field.pug
22

3-
mixin values(label = '')
3+
mixin values(options = {})
44
-
5+
const {
6+
label = ''
7+
} = options;
58
const BASE_CLASS = 'values'
69
const data = require('./values.json');
710
const textField = data.textField

src/pages/index/index.pug

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ block content
99

1010
section.slider
1111
.slider__panel-wrapper
12-
+panel('fox')
12+
+panel({theme:'fox'})
1313

1414
section.slider
1515
.slider__panel-wrapper
16-
+panel('dark')
16+
+panel({theme:'dark'})
1717

1818
section.slider
1919
.slider__panel-wrapper
20-
+panel('base')
20+
+panel({theme:'base'})
2121

2222
section.slider
2323
.initialization-plugin

0 commit comments

Comments
 (0)