From 2cdf798b98c7c480a6c60189457de52bb2677f19 Mon Sep 17 00:00:00 2001 From: Korbs Date: Sun, 7 Jul 2024 16:22:14 -0400 Subject: [PATCH] update --- README.md | 2 +- src/pages/en/404.astro | 20 --- src/pages/en/category/gaming.astro | 9 -- src/pages/en/category/movies.astro | 10 -- src/pages/en/category/music.astro | 106 -------------- src/pages/en/category/trending.astro | 9 -- src/pages/en/channel/[...slug].astro | 137 ------------------ src/pages/en/discover/tech.astro | 57 -------- src/pages/en/embed/[...slug].astro | 93 ------------ src/pages/en/index.astro | 143 ------------------ src/pages/en/instance.astro | 75 ---------- src/pages/en/m/about.astro | 66 --------- src/pages/en/m/categories.astro | 40 ------ src/pages/en/offline.astro | 20 --- src/pages/en/search.astro | 35 ----- src/pages/en/watch.astro | 207 --------------------------- src/pages/jp/404.astro | 20 --- src/pages/jp/category/gaming.astro | 9 -- src/pages/jp/category/movies.astro | 10 -- src/pages/jp/category/music.astro | 106 -------------- src/pages/jp/category/trending.astro | 9 -- src/pages/jp/channel/[...slug].astro | 137 ------------------ src/pages/jp/discover/tech.astro | 57 -------- src/pages/jp/embed/[...slug].astro | 93 ------------ src/pages/jp/index.astro | 143 ------------------ src/pages/jp/instance.astro | 75 ---------- src/pages/jp/m/about.astro | 66 --------- src/pages/jp/m/categories.astro | 40 ------ src/pages/jp/offline.astro | 20 --- src/pages/jp/search.astro | 35 ----- src/pages/jp/watch.astro | 207 --------------------------- src/pages/ru/404.astro | 20 --- src/pages/ru/category/gaming.astro | 9 -- src/pages/ru/category/movies.astro | 10 -- src/pages/ru/category/music.astro | 106 -------------- src/pages/ru/category/trending.astro | 9 -- src/pages/ru/channel/[...slug].astro | 137 ------------------ src/pages/ru/discover/tech.astro | 57 -------- src/pages/ru/embed/[...slug].astro | 93 ------------ src/pages/ru/index.astro | 143 ------------------ src/pages/ru/instance.astro | 75 ---------- src/pages/ru/m/about.astro | 66 --------- src/pages/ru/m/categories.astro | 40 ------ src/pages/ru/offline.astro | 20 --- src/pages/ru/search.astro | 35 ----- src/pages/ru/watch.astro | 207 --------------------------- src/public/scripts/zorn.js | 20 ++- 47 files changed, 9 insertions(+), 3094 deletions(-) delete mode 100644 src/pages/en/404.astro delete mode 100644 src/pages/en/category/gaming.astro delete mode 100644 src/pages/en/category/movies.astro delete mode 100644 src/pages/en/category/music.astro delete mode 100644 src/pages/en/category/trending.astro delete mode 100644 src/pages/en/channel/[...slug].astro delete mode 100644 src/pages/en/discover/tech.astro delete mode 100644 src/pages/en/embed/[...slug].astro delete mode 100644 src/pages/en/index.astro delete mode 100644 src/pages/en/instance.astro delete mode 100644 src/pages/en/m/about.astro delete mode 100644 src/pages/en/m/categories.astro delete mode 100644 src/pages/en/offline.astro delete mode 100644 src/pages/en/search.astro delete mode 100644 src/pages/en/watch.astro delete mode 100644 src/pages/jp/404.astro delete mode 100644 src/pages/jp/category/gaming.astro delete mode 100644 src/pages/jp/category/movies.astro delete mode 100644 src/pages/jp/category/music.astro delete mode 100644 src/pages/jp/category/trending.astro delete mode 100644 src/pages/jp/channel/[...slug].astro delete mode 100644 src/pages/jp/discover/tech.astro delete mode 100644 src/pages/jp/embed/[...slug].astro delete mode 100644 src/pages/jp/index.astro delete mode 100644 src/pages/jp/instance.astro delete mode 100644 src/pages/jp/m/about.astro delete mode 100644 src/pages/jp/m/categories.astro delete mode 100644 src/pages/jp/offline.astro delete mode 100644 src/pages/jp/search.astro delete mode 100644 src/pages/jp/watch.astro delete mode 100644 src/pages/ru/404.astro delete mode 100644 src/pages/ru/category/gaming.astro delete mode 100644 src/pages/ru/category/movies.astro delete mode 100644 src/pages/ru/category/music.astro delete mode 100644 src/pages/ru/category/trending.astro delete mode 100644 src/pages/ru/channel/[...slug].astro delete mode 100644 src/pages/ru/discover/tech.astro delete mode 100644 src/pages/ru/embed/[...slug].astro delete mode 100644 src/pages/ru/index.astro delete mode 100644 src/pages/ru/instance.astro delete mode 100644 src/pages/ru/m/about.astro delete mode 100644 src/pages/ru/m/categories.astro delete mode 100644 src/pages/ru/offline.astro delete mode 100644 src/pages/ru/search.astro delete mode 100644 src/pages/ru/watch.astro diff --git a/README.md b/README.md index 66dc78b..e2951db 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ ___ - [ ] Filters - [x] Auto Complete - [ ] Video Player - - [ ] Dash Format (1080p/4K/8K) + - [x] Dash Format (1080p/4K/8K) - [ ] Mobile Gestures - [ ] Embed Page - [ ] Download diff --git a/src/pages/en/404.astro b/src/pages/en/404.astro deleted file mode 100644 index c17670c..0000000 --- a/src/pages/en/404.astro +++ /dev/null @@ -1,20 +0,0 @@ ---- -import { changeLanguage } from "i18next"; -import Base from "@layouts/Default.astro"; - -changeLanguage("en"); ---- - - -
-

Error 404

-

Page not found.

