Background gradients, migrate from CSS to SCSS, remove !important
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { all, apply, call, fork, take } from 'redux-saga/effects';
|
||||
|
||||
import watchers from './watchers';
|
||||
import { initializeAppService } from './services';
|
||||
import { initializeCoreService } from './services';
|
||||
import { socket } from '../../api';
|
||||
import { removeAccessToken } from '../../utils/access-token-storage';
|
||||
import ActionTypes from '../../constants/ActionTypes';
|
||||
@@ -11,7 +11,7 @@ export default function* () {
|
||||
yield all(watchers.map((watcher) => fork(watcher)));
|
||||
|
||||
yield apply(socket, socket.connect);
|
||||
yield fork(initializeAppService);
|
||||
yield fork(initializeCoreService);
|
||||
|
||||
yield take(ActionTypes.LOGOUT);
|
||||
|
||||
@@ -9,15 +9,15 @@ import {
|
||||
fetchUsersRequest,
|
||||
} from '../requests';
|
||||
import { pathsMatchSelector } from '../../../selectors';
|
||||
import { appInitialized } from '../../../actions';
|
||||
import { coreInitialized } from '../../../actions';
|
||||
import i18n from '../../../i18n';
|
||||
import Paths from '../../../constants/Paths';
|
||||
|
||||
export function* loadLocaleService(language) {
|
||||
yield call(i18n.loadAppLocale, language);
|
||||
yield call(i18n.loadCoreLocale, language);
|
||||
}
|
||||
|
||||
export function* initializeAppService() {
|
||||
export function* initializeCoreService() {
|
||||
const {
|
||||
payload: {
|
||||
user: { isAdmin },
|
||||
@@ -40,5 +40,5 @@ export function* initializeAppService() {
|
||||
yield call(runPathActionsService, pathsMatch);
|
||||
yield call(loadLocaleService, i18n.language);
|
||||
|
||||
yield put(appInitialized());
|
||||
yield put(coreInitialized());
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
export * from './router';
|
||||
export * from './socket';
|
||||
export * from './login';
|
||||
export * from './app';
|
||||
export * from './core';
|
||||
export * from './modal';
|
||||
export * from './user';
|
||||
export * from './project';
|
||||
@@ -5,7 +5,7 @@ import { deleteNotificationsInCurrentCardService } from './notifications';
|
||||
import { fetchBoardRequest } from '../requests';
|
||||
import {
|
||||
currentBoardSelector,
|
||||
isAppInitializingSelector,
|
||||
isCoreInitializingSelector,
|
||||
pathsMatchSelector,
|
||||
} from '../../../selectors';
|
||||
import Paths from '../../../constants/Paths';
|
||||
@@ -63,9 +63,9 @@ export function* locationChangedService() {
|
||||
}
|
||||
}
|
||||
|
||||
const isAppInitializing = yield select(isAppInitializingSelector);
|
||||
const isCoreInitializing = yield select(isCoreInitializingSelector);
|
||||
|
||||
if (!isAppInitializing) {
|
||||
if (!isCoreInitializing) {
|
||||
yield call(runPathActionsService, pathsMatch);
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
import { call, select } from 'redux-saga/effects';
|
||||
|
||||
import loginSaga from './login';
|
||||
import appSaga from './app';
|
||||
import coreSaga from './core';
|
||||
import { accessTokenSelector } from '../selectors';
|
||||
|
||||
export default function* () {
|
||||
@@ -11,5 +11,5 @@ export default function* () {
|
||||
yield call(loginSaga);
|
||||
}
|
||||
|
||||
yield call(appSaga);
|
||||
yield call(coreSaga);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user