mirror of
https://github.com/zadam/trilium.git
synced 2025-02-23 22:44:44 +08:00
Add new attributes in appropriate locations
This commit is contained in:
parent
7729aad1e9
commit
d259931bd2
3 changed files with 8 additions and 0 deletions
|
@ -47,6 +47,7 @@ UPDATE attributes SET name = 'name', value = 'value'
|
|||
'top',
|
||||
'fullContentWidth',
|
||||
'shareHiddenFromTree',
|
||||
'shareExternalLink',
|
||||
'shareAlias',
|
||||
'shareOmitDefaultCss',
|
||||
'shareRoot',
|
||||
|
@ -67,6 +68,7 @@ UPDATE attributes SET name = 'name', value = 'value'
|
|||
'renderNote',
|
||||
'shareCss',
|
||||
'shareJs',
|
||||
'shareTemplate',
|
||||
'shareFavicon',
|
||||
'executeButton',
|
||||
'keepCurrentHoisting',
|
||||
|
@ -122,6 +124,7 @@ UPDATE attributes SET name = 'name'
|
|||
'top',
|
||||
'fullContentWidth',
|
||||
'shareHiddenFromTree',
|
||||
'shareExternalLink',
|
||||
'shareAlias',
|
||||
'shareOmitDefaultCss',
|
||||
'shareRoot',
|
||||
|
@ -142,6 +145,7 @@ UPDATE attributes SET name = 'name'
|
|||
'renderNote',
|
||||
'shareCss',
|
||||
'shareJs',
|
||||
'shareTemplate',
|
||||
'shareFavicon',
|
||||
'executeButton',
|
||||
'keepCurrentHoisting',
|
||||
|
|
|
@ -225,6 +225,7 @@ const ATTR_HELP = {
|
|||
"sqlConsoleHome": "default location of SQL console notes",
|
||||
"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",
|
||||
"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]",
|
||||
"shareOmitDefaultCss": "default share page CSS will be omitted. Use when you make extensive styling changes.",
|
||||
"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",
|
||||
"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'.",
|
||||
"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'.",
|
||||
}
|
||||
};
|
||||
|
|
|
@ -48,6 +48,7 @@ module.exports = [
|
|||
{ type: 'label', name: 'bottom' },
|
||||
{ type: 'label', name: 'fullContentWidth' },
|
||||
{ type: 'label', name: 'shareHiddenFromTree' },
|
||||
{ type: 'label', name: 'shareExternalLink' },
|
||||
{ type: 'label', name: 'shareAlias' },
|
||||
{ type: 'label', name: 'shareOmitDefaultCss' },
|
||||
{ type: 'label', name: 'shareRoot' },
|
||||
|
@ -89,5 +90,6 @@ module.exports = [
|
|||
{ type: 'relation', name: 'renderNote', isDangerous: true },
|
||||
{ type: 'relation', name: 'shareCss' },
|
||||
{ type: 'relation', name: 'shareJs' },
|
||||
{ type: 'relation', name: 'shareTemplate' },
|
||||
{ type: 'relation', name: 'shareFavicon' },
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue