From d84796588c1472334ddaf696a817f015c245ce44 Mon Sep 17 00:00:00 2001 From: okayurisotto Date: Sat, 8 Jul 2023 07:08:16 +0900 Subject: [PATCH] cleanup: trim trailing whitespace (#11136) * cleanup: trim trailing whitespace * update(`.editorconfig`) --------- Co-authored-by: syuilo --- .devcontainer/docker-compose.yml | 2 +- .editorconfig | 4 + CONTRIBUTING.md | 4 +- README.md | 6 +- assets/title_float.svg | 4 +- cypress/e2e/basic.cy.js | 2 +- .../backend/src/core/AccountMoveService.ts | 2 +- packages/backend/src/core/AiService.ts | 8 +- packages/backend/src/core/AntennaService.ts | 30 ++--- packages/backend/src/core/CaptchaService.ts | 12 +- .../src/core/CreateSystemUserService.ts | 22 ++-- .../backend/src/core/CustomEmojiService.ts | 6 +- .../backend/src/core/DeleteAccountService.ts | 4 +- packages/backend/src/core/EmailService.ts | 18 +-- .../src/core/FederatedInstanceService.ts | 10 +- .../src/core/FetchInstanceMetadataService.ts | 92 +++++++-------- packages/backend/src/core/FileInfoService.ts | 16 +-- .../backend/src/core/HttpRequestService.ts | 8 +- packages/backend/src/core/IdService.ts | 2 +- .../backend/src/core/InstanceActorService.ts | 4 +- packages/backend/src/core/MetaService.ts | 8 +- packages/backend/src/core/MfmService.ts | 108 +++++++++--------- .../backend/src/core/NoteCreateService.ts | 4 +- .../backend/src/core/NoteDeleteService.ts | 2 +- packages/backend/src/core/NoteReadService.ts | 4 +- .../backend/src/core/NotificationService.ts | 2 +- packages/backend/src/core/PollService.ts | 20 ++-- .../src/core/PushNotificationService.ts | 12 +- packages/backend/src/core/QueryService.ts | 40 +++---- packages/backend/src/core/RelayService.ts | 28 ++--- .../src/core/RemoteUserResolveService.ts | 30 ++--- packages/backend/src/core/RoleService.ts | 2 +- packages/backend/src/core/SignupService.ts | 30 ++--- .../core/TwoFactorAuthenticationService.ts | 86 +++++++------- .../backend/src/core/UserSuspendService.ts | 24 ++-- .../src/core/VideoProcessingService.ts | 2 +- packages/backend/src/core/WebhookService.ts | 2 +- .../src/core/activitypub/ApAudienceService.ts | 24 ++-- .../core/activitypub/ApDbResolverService.ts | 4 +- .../activitypub/ApDeliverManagerService.ts | 2 +- .../src/core/activitypub/ApMfmService.ts | 4 +- .../core/activitypub/models/ApImageService.ts | 2 +- .../activitypub/models/ApMentionService.ts | 4 +- .../core/activitypub/models/ApNoteService.ts | 102 ++++++++--------- .../activitypub/models/ApPersonService.ts | 4 +- .../core/entities/DriveFileEntityService.ts | 2 +- .../src/core/entities/NoteEntityService.ts | 10 +- .../entities/NoteReactionEntityService.ts | 2 +- .../entities/NotificationEntityService.ts | 2 +- .../src/core/entities/UserEntityService.ts | 2 +- .../backend/src/daemons/QueueStatsService.ts | 2 +- packages/backend/src/misc/json-schema.ts | 2 +- packages/backend/src/misc/prelude/url.ts | 2 +- .../src/models/entities/UserProfile.ts | 2 +- .../src/queue/QueueProcessorService.ts | 2 +- .../ExportAntennasProcessorService.ts | 2 +- .../ImportAntennasProcessorService.ts | 6 +- .../ImportCustomEmojisProcessorService.ts | 2 +- .../WebhookDeliverProcessorService.ts | 10 +- .../src/server/api/AuthenticateService.ts | 16 +-- .../src/server/api/RateLimiterService.ts | 20 ++-- .../backend/src/server/api/SigninService.ts | 2 +- .../backend/src/server/api/endpoint-base.ts | 10 +- .../endpoints/admin/announcements/update.ts | 2 +- .../server/api/endpoints/admin/emoji/list.ts | 2 +- .../api/endpoints/admin/emoji/update.ts | 2 +- .../api/endpoints/admin/queue/promote.ts | 2 +- .../server/api/endpoints/admin/update-meta.ts | 2 +- .../server/api/endpoints/channels/timeline.ts | 2 +- .../api/endpoints/drive/files/update.ts | 2 +- .../backend/src/server/api/endpoints/emoji.ts | 2 +- .../src/server/api/endpoints/emojis.ts | 2 +- .../server/api/endpoints/hashtags/users.ts | 2 +- .../backend/src/server/api/endpoints/i.ts | 2 +- .../server/api/endpoints/i/2fa/update-key.ts | 2 +- .../backend/src/server/api/endpoints/meta.ts | 2 +- .../backend/src/server/api/endpoints/notes.ts | 16 +-- .../src/server/api/endpoints/notes/search.ts | 4 +- .../server/api/endpoints/notes/translate.ts | 2 +- .../src/server/api/endpoints/roles/notes.ts | 2 +- .../users/lists/create-from-public.ts | 4 +- .../api/endpoints/users/lists/favorite.ts | 2 +- .../src/server/api/endpoints/users/search.ts | 2 +- .../src/server/api/stream/ChannelsService.ts | 2 +- .../src/server/api/stream/channels/hashtag.ts | 2 +- .../api/stream/channels/home-timeline.ts | 2 +- .../api/stream/channels/role-timeline.ts | 2 +- .../server/api/stream/channels/user-list.ts | 2 +- .../backend/src/server/web/FeedService.ts | 12 +- packages/backend/src/server/web/bios.js | 6 +- packages/backend/src/server/web/cli.js | 6 +- .../backend/src/server/web/views/base.pug | 4 +- .../backend/src/server/web/views/error.pug | 4 +- .../backend/src/server/web/views/note.pug | 2 +- .../backend/test/prelude/get-api-validator.ts | 2 +- packages/backend/test/unit/DriveService.ts | 2 +- packages/backend/test/unit/FileInfoService.ts | 22 ++-- packages/backend/test/unit/RelayService.ts | 8 +- packages/backend/test/unit/chart.ts | 12 +- packages/frontend/src/boot/main-boot.ts | 2 +- .../src/components/MkDrive.folder.vue | 6 +- .../src/components/MkDrive.navFolder.vue | 6 +- packages/frontend/src/components/MkDrive.vue | 6 +- .../src/components/MkFileListForAdmin.vue | 2 +- .../src/components/MkFlashPreview.vue | 2 +- .../frontend/src/components/MkMediaVideo.vue | 4 +- .../src/components/MkNoteDetailed.vue | 2 +- .../frontend/src/components/MkSuperMenu.vue | 2 +- .../frontend/src/components/MkUserPopup.vue | 2 +- .../MkUserSetupDialog.Follow.stories.impl.ts | 2 +- .../MkUserSetupDialog.Privacy.stories.impl.ts | 2 +- .../MkUserSetupDialog.Profile.stories.impl.ts | 2 +- .../src/components/MkUserSetupDialog.User.vue | 2 +- .../MkUserSetupDialog.stories.impl.ts | 2 +- .../global/MkMisskeyFlavoredMarkdown.ts | 2 +- .../frontend/src/directives/adaptive-bg.ts | 2 +- .../src/directives/adaptive-border.ts | 2 +- packages/frontend/src/directives/panel.ts | 2 +- packages/frontend/src/filters/date.ts | 2 +- packages/frontend/src/local-storage.ts | 2 +- packages/frontend/src/nirax.ts | 6 +- packages/frontend/src/pages/about.emojis.vue | 4 +- packages/frontend/src/pages/admin/index.vue | 2 +- .../frontend/src/pages/admin/moderation.vue | 2 +- .../src/pages/admin/overview.ap-requests.vue | 2 +- .../src/pages/admin/overview.federation.vue | 2 +- .../src/pages/admin/overview.queue.vue | 2 +- .../frontend/src/pages/admin/overview.vue | 2 +- .../frontend/src/pages/admin/roles.editor.vue | 2 +- .../frontend/src/pages/channel-editor.vue | 6 +- packages/frontend/src/pages/clip.vue | 2 +- .../src/pages/custom-emojis-manager.vue | 4 +- packages/frontend/src/pages/follow.vue | 2 +- packages/frontend/src/pages/instance-info.vue | 2 +- packages/frontend/src/pages/list.vue | 2 +- packages/frontend/src/pages/registry.keys.vue | 2 +- .../frontend/src/pages/registry.value.vue | 2 +- .../frontend/src/pages/reset-password.vue | 2 +- .../src/pages/settings/drive-cleaner.vue | 2 +- .../frontend/src/pages/settings/navbar.vue | 2 +- .../pages/settings/preferences-backups.vue | 4 +- .../frontend/src/pages/settings/privacy.vue | 4 +- .../frontend/src/pages/settings/roles.vue | 2 +- .../frontend/src/pages/settings/security.vue | 2 +- packages/frontend/src/pizzax.ts | 10 +- packages/frontend/src/scripts/aiscript/ui.ts | 2 +- .../frontend/src/scripts/get-user-menu.ts | 2 +- packages/frontend/src/scripts/lookup.ts | 2 +- packages/frontend/src/scripts/url.ts | 2 +- .../frontend/src/scripts/use-note-capture.ts | 4 +- packages/frontend/src/style.scss | 4 +- .../frontend/src/themes/l-botanical.json5 | 2 +- packages/frontend/src/ui/classic.header.vue | 4 +- packages/frontend/src/ui/classic.vue | 2 +- .../src/widgets/WidgetAiscriptApp.vue | 2 +- .../frontend/src/widgets/WidgetClicker.vue | 2 +- .../src/widgets/WidgetNotifications.vue | 2 +- packages/misskey-js/src/streaming.ts | 2 +- packages/misskey-js/test-d/streaming.ts | 2 +- packages/misskey-js/test/api.ts | 8 +- packages/misskey-js/test/streaming.ts | 2 +- 161 files changed, 615 insertions(+), 609 deletions(-) diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml index 8f8c5a13ab..2809cd2ca4 100644 --- a/.devcontainer/docker-compose.yml +++ b/.devcontainer/docker-compose.yml @@ -2,7 +2,7 @@ version: '3.8' services: app: - build: + build: context: . dockerfile: Dockerfile diff --git a/.editorconfig b/.editorconfig index a6f988f8d7..def7baa1a8 100644 --- a/.editorconfig +++ b/.editorconfig @@ -6,6 +6,10 @@ indent_size = 2 charset = utf-8 insert_final_newline = true end_of_line = lf +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false [*.{yml,yaml}] indent_style = space diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f6b3804f84..896fb6b089 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -106,7 +106,7 @@ If your language is not listed in Crowdin, please open an issue. ![Crowdin](https://d322cqt584bo4o.cloudfront.net/misskey/localized.svg) ## Development -During development, it is useful to use the +During development, it is useful to use the ``` pnpm dev @@ -150,7 +150,7 @@ Prepare DB/Redis for testing. ``` docker compose -f packages/backend/test/docker-compose.yml up ``` -Alternatively, prepare an empty (data can be erased) DB and edit `.config/test.yml`. +Alternatively, prepare an empty (data can be erased) DB and edit `.config/test.yml`. Run all test. ``` diff --git a/README.md b/README.md index 2aae4bb865..ab4388c2eb 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,9 @@ Misskey logo - + **🌎 **[Misskey](https://misskey-hub.net/)** is an open source, decentralized social media platform that's free forever! 🚀** - + --- @@ -21,7 +21,7 @@ become a patron - + --- [![codecov](https://codecov.io/gh/misskey-dev/misskey/branch/develop/graph/badge.svg?token=R6IQZ3QJOL)](https://codecov.io/gh/misskey-dev/misskey) diff --git a/assets/title_float.svg b/assets/title_float.svg index 43205ac1c4..ed1749e321 100644 --- a/assets/title_float.svg +++ b/assets/title_float.svg @@ -23,13 +23,13 @@ + diff --git a/packages/frontend/src/pages/admin/overview.vue b/packages/frontend/src/pages/admin/overview.vue index e8295c81b5..838c197f05 100644 --- a/packages/frontend/src/pages/admin/overview.vue +++ b/packages/frontend/src/pages/admin/overview.vue @@ -30,7 +30,7 @@ - + diff --git a/packages/frontend/src/pages/admin/roles.editor.vue b/packages/frontend/src/pages/admin/roles.editor.vue index a1fa9d2932..02a2d4366a 100644 --- a/packages/frontend/src/pages/admin/roles.editor.vue +++ b/packages/frontend/src/pages/admin/roles.editor.vue @@ -210,7 +210,7 @@ - +