Welcome to mirror list, hosted at ThFree Co, Russian Federation.

state.js « store « static_site_editor « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8c524b4ffe9a783c89497d974742ce26d9ec0276 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const createState = (initialState = {}) => ({
  username: null,
  projectId: null,
  returnUrl: null,
  sourcePath: null,

  isLoadingContent: false,
  isSavingChanges: false,
  isSupportedContent: false,

  isContentLoaded: false,

  originalContent: '',
  content: '',
  title: '',

  submitChangesError: '',
  savedContentMeta: null,

  ...initialState,
});

export default createState;