[DEV] add thumbnail
This commit is contained in:
parent
9c04e8757b
commit
e59ee003cb
@ -47,9 +47,9 @@ export class ElementGroupComponent implements OnInit {
|
||||
self.cover = null;
|
||||
//self.covers = [];
|
||||
} else {
|
||||
self.cover = self.groupService.getCoverUrl(response.covers[0]);
|
||||
self.cover = self.groupService.getCoverThumbnailUrl(response.covers[0]);
|
||||
for (let iii=0; iii<response.covers.length; iii++) {
|
||||
self.covers.push(self.groupService.getCoverUrl(response.covers[iii]));
|
||||
self.covers.push(self.groupService.getCoverThumbnailUrl(response.covers[iii]));
|
||||
}
|
||||
}
|
||||
}).catch(function(response) {
|
||||
|
@ -45,9 +45,9 @@ export class ElementSaisonComponent implements OnInit {
|
||||
self.cover = null;
|
||||
//self.covers = [];
|
||||
} else {
|
||||
self.cover = self.saisonService.getCoverUrl(response.covers[0]);
|
||||
self.cover = self.saisonService.getCoverThumbnailUrl(response.covers[0]);
|
||||
for (let iii=0; iii<response.covers.length; iii++) {
|
||||
self.covers.push(self.saisonService.getCoverUrl(response.covers[iii]));
|
||||
self.covers.push(self.saisonService.getCoverThumbnailUrl(response.covers[iii]));
|
||||
}
|
||||
}
|
||||
}).catch(function(response) {
|
||||
|
@ -47,9 +47,9 @@ export class ElementTypeComponent implements OnInit {
|
||||
self.cover = null;
|
||||
//self.covers = [];
|
||||
} else {
|
||||
self.cover = self.typeService.getCoverUrl(response.covers[0]);
|
||||
self.cover = self.typeService.getCoverThumbnailUrl(response.covers[0]);
|
||||
for (let iii=0; iii<response.covers.length; iii++) {
|
||||
self.covers.push(self.typeService.getCoverUrl(response.covers[iii]));
|
||||
self.covers.push(self.typeService.getCoverThumbnailUrl(response.covers[iii]));
|
||||
}
|
||||
}
|
||||
console.log("plouf : '" + self.name + "'");
|
||||
|
@ -84,9 +84,9 @@ export class ElementVideoComponent implements OnInit {
|
||||
self.cover = null;
|
||||
//self.covers = [];
|
||||
} else {
|
||||
self.cover = self.videoService.getCoverUrl(response.covers[0]);
|
||||
self.cover = self.videoService.getCoverThumbnailUrl(response.covers[0]);
|
||||
for (let iii=0; iii<response.covers.length; iii++) {
|
||||
self.covers.push(self.videoService.getCoverUrl(response.covers[iii]));
|
||||
self.covers.push(self.videoService.getCoverThumbnailUrl(response.covers[iii]));
|
||||
}
|
||||
}
|
||||
//console.log("101010 " + self.video_enable + " " + self.video_source);
|
||||
|
@ -116,6 +116,9 @@ export class GroupService {
|
||||
getCoverUrl(_coverId:number):any {
|
||||
return this.http.createRESTCall("data/" + _coverId);
|
||||
};
|
||||
getCoverThumbnailUrl(_coverId:number):any {
|
||||
return this.http.createRESTCall("data/thumbnail/" + _coverId);
|
||||
};
|
||||
|
||||
getLike(_nameGroup:string):any {
|
||||
let self = this;
|
||||
|
@ -31,7 +31,7 @@ export class SaisonService {
|
||||
reject(response);
|
||||
});
|
||||
});
|
||||
};
|
||||
}
|
||||
getVideo(_id:number):any {
|
||||
let self = this;
|
||||
return new Promise((resolve, reject) => {
|
||||
@ -44,7 +44,7 @@ export class SaisonService {
|
||||
reject(response);
|
||||
});
|
||||
});
|
||||
};
|
||||
}
|
||||
countVideo(_id:number):any {
|
||||
let self = this;
|
||||
return new Promise((resolve, reject) => {
|
||||
@ -57,16 +57,19 @@ export class SaisonService {
|
||||
reject(response);
|
||||
});
|
||||
});
|
||||
};
|
||||
}
|
||||
put(_id:number, _data:any):any {
|
||||
let ret = this.http.put_specific(this.serviceName, _id, _data);
|
||||
return this.bdd.setAfterPut(this.serviceName, _id, ret);
|
||||
};
|
||||
}
|
||||
addCover(_id:number, _coverId:number):any {
|
||||
return this.http.post_specific(this.serviceName, _id, {"data_id":_coverId}, "add_cover");
|
||||
};
|
||||
}
|
||||
getCoverUrl(_coverId:number):any {
|
||||
return this.http.createRESTCall("data/" + _coverId);
|
||||
};
|
||||
}
|
||||
getCoverThumnbnailUrl(_coverId:number):any {
|
||||
return this.http.createRESTCall("data/thumbnail/" + _coverId);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -41,7 +41,7 @@ export class TypeService {
|
||||
reject(response);
|
||||
});
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
get(_id:number):any {
|
||||
let self = this;
|
||||
@ -58,7 +58,7 @@ export class TypeService {
|
||||
reject(response);
|
||||
});
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
getSubVideo(_id:number, _select:Array<string> = []):any {
|
||||
let self = this;
|
||||
@ -82,7 +82,7 @@ export class TypeService {
|
||||
reject(response);
|
||||
});
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
getSubGroup(_id:number, _select:Array<string> = []):any {
|
||||
let self = this;
|
||||
@ -111,7 +111,7 @@ export class TypeService {
|
||||
reject(response);
|
||||
});
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
getSubUnivers(_id:number, _select:Array<string> = []):any {
|
||||
let self = this;
|
||||
@ -140,10 +140,13 @@ export class TypeService {
|
||||
reject(response);
|
||||
});
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
getCoverUrl(_coverId:number):any {
|
||||
return this.http.createRESTCall("data/" + _coverId);
|
||||
};
|
||||
}
|
||||
getCoverThumbnailUrl(_coverId:number):any {
|
||||
return this.http.createRESTCall("data/thumbnail/" + _coverId);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -48,6 +48,9 @@ export class VideoService {
|
||||
getCoverUrl(_coverId:number):any {
|
||||
return this.http.createRESTCall("data/" + _coverId);
|
||||
}
|
||||
getCoverThumbnailUrl(_coverId:number):any {
|
||||
return this.http.createRESTCall("data/thumbnail/" + _coverId);
|
||||
}
|
||||
|
||||
uploadFile(_file:File,
|
||||
_universe:string,
|
||||
|
Loading…
Reference in New Issue
Block a user