mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2025-12-19 09:48:18 -05:00
refactor: update engine schema version (#727)
This commit is contained in:
committed by
GitHub
parent
72a4e3c10a
commit
78a4140665
@@ -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';
|
||||
|
||||
@@ -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`, {
|
||||
|
||||
@@ -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 = (() => {
|
||||
|
||||
@@ -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) =>
|
||||
|
||||
@@ -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) =>
|
||||
|
||||
@@ -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(
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user