Open-source download manager & offline media toolbox for YouTube, music, social media, learning platforms & 1,800+ sites. Built with Tauri 2.0, Rust & Svelte.
Rust downloadmanagerguihacktoberfesthomebrewlightweightlinuxlinux-distributionlocal-firstmacosmacos-packagemedia-toolboxopen-sourcerustsveltetauritrendingtrending-repositorieswindowswindows-desktopytdlp
feat: add support for opening additional services link and update services list
Tonhoe287f7523b41
diff --git a/src/components/services/SupportedServices.svelte b/src/components/services/SupportedServices.svelteindex 75d38a76..f5878fa7 100644--- a/src/components/services/SupportedServices.svelte+++ b/src/components/services/SupportedServices.svelte@@ -1,4 +1,5 @@<script lang="ts">+ import { open } from "@tauri-apps/plugin-shell";import { t } from "$lib/i18n";let expanded = $state(false);@@ -7,14 +8,17 @@"YouTube", "Instagram", "TikTok", "Twitter / X","Reddit", "Twitch", "Pinterest", "Vimeo","Bluesky", "Hotmart", "Telegram",- "SoundCloud", "Facebook", "Dailymotion", "Bilibili",- "Snapchat", "Tumblr", "Rutube", "VK",- "Streamable", "Loom", "Newgrounds", "Xiaohongshu",];+ const YT_DLP_SITES_URL = "https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites.md";+function toggle() {expanded = !expanded;}++ async function openSupportedSites() {+ await open(YT_DLP_SITES_URL);+ }</script><div class="supported-services">@@ -38,6 +42,14 @@{#each services as service}<span class="pill">{service}</span>{/each}+ <button class="pill pill-link" onclick={openSupportedSites}>+ {$t('services.and_more')}+ <svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">+ <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" />+ <path d="M15 3h6v6" />+ <path d="M10 14L21 3" />+ </svg>+ </button></div><p class="disclaimer">{$t('services.disclaimer')}</p></div>@@ -151,6 +163,35 @@user-select: none;}+ .pill-link {+ display: flex;+ align-items: center;+ gap: 4px;+ color: var(--blue);+ border: none;+ cursor: pointer;+ }++ @media (hover: hover) {+ .pill-link:hover {+ background: var(--button-elevated-hover);+ }+ }++ .pill-link:active {+ background: var(--button-elevated-press);+ }++ .pill-link:focus-visible {+ outline: var(--focus-ring);+ outline-offset: var(--focus-ring-offset);+ }++ .pill-link svg {+ pointer-events: none;+ flex-shrink: 0;+ }+.disclaimer {font-size: 11px;font-weight: 400;