2018-11-20 20:47:30 +05:30
|
|
|
export default () => ({
|
|
|
|
jobEndpoint: null,
|
2021-11-18 22:05:49 +05:30
|
|
|
jobLogEndpoint: null,
|
2018-11-20 20:47:30 +05:30
|
|
|
|
2018-12-13 13:39:08 +05:30
|
|
|
// sidebar
|
|
|
|
isSidebarOpen: true,
|
2018-11-20 20:47:30 +05:30
|
|
|
|
|
|
|
isLoading: false,
|
|
|
|
hasError: false,
|
|
|
|
job: {},
|
|
|
|
|
2018-12-13 13:39:08 +05:30
|
|
|
// scroll buttons state
|
|
|
|
isScrollBottomDisabled: true,
|
|
|
|
isScrollTopDisabled: true,
|
2018-11-20 20:47:30 +05:30
|
|
|
|
2018-12-13 13:39:08 +05:30
|
|
|
// Used to check if we should keep the automatic scroll
|
2021-11-18 22:05:49 +05:30
|
|
|
isScrolledToBottomBeforeReceivingJobLog: true,
|
2018-11-20 20:47:30 +05:30
|
|
|
|
2021-11-18 22:05:49 +05:30
|
|
|
jobLog: [],
|
|
|
|
isJobLogComplete: false,
|
|
|
|
jobLogSize: 0,
|
|
|
|
isJobLogSizeVisible: false,
|
|
|
|
jobLogTimeout: 0,
|
2018-11-20 20:47:30 +05:30
|
|
|
|
2021-11-18 22:05:49 +05:30
|
|
|
// used as a query parameter to fetch the job log
|
|
|
|
jobLogState: null,
|
2018-11-20 20:47:30 +05:30
|
|
|
|
2018-12-13 13:39:08 +05:30
|
|
|
// sidebar dropdown & list of jobs
|
2018-11-20 20:47:30 +05:30
|
|
|
isLoadingJobs: false,
|
2018-12-05 23:21:45 +05:30
|
|
|
selectedStage: '',
|
2018-11-20 20:47:30 +05:30
|
|
|
stages: [],
|
|
|
|
jobs: [],
|
2021-09-30 23:02:18 +05:30
|
|
|
|
|
|
|
// to parse partial logs
|
2021-11-18 22:05:49 +05:30
|
|
|
auxiliaryPartialJobLogHelpers: {},
|
2018-11-20 20:47:30 +05:30
|
|
|
});
|