0.10.2-19 Frontend

This commit is contained in:
2026-03-17 11:58:04 +00:00
parent 7796587f16
commit 46bd235afc
13 changed files with 227 additions and 100 deletions
+9
View File
@@ -415,6 +415,15 @@ export const api = {
method: 'POST'
});
},
async getPref(key) {
return request(`/settings/prefs/${encodeURIComponent(key)}`);
},
async setPref(key, value) {
return request(`/settings/prefs/${encodeURIComponent(key)}`, {
method: 'PUT',
body: JSON.stringify({ value })
});
},
async updateSetting(key, value) {
const result = await request(`/settings/${encodeURIComponent(key)}`, {
method: 'PUT',