test publish
Some checks failed
Deploy / deploy (push) Has been cancelled
Deploy / publish-web (push) Successful in 1m43s
Deploy / publish-tauri (push) Has been cancelled

This commit is contained in:
2025-12-22 19:23:06 +06:00
parent e3d0106d8f
commit 76f0ec74b5
27 changed files with 2123 additions and 1344 deletions

View File

@@ -1,11 +1,22 @@
import { createGlobalState } from '@vueuse/core'
import { createGlobalState, useDevicesList } from '@vueuse/core'
export const usePreferences = createGlobalState(() => {
const audioDevice = shallowRef()
const videoDevice = shallowRef()
const inputDeviceId = shallowRef<MediaDeviceInfo['deviceId']>()
const outputDeviceId = shallowRef<MediaDeviceInfo['deviceId']>()
const {
ensurePermissions,
permissionGranted,
videoInputs,
audioInputs,
audioOutputs,
} = useDevicesList()
return {
audioDevice,
videoDevice,
inputDeviceId,
outputDeviceId,
videoInputs,
audioInputs,
audioOutputs,
}
})