debian-mirror-gitlab/app/assets/javascripts/jobs/store/state.js
2021-11-18 22:05:49 +05:30

37 lines
714 B
JavaScript

export default () => ({
jobEndpoint: null,
jobLogEndpoint: null,
// sidebar
isSidebarOpen: true,
isLoading: false,
hasError: false,
job: {},
// scroll buttons state
isScrollBottomDisabled: true,
isScrollTopDisabled: true,
// Used to check if we should keep the automatic scroll
isScrolledToBottomBeforeReceivingJobLog: true,
jobLog: [],
isJobLogComplete: false,
jobLogSize: 0,
isJobLogSizeVisible: false,
jobLogTimeout: 0,
// used as a query parameter to fetch the job log
jobLogState: null,
// sidebar dropdown & list of jobs
isLoadingJobs: false,
selectedStage: '',
stages: [],
jobs: [],
// to parse partial logs
auxiliaryPartialJobLogHelpers: {},
});