From 2c2b84d31dbe906b89dfb995394d887af110e04c Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Fri, 5 Jul 2019 10:02:14 +0300 Subject: npm eslint --fix . --- src/components/moderation_tools/moderation_tools.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/components/moderation_tools') diff --git a/src/components/moderation_tools/moderation_tools.js b/src/components/moderation_tools/moderation_tools.js index 3eedeaa1..11de9f93 100644 --- a/src/components/moderation_tools/moderation_tools.js +++ b/src/components/moderation_tools/moderation_tools.js @@ -52,12 +52,12 @@ const ModerationTools = { if (this.tagsSet.has(tag)) { store.state.api.backendInteractor.untagUser(this.user, tag).then(response => { if (!response.ok) { return } - store.commit('untagUser', {user: this.user, tag}) + store.commit('untagUser', { user: this.user, tag }) }) } else { store.state.api.backendInteractor.tagUser(this.user, tag).then(response => { if (!response.ok) { return } - store.commit('tagUser', {user: this.user, tag}) + store.commit('tagUser', { user: this.user, tag }) }) } }, @@ -66,12 +66,12 @@ const ModerationTools = { if (this.user.rights[right]) { store.state.api.backendInteractor.deleteRight(this.user, right).then(response => { if (!response.ok) { return } - store.commit('updateRight', {user: this.user, right: right, value: false}) + store.commit('updateRight', { user: this.user, right: right, value: false }) }) } else { store.state.api.backendInteractor.addRight(this.user, right).then(response => { if (!response.ok) { return } - store.commit('updateRight', {user: this.user, right: right, value: true}) + store.commit('updateRight', { user: this.user, right: right, value: true }) }) } }, @@ -80,7 +80,7 @@ const ModerationTools = { const status = !!this.user.deactivated store.state.api.backendInteractor.setActivationStatus(this.user, status).then(response => { if (!response.ok) { return } - store.commit('updateActivationStatus', {user: this.user, status: status}) + store.commit('updateActivationStatus', { user: this.user, status: status }) }) }, deleteUserDialog (show) { @@ -89,7 +89,7 @@ const ModerationTools = { deleteUser () { const store = this.$store const user = this.user - const {id, name} = user + const { id, name } = user store.state.api.backendInteractor.deleteUser(user) .then(e => { this.$store.dispatch('markStatusesAsDeleted', status => user.id === status.user.id) -- cgit v1.2.3-70-g09d2 From 8d6750d9c2816e33a0444cd978f94009d8b85d47 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Fri, 5 Jul 2019 10:17:44 +0300 Subject: eslint --fix --ext .js,.vue src --- src/App.vue | 108 ++- src/components/about/about.vue | 6 +- src/components/attachment/attachment.vue | 100 ++- src/components/autosuggest/autosuggest.vue | 22 +- src/components/avatar_list/avatar_list.vue | 9 +- src/components/basic_user_card/basic_user_card.vue | 41 +- src/components/block_card/block_card.vue | 14 +- src/components/chat_panel/chat_panel.vue | 59 +- src/components/checkbox/checkbox.vue | 9 +- src/components/color_input/color_input.vue | 65 +- src/components/contrast_ratio/contrast_ratio.vue | 52 +- .../conversation-page/conversation-page.vue | 4 +- src/components/conversation/conversation.vue | 27 +- src/components/dialog_modal/dialog_modal.vue | 16 +- src/components/dm_timeline/dm_timeline.vue | 6 +- src/components/emoji-input/emoji-input.vue | 44 +- src/components/export_import/export_import.vue | 33 +- src/components/exporter/exporter.vue | 12 +- src/components/extra_buttons/extra_buttons.vue | 39 +- src/components/favorite_button/favorite_button.vue | 17 +- src/components/features_panel/features_panel.vue | 22 +- src/components/follow_card/follow_card.vue | 19 +- .../follow_request_card/follow_request_card.vue | 14 +- src/components/follow_requests/follow_requests.vue | 9 +- src/components/font_control/font_control.vue | 80 +- .../friends_timeline/friends_timeline.vue | 6 +- src/components/gallery/gallery.vue | 18 +- src/components/image_cropper/image_cropper.vue | 55 +- src/components/importer/importer.vue | 33 +- .../instance_specific_panel.vue | 8 +- src/components/interactions/interactions.vue | 30 +- .../interface_language_switcher.vue | 69 +- src/components/link-preview/link-preview.vue | 18 +- src/components/list/list.vue | 16 +- src/components/login_form/login_form.vue | 114 +-- src/components/media_modal/media_modal.vue | 22 +- src/components/media_upload/media_upload.vue | 30 +- src/components/mentions/mentions.vue | 6 +- src/components/mfa_form/recovery_form.vue | 85 ++- src/components/mfa_form/totp_form.vue | 90 ++- src/components/mobile_nav/mobile_nav.vue | 71 +- .../mobile_post_status_modal.vue | 42 +- .../moderation_tools/moderation_tools.vue | 237 ++++-- src/components/mute_card/mute_card.vue | 14 +- src/components/nav_panel/nav_panel.vue | 17 +- src/components/notification/notification.vue | 97 ++- src/components/notifications/notifications.vue | 66 +- src/components/opacity_input/opacity_input.vue | 58 +- src/components/poll/poll.vue | 39 +- src/components/poll/poll_form.vue | 65 +- .../post_status_form/post_status_form.vue | 363 +++++---- src/components/progress_button/progress_button.vue | 5 +- .../public_and_external_timeline.vue | 6 +- src/components/public_timeline/public_timeline.vue | 6 +- src/components/range_input/range_input.vue | 79 +- src/components/registration/registration.vue | 222 ++++-- src/components/remote_follow/remote_follow.vue | 22 +- src/components/retweet_button/retweet_button.vue | 23 +- src/components/scope_selector/scope_selector.vue | 59 +- src/components/selectable_list/selectable_list.vue | 47 +- src/components/settings/settings.vue | 732 +++++++++++------- src/components/shadow_control/shadow_control.vue | 292 +++++--- src/components/side_drawer/side_drawer.vue | 97 ++- src/components/status/status.vue | 409 +++++++--- src/components/still-image/still-image.vue | 18 +- src/components/style_switcher/preview.vue | 151 ++-- src/components/style_switcher/style_switcher.vue | 825 ++++++++++++++------- src/components/tag_timeline/tag_timeline.vue | 9 +- .../terms_of_service_panel.vue | 6 +- src/components/timeago/timeago.vue | 19 +- src/components/timeline/timeline.vue | 57 +- src/components/user_avatar/user_avatar.vue | 2 +- src/components/user_card/user_card.vue | 360 ++++++--- src/components/user_finder/user_finder.vue | 37 +- src/components/user_panel/user_panel.vue | 20 +- src/components/user_profile/user_profile.vue | 159 ++-- .../user_reporting_modal/user_reporting_modal.vue | 100 ++- src/components/user_search/user_search.vue | 36 +- src/components/user_settings/confirm.vue | 26 +- src/components/user_settings/mfa.vue | 186 +++-- src/components/user_settings/mfa_backup_codes.vue | 24 +- src/components/user_settings/mfa_totp.vue | 56 +- src/components/user_settings/user_settings.vue | 523 +++++++++---- .../video_attachment/video_attachment.vue | 5 +- src/components/who_to_follow/who_to_follow.vue | 9 +- .../who_to_follow_panel/who_to_follow_panel.vue | 17 +- 86 files changed, 4910 insertions(+), 2230 deletions(-) (limited to 'src/components/moderation_tools') diff --git a/src/App.vue b/src/App.vue index 769e075d..758c9fce 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,53 +1,111 @@