Merge pull request #5773 from thornbill/add-plugin-redesign

This commit is contained in:
Bill Thornton
2024-07-26 19:34:59 -04:00
committed by GitHub
28 changed files with 1092 additions and 241 deletions
+17
View File
@@ -0,0 +1,17 @@
import type { Api } from '@jellyfin/sdk';
/**
* Gets a full URI for a relative URL to the Jellyfin server for a given SDK Api instance.
* TODO: Add to SDK
* @param api - The Jellyfin SDK Api instance.
* @param url - The relative URL.
* @returns The complete URI with protocol, host, and base URL (if any).
*/
export const getUri = (url: string, api?: Api) => {
if (!api) return;
return api.axiosInstance.getUri({
baseURL: api.basePath,
url
});
};