This commit is contained in:
Korbs 2024-07-09 15:32:20 -04:00
parent 2feed2ce3e
commit 88d4810a5c
3 changed files with 12 additions and 12 deletions

View file

@ -11,7 +11,7 @@ const {
// Configuration
import {
DEFAULT_DATA_PROXY,
DEFAULT_MEDIA_DATA_PROXY,
DEFAULT_IMAGE_PROXY
} from '@utils/GetConfig'
@ -31,7 +31,7 @@ const ViewsFormat = ViewsConversion.format(Views)
---
<a href={'/' + i18next.language + '/watch?v=' + ID} class="music-item">
<a href={'/watch?v=' + ID} class="music-item">
<img src={DEFAULT_IMAGE_PROXY + '/https://i.ytimg.com/vi/' + ID + '/maxresdefault.jpg'}/>
<p id="title">{Title}</p>
<p id="artist">{Creator}</p>

View file

@ -11,7 +11,7 @@ const {
// Configuration
import {
DEFAULT_DATA_PROXY,
DEFAULT_MEDIA_DATA_PROXY,
DEFAULT_IMAGE_PROXY
} from '@utils/GetConfig'
@ -30,7 +30,7 @@ const ViewsConversion = Intl.NumberFormat('en', { notation: 'compact'})
const ViewsFormat = ViewsConversion.format(Views)
---
<a href={'/' + i18next.language + '/watch?v=' + ID} class="video-item">
<a href={'/watch?v=' + ID} class="video-item">
<div class="video-item-thumbnail">
<img src={DEFAULT_IMAGE_PROXY + '/https://i.ytimg.com/vi/' + ID + '/maxresdefault.jpg'}/>
<p id="vi-length">{LengthFormat}</p>

View file

@ -3,7 +3,7 @@
import {
SIDEBAR_DISCOVER,
SIDEBAR_CATEGORIES
} from '@root/config.json'
} from '@utils/GetConfig'
import {
version
@ -32,25 +32,25 @@ import i18next, { t } from "i18next"
<div class="sidebar">
<div class="sidebar-top">
<a href={'/' + i18next.language} class="sidebar-top-start">
<a href='/' class="sidebar-top-start">
<img src="/images/logo/MinPluto - Logo.png"/>
</a>
<div class="sidebar-top-end">
<a href={'/' + i18next.language + '/'}><HomeSimple/> {t("SIDEBAR.HOME")}</a>
<a href={'/'}><HomeSimple/> {t("SIDEBAR.HOME")}</a>
<hr/>
{SIDEBAR_CATEGORIES ?
<h2>{t("SIDEBAR.CATEGORY")}</h2>
<a href={'/' + i18next.language + '/category/trending'}><GraphUp/> {t("SIDEBAR.CATEGORY_LIST.TRENDING")}</a>
<a href={'/' + i18next.language + '/category/movies'}><Movie/> {t("SIDEBAR.CATEGORY_LIST.MOVIES")}</a>
<a href={'/' + i18next.language + '/category/music'}><MusicDoubleNote/> {t("SIDEBAR.CATEGORY_LIST.MUSIC")}</a>
<a href={'/' + i18next.language + '/category/gaming'}><Gamepad/> {t("SIDEBAR.CATEGORY_LIST.GAMES")}</a>
<a href={'/category/trending'}><GraphUp/> {t("SIDEBAR.CATEGORY_LIST.TRENDING")}</a>
<a href={'/category/movies'}><Movie/> {t("SIDEBAR.CATEGORY_LIST.MOVIES")}</a>
<a href={'/category/music'}><MusicDoubleNote/> {t("SIDEBAR.CATEGORY_LIST.MUSIC")}</a>
<a href={'/category/gaming'}><Gamepad/> {t("SIDEBAR.CATEGORY_LIST.GAMES")}</a>
:
null
}
{SIDEBAR_DISCOVER ?
<hr/>
<h2>{t("SIDEBAR.DISCOVER")}</h2>
<a href={'/' + i18next.language + '/discover/tech'}><AppleImac2021Side/> {t("SIDEBAR.DISCOVER_LIST.TECH")}</a>
<a href={'/discover/tech'}><AppleImac2021Side/> {t("SIDEBAR.DISCOVER_LIST.TECH")}</a>
<a id="sidebar-disable" href="#"><EmojiTalkingHappy/> {t("SIDEBAR.DISCOVER_LIST.COMEDY")}</a>
<a id="sidebar-disable" href="#"><PizzaSlice/> {t("SIDEBAR.DISCOVER_LIST.FOOD")}</a>
<a id="sidebar-disable" href="#"><Gamepad/> {t("SIDEBAR.DISCOVER_LIST.GAMES")}</a>