ing
This commit is contained in:
parent
c09cbb05ae
commit
d8e0420876
|
@ -1,15 +1,14 @@
|
||||||
import { RPCClientError } from '@loafer/ng-rpc';
|
import { RPCClientError } from '@loafer/ng-rpc';
|
||||||
import { Sensor } from '@overflow/commons-typescript/model/sensor';
|
import { Sensor } from '@overflow/commons-typescript/model/sensor';
|
||||||
import { createEntityAdapter, EntityAdapter, EntityState } from '@ngrx/entity';
|
|
||||||
|
|
||||||
export interface State extends EntityState<Sensor> {
|
export interface State {
|
||||||
error: RPCClientError | null;
|
error: RPCClientError | null;
|
||||||
isPending: boolean;
|
isPending: boolean;
|
||||||
sensor: Sensor | null;
|
sensor: Sensor | null;
|
||||||
}
|
}
|
||||||
export const adapter: EntityAdapter<Sensor> = createEntityAdapter<Sensor>();
|
|
||||||
export const initialState: State = adapter.getInitialState({
|
export const initialState: State = {
|
||||||
error: null,
|
error: null,
|
||||||
isPending: false,
|
isPending: false,
|
||||||
sensor: null,
|
sensor: null,
|
||||||
});
|
};
|
||||||
|
|
|
@ -28,16 +28,12 @@
|
||||||
],
|
],
|
||||||
"styles": [
|
"styles": [
|
||||||
"./node_modules/primeng/resources/primeng.min.css",
|
"./node_modules/primeng/resources/primeng.min.css",
|
||||||
"./node_modules/fullcalendar/dist/fullcalendar.min.css",
|
|
||||||
"./node_modules/quill/dist/quill.snow.css",
|
|
||||||
"src/styles.scss"
|
"src/styles.scss"
|
||||||
],
|
],
|
||||||
"scripts": [
|
"scripts": [
|
||||||
"./node_modules/jquery/dist/jquery.js",
|
"./node_modules/jquery/dist/jquery.js",
|
||||||
"./node_modules/moment/moment.js",
|
"./node_modules/moment/moment.js",
|
||||||
"./node_modules/chart.js/dist/Chart.js",
|
"./node_modules/chart.js/dist/Chart.js"
|
||||||
"./node_modules/fullcalendar/dist/fullcalendar.js",
|
|
||||||
"./node_modules/quill/dist/quill.js"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"configurations": {
|
"configurations": {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user