Add existing code

This commit is contained in:
Gennady Grishkovtsov
2018-07-23 12:00:58 +03:00
parent ff7cb590c5
commit 95a9700d50
22 changed files with 10295 additions and 2 deletions

21
demo/index.html Normal file
View File

@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>vue-audio-recorder | demo</title>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
</head>
<body>
<div id="app">
<audio-recorder
upload-url="some url"
:attempts="3"
:time="2"
:start-record="callback"
:stop-record="callback"
:start-upload="callback"
:successful-upload="callback"
:failed-upload="callback"/>
</div>
</body>
</html>

16
demo/index.js Normal file
View File

@@ -0,0 +1,16 @@
import Vue from 'vue'
import axios from 'axios'
import AudioRecorder from '../src/audio-recorder'
Vue.config.productionTip = false
Vue.prototype.$http = axios
new Vue({
el: '#app',
components: {AudioRecorder},
methods: {
callback (msg) {
console.debug('Event: ', msg)
}
}
})