-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.ejs
50 lines (44 loc) · 2.05 KB
/
index.ejs
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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- only for Google Cloud Storage, will break local -->
<head>
<title>sentry-micro-frontend Sandbox</title>
<link rel="stylesheet" href="common.css">
</head>
<body>
<h1 class="demo_name">Sentry MFE</h1>
<a target="_blank" href="https://github.com/realkosty/sentry-micro-frontend">(github)</a>
<span id="topbar">
<label for="sandbox-select">Sandbox: </label>
<select name="sandbox-select" id="sandbox-select">
<option value="sandbox-basic">basic</option>
</select>
<label for="method">method: </label>
<select name="method" id="method">
<option value="simple-lib">simple-lib.js</option>
<option value="simple-remote">simple-remote.js</option>
<option value="flex-micro">flex-micro.js (experimental)</option>
<option value="naive" disabled>naive.js (broken, for demonstration)</option>
</select>
<label for="ssv">SDK: </label>
<select name="ssv" id="sentry_sdk_version">
<option value="7.37.1/bundle.tracing.min.js">7.37.1/bundle.tracing.min.js (CDN)</option>
<option value="7.29.0/bundle.tracing.js">7.29.0/bundle.tracing.js (CDN)</option>
<option value="7.11.1/bundle.tracing.js">7.11.1/bundle.tracing.js (CDN)</option>
<option value="7.11.1/bundle.tracing.min.js">7.11.1/bundle.tracing.min.js (CDN)</option>
<option value="6.19.6/bundle.tracing.js">6.19.6/bundle.tracing.js (CDN)</option>
<option value="5.5.0/bundle.js">5.5.0/bundle.js (CDN)</option>
</select>
</span>
<iframe id="sandbox" width="100%" height="100%" src=""></iframe>
<script type="module" src="./common.js"></script>
<script type="module">
import * as Com from './common.js';
Com.sticky_select_init("sandbox-select", "sandbox-basic");
let sandbox = Com.sticky_select_get("sandbox-select");
let iframe = document.querySelector(`#sandbox`);
iframe.src = sandbox + "/";
Com.sticky_select_init("method", "simple-lib");
Com.sticky_select_init("sentry_sdk_version", "7.37.1/bundle.tracing.min.js");
</script>
</body>