Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preconditions: Refactor the editor part for supporting the mobile. #129

Merged
merged 190 commits into from
May 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
190 commits
Select commit Hold shift + click to select a range
a1ef080
feat: implement to-do list component
LucasXu0 Apr 18, 2023
2fd3cca
feat: implement bulleted list component
LucasXu0 Apr 18, 2023
d12f3a3
feat: implement numbered list component
LucasXu0 Apr 18, 2023
2cd2f36
feat: implement quote block component
LucasXu0 Apr 18, 2023
badff1a
feat: add nested list component
LucasXu0 Apr 18, 2023
9e5f496
feat: implement nested list component for bulleted list
LucasXu0 Apr 18, 2023
fe9e376
feat: implement delta input service
LucasXu0 Apr 18, 2023
981d4c7
feat: implement delta input service
LucasXu0 Apr 19, 2023
87d150a
feat: implement debounce for input service
LucasXu0 Apr 19, 2023
123e9c6
feat: implement scroll service
LucasXu0 Apr 19, 2023
f2d4566
feat: implement auto scroll service
LucasXu0 Apr 19, 2023
326a1fc
feat: integrate auto scroller
LucasXu0 Apr 19, 2023
df06889
feat: optimize the auto scroller
LucasXu0 Apr 19, 2023
638985f
feat: implement a simple auto scroller
LucasXu0 Apr 19, 2023
c261605
chore: update the directory structure
LucasXu0 Apr 20, 2023
e8280bd
chore: update the directory structure
LucasXu0 Apr 20, 2023
2487408
feat: implement mobile toolbar
LucasXu0 Apr 20, 2023
d8a4d1a
chore: don't set null to selection every time
LucasXu0 Apr 20, 2023
e719359
fix: the keyboard doesn't open when changing selection
LucasXu0 Apr 20, 2023
0f22c2b
feat: make the pressing backspace event listenable
LucasXu0 Apr 20, 2023
2129283
feat: add transform
LucasXu0 Apr 21, 2023
4f4c93e
feat: implement transform
LucasXu0 Apr 21, 2023
813aa1a
feat: implement bulleted list shortcut
LucasXu0 Apr 23, 2023
c01ebc0
feat: implement slash command 0.1
LucasXu0 Apr 23, 2023
7ca0103
feat: implement bulleted list shortcuts
LucasXu0 Apr 24, 2023
9a41c32
fix: platform exception
LucasXu0 Apr 24, 2023
cd2af20
chore: update directory structure
LucasXu0 Apr 24, 2023
b02c3ed
feat: support hardware keyboard event
LucasXu0 Apr 24, 2023
16876e7
feat: implement the backspace shortcut
LucasXu0 Apr 24, 2023
79d4eb4
feat: implement the block component builder
LucasXu0 Apr 25, 2023
f1f6ea8
feat: replace node widget builder with block component builder
LucasXu0 Apr 25, 2023
5c52330
chore: add comment to selection_transform.dart
LucasXu0 Apr 25, 2023
037c3f3
feat: implement floating toolbar
LucasXu0 Apr 25, 2023
1e93328
chore: export delta_builder in util.dart
LucasXu0 Apr 25, 2023
7297799
fix: the document node can't rebuild
LucasXu0 Apr 25, 2023
6b7c8c9
feat: implement underscore to italic
LucasXu0 Apr 25, 2023
9ee7569
fix: backspace_command test failed
LucasXu0 Apr 25, 2023
85b643f
feat: implement deleting the selecion
LucasXu0 Apr 26, 2023
1881573
chore: implement delete selection
LucasXu0 Apr 26, 2023
6473be7
fix: run error in web
LucasXu0 Apr 26, 2023
8bc0b8b
fix: bulleted list format error
LucasXu0 Apr 26, 2023
5ed0306
feat: add single character shortcut events
hyj1204 Apr 26, 2023
f0b50fd
chore: change naming to keep consistent
hyj1204 Apr 26, 2023
07c14d7
test: add format_code_test
hyj1204 Apr 26, 2023
0d05dcd
test: add format_italic_test
hyj1204 Apr 26, 2023
e2ddc25
test: add single asterisk to italic test
hyj1204 Apr 27, 2023
d30b4ea
test: add format_strikethrough_test
hyj1204 Apr 27, 2023
4426872
chore: update naming
hyj1204 Apr 27, 2023
d881315
feat: optimize the new line logic
LucasXu0 Apr 27, 2023
f320467
fix: insert new line error when the node contains the children
LucasXu0 Apr 27, 2023
6df42d4
feat: optimize selection_transform
LucasXu0 Apr 27, 2023
f624f3a
feat: implement converting 1. to numbered list style
LucasXu0 Apr 27, 2023
75ce21c
feat: implement converting > to quote style
LucasXu0 Apr 27, 2023
6e4b39a
Merge branch 'main' into mobile
LucasXu0 Apr 27, 2023
a424464
feat: implement arrow left + right
LucasXu0 Apr 27, 2023
8c50f4f
chore: rename folder
hyj1204 Apr 27, 2023
0152fd5
chore: renaming
hyj1204 Apr 28, 2023
20ba981
chore: renaming
hyj1204 Apr 28, 2023
c6d121c
chore: clean code
hyj1204 Apr 28, 2023
19a6c7a
feat: add testable editor
LucasXu0 Apr 28, 2023
f191527
test: add arrow key left tests
LucasXu0 Apr 28, 2023
5f568f6
test: add arrow key right tests
LucasXu0 Apr 28, 2023
f4b580f
refactor: add editor as parameter
hyj1204 Apr 28, 2023
beac09d
chore: delete comment
hyj1204 Apr 28, 2023
e64d829
chore: fotmat the code and implement floating_toolbar
LucasXu0 Apr 28, 2023
23350d2
feat: implement toolbar
LucasXu0 Apr 28, 2023
683318b
feat: implement heading block
LucasXu0 Apr 28, 2023
2bf0705
feat: implement node extension, allSatisfyInSelection
LucasXu0 Apr 28, 2023
ed1074f
Merge pull request #1 from LucasXu0/feat/single-char-format-style
hyj1204 Apr 28, 2023
249163d
feat: add bold shortcut
hyj1204 Apr 27, 2023
19ede2e
test: add format bold test
hyj1204 Apr 27, 2023
191f1e3
chore: format code
hyj1204 Apr 28, 2023
76a7ebe
feat: add todo list character shortcut
hyj1204 Apr 28, 2023
378cbfb
test: add todo list character shortcut test
hyj1204 Apr 28, 2023
e1348f7
fix: fix selection offset error when it is at the head of line
hyj1204 Apr 28, 2023
43d806f
feat: implement format style toolbar item
LucasXu0 Apr 29, 2023
33e89dd
feat: implement the color and link toolbar item
LucasXu0 Apr 29, 2023
137de32
chore: format the code
LucasXu0 Apr 29, 2023
a0524b8
Merge branch 'mobile' into feat/bold_shortcut
LucasXu0 Apr 29, 2023
9f8a305
Merge pull request #2 from LucasXu0/feat/bold_shortcut
LucasXu0 Apr 29, 2023
10ccd61
Merge branch 'mobile' into feat/to_do_list_charcter_shortcut
LucasXu0 Apr 29, 2023
0ec9f3f
Merge pull request #3 from LucasXu0/feat/to_do_list_charcter_shortcut
LucasXu0 Apr 29, 2023
a9818e8
chore: format the code
LucasXu0 Apr 29, 2023
df5c6b3
test: add test for remove formot
LucasXu0 Apr 29, 2023
78c38d2
feat: add format node and format delta
LucasXu0 Apr 29, 2023
a9bfe21
feat: implemnt onPress for bulleted list item
LucasXu0 Apr 29, 2023
683aa92
feat: implement format toolbar item
LucasXu0 Apr 29, 2023
58141bd
fix: some UI bugs
LucasXu0 Apr 29, 2023
01be20c
feat: use stack to display the selection menu
LucasXu0 Apr 29, 2023
c0fb77a
feat: adjust the selection in selection menu
LucasXu0 Apr 30, 2023
1d0055d
feat: adjust the text command
LucasXu0 Apr 30, 2023
8931433
chore: migrate the command_extension
LucasXu0 Apr 30, 2023
2e3af17
chore: migrate the transaction
LucasXu0 Apr 30, 2023
4f18b26
test: migrate test/core
LucasXu0 May 1, 2023
9795b18
test: migrate test/extensions
LucasXu0 May 1, 2023
82c580e
test: migrate test/plugins/markdown/encoder
LucasXu0 May 1, 2023
2229d85
test: migrate test/plugins/markdown
LucasXu0 May 1, 2023
0aa0eb2
test: migrate test/plugins
LucasXu0 May 1, 2023
53ccb96
feat: implement home / end shortcut
LucasXu0 May 1, 2023
b7bdee4
test: migrate arrow keys test
LucasXu0 May 1, 2023
91a13cd
feat: implement arrow up and down key
LucasXu0 May 1, 2023
e7e58f6
test: migration arrow keys test
LucasXu0 May 1, 2023
00481a9
feat: implement alt+arrow left / right
LucasXu0 May 1, 2023
f8f9ec5
test: migration arrow keys test
LucasXu0 May 2, 2023
e7a5c16
test: migrate the arrow keys test
LucasXu0 May 2, 2023
a3464e1
feat: implement insert a new line after todo list, bulleted list and …
LucasXu0 May 2, 2023
9bf6d55
test: migrate the backspace test
LucasXu0 May 2, 2023
7bd8cba
test: migrate the checkbox_event_handler
LucasXu0 May 2, 2023
0342668
test: migrate the cursor_left_delete_handler.dart
LucasXu0 May 2, 2023
9be02bd
test: migrate the enter key test
LucasXu0 May 2, 2023
4db30d8
test: migrate the escape key
LucasXu0 May 2, 2023
f2903bb
test: migrate markdown commands
LucasXu0 May 2, 2023
3020ce0
test: migrate the markdown_comamnds_test
LucasXu0 May 2, 2023
4a32d0a
test: migrate the markdown_syntax_to_styled_text
LucasXu0 May 2, 2023
67de67e
test: migrate the page up and page down
LucasXu0 May 2, 2023
22eafb7
test: migrate editor_service_test
LucasXu0 May 2, 2023
0f4c524
test: migrate scroll_service_test
LucasXu0 May 2, 2023
fd1a1b1
test: migrate page up and down
LucasXu0 May 2, 2023
79e7fc1
feat: add getDeltaAttributeValueInSelection
LucasXu0 May 3, 2023
89e22f0
test: migrate the slash_handler
LucasXu0 May 3, 2023
e3ec741
test: migrate the tab_handler
LucasXu0 May 3, 2023
f40306d
test: migrate the white_space_handler
LucasXu0 May 3, 2023
4883a38
test: migrate redo and undo command
LucasXu0 May 3, 2023
b4e0a90
test: migrate internal_key_event_handlers
LucasXu0 May 3, 2023
40832bb
test: migrate test test/service
LucasXu0 May 3, 2023
c599a4e
feat: add image block
LucasXu0 May 3, 2023
9f71058
feat: migrate image node
LucasXu0 May 3, 2023
19ab87c
test: migrate all the test cases
LucasXu0 May 3, 2023
c3aadf9
feat: refactor the node
LucasXu0 May 3, 2023
8e87801
chore: refactor the node.dart
LucasXu0 May 4, 2023
6821a19
feat: support customizing the block component
LucasXu0 May 4, 2023
1242c01
feat: refactor the editor_service
LucasXu0 May 4, 2023
a4e49c2
chore: update example.json
LucasXu0 May 4, 2023
bd85420
fix: the placeholder text doesn't show
LucasXu0 May 4, 2023
14ca766
feat: improve the bulleted list
LucasXu0 May 4, 2023
77f549c
feat: integrate into appflowy
LucasXu0 May 7, 2023
0b80947
feat: filter the update op if the before and after is the same value
LucasXu0 May 8, 2023
561884d
feat: support customize the slash menu item
LucasXu0 May 8, 2023
49f4bf1
fix: request focus when selection gesture update
LucasXu0 May 9, 2023
b202528
fix: cursor error
LucasXu0 May 10, 2023
17b77cb
chore: public the full screen overlay entry
LucasXu0 May 10, 2023
8910ddb
feat: filter the unused items
LucasXu0 May 10, 2023
8733a33
chore: set empty textstyle as default
LucasXu0 May 10, 2023
11f557d
chore: make variable const
LucasXu0 May 11, 2023
5c43d1d
feat: migrate link menu and color picker (#4)
hyj1204 May 11, 2023
7436707
feat: support updating root node
LucasXu0 May 11, 2023
c8d05b5
chore: add the l10n
LucasXu0 May 11, 2023
c964b2a
chore: set padding for desktop 200
LucasXu0 May 11, 2023
7f54299
feat: support hover block actions
LucasXu0 May 12, 2023
b64909b
chore: implement option block action
LucasXu0 May 12, 2023
8cafe76
chore: optimize the editor_service
LucasXu0 May 12, 2023
86f95cb
chore: implement block selection and delete option
LucasXu0 May 12, 2023
368fa07
feat: add move node operation
LucasXu0 May 14, 2023
89c4044
feat: support background color
LucasXu0 May 14, 2023
7863e14
feat: support background color
LucasXu0 May 14, 2023
ec80d59
chore: export background color mixin
LucasXu0 May 14, 2023
ffc3b5b
feat: support background color
LucasXu0 May 15, 2023
d71e5b0
fix: color extension color
LucasXu0 May 15, 2023
3dba5d4
feat: cutomize the padding
LucasXu0 May 15, 2023
8ee2e83
feat: remove the unused padding
LucasXu0 May 15, 2023
f22b9d5
feat: add block selection
LucasXu0 May 15, 2023
fdd25d8
feat: customize the heading style
LucasXu0 May 15, 2023
a9b9928
fix: convert type will miss the color
LucasXu0 May 15, 2023
8488c86
feat: add reset to default text color and improve text (#5)
hyj1204 May 15, 2023
8fa6a64
Merge remote-tracking branch 'origin/main' into mobile
LucasXu0 May 15, 2023
6e23fab
feat: close the transaction subscription
LucasXu0 May 16, 2023
4f66f77
fix: add toList to prevent the redundant copy of the nodes when looping
LucasXu0 May 16, 2023
65755e5
feat: support line height and selection radiux
LucasXu0 May 16, 2023
d7ce4bb
fix: floating toolbar flickering
LucasXu0 May 16, 2023
dd02883
feat: customize the slash command
LucasXu0 May 16, 2023
65d2647
feat: implement copy & paste and refactor toolbar item
LucasXu0 May 16, 2023
fc3f2a9
feat: support paste plain text
LucasXu0 May 16, 2023
edd56eb
fix: line height error
LucasXu0 May 16, 2023
ffc7673
fix: the toolbar overflow
LucasXu0 May 16, 2023
a95055f
fix: the toolbar location won't refresh when resizing
LucasXu0 May 16, 2023
b1a1b14
feat: format " to quote
LucasXu0 May 16, 2023
ac17231
fix: overflow error in mobile (#6)
hyj1204 May 20, 2023
6851f04
fix: paragraph block backgroud color
LucasXu0 May 22, 2023
b29d053
fix: flutter analyze and dart lint
LucasXu0 May 22, 2023
159c97b
fix: cover align error
LucasXu0 May 22, 2023
176cb2e
fix: block action error
LucasXu0 May 22, 2023
31bfd5d
feat: implement editor migration 0.1.x -> 0.2.0
LucasXu0 May 22, 2023
287fab1
fix: numbered list icon color and text style
LucasXu0 May 23, 2023
c2a86db
fix: color options missing
LucasXu0 May 23, 2023
ead61af
fix: color test
LucasXu0 May 23, 2023
21f686d
feat: add first and last for document
LucasXu0 May 23, 2023
3b0b0a6
feat: optimize the block component widget
LucasXu0 May 23, 2023
25eb165
fix: the selection won't update if the value is same
LucasXu0 May 23, 2023
edf5c7a
feat: mobile toolbar basic UI (#8)
hyj1204 May 24, 2023
72a9f2c
fix: flutter analyze
LucasXu0 May 24, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,11 @@ linter:
- use_decorated_box

analyzer:
errors:
deprecated_member_use_from_same_package: ignore
exclude:
- lib/src/l10n/**
# Remove the below directory until migration is complete.
- example/**
- test/**
- lib/src/service/**
1 change: 1 addition & 0 deletions assets/images/clear_highlight_color.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/images/reset_text_color.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 0 additions & 5 deletions assets/images/toolbar/highlight.svg

This file was deleted.

1 change: 1 addition & 0 deletions assets/images/toolbar/highlight_color.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/images/toolbar/text.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/images/toolbar/text_color.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/mobile/toolbar_icons/bold.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/mobile/toolbar_icons/bulleted_list.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/mobile/toolbar_icons/checkbox.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/mobile/toolbar_icons/code.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/mobile/toolbar_icons/divider.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/mobile/toolbar_icons/h1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/mobile/toolbar_icons/h2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/mobile/toolbar_icons/h3.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/mobile/toolbar_icons/highlight_color.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/mobile/toolbar_icons/italic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/mobile/toolbar_icons/link.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions assets/mobile/toolbar_icons/numbered_list.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading