debian-mirror-gitlab/app/assets/javascripts/monitoring/stores/state.js
2020-03-13 15:44:24 +05:30

31 lines
636 B
JavaScript

import invalidUrl from '~/lib/utils/invalid_url';
export default () => ({
// API endpoints
metricsEndpoint: null,
deploymentsEndpoint: null,
dashboardEndpoint: invalidUrl,
// Dashboard request parameters
timeRange: null,
currentDashboard: null,
// Dashboard data
emptyState: 'gettingStarted',
showEmptyState: true,
showErrorBanner: true,
dashboard: {
panel_groups: [],
},
allDashboards: [],
// Other project data
deploymentData: [],
environments: [],
environmentsSearchTerm: '',
environmentsLoading: false,
// GitLab paths to other pages
projectPath: null,
logsPath: invalidUrl,
});