-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtyped-pid-maker-ui.html
72 lines (63 loc) · 3.02 KB
/
typed-pid-maker-ui.html
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Typed PID Maker UI</title>
<link rel="stylesheet" href="./css/semantic.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@kit-data-manager/[email protected]/deps/opt/fontawesome/css/all.min.css">
<script type="text/javascript" src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="./js/apply-config.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@kit-data-manager/webcomponent_typed-pid-maker_pid-list@latest/dist/typid-known-pids-table.umd.js"></script>
</head>
<body class="ui">
<h1 class="ui block header">
<img id="app-logo" src="./images/typed-pid-maker-logo.svg" class="ui image">
<div id="app-title" class="content">
{app-title}
<div id="app-subtitle" class="sub header">{app-subtitle}</div>
</div>
<div id="login_button" class="ui animated right floated button" tabindex="0">
<div id="login_button_text" class="visible content">Login</div>
<div class="hidden content">
<i id="login_icon" class="sign-in icon"></i>
</div>
</div>
</h1>
<div class="ui container">
<div id="service-url-input" class="sixteen wide column">
<div class="two wide column">
<div class="ui label">
Typed PID Maker URL
</div>
</div>
<div class="fourteen wide column">
<div class="ui fluid icon input">
<input id="endpoint" type="text" placeholder="http://localhost:8090/" value="http://localhost:8090/">
<button class="ui vertical animated button" tabindex="0" onclick="setUrl()">
<div class="hidden content">Reload</div>
<div class="visible content">
<i class="fa-solid fa-arrows-rotate"></i>
</div>
</button>
<script>
function setUrl() {
let url = document.getElementById("endpoint").value;
document.getElementById("known-pids").setAttribute("base-url", url);
}
</script>
</div>
</div>
</div>
<p class="text-grey" style="margin-left: 1em; font-size: 0.7em;">
Use this field to connect to an instance of the Typed PID Maker.
</p>
<typid-known-pids-table id="known-pids" base-url="http://localhost:8090/">
<script type="module">
import { ajaxBaseUrl, keycloak, tags, showServiceUrl, appDescription } from './js/typed-pid-maker.settings.js';
applyConfig(ajaxBaseUrl, keycloak, tags, showServiceUrl, appDescription)
</script>
</div>
</body>
</html>