Skip to content

Commit

Permalink
Support touring with Vue.js 3.
Browse files Browse the repository at this point in the history
  • Loading branch information
aspecter committed Mar 3, 2023
1 parent 54ebd9e commit 0c66fbf
Show file tree
Hide file tree
Showing 13 changed files with 270 additions and 258 deletions.
100 changes: 25 additions & 75 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion quasar.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down
6 changes: 3 additions & 3 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ limitations under the License.
>
<q-icon name="warning" style="font-size: 2.5em; color: red" />
</q-btn>
<!-- <VueTour /> -->
<zcl-tour />
</div>
</template>

<script>
import { defineComponent } from 'vue'
import { QSpinnerGears } from 'quasar'
// import VueTour from './tutorials/VueTour.vue'
import ZclTour from './tutorials/ZclTour.vue'
import CommonMixin from './util/common-mixin'
const rendApi = require(`../src-shared/rend-api.js`)
const restApi = require(`../src-shared/rest-api.js`)
Expand Down Expand Up @@ -85,7 +85,7 @@ async function initLoad(store) {
export default defineComponent({
name: 'App',
components: {
// VueTour,
ZclTour,
},
mixins: [CommonMixin],
computed: {
Expand Down
14 changes: 14 additions & 0 deletions src/boot/tour.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { boot } from 'quasar/wrappers'
import VueJsTour from '@globalhive/vuejs-tour'
import '@globalhive/vuejs-tour/dist/style.css'
import '../css/zclTour.scss'

export let startTour = () => {}

export const setStartTour = (startTourFunction) => {
startTour = startTourFunction
}

export default boot(async ({ app }) => {
app.use(VueJsTour)
})
2 changes: 1 addition & 1 deletion src/components/InitialContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ limitations under the License.
-->

<template>
<div>
<div class="q-px-lg">
<div v-if="uiTheme === 'matter'">
<h3 id="zcl-advanced-platform">Welcome to Matter</h3>
</div>
Expand Down
Loading

0 comments on commit 0c66fbf

Please sign in to comment.