biome format --write

This commit is contained in:
Henry Jameson 2026-01-06 16:22:52 +02:00
commit 9262e803ec
415 changed files with 54076 additions and 17419 deletions

View file

@ -1,33 +1,27 @@
import { library } from '@fortawesome/fontawesome-svg-core'
import {
faSearch,
faChevronLeft
} from '@fortawesome/free-solid-svg-icons'
import { faSearch, faChevronLeft } from '@fortawesome/free-solid-svg-icons'
import { debounce } from 'lodash'
import Checkbox from '../checkbox/checkbox.vue'
library.add(
faSearch,
faChevronLeft
)
library.add(faSearch, faChevronLeft)
const ListsUserSearch = {
components: {
Checkbox
Checkbox,
},
emits: ['loading', 'loadingDone', 'results'],
data () {
data() {
return {
loading: false,
query: '',
followingOnly: true
followingOnly: true,
}
},
methods: {
onInput: debounce(function () {
this.search(this.query)
}, 2000),
search (query) {
search(query) {
if (!query) {
this.loading = false
return
@ -36,16 +30,25 @@ const ListsUserSearch = {
this.loading = true
this.$emit('loading')
this.userIds = []
this.$store.dispatch('search', { q: query, resolve: true, type: 'accounts', following: this.followingOnly })
.then(data => {
this.$emit('results', data.accounts.map(a => a.id))
this.$store
.dispatch('search', {
q: query,
resolve: true,
type: 'accounts',
following: this.followingOnly,
})
.then((data) => {
this.$emit(
'results',
data.accounts.map((a) => a.id),
)
})
.finally(() => {
this.loading = false
this.$emit('loadingDone')
})
}
}
},
},
}
export default ListsUserSearch