Welcome to mirror list, hosted at ThFree Co, Russian Federation.

state.js « store « accessibility_report « reports « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2a4cefea5e68d92933826a6b1b6d3ae8ddad506c (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
26
27
28
export default (initialState = {}) => ({
  endpoint: initialState.endpoint || '',

  isLoading: initialState.isLoading || false,
  hasError: initialState.hasError || false,

  /**
   * Report will have the following format:
   * {
   *   status: {String},
   *   summary: {
   *     total: {Number},
   *     resolved: {Number},
   *     errored: {Number},
   *   },
   *   existing_errors: {Array.<Object>},
   *   existing_notes: {Array.<Object>},
   *   existing_warnings: {Array.<Object>},
   *   new_errors: {Array.<Object>},
   *   new_notes: {Array.<Object>},
   *   new_warnings: {Array.<Object>},
   *   resolved_errors: {Array.<Object>},
   *   resolved_notes: {Array.<Object>},
   *   resolved_warnings: {Array.<Object>},
   * }
   */
  report: initialState.report || {},
});