adbf6149cf
**Why?** - This is needed for the Web Terminal feature. https://gitlab.com/gitlab-org/gitlab-ee/issues/5426 **Notes:** - Introduces a `pane` Vuex module. - Some views should not be kept alive (i.e. job details). This is why a `keepAlive` flag was introduced for views.
34 lines
732 B
JavaScript
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,
|
|
});
|