-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex_worker.html
More file actions
51 lines (47 loc) · 2.52 KB
/
Copy pathindex_worker.html
File metadata and controls
51 lines (47 loc) · 2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>reactive fetch with worker</title>
<script type="importmap">
{
"imports": {
"oauth4webapi": "https://cdn.jsdelivr.net/npm/oauth4webapi@3.8.6/+esm"
}
}
</script>
<script type="module">
import { AuthorizationCodeFlowUI, ReactiveFetchWorkerManager } from "./dist/mod.js"
/* Page functionality: Buttons */
document.addEventListener("DOMContentLoaded", () =>
document.querySelectorAll("button.fetch").forEach(button =>
button.addEventListener("click", async e =>
await fetch(e.target.value))))
/* Page functionality: Onload */
document.addEventListener("DOMContentLoaded", async () => {
await fetch("https://echo.free.beeceptor.com/")
// await fetch("https://langsamu.solidcommunity.net/settings/")
await fetch("https://storage.inrupt.com/d5e2efbd-1dd6-4c45-b6a3-e61a05bb9d49/")
await fetch("https://langsamu.datapod.igrant.io/settings/")
await fetch("https://langsamu.solidweb.app/settings/")
await fetch("https://teamid.live/langsamu/settings/")
await fetch("https://langsamu.solidweb.org/settings/")
// await fetch("http://localhost:3000/a/profile/")
})
/* Reactive fetch infrastructure */
const ui = new AuthorizationCodeFlowUI
await new ReactiveFetchWorkerManager(ui.onCodeRequired.bind(ui)).register()
</script>
</head>
<body>
<button value="https://echo.free.beeceptor.com/">echo</button>
<button value="https://langsamu.solidcommunity.net/settings/">solidcommunity.net (CSS)</button>
<button value="https://storage.inrupt.com/d5e2efbd-1dd6-4c45-b6a3-e61a05bb9d49/">PodSpaces (ESS)</button>
<button value="https://langsamu.datapod.igrant.io/settings/">datapod.igrant.io (NSS 5.7.4)</button>
<button value="https://langsamu.solidweb.app/settings/">solidweb.app (JSS)</button>
<button value="https://teamid.live/langsamu/settings/">teamid.live (CSS)</button>
<button value="https://langsamu.solidweb.org/settings/">solidweb.org (NSS 6.0.0)</button>
<button value="http://localhost:3000/a/profile/">localhost (CSS)</button>
</body>
</html>