update
This commit is contained in:
parent
6edbbedde0
commit
199ca7074b
1 changed files with 7 additions and 7 deletions
|
@ -1,21 +1,21 @@
|
|||
---
|
||||
import { t, changeLanguage } from "i18next";
|
||||
import Base from "@layouts/Default.astro";
|
||||
import { t, changeLanguage } from "i18next"
|
||||
import Base from "@layouts/Default.astro"
|
||||
// Configuration
|
||||
import { DEFAULT_DATA_PROXY, DEFAULT_IMAGE_PROXY } from "../../config.json";
|
||||
import { DEFAULT_DATA_PROXY, DEFAULT_IMAGE_PROXY } from "../../config.json"
|
||||
|
||||
changeLanguage("en");
|
||||
changeLanguage("en")
|
||||
|
||||
import Video from '@components/VideoItem.astro'
|
||||
|
||||
// Fetch
|
||||
const SBO = Astro.url.href.split("search?query=").pop();
|
||||
const SBO = Astro.url.href.split("search?query=").pop()
|
||||
const response = await fetch(DEFAULT_DATA_PROXY + "/api/v1/search?q=" + SBO)
|
||||
.catch((error) => {
|
||||
console.log(error)
|
||||
});
|
||||
})
|
||||
|
||||
const data = await response.json();
|
||||
const data = await response.json()
|
||||
---
|
||||
|
||||
<Base Title='MinPluto Search'>
|
||||
|
|
Reference in a new issue