forked from Marus/cortex-debug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrapher.html
40 lines (38 loc) · 1.44 KB
/
grapher.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!--
Use a content security policy to only allow loading images from https or from our extension directory,
and only allow scripts that have a specific nonce.
-->
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src vscode-resource: https:; style-src 'nonce-${nonce}'; script-src 'nonce-${nonce}';">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Cortex-Debug Grapher</title>
<style nonce="${nonce}">
body {
background-color: var(--vscode-editor-background);
}
h1 {
color: var(--vscode-editor-foreground);
font-family: Arial, Helvetica, sans-serif;
}
.legend-entry rect {
stroke: var(--vscode-editor-foreground);
}
.legend-entry text {
fill: var(--vscode-editor-foreground);
stroke: none;
font-weight: bold
}
rect.highlight-area {
fill: var(--vscode-editor-selectionBackground);
}
</style>
</head>
<body>
<h1>Cortex-Debug SWO/RTT Grapher</h1>
<div class="graph-container"></div>
<script nonce="${nonce}" src="${scriptUri}"></script>
</body>
</html>