state : {
configuration: {
config: "title: Your awesome title\nemail: [email protected]..", // GET /configuration
isFetching: false, // only render when fetched
editorChanged: false, // for enabling save button on change,
error: '', // e.g "Configuration updated.", "Error"
updated: false // for Save/Saved button
},
pages: {
pages: [ // GET /pages
{ page_id, body, meta },
{ page_id2, body2, meta2 }
],
currentPage: { page_id, body, meta }, // GET /pages/:page_id
isFetching: false,
message: null,
},
collections: {
collections: ['posts', 'movies'], // GET /collections
currentCollection: { // GET /collections/:collection_name
collection_name: 'posts',
meta: {
path: '/posts'
}
},
currentDocuments: [ //GET /collections/:collection_name/documents
{document_id, collection_name, meta},
{document_id, collection_name, meta}
],
currentDocument: { //GET /collections/:collection_name/documents/:document_id
document_id,
collection_name,
body,
meta
},
message: null
},
metadata: {
layout: "post",
categories: "gsoc",
students: [
{
name: "Mert Kahyaoğlu",
email: "[email protected]",
username: "mertkahyaoglu"
},
{
name: "Ankur Singh",
email: "[email protected]",
username: "rush-skills"
}
],
mentors: ["Ben Balter", "Jurgen Leschner", "Parker Moore"]
},
search: {
input: ''
},
static_files: {
files: [{path}, {path2}], // GET /static_files
message: null
},
data: {
files: [{path}, {path2}], // GET /data
message: null
},
git: {
status, // GET /git/status
remote,
branch,
message: null
}
}