f820602h / vue-stage-play Goto Github PK
View Code? Open in Web Editor NEWDesigning a guided tour for your website with vue components, much like directing a stage play.
Home Page: https://f820602h.github.io/vue-stage-play/
License: MIT License
Designing a guided tour for your website with vue components, much like directing a stage play.
Home Page: https://f820602h.github.io/vue-stage-play/
License: MIT License
Hello :)
I am unable to configure the guide to work in Vue 2. Here is what I receive:
Module parse failed: Unexpected token (1:8822)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
.....
{t.provide(D,e||{}),t.component("StagePlayScene",_e),t.component("StagePlaySpotlight",Oe)}}}export{_e as StagePlayScene,Oe as StagePlaySpotlight,Ue as stagePlayPlugin,Ke as useStagePlay};
...
e&type=script&lang=js&
@ ./src/App.vue?vue&type=script&lang=js&
@ ./src/App.vue
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://192.168.50.167:3000&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
It is a quite long error message in the compiler. I am using it as follows:
<template>
<StagePlaySpotlight>
<v-card>
<top-header v-if="header.showHeader" />
<v-navigation-drawer v-if="showNavigation" v-model="drawer" permanent app>
<button @click="callAction('basic')">Start</button>
<v-list nav dense>
<v-list-item-group class="list-item-group" :value="selectedItem" color="primary">
<StagePlayScene
:act-name="'basic'"
:scene="1"
:voice-over-title="'Step1'"
:voice-over-content="'Open the door of the refrigerator.'"
>
<v-list-item
v-for="(item, index) in navigationItems"
:key="index"
:class="`tour-guide-${index + 1}`"
class="list-item-style"
link
@click="navigate(item.route)"
>
<v-list-item-icon class="list-item-icon">
<v-icon class="item-icon" color="primary">{{ item.icon }}</v-icon>
</v-list-item-icon>
<v-list-item-title class="list-item-title" color="primary">{{ $t(item.label) }}</v-list-item-title>
</v-list-item>
</StagePlayScene>
</v-list-item-group>
</v-list>
</v-navigation-drawer>
</v-card>
</StagePlaySpotlight>
</template>
The script:
<script>
import { mapState, mapGetters, mapActions } from 'vuex'
import { StagePlaySpotlight, StagePlayScene, useStagePlay } from 'vue-stage-play'
import Header from './Header'
const { action } = useStagePlay()
export default {
name: 'Navigation',
components: {
'top-header': Header,
StagePlaySpotlight,
StagePlayScene
},
...
methods: {
...
callAction(actionMethod) {
action(actionMethod)
}
}
}
</script>
Am I doing something wrong with the configuration or it does not work with Vue 2 ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.