web themes

This commit is contained in:
Mo Bitar
2017-04-10 15:05:13 -05:00
parent 7a814eb122
commit 5e722e5291
10 changed files with 431 additions and 53 deletions

View File

@@ -0,0 +1,30 @@
class Theme extends Item {
constructor(json_obj) {
super(json_obj);
}
mapContentToLocalProperties(contentObject) {
super.mapContentToLocalProperties(contentObject)
this.url = contentObject.url;
this.name = contentObject.name;
}
structureParams() {
var params = {
url: this.url,
name: this.name,
};
_.merge(params, super.structureParams());
return params;
}
toJSON() {
return {uuid: this.uuid}
}
get content_type() {
return "SN|Theme";
}
}