Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

fix: lint problems

QiShaoXuanfb4387ddbbe5
diff --git a/packages/app/src/components/shortcuts-modal/config.ts b/packages/app/src/components/shortcuts-modal/config.ts
index 826cec6d4d..5638268a99 100644
--- a/packages/app/src/components/shortcuts-modal/config.ts
+++ b/packages/app/src/components/shortcuts-modal/config.ts
@@ -1,67 +1,66 @@
export const macKeyboardShortcuts = {
- Undo: '⌘+Z',
- Redo: '⌘+⇧+Z',
- Bold: '⌘+B',
- Italic: '⌘+I',
- Underline: '⌘+U',
- Strikethrough: '⌘+⇧+S',
- 'Inline code': ' ⌘+E',
- Link: '⌘+K',
- 'Body text': '⌘+⌥+0',
- 'Heading 1': '⌘+⌥+1',
- 'Heading 2': '⌘+⌥+2',
- 'Heading 3': '⌘+⌥+3',
- 'Heading 4': '⌘+⌥+4',
- 'Heading 5': '⌘+⌥+5',
- 'Heading 6': '⌘+⌥+6',
- 'Increase indent': 'Tab',
- 'Reduce indent': '⇧+Tab',
- };
-
- export const macMarkdownShortcuts = {
- Bold: '**Text** ',
- Italic: '*Text* ',
- Underline: '~Text~ ',
- Strikethrough: '~~Text~~ ',
- 'Inline code': '`Text` ',
- 'Heading 1': '# Text',
- 'Heading 2': '## Text',
- 'Heading 3': '### Text',
- 'Heading 4': '#### Text',
- 'Heading 5': '##### Text',
- 'Heading 6': '###### Text',
- };
-
- export const windowsKeyboardShortcuts = {
- Undo: 'Ctrl+Z',
- Redo: 'Ctrl+Y',
- Bold: 'Ctrl+B',
- Italic: 'Ctrl+I',
- Underline: 'Ctrl+U',
- Strikethrough: 'Ctrl+Shift+S',
- 'Inline code': ' Ctrl+E',
- Link: 'Ctrl+K',
- 'Body text': 'Ctrl+Shift+0',
- 'Heading 1': 'Ctrl+Shift+1',
- 'Heading 2': 'Ctrl+Shift+2',
- 'Heading 3': 'Ctrl+Shift+3',
- 'Heading 4': 'Ctrl+Shift+4',
- 'Heading 5': 'Ctrl+Shift+5',
- 'Heading 6': 'Ctrl+Shift+6',
- 'Increase indent': 'Tab',
- 'Reduce indent': 'Shift+Tab',
- };
- export const winMarkdownShortcuts = {
- Bold: '**Text** ',
- Italic: '*Text* ',
- Underline: '~Text~ ',
- Strikethrough: '~~Text~~ ',
- 'Inline code': '`Text` ',
- 'Heading 1': '# Text',
- 'Heading 2': '## Text',
- 'Heading 3': '### Text',
- 'Heading 4': '#### Text',
- 'Heading 5': '##### Text',
- 'Heading 6': '###### Text',
- };
-
+ Undo: '⌘+Z',
+ Redo: '⌘+⇧+Z',
+ Bold: '⌘+B',
+ Italic: '⌘+I',
+ Underline: '⌘+U',
+ Strikethrough: '⌘+⇧+S',
+ 'Inline code': ' ⌘+E',
+ Link: '⌘+K',
+ 'Body text': '⌘+⌥+0',
+ 'Heading 1': '⌘+⌥+1',
+ 'Heading 2': '⌘+⌥+2',
+ 'Heading 3': '⌘+⌥+3',
+ 'Heading 4': '⌘+⌥+4',
+ 'Heading 5': '⌘+⌥+5',
+ 'Heading 6': '⌘+⌥+6',
+ 'Increase indent': 'Tab',
+ 'Reduce indent': '⇧+Tab',
+};
+
+export const macMarkdownShortcuts = {
+ Bold: '**Text** ',
+ Italic: '*Text* ',
+ Underline: '~Text~ ',
+ Strikethrough: '~~Text~~ ',
+ 'Inline code': '`Text` ',
+ 'Heading 1': '# Text',
+ 'Heading 2': '## Text',
+ 'Heading 3': '### Text',
+ 'Heading 4': '#### Text',
+ 'Heading 5': '##### Text',
+ 'Heading 6': '###### Text',
+};
+
+export const windowsKeyboardShortcuts = {
+ Undo: 'Ctrl+Z',
+ Redo: 'Ctrl+Y',
+ Bold: 'Ctrl+B',
+ Italic: 'Ctrl+I',
+ Underline: 'Ctrl+U',
+ Strikethrough: 'Ctrl+Shift+S',
+ 'Inline code': ' Ctrl+E',
+ Link: 'Ctrl+K',
+ 'Body text': 'Ctrl+Shift+0',
+ 'Heading 1': 'Ctrl+Shift+1',
+ 'Heading 2': 'Ctrl+Shift+2',
+ 'Heading 3': 'Ctrl+Shift+3',
+ 'Heading 4': 'Ctrl+Shift+4',
+ 'Heading 5': 'Ctrl+Shift+5',
+ 'Heading 6': 'Ctrl+Shift+6',
+ 'Increase indent': 'Tab',
+ 'Reduce indent': 'Shift+Tab',
+};
+export const winMarkdownShortcuts = {
+ Bold: '**Text** ',
+ Italic: '*Text* ',
+ Underline: '~Text~ ',
+ Strikethrough: '~~Text~~ ',
+ 'Inline code': '`Text` ',
+ 'Heading 1': '# Text',
+ 'Heading 2': '## Text',
+ 'Heading 3': '### Text',
+ 'Heading 4': '#### Text',
+ 'Heading 5': '##### Text',
+ 'Heading 6': '###### Text',
+};