|
|
@ -325,9 +325,9 @@ const imageUrlToBase64 = async (url) => {
|
|
|
|
const helper = async () => { }
|
|
|
|
const helper = async () => { }
|
|
|
|
|
|
|
|
|
|
|
|
const searchAnime = async (query) => {
|
|
|
|
const searchAnime = async (query) => {
|
|
|
|
|
|
|
|
|
|
|
|
let data = JSON.parse(JSON.stringify(require('../assets/directory.json')));
|
|
|
|
let data = JSON.parse(JSON.stringify(require('../assets/directory.json')));
|
|
|
|
const res = data.filter(x => x.title.includes(query));
|
|
|
|
let queryLowerCase = query.toLowerCase()
|
|
|
|
|
|
|
|
const res = data.filter(x => x.title.toLowerCase().includes(queryLowerCase));
|
|
|
|
|
|
|
|
|
|
|
|
return res.map(doc => ({
|
|
|
|
return res.map(doc => ({
|
|
|
|
id: doc.id || null,
|
|
|
|
id: doc.id || null,
|
|
|
|