mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 01:53:33 -06:00
35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
import { types } from 'mobx-state-tree';
|
|
import { SearchStore } from './../SearchStore/SearchStore';
|
|
import { ServerStatsStore } from './../ServerStatsStore/ServerStatsStore';
|
|
import { NavStore } from './../NavStore/NavStore';
|
|
import { AlertListStore } from './../AlertListStore/AlertListStore';
|
|
import { ViewStore } from './../ViewStore/ViewStore';
|
|
import { FolderStore } from './../FolderStore/FolderStore';
|
|
import { PermissionsStore } from './../PermissionsStore/PermissionsStore';
|
|
|
|
export const RootStore = types.model({
|
|
search: types.optional(SearchStore, {
|
|
sections: [],
|
|
}),
|
|
serverStats: types.optional(ServerStatsStore, {
|
|
stats: [],
|
|
}),
|
|
nav: types.optional(NavStore, {}),
|
|
alertList: types.optional(AlertListStore, {
|
|
rules: [],
|
|
}),
|
|
permissions: types.optional(PermissionsStore, {
|
|
fetching: false,
|
|
items: [],
|
|
}),
|
|
view: types.optional(ViewStore, {
|
|
path: '',
|
|
query: {},
|
|
routeParams: {},
|
|
}),
|
|
folder: types.optional(FolderStore, {}),
|
|
});
|
|
|
|
type IRootStoreType = typeof RootStore.Type;
|
|
export interface IRootStore extends IRootStoreType {}
|