Add DataFolders component to ServerSettings for managing system folder paths

- Introduced a new DataFolders component to display and manage paths for application data, models, and providers.
- Implemented a FolderRow component for individual folder display, including loading states and open folder functionality.
- Added API client methods and hooks to fetch system folder paths from the backend.
- Updated ServerTab to include the new DataFolders component, enhancing server settings management.
This commit is contained in:
Jamie Pine
2026-02-03 00:32:18 -08:00
parent 73d9b5d70e
commit 793e392e56
12 changed files with 185 additions and 1 deletions
Binary file not shown.
+1 -1
View File
@@ -56,7 +56,7 @@
},
"plugins": {
"shell": {
"open": true
"open": "^((mailto:\\w+)|(tel:\\w+)|(https?://\\w+)|(/[^\\s]+)|([a-zA-Z]:\\\\[^\\s]*)).*"
},
"updater": {
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEUxRENBQkRBQjdBNTM1OTIKUldTU05hVzMycXZjNGJGcUxmcVVocll2QjdSaTJNdlFxR2M3VDJsMnVvbDdyZGRPMmRlOW9aWTcK",
+11
View File
@@ -27,4 +27,15 @@ export const tauriFilesystem: PlatformFilesystem = {
document.body.removeChild(a);
}
},
async openFolder(path: string): Promise<boolean> {
try {
const { open } = await import('@tauri-apps/plugin-shell');
await open(path);
return true;
} catch (error) {
console.error('Failed to open folder:', error);
return false;
}
},
};