-
- - - \ No newline at end of file diff --git a/src/pages/en/category/gaming.astro b/src/pages/en/category/gaming.astro deleted file mode 100644 index 090094c..0000000 --- a/src/pages/en/category/gaming.astro +++ /dev/null @@ -1,9 +0,0 @@ ---- -import { t, changeLanguage } from "i18next"; -import Category from "@layouts/Category.astro"; - -changeLanguage("en"); ---- - - - diff --git a/src/pages/en/category/movies.astro b/src/pages/en/category/movies.astro deleted file mode 100644 index f6b0189..0000000 --- a/src/pages/en/category/movies.astro +++ /dev/null @@ -1,10 +0,0 @@ ---- -import { t, changeLanguage } from "i18next"; -import Category from "@layouts/Category.astro"; - -changeLanguage("en"); ---- - - - - diff --git a/src/pages/en/category/music.astro b/src/pages/en/category/music.astro deleted file mode 100644 index 0c6f488..0000000 --- a/src/pages/en/category/music.astro +++ /dev/null @@ -1,106 +0,0 @@ ---- -import { t, changeLanguage } from "i18next"; -import Default from "@layouts/Default.astro"; -// Configuration -import { DEFAULT_DATA_PROXY, DEFAULT_VIDEO_PROXY } from "../../../../config.json"; -// Components -import MusicItem from "@components/MusicItem.astro"; - -changeLanguage("en"); - -// Fetch -const fetchFrom = DEFAULT_DATA_PROXY + "/api/v1/trending?type=music"; -const response = await fetch(fetchFrom); -const data = await response.json(); -const heroItem = data.slice(0, 1); ---- - - -
-
-
-

Music

-

Listen to the latest hits

-
-
- {heroItem.map((data) => - - )} -
-
-
- -
- -

{t("MUSIC.TITLE")}

-

{t("MUSIC.ARTIST")}

-

{t("MUSIC.UPLOADED")}

-

{t("MUSIC.DURATION")}

-
-
- {data.map((data) => - - )} -
-
- - - \ No newline at end of file diff --git a/src/pages/en/category/trending.astro b/src/pages/en/category/trending.astro deleted file mode 100644 index 1dfbb37..0000000 --- a/src/pages/en/category/trending.astro +++ /dev/null @@ -1,9 +0,0 @@ ---- -import { t, changeLanguage } from "i18next"; -import Category from "@layouts/Category.astro"; - -changeLanguage("en"); ---- - - - diff --git a/src/pages/en/channel/[...slug].astro b/src/pages/en/channel/[...slug].astro deleted file mode 100644 index 8bf90ce..0000000 --- a/src/pages/en/channel/[...slug].astro +++ /dev/null @@ -1,137 +0,0 @@ ---- -import Base from "@layouts/Default.astro"; -// i18n -import i18next, { t, changeLanguage } from "i18next"; -// Configuration -import { DEFAULT_DATA_PROXY, DEFAULT_IMAGE_PROXY, SERVER_DOMAIN } from "../../../../config.json"; -import { BrightStar, Donate, Download, ShareIos, ThumbsUp } from "@iconoir/vue"; -// Components -import Video from "@components/VideoItem.astro"; - -changeLanguage("en"); - -// Fetch -const SWV = Astro.url.href.split("channel/").pop(); -const channel = await fetch(DEFAULT_DATA_PROXY + "/api/v1/channels/" + SWV).then((response) => response.json()); -const DescriptionFormat = channel.descriptionHtml.replaceAll("\n", "
"); ---- - - -
- -
-
-
-
- -
-
-
- -

{channel.author}

-

{channel.subCountText}

-
-
- -
-
-
-
- -
-

{t("CHANNEL.ABOUT")} {channel.author}

-

-
-

{t("CHANNEL.LATEST")}

