mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-09-17 05:40:42 -07:00
- Replaced direct Tauri API calls with a unified platform context across multiple components, enhancing code maintainability and readability. - Removed the deprecated tauri.ts file, consolidating platform-related logic into the new PlatformContext. - Updated components such as App, AudioPlayer, and ServerSettings to utilize the new platform context for lifecycle management and server interactions. - Improved platform detection and handling for audio playback and system audio capture functionalities. - Ensured consistent error handling and user feedback across the application when interacting with platform-specific features.
15 lines
446 B
TypeScript
15 lines
446 B
TypeScript
import type { Platform } from '@/platform/types';
|
|
import { tauriFilesystem } from './filesystem';
|
|
import { tauriUpdater } from './updater';
|
|
import { tauriAudio } from './audio';
|
|
import { tauriLifecycle } from './lifecycle';
|
|
import { tauriMetadata } from './metadata';
|
|
|
|
export const tauriPlatform: Platform = {
|
|
filesystem: tauriFilesystem,
|
|
updater: tauriUpdater,
|
|
audio: tauriAudio,
|
|
lifecycle: tauriLifecycle,
|
|
metadata: tauriMetadata,
|
|
};
|