diff --git a/.gitignore b/.gitignore index 5c4fd4f..acbfb1e 100644 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,11 @@ pnpm-debug.log* .env.production # macOS-specific files -.DS_Store \ No newline at end of file +.DS_Store + +# translates (not needed) +/src/pages/ru/* +/src/pages/en/* +/src/pages/es/* +/src/pages/fr/* +/src/pages/jp/* \ No newline at end of file diff --git a/astro-i18next.config.mjs b/astro-i18next.config.mjs index c2ecf60..46abdcd 100644 --- a/astro-i18next.config.mjs +++ b/astro-i18next.config.mjs @@ -1,5 +1,4 @@ /** @type {import('astro-i18next').AstroI18nextConfig} */ export default { - defaultLocale: "en", locales: ["en", "jp"], }; \ No newline at end of file diff --git a/astro.config.mjs b/astro.config.mjs index f81c664..a90a2a1 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -1,29 +1,28 @@ -import { defineConfig } from 'astro/config'; +import { defineConfig, envField } from 'astro/config'; import node from "@astrojs/node"; import partytown from "@astrojs/partytown"; import sitemap from "@astrojs/sitemap"; import robotsTxt from "astro-robots-txt"; import vue from "@astrojs/vue"; import matomo from "astro-matomo"; - import astroI18next from "astro-i18next"; export default defineConfig({ + // Use Server-Side Rendering output: "server", adapter: node({ mode: "standalone" }), + // Security security: { checkOrigin: true }, + // Server Options server: { port: 6003, host: true }, - devToolbar: {enabled: false}, - experimental: { - actions: true, - }, + // Integrations and Plugins integrations: [ astroI18next(), partytown(), @@ -41,5 +40,11 @@ export default defineConfig({ disableCookies: true, debug: false, }) - ] + ], + // Others + devToolbar: {enabled: false}, + experimental: { + actions: true, + directRenderScript: true, + }, }); \ No newline at end of file diff --git a/bun.lockb b/bun.lockb index a3e7bda..c73de2b 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 5ab20c9..f97c57f 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "@astrojs/react": "^3.6.0", "@astrojs/sitemap": "^3.1.6", "@astrojs/vue": "^4.5.0", + "@fontsource-variable/roboto-flex": "^5.0.15", "@iconoir/vue": "^7.7.0", "@innologica/vue-dropdown-menu": "^0.1.4", "@shoelace-style/shoelace": "^2.15.1", diff --git a/src/components/Dropdown.astro b/src/components/Dropdown.astro index 637b67e..819ed12 100644 --- a/src/components/Dropdown.astro +++ b/src/components/Dropdown.astro @@ -44,27 +44,30 @@ if (Astro.url.pathname.startsWith('/watch')) { {t('dropdown.Instances')}

{t('dropdown.Hub')}

- {t('dropdown.Apps')} - {t('dropdown.Games')} + {t('dropdown.Apps')} + {t('dropdown.Games')} -

{t('dropdown.Openin')}

- {t('dropdown.LiteMode')} - {t('dropdown.YouTube')} - {t('dropdown.Invidious')} - {t('dropdown.Pipe')} + + {WatchPage ? +

{t('dropdown.Openin')}

+ {t('dropdown.LiteMode')} + {t('dropdown.YouTube')} + {t('dropdown.Invidious')} + {t('dropdown.Pipe')} + : + null + }

{t('dropdown.Other')}

- {t('dropdown.About')} - {t('dropdown.Privacy')} - {t('dropdown.SourceCode')} + {t('dropdown.About')} + {t('dropdown.Privacy')} + {t('dropdown.SourceCode')}
-

Language

- Go Back +

{t('dropdown.Language')}

+ {t("dropdown.GoBack")} English - Spanish - Russian - Japanese + 日本語