debian-mirror-gitlab/app/assets/javascripts/cycle_analytics/store/state.js

35 lines
706 B
JavaScript
Raw Normal View History

2021-11-18 22:05:49 +05:30
import {
PAGINATION_SORT_FIELD_END_EVENT,
PAGINATION_SORT_DIRECTION_DESC,
} from '~/cycle_analytics/constants';
2021-06-08 01:23:25 +05:30
export default () => ({
2021-09-30 23:02:18 +05:30
id: null,
2021-10-27 15:23:28 +05:30
features: {},
endpoints: {},
2021-09-30 23:02:18 +05:30
createdAfter: null,
createdBefore: null,
2021-06-08 01:23:25 +05:30
stages: [],
summary: [],
analytics: [],
stats: [],
2021-09-04 01:27:46 +05:30
valueStreams: [],
selectedValueStream: {},
2021-06-08 01:23:25 +05:30
selectedStage: {},
selectedStageEvents: [],
2021-09-04 01:27:46 +05:30
selectedStageError: '',
2021-06-08 01:23:25 +05:30
medians: {},
2021-10-27 15:23:28 +05:30
stageCounts: {},
2021-06-08 01:23:25 +05:30
hasError: false,
isLoading: false,
isLoadingStage: false,
isEmptyStage: false,
2021-09-04 01:27:46 +05:30
permissions: {},
2021-11-18 22:05:49 +05:30
pagination: {
page: null,
hasNextPage: false,
sort: PAGINATION_SORT_FIELD_END_EVENT,
direction: PAGINATION_SORT_DIRECTION_DESC,
},
2021-06-08 01:23:25 +05:30
});