mirror of
https://github.com/zadam/trilium.git
synced 2025-10-30 09:56:36 +01:00
Script API changes, finished porting reddit plugin, reddit importer tar file
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
const crypto = require('crypto');
|
||||
const randtoken = require('rand-token').generator({source: 'crypto'});
|
||||
const unescape = require('unescape');
|
||||
|
||||
function newNoteId() {
|
||||
return randomString(12);
|
||||
@@ -129,6 +130,10 @@ async function stopWatch(what, func) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
function unescapeHtml(str) {
|
||||
return unescape(str);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
randomSecureToken,
|
||||
randomString,
|
||||
@@ -153,5 +158,6 @@ module.exports = {
|
||||
getDateTimeForFile,
|
||||
sanitizeSql,
|
||||
assertArguments,
|
||||
stopWatch
|
||||
stopWatch,
|
||||
unescapeHtml
|
||||
};
|
||||
Reference in New Issue
Block a user