Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
swuecho committed Aug 30, 2024
1 parent 7a74302 commit 568863c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 13 deletions.
25 changes: 17 additions & 8 deletions api/Note.fs
Original file line number Diff line number Diff line change
Expand Up @@ -223,22 +223,31 @@ let todoListsHandler : HttpHandler =
``type`` = "doc"
content = [|
for todoList in todoLists do
yield JsonSerializer.Deserialize<JsonElement>("""
{
yield JsonSerializer.Deserialize<JsonElement>($"""
{{
"type": "heading",
"attrs": {
"attrs": {{
"textAlign": null,
"indent": null,
"lineHeight": null,
"level": 3
},
}},
"content": [
{
{{
"type": "text",
"text": " """ + todoList.noteId.ToString() + """ "
}
"marks": [
{{
"type": "link",
"attrs": {{
"href": "/view?date={todoList.noteId}",
"openInNewTab": true
}}
}}
],
"text": "{todoList.noteId}"
}}
]
}
}}
""")
yield! todoList.todoList
|]
Expand Down
10 changes: 5 additions & 5 deletions web/src/views/Todo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Icon v-if="loading" icon="line-md:loading-alt-loop" />
</a>
</div>
<div class="editor">
<div class="todo">
<el-tiptap :content="content" :extensions="extensions" :readonly=true @onInit="onInit" :enableCharCount="false"></el-tiptap>
</div>
</div>
Expand Down Expand Up @@ -144,17 +144,17 @@ export default {
};
</script>

<style scoped>
.el-tiptap-editor__content {
<style>
.todo .el-tiptap-editor__content {
border-bottom: 1px solid #ebeef5 !important;
border-top: 1px solid #ebeef5 !important;
border-radius: 5px !important;
}
.el-tiptap-editor__menu-bar {
.todo .el-tiptap-editor__menu-bar {
display: none;
}
.el-tiptap-editor__footer {
.todo .el-tiptap-editor__footer {
display: none;
}
.content {
Expand Down

0 comments on commit 568863c

Please sign in to comment.