/** * Vvveb * * Copyright (C) 2021 Ziadin Givan * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . * */ import {ServerComponent} from '../server-component.js'; let template = `
mango

One Shoulder Glitter Midi Dress

$49.00 $350 26% Off


 
Mauris viverra cursus ante laoreet eleifend. Donec vel fringilla ante. Aenean finibus velit id urna vehicula, nec maximus est sollicitudin. Praesent at tempus lectus, eleifend blandit felis. Fusce augue arcu, consequat a nisl aliquet, consectetur elementum turpis. Donec iaculis lobortis nisl, et viverra risus imperdiet eu. Etiam mollis posuere elit non sagittis. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc quis arcu a magna sodales venenatis. Integer non diam sit amet magna luctus mollis ac eu nisi. In accumsan tellus ut dapibus blandit.
`; class ProductComponent extends ServerComponent{ constructor () { super(); this.name = "Product"; this.attributes = ["data-v-component-product"], this.image ="icons/product.svg"; this.html = template; this.properties = [{ name: "Product name (autocomplete)", key: "post", group:"autocomplete", htmlAttr:"data-v-product_id", inline:false, col:12, inputtype: AutocompleteInput, data: { url: window.location.pathname + "?module=editor/autocomplete&action=products&type=", }, },{ name: "Image size", key: "image_size", col:6, inline:false, htmlAttr:"data-v-image_size", inputtype: SelectInput, data: { options: [{ value: "", text: "Default" },{ value: "thumb", text: "Thumb" },{ value: "medium", text: "Medium" },{ value: "large", text: "Large" },{ value: "xlarge", text: "Extra large" }] } }]; } init(node) { } } let productComponent = new ProductComponent; export { productComponent };