Improve Samba Global Configuration display in WebUI

Backend:
- Parse global config into structured key-value pairs
- Return parameters array instead of raw text
- Better handling of comments and empty lines

Frontend:
- Add 'Samba Config' tab to shares page
- Display config parameters in readable table format
- Color-code parameter names for clarity
- Add getSambaConfig() method to API client

Co-Authored-By: Patrick <patrick@perlbach24.de>
This commit is contained in:
2026-04-22 01:01:40 +02:00
parent 8402053dd8
commit eec74626d0
3 changed files with 69 additions and 9 deletions
+5
View File
@@ -282,6 +282,11 @@ export class ZFSManagerAPI {
return response.data
}
async getSambaConfig(): Promise<{ parameters: Array<{ key: string; value: string }> }> {
const response = await this.client.get("/api/shares/samba/config")
return response.data
}
// Shares — NFS
async getNfsShares(): Promise<NfsShare[]> {
const response = await this.client.get("/api/shares/nfs")