From a96745d44097e5dc6b110556c2ebe2085ce05041 Mon Sep 17 00:00:00 2001 From: Filipa Lacerda Date: Thu, 19 Apr 2018 16:07:11 +0100 Subject: Runs prettier on some vue shared components --- .../javascripts/vue_shared/components/commit.vue | 215 ++++++++++----------- .../vue_shared/components/expand_button.vue | 54 +++--- .../vue_shared/components/header_ci_component.vue | 132 ++++++------- .../javascripts/vue_shared/components/icon.vue | 118 +++++------ 4 files changed, 255 insertions(+), 264 deletions(-) (limited to 'app/assets') diff --git a/app/assets/javascripts/vue_shared/components/commit.vue b/app/assets/javascripts/vue_shared/components/commit.vue index b8875d04488..8f250a6c989 100644 --- a/app/assets/javascripts/vue_shared/components/commit.vue +++ b/app/assets/javascripts/vue_shared/components/commit.vue @@ -1,119 +1,111 @@ -
-
+ /> - import { __ } from '~/locale'; - /** - * Port of detail_behavior expand button. - * - * @example - * - * - * - */ - export default { - name: 'ExpandButton', - data() { - return { - isCollapsed: true, - }; +import { __ } from '~/locale'; +/** + * Port of detail_behavior expand button. + * + * @example + * + * + * + */ +export default { + name: 'ExpandButton', + data() { + return { + isCollapsed: true, + }; + }, + computed: { + ariaLabel() { + return __('Click to expand text'); }, - computed: { - ariaLabel() { - return __('Click to expand text'); - }, + }, + methods: { + onClick() { + this.isCollapsed = !this.isCollapsed; }, - methods: { - onClick() { - this.isCollapsed = !this.isCollapsed; - }, - }, - }; + }, +};