mirror of https://github.com/portainer/portainer
12 lines
382 B
JavaScript
12 lines
382 B
JavaScript
function StackTemplateViewModel(data) {
|
|
this.Type = data.type;
|
|
this.Title = data.title;
|
|
this.Description = data.description;
|
|
this.Note = data.note;
|
|
this.Categories = data.categories ? data.categories : [];
|
|
this.Platform = data.platform ? data.platform : 'undefined';
|
|
this.Logo = data.logo;
|
|
this.Repository = data.repository;
|
|
this.Env = data.env ? data.env : [];
|
|
}
|