forked from AppFlowy-IO/AppFlowy
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support shortcuts on web (AppFlowy-IO#6474)
* fix: add tab and shift+tab test cases on web * fix: support BIUS on web * fix: add BIUS test cases * fix: add markdown to block test cases * fix: add markdown to block test cases
- Loading branch information
Showing
45 changed files
with
1,993 additions
and
172 deletions.
There are no files selected for viewing
Binary file added
BIN
+58.5 KB
...snapshots/behavior/ShiftTabKeyBehavior/should-not-outdent-at-top-level.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+58.5 KB
...ts/behavior/ShiftTabKeyBehavior/should-outdent-deeply-nested-paragraph.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+58.3 KB
...apshots/behavior/ShiftTabKeyBehavior/should-outdent-nested-toggle-list.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+58.2 KB
...pshots/behavior/TabKeyBehavior/should-indent-nested-block-at-index-0-1.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+58.5 KB
..._app/cypress/snapshots/behavior/TabKeyBehavior/should-indent-paragraph.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+58.5 KB
...apshots/behavior/TabKeyBehavior/should-not-indent-at-start-of-document.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+58.5 KB
...ots/behavior/TabKeyBehavior/should-not-indent-at-start-of-nested-block.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+62.9 KB
frontend/appflowy_web_app/cypress/snapshots/shortcuts/BIUS.cy.snap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
frontend/appflowy_web_app/src/application/slate-yjs/command/const.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { BlockType } from '@/application/types'; | ||
|
||
/** List block types */ | ||
export const ListBlockTypes = [BlockType.TodoListBlock, BlockType.BulletedListBlock, BlockType.NumberedListBlock]; | ||
|
||
/** Container block types */ | ||
export const CONTAINER_BLOCK_TYPES = [ | ||
BlockType.ToggleListBlock, | ||
BlockType.TodoListBlock, | ||
BlockType.Paragraph, | ||
BlockType.QuoteBlock, | ||
BlockType.BulletedListBlock, | ||
BlockType.NumberedListBlock, | ||
BlockType.Page, | ||
]; | ||
export const SOFT_BREAK_TYPES = [BlockType.CalloutBlock, BlockType.CodeBlock]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.