mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 10:02:59 +08:00
35 lines
1008 B
TypeScript
35 lines
1008 B
TypeScript
import { HiddenSubtreeItem } from "@triliumnext/commons";
|
|
|
|
export default function buildHiddenSubtreeTemplates() {
|
|
const templates: HiddenSubtreeItem = {
|
|
id: "_templates",
|
|
title: "Built-in templates",
|
|
type: "book",
|
|
children: [
|
|
{
|
|
id: "_template_text_snippet",
|
|
type: "text",
|
|
title: "Text Snippet",
|
|
icon: "bx bx-align-left",
|
|
attributes: [
|
|
{
|
|
name: "template",
|
|
type: "label"
|
|
},
|
|
{
|
|
name: "textSnippet",
|
|
type: "label"
|
|
},
|
|
{
|
|
name: "label:textSnippetDescription",
|
|
type: "label",
|
|
value: "promoted,alias=Description,single,text"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
};
|
|
|
|
return templates;
|
|
}
|