feat(settings): add minimal settings panel

- Add settings icon button next to app title
- Create SettingsModal component with:
  - Show in Dock option (macOS)
  - Version info and check for updates button
  - Config file location with open folder button
- Add settings-related APIs in tauri-api
- Update type definitions for new API methods
This commit is contained in:
Jason
2025-09-07 10:48:27 +08:00
parent 48bd37a74b
commit 77bdeb02fb
4 changed files with 256 additions and 4 deletions

3
src/vite-env.d.ts vendored
View File

@@ -35,6 +35,9 @@ declare global {
onProviderSwitched: (
callback: (data: { appType: string; providerId: string }) => void,
) => Promise<UnlistenFn>;
getSettings: () => Promise<any>;
saveSettings: (settings: any) => Promise<boolean>;
checkForUpdates: () => Promise<void>;
};
platform: {
isMac: boolean;