mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-07-04 17:21:43 +02:00
Everything working.
This commit is contained in:
@ -131,5 +131,8 @@
|
||||
"@schematics/angular:component": {
|
||||
"style": "scss"
|
||||
}
|
||||
},
|
||||
"cli": {
|
||||
"analytics": false
|
||||
}
|
||||
}
|
||||
|
@ -4,6 +4,7 @@ import { Song } from './models/song.model';
|
||||
import { Artist } from './models/artist.model';
|
||||
import { Genre } from './models/genre.model';
|
||||
import { Language } from './models/language.model';
|
||||
import { RuntimeConfigLoaderService} from 'runtime-config-loader';
|
||||
|
||||
import { Observable } from 'rxjs';
|
||||
|
||||
@ -25,11 +26,11 @@ export class SongServiceService {
|
||||
|
||||
let out = new Array<Song>();
|
||||
|
||||
this.http.get(this.api +"/songs/compl?search="+text).subscribe((data: Observable<JSON>) => {
|
||||
/* this.http.get(this.api +"/songs/compl?search="+text).subscribe((data: JSON) => {
|
||||
data.forEach(element => {
|
||||
out.push(new Song(element["title"],element["artist"],element["karafun_id"],element["duo"],element["explicit"],element["_id"],element["styles"],element["languages"]));
|
||||
});
|
||||
});
|
||||
});*/
|
||||
|
||||
const observable = new Observable<Array<Song>>( subscriber => {
|
||||
subscriber.next(out);
|
||||
|
0
frontend/ng-karaoqueue/src/main.ts
Normal file
0
frontend/ng-karaoqueue/src/main.ts
Normal file
@ -2,7 +2,7 @@
|
||||
{
|
||||
"compileOnSave": false,
|
||||
"compilerOptions": {
|
||||
"baseUrl": "./",
|
||||
"baseUrl": "src",
|
||||
"outDir": "./dist/out-tsc",
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strict": true,
|
||||
|
Reference in New Issue
Block a user