-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathww-config.js
89 lines (86 loc) · 2.58 KB
/
ww-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
function createPlan(index){
return {
[`plan${index}HeaderObjects`]:{
hidden: true,
defaultValue: []
},
[`plan${index}MainObjects`]:{
hidden: true,
defaultValue: []
},
[`plan${index}BackgroundColor`]: {
section: 'settings',
label: { "en": `Plan ${index + 1} background`, "fr": `Plan ${index + 1} arrière plan` },
type: "Color",
defaultValue: '#FFFFFF'
},
[`plan${index}Color`]: {
section: 'settings',
label: { "en": `Plan ${index + 1} color`, "fr": `Plan ${index + 1} couleur` },
type: "Color",
defaultValue: '#000000'
},
[`plan${index}FontSize`]: {
section: 'settings',
label: { "en": `Plan ${index + 1} size`, "fr": `Plan ${index + 1} taille` },
type: "Number",
defaultValue: 30
},
[`plan${index}PriceMonth`]: {
section: 'settings',
label: { "en": `Plan ${index + 1} /month`, "fr": `Plan ${index + 1} /mois` },
type: "Number",
defaultValue: 19
},
[`plan${index}PriceYear`]: {
section: 'settings',
label: { "en": `Plan ${index + 1} /year`, "fr": `Plan ${index + 1} /an` },
type: "Number",
defaultValue: 99
},
}
}
export default {
editor: {
label: { en: 'Pricing Calculator'},
icon: 'fontawesome/solid/hand-holding-usd',
},
properties: {
headerObjects: {
hidden : true,
defaultValue: []
},
mainColor: {
section: 'settings',
"label": { "en": "Main Color", "fr": "Couleur" },
"type": "Color",
defaultValue: '#5F30E2'
},
scrollBarText: {
"label": { "en": "ScrollBar Text", "fr": "Texte sur Barre" },
"type": "Text",
"options": {
"placeholder": "User"
},
defaultValue: "User"
},
maxUserCount: {
"label": { "en": "Max items count", "fr": "Nb d'elements max" },
"type": "Number",
defaultValue: 100
},
devise: {
section: 'settings',
"label": { "en": "Devise", "fr": "Devise" },
"type": "Text",
"options": {
"placeholder": "$"
},
defaultValue: '$'
},
...createPlan(0),
...createPlan(1),
...createPlan(2),
...createPlan(3),
}
}