diff --git a/examples/mashup/connect.js b/examples/mashup/connect.js index b2369fca7..274a78148 100644 --- a/examples/mashup/connect.js +++ b/examples/mashup/connect.js @@ -3,17 +3,17 @@ window.connect = function connect() { const createConnection = () => loadSchema().then(schema => window.enigma.create({ schema, - url: `ws://${window.location.hostname || 'localhost'}:19076/app/${Date.now()}`, + url: `ws://${window.location.hostname || 'localhost'}:9076/app/${Date.now()}`, }).open().then(qix => qix.createSessionApp())); return createConnection().then(app => app.setScript(` Characters: Load Chr(RecNo()+Ord('A')-1) as Alpha, RecNo() as Num autogenerate 26; - + ASCII: -Load +Load if(RecNo()>=65 and RecNo()<=90,RecNo()-64) as Num, - Chr(RecNo()) as AsciiAlpha, + Chr(RecNo()) as AsciiAlpha, RecNo() as AsciiNum autogenerate 85 Where (RecNo()>=65 and RecNo()<=126) or RecNo()>=160; diff --git a/examples/mashup/docker-compose.yml b/examples/mashup/docker-compose.yml index 26ccb09b9..f3a9c642a 100644 --- a/examples/mashup/docker-compose.yml +++ b/examples/mashup/docker-compose.yml @@ -2,8 +2,8 @@ version: "3.1" services: engine: - image: qlikcore/engine:${ENGINE_VERSION:-latest} + image: qlikcore/engine:${ENGINE_VERSION} restart: always command: -S AcceptEULA="${ACCEPT_EULA:-no}" ports: - - "19076:9076" + - "9076:9076" diff --git a/examples/mashup/index.html b/examples/mashup/index.html index cf2f07b13..1ee096887 100644 --- a/examples/mashup/index.html +++ b/examples/mashup/index.html @@ -3,8 +3,9 @@ Nebula mashup - - + + +
+
diff --git a/examples/mashup/index.js b/examples/mashup/index.js index 13870f4e0..664982a91 100644 --- a/examples/mashup/index.js +++ b/examples/mashup/index.js @@ -11,6 +11,8 @@ connect().then((app) => { load: (type, config) => config.Promise.resolve(sn), }); + nebbie.selections().mount(document.querySelector('.toolbar')); + document.querySelectorAll('.object').forEach((el) => { const type = el.getAttribute('data-type'); diff --git a/examples/mashup/package.json b/examples/mashup/package.json deleted file mode 100644 index 7c0746cd2..000000000 --- a/examples/mashup/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "private": true, - "dependencies": { - "enigma.js": "^2.4.0" - } -} diff --git a/examples/mashup/yarn.lock b/examples/mashup/yarn.lock deleted file mode 100644 index 8b1f25a1d..000000000 --- a/examples/mashup/yarn.lock +++ /dev/null @@ -1,11 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -enigma.js@^2.4.0: - version "2.4.0" - resolved "https://registry.yarnpkg.com/enigma.js/-/enigma.js-2.4.0.tgz#e5263116e7168e27f11cfe326ac83ed738bb7cc4" - -leonardo-ui@^1.6.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/leonardo-ui/-/leonardo-ui-1.6.0.tgz#65eab0a4fd9a54f87a75d08e4440900555f56c24"