mirror of
https://github.com/plankanban/planka.git
synced 2025-07-25 08:09:44 +02:00
feat: Add board activity log
This commit is contained in:
parent
777ff467f3
commit
86cfd155f2
72 changed files with 833 additions and 169 deletions
|
@ -16,7 +16,13 @@ export const transformActivity = (activity) => ({
|
|||
|
||||
/* Actions */
|
||||
|
||||
const getActivities = (cardId, data, headers) =>
|
||||
const getActivitiesInBoard = (boardId, data, headers) =>
|
||||
socket.get(`/boards/${boardId}/actions`, data, headers).then((body) => ({
|
||||
...body,
|
||||
items: body.items.map(transformActivity),
|
||||
}));
|
||||
|
||||
const getActivitiesInCard = (cardId, data, headers) =>
|
||||
socket.get(`/cards/${cardId}/actions`, data, headers).then((body) => ({
|
||||
...body,
|
||||
items: body.items.map(transformActivity),
|
||||
|
@ -32,6 +38,7 @@ const makeHandleActivityCreate = (next) => (body) => {
|
|||
};
|
||||
|
||||
export default {
|
||||
getActivities,
|
||||
getActivitiesInBoard,
|
||||
getActivitiesInCard,
|
||||
makeHandleActivityCreate,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue