From a543b4b5e2904fa83acba8e8b98f46978d395193 Mon Sep 17 00:00:00 2001 From: Danny Coulombe Date: Thu, 18 Dec 2025 11:26:24 -0500 Subject: [PATCH] - Support title in DataEditor - UX adjustments - Remove IntroductionDialog - Keep Collapsed/Expanded editor in memory - Fix typing issues - Remove "s" from Items in typings for arrays - Catch download files as zip error --- docs/structure.md | 1 + package.json | 2 +- src/components/ActionBar.vue | 9 ++++++--- src/components/DataEditor.vue | 2 +- src/components/GlobalComponents.vue | 2 -- src/components/JSONms.vue | 7 ++++--- src/components/SitePreview.vue | 9 ++++----- src/composables/typings.ts | 10 +++++----- src/interfaces.ts | 1 + src/stores/global.ts | 1 + src/styles/settings.scss | 2 +- src/utils.ts | 17 +++++++++-------- 12 files changed, 34 insertions(+), 29 deletions(-) diff --git a/docs/structure.md b/docs/structure.md index de928f9..27579af 100644 --- a/docs/structure.md +++ b/docs/structure.md @@ -37,6 +37,7 @@ The following YAML example defines a simplified section for an admin panel, spec sections: home: # Customizable key label: Home page + title: My data # Optional (to be displayed in the data sidebar) fields: title: # Customizable key type: i18n diff --git a/package.json b/package.json index ec81b1d..dd72aa6 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@json.ms/www", "private": true, "type": "module", - "version": "1.2.20", + "version": "1.2.21", "scripts": { "dev": "vite --host", "build": "run-p type-check \"build-only {@}\" --", diff --git a/src/components/ActionBar.vue b/src/components/ActionBar.vue index 51af7a5..d8b38f1 100644 --- a/src/components/ActionBar.vue +++ b/src/components/ActionBar.vue @@ -79,7 +79,7 @@ const reset = () => {
@@ -155,8 +155,9 @@ const reset = () => { :readonly="userDataSaved" :color="canSave ? 'primary' : undefined" :class="['w-100', { - 'pr-16': globalStore.admin.structure + 'pr-10': globalStore.admin.structure }]" + size="small" @click.stop.prevent="save" >