debian-mirror-gitlab/app/assets/javascripts/monitoring/stores/state.js
2020-04-08 18:37:08 +05:30

31 lines
635 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: {
panelGroups: [],
},
allDashboards: [],
// Other project data
deploymentData: [],
environments: [],
environmentsSearchTerm: '',
environmentsLoading: false,
// GitLab paths to other pages
projectPath: null,
logsPath: invalidUrl,
});