31 lines
636 B
JavaScript
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,
|
|
});
|