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

state.js « store « jobs « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: afbc959bb71992d21903f8751e66a0697c9cca8c (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import { __ } from '~/locale';

export default () => ({
  jobEndpoint: null,
  traceEndpoint: null,

  // dropdown options
  stagesEndpoint: null,
  // list of jobs on sidebard
  stageJobsEndpoint: null,

  // job log
  isLoading: false,
  hasError: false,
  job: {},

  // trace
  isLoadingTrace: false,
  hasTraceError: false,

  trace: '',

  isTraceScrolledToBottom: false,
  hasBeenScrolled: false,

  isTraceComplete: false,
  traceSize: 0, // todo_fl: needs to be converted into human readable format in components
  isTraceSizeVisible: false,

  fetchingStatusFavicon: false,
  // used as a query parameter
  traceState: null,
  // used to check if we need to redirect the user - todo_fl:  check if actually needed
  traceStatus: null,

  // sidebar dropdown
  isLoadingStages: false,
  isLoadingJobs: false,
  selectedStage: __('More'),
  stages: [],
  jobs: [],
});