trilium/apps/server/src/services/builtin_attributes.ts
2025-10-01 03:30:16 -04:00

112 lines
5.4 KiB
TypeScript

export default [
// label names
{ type: "label", name: "inbox" },
{ type: "label", name: "disableVersioning" },
{ type: "label", name: "calendarRoot" },
{ type: "label", name: "archived" },
{ type: "label", name: "excludeFromExport" },
{ type: "label", name: "disableInclusion" },
{ type: "label", name: "appCss" },
{ type: "label", name: "appTheme" },
{ type: "label", name: "appThemeBase" },
{ type: "label", name: "hidePromotedAttributes" },
{ type: "label", name: "readOnly" },
{ type: "label", name: "autoReadOnlyDisabled" },
{ type: "label", name: "cssClass" },
{ type: "label", name: "iconClass" },
{ type: "label", name: "keyboardShortcut" },
{ type: "label", name: "run", isDangerous: true },
{ type: "label", name: "runOnInstance", isDangerous: false },
{ type: "label", name: "runAtHour", isDangerous: false },
{ type: "label", name: "customRequestHandler", isDangerous: true },
{ type: "label", name: "customResourceProvider", isDangerous: true },
{ type: "label", name: "widget", isDangerous: true },
{ type: "label", name: "noteInfoWidgetDisabled" },
{ type: "label", name: "linkMapWidgetDisabled" },
{ type: "label", name: "revisionsWidgetDisabled" },
{ type: "label", name: "whatLinksHereWidgetDisabled" },
{ type: "label", name: "similarNotesWidgetDisabled" },
{ type: "label", name: "workspace" },
{ type: "label", name: "workspaceIconClass" },
{ type: "label", name: "workspaceTabBackgroundColor" },
{ type: "label", name: "workspaceCalendarRoot" },
{ type: "label", name: "workspaceTemplate" },
{ type: "label", name: "searchHome" },
{ type: "label", name: "workspaceInbox" },
{ type: "label", name: "workspaceSearchHome" },
{ type: "label", name: "sqlConsoleHome" },
{ type: "label", name: "datePattern" },
{ type: "label", name: "weekPattern" },
{ type: "label", name: "enableWeekNote" },
{ type: "label", name: "monthPattern" },
{ type: "label", name: "quarterPattern" },
{ type: "label", name: "yearPattern" },
{ type: "label", name: "enableQuarterNote" },
{ type: "label", name: "pageSize" },
{ type: "label", name: "viewType" },
{ type: "label", name: "mapRootNoteId" },
{ type: "label", name: "mapExcludeRelation" },
{ type: "label", name: "mapIncludeRelation" },
{ type: "label", name: "bookmarkFolder" },
{ type: "label", name: "sorted" },
{ type: "label", name: "sortDirection" },
{ type: "label", name: "sortFoldersFirst" },
{ type: "label", name: "sortNatural" },
{ type: "label", name: "sortLocale" },
{ type: "label", name: "top" },
{ 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" },
{ type: "label", name: "shareDescription" },
{ type: "label", name: "shareRaw" },
{ type: "label", name: "shareDisallowRobotIndexing" },
{ type: "label", name: "shareCredentials" },
{ type: "label", name: "shareIndex" },
{ type: "label", name: "shareHtmlLocation" },
{ type: "label", name: "displayRelations" },
{ type: "label", name: "hideRelations" },
{ type: "label", name: "titleTemplate", isDangerous: true },
{ type: "label", name: "template" },
{ type: "label", name: "toc" },
{ type: "label", name: "color" },
{ type: "label", name: "keepCurrentHoisting" },
{ type: "label", name: "executeButton" },
{ type: "label", name: "executeDescription" },
{ type: "label", name: "newNotesOnTop" },
{ type: "label", name: "clipperInbox" },
{ type: "label", name: "webViewSrc", isDangerous: true },
{ type: "label", name: "hideHighlightWidget" },
{ type: "label", name: "printLandscape" },
{ type: "label", name: "printPageSize" },
// relation names
{ type: "relation", name: "internalLink" },
{ type: "relation", name: "imageLink" },
{ type: "relation", name: "relationMapLink" },
{ type: "relation", name: "includeMapLink" },
{ type: "relation", name: "runOnNoteCreation", isDangerous: true },
{ type: "relation", name: "runOnNoteTitleChange", isDangerous: true },
{ type: "relation", name: "runOnNoteChange", isDangerous: true },
{ type: "relation", name: "runOnNoteContentChange", isDangerous: true },
{ type: "relation", name: "runOnNoteDeletion", isDangerous: true },
{ type: "relation", name: "runOnBranchCreation", isDangerous: true },
{ type: "relation", name: "runOnBranchChange", isDangerous: true },
{ type: "relation", name: "runOnBranchDeletion", isDangerous: true },
{ type: "relation", name: "runOnChildNoteCreation", isDangerous: true },
{ type: "relation", name: "runOnAttributeCreation", isDangerous: true },
{ type: "relation", name: "runOnAttributeChange", isDangerous: true },
{ type: "relation", name: "template" },
{ type: "relation", name: "inherit" },
{ type: "relation", name: "widget", isDangerous: true },
{ type: "relation", name: "renderNote", isDangerous: true },
{ type: "relation", name: "shareCss" },
{ type: "relation", name: "shareJs" },
{ type: "relation", name: "shareHtml" },
{ type: "relation", name: "shareTemplate" },
{ type: "relation", name: "shareFavicon" }
];