diff --git a/Dockerfile b/Dockerfile
old mode 100644
new mode 100755
diff --git a/LICENSE b/LICENSE
old mode 100644
new mode 100755
diff --git a/README.md b/README.md
old mode 100644
new mode 100755
index 7176d85..6f4866b
--- a/README.md
+++ b/README.md
@@ -36,7 +36,7 @@ ___
The package manager that you need to use with MinPluto must be [Bun](https://bun.sh/) since it appears to be the most functional option for this project. Attempting to use another package manager like Yarn or PNPM may cause issues, view [Package Managers](#package-managers) in the [Compatibility](#compatibility) section. There seems to be some issues related to both `@astrojs/vue` and `@iconoir/vue`.
-Bun is much faster for installation time and it works standalone, meaning you don't need NodeJS installed for it to work.
+You'll still need to have [NodeJS](https://nodejs.org/en/download/package-manager) v21 or newer install in order for translations to work properly.
___
diff --git a/astro-i18next.config.mjs b/astro-i18next.config.mjs
old mode 100644
new mode 100755
diff --git a/astro.config.mjs b/astro.config.mjs
old mode 100644
new mode 100755
diff --git a/bun.lockb b/bun.lockb
index 4834312..9af6c08 100755
Binary files a/bun.lockb and b/bun.lockb differ
diff --git a/docker-compose.yml b/docker-compose.yml
old mode 100644
new mode 100755
diff --git a/instances.json b/instances.json
old mode 100644
new mode 100755
diff --git a/package.json b/package.json
old mode 100644
new mode 100755
index c5f5e49..92ac298
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "minpluto",
- "version": "2024.07.26",
+ "version": "2024.08.02",
"description": "An open source frontend alternative to YouTube.",
"repository": "https://sudovanilla.org/MinPluto/MinPluto",
"author": "Korbs ",
diff --git a/src/components/Chip.astro b/src/components/Chip.astro
old mode 100644
new mode 100755
diff --git a/src/components/Dialog.astro b/src/components/Dialog.astro
old mode 100644
new mode 100755
diff --git a/src/components/DiscoverChannel.astro b/src/components/DiscoverChannel.astro
old mode 100644
new mode 100755
diff --git a/src/components/Dropdown.astro b/src/components/Dropdown.astro
old mode 100644
new mode 100755
diff --git a/src/components/MusicItem.astro b/src/components/MusicItem.astro
old mode 100644
new mode 100755
diff --git a/src/components/Search.astro b/src/components/Search.astro
old mode 100644
new mode 100755
diff --git a/src/components/VideoItem.astro b/src/components/VideoItem.astro
old mode 100644
new mode 100755
diff --git a/src/components/buttons/Telemtry.astro b/src/components/buttons/Telemtry.astro
old mode 100644
new mode 100755
diff --git a/src/components/category/trending.astro b/src/components/category/trending.astro
old mode 100644
new mode 100755
diff --git a/src/components/global/Analytics.astro b/src/components/global/Analytics.astro
old mode 100644
new mode 100755
diff --git a/src/components/global/Footer.astro b/src/components/global/Footer.astro
old mode 100644
new mode 100755
diff --git a/src/components/global/Head.astro b/src/components/global/Head.astro
old mode 100644
new mode 100755
index d9e8816..42c9acc
--- a/src/components/global/Head.astro
+++ b/src/components/global/Head.astro
@@ -3,8 +3,7 @@
import i18next, { t } from "i18next";
// Cookies
-/// Language
-//// If the user is new to the site, set English as default
+/// Set Default
if (Astro.cookies.get("Language") === undefined) {
Astro.cookies.set("Language", "EN", {path: "/",sameSite: 'strict'})
} else {
@@ -12,6 +11,13 @@ if (Astro.cookies.get("Language") === undefined) {
if (UserLanguage === "JP") {i18next.changeLanguage("jp")}
else if (UserLanguage === "EN") {i18next.changeLanguage("en")}
}
+if (Astro.cookies.get("Milieu") === undefined) {
+ Astro.cookies.set("Milieu", "Enabled", {path: "/",sameSite: 'strict'})
+} else {
+ var UserLanguage = Astro.cookies.get("Language").value
+ if (UserLanguage === "JP") {i18next.changeLanguage("jp")}
+ else if (UserLanguage === "EN") {i18next.changeLanguage("en")}
+}
/// Telemtry
//// Users should be opted-out by default
diff --git a/src/components/global/MobileNav.astro b/src/components/global/MobileNav.astro
old mode 100644
new mode 100755
diff --git a/src/components/global/Sidebar.astro b/src/components/global/Sidebar.astro
old mode 100644
new mode 100755
diff --git a/src/components/information/InstanceList.astro b/src/components/information/InstanceList.astro
old mode 100644
new mode 100755
diff --git a/src/components/information/Invidious.astro b/src/components/information/Invidious.astro
old mode 100644
new mode 100755
diff --git a/src/components/search/Creator.astro b/src/components/search/Creator.astro
old mode 100644
new mode 100755
diff --git a/src/components/search/Stream.astro b/src/components/search/Stream.astro
old mode 100644
new mode 100755
diff --git a/src/components/text/PrivacyPolicyAnalytics.astro b/src/components/text/PrivacyPolicyAnalytics.astro
old mode 100644
new mode 100755
diff --git a/src/components/text/PrivacyPolicyCloudflare.astro b/src/components/text/PrivacyPolicyCloudflare.astro
old mode 100644
new mode 100755
diff --git a/src/components/video-player/Controls.astro b/src/components/video-player/Controls.astro
old mode 100644
new mode 100755
index a23ad31..e737c8f
--- a/src/components/video-player/Controls.astro
+++ b/src/components/video-player/Controls.astro
@@ -1,15 +1,27 @@
---
+// Cookies
+if (Astro.cookies.get("Milieu").value === "Enabled") {
+ var Milieu = true
+} else {
+ var Milieu = false
+}
+
+// Icons
import {
+ArrowUpRight,
Backward15Seconds,
Enlarge,
Forward15Seconds,
+ NavArrowRight,
PlaySolid,
Settings,
+SwitchOff,
+SwitchOn,
} from "@iconoir/vue";
---
-
DJI: Landscape Footage of Cities
+
The Mark On The Wall
@@ -29,9 +41,108 @@ import {
-
+
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+ {Milieu ?
+
+ :
+
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/video-player/Player.astro b/src/components/video-player/Player.astro
old mode 100644
new mode 100755
index df6fcbe..a9d79d5
--- a/src/components/video-player/Player.astro
+++ b/src/components/video-player/Player.astro
@@ -1,6 +1,13 @@
---
// Properties
-const { Poster, Source } = Astro.props
+const { Poster, Video, Audio } = Astro.props
+
+// Cookies
+if (Astro.cookies.get("Milieu").value === "Enabled") {
+ var Milieu = true
+} else {
+ var Milieu = false
+}
// Components
import Controls from '@components/video-player/Controls.astro'
@@ -10,12 +17,85 @@ import '@styles/player.scss'
---
-
-
+
+
+
+
-
\ No newline at end of file
+
+
+{Milieu ?
+
+ :
+ null
+}
\ No newline at end of file
diff --git a/src/data/discover.json b/src/data/discover.json
old mode 100644
new mode 100755
diff --git a/src/env.d.ts b/src/env.d.ts
old mode 100644
new mode 100755
diff --git a/src/layouts/API.astro b/src/layouts/API.astro
old mode 100644
new mode 100755
diff --git a/src/layouts/Default.astro b/src/layouts/Default.astro
old mode 100644
new mode 100755
index 18cbf9a..884662d
--- a/src/layouts/Default.astro
+++ b/src/layouts/Default.astro
@@ -1,22 +1,22 @@
---
// Properties
-const { Title, Description } = Astro.props
+const { Title, Description } = Astro.props;
// Components
-import Head from '@components/global/Head.astro'
-import MobileNav from '@components/global/MobileNav.astro'
-import Sidebar from '@components/global/Sidebar.astro'
-import Footer from '@components/global/Footer.astro'
+import Head from "@components/global/Head.astro";
+import MobileNav from "@components/global/MobileNav.astro";
+import Sidebar from "@components/global/Sidebar.astro";
+import Footer from "@components/global/Footer.astro";
// Styles
-import '@styles/index.scss'
-import '@styles/mobile.scss'
+import "@styles/index.scss";
+import "@styles/mobile.scss";
---
-
-
-
+
+
+
-
+
-
+
diff --git a/src/layouts/Embed.astro b/src/layouts/Embed.astro
old mode 100644
new mode 100755
diff --git a/src/layouts/Error.astro b/src/layouts/Error.astro
old mode 100644
new mode 100755
diff --git a/src/layouts/Markdown.astro b/src/layouts/Markdown.astro
old mode 100644
new mode 100755
diff --git a/src/layouts/Settings.astro b/src/layouts/Settings.astro
old mode 100644
new mode 100755
diff --git a/src/library/supabase.ts b/src/library/supabase.ts
old mode 100644
new mode 100755
diff --git a/src/pages/404.astro b/src/pages/404.astro
old mode 100644
new mode 100755
diff --git a/src/pages/500.astro b/src/pages/500.astro
old mode 100644
new mode 100755
diff --git a/src/pages/account/confirm-your-email.astro b/src/pages/account/confirm-your-email.astro
old mode 100644
new mode 100755
diff --git a/src/pages/account/index.astro b/src/pages/account/index.astro
old mode 100644
new mode 100755
diff --git a/src/pages/api/auth/confirm.ts b/src/pages/api/auth/confirm.ts
old mode 100644
new mode 100755
diff --git a/src/pages/api/auth/login.ts b/src/pages/api/auth/login.ts
old mode 100644
new mode 100755
diff --git a/src/pages/api/auth/logout.ts b/src/pages/api/auth/logout.ts
old mode 100644
new mode 100755
diff --git a/src/pages/api/auth/register.ts b/src/pages/api/auth/register.ts
old mode 100644
new mode 100755
diff --git a/src/pages/api/language/en.astro b/src/pages/api/language/en.astro
old mode 100644
new mode 100755
diff --git a/src/pages/api/language/jp.astro b/src/pages/api/language/jp.astro
old mode 100644
new mode 100755
diff --git a/src/pages/api/player/milieu/disable.astro b/src/pages/api/player/milieu/disable.astro
new file mode 100755
index 0000000..cb64b5b
--- /dev/null
+++ b/src/pages/api/player/milieu/disable.astro
@@ -0,0 +1,9 @@
+---
+import API from '@layouts/API.astro'
+Astro.cookies.set("Milieu", "Disabled", {
+ path: "/",
+ sameSite: "strict"
+});
+return Astro.redirect("/");
+---
+
\ No newline at end of file
diff --git a/src/pages/api/player/milieu/enable.astro b/src/pages/api/player/milieu/enable.astro
new file mode 100755
index 0000000..36a480e
--- /dev/null
+++ b/src/pages/api/player/milieu/enable.astro
@@ -0,0 +1,14 @@
+---
+// Layout
+import API from '@layouts/API.astro'
+
+// API Action
+Astro.cookies.set("Milieu", "Enabled", {
+ path: "/",
+ sameSite: "strict"
+});
+
+// Return
+return Astro.redirect("/telemtry");
+---
+
\ No newline at end of file
diff --git a/src/pages/api/telemtry/disable.astro b/src/pages/api/telemtry/disable.astro
old mode 100644
new mode 100755
diff --git a/src/pages/api/telemtry/enable.astro b/src/pages/api/telemtry/enable.astro
old mode 100644
new mode 100755
diff --git a/src/pages/api/update/email.ts b/src/pages/api/update/email.ts
old mode 100644
new mode 100755
diff --git a/src/pages/api/update/name.ts b/src/pages/api/update/name.ts
old mode 100644
new mode 100755
diff --git a/src/pages/category/gaming.astro b/src/pages/category/gaming.astro
old mode 100644
new mode 100755
diff --git a/src/pages/category/movies.astro b/src/pages/category/movies.astro
old mode 100644
new mode 100755
diff --git a/src/pages/category/music.astro b/src/pages/category/music.astro
old mode 100644
new mode 100755
diff --git a/src/pages/category/trending.astro b/src/pages/category/trending.astro
old mode 100644
new mode 100755
diff --git a/src/pages/channel/[...slug].astro b/src/pages/channel/[...slug].astro
old mode 100644
new mode 100755
diff --git a/src/pages/discover.astro b/src/pages/discover.astro
old mode 100644
new mode 100755
diff --git a/src/pages/embed/[...slug].astro b/src/pages/embed/[...slug].astro
old mode 100644
new mode 100755
diff --git a/src/pages/iframe/category/trending.astro b/src/pages/iframe/category/trending.astro
old mode 100644
new mode 100755
diff --git a/src/pages/index.astro b/src/pages/index.astro
old mode 100644
new mode 100755
diff --git a/src/pages/instance.mdx b/src/pages/instance.mdx
old mode 100644
new mode 100755
diff --git a/src/pages/live.astro b/src/pages/live.astro
old mode 100644
new mode 100755
diff --git a/src/pages/login.astro b/src/pages/login.astro
old mode 100644
new mode 100755
diff --git a/src/pages/m/about.astro b/src/pages/m/about.astro
old mode 100644
new mode 100755
diff --git a/src/pages/m/categories.astro b/src/pages/m/categories.astro
old mode 100644
new mode 100755
diff --git a/src/pages/offline.astro b/src/pages/offline.astro
old mode 100644
new mode 100755
diff --git a/src/pages/playlist.mdx b/src/pages/playlist.mdx
old mode 100644
new mode 100755
diff --git a/src/pages/privacy.mdx b/src/pages/privacy.mdx
old mode 100644
new mode 100755
diff --git a/src/pages/register.astro b/src/pages/register.astro
old mode 100644
new mode 100755
diff --git a/src/pages/search.astro b/src/pages/search.astro
old mode 100644
new mode 100755
diff --git a/src/pages/telemtry.mdx b/src/pages/telemtry.mdx
old mode 100644
new mode 100755
diff --git a/src/pages/vp.astro b/src/pages/vp.astro
old mode 100644
new mode 100755
index 0f91b92..ac1c9a1
--- a/src/pages/vp.astro
+++ b/src/pages/vp.astro
@@ -4,5 +4,16 @@ import Player from "@components/video-player/Player.astro"
---
-
-
\ No newline at end of file
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/watch.astro b/src/pages/watch.astro
old mode 100644
new mode 100755
index 2aefd45..5e19b7f
--- a/src/pages/watch.astro
+++ b/src/pages/watch.astro
@@ -71,12 +71,10 @@ if (EightK === true) { // 571
---
-
-
-
+
{video.title}
@@ -227,20 +225,18 @@ function ShareDialogHide() {
function SyncTimestamp() {SyncAudio.currentTime = SyncVideo.currentTime}
-