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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user