diff --git a/package.json b/package.json index 4ba617ca9..8c3219844 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "@ffmpeg/ffmpeg": "^0.12.10", "@ffmpeg/util": "^0.12.1", "@intrnl/xxhash64": "^0.1.2", - "@song-spotlight/api": "^2.0.1", + "@song-spotlight/api": "^2.1.3", "@streamparser/json": "^0.0.22", "@types/less": "^3.0.8", "@types/stylus": "^0.48.42", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 300150feb..6e05400b5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -26,8 +26,8 @@ importers: specifier: ^0.1.2 version: 0.1.2 '@song-spotlight/api': - specifier: ^2.0.1 - version: 2.0.1(typescript@5.9.3) + specifier: ^2.1.3 + version: 2.1.3(typescript@5.9.3) '@streamparser/json': specifier: ^0.0.22 version: 0.0.22 @@ -724,8 +724,8 @@ packages: '@rtsao/scc@1.1.0': resolution: {integrity: sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g==} - '@song-spotlight/api@2.0.1': - resolution: {integrity: sha512-nxBJch8cGp10NYeJSp3DCPS/LYmlpcs9VCHrHzgCHFRICTKWhlpiUZgrACP9TmQ8RQsE4B9e23BcQDaqWqPCGg==} + '@song-spotlight/api@2.1.3': + resolution: {integrity: sha512-Wai7JHd9lrHtM/lkhfWQIFjIWKtP8iD+zj4Lnwbs/ykELR0MB2k56TDnQaRAelvu8XOygt27wfDBDQSEepPqdA==} peerDependencies: typescript: ^5 @@ -3050,7 +3050,7 @@ snapshots: '@rtsao/scc@1.1.0': {} - '@song-spotlight/api@2.0.1(typescript@5.9.3)': + '@song-spotlight/api@2.1.3(typescript@5.9.3)': dependencies: typescript: 5.9.3 optionalDependencies: diff --git a/src/equicordplugins/songSpotlight.desktop/lib/api.ts b/src/equicordplugins/songSpotlight.desktop/lib/api.ts index 9bad09bca..c751830f1 100644 --- a/src/equicordplugins/songSpotlight.desktop/lib/api.ts +++ b/src/equicordplugins/songSpotlight.desktop/lib/api.ts @@ -10,11 +10,12 @@ import { showToast, Toasts, UserStore } from "@webpack/common"; import { useAuthorizationStore } from "./stores/AuthorizationStore"; import { useSongStore } from "./stores/SongStore"; +const api = "https://dc.songspotlight.nexpid.xyz/"; export const apiConstants = { - api: "https://dc.songspotlight.nexpid.xyz/", + api, oauth2: { clientId: "1157745434140344321", - redirectURL: "https://dc.songspotlight.nexpid.xyz/api/auth/authorize", + redirectURL: `${api}api/auth/authorize`, }, songLimit: 6, }; diff --git a/src/equicordplugins/songSpotlight.desktop/ui/common.tsx b/src/equicordplugins/songSpotlight.desktop/ui/common.tsx index e5cdc1df5..5b6377db2 100644 --- a/src/equicordplugins/songSpotlight.desktop/ui/common.tsx +++ b/src/equicordplugins/songSpotlight.desktop/ui/common.tsx @@ -211,6 +211,21 @@ export function SpotifyIcon(props: JSX.IntrinsicElements["svg"]) { ); } +export function TidalIcon(props: JSX.IntrinsicElements["svg"]) { + return ( + + + + + + + ); +} export function TrashIcon(props: JSX.IntrinsicElements["svg"]) { return (