Apply Prettier formatting
This commit is contained in:
parent
850977b6ec
commit
8e847df600
5 changed files with 1818 additions and 1822 deletions
3629
pnpm-lock.yaml
generated
3629
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
|
|
@ -13,10 +13,10 @@ const themeList = [
|
||||||
|
|
||||||
const languageList = [
|
const languageList = [
|
||||||
{ name: "English", value: "en" },
|
{ name: "English", value: "en" },
|
||||||
{ name: "Français", value: "fr"},
|
{ name: "Français", value: "fr" },
|
||||||
{ name: "中文", value: "zh" },
|
{ name: "中文", value: "zh" },
|
||||||
{ name: "日本語", value: "jp" },
|
{ name: "日本語", value: "jp" },
|
||||||
{ name: "Русский", value: "ru" }
|
{ name: "Русский", value: "ru" },
|
||||||
];
|
];
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,5 +11,5 @@ export const ui = {
|
||||||
fr,
|
fr,
|
||||||
zh,
|
zh,
|
||||||
jp,
|
jp,
|
||||||
ru
|
ru,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,6 @@ const { title, optionalPreloads } = Astro.props;
|
||||||
window.idb = db;
|
window.idb = db;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<meta name="generator" content={Astro.generator} />
|
<meta name="generator" content={Astro.generator} />
|
||||||
<title>{title}</title>
|
<title>{title}</title>
|
||||||
|
|
|
||||||
|
|
@ -382,8 +382,8 @@ export function getStaticPaths() {
|
||||||
let currentLanguage = window.location.pathname.split("/")[1];
|
let currentLanguage = window.location.pathname.split("/")[1];
|
||||||
// Do nothing.. because we're already on the page.
|
// Do nothing.. because we're already on the page.
|
||||||
if (value == currentLanguage) return;
|
if (value == currentLanguage) return;
|
||||||
window.location.href = `/${value}/settings`;
|
window.location.href = `/${value}/settings`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
document.addEventListener("astro:after-swap", () => {
|
document.addEventListener("astro:after-swap", () => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue