summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/releases/stores/modules/list/state.js
blob: 164a496d450fa5cbb6ed3447938ea376d0ab4478 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
import { DESCENDING_ORDER, RELEASED_AT } from '../../../constants';

export default ({
  projectId,
  projectPath,
  documentationPath,
  illustrationPath,
  newReleasePath = '',
}) => ({
  projectId,
  projectPath,
  documentationPath,
  illustrationPath,
  newReleasePath,

  isLoading: false,
  hasError: false,
  releases: [],
  restPageInfo: {},
  graphQlPageInfo: {},
  sorting: {
    sort: DESCENDING_ORDER,
    orderBy: RELEASED_AT,
  },
});