update: use unpkg.com

This commit is contained in:
Jean-Baptiste 2019-01-22 17:11:36 +01:00
parent 3a21285109
commit f6c561fe28
2 changed files with 9 additions and 9 deletions

View File

@ -33,9 +33,8 @@ link(rel='stylesheet', href='https://fonts.googleapis.com/css?family=Open+Sans:3
//link(rel='import', href='/lib/sib-chat/sib-chat.html')
//- cdn
script(type="module" src="https://cdn.happy-dev.fr/sib-core/sib-display.js")
script(type="module" src="https://cdn.happy-dev.fr/sib-router/sib-router.js")
script(type="module" src="https://cdn.happy-dev.fr/sib-core/sib-form.js")
script(type="module" src="https://unpkg.com/@startinblox/core@latest")
script(type="module" src="https://unpkg.com/@startinblox/router@latest")
script(type="module" src="https://cdn.happy-dev.fr/sib-chat/sib-chat.js")
script(type="module" src="/scripts/hd-widgets.js")

View File

@ -1,12 +1,13 @@
import {SIBDisplayLookupList} from 'https://cdn.happy-dev.fr/sib-core/widgets/sib-display-widgets.js';
import {SIBWidget} from 'https://cdn.happy-dev.fr/sib-core/widgets/sib-base-widgets.js';
import {store} from 'https://cdn.happy-dev.fr/sib-core/store.js';
import {uniqID} from 'https://cdn.happy-dev.fr/sib-core/helpers.js';
import {DisplayWidgets, Helpers, SIBWidget} from 'https://unpkg.com/@startinblox/core@latest';
import {store} from 'https://unpkg.com/@startinblox/core@latest/src/store';
const SIBDisplayLookupList = DisplayWidgets.SIBDisplayLookupList;
class HDAppUserInfo extends SIBDisplayLookupList {
get parentElement() {
return 'div';
}
getTemplate(value, index) {
var firstname, lastname, email;
@ -57,6 +58,7 @@ class HDAppAuthor extends SIBDisplayLookupList {
get parentElement() {
return 'div';
}
getTemplate(value, index) {
var firstname, lastname;
if (typeof value == 'object')
@ -119,8 +121,7 @@ class HDAppHyperlink extends SIBWidget {
class HDAppLinkMore extends SIBWidget {
get template() {
const id = uniqID();
console.warn('HDAppLinkMore', this);
const id = Helpers.uniqID();
return `
${this.label}
${this.name}