logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: 3c0e7882b10989424c3ec98413b555373efa1719
parent cf294f2d1825cc34e5e632c1a00095a81cad06f9
Author: Henry Jameson <me@hjkos.com>
Date:   Mon, 21 Nov 2022 22:17:33 +0200

lint

Diffstat:

Msrc/components/emoji_input/emoji_input.vue13++++++++++---
Msrc/components/emoji_picker/emoji_picker.vue4++--
Msrc/components/mobile_nav/mobile_nav.vue6+++---
Msrc/components/notifications/notifications.vue2+-
Msrc/components/popover/popover.vue5++++-
Msrc/components/quick_filter_settings/quick_filter_settings.vue2+-
Msrc/components/quick_view_settings/quick_view_settings.vue2+-
Msrc/components/search/search.js4++--
Msrc/components/timeline/timeline.vue14++++++++++----
9 files changed, 34 insertions(+), 18 deletions(-)

diff --git a/src/components/emoji_input/emoji_input.vue b/src/components/emoji_input/emoji_input.vue @@ -6,9 +6,16 @@ > <slot /> <!-- TODO: make the 'x' disappear if at the end maybe? --> - <div class="hidden-overlay" :style="overlayStyle" ref="hiddenOverlay"> + <div + ref="hiddenOverlay" + class="hidden-overlay" + :style="overlayStyle" + > <span>{{ preText }}</span> - <span class="caret" ref="hiddenOverlayCaret">x</span> + <span + ref="hiddenOverlayCaret" + class="caret" + >x</span> <span>{{ postText }}</span> </div> <template v-if="enableEmojiPicker"> @@ -33,9 +40,9 @@ /> </template> <Popover + ref="suggestorPopover" class="autocomplete-panel" placement="bottom" - ref="suggestorPopover" > <template #content> <div diff --git a/src/components/emoji_picker/emoji_picker.vue b/src/components/emoji_picker/emoji_picker.vue @@ -1,8 +1,8 @@ <template> <Popover + ref="popover" trigger="click" popover-class="emoji-picker popover-default" - ref="popover" @show="onPopoverShown" @close="onPopoverClosed" > @@ -66,12 +66,12 @@ > <div class="emoji-search"> <input + ref="search" v-model="keyword" type="text" class="form-control" :placeholder="$t('emoji.search_emoji')" @input="$event.target.composing = false" - ref="search" > </div> <div diff --git a/src/components/mobile_nav/mobile_nav.vue b/src/components/mobile_nav/mobile_nav.vue @@ -11,7 +11,7 @@ <button class="button-unstyled mobile-nav-button" :title="$t('nav.mobile_sidebar')" - :aria-expanaded="this.$refs.sideDrawer && !this.$refs.sideDrawer.closed" + :aria-expanaded="$refs.sideDrawer && !$refs.sideDrawer.closed" @click.stop.prevent="toggleMobileSidebar()" > <FAIcon @@ -51,7 +51,7 @@ > <div class="mobile-notifications-header"> <span class="title">{{ $t('notifications.notifications') }}</span> - <span class="spacer"/> + <span class="spacer" /> <button v-if="notificationsAtTop" class="button-unstyled mobile-nav-button" @@ -79,8 +79,8 @@ </div> <div id="mobile-notifications" - class="mobile-notifications" ref="mobileNotifications" + class="mobile-notifications" @scroll="onScroll" /> </aside> diff --git a/src/components/notifications/notifications.vue b/src/components/notifications/notifications.vue @@ -22,8 +22,8 @@ >{{ unseenCount }}</span> </div> <div - class="rightside-button" v-if="showScrollTop" + class="rightside-button" > <button class="button-unstyled scroll-to-top-button" diff --git a/src/components/popover/popover.vue b/src/components/popover/popover.vue @@ -12,7 +12,10 @@ > <slot name="trigger" /> </button> - <teleport :disabled="!teleport" to="#popovers"> + <teleport + :disabled="!teleport" + to="#popovers" + > <transition name="fade"> <div v-if="!hidden" diff --git a/src/components/quick_filter_settings/quick_filter_settings.vue b/src/components/quick_filter_settings/quick_filter_settings.vue @@ -3,7 +3,7 @@ trigger="click" class="QuickFilterSettings" :bound-to="{ x: 'container' }" - :triggerAttrs="{ title: $t('timeline.quick_filter_settings') }" + :trigger-attrs="{ title: $t('timeline.quick_filter_settings') }" > <template #content> <div class="dropdown-menu"> diff --git a/src/components/quick_view_settings/quick_view_settings.vue b/src/components/quick_view_settings/quick_view_settings.vue @@ -3,7 +3,7 @@ trigger="click" class="QuickViewSettings" :bound-to="{ x: 'container' }" - :triggerAttrs="{ title: $t('timeline.quick_view_settings') }" + :trigger-attrs="{ title: $t('timeline.quick_view_settings') }" > <template #content> <div class="dropdown-menu"> diff --git a/src/components/search/search.js b/src/components/search/search.js @@ -83,11 +83,11 @@ const Search = { this.lastStatusFetchCount = 0 } - this.$store.dispatch('search', { q: query, resolve: true, offset: this.statusesOffset, 'type': searchType }) + this.$store.dispatch('search', { q: query, resolve: true, offset: this.statusesOffset, type: searchType }) .then(data => { this.loading = false - let oldLength = this.statuses.length + const oldLength = this.statuses.length // Always append to old results. If new results are empty, this doesn't change anything this.userIds = this.userIds.concat(map(data.accounts, 'id')) diff --git a/src/components/timeline/timeline.vue b/src/components/timeline/timeline.vue @@ -6,8 +6,8 @@ :timeline-name="timelineName" /> <div - class="rightside-button" v-if="showScrollTop && !embedded" + class="rightside-button" > <button class="button-unstyled scroll-to-top-button" @@ -26,8 +26,8 @@ </div> <template v-if="mobileLayout && !embedded"> <div - class="rightside-button" v-if="showLoadButton" + class="rightside-button" > <button class="button-unstyled loadmore-button" @@ -72,8 +72,14 @@ {{ $t('timeline.up_to_date') }} </div> </template> - <QuickFilterSettings v-if="!embedded" class="rightside-button"/> - <QuickViewSettings v-if="!embedded" class="rightside-button"/> + <QuickFilterSettings + v-if="!embedded" + class="rightside-button" + /> + <QuickViewSettings + v-if="!embedded" + class="rightside-button" + /> </div> <div :class="classes.body"> <div