mirror of
https://github.com/janishutz/MusicPlayer.git
synced 2026-09-10 14:25:24 +02:00
feat: set up backend
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import loginSdk from '@janishutz/login-sdk-server';
|
||||
import loginSdkStub from '@janishutz/login-sdk-server-stubs';
|
||||
import storeSdk from '@janishutz/store-sdk';
|
||||
import storeSdkStub from './store-sdk-stub';
|
||||
|
||||
export const getLoginSdk = ( foss: boolean ) => {
|
||||
if ( foss ) return loginSdkStub;
|
||||
else return loginSdk;
|
||||
};
|
||||
|
||||
export const getStoreSdk = ( foss: boolean ) => {
|
||||
if ( foss ) return storeSdkStub;
|
||||
else return storeSdk;
|
||||
};
|
||||
@@ -1,3 +1,10 @@
|
||||
interface StoreSDKConfig {
|
||||
'backendURL': string;
|
||||
'signingSecret': string;
|
||||
'name': string;
|
||||
'loglevel': 'debug' | 'info' | 'log' | 'warn' | 'error' | 'none';
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
const getSubscriptions = ( _uid: string ) => {
|
||||
return [ {
|
||||
@@ -7,6 +14,9 @@ const getSubscriptions = ( _uid: string ) => {
|
||||
} ];
|
||||
};
|
||||
|
||||
const configure = ( _config: StoreSDKConfig ) => {}
|
||||
|
||||
export default {
|
||||
getSubscriptions
|
||||
getSubscriptions,
|
||||
configure
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user