refactor: update engine schema version (#727)

This commit is contained in:
Christian Veinfors
2021-12-06 12:36:41 +01:00
committed by GitHub
parent 72a4e3c10a
commit 78a4140665
6 changed files with 10 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
import enigma from 'enigma.js';
import qixSchema from 'enigma.js/schemas/12.34.11.json';
import qixSchema from 'enigma.js/schemas/12.936.0.json';
import { embed } from '@nebula.js/stardust';
import mekko from '@nebula.js/sn-mekko-chart';

View File

@@ -1,5 +1,5 @@
import enigma from 'enigma.js';
import schema from 'enigma.js/schemas/12.170.2.json';
import schema from 'enigma.js/schemas/12.936.0.json';
async function getQCSHeaders({ webIntegrationId, url }) {
const response = await fetch(`${url}/api/v1/csrf-token`, {

View File

@@ -1,5 +1,5 @@
import enigma from 'enigma.js';
import qixSchema from 'enigma.js/schemas/12.34.11.json';
import qixSchema from 'enigma.js/schemas/12.936.0.json';
import SenseUtilities from 'enigma.js/sense-utilities';
const params = (() => {

View File

@@ -2,7 +2,7 @@ import enigma from 'enigma.js';
export default function connect() {
const loadSchema = () =>
fetch('https://unpkg.com/enigma.js/schemas/12.612.0.json').then((response) => response.json());
fetch('https://unpkg.com/enigma.js/schemas/12.936.0.json').then((response) => response.json());
const createConnection = () =>
loadSchema().then((schema) =>

View File

@@ -2,7 +2,7 @@ import enigma from 'enigma.js';
export default function connect() {
const loadSchema = () =>
fetch('https://unpkg.com/enigma.js/schemas/12.612.0.json').then((response) => response.json());
fetch('https://unpkg.com/enigma.js/schemas/12.936.0.json').then((response) => response.json());
const createConnection = () =>
loadSchema().then((schema) =>

View File

@@ -1,18 +1,19 @@
window.connect = function connect() {
const loadSchema = () => fetch('https://unpkg.com/enigma.js/schemas/3.2.json').then(response => response.json());
const loadSchema = () =>
fetch('https://unpkg.com/enigma.js/schemas/12.936.0.json').then((response) => response.json());
const createConnection = () =>
loadSchema().then(schema =>
loadSchema().then((schema) =>
window.enigma
.create({
schema,
url: `ws://${window.location.hostname || 'localhost'}:9076/app/${Date.now()}`,
})
.open()
.then(qix => qix.createSessionApp())
.then((qix) => qix.createSessionApp())
);
return createConnection().then(app =>
return createConnection().then((app) =>
app
.setScript(
`