Skip to content

Commit 0858441

Browse files
committed
Set default data
1 parent 9aadad9 commit 0858441

3 files changed

Lines changed: 31 additions & 16 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@jsonms/demo",
33
"private": true,
44
"type": "module",
5-
"version": "0.1.11",
5+
"version": "0.1.12",
66
"scripts": {
77
"dev": "vite",
88
"build": "run-p type-check \"build-only {@}\" --",

src/components/Carousels.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const slideColor = computed((): string => {
7777
function getYoutubeUrl(presentation: JmsHomePresentationItems) {
7878
if (presentation.youtube) {
7979
const code = getYoutubeCode(presentation.youtube);
80-
return 'https://www.youtube.com/embed/' + code + '?controls=0';
80+
return 'https://www.youtube.com/embed/' + code + '?controls=0&rel=0';
8181
}
8282
}
8383

src/jms/data.json

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,22 @@
33
"presentation": [
44
{
55
"title": {
6-
"en-US": "Generate an admin panel from a YAML interface that communicates with a remote server using JSON.",
7-
"es-MX": "Genera un panel de administración a partir de una interfaz YAML que se comunica con un servidor remoto utilizando JSON."
6+
"en-US": "Generate admin panels from a YAML interface",
7+
"es-MX": "Genera un panel de administración a partir de una interfaz YAML"
88
},
99
"body": {
10-
"en-US": "Keep your data safe on your server, and feel free to download your JSON file whenever you need itno obligations! Enjoy stunning, customizable interfaces that empower you to edit your website's content without being tied to our technology!",
10+
"en-US": "Keep your data safe on your server, and feel free to download your JSON file whenever you need it, no obligations! Enjoy stunning, customizable interfaces that empower you to edit your website's content without being tied to our technology!",
1111
"es-MX": "Mantén tus datos seguros en tu servidor y siéntete libre de descargar tu archivo JSON siempre que lo necesites, ¡sin obligaciones! Disfruta de impresionantes interfaces personalizables que te permiten editar el contenido de tu sitio web sin estar atado a nuestra tecnología."
1212
},
1313
"cta": {
1414
"en-US": "Let's see how it works!",
1515
"es-MX": "¡Veamos cómo funciona!"
1616
},
17-
"color": "primary",
17+
"color": "white",
1818
"commands": [],
19-
"hash": "hoqCTZrB"
19+
"hash": "VwRdQHe9",
20+
"youtube": "https://www.youtube.com/watch?v=QbzHaJ3GeJM",
21+
"type": "youtube"
2022
},
2123
{
2224
"title": {
@@ -37,7 +39,8 @@
3739
"openAdvanced",
3840
"setDesktop"
3941
],
40-
"hash": "1l3lbx81"
42+
"hash": "Q5Opfw4N",
43+
"type": "text"
4144
},
4245
{
4346
"title": {
@@ -56,11 +59,12 @@
5659
"commands": [
5760
"openDrawer"
5861
],
59-
"hash": "UZYD8ILH"
62+
"hash": "cJnL3WdH",
63+
"type": "text"
6064
},
6165
{
6266
"title": {
63-
"en-US": "To assist you in structuring your YAML interface and setting up your server, we have provided clear documentation on the right side.",
67+
"en-US": "To assist you in structuring your YAML interface and setting up your server, we have provided documentation on the right side.",
6468
"es-MX": "Para ayudarte a estructurar tu interfaz YAML y configurar tu servidor, hemos proporcionado documentación clara en el lado derecho."
6569
},
6670
"body": {
@@ -77,7 +81,8 @@
7781
"openAdvanced",
7882
"showDocs"
7983
],
80-
"hash": "KLLhfqMF"
84+
"hash": "tCNArmZX",
85+
"type": "text"
8186
},
8287
{
8388
"title": {
@@ -96,13 +101,15 @@
96101
"commands": [
97102
"showData"
98103
],
99-
"hash": "hHuFCqwA"
104+
"hash": "AZYlDD7n",
105+
"type": "text"
100106
}
101107
]
102108
},
103109
"playground": {
104110
"text": null,
105111
"textWithIcon": null,
112+
"textDefault": "A default value",
106113
"i18nRequired": {
107114
"en-US": "",
108115
"es-MX": ""
@@ -111,12 +118,13 @@
111118
"en-US": null,
112119
"es-MX": null
113120
},
121+
"textRules": null,
114122
"i18nRating": null,
115-
"conditionalSwitch": true,
123+
"conditionalSwitch": null,
116124
"hiddenField1": 50,
117125
"hiddenField2": [
118126
25,
119-
90
127+
75
120128
],
121129
"list": {
122130
"select": null,
@@ -125,14 +133,21 @@
125133
},
126134
"arrays": {
127135
"array": [],
128-
"i18nArray": []
136+
"i18nArray": {
137+
"en-US": [],
138+
"es-MX": []
139+
}
129140
},
130141
"files": {
131142
"file": null,
132143
"acceptImages": null,
133144
"multiple": []
134145
},
135146
"markdown": null,
136-
"date": null
147+
"date": null,
148+
"schema": {
149+
"title": "",
150+
"description": null
151+
}
137152
}
138153
}

0 commit comments

Comments
 (0)