feat(settings): add settings page with server, watchdog and notification config
- Add new Settings view with form controls for server, watchdog and notification settings - Implement API endpoints for getting and saving settings - Add settings route and sidebar navigation item - Update button styles to include text color variable - Change default app target to local development address
This commit is contained in:
@@ -34,7 +34,14 @@ api.interceptors.response.use(
|
||||
|
||||
export const systemApi = {
|
||||
getStatus: () => api.get('/system/getStatus'),
|
||||
getSoftwareInfo: () => api.get('/system/getSoftwareInfo')
|
||||
getSoftwareInfo: () => api.get('/system/getSoftwareInfo'),
|
||||
getSystemInfo: () => api.get('/system/info'),
|
||||
getSettings: (key) => {
|
||||
const url = key ? `/system/settings/get?key=${key}` : '/system/settings/get';
|
||||
return api.get(url);
|
||||
},
|
||||
setSettings: (settings) =>
|
||||
api.post('/system/settings/set', settings)
|
||||
};
|
||||
|
||||
export const authApi = {
|
||||
@@ -109,10 +116,6 @@ export const monitorApi = {
|
||||
getSystemStats: () => api.get('/monitor/stats')
|
||||
};
|
||||
|
||||
export const systemInfoApi = {
|
||||
getSystemInfo: () => api.get('/system/info')
|
||||
};
|
||||
|
||||
export default api;
|
||||
|
||||
export const TODO_API_NOTES = {
|
||||
|
||||
Reference in New Issue
Block a user