Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
updated render note help
zadam4d110aa14377
diff --git a/src/public/app/widgets/type_widgets/render.js b/src/public/app/widgets/type_widgets/render.jsindex 98c433381f..ceb6802613 100644--- a/src/public/app/widgets/type_widgets/render.js+++ b/src/public/app/widgets/type_widgets/render.js@@ -6,7 +6,7 @@ const TPL = `<div class="note-detail-render-help alert alert-warning" style="margin: 50px; padding: 20px;"><p><strong>This help note is shown because this note of type Render HTML doesn't have required relation to function properly.</strong></p>- <p>Render HTML note type is used for <a href="https://github.com/zadam/trilium/wiki/Scripts">scripting</a>. In short, you have a HTML code note (optionally with some JavaScript) and this note will render it. To make it work, you need to define a relation (in <a class="show-attributes-button">Attributes dialog</a>) called "renderNote" pointing to the HTML note to render. Once that's defined you can click on the "play" button to render.</p>+ <p>Render HTML note type is used for <a class="external" href="https://github.com/zadam/trilium/wiki/Scripts">scripting</a>. In short, you have a HTML code note (optionally with some JavaScript) and this note will render it. To make it work, you need to define a <a class="external" href="https://github.com/zadam/trilium/wiki/Attributes">relation</a> called "renderNote" pointing to the HTML note to render.</p></div><div class="note-detail-render-content" style="height: 100%; overflow: auto;"></div>diff --git a/src/services/auth.js b/src/services/auth.jsindex e5ec51980f..b6ec61311e 100644--- a/src/services/auth.js+++ b/src/services/auth.js@@ -26,7 +26,7 @@ function checkAuth(req, res, next) {// currently we're doing that for file upload because handling form data seems to be difficultfunction checkApiAuthOrElectron(req, res, next) {if (!req.session.loggedIn && !utils.isElectron() && !noAuthentication) {- reject(req, res, "Not authorized");+ reject(req, res, "Logged in session not found");}else {next();@@ -35,7 +35,7 @@ function checkApiAuthOrElectron(req, res, next) {function checkApiAuth(req, res, next) {if (!req.session.loggedIn && !noAuthentication) {- reject(req, res, "Not authorized");+ reject(req, res, "Logged in session not found");}else {next();@@ -64,7 +64,7 @@ function checkToken(req, res, next) {const token = req.headers.authorization;if (sql.getValue("SELECT COUNT(*) FROM api_tokens WHERE isDeleted = 0 AND token = ?", [token]) === 0) {- reject(req, res, "Not authorized");+ reject(req, res, "Token not found");}else {next();