Implement UI enhancements, change password settings, theme toggle, and custom grid size slider
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m19s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m19s
This commit is contained in:
parent
425598c278
commit
c3b1fe8de1
5 changed files with 226 additions and 26 deletions
|
|
@ -137,6 +137,14 @@ class ApiClient {
|
|||
this.clearTokens();
|
||||
}
|
||||
|
||||
async changePassword(oldPassword: string, newPassword: string) {
|
||||
const res = await this.request('/api/auth/password', {
|
||||
method: 'PUT',
|
||||
body: { old_password: oldPassword, new_password: newPassword },
|
||||
});
|
||||
return res.json();
|
||||
}
|
||||
|
||||
// --- Files ---
|
||||
async listDirectory(path: string = '.') {
|
||||
const res = await this.request(`/api/files/?path=${encodeURIComponent(path)}`);
|
||||
|
|
|
|||
Reference in a new issue