feat: add data export functionality to settings page and update admin reports table

- Introduced "Export Data" card in settings for exporting user data as a JSON file.
- Added `exportData` method to `UserService` for handling data export requests.
- Updated admin reports table with a new "Cible" column to display target information.
This commit is contained in:
Mathis HERRIOT
2026-01-29 13:57:07 +01:00
parent 004021ff84
commit aa17c57e26
3 changed files with 74 additions and 2 deletions

View File

@@ -53,4 +53,9 @@ export const UserService = {
});
return data;
},
async exportData(): Promise<any> {
const { data } = await api.get("/users/me/export");
return data;
},
};