UNPKG

@craftercms/studio-ui

Version:

Services, components, models & utils to build CrafterCMS authoring extensions.

56 lines (54 loc) 2.74 kB
/* * Copyright (C) 2007-2022 Crafter Software Corporation. All Rights Reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 3 as published by * the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* * Copyright (C) 2007-2022 Crafter Software Corporation. All Rights Reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3 as published by * the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ import { createAction } from '@reduxjs/toolkit'; // region Login export const login = /*#__PURE__*/ createAction('LOGIN'); export const loginComplete = /*#__PURE__*/ createAction('LOGIN_COMPLETE'); export const loginFailed = /*#__PURE__*/ createAction('LOGIN_FAILED'); // endregion // region Log Out export const logout = /*#__PURE__*/ createAction('LOGOUT'); export const logoutComplete = /*#__PURE__*/ createAction('LOGOUT_COMPLETE'); export const logoutFailed = /*#__PURE__*/ createAction('LOGOUT_FAILED'); // endregion // region User Session control export const refreshAuthToken = /*#__PURE__*/ createAction('REFRESH_AUTH_TOKEN'); export const refreshAuthTokenComplete = /*#__PURE__*/ createAction('REFRESH_AUTH_TOKEN_COMPLETE'); export const refreshAuthTokenFailed = /*#__PURE__*/ createAction('REFRESH_AUTH_TOKEN_FAILED'); // Worker => Tabs export const sharedWorkerToken = /*#__PURE__*/ createAction('SHARED_WORKER_TOKEN'); export const sharedWorkerUnauthenticated = /*#__PURE__*/ createAction('SHARED_WORKER_UNAUTHENTICATED'); export const sharedWorkerError = /*#__PURE__*/ createAction('SHARED_WORKER_ERROR'); // Tabs => Worker export const sharedWorkerConnect = /*#__PURE__*/ createAction('CONNECT'); export const sharedWorkerDisconnect = /*#__PURE__*/ createAction('DISCONNECT'); export const sharedWorkerTimeout = /*#__PURE__*/ createAction('TIMEOUT'); // endregion