mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
support for note path
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user