This commit is contained in:
Korbs 2024-11-01 00:31:57 -04:00
parent 2da9de9957
commit 8226128d8a
3 changed files with 14 additions and 50 deletions

View file

@ -2,7 +2,7 @@
"name": "@minpluto/polestar", "name": "@minpluto/polestar",
"author": "SudoVanilla <korbs@sudovanilla.org>", "author": "SudoVanilla <korbs@sudovanilla.org>",
"type": "module", "type": "module",
"version": "0.0.54", "version": "0.0.55",
"license": "AGPL-3.0-only", "license": "AGPL-3.0-only",
"bugs": { "bugs": {
"url": "https://ark.sudovanilla.org/MinPluto/Polestar/issues", "url": "https://ark.sudovanilla.org/MinPluto/Polestar/issues",

View file

@ -22,7 +22,7 @@ import { Image } from 'astro:assets';
<p>{Length}</p> <p>{Length}</p>
</div> </div>
<div class="fl-vi-content"> <div class="fl-vi-content">
<Image src={'https://ipx.sudovanilla.org/https://invidious.private.coffee/ggpht/ytc/AIdro_lAKf-vZLoTI-gZUoP5Y3gbdGd07E4eDHUhTee6aOzDCnU=s900-c-k-c0x00ffffff-no-rj'} alt={'Creator Avatar'} inferSize={true} loading="lazy" format="webp"/> <Image src={'https://image.proxy.sudovanilla.org/https://invidious.private.coffee/ggpht/ytc/AIdro_lAKf-vZLoTI-gZUoP5Y3gbdGd07E4eDHUhTee6aOzDCnU=s900-c-k-c0x00ffffff-no-rj'} alt={'Creator Avatar'} inferSize={true} loading="lazy" format="webp"/>
<div> <div>
<p><strong>{Title}</strong></p> <p><strong>{Title}</strong></p>
<span>{Date} - {Views}</span> <span>{Date} - {Views}</span>

View file

@ -21,24 +21,19 @@ import MobileNavigation from '../../../src/MobileNavigation.astro'
const TrendingFetch = 'https://yt.sudovanilla.org' + '/api/v1/trending' const TrendingFetch = 'https://yt.sudovanilla.org' + '/api/v1/trending'
const TrendingResponse = await fetch(TrendingFetch) const TrendingResponse = await fetch(TrendingFetch)
const TrendingData = await TrendingResponse.json() const TrendingData = await TrendingResponse.json()
const TrendingSplit = TrendingData.slice(0, 1)
const MoviesFetch = 'https://yt.sudovanilla.org' + '/api/v1/trending?type=movies' const MoviesFetch = 'https://yt.sudovanilla.org' + '/api/v1/trending?type=movies'
const MoviesResponse = await fetch(MoviesFetch) const MoviesResponse = await fetch(MoviesFetch)
const MoviesData = await MoviesResponse.json() const MoviesData = await MoviesResponse.json()
const MoviesSplit = MoviesData.slice(0, 1)
const MusicFetch = 'https://yt.sudovanilla.org' + '/api/v1/trending?type=music' const MusicFetch = 'https://yt.sudovanilla.org' + '/api/v1/trending?type=music'
const MusicResponse = await fetch(MusicFetch) const MusicResponse = await fetch(MusicFetch)
const MusicData = await MusicResponse.json() const MusicData = await MusicResponse.json()
const MusicSplit = MusicData.slice(0, 1)
const GamingFetch = 'https://yt.sudovanilla.org' + '/api/v1/trending?type=gaming' const GamingFetch = 'https://yt.sudovanilla.org' + '/api/v1/trending?type=gaming'
const GamingResponse = await fetch(GamingFetch) const GamingResponse = await fetch(GamingFetch)
const GamingData = await GamingResponse.json() const GamingData = await GamingResponse.json()
const GamingSplit = GamingData.slice(0, 1)
// Icons // Icons
import { import {
@ -107,7 +102,7 @@ import {
<a href="#" onclick="OpenExampleDialog()"><OpenInBrowser/> Open Dialog</a> <a href="#" onclick="OpenExampleDialog()"><OpenInBrowser/> Open Dialog</a>
<h2>Creators</h2> <h2>Creators</h2>
<SidebarCreator <SidebarCreator
Avatar="https://ipx.sudovanilla.org/https://invidious.private.coffee/ggpht/ytc/AIdro_lAKf-vZLoTI-gZUoP5Y3gbdGd07E4eDHUhTee6aOzDCnU=s900-c-k-c0x00ffffff-no-rj" Avatar="https://image.proxy.sudovanilla.org/https://invidious.private.coffee/ggpht/ytc/AIdro_lAKf-vZLoTI-gZUoP5Y3gbdGd07E4eDHUhTee6aOzDCnU=s900-c-k-c0x00ffffff-no-rj"
Name="The Linux Experiment" Name="The Linux Experiment"
Link="#" Link="#"
FollowerCount="300K" FollowerCount="300K"
@ -138,38 +133,6 @@ import {
<br/> <br/>
<div style="display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 12px;"> <div style="display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 12px;">
{TrendingSplit.map((category) =>
<Category
Name="Trending"
Link="#"
Thumbnail={"https://ipx.sudovanilla.org/https://img.youtube.com/vi/" + category.videoId + "/mqdefault.jpg"}
Platform="YouTube"
/>
)}
{MoviesSplit.map((category) =>
<Category
Name="Trailers"
Link="#"
Thumbnail={"https://ipx.sudovanilla.org/https://img.youtube.com/vi/" + category.videoId + "/mqdefault.jpg"}
Platform="YouTube"
/>
)}
{MusicSplit.map((category) =>
<Category
Name="Music"
Link="#"
Thumbnail={"https://ipx.sudovanilla.org/https://img.youtube.com/vi/" + category.videoId + "/mqdefault.jpg"}
Platform="YouTube"
/>
)}
{GamingSplit.map((category) =>
<Category
Name="Gaming"
Link="#"
Thumbnail={"https://ipx.sudovanilla.org/https://img.youtube.com/vi/" + category.videoId + "/mqdefault.jpg"}
Platform="YouTube"
/>
)}
</div> </div>
<br/> <br/>
@ -181,7 +144,7 @@ import {
VideoId="PuGeR075MkE" VideoId="PuGeR075MkE"
CreatorId="UC5UAwBUum7CPN5buc-_N1Fw" CreatorId="UC5UAwBUum7CPN5buc-_N1Fw"
Title="Immutable Linux, without the hassle? Vanilla OS 2 Orchid" Title="Immutable Linux, without the hassle? Vanilla OS 2 Orchid"
Thumbnail="https://ipx.sudovanilla.org/https://yt.sudovanilla.org/vi/PuGeR075MkE/mqdefault.jpg" Thumbnail="https://image.proxy.sudovanilla.org/https://yt.sudovanilla.org/vi/PuGeR075MkE/mqdefault.jpg"
Date="2 weeks ago" Date="2 weeks ago"
Views="71K" Views="71K"
Length="16:10" Length="16:10"
@ -197,7 +160,7 @@ import {
VideoId="urC7PKlM3Qo" VideoId="urC7PKlM3Qo"
CreatorId="UC5UAwBUum7CPN5buc-_N1Fw" CreatorId="UC5UAwBUum7CPN5buc-_N1Fw"
Title="Nvidia pilfers Youtube for AI, GNOME HDR, Immutable Manjaro: Linux & Open Source News" Title="Nvidia pilfers Youtube for AI, GNOME HDR, Immutable Manjaro: Linux & Open Source News"
Thumbnail="https://ipx.sudovanilla.org/https://yt.sudovanilla.org/vi/urC7PKlM3Qo/mqdefault.jpg" Thumbnail="https://image.proxy.sudovanilla.org/https://yt.sudovanilla.org/vi/urC7PKlM3Qo/mqdefault.jpg"
Date="1 weeks ago" Date="1 weeks ago"
Views="43K" Views="43K"
Length="19:57" Length="19:57"
@ -209,15 +172,16 @@ import {
<div class="fl-sk-text"></div> <div class="fl-sk-text"></div>
</div> </div>
</Video> </Video>
<!-- Video Item needs updating for live streams -->
<Video <Video
VideoId="YFr5E2C5ex8" VideoId="YFr5E2C5ex8"
CreatorId="UC5UAwBUum7CPN5buc-_N1Fw" CreatorId="LeekBeats"
Title="COSMIC Desktop ALPHA: a unique & important project for Linux!" Title="♫ 24/7 chill lofi beats • Zero Ads • Playlist: LeekBeats.com • !info • DMCA Safe • Thanks for 68,000 Followers!"
Thumbnail="https://ipx.sudovanilla.org/https://yt.sudovanilla.org/vi/YFr5E2C5ex8/mqdefault.jpg" Thumbnail="https://image.proxy.sudovanilla.org/https://twitch-backend.sudovanilla.org/proxy/img/aHR0cHM6Ly9zdGF0aWMtY2RuLmp0dm53Lm5ldC9wcmV2aWV3cy10dHYvbGl2ZV91c2VyX2xlZWtiZWF0cy00NDB4MjQ4LmpwZw=="
Date="2 weeks ago" Date="Live Now"
Views="101K" Views="302 Viewers"
Length="31:18" Length="Live"
Platform="YouTube" Platform="Twitch"
server:defer server:defer
> >
<div style="display: flex; flex-direction: column; align-items: left; gap: 12px; padding: 0px 12px;" slot="fallback"> <div style="display: flex; flex-direction: column; align-items: left; gap: 12px; padding: 0px 12px;" slot="fallback">
@ -232,7 +196,7 @@ import {
<br/> <br/>
<Comment <Comment
Avatar="https://ipx.sudovanilla.org/https://invidious.private.coffee/ggpht/ytc/AIdro_lAKf-vZLoTI-gZUoP5Y3gbdGd07E4eDHUhTee6aOzDCnU=s900-c-k-c0x00ffffff-no-rj" Avatar="https://image.proxy.sudovanilla.org/https://invidious.private.coffee/ggpht/ytc/AIdro_lAKf-vZLoTI-gZUoP5Y3gbdGd07E4eDHUhTee6aOzDCnU=s900-c-k-c0x00ffffff-no-rj"
Username="The Linux Experiment" Username="The Linux Experiment"
Link="#" Link="#"
> >