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/user_card/user_card.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/components/user_card') diff --git a/src/components/user_card/user_card.js b/src/components/user_card/user_card.js index 7c6ffa89..63dfa6ed 100644 --- a/src/components/user_card/user_card.js +++ b/src/components/user_card/user_card.js @@ -23,15 +23,15 @@ export default { computed: { classes () { return [{ - 'user-card-rounded-t': this.rounded === 'top', // set border-top-left-radius and border-top-right-radius - 'user-card-rounded': this.rounded === true, // set border-radius for all sides - 'user-card-bordered': this.bordered === true // set border for all sides + 'user-card-rounded-t': this.rounded === 'top', // set border-top-left-radius and border-top-right-radius + 'user-card-rounded': this.rounded === true, // set border-radius for all sides + 'user-card-bordered': this.bordered === true // set border for all sides }] }, style () { const color = this.$store.state.config.customTheme.colors - ? this.$store.state.config.customTheme.colors.bg // v2 - : this.$store.state.config.colors.bg // v1 + ? this.$store.state.config.customTheme.colors.bg // v2 + : this.$store.state.config.colors.bg // v1 if (color) { const rgb = (typeof color === 'string') ? hex2rgb(color) : color @@ -110,7 +110,7 @@ export default { followUser () { const store = this.$store this.followRequestInProgress = true - requestFollow(this.user, store).then(({sent}) => { + requestFollow(this.user, store).then(({ sent }) => { this.followRequestInProgress = false this.followRequestSent = sent }) @@ -141,7 +141,7 @@ export default { store.commit('setProfileView', { v }) } }, - linkClicked ({target}) { + linkClicked ({ target }) { if (target.tagName === 'SPAN') { target = target.parentNode } -- 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/user_card') 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 @@