@opexa/portal-components 0.0.134 → 0.0.135
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/next.config.js
CHANGED
package/dist/styles/theme.css
CHANGED
|
@@ -3,10 +3,12 @@ type Args = {
|
|
|
3
3
|
id: string;
|
|
4
4
|
reference?: never;
|
|
5
5
|
provider: GameProvider;
|
|
6
|
+
version?: string;
|
|
6
7
|
} | {
|
|
7
8
|
id?: never;
|
|
8
9
|
reference: string;
|
|
9
10
|
provider: GameProvider;
|
|
11
|
+
version?: string;
|
|
10
12
|
};
|
|
11
13
|
export declare function getGameImageUrl<T extends Args>(args: T): string;
|
|
12
14
|
export {};
|
|
@@ -3,5 +3,6 @@ const VERSION = '1';
|
|
|
3
3
|
export function getGameImageUrl(args) {
|
|
4
4
|
const id = args.id ?? args.reference;
|
|
5
5
|
const provider = args.provider.toLocaleLowerCase();
|
|
6
|
-
|
|
6
|
+
const version = args.version ?? VERSION;
|
|
7
|
+
return `${STATIC_ENDPOINT}/images/${provider}/thumbnail-${id}.webp?_v=${version}`;
|
|
7
8
|
}
|