Skip to content

Build your personal knowledge base with Trilium Notes

feat(demo): create top-level calendar root

Elian Doran743c053584ed
diff --git a/db/demo.zip b/db/demo.zip
index 9a455d10ec..02995d407b 100644
Binary files a/db/demo.zip and b/db/demo.zip differ
diff --git a/demo/!!!meta.json b/demo/!!!meta.json
index 81a2eb74ea..283ec68b16 100644
--- a/demo/!!!meta.json
+++ b/demo/!!!meta.json
@@ -20,6 +20,52 @@
"attachments": [],
"dirFileName": "User Guide",
"children": [
+ {
+ "isClone": false,
+ "noteId": "b2Cw0wRZwhGF",
+ "notePath": [
+ "demo",
+ "b2Cw0wRZwhGF"
+ ],
+ "title": "Journal",
+ "notePosition": 10,
+ "prefix": null,
+ "isExpanded": true,
+ "type": "book",
+ "mime": "",
+ "attributes": [
+ {
+ "type": "label",
+ "name": "calendarRoot",
+ "value": "",
+ "isInheritable": false,
+ "position": 10
+ },
+ {
+ "type": "label",
+ "name": "iconClass",
+ "value": "bx bx-calendar",
+ "isInheritable": false,
+ "position": 20
+ },
+ {
+ "type": "label",
+ "name": "viewType",
+ "value": "calendar",
+ "isInheritable": false,
+ "position": 30
+ },
+ {
+ "type": "label",
+ "name": "calendar:view",
+ "value": "dayGridMonth",
+ "isInheritable": false,
+ "position": 40
+ }
+ ],
+ "dataFileName": "Journal.dat",
+ "attachments": []
+ },
{
"isClone": false,
"noteId": "a7yCTKQIErXa",
@@ -28,9 +74,9 @@
"a7yCTKQIErXa"
],
"title": "Trilium Demo",
- "notePosition": 10,
+ "notePosition": 20,
"prefix": null,
- "isExpanded": true,
+ "isExpanded": false,
"type": "text",
"mime": "text/html",
"attributes": [
@@ -394,33 +440,26 @@
"type": "text",
"mime": "text/html",
"attributes": [
- {
- "type": "label",
- "name": "calendarRoot",
- "value": "",
- "isInheritable": false,
- "position": 10
- },
{
"type": "label",
"name": "sorted",
"value": "",
"isInheritable": false,
- "position": 20
+ "position": 10
},
{
"type": "relation",
"name": "child:child:child:template",
"value": "5eodYKrtOg6v",
"isInheritable": false,
- "position": 30
+ "position": 20
},
{
"type": "label",
"name": "iconClass",
"value": "bx bx-calendar",
"isInheritable": false,
- "position": 40
+ "position": 30
}
],
"format": "html",
diff --git a/demo/User Guide/Journal.dat b/demo/User Guide/Journal.dat
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/demo/User Guide/Journal.html b/demo/User Guide/Journal.html
new file mode 100644
index 0000000000..eb819ded17
--- /dev/null
+++ b/demo/User Guide/Journal.html
@@ -0,0 +1,19 @@
+<html>
+
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <link rel="stylesheet" href="../style.css">
+ <base target="_parent">
+ <title data-trilium-title>Journal</title>
+ </head>
+
+ <body>
+ <div class="content">
+ <h1 data-trilium-h1>Journal</h1>
+
+ <div class="ck-content"></div>
+ </div>
+ </body>
+
+</html>
\ No newline at end of file
diff --git a/demo/navigation.html b/demo/navigation.html
index 3d57af7aae..822758961e 100644
--- a/demo/navigation.html
+++ b/demo/navigation.html
@@ -9,6 +9,8 @@
<ul>
<li><a href="User%20Guide.html" target="detail">User Guide</a>
<ul>
+ <li><a href="User%20Guide/Journal.dat" target="detail">Journal</a>
+ </li>
<li><a href="User%20Guide/Trilium%20Demo.html" target="detail">Trilium Demo</a>
<ul>
<li><a href="User%20Guide/Trilium%20Demo/Inbox.html" target="detail">Inbox</a>