debian-mirror-gitlab/app/assets/javascripts/ide/stores/state.js
2019-12-21 20:55:43 +05:30

34 lines
732 B
JavaScript

import { activityBarViews, viewerTypes } from '../constants';
export default () => ({
currentProjectId: '',
currentBranchId: '',
currentMergeRequestId: '',
changedFiles: [],
stagedFiles: [],
endpoints: {},
lastCommitMsg: '',
lastCommitPath: '',
loading: false,
openFiles: [],
parentTreeUrl: '',
trees: {},
projects: {},
leftPanelCollapsed: false,
rightPanelCollapsed: false,
panelResizing: false,
entries: {},
viewer: viewerTypes.edit,
delayViewerUpdated: false,
currentActivityView: activityBarViews.edit,
unusedSeal: true,
fileFindVisible: false,
links: {},
errorMessage: null,
entryModal: {
type: '',
path: '',
entry: {},
},
clientsidePreviewEnabled: false,
});