support for note path

This commit is contained in:
azivner
2017-11-19 08:47:22 -05:00
parent cc3c9d6428
commit b22eb2db1e
7 changed files with 86 additions and 55 deletions

View File

@@ -6,6 +6,14 @@ function newNoteId() {
return randomString(12);
}
function newNoteTreeId() {
return randomString(8);
}
function newNoteHistoryId() {
return randomString(12);
}
const ALPHA_NUMERIC = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
function randomString(length) {
@@ -63,6 +71,8 @@ module.exports = {
randomString,
nowTimestamp,
newNoteId,
newNoteTreeId,
newNoteHistoryId,
toBase64,
fromBase64,
hmac,