import { faAndroid, faApple, faDebian, faFedora, faOpensuse, faUbuntu, faWindows, faRedhat, } from "@fortawesome/free-brands-svg-icons"; import type { IconDefinition } from "@fortawesome/free-brands-svg-icons/index"; import { Home, Newspaper, Download } from "lucide-svelte"; export const routes: Record = { "/": ["Home", Home], "/blog": ["Blog", Newspaper], "/downloads": ["Downloads", Download], "/about": ["About", null], }; const releasesUrl = "https://github.com/KRTirtho/Spotube/releases/latest/download"; export const downloadLinks: Record = { "Android Apk": [`${releasesUrl}/Spotube-android-all-arch.apk`, [faAndroid]], "Windows Executable": [ `${releasesUrl}/Spotube-windows-x86_64-setup.exe`, [faWindows], ], "macOS Dmg": [`${releasesUrl}/Spotube-macos-universal.dmg`, [faApple]], "Ubuntu, Debian": [ `${releasesUrl}/Spotube-linux-x86_64.deb`, [faUbuntu, faDebian], ], "Fedora, Redhat, Opensuse": [ `${releasesUrl}/Spotube-linux-x86_64.rpm`, [faFedora, faRedhat, faOpensuse], ], "iPhone Ipa": [`${releasesUrl}/Spotube-iOS.ipa`, [faApple]], }; export const extendedDownloadLinks: Record< string, [string, IconDefinition[], string] > = { Android: [`${releasesUrl}/Spotube-android-all-arch.apk`, [faAndroid], "apk"], Windows: [ `${releasesUrl}/Spotube-windows-x86_64-setup.exe`, [faWindows], "exe", ], macOS: [`${releasesUrl}/Spotube-macos-universal.dmg`, [faApple], "dmg"], "Ubuntu, Debian": [ `${releasesUrl}/Spotube-linux-x86_64.deb`, [faUbuntu, faDebian], "deb", ], "Fedora, Redhat, Opensuse": [ `${releasesUrl}/Spotube-linux-x86_64.rpm`, [faFedora, faRedhat, faOpensuse], "rpm", ], iPhone: [`${releasesUrl}/Spotube-iOS.ipa`, [faApple], "ipa"], }; const nightlyReleaseUrl = "https://github.com/KRTirtho/Spotube/releases/download/nightly"; export const extendedNightlyDownloadLinks: Record< string, [string, IconDefinition[], string] > = { Android: [ `${nightlyReleaseUrl}/Spotube-android-all-arch.apk`, [faAndroid], "apk", ], Windows: [ `${nightlyReleaseUrl}/Spotube-windows-x86_64-setup.exe`, [faWindows], "exe", ], macOS: [`${nightlyReleaseUrl}/Spotube-macos-universal.dmg`, [faApple], "dmg"], "Ubuntu, Debian": [ `${nightlyReleaseUrl}/Spotube-linux-x86_64.deb`, [faUbuntu, faDebian], "deb", ], "Fedora, Redhat, Opensuse": [ `${nightlyReleaseUrl}/Spotube-linux-x86_64.rpm`, [faFedora, faRedhat, faOpensuse], "rpm", ], iPhone: [`${nightlyReleaseUrl}/Spotube-iOS.ipa`, [faApple], "ipa"], }; export const ADS_SLOTS = Object.freeze({ rootPageDisplay: 5979549631, blogPageInFeed: 3386010031, downloadPageDisplay: 9928443050, packagePageArticle: 9119323068, // This is being used for rehype-auto-ads in svelte.config.js blogArticlePageArticle: 6788673194, });