mirror of
https://github.com/plankanban/planka.git
synced 2025-07-18 20:59:44 +02:00
Some checks are pending
Build and push Docker DEV image / build ([self-hosted arm64], linux/arm/v7) (push) Waiting to run
Build and push Docker DEV image / build ([self-hosted arm64], linux/arm64) (push) Waiting to run
Build and push Docker DEV image / build ([self-hosted x64], linux/amd64) (push) Waiting to run
Build and push Docker DEV image / merge (push) Blocked by required conditions
Build and push Docker DEV image / rerun-failed-jobs (push) Blocked by required conditions
Closes #693
65 lines
1,021 B
JavaScript
65 lines
1,021 B
JavaScript
import ActionTypes from '../constants/ActionTypes';
|
|
|
|
const initializeCore = (
|
|
user,
|
|
board,
|
|
users,
|
|
projects,
|
|
projectManagers,
|
|
boards,
|
|
boardMemberships,
|
|
labels,
|
|
lists,
|
|
cards,
|
|
cardMemberships,
|
|
cardLabels,
|
|
tasks,
|
|
attachments,
|
|
activities,
|
|
notifications,
|
|
) => ({
|
|
type: ActionTypes.CORE_INITIALIZE,
|
|
payload: {
|
|
user,
|
|
board,
|
|
users,
|
|
projects,
|
|
projectManagers,
|
|
boards,
|
|
boardMemberships,
|
|
labels,
|
|
lists,
|
|
cards,
|
|
cardMemberships,
|
|
cardLabels,
|
|
tasks,
|
|
attachments,
|
|
activities,
|
|
notifications,
|
|
},
|
|
});
|
|
|
|
// TODO: with success?
|
|
initializeCore.fetchConfig = (config) => ({
|
|
type: ActionTypes.CORE_INITIALIZE__CONFIG_FETCH,
|
|
payload: {
|
|
config,
|
|
},
|
|
});
|
|
|
|
const logout = (invalidateAccessToken) => ({
|
|
type: ActionTypes.LOGOUT,
|
|
payload: {
|
|
invalidateAccessToken,
|
|
},
|
|
});
|
|
|
|
logout.invalidateAccessToken = () => ({
|
|
type: ActionTypes.LOGOUT__ACCESS_TOKEN_INVALIDATE,
|
|
payload: {},
|
|
});
|
|
|
|
export default {
|
|
initializeCore,
|
|
logout,
|
|
};
|