Removed vue-audio-visual and moved towards wavesurfer.js and added demo music
parent
74508b37dc
commit
4c04bdb118
|
|
@ -16712,15 +16712,6 @@
|
||||||
"resolved": "https://registry.npmjs.org/vue/-/vue-2.6.10.tgz",
|
"resolved": "https://registry.npmjs.org/vue/-/vue-2.6.10.tgz",
|
||||||
"integrity": "sha512-ImThpeNU9HbdZL3utgMCq0oiMzAkt1mcgy3/E6zWC/G6AaQoeuFdsl9nDhTDU3X1R6FK7nsIUuRACVcjI+A2GQ=="
|
"integrity": "sha512-ImThpeNU9HbdZL3utgMCq0oiMzAkt1mcgy3/E6zWC/G6AaQoeuFdsl9nDhTDU3X1R6FK7nsIUuRACVcjI+A2GQ=="
|
||||||
},
|
},
|
||||||
"vue-audio-visual": {
|
|
||||||
"version": "1.3.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/vue-audio-visual/-/vue-audio-visual-1.3.0.tgz",
|
|
||||||
"integrity": "sha512-px0wYa0zQzi+lPuQ4NFRtDUOgcAK3OkV5fqpIkRKED8GM+NTJBu/AiyWwGfW2VzvwevKpwwgsKUF5CIntHJAVg==",
|
|
||||||
"requires": {
|
|
||||||
"axios": "^0.18.0",
|
|
||||||
"vue": "^2.5.17"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"vue-carousel": {
|
"vue-carousel": {
|
||||||
"version": "0.18.0",
|
"version": "0.18.0",
|
||||||
"resolved": "https://registry.npmjs.org/vue-carousel/-/vue-carousel-0.18.0.tgz",
|
"resolved": "https://registry.npmjs.org/vue-carousel/-/vue-carousel-0.18.0.tgz",
|
||||||
|
|
@ -16995,6 +16986,11 @@
|
||||||
"neo-async": "^2.5.0"
|
"neo-async": "^2.5.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"wavesurfer.js": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/wavesurfer.js/-/wavesurfer.js-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-DANu206c6gb9pSUbYFevsSiXMy8+Ri+CNtqm0UsouUdsn9fVQRtYs8uxzBtXK+rUPlIc6FlO54DU8uWeW3lDzw=="
|
||||||
|
},
|
||||||
"wbuf": {
|
"wbuf": {
|
||||||
"version": "1.7.3",
|
"version": "1.7.3",
|
||||||
"resolved": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.3.tgz",
|
"resolved": "https://registry.npmjs.org/wbuf/-/wbuf-1.7.3.tgz",
|
||||||
|
|
|
||||||
|
|
@ -61,13 +61,13 @@
|
||||||
"normalize-scss": "^7.0.1",
|
"normalize-scss": "^7.0.1",
|
||||||
"roboto-slab-fontface-kit": "^1.0.2",
|
"roboto-slab-fontface-kit": "^1.0.2",
|
||||||
"vue": "^2.5.16",
|
"vue": "^2.5.16",
|
||||||
"vue-audio-visual": "^1.3.0",
|
|
||||||
"vue-carousel": "^0.18.0",
|
"vue-carousel": "^0.18.0",
|
||||||
"vue-custom-scrollbar": "^1.1.0",
|
"vue-custom-scrollbar": "^1.1.0",
|
||||||
"vue-electron": "^1.0.6",
|
"vue-electron": "^1.0.6",
|
||||||
"vue-router": "^3.0.1",
|
"vue-router": "^3.0.1",
|
||||||
"vuex": "^3.0.1",
|
"vuex": "^3.0.1",
|
||||||
"vuex-electron": "^1.0.0"
|
"vuex-electron": "^1.0.0",
|
||||||
|
"wavesurfer.js": "^3.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"ajv": "^6.5.0",
|
"ajv": "^6.5.0",
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,17 @@
|
||||||
<template>
|
<template>
|
||||||
<section>
|
<section>
|
||||||
<img class="artwork" src="/static/demo/artwork-4.png" />
|
<img class="artwork" src="/static/demo/artwork.jpg" />
|
||||||
<div>
|
<div>
|
||||||
<p class="title">Perfidia</p>
|
<p class="title">Perfidia</p>
|
||||||
<p class="artist">Nat King Cole</p>
|
<p class="artist">Nat King Cole</p>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="bars">
|
||||||
|
<audio ref="visualizer" autoplay src="/static/demo/music.mp3"></audio>
|
||||||
|
<av-waveform
|
||||||
|
ref-link="visualizer"
|
||||||
|
:playtime-line-width="0" :canv-width="800" :canv-height="64" :playtime="false" :playtime-font-size="0" noplayed-line-color="#336cfb" playtime-line-color="#ABC123" :playtime-slider="true"
|
||||||
|
></av-waveform>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,12 @@ import axios from 'axios'
|
||||||
import App from './App'
|
import App from './App'
|
||||||
import router from './router'
|
import router from './router'
|
||||||
import store from './store'
|
import store from './store'
|
||||||
|
import AudioVisual from 'vue-audio-visual'
|
||||||
|
|
||||||
if (!process.env.IS_WEB) Vue.use(require('vue-electron'))
|
if (!process.env.IS_WEB) Vue.use(require('vue-electron'))
|
||||||
Vue.http = Vue.prototype.$http = axios
|
Vue.http = Vue.prototype.$http = axios
|
||||||
Vue.config.productionTip = false
|
Vue.config.productionTip = false
|
||||||
|
Vue.use(AudioVisual)
|
||||||
|
|
||||||
/* eslint-disable no-new */
|
/* eslint-disable no-new */
|
||||||
new Vue({
|
new Vue({
|
||||||
|
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
Binary file not shown.
Loading…
Reference in New Issue