mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 03:29:02 +01:00 
			
		
		
		
	Add new attributes in appropriate locations
This commit is contained in:
		
							parent
							
								
									7729aad1e9
								
							
						
					
					
						commit
						d259931bd2
					
				| @ -47,6 +47,7 @@ UPDATE attributes SET name = 'name', value = 'value' | |||||||
|                                      'top', |                                      'top', | ||||||
|                                      'fullContentWidth', |                                      'fullContentWidth', | ||||||
|                                      'shareHiddenFromTree', |                                      'shareHiddenFromTree', | ||||||
|  |                                      'shareExternalLink', | ||||||
|                                      'shareAlias', |                                      'shareAlias', | ||||||
|                                      'shareOmitDefaultCss', |                                      'shareOmitDefaultCss', | ||||||
|                                      'shareRoot', |                                      'shareRoot', | ||||||
| @ -67,6 +68,7 @@ UPDATE attributes SET name = 'name', value = 'value' | |||||||
|                                      'renderNote', |                                      'renderNote', | ||||||
|                                      'shareCss', |                                      'shareCss', | ||||||
|                                      'shareJs', |                                      'shareJs', | ||||||
|  |                                      'shareTemplate', | ||||||
|                                      'shareFavicon', |                                      'shareFavicon', | ||||||
|                                      'executeButton', |                                      'executeButton', | ||||||
|                                      'keepCurrentHoisting', |                                      'keepCurrentHoisting', | ||||||
| @ -122,6 +124,7 @@ UPDATE attributes SET name = 'name' | |||||||
|                                      'top', |                                      'top', | ||||||
|                                      'fullContentWidth', |                                      'fullContentWidth', | ||||||
|                                      'shareHiddenFromTree', |                                      'shareHiddenFromTree', | ||||||
|  |                                      'shareExternalLink', | ||||||
|                                      'shareAlias', |                                      'shareAlias', | ||||||
|                                      'shareOmitDefaultCss', |                                      'shareOmitDefaultCss', | ||||||
|                                      'shareRoot', |                                      'shareRoot', | ||||||
| @ -142,6 +145,7 @@ UPDATE attributes SET name = 'name' | |||||||
|                                      'renderNote', |                                      'renderNote', | ||||||
|                                      'shareCss', |                                      'shareCss', | ||||||
|                                      'shareJs', |                                      'shareJs', | ||||||
|  |                                      'shareTemplate', | ||||||
|                                      'shareFavicon', |                                      'shareFavicon', | ||||||
|                                      'executeButton', |                                      'executeButton', | ||||||
|                                      'keepCurrentHoisting', |                                      'keepCurrentHoisting', | ||||||
|  | |||||||
| @ -225,6 +225,7 @@ const ATTR_HELP = { | |||||||
|         "sqlConsoleHome": "default location of SQL console notes", |         "sqlConsoleHome": "default location of SQL console notes", | ||||||
|         "bookmarkFolder": "note with this label will appear in bookmarks as folder (allowing access to its children)", |         "bookmarkFolder": "note with this label will appear in bookmarks as folder (allowing access to its children)", | ||||||
|         "shareHiddenFromTree": "this note is hidden from left navigation tree, but still accessible with its URL", |         "shareHiddenFromTree": "this note is hidden from left navigation tree, but still accessible with its URL", | ||||||
|  |         "shareExternalLink": "note will act as a link to an external website in the share tree", | ||||||
|         "shareAlias": "define an alias using which the note will be available under https://your_trilium_host/share/[your_alias]", |         "shareAlias": "define an alias using which the note will be available under https://your_trilium_host/share/[your_alias]", | ||||||
|         "shareOmitDefaultCss": "default share page CSS will be omitted. Use when you make extensive styling changes.", |         "shareOmitDefaultCss": "default share page CSS will be omitted. Use when you make extensive styling changes.", | ||||||
|         "shareRoot": "marks note which is served on /share root.", |         "shareRoot": "marks note which is served on /share root.", | ||||||
| @ -271,6 +272,7 @@ const ATTR_HELP = { | |||||||
|         "widget": "target of this relation will be executed and rendered as a widget in the sidebar", |         "widget": "target of this relation will be executed and rendered as a widget in the sidebar", | ||||||
|         "shareCss": "CSS note which will be injected into the share page. CSS note must be in the shared sub-tree as well. Consider using 'shareHiddenFromTree' and 'shareOmitDefaultCss' as well.", |         "shareCss": "CSS note which will be injected into the share page. CSS note must be in the shared sub-tree as well. Consider using 'shareHiddenFromTree' and 'shareOmitDefaultCss' as well.", | ||||||
|         "shareJs": "JavaScript note which will be injected into the share page. JS note must be in the shared sub-tree as well. Consider using 'shareHiddenFromTree'.", |         "shareJs": "JavaScript note which will be injected into the share page. JS note must be in the shared sub-tree as well. Consider using 'shareHiddenFromTree'.", | ||||||
|  |         "shareTemplate": "Embedded JavaScript note that will be used as the template for displaying the shared note. Falls back to the default template. Consider using 'shareHiddenFromTree'.", | ||||||
|         "shareFavicon": "Favicon note to be set in the shared page. Typically you want to set it to share root and make it inheritable. Favicon note must be in the shared sub-tree as well. Consider using 'shareHiddenFromTree'.", |         "shareFavicon": "Favicon note to be set in the shared page. Typically you want to set it to share root and make it inheritable. Favicon note must be in the shared sub-tree as well. Consider using 'shareHiddenFromTree'.", | ||||||
|     } |     } | ||||||
| }; | }; | ||||||
|  | |||||||
| @ -48,6 +48,7 @@ module.exports = [ | |||||||
|     { type: 'label', name: 'bottom' }, |     { type: 'label', name: 'bottom' }, | ||||||
|     { type: 'label', name: 'fullContentWidth' }, |     { type: 'label', name: 'fullContentWidth' }, | ||||||
|     { type: 'label', name: 'shareHiddenFromTree' }, |     { type: 'label', name: 'shareHiddenFromTree' }, | ||||||
|  |     { type: 'label', name: 'shareExternalLink' }, | ||||||
|     { type: 'label', name: 'shareAlias' }, |     { type: 'label', name: 'shareAlias' }, | ||||||
|     { type: 'label', name: 'shareOmitDefaultCss' }, |     { type: 'label', name: 'shareOmitDefaultCss' }, | ||||||
|     { type: 'label', name: 'shareRoot' }, |     { type: 'label', name: 'shareRoot' }, | ||||||
| @ -89,5 +90,6 @@ module.exports = [ | |||||||
|     { type: 'relation', name: 'renderNote', isDangerous: true }, |     { type: 'relation', name: 'renderNote', isDangerous: true }, | ||||||
|     { type: 'relation', name: 'shareCss' }, |     { type: 'relation', name: 'shareCss' }, | ||||||
|     { type: 'relation', name: 'shareJs' }, |     { type: 'relation', name: 'shareJs' }, | ||||||
|  |     { type: 'relation', name: 'shareTemplate' }, | ||||||
|     { type: 'relation', name: 'shareFavicon' }, |     { type: 'relation', name: 'shareFavicon' }, | ||||||
| ]; | ]; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Zack Rauen
						Zack Rauen