gitlab-org--gitlab-foss/app/assets/javascripts/ide/stores/state.js

35 lines
732 B
JavaScript
Raw Normal View History

2018-05-04 08:03:35 -04:00
import { activityBarViews, viewerTypes } from '../constants';
export default () => ({
currentProjectId: '',
currentBranchId: '',
2018-03-23 06:45:43 -04:00
currentMergeRequestId: '',
changedFiles: [],
stagedFiles: [],
endpoints: {},
lastCommitMsg: '',
lastCommitPath: '',
loading: false,
openFiles: [],
parentTreeUrl: '',
trees: {},
projects: {},
leftPanelCollapsed: false,
rightPanelCollapsed: false,
panelResizing: false,
entries: {},
2018-05-04 08:03:35 -04:00
viewer: viewerTypes.edit,
delayViewerUpdated: false,
currentActivityView: activityBarViews.edit,
2018-05-03 04:30:44 -04:00
unusedSeal: true,
fileFindVisible: false,
2018-05-29 08:09:19 -04:00
links: {},
errorMessage: null,
entryModal: {
type: '',
path: '',
entry: {},
},
clientsidePreviewEnabled: false,
});