[DEV] all is operational
This commit is contained in:
parent
95e2e03686
commit
eb3cd1b1fe
@ -31,7 +31,7 @@
|
|||||||
"rxjs": "^7.8.1",
|
"rxjs": "^7.8.1",
|
||||||
"zone.js": "^0.14.4",
|
"zone.js": "^0.14.4",
|
||||||
"zod": "3.22.4",
|
"zod": "3.22.4",
|
||||||
"@kangaroo-and-rabbit/kar-cw": "^0.1.5"
|
"@kangaroo-and-rabbit/kar-cw": "^0.1.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "^17.3.1",
|
"@angular-devkit/build-angular": "^17.3.1",
|
||||||
|
@ -40,7 +40,7 @@ export class ElementPlayerAudioComponent implements OnInit {
|
|||||||
public name: string = 'rr';
|
public name: string = 'rr';
|
||||||
public description: string;
|
public description: string;
|
||||||
|
|
||||||
public counttrack: number;
|
public countTrack: number;
|
||||||
|
|
||||||
public covers: string[];
|
public covers: string[];
|
||||||
|
|
||||||
@ -108,7 +108,6 @@ export class ElementPlayerAudioComponent implements OnInit {
|
|||||||
console.log(`get response of video : ${JSON.stringify(response, null, 2)}`);
|
console.log(`get response of video : ${JSON.stringify(response, null, 2)}`);
|
||||||
self.currentLMedia = response;
|
self.currentLMedia = response;
|
||||||
self.dataTitle = response.name;
|
self.dataTitle = response.name;
|
||||||
console.log("aaa");
|
|
||||||
if (!isNullOrUndefined(response.albumId)) {
|
if (!isNullOrUndefined(response.albumId)) {
|
||||||
this.albumService.get(response.albumId)
|
this.albumService.get(response.albumId)
|
||||||
.then((response2: Album) => {
|
.then((response2: Album) => {
|
||||||
@ -117,22 +116,21 @@ export class ElementPlayerAudioComponent implements OnInit {
|
|||||||
})
|
})
|
||||||
.catch(() => { });
|
.catch(() => { });
|
||||||
}
|
}
|
||||||
console.log("aaa");
|
|
||||||
if (!isNullOrUndefined(response.artists) && isArray(response.artists) && response.artists.length > 0) {
|
if (!isNullOrUndefined(response.artists) && isArray(response.artists) && response.artists.length > 0) {
|
||||||
this.artistService.get(response.artists[0])
|
this.artistService.get(response.artists[0])
|
||||||
.then((response2: Artist) => {
|
.then((response2: Artist) => {
|
||||||
self.dataAuthor = response2.name;
|
self.dataAuthor = response2.name;
|
||||||
})
|
})
|
||||||
.catch(() => { });
|
.catch(() => { });
|
||||||
} console.log("aaa");
|
}
|
||||||
if (isNullOrUndefined(self.currentLMedia)) {
|
if (isNullOrUndefined(self.currentLMedia)) {
|
||||||
console.log("Can not retrieve the media ...")
|
console.log("Can not retrieve the media ...")
|
||||||
return;
|
return;
|
||||||
} console.log("aaa");
|
}
|
||||||
if (isNullOrUndefined(self.currentLMedia.dataId)) {
|
if (isNullOrUndefined(self.currentLMedia.dataId)) {
|
||||||
console.log("Can not retrieve the media ... null or undefined data ID")
|
console.log("Can not retrieve the media ... null or undefined data ID")
|
||||||
return;
|
return;
|
||||||
} console.log("aaa");
|
}
|
||||||
self.mediaSource = self.dataService.getUrl(self.currentLMedia.dataId, "unknownMediaName.webm");
|
self.mediaSource = self.dataService.getUrl(self.currentLMedia.dataId, "unknownMediaName.webm");
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.error(`error not unmanaged in audio player ... 111 ${error}`);
|
console.error(`error not unmanaged in audio player ... 111 ${error}`);
|
||||||
|
@ -40,8 +40,11 @@ export class DataService {
|
|||||||
params: {
|
params: {
|
||||||
dataId
|
dataId
|
||||||
}
|
}
|
||||||
});//.replace("http://localhost:19080", "https://atria-soft.org");
|
});
|
||||||
console.log(`get URL = ${url}`);
|
console.log(`get URL = ${url}`);
|
||||||
|
if (environment?.replaceDataToRealServer === true) {
|
||||||
|
return url.replace("http://localhost:19080", "https://atria-soft.org");
|
||||||
|
}
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
const url = RESTUrl({
|
const url = RESTUrl({
|
||||||
@ -54,8 +57,10 @@ export class DataService {
|
|||||||
dataId,
|
dataId,
|
||||||
optionalName
|
optionalName
|
||||||
}
|
}
|
||||||
});//.replace("http://localhost:19080", "https://atria-soft.org");
|
});
|
||||||
console.log(`get URL = ${url}`);
|
if (environment?.replaceDataToRealServer === true) {
|
||||||
|
return url.replace("http://localhost:19080", "https://atria-soft.org");
|
||||||
|
}
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
@ -79,7 +84,7 @@ export class DataService {
|
|||||||
* @returns the url of the cover
|
* @returns the url of the cover
|
||||||
*/
|
*/
|
||||||
getThumbnailUrl(coverId: string): string {
|
getThumbnailUrl(coverId: string): string {
|
||||||
return RESTUrl({
|
const url = RESTUrl({
|
||||||
restModel: {
|
restModel: {
|
||||||
endPoint: "data/thumbnail/{coverId}",
|
endPoint: "data/thumbnail/{coverId}",
|
||||||
tokenInUrl: true,
|
tokenInUrl: true,
|
||||||
@ -88,7 +93,11 @@ export class DataService {
|
|||||||
params: {
|
params: {
|
||||||
coverId
|
coverId
|
||||||
}
|
}
|
||||||
});//.replace("http://localhost:19080", "https://atria-soft.org");
|
});
|
||||||
|
if (environment?.replaceDataToRealServer === true) {
|
||||||
|
return url.replace("http://localhost:19080", "https://atria-soft.org");
|
||||||
|
}
|
||||||
|
return url;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Retrieve the list thumbnail cover URL of a specific data id
|
* Retrieve the list thumbnail cover URL of a specific data id
|
||||||
|
@ -31,22 +31,7 @@ export class TrackService extends GenericDataService<Track> {
|
|||||||
const self = this;
|
const self = this;
|
||||||
this.setStore(new DataStore<Track>(() => this.lambdaGets()));
|
this.setStore(new DataStore<Track>(() => this.lambdaGets()));
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
insert(data: Track): Promise<Track> {
|
|
||||||
const self = this;
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
TrackResource.post({
|
|
||||||
restConfig: this.getRestConfig(),
|
|
||||||
data
|
|
||||||
}).then((value: Track) => {
|
|
||||||
self.dataStore.updateValue(value);
|
|
||||||
resolve(value);
|
|
||||||
}).catch((error) => {
|
|
||||||
reject(error);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
patch(id: number, data: Track): Promise<Track> {
|
patch(id: number, data: Track): Promise<Track> {
|
||||||
const self = this;
|
const self = this;
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
|
@ -37,6 +37,7 @@ const environment_local: Environment = {
|
|||||||
ssoSignUp: `${serverSSOAddress}/karso/signup/karusic-dev/`,
|
ssoSignUp: `${serverSSOAddress}/karso/signup/karusic-dev/`,
|
||||||
ssoSignOut: `${serverSSOAddress}/karso/signout/karusic-dev/`,
|
ssoSignOut: `${serverSSOAddress}/karso/signout/karusic-dev/`,
|
||||||
tokenStoredInPermanentStorage: false,
|
tokenStoredInPermanentStorage: false,
|
||||||
|
replaceDataToRealServer: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
const environment_full_local: Environment = {
|
const environment_full_local: Environment = {
|
||||||
|
Loading…
Reference in New Issue
Block a user