mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 18:36:30 +01:00 
			
		
		
		
	updated render note help
This commit is contained in:
		| @@ -6,7 +6,7 @@ const TPL = ` | |||||||
|     <div class="note-detail-render-help alert alert-warning" style="margin: 50px; padding: 20px;"> |     <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><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> | ||||||
|  |  | ||||||
|     <div class="note-detail-render-content" style="height: 100%; overflow: auto;"></div> |     <div class="note-detail-render-content" style="height: 100%; overflow: auto;"></div> | ||||||
|   | |||||||
| @@ -26,7 +26,7 @@ function checkAuth(req, res, next) { | |||||||
| // currently we're doing that for file upload because handling form data seems to be difficult | // currently we're doing that for file upload because handling form data seems to be difficult | ||||||
| function checkApiAuthOrElectron(req, res, next) { | function checkApiAuthOrElectron(req, res, next) { | ||||||
|     if (!req.session.loggedIn && !utils.isElectron() && !noAuthentication) { |     if (!req.session.loggedIn && !utils.isElectron() && !noAuthentication) { | ||||||
|         reject(req, res, "Not authorized"); |         reject(req, res, "Logged in session not found"); | ||||||
|     } |     } | ||||||
|     else { |     else { | ||||||
|         next(); |         next(); | ||||||
| @@ -35,7 +35,7 @@ function checkApiAuthOrElectron(req, res, next) { | |||||||
|  |  | ||||||
| function checkApiAuth(req, res, next) { | function checkApiAuth(req, res, next) { | ||||||
|     if (!req.session.loggedIn && !noAuthentication) { |     if (!req.session.loggedIn && !noAuthentication) { | ||||||
|         reject(req, res, "Not authorized"); |         reject(req, res, "Logged in session not found"); | ||||||
|     } |     } | ||||||
|     else { |     else { | ||||||
|         next(); |         next(); | ||||||
| @@ -64,7 +64,7 @@ function checkToken(req, res, next) { | |||||||
|     const token = req.headers.authorization; |     const token = req.headers.authorization; | ||||||
|  |  | ||||||
|     if (sql.getValue("SELECT COUNT(*) FROM api_tokens WHERE isDeleted = 0 AND token = ?", [token]) === 0) { |     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 { |     else { | ||||||
|         next(); |         next(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user