mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-22 20:03:39 +08:00
29 lines
748 B
TypeScript
29 lines
748 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",
|
||
|
attributes: [
|
||
|
{
|
||
|
name: "template",
|
||
|
type: "label"
|
||
|
},
|
||
|
{
|
||
|
name: "textSnippet",
|
||
|
type: "label"
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
]
|
||
|
};
|
||
|
|
||
|
return templates;
|
||
|
}
|