41 lines
1016 B
JavaScript
41 lines
1016 B
JavaScript
import { INLINE_DIFF_VIEW_TYPE } from '../../constants';
|
|
|
|
export default () => ({
|
|
isLoading: true,
|
|
isTreeLoaded: false,
|
|
batchLoadingState: null,
|
|
retrievingBatches: false,
|
|
addedLines: null,
|
|
removedLines: null,
|
|
endpoint: '',
|
|
endpointUpdateUser: '',
|
|
endpointDiffForPath: '',
|
|
basePath: '',
|
|
commit: null,
|
|
startVersion: null, // Null unless a target diff is selected for comparison that is not the "base" diff
|
|
diffFiles: [],
|
|
coverageFiles: {},
|
|
coverageLoaded: false,
|
|
mergeRequestDiffs: [],
|
|
mergeRequestDiff: null,
|
|
diffViewType: INLINE_DIFF_VIEW_TYPE,
|
|
tree: [],
|
|
treeEntries: {},
|
|
showTreeList: true,
|
|
currentDiffFileId: '',
|
|
projectPath: '',
|
|
viewedDiffFileIds: {},
|
|
commentForms: [],
|
|
highlightedRow: null,
|
|
renderTreeList: true,
|
|
showWhitespace: true,
|
|
viewDiffsFileByFile: false,
|
|
fileFinderVisible: false,
|
|
dismissEndpoint: '',
|
|
showSuggestPopover: true,
|
|
defaultSuggestionCommitMessage: '',
|
|
mrReviews: {},
|
|
latestDiff: true,
|
|
disableVirtualScroller: false,
|
|
});
|