Skip to content

Commit

Permalink
fix: update schema version
Browse files Browse the repository at this point in the history
  • Loading branch information
Caele committed Nov 13, 2020
1 parent cd4edfb commit 1b86d46
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions examples/dev-mashup/connect.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import enigma from 'enigma.js';

export default 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.612.0.json').then((response) => response.json());

const createConnection = () =>
loadSchema().then((schema) =>
Expand All @@ -20,18 +21,18 @@ export default function connect() {
`
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 255
Where (RecNo()>=32 and RecNo()<=126) or RecNo()>=160 ;
Transactions:
Load
TransLineID,
TransLineID,
TransID,
mod(TransID,26)+1 as Num,
Pick(Ceil(3*Rand1),'A','B','C') as Dim1,
Expand All @@ -40,7 +41,7 @@ export default function connect() {
Round(1000*Rand()*Rand()*Rand1) as Expression1,
Round( 10*Rand()*Rand()*Rand1) as Expression2,
Round(Rand()*Rand1,0.00001) as Expression3;
Load
Load
Rand() as Rand1,
IterNo() as TransLineID,
RecNo() as TransID
Expand Down
2 changes: 1 addition & 1 deletion examples/dev-mashup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import line from '@nebula.js/sn-line-chart';
import connect from './connect';

function init() {
connect().then(async (app) => {
connect().then((app) => {
const nebbie = embed(app, {
types: [
{
Expand Down

0 comments on commit 1b86d46

Please sign in to comment.