deleted deprecated component
gitea/salix/dev There was a failure building this commit
Details
gitea/salix/dev There was a failure building this commit
Details
This commit is contained in:
parent
efff9d2184
commit
5d6951a610
|
@ -1,5 +1,4 @@
|
|||
import ngModule from '../module';
|
||||
import './product';
|
||||
import './style.scss';
|
||||
|
||||
class Controller {
|
||||
|
|
|
@ -1,38 +0,0 @@
|
|||
<a
|
||||
ui-sref="item.card.summary({id: $ctrl.item.id})"
|
||||
translate-attr="{title: 'View item'}"
|
||||
class="vn-list-item">
|
||||
<vn-horizontal ng-click="$ctrl.onClick($event)">
|
||||
|
||||
<vn-auto margin-medium-right>
|
||||
<vn-one>
|
||||
<img
|
||||
class="image"
|
||||
ng-src="//verdnatura.es/vn-image-data/catalog/200x200/{{::$ctrl.item.image}}"
|
||||
zoom-image="//verdnatura.es/vn-image-data/catalog/1600x900/{{::$ctrl.item.image}}" on-error-src/>
|
||||
</vn-one>
|
||||
</vn-auto>
|
||||
<vn-one>
|
||||
<h6>{{::$ctrl.item.id}} - {{::$ctrl.item.name}}</h6>
|
||||
<vn-label-value label="Type"
|
||||
value="{{::$ctrl.item.type}}">
|
||||
</vn-label-value>
|
||||
<vn-label-value label="Buyer"
|
||||
value="{{::$ctrl.item.userNickname}}">
|
||||
</vn-label-value>
|
||||
<vn-fetched-tags max-length="4" item="$ctrl.item" class="noTitle"/>
|
||||
</vn-one>
|
||||
<vn-horizontal class="buttons">
|
||||
<vn-icon
|
||||
ng-click="$ctrl.clone($event)"
|
||||
vn-tooltip="Clone"
|
||||
icon="icon-clone">
|
||||
</vn-icon>
|
||||
<vn-icon
|
||||
ng-click="$ctrl.preview($event)"
|
||||
vn-tooltip="Preview"
|
||||
icon="desktop_windows">
|
||||
</vn-icon>
|
||||
</vn-horizontal>
|
||||
</vn-horizontal>
|
||||
</a>
|
|
@ -1,49 +0,0 @@
|
|||
import ngModule from '../module';
|
||||
|
||||
class ItemProduct {
|
||||
onClick(event) {
|
||||
if (event.defaultPrevented)
|
||||
event.stopImmediatePropagation();
|
||||
}
|
||||
|
||||
set item(value) {
|
||||
if (value) {
|
||||
let tags = [];
|
||||
for (let i = 5; i < 9; i++) {
|
||||
if (value['tag' + i]) {
|
||||
let tagValue = value['value' + i];
|
||||
let tagKey = value['tag' + i];
|
||||
tags.push({tag: {name: tagKey}, value: tagValue});
|
||||
}
|
||||
}
|
||||
value.tags = tags;
|
||||
}
|
||||
|
||||
this._item = value;
|
||||
}
|
||||
|
||||
get item() {
|
||||
return this._item;
|
||||
}
|
||||
|
||||
clone(event) {
|
||||
event.preventDefault();
|
||||
this.index.cloneItem(this.item);
|
||||
}
|
||||
|
||||
preview(event) {
|
||||
event.preventDefault();
|
||||
this.index.showItemPreview(this.item);
|
||||
}
|
||||
}
|
||||
|
||||
ngModule.component('vnItemProduct', {
|
||||
template: require('./product.html'),
|
||||
bindings: {
|
||||
item: '<'
|
||||
},
|
||||
controller: ItemProduct,
|
||||
require: {
|
||||
index: '^vnItemIndex'
|
||||
}
|
||||
});
|
|
@ -1,31 +1,5 @@
|
|||
@import "variables";
|
||||
|
||||
vn-item-product {
|
||||
display: block;
|
||||
|
||||
.id {
|
||||
background-color: $color-main;
|
||||
color: $color-font-dark;
|
||||
margin-bottom: 0em;
|
||||
}
|
||||
.image {
|
||||
height: 7em;
|
||||
width: 7em;
|
||||
|
||||
& > img {
|
||||
max-height: 100%;
|
||||
max-width: 100%;
|
||||
border-radius: .2em;
|
||||
}
|
||||
}
|
||||
vn-label-value:first-of-type section{
|
||||
margin-top: 0.6em;
|
||||
}
|
||||
vn-fetched-tags vn-horizontal{
|
||||
margin-top: 0.9em;
|
||||
}
|
||||
}
|
||||
|
||||
vn-table {
|
||||
img {
|
||||
border-radius: 50%;
|
||||
|
|
Loading…
Reference in New Issue