feat: add profile, class unenroll, notify toggles, and keep sidebar width

Give admins a profile password page, class removal, and SMS/email/bot checkboxes, and stop the sidebar from shrinking on edit pages.
This commit is contained in:
2026-08-15 23:48:18 +03:30
parent 7b083d5dbc
commit 3f220dda52
13 changed files with 427 additions and 17 deletions
+1
View File
@@ -5,5 +5,6 @@ export const authApi = {
login: (data) => axiosInstance.post('/auth/login', data),
refresh: (refreshToken) => axiosInstance.post('/auth/refresh', { refreshToken }),
logout: (refreshToken) => axiosInstance.post('/auth/logout', { refreshToken }),
changePassword: (data) => axiosInstance.put('/auth/change-password', data),
getSelf: () => axiosInstance.get('/users/user/get-self')
};
+4 -1
View File
@@ -8,5 +8,8 @@ export const classApi = {
create: (data) => axiosInstance.post('/classes/admin/create', data),
update: (id, data) => axiosInstance.put(`/classes/admin/update/${id}`, data),
delete: (id) => axiosInstance.delete(`/classes/admin/delete/${id}`),
registerUsers: (classId, userIds) => axiosInstance.post(`/classes/admin/${classId}/register-users`, { userIds })
registerUsers: (classId, userIds, notify) =>
axiosInstance.post(`/classes/admin/${classId}/register-users`, { userIds, notify }),
removeUser: (classId, userId) =>
axiosInstance.delete(`/classes/admin/${classId}/students/${userId}`)
};