ing
This commit is contained in:
parent
1c29a83369
commit
2af851285c
|
@ -24,7 +24,7 @@ import * as InfraStore from '../../../store/infra/infra';
|
||||||
styleUrls: ['./display.component.scss']
|
styleUrls: ['./display.component.scss']
|
||||||
})
|
})
|
||||||
export class DisplayComponent implements OnInit, AfterContentInit, OnDestroy {
|
export class DisplayComponent implements OnInit, AfterContentInit, OnDestroy {
|
||||||
private infraDisplayType$: Observable<InfraDisplayType>;
|
infraDisplayType$: Observable<InfraDisplayType>;
|
||||||
|
|
||||||
displaySidebar = false;
|
displaySidebar = false;
|
||||||
selectedInfraSubscription: Subscription | null;
|
selectedInfraSubscription: Subscription | null;
|
||||||
|
|
|
@ -2,7 +2,8 @@ import { Type } from '@angular/core';
|
||||||
import {
|
import {
|
||||||
Selector,
|
Selector,
|
||||||
createSelector,
|
createSelector,
|
||||||
combineReducers
|
combineReducers,
|
||||||
|
compose
|
||||||
} from '@ngrx/store';
|
} from '@ngrx/store';
|
||||||
|
|
||||||
import * as ConfigStore from './config';
|
import * as ConfigStore from './config';
|
||||||
|
@ -19,10 +20,17 @@ export const EFFECTS: Type<any>[] = [
|
||||||
RequestStore.RequestEffects,
|
RequestStore.RequestEffects,
|
||||||
];
|
];
|
||||||
|
|
||||||
export const REDUCER = combineReducers({
|
export function reducer(state: any, action: any) {
|
||||||
|
return combineReducers({
|
||||||
config: ConfigStore.reducer,
|
config: ConfigStore.reducer,
|
||||||
request: RequestStore.reducer,
|
request: RequestStore.reducer,
|
||||||
});
|
})(state, action);
|
||||||
|
}
|
||||||
|
|
||||||
|
// export const REDUCER = combineReducers({
|
||||||
|
// config: ConfigStore.reducer,
|
||||||
|
// request: RequestStore.reducer,
|
||||||
|
// });
|
||||||
|
|
||||||
export function getSelectors<S>(selector: Selector<any, State>) {
|
export function getSelectors<S>(selector: Selector<any, State>) {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -2,7 +2,8 @@ import { Type } from '@angular/core';
|
||||||
import {
|
import {
|
||||||
Selector,
|
Selector,
|
||||||
createSelector,
|
createSelector,
|
||||||
combineReducers
|
combineReducers,
|
||||||
|
compose
|
||||||
} from '@ngrx/store';
|
} from '@ngrx/store';
|
||||||
|
|
||||||
import * as InterfacesStore from './interfaces';
|
import * as InterfacesStore from './interfaces';
|
||||||
|
@ -19,10 +20,17 @@ export const EFFECTS: Type<any>[] = [
|
||||||
UserStore.UserEffects,
|
UserStore.UserEffects,
|
||||||
];
|
];
|
||||||
|
|
||||||
export const REDUCER = combineReducers({
|
export function reducer(state: any, action: any) {
|
||||||
|
return combineReducers({
|
||||||
interfaces: InterfacesStore.reducer,
|
interfaces: InterfacesStore.reducer,
|
||||||
user: UserStore.reducer,
|
user: UserStore.reducer,
|
||||||
});
|
})(state, action);
|
||||||
|
}
|
||||||
|
|
||||||
|
// export const REDUCER = combineReducers({
|
||||||
|
// interfaces: InterfacesStore.reducer,
|
||||||
|
// user: UserStore.reducer,
|
||||||
|
// });
|
||||||
|
|
||||||
export function getSelectors<S>(selector: Selector<any, State>) {
|
export function getSelectors<S>(selector: Selector<any, State>) {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -24,10 +24,10 @@ export const EFFECTS: Type<any>[] = [
|
||||||
|
|
||||||
export const REDUCERS: ActionReducerMap<any> = {
|
export const REDUCERS: ActionReducerMap<any> = {
|
||||||
router: fromRouter.routerReducer,
|
router: fromRouter.routerReducer,
|
||||||
discovery: DiscoveryStore.REDUCER,
|
discovery: DiscoveryStore.reducer,
|
||||||
environment: EnvironmentStore.REDUCER,
|
environment: EnvironmentStore.reducer,
|
||||||
infra: InfraStore.REDUCER,
|
infra: InfraStore.reducer,
|
||||||
ui: UIStore.REDUCER,
|
ui: UIStore.reducer,
|
||||||
};
|
};
|
||||||
|
|
||||||
// console.log all actions
|
// console.log all actions
|
||||||
|
|
|
@ -2,7 +2,8 @@ import { Type } from '@angular/core';
|
||||||
import {
|
import {
|
||||||
Selector,
|
Selector,
|
||||||
createSelector,
|
createSelector,
|
||||||
combineReducers
|
combineReducers,
|
||||||
|
compose
|
||||||
} from '@ngrx/store';
|
} from '@ngrx/store';
|
||||||
|
|
||||||
import * as InfraStore from './infra';
|
import * as InfraStore from './infra';
|
||||||
|
@ -16,9 +17,15 @@ export const EFFECTS: Type<any>[] = [
|
||||||
InfraStore.InfraEffects,
|
InfraStore.InfraEffects,
|
||||||
];
|
];
|
||||||
|
|
||||||
export const REDUCER = combineReducers({
|
export function reducer(state: any, action: any) {
|
||||||
|
return combineReducers({
|
||||||
infra: InfraStore.reducer,
|
infra: InfraStore.reducer,
|
||||||
});
|
})(state, action);
|
||||||
|
}
|
||||||
|
|
||||||
|
// export const REDUCER = combineReducers({
|
||||||
|
// infra: InfraStore.reducer,
|
||||||
|
// });
|
||||||
|
|
||||||
export function getSelectors<S>(selector: Selector<any, State>) {
|
export function getSelectors<S>(selector: Selector<any, State>) {
|
||||||
return {
|
return {
|
||||||
|
|
|
@ -2,7 +2,8 @@ import { Type } from '@angular/core';
|
||||||
import {
|
import {
|
||||||
Selector,
|
Selector,
|
||||||
createSelector,
|
createSelector,
|
||||||
combineReducers
|
combineReducers,
|
||||||
|
compose
|
||||||
} from '@ngrx/store';
|
} from '@ngrx/store';
|
||||||
|
|
||||||
import * as LayoutStore from './layout';
|
import * as LayoutStore from './layout';
|
||||||
|
@ -16,9 +17,16 @@ export const EFFECTS: Type<any>[] = [
|
||||||
LayoutStore.LayoutEffects,
|
LayoutStore.LayoutEffects,
|
||||||
];
|
];
|
||||||
|
|
||||||
export const REDUCER = combineReducers({
|
export function reducer(state: any, action: any) {
|
||||||
|
return combineReducers({
|
||||||
layout: LayoutStore.reducer,
|
layout: LayoutStore.reducer,
|
||||||
});
|
})(state, action);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// export const REDUCER = combineReducers({
|
||||||
|
// layout: LayoutStore.reducer,
|
||||||
|
// });
|
||||||
|
|
||||||
export function getSelectors<S>(selector: Selector<any, State>) {
|
export function getSelectors<S>(selector: Selector<any, State>) {
|
||||||
return {
|
return {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user