From 8acc6a8cf0436aff80c3c9fd31137a84ec5a5782 Mon Sep 17 00:00:00 2001 From: Gergely Kiss Date: Fri, 3 Mar 2023 12:15:19 +0100 Subject: [PATCH] Support touring with Vue.js 3. (#963) --- package-lock.json | 100 ++++--------- package.json | 2 +- quasar.conf.js | 2 +- src/App.vue | 6 +- src/boot/tour.ts | 14 ++ src/components/InitialContent.vue | 2 +- src/components/ZclClusterManager.vue | 161 ++++++++++----------- src/components/ZclEndpointCard.vue | 2 +- src/css/zclTour.scss | 67 +++++++++ src/layouts/ZclLayout.vue | 12 +- src/tutorials/{VueTour.vue => ZclTour.vue} | 76 ++++++---- src/tutorials/tutorialConfig.json | 82 +++-------- test/ui.test.js | 2 +- 13 files changed, 270 insertions(+), 258 deletions(-) create mode 100644 src/boot/tour.ts create mode 100644 src/css/zclTour.scss rename src/tutorials/{VueTour.vue => ZclTour.vue} (86%) diff --git a/package-lock.json b/package-lock.json index ade69309ae..dd7f96225d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "0.0.0", "hasInstallScript": true, "dependencies": { + "@globalhive/vuejs-tour": "^1.3.4", "@quasar/extras": "^1.15.6", "@types/yargs": "^15.0.5", "axios": "^0.26.1", @@ -44,7 +45,6 @@ "uuid": "^8.3.2", "vue": "^3.2.45", "vue-router": "^4.1.6", - "vue-tour": "^2.0.0", "vuex": "^4.1.0", "ws": "^8.5.0", "xml2js": "^0.4.23", @@ -3053,6 +3053,16 @@ "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==", "devOptional": true }, + "node_modules/@globalhive/vuejs-tour": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@globalhive/vuejs-tour/-/vuejs-tour-1.3.4.tgz", + "integrity": "sha512-5FH/x4lb2SgvnKhts9HHpgGQbczqmZxYD4an2uA8OUPdeTGjmWBihwLoiSn1C5xzhQu4/4+4+P62YxRcBkSuGw==", + "dependencies": { + "@popperjs/core": "^2.11.6", + "jump.js": "^1.0.2", + "vue": "^3.2.41" + } + }, "node_modules/@hapi/hoek": { "version": "9.3.0", "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz", @@ -17345,7 +17355,8 @@ "node_modules/hash-sum": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-2.0.0.tgz", - "integrity": "sha512-WdZTbAByD+pHfl/g9QSsBIIwy8IT+EsPiKDs0KNX+zSHhdDLFKdZu0BQHljvO+0QI/BasbMSUa8wYNCZTvhslg==" + "integrity": "sha512-WdZTbAByD+pHfl/g9QSsBIIwy8IT+EsPiKDs0KNX+zSHhdDLFKdZu0BQHljvO+0QI/BasbMSUa8wYNCZTvhslg==", + "dev": true }, "node_modules/hasha": { "version": "5.2.2", @@ -32734,41 +32745,6 @@ "he": "^1.2.0" } }, - "node_modules/vue-tour": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/vue-tour/-/vue-tour-2.0.0.tgz", - "integrity": "sha512-vhKzqdhunQ3EoO1733UxhOB389u3EKv2X8JqYhX4tIq4ilqlZtnY3azPFBYPFmnAqHn5RyZBrP2CpqSaxTs8og==", - "dependencies": { - "@popperjs/core": "^2.9.1", - "hash-sum": "^2.0.0", - "jump.js": "^1.0.2", - "vue": "^2.6.12" - } - }, - "node_modules/vue-tour/node_modules/@vue/compiler-sfc": { - "version": "2.7.14", - "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-2.7.14.tgz", - "integrity": "sha512-aNmNHyLPsw+sVvlQFQ2/8sjNuLtK54TC6cuKnVzAY93ks4ZBrvwQSnkkIh7bsbNhum5hJBS00wSDipQ937f5DA==", - "dependencies": { - "@babel/parser": "^7.18.4", - "postcss": "^8.4.14", - "source-map": "^0.6.1" - } - }, - "node_modules/vue-tour/node_modules/csstype": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.1.tgz", - "integrity": "sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw==" - }, - "node_modules/vue-tour/node_modules/vue": { - "version": "2.7.14", - "resolved": "https://registry.npmjs.org/vue/-/vue-2.7.14.tgz", - "integrity": "sha512-b2qkFyOM0kwqWFuQmgd4o+uHGU7T+2z3T+WQp8UBjADfEv2n4FEMffzBmCKNP0IGzOEEfYjvtcC62xaSKeQDrQ==", - "dependencies": { - "@vue/compiler-sfc": "2.7.14", - "csstype": "^3.1.0" - } - }, "node_modules/vuex": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/vuex/-/vuex-4.1.0.tgz", @@ -36356,6 +36332,16 @@ "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==", "devOptional": true }, + "@globalhive/vuejs-tour": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/@globalhive/vuejs-tour/-/vuejs-tour-1.3.4.tgz", + "integrity": "sha512-5FH/x4lb2SgvnKhts9HHpgGQbczqmZxYD4an2uA8OUPdeTGjmWBihwLoiSn1C5xzhQu4/4+4+P62YxRcBkSuGw==", + "requires": { + "@popperjs/core": "^2.11.6", + "jump.js": "^1.0.2", + "vue": "^3.2.41" + } + }, "@hapi/hoek": { "version": "9.3.0", "resolved": "https://registry.npmjs.org/@hapi/hoek/-/hoek-9.3.0.tgz", @@ -47452,7 +47438,8 @@ "hash-sum": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/hash-sum/-/hash-sum-2.0.0.tgz", - "integrity": "sha512-WdZTbAByD+pHfl/g9QSsBIIwy8IT+EsPiKDs0KNX+zSHhdDLFKdZu0BQHljvO+0QI/BasbMSUa8wYNCZTvhslg==" + "integrity": "sha512-WdZTbAByD+pHfl/g9QSsBIIwy8IT+EsPiKDs0KNX+zSHhdDLFKdZu0BQHljvO+0QI/BasbMSUa8wYNCZTvhslg==", + "dev": true }, "hasha": { "version": "5.2.2", @@ -59301,43 +59288,6 @@ "he": "^1.2.0" } }, - "vue-tour": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/vue-tour/-/vue-tour-2.0.0.tgz", - "integrity": "sha512-vhKzqdhunQ3EoO1733UxhOB389u3EKv2X8JqYhX4tIq4ilqlZtnY3azPFBYPFmnAqHn5RyZBrP2CpqSaxTs8og==", - "requires": { - "@popperjs/core": "^2.9.1", - "hash-sum": "^2.0.0", - "jump.js": "^1.0.2", - "vue": "^2.6.12" - }, - "dependencies": { - "@vue/compiler-sfc": { - "version": "2.7.14", - "resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-2.7.14.tgz", - "integrity": "sha512-aNmNHyLPsw+sVvlQFQ2/8sjNuLtK54TC6cuKnVzAY93ks4ZBrvwQSnkkIh7bsbNhum5hJBS00wSDipQ937f5DA==", - "requires": { - "@babel/parser": "^7.18.4", - "postcss": "^8.4.14", - "source-map": "^0.6.1" - } - }, - "csstype": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.1.tgz", - "integrity": "sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw==" - }, - "vue": { - "version": "2.7.14", - "resolved": "https://registry.npmjs.org/vue/-/vue-2.7.14.tgz", - "integrity": "sha512-b2qkFyOM0kwqWFuQmgd4o+uHGU7T+2z3T+WQp8UBjADfEv2n4FEMffzBmCKNP0IGzOEEfYjvtcC62xaSKeQDrQ==", - "requires": { - "@vue/compiler-sfc": "2.7.14", - "csstype": "^3.1.0" - } - } - } - }, "vuex": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/vuex/-/vuex-4.1.0.tgz", diff --git a/package.json b/package.json index 24bb59c38e..552a854534 100644 --- a/package.json +++ b/package.json @@ -115,6 +115,7 @@ "zip": "node ./src-script/7zip-bin-wrapper.js" }, "dependencies": { + "@globalhive/vuejs-tour": "^1.3.4", "@quasar/extras": "^1.15.6", "@types/yargs": "^15.0.5", "axios": "^0.26.1", @@ -150,7 +151,6 @@ "uuid": "^8.3.2", "vue": "^3.2.45", "vue-router": "^4.1.6", - "vue-tour": "^2.0.0", "vuex": "^4.1.0", "ws": "^8.5.0", "xml2js": "^0.4.23", diff --git a/quasar.conf.js b/quasar.conf.js index a00992c766..4166f356ed 100644 --- a/quasar.conf.js +++ b/quasar.conf.js @@ -18,7 +18,7 @@ module.exports = configure(function (ctx) { // app boot file (/src/boot) // --> boot files are part of "main.js" // https://quasar.dev/quasar-cli/cli-documentation/boot-files - boot: ['axios', 'globalapi', 'ws'], + boot: ['axios', 'globalapi', 'tour', 'ws'], // https://quasar.dev/quasar-cli/quasar-conf-js#Property%3A-css css: ['app.sass'], diff --git a/src/App.vue b/src/App.vue index df3c04d2a3..eccccbf1fb 100644 --- a/src/App.vue +++ b/src/App.vue @@ -26,14 +26,14 @@ limitations under the License. > - +