@coasys/ad4m-connect 0.12.0 → 0.12.1-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/icons/index.d.ts +3 -0
- package/dist/components/views/ConnectionOptions.d.ts +2 -7
- package/dist/components/views/RemoteAuthentication.d.ts +4 -0
- package/dist/core.d.ts +13 -1
- package/dist/core.js +299 -262
- package/dist/index.js +1172 -399
- package/dist/types.d.ts +25 -0
- package/dist/utils.d.ts +4 -0
- package/dist/utils.js +1 -1
- package/dist/web.d.ts +18 -2
- package/dist/web.js +1147 -374
- package/package.json +2 -2
- package/public/dialog.html +0 -49
package/package.json
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"email": "nicolas@coasys.org"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@coasys/ad4m": "workspace:0.12.
|
|
51
|
+
"@coasys/ad4m": "workspace:0.12.1-dev",
|
|
52
52
|
"@apollo/client": "3.7.10",
|
|
53
53
|
"@types/node": "^16.11.11",
|
|
54
54
|
"esbuild": "^0.15.5",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"@coasys/ad4m": "*"
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
|
-
"version": "0.12.
|
|
75
|
+
"version": "0.12.1-dev"
|
|
76
76
|
}
|
package/public/dialog.html
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
|
6
|
-
<title>AD4M Connection Wizard</title>
|
|
7
|
-
<link rel="icon" type="image/png" href="favicon.png" />
|
|
8
|
-
</head>
|
|
9
|
-
|
|
10
|
-
<body>
|
|
11
|
-
<div id="container"></div>
|
|
12
|
-
<script type="module">
|
|
13
|
-
const { ipcRenderer } = require("electron");
|
|
14
|
-
|
|
15
|
-
import { getForVersion } from "../src/utils";
|
|
16
|
-
import Ad4mConnectUI from "../dist/web.js";
|
|
17
|
-
|
|
18
|
-
const {
|
|
19
|
-
appName,
|
|
20
|
-
appDesc = "",
|
|
21
|
-
appDomain = "",
|
|
22
|
-
appIconPath,
|
|
23
|
-
executorUrl,
|
|
24
|
-
capabilityToken,
|
|
25
|
-
capabilities,
|
|
26
|
-
} = ipcRenderer.sendSync("get");
|
|
27
|
-
|
|
28
|
-
const ui = Ad4mConnectUI({
|
|
29
|
-
appName,
|
|
30
|
-
appDesc,
|
|
31
|
-
appDomain,
|
|
32
|
-
appIconPath,
|
|
33
|
-
capabilities,
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
ui.connect();
|
|
37
|
-
|
|
38
|
-
ui.addEventListener("authstatechange", (e) => {
|
|
39
|
-
if (ui.authState === "authenticated") {
|
|
40
|
-
console.log(ui.token);
|
|
41
|
-
ipcRenderer.send("resolve", {
|
|
42
|
-
executorUrl,
|
|
43
|
-
capabilityToken: ui.token || getForVersion("ad4mtoken"),
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
</script>
|
|
48
|
-
</body>
|
|
49
|
-
</html>
|