-
- {channel.latestVideos.map((data) => -
-
-
-
- - - \ No newline at end of file diff --git a/src/pages/en/discover/tech.astro b/src/pages/en/discover/tech.astro deleted file mode 100644 index 2a0d024..0000000 --- a/src/pages/en/discover/tech.astro +++ /dev/null @@ -1,57 +0,0 @@ ---- -import { changeLanguage } from "i18next"; -import Discover from "@layouts/Discover.astro"; -// Properties -const { FetchData, CategoryName, CategoryDescription } = Astro.props; -// Use on top of Default Layout -import Base from "@layouts/Default.astro"; -// Configuration -import { DEFAULT_DATA_PROXY, DEFAULT_IMAGE_PROXY } from "../../../../config.json"; -// Discover Data -import Discover from "../../../data/discover.json"; - -changeLanguage("en"); ---- - - -
- {Discover.Tech.map((channel) => - -
- -

{channel.Name}

-
-
- )} -
-
-
-

This is a curated list for all MinPluto users.

-

Is there a channel missing here that you think should be added? You can either edit our list here or you can submit a request.

-
- - - - \ No newline at end of file diff --git a/src/pages/en/embed/[...slug].astro b/src/pages/en/embed/[...slug].astro deleted file mode 100644 index eda90cf..0000000 --- a/src/pages/en/embed/[...slug].astro +++ /dev/null @@ -1,93 +0,0 @@ ---- -import { t, changeLanguage } from "i18next"; -import Embed from "@layouts/Embed.astro"; -import "@styles/video.scss"; -// Configuration -import { DEFAULT_VIDEO_PROXY, DEFAULT_DATA_PROXY, DEFAULT_IMAGE_PROXY, SERVER_DOMAIN } from "../../../../config.json"; - -changeLanguage("en"); - -// Fetch -const SWV = Astro.url.href.split("embed/").pop(); -const video = await fetch(DEFAULT_DATA_PROXY + "/api/v1/videos/" + SWV).then((response) => response.json()); ---- - - -
- -
- - - - - diff --git a/src/pages/en/index.astro b/src/pages/en/index.astro deleted file mode 100644 index d402e4a..0000000 --- a/src/pages/en/index.astro +++ /dev/null @@ -1,143 +0,0 @@ ---- -import i18next, { t, changeLanguage } from "i18next"; -import Base from "@layouts/Default.astro"; -import Dialog from "@components/Dialog.astro"; -// Configuration -import { DEFAULT_DATA_PROXY, DEFAULT_IMAGE_PROXY } from "../../../config.json"; -import { FireFlame, Frame, Gamepad, GraphUp, Movie, MusicDoubleNote } from "@iconoir/vue"; - -changeLanguage("en"); - -// Fetch -const TrendingFetch = DEFAULT_DATA_PROXY + "/api/v1/trending"; -const TrendingResponse = await fetch(TrendingFetch); -const TrendingData = await TrendingResponse.json(); -const TrendingSplit = TrendingData.slice(0, 1); -const MoviesFetch = DEFAULT_DATA_PROXY + "/api/v1/trending?type=movies"; -const MoviesResponse = await fetch(MoviesFetch); -const MoviesData = await MoviesResponse.json(); -const MoviesSplit = MoviesData.slice(0, 1); -const MusicFetch = DEFAULT_DATA_PROXY + "/api/v1/trending?type=music"; -const MusicResponse = await fetch(MusicFetch); -const MusicData = await MusicResponse.json(); -const MusicSplit = MusicData.slice(0, 1); -const GamingFetch = DEFAULT_DATA_PROXY + "/api/v1/trending?type=gaming"; -const GamingResponse = await fetch(GamingFetch); -const GamingData = await GamingResponse.json(); -const GamingSplit = GamingData.slice(0, 1); ---- - - -
- -
- -
-
- {TrendingSplit.map((data) => - -
- -

{t("SIDEBAR.CATEGORY_LIST.TRENDING")}

-
-
- )} - {MoviesSplit.map((data) => - -
- -

{t("SIDEBAR.CATEGORY_LIST.MOVIES")}

-
-
- )} - {MusicSplit.map((data) => - -
- -

{t("SIDEBAR.CATEGORY_LIST.MUSIC")}

-
-
- )} - {GamingSplit.map((data) => - -
- -

{t("SIDEBAR.CATEGORY_LIST.GAMES")}

-
-
- )} -
- - - - \ No newline at end of file diff --git a/src/pages/en/instance.astro b/src/pages/en/instance.astro deleted file mode 100644 index 5f6467a..0000000 --- a/src/pages/en/instance.astro +++ /dev/null @@ -1,75 +0,0 @@ ---- -import i18next, { t, changeLanguage } from "i18next"; -import Base from "@layouts/Default.astro"; -import Dialog from "@components/Dialog.astro"; -// Configuration -import { SERVER_ADMIN, ANALYLICS_TOOL, DEFAULT_VIDEO_PROXY, DEFAULT_DATA_PROXY, DEFAULT_IMAGE_PROXY, DEFAULT_PLAYER, SERVER_LOCATION, MODIFIED, CUSTOM_SOURCE_CODE, STATISTICS } from "../../../config.json"; -import { FireFlame, Frame, Gamepad, GraphUp, Movie, MusicDoubleNote } from "@iconoir/vue"; - -changeLanguage("en"); ---- - - -
- -
-
-
-

Operated By

-

{SERVER_ADMIN}

-
-
-

Analytics Software

-

- { - STATISTICS - ? -

{ANALYLICS_TOOL}

- : -

None

- } -

-
-
-

Location

-

{SERVER_LOCATION}

-
-
-

Modified

-

{MODIFIED ?

Yes

:

No

}

-
-
-

Video Proxy

- {DEFAULT_VIDEO_PROXY} -
-
-

Image Proxy

- {DEFAULT_IMAGE_PROXY} -
-
- {MODIFIED ?

Modified Source Code {CUSTOM_SOURCE_CODE}

: null} - -
- - - - \ No newline at end of file diff --git a/src/pages/en/m/categories.astro b/src/pages/en/m/categories.astro deleted file mode 100644 index 1bf7451..0000000 --- a/src/pages/en/m/categories.astro +++ /dev/null @@ -1,40 +0,0 @@ ---- -import { t, changeLanguage } from "i18next"; -import Base from "@layouts/Default.astro"; -import { HomeSimple, GraphUp, Movie, MusicDoubleNote, Gamepad, AppleImac2021Side, EmojiTalkingHappy, PizzaSlice, Treadmill, PeaceHand } from "@iconoir/vue"; - -changeLanguage("en"); ---- - - -
-

Categories

- -
- - - \ No newline at end of file diff --git a/src/pages/en/offline.astro b/src/pages/en/offline.astro deleted file mode 100644 index 43494f6..0000000 --- a/src/pages/en/offline.astro +++ /dev/null @@ -1,20 +0,0 @@ ---- -import { changeLanguage } from "i18next"; -import Base from "@layouts/Default.astro"; - -changeLanguage("en"); ---- - - -
-

No Internet Connection

-

It appears that you are offline, try connecting your device to the internet, and try again.

-
- - - \ No newline at end of file diff --git a/src/pages/en/search.astro b/src/pages/en/search.astro deleted file mode 100644 index 27cc9ca..0000000 --- a/src/pages/en/search.astro +++ /dev/null @@ -1,35 +0,0 @@ ---- -import { t, changeLanguage } from "i18next"; -import Base from "@layouts/Default.astro"; -// Configuration -import { DEFAULT_DATA_PROXY, DEFAULT_IMAGE_PROXY } from "../../../config.json"; -import Video from "@components/VideoItem.astro"; - -changeLanguage("en"); - -// Fetch -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(); ---- - - -
-

Search

-
-
- {data.map((data) => -
- \ No newline at end of file diff --git a/src/pages/en/watch.astro b/src/pages/en/watch.astro deleted file mode 100644 index 378501a..0000000 --- a/src/pages/en/watch.astro +++ /dev/null @@ -1,207 +0,0 @@ ---- -import { t, changeLanguage } from "i18next"; -import Base from "@layouts/Default.astro"; -import "@styles/video.scss"; -// Configuration -import { DEFAULT_VIDEO_PROXY, DEFAULT_DATA_PROXY, DEFAULT_IMAGE_PROXY, SERVER_DOMAIN } from "../../../config.json"; -import { Donate, Download, ShareIos, ThumbsUp, MediaVideo } from "@iconoir/vue"; -// Components -import Dialog from "@components/Dialog.astro"; -import Video from "@components/VideoItem.astro"; - -changeLanguage("en"); - -// Fetch -const SWV = Astro.url.href.split("watch?v=").pop(); -const video = await fetch(DEFAULT_DATA_PROXY + "/api/v1/videos/" + SWV).then((response) => response.json()); -const comments = await fetch(DEFAULT_DATA_PROXY + "/api/v1/comments/" + SWV).then((response) => response.json()); -const Description = video.description; -const UploadDate = video.published; -const Views = video.viewCount; -const VideoSeconds = video.lengthSeconds; -let DescriptionFormat = Description.replaceAll("\n", "
"); -// Format Published Date -const DateFormat = new Date(UploadDate * 1000).toLocaleDateString(); -// Format Video Length -// Thanks to "mingjunlu" for helping out with the time format -new Date(VideoSeconds * 1000) - .toISOString() - .slice(14, 19) - .split(":") - .map(Number) - .join(":"); -// Format Views -const ViewsConversion = Intl.NumberFormat("en", { notation: "compact" }); -let ViewsFormat = ViewsConversion.format(Views); ---- - - -
- -
-
-
-

{video.title}

- -
-

{ViewsFormat} Views - {DateFormat}

- -
-
-
-
-

{t("WATCH.COMMENTS")}

- { - comments.comments.map((comment) => ( -
- -
-

- {comment.author} - 2 Months - Ago -

-

{comment.contentHtml}

-

- {comment.likeCount} -

-
-
- )) - } -
-
-

{t("WATCH.RELATED")}

- { - video.recommendedVideos.map((data) => ( -
-
-
- -

Video

-
- Download -
-

Audio Only

-
- Download -
-
- -
- - - diff --git a/src/pages/jp/404.astro b/src/pages/jp/404.astro deleted file mode 100644 index 02365b3..0000000 --- a/src/pages/jp/404.astro +++ /dev/null @@ -1,20 +0,0 @@ ---- -import { changeLanguage } from "i18next"; -import Base from "@layouts/Default.astro"; - -changeLanguage("jp"); ---- - - -
-

Error 404

-

Page not found.

-
- - - \ No newline at end of file diff --git a/src/pages/jp/category/gaming.astro b/src/pages/jp/category/gaming.astro deleted file mode 100644 index a886c4e..0000000 --- a/src/pages/jp/category/gaming.astro +++ /dev/null @@ -1,9 +0,0 @@ ---- -import { t, changeLanguage } from "i18next"; -import Category from "@layouts/Category.astro"; - -changeLanguage("jp"); ---- - - - diff --git a/src/pages/jp/category/movies.astro b/src/pages/jp/category/movies.astro deleted file mode 100644 index 653d3c9..0000000 --- a/src/pages/jp/category/movies.astro +++ /dev/null @@ -1,10 +0,0 @@ ---- -import { t, changeLanguage } from "i18next"; -import Category from "@layouts/Category.astro"; - -changeLanguage("jp"); ---- - - - - diff --git a/src/pages/jp/category/music.astro b/src/pages/jp/category/music.astro deleted file mode 100644 index 19df993..0000000 --- a/src/pages/jp/category/music.astro +++ /dev/null @@ -1,106 +0,0 @@ ---- -import { t, changeLanguage } from "i18next"; -import Default from "@layouts/Default.astro"; -// Configuration -import { DEFAULT_DATA_PROXY, DEFAULT_VIDEO_PROXY } from "../../../../config.json"; -// Components -import MusicItem from "@components/MusicItem.astro"; - -changeLanguage("jp"); - -// Fetch -const fetchFrom = DEFAULT_DATA_PROXY + "/api/v1/trending?type=music"; -const response = await fetch(fetchFrom); -const data = await response.json(); -const heroItem = data.slice(0, 1); ---- - - -
-
-
-

Music

-

Listen to the latest hits

-
-
- {heroItem.map((data) => - - )} -
-
-
- -
- -

{t("MUSIC.TITLE")}

-

{t("MUSIC.ARTIST")}

-

{t("MUSIC.UPLOADED")}

-

{t("MUSIC.DURATION")}

-
-
- {data.map((data) => - - )} -
-
- - - \ No newline at end of file diff --git a/src/pages/jp/category/trending.astro b/src/pages/jp/category/trending.astro deleted file mode 100644 index b2aa7d8..0000000 --- a/src/pages/jp/category/trending.astro +++ /dev/null @@ -1,9 +0,0 @@ ---- -import { t, changeLanguage } from "i18next"; -import Category from "@layouts/Category.astro"; - -changeLanguage("jp"); ---- - - - diff --git a/src/pages/jp/channel/[...slug].astro b/src/pages/jp/channel/[...slug].astro deleted file mode 100644 index c326677..0000000 --- a/src/pages/jp/channel/[...slug].astro +++ /dev/null @@ -1,137 +0,0 @@ ---- -import Base from "@layouts/Default.astro"; -// i18n -import i18next, { t, changeLanguage } from "i18next"; -// Configuration -import { DEFAULT_DATA_PROXY, DEFAULT_IMAGE_PROXY, SERVER_DOMAIN } from "../../../../config.json"; -import { BrightStar, Donate, Download, ShareIos, ThumbsUp } from "@iconoir/vue"; -// Components -import Video from "@components/VideoItem.astro"; - -changeLanguage("jp"); - -// Fetch -const SWV = Astro.url.href.split("channel/").pop(); -const channel = await fetch(DEFAULT_DATA_PROXY + "/api/v1/channels/" + SWV).then((response) => response.json()); -const DescriptionFormat = channel.descriptionHtml.replaceAll("\n", "
"); ---- - - -
- -
-
-
-
- -
-
-
- -

{channel.author}

-

{channel.subCountText}

-
-
- -
-
-
-
- -
-

{t("CHANNEL.ABOUT")} {channel.author}

-

-
-

{t("CHANNEL.LATEST")}

-
- {channel.latestVideos.map((data) => -
-
-
-
- - - \ No newline at end of file diff --git a/src/pages/jp/discover/tech.astro b/src/pages/jp/discover/tech.astro deleted file mode 100644 index ebd0d43..0000000 --- a/src/pages/jp/discover/tech.astro +++ /dev/null @@ -1,57 +0,0 @@ ---- -import { changeLanguage } from "i18next"; -import Discover from "@layouts/Discover.astro"; -// Properties -const { FetchData, CategoryName, CategoryDescription } = Astro.props; -// Use on top of Default Layout -import Base from "@layouts/Default.astro"; -// Configuration -import { DEFAULT_DATA_PROXY, DEFAULT_IMAGE_PROXY } from "../../../../config.json"; -// Discover Data -import Discover from "../../../data/discover.json"; - -changeLanguage("jp"); ---- - - -
-
-
-

This is a curated list for all MinPluto users.

-

Is there a channel missing here that you think should be added? You can either edit our list here or you can submit a request.

-
- - - - \ No newline at end of file diff --git a/src/pages/jp/embed/[...slug].astro b/src/pages/jp/embed/[...slug].astro deleted file mode 100644 index 6dbc6dc..0000000 --- a/src/pages/jp/embed/[...slug].astro +++ /dev/null @@ -1,93 +0,0 @@ ---- -import { t, changeLanguage } from "i18next"; -import Embed from "@layouts/Embed.astro"; -import "@styles/video.scss"; -// Configuration -import { DEFAULT_VIDEO_PROXY, DEFAULT_DATA_PROXY, DEFAULT_IMAGE_PROXY, SERVER_DOMAIN } from "../../../../config.json"; - -changeLanguage("jp"); - -// Fetch -const SWV = Astro.url.href.split("embed/").pop(); -const video = await fetch(DEFAULT_DATA_PROXY + "/api/v1/videos/" + SWV).then((response) => response.json()); ---- - - -
- -
- - - - - diff --git a/src/pages/jp/index.astro b/src/pages/jp/index.astro deleted file mode 100644 index c54c1a9..0000000 --- a/src/pages/jp/index.astro +++ /dev/null @@ -1,143 +0,0 @@ ---- -import i18next, { t, changeLanguage } from "i18next"; -import Base from "@layouts/Default.astro"; -import Dialog from "@components/Dialog.astro"; -// Configuration -import { DEFAULT_DATA_PROXY, DEFAULT_IMAGE_PROXY } from "../../../config.json"; -import { FireFlame, Frame, Gamepad, GraphUp, Movie, MusicDoubleNote } from "@iconoir/vue"; - -changeLanguage("jp"); - -// Fetch -const TrendingFetch = DEFAULT_DATA_PROXY + "/api/v1/trending"; -const TrendingResponse = await fetch(TrendingFetch); -const TrendingData = await TrendingResponse.json(); -const TrendingSplit = TrendingData.slice(0, 1); -const MoviesFetch = DEFAULT_DATA_PROXY + "/api/v1/trending?type=movies"; -const MoviesResponse = await fetch(MoviesFetch); -const MoviesData = await MoviesResponse.json(); -const MoviesSplit = MoviesData.slice(0, 1); -const MusicFetch = DEFAULT_DATA_PROXY + "/api/v1/trending?type=music"; -const MusicResponse = await fetch(MusicFetch); -const MusicData = await MusicResponse.json(); -const MusicSplit = MusicData.slice(0, 1); -const GamingFetch = DEFAULT_DATA_PROXY + "/api/v1/trending?type=gaming"; -const GamingResponse = await fetch(GamingFetch); -const GamingData = await GamingResponse.json(); -const GamingSplit = GamingData.slice(0, 1); ---- - - -
- -
- -
-
- {TrendingSplit.map((data) => - -
- -

{t("SIDEBAR.CATEGORY_LIST.TRENDING")}

-
-
- )} - {MoviesSplit.map((data) => - -
- -

{t("SIDEBAR.CATEGORY_LIST.MOVIES")}

-
-
- )} - {MusicSplit.map((data) => - -
- -

{t("SIDEBAR.CATEGORY_LIST.MUSIC")}

-
-
- )} - {GamingSplit.map((data) => - -
- -

{t("SIDEBAR.CATEGORY_LIST.GAMES")}

-
-
- )} -
- - - - \ No newline at end of file diff --git a/src/pages/jp/instance.astro b/src/pages/jp/instance.astro deleted file mode 100644 index 55f1b67..0000000 --- a/src/pages/jp/instance.astro +++ /dev/null @@ -1,75 +0,0 @@ ---- -import i18next, { t, changeLanguage } from "i18next"; -import Base from "@layouts/Default.astro"; -import Dialog from "@components/Dialog.astro"; -// Configuration -import { SERVER_ADMIN, ANALYLICS_TOOL, DEFAULT_VIDEO_PROXY, DEFAULT_DATA_PROXY, DEFAULT_IMAGE_PROXY, DEFAULT_PLAYER, SERVER_LOCATION, MODIFIED, CUSTOM_SOURCE_CODE, STATISTICS } from "../../../config.json"; -import { FireFlame, Frame, Gamepad, GraphUp, Movie, MusicDoubleNote } from "@iconoir/vue"; - -changeLanguage("jp"); ---- - - -
- -
-
-
-

Operated By

-

{SERVER_ADMIN}

-
-
-

Analytics Software

-

- { - STATISTICS - ? -

{ANALYLICS_TOOL}

- : -

None

- } -

-
-
-

Location

-

{SERVER_LOCATION}

-
-
-

Modified

-

{MODIFIED ?

Yes

:

No

}

-
-
-

Video Proxy

- {DEFAULT_VIDEO_PROXY} -
-
-

Image Proxy

- {DEFAULT_IMAGE_PROXY} -
-
- {MODIFIED ?

Modified Source Code {CUSTOM_SOURCE_CODE}

: null} - -
- - - - \ No newline at end of file diff --git a/src/pages/jp/m/categories.astro b/src/pages/jp/m/categories.astro deleted file mode 100644 index 9c6074c..0000000 --- a/src/pages/jp/m/categories.astro +++ /dev/null @@ -1,40 +0,0 @@ ---- -import { t, changeLanguage } from "i18next"; -import Base from "@layouts/Default.astro"; -import { HomeSimple, GraphUp, Movie, MusicDoubleNote, Gamepad, AppleImac2021Side, EmojiTalkingHappy, PizzaSlice, Treadmill, PeaceHand } from "@iconoir/vue"; - -changeLanguage("jp"); ---- - - -
-

Categories

- -
- - - \ No newline at end of file diff --git a/src/pages/jp/offline.astro b/src/pages/jp/offline.astro deleted file mode 100644 index 3419a0a..0000000 --- a/src/pages/jp/offline.astro +++ /dev/null @@ -1,20 +0,0 @@ ---- -import { changeLanguage } from "i18next"; -import Base from "@layouts/Default.astro"; - -changeLanguage("jp"); ---- - - -
-

No Internet Connection

-

It appears that you are offline, try connecting your device to the internet, and try again.

-
- - - \ No newline at end of file diff --git a/src/pages/jp/search.astro b/src/pages/jp/search.astro deleted file mode 100644 index 48af253..0000000 --- a/src/pages/jp/search.astro +++ /dev/null @@ -1,35 +0,0 @@ ---- -import { t, changeLanguage } from "i18next"; -import Base from "@layouts/Default.astro"; -// Configuration -import { DEFAULT_DATA_PROXY, DEFAULT_IMAGE_PROXY } from "../../../config.json"; -import Video from "@components/VideoItem.astro"; - -changeLanguage("jp"); - -// Fetch -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(); ---- - - -
-

Search

-
-
- {data.map((data) => -
- \ No newline at end of file diff --git a/src/pages/jp/watch.astro b/src/pages/jp/watch.astro deleted file mode 100644 index d573249..0000000 --- a/src/pages/jp/watch.astro +++ /dev/null @@ -1,207 +0,0 @@ ---- -import { t, changeLanguage } from "i18next"; -import Base from "@layouts/Default.astro"; -import "@styles/video.scss"; -// Configuration -import { DEFAULT_VIDEO_PROXY, DEFAULT_DATA_PROXY, DEFAULT_IMAGE_PROXY, SERVER_DOMAIN } from "../../../config.json"; -import { Donate, Download, ShareIos, ThumbsUp, MediaVideo } from "@iconoir/vue"; -// Components -import Dialog from "@components/Dialog.astro"; -import Video from "@components/VideoItem.astro"; - -changeLanguage("jp"); - -// Fetch -const SWV = Astro.url.href.split("watch?v=").pop(); -const video = await fetch(DEFAULT_DATA_PROXY + "/api/v1/videos/" + SWV).then((response) => response.json()); -const comments = await fetch(DEFAULT_DATA_PROXY + "/api/v1/comments/" + SWV).then((response) => response.json()); -const Description = video.description; -const UploadDate = video.published; -const Views = video.viewCount; -const VideoSeconds = video.lengthSeconds; -let DescriptionFormat = Description.replaceAll("\n", "
"); -// Format Published Date -const DateFormat = new Date(UploadDate * 1000).toLocaleDateString(); -// Format Video Length -// Thanks to "mingjunlu" for helping out with the time format -new Date(VideoSeconds * 1000) - .toISOString() - .slice(14, 19) - .split(":") - .map(Number) - .join(":"); -// Format Views -const ViewsConversion = Intl.NumberFormat("en", { notation: "compact" }); -let ViewsFormat = ViewsConversion.format(Views); ---- - - -
- -
-
-
-

{video.title}

- -
-

{ViewsFormat} Views - {DateFormat}

- -
-
-
-
-

{t("WATCH.COMMENTS")}

- { - comments.comments.map((comment) => ( -
- -
-

- {comment.author} - 2 Months - Ago -

-

{comment.contentHtml}

-

- {comment.likeCount} -

-
-
- )) - } -
-
-

{t("WATCH.RELATED")}

- { - video.recommendedVideos.map((data) => ( -
-
-
- -

Video

-
- Download -
-

Audio Only

-
- Download -
-
- -
- - - diff --git a/src/pages/ru/404.astro b/src/pages/ru/404.astro deleted file mode 100644 index f333890..0000000 --- a/src/pages/ru/404.astro +++ /dev/null @@ -1,20 +0,0 @@ ---- -import { changeLanguage } from "i18next"; -import Base from "@layouts/Default.astro"; - -changeLanguage("ru"); ---- - - -
-

Error 404

-

Page not found.

-
- - - \ No newline at end of file diff --git a/src/pages/ru/category/gaming.astro b/src/pages/ru/category/gaming.astro deleted file mode 100644 index 1e837da..0000000 --- a/src/pages/ru/category/gaming.astro +++ /dev/null @@ -1,9 +0,0 @@ ---- -import { t, changeLanguage } from "i18next"; -import Category from "@layouts/Category.astro"; - -changeLanguage("ru"); ---- - - - diff --git a/src/pages/ru/category/movies.astro b/src/pages/ru/category/movies.astro deleted file mode 100644 index 7d6ab95..0000000 --- a/src/pages/ru/category/movies.astro +++ /dev/null @@ -1,10 +0,0 @@ ---- -import { t, changeLanguage } from "i18next"; -import Category from "@layouts/Category.astro"; - -changeLanguage("ru"); ---- - - - - diff --git a/src/pages/ru/category/music.astro b/src/pages/ru/category/music.astro deleted file mode 100644 index bb79f5b..0000000 --- a/src/pages/ru/category/music.astro +++ /dev/null @@ -1,106 +0,0 @@ ---- -import { t, changeLanguage } from "i18next"; -import Default from "@layouts/Default.astro"; -// Configuration -import { DEFAULT_DATA_PROXY, DEFAULT_VIDEO_PROXY } from "../../../../config.json"; -// Components -import MusicItem from "@components/MusicItem.astro"; - -changeLanguage("ru"); - -// Fetch -const fetchFrom = DEFAULT_DATA_PROXY + "/api/v1/trending?type=music"; -const response = await fetch(fetchFrom); -const data = await response.json(); -const heroItem = data.slice(0, 1); ---- - - -
-
-
-

Music

-

Listen to the latest hits

-
-
- {heroItem.map((data) => - - )} -
-
-
- -
- -

{t("MUSIC.TITLE")}

-

{t("MUSIC.ARTIST")}

-

{t("MUSIC.UPLOADED")}

-

{t("MUSIC.DURATION")}

-
-
- {data.map((data) => - - )} -
-
- - - \ No newline at end of file diff --git a/src/pages/ru/category/trending.astro b/src/pages/ru/category/trending.astro deleted file mode 100644 index c7c6a92..0000000 --- a/src/pages/ru/category/trending.astro +++ /dev/null @@ -1,9 +0,0 @@ ---- -import { t, changeLanguage } from "i18next"; -import Category from "@layouts/Category.astro"; - -changeLanguage("ru"); ---- - - - diff --git a/src/pages/ru/channel/[...slug].astro b/src/pages/ru/channel/[...slug].astro deleted file mode 100644 index 0df4c38..0000000 --- a/src/pages/ru/channel/[...slug].astro +++ /dev/null @@ -1,137 +0,0 @@ ---- -import Base from "@layouts/Default.astro"; -// i18n -import i18next, { t, changeLanguage } from "i18next"; -// Configuration -import { DEFAULT_DATA_PROXY, DEFAULT_IMAGE_PROXY, SERVER_DOMAIN } from "../../../../config.json"; -import { BrightStar, Donate, Download, ShareIos, ThumbsUp } from "@iconoir/vue"; -// Components -import Video from "@components/VideoItem.astro"; - -changeLanguage("ru"); - -// Fetch -const SWV = Astro.url.href.split("channel/").pop(); -const channel = await fetch(DEFAULT_DATA_PROXY + "/api/v1/channels/" + SWV).then((response) => response.json()); -const DescriptionFormat = channel.descriptionHtml.replaceAll("\n", "
"); ---- - - -
- -
-
-
-
- -
-
-
- -

{channel.author}

-

{channel.subCountText}

-
-
- -
-
-
-
- -
-

{t("CHANNEL.ABOUT")} {channel.author}

-

-
-

{t("CHANNEL.LATEST")}

-
- {channel.latestVideos.map((data) => -
-
-
-
- - - \ No newline at end of file diff --git a/src/pages/ru/discover/tech.astro b/src/pages/ru/discover/tech.astro deleted file mode 100644 index 772b96c..0000000 --- a/src/pages/ru/discover/tech.astro +++ /dev/null @@ -1,57 +0,0 @@ ---- -import { changeLanguage } from "i18next"; -import Discover from "@layouts/Discover.astro"; -// Properties -const { FetchData, CategoryName, CategoryDescription } = Astro.props; -// Use on top of Default Layout -import Base from "@layouts/Default.astro"; -// Configuration -import { DEFAULT_DATA_PROXY, DEFAULT_IMAGE_PROXY } from "../../../../config.json"; -// Discover Data -import Discover from "../../../data/discover.json"; - -changeLanguage("ru"); ---- - - -
-
-
-

This is a curated list for all MinPluto users.

-

Is there a channel missing here that you think should be added? You can either edit our list here or you can submit a request.

-
- - - - \ No newline at end of file diff --git a/src/pages/ru/embed/[...slug].astro b/src/pages/ru/embed/[...slug].astro deleted file mode 100644 index 0f3ad59..0000000 --- a/src/pages/ru/embed/[...slug].astro +++ /dev/null @@ -1,93 +0,0 @@ ---- -import { t, changeLanguage } from "i18next"; -import Embed from "@layouts/Embed.astro"; -import "@styles/video.scss"; -// Configuration -import { DEFAULT_VIDEO_PROXY, DEFAULT_DATA_PROXY, DEFAULT_IMAGE_PROXY, SERVER_DOMAIN } from "../../../../config.json"; - -changeLanguage("ru"); - -// Fetch -const SWV = Astro.url.href.split("embed/").pop(); -const video = await fetch(DEFAULT_DATA_PROXY + "/api/v1/videos/" + SWV).then((response) => response.json()); ---- - - -
- -
- - - - - diff --git a/src/pages/ru/index.astro b/src/pages/ru/index.astro deleted file mode 100644 index 065fd43..0000000 --- a/src/pages/ru/index.astro +++ /dev/null @@ -1,143 +0,0 @@ ---- -import i18next, { t, changeLanguage } from "i18next"; -import Base from "@layouts/Default.astro"; -import Dialog from "@components/Dialog.astro"; -// Configuration -import { DEFAULT_DATA_PROXY, DEFAULT_IMAGE_PROXY } from "../../../config.json"; -import { FireFlame, Frame, Gamepad, GraphUp, Movie, MusicDoubleNote } from "@iconoir/vue"; - -changeLanguage("ru"); - -// Fetch -const TrendingFetch = DEFAULT_DATA_PROXY + "/api/v1/trending"; -const TrendingResponse = await fetch(TrendingFetch); -const TrendingData = await TrendingResponse.json(); -const TrendingSplit = TrendingData.slice(0, 1); -const MoviesFetch = DEFAULT_DATA_PROXY + "/api/v1/trending?type=movies"; -const MoviesResponse = await fetch(MoviesFetch); -const MoviesData = await MoviesResponse.json(); -const MoviesSplit = MoviesData.slice(0, 1); -const MusicFetch = DEFAULT_DATA_PROXY + "/api/v1/trending?type=music"; -const MusicResponse = await fetch(MusicFetch); -const MusicData = await MusicResponse.json(); -const MusicSplit = MusicData.slice(0, 1); -const GamingFetch = DEFAULT_DATA_PROXY + "/api/v1/trending?type=gaming"; -const GamingResponse = await fetch(GamingFetch); -const GamingData = await GamingResponse.json(); -const GamingSplit = GamingData.slice(0, 1); ---- - - -
- -
- -
-
- {TrendingSplit.map((data) => - -
- -

{t("SIDEBAR.CATEGORY_LIST.TRENDING")}

-
-
- )} - {MoviesSplit.map((data) => - -
- -

{t("SIDEBAR.CATEGORY_LIST.MOVIES")}

-
-
- )} - {MusicSplit.map((data) => - -
- -

{t("SIDEBAR.CATEGORY_LIST.MUSIC")}

-
-
- )} - {GamingSplit.map((data) => - -
- -

{t("SIDEBAR.CATEGORY_LIST.GAMES")}

-
-
- )} -
- - - - \ No newline at end of file diff --git a/src/pages/ru/instance.astro b/src/pages/ru/instance.astro deleted file mode 100644 index b04db00..0000000 --- a/src/pages/ru/instance.astro +++ /dev/null @@ -1,75 +0,0 @@ ---- -import i18next, { t, changeLanguage } from "i18next"; -import Base from "@layouts/Default.astro"; -import Dialog from "@components/Dialog.astro"; -// Configuration -import { SERVER_ADMIN, ANALYLICS_TOOL, DEFAULT_VIDEO_PROXY, DEFAULT_DATA_PROXY, DEFAULT_IMAGE_PROXY, DEFAULT_PLAYER, SERVER_LOCATION, MODIFIED, CUSTOM_SOURCE_CODE, STATISTICS } from "../../../config.json"; -import { FireFlame, Frame, Gamepad, GraphUp, Movie, MusicDoubleNote } from "@iconoir/vue"; - -changeLanguage("ru"); ---- - - -
- -
-
-
-

Operated By

-

{SERVER_ADMIN}

-
-
-

Analytics Software

-

- { - STATISTICS - ? -

{ANALYLICS_TOOL}

- : -

None

- } -

-
-
-

Location

-

{SERVER_LOCATION}

-
-
-

Modified

-

{MODIFIED ?

Yes

:

No

}

-
-
-

Video Proxy

- {DEFAULT_VIDEO_PROXY} -
-
-

Image Proxy

- {DEFAULT_IMAGE_PROXY} -
-
- {MODIFIED ?

Modified Source Code {CUSTOM_SOURCE_CODE}

: null} - -
- - - - \ No newline at end of file diff --git a/src/pages/ru/m/categories.astro b/src/pages/ru/m/categories.astro deleted file mode 100644 index 911dbaf..0000000 --- a/src/pages/ru/m/categories.astro +++ /dev/null @@ -1,40 +0,0 @@ ---- -import { t, changeLanguage } from "i18next"; -import Base from "@layouts/Default.astro"; -import { HomeSimple, GraphUp, Movie, MusicDoubleNote, Gamepad, AppleImac2021Side, EmojiTalkingHappy, PizzaSlice, Treadmill, PeaceHand } from "@iconoir/vue"; - -changeLanguage("ru"); ---- - - - - - - \ No newline at end of file diff --git a/src/pages/ru/offline.astro b/src/pages/ru/offline.astro deleted file mode 100644 index 4297878..0000000 --- a/src/pages/ru/offline.astro +++ /dev/null @@ -1,20 +0,0 @@ ---- -import { changeLanguage } from "i18next"; -import Base from "@layouts/Default.astro"; - -changeLanguage("ru"); ---- - - -
-

No Internet Connection

-

It appears that you are offline, try connecting your device to the internet, and try again.

-
- - - \ No newline at end of file diff --git a/src/pages/ru/search.astro b/src/pages/ru/search.astro deleted file mode 100644 index c5d44ef..0000000 --- a/src/pages/ru/search.astro +++ /dev/null @@ -1,35 +0,0 @@ ---- -import { t, changeLanguage } from "i18next"; -import Base from "@layouts/Default.astro"; -// Configuration -import { DEFAULT_DATA_PROXY, DEFAULT_IMAGE_PROXY } from "../../../config.json"; -import Video from "@components/VideoItem.astro"; - -changeLanguage("ru"); - -// Fetch -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(); ---- - - -
-

Search

-
-
- {data.map((data) => -
- \ No newline at end of file diff --git a/src/pages/ru/watch.astro b/src/pages/ru/watch.astro deleted file mode 100644 index a8dcb72..0000000 --- a/src/pages/ru/watch.astro +++ /dev/null @@ -1,207 +0,0 @@ ---- -import { t, changeLanguage } from "i18next"; -import Base from "@layouts/Default.astro"; -import "@styles/video.scss"; -// Configuration -import { DEFAULT_VIDEO_PROXY, DEFAULT_DATA_PROXY, DEFAULT_IMAGE_PROXY, SERVER_DOMAIN } from "../../../config.json"; -import { Donate, Download, ShareIos, ThumbsUp, MediaVideo } from "@iconoir/vue"; -// Components -import Dialog from "@components/Dialog.astro"; -import Video from "@components/VideoItem.astro"; - -changeLanguage("ru"); - -// Fetch -const SWV = Astro.url.href.split("watch?v=").pop(); -const video = await fetch(DEFAULT_DATA_PROXY + "/api/v1/videos/" + SWV).then((response) => response.json()); -const comments = await fetch(DEFAULT_DATA_PROXY + "/api/v1/comments/" + SWV).then((response) => response.json()); -const Description = video.description; -const UploadDate = video.published; -const Views = video.viewCount; -const VideoSeconds = video.lengthSeconds; -let DescriptionFormat = Description.replaceAll("\n", "
"); -// Format Published Date -const DateFormat = new Date(UploadDate * 1000).toLocaleDateString(); -// Format Video Length -// Thanks to "mingjunlu" for helping out with the time format -new Date(VideoSeconds * 1000) - .toISOString() - .slice(14, 19) - .split(":") - .map(Number) - .join(":"); -// Format Views -const ViewsConversion = Intl.NumberFormat("en", { notation: "compact" }); -let ViewsFormat = ViewsConversion.format(Views); ---- - - -
- -
-
-
-

{video.title}

- -
-

{ViewsFormat} Views - {DateFormat}

- -
-
-
-
-

{t("WATCH.COMMENTS")}

- { - comments.comments.map((comment) => ( -
- -
-

- {comment.author} - 2 Months - Ago -

-

{comment.contentHtml}

-

- {comment.likeCount} -

-
-
- )) - } -
-
-

{t("WATCH.RELATED")}

- { - video.recommendedVideos.map((data) => ( -
-
-
- -

Video

-
- Download -
-

Audio Only

-
- Download -
-
- -
-
- - -
-
- - / - -
+ + + +
+ + / + +
- - -