mirror of
https://github.com/tachiyomiorg/website.git
synced 2024-12-21 07:31:58 +01:00
add id searching to extension list (#739)
* add id searching and baseurl * reuse searchfield instead * fix conflict * remove baseurl
This commit is contained in:
parent
504b32e7fa
commit
942574939f
@ -39,10 +39,10 @@ export default {
|
||||
|
||||
if (filters.search) {
|
||||
filteredGroup = filteredGroup.filter((ext) =>
|
||||
ext.name.toLowerCase().includes(filters.search.toLowerCase())
|
||||
ext.name.toLowerCase().includes(filters.search.toLowerCase()) ||
|
||||
ext.sources.some((source) => source.id.includes(filters.search))
|
||||
);
|
||||
}
|
||||
|
||||
filteredGroup = filteredGroup.filter((ext) =>
|
||||
filters.nsfw === "Don't care" ? true : ext.nsfw === (filters.nsfw === "Yes" ? 1 : 0)
|
||||
);
|
||||
@ -50,7 +50,6 @@ export default {
|
||||
if (filters.sort && filters.sort === "Descending") {
|
||||
filteredGroup = filteredGroup.reverse();
|
||||
}
|
||||
|
||||
if (filteredGroup.length) {
|
||||
filtered.push(filteredGroup);
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<span class="filters-list">
|
||||
<ElInput v-model="filters.search" placeholder="Search extensions by name..." clearable />
|
||||
<ElInput v-model="filters.search" placeholder="Search extensions by name or ID..." clearable />
|
||||
|
||||
<ElSelect v-model="filters.lang" placeholder="Show specific languages..." multiple clearable>
|
||||
<ElOption
|
||||
|
Loading…
Reference in New Issue
Block a user