From 192b4a62b5cde3ac5c274d86cd2f42a4a5f23698 Mon Sep 17 00:00:00 2001 From: Vojtech Bocek Date: Fri, 5 Jul 2024 16:53:46 +0200 Subject: [PATCH] feat: update to current gridui --- components/CodeDisplay.vue | 24 ++++----- gridui | 2 +- package.json | 1 + pages/codegen_jaculus.vue | 105 ++++++++++++++++++++++++++++++------ pages/index.vue | 26 ++++++--- src/layoutgen/Typescript.js | 16 +++--- yarn.lock | 26 ++++++++- 7 files changed, 156 insertions(+), 44 deletions(-) diff --git a/components/CodeDisplay.vue b/components/CodeDisplay.vue index 2c179c4..364606a 100644 --- a/components/CodeDisplay.vue +++ b/components/CodeDisplay.vue @@ -63,7 +63,7 @@ export default { hidden: { type: Boolean, required: false, - default: true, + default: true } }, data() { @@ -71,16 +71,6 @@ export default { showCode: !this.hideable } }, - watch: { - hidden: { - immediate: true, - handler() { - if(this.hideable && this.showCode !== !this.hidden) { - this.showCode = !this.hidden - } - } - }, - }, computed: { highlighted() { return Prism.highlight( @@ -90,6 +80,16 @@ export default { ) } }, + watch: { + hidden: { + immediate: true, + handler() { + if (this.hideable && this.showCode !== !this.hidden) { + this.showCode = !this.hidden + } + } + } + }, methods: { onCopyClick() { copy(this.value) @@ -101,7 +101,7 @@ export default { }, onShowClick() { this.showCode = !this.showCode - this.$emit("update:hidden", !this.showCode) + this.$emit('update:hidden', !this.showCode) } } } diff --git a/gridui b/gridui index b7bbe40..f4fb6d1 160000 --- a/gridui +++ b/gridui @@ -1 +1 @@ -Subproject commit b7bbe4093e499fdd641b59de134ff2013795ef02 +Subproject commit f4fb6d1d5c320ad764c784c860f3610865b11d19 diff --git a/package.json b/package.json index adf10e1..bd802a9 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "@nuxtjs/axios": "^5.3.6", "copy-to-clipboard": "^3.3.1", "deep-equal": "^2.0.2", + "jszip": "^3.10.1", "nipplejs": "^0.8.5", "nuxt": "^2.0.0", "prismjs": "^1.23.0", diff --git a/pages/codegen_jaculus.vue b/pages/codegen_jaculus.vue index da13540..5db1c3b 100644 --- a/pages/codegen_jaculus.vue +++ b/pages/codegen_jaculus.vue @@ -12,6 +12,17 @@ gridui.h methods + + Download zip + + Widgets