mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-07-21 11:14:38 +02:00
Updates to downloader, audio track ordering, hard deleting from file system, UI updates and fixes
This commit is contained in:
parent
105451ebf1
commit
f309e1fcf2
27 changed files with 561 additions and 19031 deletions
52
plugins/haptics.js
Normal file
52
plugins/haptics.js
Normal file
|
@ -0,0 +1,52 @@
|
|||
import Vue from 'vue'
|
||||
import { Haptics, ImpactStyle, NotificationType } from '@capacitor/haptics'
|
||||
|
||||
const hapticsImpactHeavy = async () => {
|
||||
await Haptics.impact({ style: ImpactStyle.Heavy });
|
||||
}
|
||||
Vue.prototype.$hapticsImpactHeavy = hapticsImpactHeavy
|
||||
|
||||
const hapticsImpactMedium = async () => {
|
||||
await Haptics.impact({ style: ImpactStyle.Medium });
|
||||
}
|
||||
Vue.prototype.$hapticsImpactMedium = hapticsImpactMedium
|
||||
|
||||
const hapticsImpactLight = async () => {
|
||||
await Haptics.impact({ style: ImpactStyle.Light });
|
||||
};
|
||||
Vue.prototype.$hapticsImpactLight = hapticsImpactLight
|
||||
|
||||
const hapticsVibrate = async () => {
|
||||
await Haptics.vibrate();
|
||||
};
|
||||
Vue.prototype.$hapticsVibrate = hapticsVibrate
|
||||
|
||||
const hapticsNotificationSuccess = async () => {
|
||||
await Haptics.notification({ type: NotificationType.Success });
|
||||
};
|
||||
Vue.prototype.$hapticsNotificationSuccess = hapticsNotificationSuccess
|
||||
|
||||
const hapticsNotificationWarning = async () => {
|
||||
await Haptics.notification({ type: NotificationType.Warning });
|
||||
};
|
||||
Vue.prototype.$hapticsNotificationWarning = hapticsNotificationWarning
|
||||
|
||||
const hapticsNotificationError = async () => {
|
||||
await Haptics.notification({ type: NotificationType.Error });
|
||||
};
|
||||
Vue.prototype.$hapticsNotificationError = hapticsNotificationError
|
||||
|
||||
const hapticsSelectionStart = async () => {
|
||||
await Haptics.selectionStart();
|
||||
};
|
||||
Vue.prototype.$hapticsSelectionStart = hapticsSelectionStart
|
||||
|
||||
const hapticsSelectionChanged = async () => {
|
||||
await Haptics.selectionChanged();
|
||||
};
|
||||
Vue.prototype.$hapticsSelectionChanged = hapticsSelectionChanged
|
||||
|
||||
const hapticsSelectionEnd = async () => {
|
||||
await Haptics.selectionEnd();
|
||||
};
|
||||
Vue.prototype.$hapticsSelectionEnd = hapticsSelectionEnd
|
Loading…
Add table
Add a link
Reference in a new issue