forked from laurmurclar/datadog-to-terraform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
popup.html
61 lines (58 loc) · 1.45 KB
/
popup.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
<html>
<head>
<title>Datadog-to-terraform Popup</title>
</head>
<body>
<style>
.content {
margin: 8px 16px;
width: 480px;
}
input, textarea {
width: 100%;
min-height: 30px;
border-radius: 4px;
border: 1px solid grey;
padding: 4px;
}
input, textarea {
margin-bottom: 16px;
}
textarea {
height: 150px;
}
button {
width: 100%;
padding: 10px;
background-color: #9011fe;
color: white;
font-size: 18px;
border: none;
border-radius: 5px;
}
#outputWrapper {
opacity: 0.5;
pointer-events: none;
}
#outputWrapper.active {
opacity: 1;
pointer-events: auto;
}
#statusMessage {
margin-top: 8px;
margin-bottom: 8px;
font-size: 12px;
}
</style>
<div class="content">
<div class="inputWrapper">
<input id="resourceName" placeholder="your_resource_name" />
<textarea id="datadogJson" placeholder="{ "name": "Some lovely monitor", "type": "metric alert", "query": ... }"></textarea>
<button id="convertButton">Convert & copy result</button>
<p id="statusMessage"></p>
</div>
<div id="outputWrapper">
</div>
<script type="module" src="popup.js"></script>
</body>
</html>