Skip to content

Commit f45ff8d

Browse files
committed
ADAP-155: updated LauncherBusDemo to start Layout service
1 parent d3e41da commit f45ff8d

File tree

9 files changed

+505
-115
lines changed

9 files changed

+505
-115
lines changed

release/busdemo.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<html>
22
<head>
33
<title>Inter Application Bus demo</title>
4+
<script src="https://cdn.openfin.co/services/openfin/layouts/1.0.0/openfin-layouts.js"></script>
45

56
<script type="text/javascript">
67

@@ -11,8 +12,20 @@
1112
console.log(m);
1213
});
1314

15+
OpenFinLayouts.snapAndDock.addEventListener('window-docked', e => {
16+
let undock = document.getElementById("undock");
17+
undock.disabled = false;
18+
});
19+
OpenFinLayouts.snapAndDock.addEventListener('window-undocked', e => {
20+
let undock = document.getElementById("undock");
21+
undock.disabled = true;
22+
});
1423
});
1524

25+
function undockMe() {
26+
OpenFinLayouts.snapAndDock.undockWindow();
27+
}
28+
1629
</script>
1730
</head>
1831
<body style="background-color: rgb(158, 240, 222);">
@@ -23,5 +36,9 @@
2336
<p>Demo for Inter Application Bus</p>
2437
<div id="messageFromJava">
2538
</div>
39+
<div>
40+
<Button id="undock" disabled onclick="undockMe()"> Undock </Button>
41+
</div>
42+
2643
</body>
2744
</html>

release/layoutclient1.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"startup_app": {
3+
"name": "Layout Client1",
4+
"uuid": "Layout Client1",
5+
"defaultTop": 100,
6+
"defaultLeft": 100,
7+
"defaultWidth": 420,
8+
"defaultHeight": 420,
9+
"url": "http://localhost:8888/busdemo.html",
10+
"resizable": false,
11+
"autoShow": true,
12+
"saveWindowState": false,
13+
"contextMenu": true
14+
},
15+
"services": [{
16+
"manifestUrl": "https://cdn.openfin.co/services/openfin/layouts/1.0.0/app.json",
17+
"name": "layouts",
18+
"config": {
19+
"features": {
20+
"tab": false,
21+
"dock": true
22+
}
23+
}
24+
}],
25+
"runtime": {
26+
"arguments": "--v=1 --security-realm=java-test --enable-mesh ",
27+
"version": "9.61.38.40"
28+
}
29+
}

release/layoutclient2.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"startup_app": {
3+
"name": "Layout Client2",
4+
"uuid": "Layout Client2",
5+
"defaultTop": 600,
6+
"defaultLeft": 100,
7+
"defaultWidth": 420,
8+
"defaultHeight": 420,
9+
"url": "http://localhost:8888/busdemo.html",
10+
"resizable": false,
11+
"autoShow": true,
12+
"saveWindowState": false,
13+
"contextMenu": true
14+
},
15+
"services": [{
16+
"manifestUrl": "https://cdn.openfin.co/services/openfin/layouts/1.0.0/app.json",
17+
"name": "layouts",
18+
"config": {
19+
"features": {
20+
"tab": false,
21+
"dock": true
22+
}
23+
}
24+
}],
25+
"runtime": {
26+
"arguments": "--v=1 --security-realm=java-test --enable-mesh ",
27+
"version": "9.61.38.40"
28+
}
29+
}
-18.6 KB
Binary file not shown.
-19 KB
Binary file not shown.

release/stockflux.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"startup_app": {
3+
"name": "StockFlux",
4+
"uuid": "StockFlux",
5+
"maxWidth": 0,
6+
"maxHeight": 0,
7+
"defaultWidth": 0,
8+
"defaultHeight": 0,
9+
"frame": false,
10+
"showTaskbarIcon": false,
11+
"url": "http://scottlogic.github.io/StockFlux/master/parent.html",
12+
"autoShow": false,
13+
"applicationIcon": "http://scottlogic.github.io/StockFlux/master/favicon.ico"
14+
},
15+
"services": [{
16+
"manifestUrl": "https://cdn.openfin.co/services/openfin/layouts/1.0.0/app.json",
17+
"name": "layouts",
18+
"config": {
19+
"features": {
20+
"tab": false,
21+
"dock": true
22+
}
23+
}
24+
}],
25+
"runtime": {
26+
"arguments": "--enable-aggressive-domstorage-flushing",
27+
"version": "9.61.38.40"
28+
},
29+
"splashScreenImage": "http://scottlogic.github.io/StockFlux/master/splashscreen.png"
30+
}

release/watchlist.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"devtools_port": 9090,
3+
"startup_app": {
4+
"name": "GiantMachinesWatchlist",
5+
"url": "http://watchlist.giantmachines.com",
6+
"uuid": "GiantMachinesWatchlist",
7+
"applicationIcon": "http://watchlist.giantmachines.com/watchlist-icon.png",
8+
"autoShow": true,
9+
"frame": false,
10+
"defaultHeight": 600,
11+
"defaultWidth": 450,
12+
"defaultTop": 50,
13+
"defaultLeft": 50,
14+
"resizable": false,
15+
"maximizable": false
16+
},
17+
"runtime": {
18+
"arguments": "--v=1",
19+
"version": "9.61.38.40",
20+
"forceLatest": true
21+
},
22+
"services": [{
23+
"manifestUrl": "https://cdn.openfin.co/services/openfin/layouts/1.0.0/app.json",
24+
"name": "layouts",
25+
"config": {
26+
"features": {
27+
"tab": false,
28+
"dock": true
29+
}
30+
}
31+
}],
32+
"splashScreenImage": "http://watchlist.giantmachines.com/watchlist-splash.png"
33+
}

0 commit comments

Comments
 (0)