Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
<div>
<div>
{i18n.t('Find an app that has not yet been fetched from the official appstore.')}
<br>
<br>
<div>
<label>{i18n.t('App Name (example: com.ubuntu.developer.example)')}</label>
<input value="{this.state.name}" type="text">
</div>
</div>
</div>
<div>
<a>{i18n.t('Find')}</a>
</div>
<div></div>
);
}
});
render: function() {
var title = i18n.t('Create List');
var save = (
<span>
<i></i> {i18n.t('Create')}
</span>
);
if (this.state.list && this.state.list._id) {
title = i18n.t('Edit List');
save = (
<span>
<i></i> {i18n.t('Save')}
</span>
);
}
var disabled = '';
if (this.state.list.name === '') {
disabled = 'disabled';
}
var list_apps = [];
if (!this.state.loading && this.state.list_apps) {
list_apps = this.state.list_apps;
}
var search_apps = [];
if (!this.state.loading && this.state.search_key && this.state.apps[this.state.search_key]) {
}
else if (name.indexOf('love') > -1 || name.indexOf('heart') > -1) {
cls = 'fa fa-heart';
}
return (
<div>
<div>
<div>
<div>
<i></i> {i18n.t('View')}
<a>
<i></i> <span>{i18n.t('Edit')}</span>
</a>
<button>
<i></i> <span>{i18n.t('Delete')}</span>
</button>
</div>
<div>
<div>
<div>
<i style="{utils.strToColor(list.name,"></i>
</div>
</div>
<div></div></div></div></div></div>
return (
<div>
<div>
<div>
<div>
<i></i> {i18n.t('View')}
<a>
<i></i> <span>{i18n.t('Edit')}</span>
</a>
<button>
<i></i> <span>{i18n.t('Delete')}</span>
</button>
</div>
<div>
<div>
<div>
<i style="{utils.strToColor(list.name,"></i>
</div>
</div>
<div>
<h4>{list.name}</h4>
<p>
{list.packages.length} {i18n.t('apps', {count: list.packages.length})}
</p></div></div></div></div></div>
<div>
<img alt="{this.state.app.name}" src="{this.state.app.icon}">
OpenStore
</div>
<div>
<h1>{this.state.app.title}</h1>
<div>
{this.state.app.author}
<span title="{i18n.t('Company')}">{this.state.app.company}</span>
<br>
</div>
</div>
count_types: function(count) {
return {
all_types: i18n.t('apps', {count: count}),
all: i18n.t('phone apps & scopes'),
application: i18n.t('apps', {count: count}),
scope: i18n.t('scopes', {count: count}),
webapp: i18n.t('web apps', {count: count}),
};
},
count_types: function(count) {
return {
all_types: i18n.t('apps', {count: count}),
all: i18n.t('phone apps & scopes'),
application: i18n.t('apps', {count: count}),
scope: i18n.t('scopes', {count: count}),
webapp: i18n.t('web apps', {count: count}),
};
},
snap_count_types: function(count) {
return {
all_types: i18n.t('snaps', {count: count}),
all: i18n.t('snaps'),
oem: i18n.t('oem snaps'),
os: i18n.t('os snaps'),
kernel: i18n.t('kernel snaps'),
gadget: i18n.t('gadget snaps'),
framework: i18n.t('framework snaps'),
application: i18n.t('app snaps'),
};
},
snap_count_types: function(count) {
return {
all_types: i18n.t('snaps', {count: count}),
all: i18n.t('snaps'),
oem: i18n.t('oem snaps'),
os: i18n.t('os snaps'),
kernel: i18n.t('kernel snaps'),
gadget: i18n.t('gadget snaps'),
framework: i18n.t('framework snaps'),
application: i18n.t('app snaps'),
};
},
count_types: function(count) {
return {
all_types: i18n.t('apps', {count: count}),
all: i18n.t('phone apps & scopes'),
application: i18n.t('apps', {count: count}),
scope: i18n.t('scopes', {count: count}),
webapp: i18n.t('web apps', {count: count}),
};
},