diff --git a/components/app/AudioPlayer.vue b/components/app/AudioPlayer.vue index 7ae2d5c3..01f84268 100644 --- a/components/app/AudioPlayer.vue +++ b/components/app/AudioPlayer.vue @@ -335,15 +335,18 @@ export default { this.showFullscreen = false } }, - touchstartTrack(e) { + async touchstartTrack(e) { + await this.$hapticsImpactMedium() if (!e || !e.touches || !this.$refs.track || !this.showFullscreen || this.lockUi) return this.touchTrackStart = true }, - selectChapter(chapter) { + async selectChapter(chapter) { + await this.$hapticsImpactMedium() this.seek(chapter.start) this.showChapterModal = false }, - castClick() { + async castClick() { + await this.$hapticsImpactMedium() if (this.isLocalPlayMethod) { this.$eventBus.$emit('cast-local-item') return @@ -362,12 +365,14 @@ export default { this.showFullscreen = false this.forceCloseDropdownMenu() }, - jumpNextChapter() { + async jumpNextChapter() { + await this.$hapticsImpactMedium() if (this.isLoading) return if (!this.nextChapter) return this.seek(this.nextChapter.start) }, - jumpChapterStart() { + async jumpChapterStart() { + await this.$hapticsImpactMedium() if (this.isLoading) return if (!this.currentChapter) { return this.restart() @@ -387,7 +392,8 @@ export default { showSleepTimerModal() { this.$emit('showSleepTimer') }, - setPlaybackSpeed(speed) { + async setPlaybackSpeed(speed) { + await this.$hapticsImpactMedium() console.log(`[AudioPlayer] Set Playback Rate: ${speed}`) this.currentPlaybackRate = speed AbsAudioPlayer.setPlaybackSpeed({ value: speed }) @@ -395,11 +401,13 @@ export default { restart() { this.seek(0) }, - jumpBackwards() { + async jumpBackwards() { + await this.$hapticsImpactMedium() if (this.isLoading) return AbsAudioPlayer.seekBackward({ value: this.jumpBackwardsTime }) }, - jumpForward() { + async jumpForward() { + await this.$hapticsImpactMedium() if (this.isLoading) return AbsAudioPlayer.seekForward({ value: this.jumpForwardTime }) }, @@ -539,6 +547,7 @@ export default { this.seek(time) }, async playPauseClick() { + await this.$hapticsImpactMedium() if (this.isLoading) return this.isPlaying = !!((await AbsAudioPlayer.playPause()) || {}).playing @@ -641,7 +650,8 @@ export default { ts.innerText = currTimeStr } }, - clickMenuAction(action) { + async clickMenuAction(action) { + await this.$hapticsImpactMedium() this.showMoreMenuDialog = false this.$nextTick(() => { if (action === 'lock') { @@ -969,4 +979,4 @@ export default { .fullscreen #playerControls .play-btn .material-icons { font-size: 2.1rem; } - \ No newline at end of file + diff --git a/components/app/SideDrawer.vue b/components/app/SideDrawer.vue index fec146db..152dcf95 100644 --- a/components/app/SideDrawer.vue +++ b/components/app/SideDrawer.vue @@ -137,6 +137,7 @@ export default { this.show = false }, async logout() { + await this.$hapticsImpactMedium() if (this.user) { await this.$axios.$post('/logout').catch((error) => { console.error(error) diff --git a/components/cards/LazyBookCard.vue b/components/cards/LazyBookCard.vue index 899d80f2..5d4090ca 100644 --- a/components/cards/LazyBookCard.vue +++ b/components/cards/LazyBookCard.vue @@ -401,12 +401,13 @@ export default { // Server books may have a local library item this.localLibraryItem = localLibraryItem }, - clickCard(e) { + async clickCard(e) { if (this.isSelectionMode) { e.stopPropagation() e.preventDefault() this.selectBtnClick() } else if (this.recentEpisode) { + await this.$hapticsImpactMedium() var eventBus = this.$eventBus || this.$nuxt.$eventBus if (this.streamIsPlaying) { eventBus.$emit('pause-item') diff --git a/components/connection/ServerConnectForm.vue b/components/connection/ServerConnectForm.vue index 047a37cc..ad220a7f 100644 --- a/components/connection/ServerConnectForm.vue +++ b/components/connection/ServerConnectForm.vue @@ -132,6 +132,7 @@ export default { } }, async connectToServer(config) { + await this.$hapticsImpactMedium() console.log('[ServerConnectForm] connectToServer', config.address) this.processing = true this.serverConfig = { @@ -159,6 +160,7 @@ export default { }, async removeServerConfigClick() { if (!this.serverConfig.id) return + await this.$hapticsImpactMedium() const { value } = await Dialog.confirm({ title: 'Confirm', @@ -189,7 +191,8 @@ export default { this.showForm = true this.showAuth = true }, - newServerConfigClick() { + async newServerConfigClick() { + await this.$hapticsImpactMedium() this.serverConfig = { address: '', userId: '', @@ -348,4 +351,4 @@ export default { this.init() } } - \ No newline at end of file + diff --git a/components/home/BookshelfToolbar.vue b/components/home/BookshelfToolbar.vue index 2acf0037..45b8ec0d 100644 --- a/components/home/BookshelfToolbar.vue +++ b/components/home/BookshelfToolbar.vue @@ -8,7 +8,7 @@

{{ totalEntities }} {{ entityTitle }}

{{ selectedSeriesName }} ({{ totalEntities }})

- {{ !bookshelfListView ? 'view_list' : 'grid_view' }} + {{ !bookshelfListView ? 'view_list' : 'grid_view' }}