-
-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
241 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
- add voice search, plz test and reply back | ||
- add new npm-dep "annyang" | ||
- fix not able to scroll the files container on touch screen | ||
- fix timestamp issue for cloud disks "https://github.com/ctf0/Laravel-Media-Manager/issues/143" | ||
- fix url update "https://github.com/ctf0/Laravel-Media-Manager/issues/142" | ||
- make sure all tooltips have the same styles | ||
- hide folder info if 'get_folder_info' is false | ||
- stop supporting laravel v5 | ||
- some cleanups |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ | |
|
||
<style scoped> | ||
img { | ||
background-color: black; | ||
background-color: $black; | ||
} | ||
</style> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<template> | ||
<button v-if="isSupported" | ||
v-tippy="{arrow: true}" | ||
class="button" | ||
:title="run ? trans('voice_stop') : trans('voice_start')" | ||
@click.stop="toggle()"> | ||
<span class="icon" | ||
:class="run ? 'has-text-danger' : 'has-text-link'"> | ||
<icon name="microphone"/> | ||
</span> | ||
</button> | ||
</template> | ||
|
||
<script> | ||
import annyang from 'annyang' | ||
export default { | ||
props: ['trans', 'searchFor'], | ||
data() { | ||
return { | ||
run: false, | ||
isSupported: true, | ||
transcript: null | ||
} | ||
}, | ||
created() { | ||
if (!annyang) { | ||
this.isSupported = false | ||
console.error('Speech Recognition is not supported') | ||
} | ||
}, | ||
mounted() { | ||
annyang.addCallback('result', (phrases) => { | ||
this.$parent.searchFor = phrases[0] | ||
}) | ||
}, | ||
beforeDestroy() { | ||
annyang.removeCallback() | ||
}, | ||
methods: { | ||
toggle() { | ||
return this.run ? this.stop() : this.start() | ||
}, | ||
stop() { | ||
this.run = false | ||
annyang.abort() | ||
}, | ||
start() { | ||
this.run = true | ||
annyang.start() | ||
// NOTE: testing | ||
// setTimeout(() => { | ||
// annyang.trigger('Time for some thrilling heroics') | ||
// }, 1000) | ||
} | ||
}, | ||
watch: { | ||
searchFor(val) { | ||
if (!val) { | ||
this.transcript = null | ||
this.stop() | ||
} | ||
} | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.