Skip to content

Commit ea6d771

Browse files
committed
1.6.2
1 parent a8de44d commit ea6d771

File tree

12 files changed

+125
-10
lines changed

12 files changed

+125
-10
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
[//]: # (Don't use <tags>)
22

3+
## v1.6.2
4+
5+
> `2024-08-15`
6+
7+
### 🎉 Feature
8+
- Optional Import / Export button that can be enabled in `builder.config.js` with `import: true`.
9+
310
## v1.6.1
411

512
> `2024-08-07`

index.css

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,14 @@
340340
@apply mb-2;
341341
}
342342

343+
.vfb-tool-import {
344+
@apply mb-2;
345+
}
346+
347+
.vfb-tool-language-selector {
348+
@apply mb-2;
349+
}
350+
343351
.vfb-tool-language-selector .vfb-tool-item {
344352
@apply text-sm;
345353
}
@@ -994,7 +1002,15 @@ input.vfb-clr-color:focus {
9941002
}
9951003

9961004
.vfb-icon {
997-
@apply inline-block text-inherit h-1em overflow-visible align-icon;
1005+
@apply inline-block text-inherit overflow-visible align-icon;
1006+
}
1007+
1008+
.vfb-icon-md {
1009+
@apply h-1em;
1010+
}
1011+
1012+
.vfb-icon-lg {
1013+
@apply h-[1.2em];
9981014
}
9991015

