all repos — litestore @ b848c794a61edfefec708ccf8cfd454bf8019056

A minimalist nosql document store.

Minor fixes.
h3rald h3rald@h3rald.com
Sat, 16 May 2015 22:50:04 +0200
commit

b848c794a61edfefec708ccf8cfd454bf8019056

parent

63fa54a4b8228bb2ee19b2039b4dcd8d0aa0cd3b

3 files changed, 7 insertions(+), 9 deletions(-)

jump to
M admin/js/components/document.jsadmin/js/components/document.js

@@ -7,7 +7,6 @@ // Document module

app.document = {vm: {}}; app.document.vm.init = function() { var vm = this; - vm.dir = app.system.directory; vm.id = m.prop(m.route.param("id")); vm.action = m.route.param("action"); vm.readOnly = true;

@@ -56,9 +55,9 @@ }

// View document in editor vm.viewDocument = function(){ - if (vm.ext === "md" && vm.id().match(new RegExp("^"+vm.dir+"\/md\/"))) { + if (vm.ext === "md" && vm.id().match(new RegExp("^admin\/md\/"))) { // If editing a documentation page, go back to the guide. - m.route("/guide/"+vm.id().replace(/\.md$/, "").replace(new RegExp("^"+vm.dir+"\/md\/"), "")); + m.route("/guide/"+vm.id().replace(/\.md$/, "").replace(new RegExp("^admin\/md\/"), "")); } else { m.route("/document/view/"+vm.id()); }

@@ -249,4 +248,4 @@ ]);

}; u.layout(app.document); -}()); +}());
M admin/js/components/info.jsadmin/js/components/info.js

@@ -18,6 +18,7 @@ };

var readonly = info.read_only ? m("span.label.label-success", "Yes") : m("span.label.label-danger", "No"); var infolist = m(".col-sm-6", [m("ul.list-unstyled", [ li("Version", info.version), + li("Datastore Version", info.datastore_version), li("Size", info.size), li("Mounted Directory", info.directory, info.directory === null), li("Log Level", info.log_level),

@@ -39,4 +40,4 @@ return v;

}; u.layout(app.info); -}()) +}())
M admin/md/architecture.mdadmin/md/architecture.md

@@ -17,8 +17,6 @@

* the Command-Line Interface, which can be used to run the server, import/export/delete data in bulk, and perform maintenance operations on the underlying datastore file (vacuum, optimize). * the RESTful HTTP API, which can be used as the primary way to perform CRUD operation on documents, and manage document tags. -#### Object Model - -##### Document +#### Document Format -##### Tag+#### Document Tagging