Configuration

State

{
  config: Object, // site config object
  updated: Boolean, // set to true when the config is updated
  editorChanged: Boolean, // set to true when the config editor changes
  isFetching: Boolean // set to true when the config is being fetched
}

Pages

State

{
  pages: Array,
  page: Object, // currently visited page
  isFetching: Boolean, // set to true when the page is being fetched
  updated: Boolean // set to true when the page is updated
}

Collections

State

{
  collections: Array,
  entries: Array,
  currentDocument: Object,
  isFetching: Boolean, // set to true when the document is being fetched
  updated: Boolean // set to true when the document is updated
}

Drafts

State

{
  drafts: Array,
  draft: Object, // currently visited draft
  isFetching: Boolean, // set to true when the draft is being fetched
  updated: Boolean // set to true when the draft is updated
}

Metadata

State

{
  metadata: Object, // stores current document's metadata
  new_field_count: Number, // for naming newly created fields
  key_prefix: String, // Unique component key for sorting MetaArrayItem's properly
  fieldChanged: Boolean // form submit buttons are enabled when true
}

Data Files

State

{
  files: Array, // stores all of the data files
  currentFile: Object, // stores current datafile
  updated: Boolean, // stores upload state
  isFetching: Boolean
}

Static Files

State

{
  files: Array, // stores all of the static files
  isFetching: Boolean,
  uploading: Boolean // stores upload state
}

Utils

State

{
  input: String, // search input
  errors: Array // form errors
}

Notifications

State

{
  notification: Object
}

Selectors; Helper functions for searching contents

filterByTitle(list, input)
filterByFilename(list, input)