mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 01:36:24 +01:00
added support for trilium-sender
This commit is contained in:
@@ -11,7 +11,7 @@ function newNoteTreeId() {
|
||||
return randomString(12);
|
||||
}
|
||||
|
||||
function newnoteRevisionId() {
|
||||
function newNoteRevisionId() {
|
||||
return randomString(12);
|
||||
}
|
||||
|
||||
@@ -27,6 +27,10 @@ function newAttributeId() {
|
||||
return randomString(12);
|
||||
}
|
||||
|
||||
function newApiTokenId() {
|
||||
return randomString(12);
|
||||
}
|
||||
|
||||
function randomString(length) {
|
||||
return randtoken.generate(length);
|
||||
}
|
||||
@@ -126,10 +130,11 @@ module.exports = {
|
||||
parseDateTime,
|
||||
newNoteId,
|
||||
newNoteTreeId,
|
||||
newnoteRevisionId,
|
||||
newNoteRevisionId,
|
||||
newImageId,
|
||||
newNoteImageId,
|
||||
newAttributeId,
|
||||
newApiTokenId,
|
||||
toBase64,
|
||||
fromBase64,
|
||||
hmac,
|
||||
|
||||
Reference in New Issue
Block a user