10001016
.vfb-hidden {
@@ -1597,6 +1613,26 @@ div > div:first-of-type[style*="none;"] + .vfb-util-props-separator-top {
15971613
@apply mt-4 text-[14px] text-gray-700 underline dark:text-dark-400;
15981614
}
15991615

1616+
.vfb-modal-import {
1617+
@apply mb-12;
1618+
}
1619+
1620+
.vfb-modal-import-wrapper {
1621+
@apply w-[calc(100%+4rem)] -ml-8 -mt-10 -mb-6 flex flex-col;
1622+
}
1623+
1624+
.vfb-modal-import-textarea {
1625+
@apply w-full px-5 py-4 border-gray-300 min-h-[400px] text-[13px] shadow-inner box-border m-0 font-mono leading-normal;
1626+
}
1627+
1628+
.vfb-modal-import-error {
1629+
@apply w-full bg-red-500 bg-opacity-20 text-red-500 px-6 py-2 box-border;
1630+
}
1631+
1632+
.vfb-modal-import-btn-disabled {
1633+
@apply opacity-60 pointer-events-none;
1634+
}
1635+
16001636
@keyframes vfb-ai-loader-rotate {
16011637
0% {
16021638
transform: translate(-50%, -50%) rotateZ(0deg);

index.mjs

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

locales/en_US/index.mjs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1362,5 +1362,12 @@ export default {
13621362
"view_view_item_gallery": "Gallery",
13631363
"view_view_item_image": "Image",
13641364
"view_view_item_tabs": "Tabs",
1365-
"view_view_label": "View &nbsp;<a href=\"https://vueform.com/reference/1.x/%elementType%-element#views\" target=\"_blank\" class=\"vfb-learn-more\">learn more</a>"
1365+
"view_view_label": "View &nbsp;<a href=\"https://vueform.com/reference/1.x/%elementType%-element#views\" target=\"_blank\" class=\"vfb-learn-more\">learn more</a>",
1366+
"tool_import": "Export / import",
1367+
"import_modal_title": "Import / Export",
1368+
"import_modal_subtitle": "The following JSON represents the current state of the builder. Save it to import back later.",
1369+
"import_modal_button_save": "Save & import",
1370+
"import_modal_button_download": "Download as JSON",
1371+
"import_modal_button_cancel": "Cancel",
1372+
"import_modal_json_error": "Not a valid JSON."
13661373
};

locales/hu_HU/index.mjs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1362,5 +1362,12 @@ export default {
13621362
"view_view_item_gallery": "Galéria",
13631363
"view_view_item_image": "Kép",
13641364
"view_view_item_tabs": "Lapok",
1365-
"view_view_label": "Nézet &nbsp;<a href=\"https://vueform.com/reference/1.x/%elementType%-element#views\" target=\"_blank\" class=\"vfb-learn-more\">tudj meg többet</a>"
1365+
"view_view_label": "Nézet &nbsp;<a href=\"https://vueform.com/reference/1.x/%elementType%-element#views\" target=\"_blank\" class=\"vfb-learn-more\">tudj meg többet</a>",
1366+
"tool_import": "Exportálás / importálás",
1367+
"import_modal_title": "Importálás / Exportálás",
1368+
"import_modal_subtitle": "A következő JSON a szerkesztő aktuális állapotát képviseli. Mentse el, hogy később visszaimportálhassa.",
1369+
"import_modal_button_save": "Mentés és importálás",
1370+
"import_modal_button_download": "Letöltés JSON formátumban",
1371+
"import_modal_button_cancel": "Mégse",
1372+
"import_modal_json_error": "Érvénytelen JSON."
13661373
};

locales/ja_JP/index.mjs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1362,5 +1362,12 @@ export default {
13621362
"view_view_item_gallery": "ギャラリー",
13631363
"view_view_item_image": "画像",
13641364
"view_view_item_tabs": "タブ",
1365-
"view_view_label": "表示 &nbsp;<a href=\"https://vueform.com/reference/1.x/%elementType%-element#views\" target=\"_blank\" class=\"vfb-learn-more\">詳細</a>"
1365+
"view_view_label": "表示 &nbsp;<a href=\"https://vueform.com/reference/1.x/%elementType%-element#views\" target=\"_blank\" class=\"vfb-learn-more\">詳細</a>",
1366+
"tool_import": "エクスポート / インポート",
1367+
"import_modal_title": "インポート / エクスポート",
1368+
"import_modal_subtitle": "以下のJSONは、現在のビルダーの状態を表しています。後でインポートできるように保存してください。",
1369+
"import_modal_button_save": "保存してインポート",
1370+
"import_modal_button_download": "JSONとしてダウンロード",
1371+
"import_modal_button_cancel": "キャンセル",
1372+
"import_modal_json_error": "無効なJSONです。"
13661373
};

locales/nl_NL/index.mjs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1362,5 +1362,12 @@ export default {
13621362
"view_view_item_gallery": "Galerij",
13631363
"view_view_item_image": "Afbeelding",
13641364
"view_view_item_tabs": "Tabbladen",
1365-
"view_view_label": "Bekijk &nbsp;<a href=\"https://vueform.com/reference/1.x/%elementType%-element#views\" target=\"_blank\" class=\"vfb-learn-more\">lees meer</a>"
1365+
"view_view_label": "Bekijk &nbsp;<a href=\"https://vueform.com/reference/1.x/%elementType%-element#views\" target=\"_blank\" class=\"vfb-learn-more\">lees meer</a>",
1366+
"tool_import": "Exporteren / importeren",
1367+
"import_modal_title": "Importeren / Exporteren",
1368+
"import_modal_subtitle": "De volgende JSON vertegenwoordigt de huidige staat van de builder. Sla deze op om later te kunnen importeren.",
1369+
"import_modal_button_save": "Opslaan en importeren",
1370+
"import_modal_button_download": "Download als JSON",
1371+
"import_modal_button_cancel": "Annuleren",
1372+
"import_modal_json_error": "Ongeldige JSON."
13661373
};

locales/sv_SE/index.mjs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1362,5 +1362,12 @@ export default {
13621362
"view_view_item_gallery": "Galleri",
13631363
"view_view_item_image": "Bild",
13641364
"view_view_item_tabs": "Flikar",
1365-
"view_view_label": "Visa &nbsp;<a href=\"https://vueform.com/reference/1.x/%elementType%-element#views\" target=\"_blank\" class=\"vfb-learn-more\">läs mer</a>"
1365+
"view_view_label": "Visa &nbsp;<a href=\"https://vueform.com/reference/1.x/%elementType%-element#views\" target=\"_blank\" class=\"vfb-learn-more\">läs mer</a>",
1366+
"tool_import": "Exportera / importera",
1367+
"import_modal_title": "Importera / Exportera",
1368+
"import_modal_subtitle": "Följande JSON representerar det aktuella tillståndet för byggverktyget. Spara den för att importera senare.",
1369+
"import_modal_button_save": "Spara och importera",
1370+
"import_modal_button_download": "Ladda ner som JSON",
1371+
"import_modal_button_cancel": "Avbryt",
1372+
"import_modal_json_error": "Ogiltig JSON."
13661373
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": false,
33
"name": "@vueform/builder",
4-
"version": "1.6.1",
4+
"version": "1.6.2",
55
"description": "Vueform Builder development build.",
66
"homepage": "https://vueform.com",
77
"license": "SEE LICENSE IN LICENSE.txt",

scss/_modal.scss

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,27 @@
151151
@apply mt-4 text-[14px] text-gray-700 underline dark:text-dark-400;
152152
}
153153

154+
.vfb-modal-import {
155+
@apply mb-12;
156+
}
157+
158+
.vfb-modal-import-wrapper {
159+
@apply w-[calc(100%+4rem)] -ml-8 -mt-10 -mb-6 flex flex-col;
160+
}
161+
162+
.vfb-modal-import-textarea {
163+
@apply w-full px-5 py-4 border-gray-300 min-h-[400px] text-[13px] shadow-inner box-border m-0 font-mono leading-normal;
164+
}
165+
166+
.vfb-modal-import-error {
167+
@apply w-full bg-red-500 bg-opacity-20 text-red-500 px-6 py-2 box-border;
168+
}
169+
170+
.vfb-modal-import-btn-disabled {
171+
@apply opacity-60 pointer-events-none;
172+
}
173+
174+
154175
@keyframes vfb-ai-loader-rotate {
155176
0% {
156177
transform: translate(-50%, -50%) rotateZ(0deg);

0 commit comments

Comments
 (0)