|
2 | 2 | <!DOCTYPE html> |
3 | 3 | <html lang="en"> |
4 | 4 | <head> |
5 | | - <meta charset="UTF-8"> |
| 5 | + <meta charset="utf-8"> |
6 | 6 | <title>ROOT7 web panel</title> |
7 | | - <script type="text/javascript" src="jsrootsys/scripts/JSRoot.core.js"></script> |
8 | 7 | </head> |
9 | 8 |
|
10 | 9 | <style> |
|
22 | 21 |
|
23 | 22 | <body> |
24 | 23 | <div id="PanelDiv"> |
25 | | - loading scripts... |
26 | 24 | </div> |
27 | 25 | </body> |
28 | 26 |
|
29 | | - <script type='text/javascript'> |
| 27 | + <script type='module'> |
30 | 28 |
|
31 | | - JSROOT.connectWebWindow({ |
32 | | - prereq_logdiv: "PanelDiv", |
33 | | - // openui5src: "jsroot", |
34 | | - // openui5src: "https://openui5.hana.ondemand.com/1.98.0/", |
35 | | - // openui5libs: "sap.ui.core, sap.ui.layout, sap.m", |
| 29 | + import { connectWebWindow } from '/jsrootsys/modules/webwindow.mjs'; |
| 30 | + import { source_dir } from '/jsrootsys/modules/core.mjs'; |
| 31 | + |
| 32 | + connectWebWindow({ |
36 | 33 | first_recv: "SHOWPANEL:", |
37 | | - prereq2: "openui5" // components which can be loaded during connection establishing |
| 34 | + ui5: true // components which can be loaded during connection establishing |
38 | 35 | }).then(handle => { |
39 | 36 |
|
40 | 37 | if (!handle || !sap) return false; |
|
46 | 43 | let p = viewName.indexOf("."); |
47 | 44 | if ((p > 1) && (p < viewName.length - 1)) { |
48 | 45 | let tgtpath = "/currentdir/"; |
49 | | - let pp = JSROOT.source_dir.indexOf("/jsrootsys/"); |
50 | | - if (pp > 0) tgtpath = JSROOT.source_dir.slice(0,pp) + "/currentdir/"; |
| 46 | + let pp = source_dir.indexOf("/jsrootsys/"); |
| 47 | + if (pp > 0) tgtpath = source_dir.slice(0, pp) + tgtpath; |
51 | 48 | let _paths = {}; |
52 | 49 | _paths[viewName.slice(0,p)] = tgtpath; |
53 | 50 | console.log('Register module path', viewName.slice(0,p), ' as ', tgtpath); |
|
0 commit comments