Skip to content

Commit

Permalink
feat: add more showcases on desktop platform
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasXu0 committed Sep 19, 2023
1 parent 6699d58 commit c0782f7
Show file tree
Hide file tree
Showing 19 changed files with 309 additions and 259 deletions.
204 changes: 89 additions & 115 deletions example/assets/example.json
Original file line number Diff line number Diff line change
@@ -1,128 +1,85 @@
{
"document": {
"type": "page",
"children": [{
"children": [
{
"type": "heading",
"data": {
"level": 2,
"delta": [{
"insert": "👋 "
},
{
"insert": "Welcome to",
"attributes": {
"bold": true
}
},
{
"insert": " "
},
"delta": [
{ "insert": "👋 " },
{ "insert": "Welcome to", "attributes": { "bold": true } },
{ "insert": " " },
{
"insert": "AppFlowy Editor",
"attributes": {
"href": "appflowy.io",
"italic": true,
"bold": true
}
"attributes": { "italic": false, "bold": true }
}
]
],
"align": "center"
}
},
{
"type": "paragraph",
"data": {
"delta": []
}
},
{
"type": "paragraph",
"data": {
"delta": [{
"insert": "AppFlowy Editor is a"
},
{
"insert": " "
},
"delta": [
{ "insert": "AppFlowy Editor is a" },
{ "insert": " " },
{
"insert": "highly customizable",
"attributes": {
"bold": true
}
},
{
"insert": " "
"attributes": { "bold": true, "bg_color": "0x7fffeb3b" }
},
{
"insert": "rich-text editor",
"attributes": {
"italic": true
}
},
{
"insert": " for "
},
{
"insert": "Flutter",
"attributes": {
"underline": true
}
}
{ "insert": " " },
{ "insert": "rich-text editor", "attributes": { "italic": true } },
{ "insert": " for " },
{ "insert": "Flutter", "attributes": { "underline": true } }
]
}
},
{
"type": "todo_list",
"data": {
"checked": true,
"delta": [{
"insert": "Customizable"
}]
}
},
{
"type": "todo_list",
"data": {
"checked": true,
"delta": [{
"insert": "Test-covered"
}]
}
},
{
"type": "todo_list",
"type": "bulleted_list",
"data": {
"checked": false,
"delta": [{
"insert": "more to come!"
}]
"delta": [
{
"insert": "Customizable",
"attributes": { "bg_color": "0x4d00BCF0" }
}
]
}
},
{
"type": "paragraph",
"type": "bulleted_list",
"data": {
"delta": []
"delta": [
{
"insert": "Test-covered",
"attributes": { "bg_color": "0x4d00BCF0" }
}
]
}
},
{
"type": "quote",
"type": "bulleted_list",
"data": {
"delta": [{
"insert": "Here is an example you can give a try"
}]
"delta": [
{ "insert": "More to come!", "attributes": { "code": true } }
]
}
},
{ "type": "paragraph", "data": { "delta": [] } },
{
"type": "paragraph",
"type": "heading",
"data": {
"delta": []
"delta": [{ "insert": "Here is an example you can give it a try" }],
"level": 4,
"align": "center"
}
},
{
"type": "paragraph",
"type": "todo_list",
"data": {
"delta": [{
"insert": "You can also use "
},
"checked": false,
"delta": [
{ "insert": "Use " },
{
"insert": "AppFlowy Editor",
"attributes": {
Expand All @@ -132,49 +89,66 @@
"bg_color": "0x6000BCF0"
}
},
{
"insert": " as a component to build your own app."
}
{ "insert": " as a component to build your own app." }
]
}
},
{
"type": "paragraph",
"data": {
"delta": []
}
},
{
"type": "bulleted_list",
"data": {
"delta": [{
"insert": "Use / to insert blocks"
}]
}
},
{
"type": "bulleted_list",
"type": "todo_list",
"data": {
"delta": [{
"insert": "Select text to trigger to the toolbar to format your notes."
}]
"delta": [
{ "insert": "Use the " },
{
"insert": " / ",
"attributes": { "bg_color": "0x4d00BCF0", "code": true }
},
{ "insert": " to insert blocks." }
],
"checked": false
}

},
{
"type": "paragraph",
"type": "todo_list",
"data": {
"delta": []
"checked": false,
"delta": [
{ "insert": "Select text to " },
{
"insert": "trigger the toolbar",
"attributes": { "bg_color": "0x4de91e63" }
},
{ "insert": " to " },
{
"insert": "format",
"attributes": {
"code": true,
"bold": true,
"underline": true,
"italic": true,
"font_color": "0xfff44336",
"bg_color": "0x4d4caf50"
}
},
{ "insert": " your notes." }
]
}
},
{ "type": "paragraph", "data": { "delta": [] } },
{
"type": "paragraph",
"data": {
"delta": [{
"insert": "If you have questions or feedback, please submit an issue on Github or join the community along with 1000+ builders!"
}]
"delta": [
{ "insert": "If you have questions or feedback, please " },
{
"insert": "submit an issue",
"attributes": { "bg_color": "0x4de91e63" }
},
{
"insert": " on Github or join the community along with 1000+ builders!"
}
]
}
}
]
}
}
}
Binary file added example/assets/images/header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c0782f7

Please sign in to comment.