From 609fb91ca17c4d13cd468c0141483881211e4aae Mon Sep 17 00:00:00 2001 From: Johann150 Date: Wed, 10 Aug 2022 22:42:30 +0200 Subject: [PATCH] fix some lints automatically --- .../src/components/abuse-report-window.vue | 2 +- .../client/src/components/abuse-report.vue | 2 +- .../client/src/components/analog-clock.vue | 13 ++-- .../client/src/components/autocomplete.vue | 8 +-- packages/client/src/components/avatars.vue | 2 +- packages/client/src/components/captcha.vue | 2 +- .../src/components/channel-follow-button.vue | 7 +- packages/client/src/components/cw-button.vue | 2 +- .../src/components/date-separated-list.vue | 36 +++++----- .../src/components/drive-select-dialog.vue | 3 +- .../client/src/components/drive-window.vue | 3 +- packages/client/src/components/drive.file.vue | 29 ++++---- .../client/src/components/drive.folder.vue | 25 +++---- .../src/components/drive.nav-folder.vue | 7 +- packages/client/src/components/drive.vue | 59 ++++++++-------- .../src/components/emoji-picker-window.vue | 3 +- .../src/components/emoji-picker.section.vue | 3 +- .../client/src/components/emoji-picker.vue | 16 +++-- .../client/src/components/follow-button.vue | 14 ++-- .../client/src/components/forgot-password.vue | 3 +- .../client/src/components/form/folder.vue | 2 +- .../client/src/components/form/suspense.vue | 4 +- .../client/src/components/formula-core.vue | 12 ++-- packages/client/src/components/formula.vue | 12 ++-- .../src/components/gallery-post-preview.vue | 8 +-- .../client/src/components/global/ellipsis.vue | 6 +- .../client/src/components/global/emoji.vue | 10 +-- packages/client/src/components/global/i18n.ts | 4 +- .../global/misskey-flavored-markdown.vue | 2 +- packages/client/src/components/global/url.vue | 2 +- .../client/src/components/instance-ticker.vue | 4 +- packages/client/src/components/launch-pad.vue | 2 +- packages/client/src/components/link.vue | 3 +- .../client/src/components/media-banner.vue | 9 ++- .../client/src/components/media-image.vue | 4 +- .../client/src/components/note-detailed.vue | 8 +-- packages/client/src/components/note.vue | 8 +-- .../client/src/components/page-preview.vue | 6 +- .../client/src/components/page/page.block.vue | 10 +-- .../src/components/page/page.button.vue | 20 +++--- .../src/components/page/page.canvas.vue | 10 +-- .../src/components/page/page.counter.vue | 12 ++-- .../client/src/components/page/page.if.vue | 12 ++-- .../client/src/components/page/page.note.vue | 8 +-- .../src/components/page/page.number-input.vue | 12 ++-- .../client/src/components/page/page.post.vue | 14 ++-- .../src/components/page/page.radio-button.vue | 14 ++-- .../src/components/page/page.section.vue | 10 +-- .../src/components/page/page.switch.vue | 12 ++-- .../src/components/page/page.text-input.vue | 12 ++-- .../components/page/page.textarea-input.vue | 12 ++-- packages/client/src/components/page/page.vue | 8 +-- .../src/components/post-form-attaches.vue | 36 +++++----- packages/client/src/components/post-form.vue | 47 +++++++------ .../client/src/components/queue-chart.vue | 10 +-- .../src/components/reactions-viewer.vue | 2 +- .../client/src/components/renote-button.vue | 13 ++-- packages/client/src/components/ripple.vue | 23 +++--- packages/client/src/components/sample.vue | 2 +- packages/client/src/components/signin.vue | 32 ++++----- packages/client/src/components/tab.vue | 8 +-- packages/client/src/components/timeline.vue | 16 ++--- .../src/components/token-generate-window.vue | 23 +++--- packages/client/src/components/ui/button.vue | 32 +++++---- .../client/src/components/ui/container.vue | 21 +++--- .../client/src/components/ui/context-menu.vue | 2 +- packages/client/src/components/ui/folder.vue | 11 +-- packages/client/src/components/ui/info.vue | 4 +- .../client/src/components/ui/super-menu.vue | 2 +- .../src/components/url-preview-popup.vue | 8 +-- .../client/src/components/url-preview.vue | 2 +- .../client/src/components/user-preview.vue | 14 ++-- .../src/components/user-select-dialog.vue | 4 +- packages/client/src/config.ts | 2 +- packages/client/src/directives/appear.ts | 2 +- packages/client/src/directives/click-anime.ts | 2 +- packages/client/src/directives/get-size.ts | 4 +- packages/client/src/directives/hotkey.ts | 2 +- packages/client/src/directives/ripple.ts | 2 +- packages/client/src/directives/size.ts | 4 +- .../client/src/directives/user-preview.ts | 6 +- packages/client/src/instance.ts | 2 +- packages/client/src/os.ts | 10 +-- packages/client/src/pages/admin/database.vue | 20 +++--- packages/client/src/pages/admin/emojis.vue | 2 +- packages/client/src/pages/admin/files.vue | 2 +- .../client/src/pages/admin/integrations.vue | 48 +++++++------ .../client/src/pages/admin/proxy-account.vue | 26 +++---- packages/client/src/pages/admin/users.vue | 10 +-- packages/client/src/pages/auth.vue | 4 +- packages/client/src/pages/channel-editor.vue | 6 +- packages/client/src/pages/clip.vue | 2 +- packages/client/src/pages/emojis.category.vue | 2 +- packages/client/src/pages/emojis.emoji.vue | 2 +- packages/client/src/pages/federation.vue | 2 +- packages/client/src/pages/gallery/edit.vue | 12 ++-- packages/client/src/pages/mentions.vue | 10 +-- packages/client/src/pages/messages.vue | 10 +-- .../pages/messaging/messaging-room.form.vue | 4 +- .../messaging/messaging-room.message.vue | 2 +- .../client/src/pages/my-antennas/index.vue | 26 +++---- packages/client/src/pages/my-groups/index.vue | 2 +- packages/client/src/pages/my-lists/index.vue | 2 +- packages/client/src/pages/my-lists/list.vue | 2 +- packages/client/src/pages/note.vue | 70 ++++++++++--------- .../page-editor/els/page-editor.el.button.vue | 4 +- .../page-editor/els/page-editor.el.canvas.vue | 4 +- .../els/page-editor.el.counter.vue | 4 +- .../page-editor/els/page-editor.el.if.vue | 6 +- .../page-editor/els/page-editor.el.image.vue | 6 +- .../page-editor/els/page-editor.el.note.vue | 6 +- .../els/page-editor.el.number-input.vue | 4 +- .../page-editor/els/page-editor.el.post.vue | 4 +- .../els/page-editor.el.radio-button.vue | 6 +- .../els/page-editor.el.section.vue | 8 +-- .../page-editor/els/page-editor.el.switch.vue | 4 +- .../els/page-editor.el.text-input.vue | 4 +- .../page-editor/els/page-editor.el.text.vue | 4 +- .../els/page-editor.el.textarea-input.vue | 4 +- .../els/page-editor.el.textarea.vue | 4 +- .../pages/page-editor/page-editor.blocks.vue | 14 ++-- .../page-editor/page-editor.script-block.vue | 32 ++++----- .../src/pages/page-editor/page-editor.vue | 22 +++--- packages/client/src/pages/reset-password.vue | 2 +- packages/client/src/pages/settings/2fa.vue | 30 ++++---- packages/client/src/pages/settings/api.vue | 2 +- .../src/pages/settings/delete-account.vue | 2 +- packages/client/src/pages/settings/email.vue | 2 +- .../src/pages/settings/plugin.install.vue | 6 +- .../client/src/pages/settings/privacy.vue | 2 +- .../client/src/pages/settings/security.vue | 2 +- .../client/src/pages/user/index.activity.vue | 4 +- .../client/src/pages/user/index.photos.vue | 5 +- packages/client/src/pizzax.ts | 4 +- packages/client/src/plugin.ts | 14 ++-- packages/client/src/router.ts | 2 +- packages/client/src/scripts/2fa.ts | 8 +-- packages/client/src/scripts/autocomplete.ts | 4 +- .../client/src/scripts/collect-page-vars.ts | 12 ++-- packages/client/src/scripts/emojilist.ts | 2 +- packages/client/src/scripts/focus.ts | 4 +- .../client/src/scripts/format-time-string.ts | 2 +- packages/client/src/scripts/get-note-menu.ts | 4 +- .../src/scripts/get-static-image-url.ts | 2 +- packages/client/src/scripts/get-user-menu.ts | 6 +- packages/client/src/scripts/hotkey.ts | 6 +- packages/client/src/scripts/hpml/evaluator.ts | 14 ++-- packages/client/src/scripts/hpml/index.ts | 22 +++--- packages/client/src/scripts/hpml/lib.ts | 6 +- .../client/src/scripts/hpml/type-checker.ts | 6 +- packages/client/src/scripts/initialize-sw.ts | 4 +- packages/client/src/scripts/lookup-user.ts | 2 +- packages/client/src/scripts/physics.ts | 24 +++---- packages/client/src/scripts/please-login.ts | 2 +- packages/client/src/scripts/popout.ts | 2 +- .../client/src/scripts/reaction-picker.ts | 4 +- packages/client/src/scripts/select-file.ts | 22 +++--- .../src/scripts/show-suspended-dialog.ts | 2 +- packages/client/src/scripts/sticky-sidebar.ts | 2 +- packages/client/src/scripts/theme.ts | 4 +- packages/client/src/scripts/time.ts | 18 +---- packages/client/src/scripts/upload.ts | 12 ++-- .../client/src/scripts/use-note-capture.ts | 4 +- packages/client/src/theme-store.ts | 2 +- packages/client/src/ui/_common_/common.vue | 2 +- .../src/ui/_common_/sidebar-for-mobile.vue | 4 +- packages/client/src/ui/classic.header.vue | 6 +- packages/client/src/ui/classic.widgets.vue | 2 +- .../client/src/ui/deck/antenna-column.vue | 8 +-- packages/client/src/ui/deck/column.vue | 38 +++++----- packages/client/src/ui/deck/direct-column.vue | 4 +- packages/client/src/ui/deck/list-column.vue | 8 +-- .../client/src/ui/deck/mentions-column.vue | 2 +- .../src/ui/deck/notifications-column.vue | 5 +- packages/client/src/ui/deck/tl-column.vue | 12 ++-- .../client/src/widgets/activity.calendar.vue | 20 ++++-- .../client/src/widgets/activity.chart.vue | 12 ++-- packages/client/src/widgets/button.vue | 8 +-- packages/client/src/widgets/clock.vue | 8 +-- packages/client/src/widgets/digital-clock.vue | 2 +- packages/client/src/widgets/job-queue.vue | 2 +- packages/client/src/widgets/post-form.vue | 2 +- .../src/widgets/server-metric/cpu-mem.vue | 2 +- .../client/src/widgets/server-metric/net.vue | 2 +- packages/client/src/widgets/timeline.vue | 16 ++--- packages/client/src/widgets/widget.ts | 2 +- 186 files changed, 878 insertions(+), 833 deletions(-) diff --git a/packages/client/src/components/abuse-report-window.vue b/packages/client/src/components/abuse-report-window.vue index 45c9dca8e..1f849c47a 100644 --- a/packages/client/src/components/abuse-report-window.vue +++ b/packages/client/src/components/abuse-report-window.vue @@ -51,7 +51,7 @@ function send() { }).then(res => { os.alert({ type: 'success', - text: i18n.ts.abuseReported + text: i18n.ts.abuseReported, }); uiWindow.value?.close(); emit('closed'); diff --git a/packages/client/src/components/abuse-report.vue b/packages/client/src/components/abuse-report.vue index 3b7f107e9..db087841a 100644 --- a/packages/client/src/components/abuse-report.vue +++ b/packages/client/src/components/abuse-report.vue @@ -63,7 +63,7 @@ let forward = $ref(props.report.forwarded); function resolve() { os.apiWithDialog('admin/resolve-abuse-user-report', { - forward: forward, + forward, reportId: props.report.id, }).then(() => { emit('resolved', props.report.id); diff --git a/packages/client/src/components/analog-clock.vue b/packages/client/src/components/analog-clock.vue index 18dd1e3f4..3aa8a0f12 100644 --- a/packages/client/src/components/analog-clock.vue +++ b/packages/client/src/components/analog-clock.vue @@ -1,11 +1,12 @@