debian-mirror-gitlab/app/assets/javascripts/monitoring/stores/state.js

32 lines
636 B
JavaScript
Raw Normal View History

2019-09-04 21:01:54 +05:30
import invalidUrl from '~/lib/utils/invalid_url';
export default () => ({
2020-03-13 15:44:24 +05:30
// API endpoints
2019-09-04 21:01:54 +05:30
metricsEndpoint: null,
deploymentsEndpoint: null,
dashboardEndpoint: invalidUrl,
2020-03-13 15:44:24 +05:30
// Dashboard request parameters
timeRange: null,
currentDashboard: null,
// Dashboard data
2019-09-04 21:01:54 +05:30
emptyState: 'gettingStarted',
showEmptyState: true,
2019-10-12 21:52:04 +05:30
showErrorBanner: true,
2019-12-26 22:10:19 +05:30
dashboard: {
panel_groups: [],
},
2020-03-13 15:44:24 +05:30
allDashboards: [],
2020-01-01 13:55:28 +05:30
2020-03-13 15:44:24 +05:30
// Other project data
2019-09-04 21:01:54 +05:30
deploymentData: [],
environments: [],
2020-03-13 15:44:24 +05:30
environmentsSearchTerm: '',
environmentsLoading: false,
// GitLab paths to other pages
2019-09-30 21:07:59 +05:30
projectPath: null,
2020-03-13 15:44:24 +05:30
logsPath: invalidUrl,
2019-09-04 21:01:54 +05:30
});