From 5d09e1509d2e86a3c7e7d30ccbbfb7bb67580960 Mon Sep 17 00:00:00 2001 From: luz paz Date: Fri, 25 Feb 2022 16:48:55 -0500 Subject: [PATCH] fix: various typos Found via `codespell -q 3 -S *.svg,./frontend/app_flowy/assets/translations -L bloc,crate,homestate,nd,ot,ser` --- .../lib/workspace/domain/page_stack/page_stack.dart | 2 +- .../infrastructure/markdown/src/delta_markdown_decoder.dart | 2 +- .../infrastructure/markdown/src/inline_parser.dart | 6 +++--- .../presentation/widgets/emoji_picker/src/config.dart | 4 ++-- .../presentation/widgets/emoji_picker/src/emoji_picker.dart | 4 ++-- .../widgets/emoji_picker/src/emoji_picker_builder.dart | 2 +- .../lib/workspace/presentation/widgets/menu/menu.dart | 2 +- .../lib/flowy_infra_ui_platform_interface.dart | 4 ++-- .../flowy_infra_ui/lib/src/flowy_overlay/flowy_overlay.dart | 2 +- frontend/app_flowy/web/index.html | 2 +- 10 files changed, 15 insertions(+), 15 deletions(-) diff --git a/frontend/app_flowy/lib/workspace/domain/page_stack/page_stack.dart b/frontend/app_flowy/lib/workspace/domain/page_stack/page_stack.dart index 8c908d1a9a..10e56bf9f0 100644 --- a/frontend/app_flowy/lib/workspace/domain/page_stack/page_stack.dart +++ b/frontend/app_flowy/lib/workspace/domain/page_stack/page_stack.dart @@ -70,7 +70,7 @@ class HomeStackNotifier extends ChangeNotifier { HomeStackContext get context => stackContext; } -// HomeStack is initialized as singleton to controll the page stack. +// HomeStack is initialized as singleton to control the page stack. class HomeStackManager { final HomeStackNotifier _notifier = HomeStackNotifier(); HomeStackManager(); diff --git a/frontend/app_flowy/lib/workspace/infrastructure/markdown/src/delta_markdown_decoder.dart b/frontend/app_flowy/lib/workspace/infrastructure/markdown/src/delta_markdown_decoder.dart index fe9ae8f05b..74982c752e 100644 --- a/frontend/app_flowy/lib/workspace/infrastructure/markdown/src/delta_markdown_decoder.dart +++ b/frontend/app_flowy/lib/workspace/infrastructure/markdown/src/delta_markdown_decoder.dart @@ -114,7 +114,7 @@ class _DeltaVisitor implements ast.NodeVisitor { // TODO(kolja): Determine which behavior we really want here. // We can either insert an additional newline or just have the // paragraphs as single lines. Zefyr will by default render two lines - // are different paragraphs so for now we will not add an additonal + // are different paragraphs so for now we will not add an additional // newline here. // // if (previousToplevelElement != null && diff --git a/frontend/app_flowy/lib/workspace/infrastructure/markdown/src/inline_parser.dart b/frontend/app_flowy/lib/workspace/infrastructure/markdown/src/inline_parser.dart index 0f15a99e4d..8b47a97433 100644 --- a/frontend/app_flowy/lib/workspace/infrastructure/markdown/src/inline_parser.dart +++ b/frontend/app_flowy/lib/workspace/infrastructure/markdown/src/inline_parser.dart @@ -154,7 +154,7 @@ abstract class InlineSyntax { /// Tries to match at the parser's current position. /// - /// The parser's position can be overriden with [startMatchPos]. + /// The parser's position can be overridden with [startMatchPos]. /// Returns whether or not the pattern successfully matched. bool tryMatch(InlineParser parser, [int? startMatchPos]) { startMatchPos ??= parser.pos; @@ -609,7 +609,7 @@ class LinkSyntax extends TagSyntax { // // Once we have parsed `Text [`, there is one (pending) link in the state // stack. It is, by default, active. Once we parse the next possible link, - // `[more](links)`, as a real link, we must deactive the pending links (just + // `[more](links)`, as a real link, we must deactivate the pending links (just // the one, in this case). var _pendingStatesAreActive = true; @@ -933,7 +933,7 @@ class LinkSyntax extends TagSyntax { // followed by mystery characters; no longer a link. return null; } - // [_parseTitle] made sure the title was follwed by a closing `)` + // [_parseTitle] made sure the title was followed by a closing `)` // (but it's up to the code here to examine the balance of // parentheses). parenCount--; diff --git a/frontend/app_flowy/lib/workspace/presentation/widgets/emoji_picker/src/config.dart b/frontend/app_flowy/lib/workspace/presentation/widgets/emoji_picker/src/config.dart index b7e71e87b9..26046af5bb 100644 --- a/frontend/app_flowy/lib/workspace/presentation/widgets/emoji_picker/src/config.dart +++ b/frontend/app_flowy/lib/workspace/presentation/widgets/emoji_picker/src/config.dart @@ -35,7 +35,7 @@ class Config { /// Can be smaller due to screen size and amount of columns final double emojiSizeMax; - /// Verical spacing between emojis + /// Vertical spacing between emojis final double verticalSpacing; /// Horizontal spacing between emojis @@ -57,7 +57,7 @@ class Config { /// The color of the category icon when selected final Color iconColorSelected; - /// The color of the loading indicator during initalization + /// The color of the loading indicator during initialization final Color progressIndicatorColor; /// The color of the backspace icon button diff --git a/frontend/app_flowy/lib/workspace/presentation/widgets/emoji_picker/src/emoji_picker.dart b/frontend/app_flowy/lib/workspace/presentation/widgets/emoji_picker/src/emoji_picker.dart index cb06fe437a..f1e4420252 100644 --- a/frontend/app_flowy/lib/workspace/presentation/widgets/emoji_picker/src/emoji_picker.dart +++ b/frontend/app_flowy/lib/workspace/presentation/widgets/emoji_picker/src/emoji_picker.dart @@ -40,7 +40,7 @@ enum Category { /// Travel emojis TRAVEL, - /// Ojects emojis + /// Objects emojis OBJECTS, /// Sumbol emojis @@ -179,7 +179,7 @@ class _EmojiPickerState extends State { }; } - // Initalize emoji data + // Initialize emoji data Future _updateEmojis() async { categoryEmoji.clear(); if (widget.config.showRecentsTab) { diff --git a/frontend/app_flowy/lib/workspace/presentation/widgets/emoji_picker/src/emoji_picker_builder.dart b/frontend/app_flowy/lib/workspace/presentation/widgets/emoji_picker/src/emoji_picker_builder.dart index 07b6ca7efe..ee00569852 100644 --- a/frontend/app_flowy/lib/workspace/presentation/widgets/emoji_picker/src/emoji_picker_builder.dart +++ b/frontend/app_flowy/lib/workspace/presentation/widgets/emoji_picker/src/emoji_picker_builder.dart @@ -4,7 +4,7 @@ import 'config.dart'; import 'emoji_view_state.dart'; /// Template class for custom implementation -/// Inhert this class to create your own EmojiPicker +/// Inherit this class to create your own EmojiPicker abstract class EmojiPickerBuilder extends StatefulWidget { /// Constructor const EmojiPickerBuilder(this.config, this.state, {Key? key}) : super(key: key); diff --git a/frontend/app_flowy/lib/workspace/presentation/widgets/menu/menu.dart b/frontend/app_flowy/lib/workspace/presentation/widgets/menu/menu.dart index c2046fce39..7689b51e07 100644 --- a/frontend/app_flowy/lib/workspace/presentation/widgets/menu/menu.dart +++ b/frontend/app_flowy/lib/workspace/presentation/widgets/menu/menu.dart @@ -90,7 +90,7 @@ class HomeMenu extends StatelessWidget { } Widget _renderBody(BuildContext context) { - // nested cloumn: https://siddharthmolleti.com/flutter-box-constraints-nested-column-s-row-s-3dfacada7361 + // nested column: https://siddharthmolleti.com/flutter-box-constraints-nested-column-s-row-s-3dfacada7361 final theme = context.watch(); return Container( color: theme.bg1, diff --git a/frontend/app_flowy/packages/flowy_infra_ui/flowy_infra_ui_platform_interface/lib/flowy_infra_ui_platform_interface.dart b/frontend/app_flowy/packages/flowy_infra_ui/flowy_infra_ui_platform_interface/lib/flowy_infra_ui_platform_interface.dart index 32ac147886..9c57883407 100644 --- a/frontend/app_flowy/packages/flowy_infra_ui/flowy_infra_ui_platform_interface/lib/flowy_infra_ui_platform_interface.dart +++ b/frontend/app_flowy/packages/flowy_infra_ui/flowy_infra_ui_platform_interface/lib/flowy_infra_ui_platform_interface.dart @@ -18,10 +18,10 @@ abstract class FlowyInfraUIPlatform extends PlatformInterface { } Stream get onKeyboardVisibilityChange { - throw UnimplementedError('`onKeyboardChange` should be overrided by subclass.'); + throw UnimplementedError('`onKeyboardChange` should be overridden by subclass.'); } Future getPlatformVersion() { - throw UnimplementedError('`getPlatformVersion` should be overrided by subclass.'); + throw UnimplementedError('`getPlatformVersion` should be overridden by subclass.'); } } diff --git a/frontend/app_flowy/packages/flowy_infra_ui/lib/src/flowy_overlay/flowy_overlay.dart b/frontend/app_flowy/packages/flowy_infra_ui/lib/src/flowy_overlay/flowy_overlay.dart index f39e13cd93..84c2cddd82 100644 --- a/frontend/app_flowy/packages/flowy_infra_ui/lib/src/flowy_overlay/flowy_overlay.dart +++ b/frontend/app_flowy/packages/flowy_infra_ui/lib/src/flowy_overlay/flowy_overlay.dart @@ -37,7 +37,7 @@ enum OverlapBehaviour { /// Maintain overlay size, which may cover the anchor widget. none, - /// Resize overlay to avoid overlaping the anchor widget. + /// Resize overlay to avoid overlapping the anchor widget. stretch, } diff --git a/frontend/app_flowy/web/index.html b/frontend/app_flowy/web/index.html index 501ec3737b..284a6312ec 100644 --- a/frontend/app_flowy/web/index.html +++ b/frontend/app_flowy/web/index.html @@ -82,7 +82,7 @@ }); // If service worker doesn't succeed in a reasonable amount of time, - // fallback to plaint