remove unused utils

This commit is contained in:
SrGooglo 2025-02-10 22:27:16 +00:00
parent 06dcf0b961
commit 79b1f620a3
2 changed files with 1 additions and 36 deletions

View File

@ -1,34 +0,0 @@
import { Haptics, ImpactStyle } from "@capacitor/haptics"
export default {
selectionStart: async () => {
const enabled = window.app.cores.settings.get("haptic_feedback")
if (enabled) {
await Haptics.selectionStart()
}
},
selectionChanged: async () => {
const enabled = window.app.cores.settings.get("haptic_feedback")
if (enabled) {
await Haptics.selectionChanged()
}
},
selectionEnd: async () => {
const enabled = window.app.cores.settings.get("haptic_feedback")
if (enabled) {
await Haptics.selectionEnd()
}
},
impact: async (style = "Medium") => {
const enabled = window.app.cores.settings.get("haptic_feedback")
if (enabled) {
style = String(style).toTitleCase()
await Haptics.impact({ style: ImpactStyle[style] })
}
}
}

View File

@ -1,8 +1,7 @@
export { default as findChildById } from "./findChildById" export { default as findChildById } from "./findChildById"
export { default as cursorPosition } from "./cursorPosition" export { default as cursorPosition } from "./cursorPosition"
export { default as getBase64 } from "./getBase64" export { default as getBase64 } from "./getBase64"
export { default as Haptics } from "./haptics"
export { default as processString } from "./processString" export { default as processString } from "./processString"
export { default as deleteInternalStorage } from "./deleteInternalStorage" export { default as deleteInternalStorage } from "./deleteInternalStorage"
export { default as handleOpenDevTools } from "./handleOpenDevTools" export { default as handleOpenDevTools } from "./handleOpenDevTools"
export { default as copyToClipboard } from "./copyToClipboard" export { default as copyToClipboard } from "./copyToClipboard"