-
Notifications
You must be signed in to change notification settings - Fork 62
/
index.html
93 lines (90 loc) · 3.02 KB
/
index.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE html>
<html lang="EN_US">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>NebulaGraph Studio</title>
<script async defer src="https://buttons.github.io/buttons.js"></script>
<!-- Global Event Tracking -->
<script>var global = typeof global !== 'undefined' ? global : window;</script>
<script>
<% if (initProps.NODE_ENV === 'development') { %>
window.gConfig = { appInstance: <%- JSON.stringify(initProps.appInstance) %>, databaseName: "NebulaGraph" }
<% } else { %>
window.gConfig = { appInstance: "{{.appInstance}}", databaseName: "NebulaGraph" }
<% } %>
</script>
<style>
@-webkit-keyframes square-spin {
25% {
-webkit-transform: perspective(100px) rotateX(180deg) rotateY(0);
transform: perspective(100px) rotateX(180deg) rotateY(0);
}
50% {
-webkit-transform: perspective(100px) rotateX(180deg) rotateY(180deg);
transform: perspective(100px) rotateX(180deg) rotateY(180deg);
}
75% {
-webkit-transform: perspective(100px) rotateX(0) rotateY(180deg);
transform: perspective(100px) rotateX(0) rotateY(180deg);
}
100% {
-webkit-transform: perspective(100px) rotateX(0) rotateY(0);
transform: perspective(100px) rotateX(0) rotateY(0);
}
}
@keyframes square-spin {
25% {
-webkit-transform: perspective(100px) rotateX(180deg) rotateY(0);
transform: perspective(100px) rotateX(180deg) rotateY(0);
}
50% {
-webkit-transform: perspective(100px) rotateX(180deg) rotateY(180deg);
transform: perspective(100px) rotateX(180deg) rotateY(180deg);
}
75% {
-webkit-transform: perspective(100px) rotateX(0) rotateY(180deg);
transform: perspective(100px) rotateX(0) rotateY(180deg);
}
100% {
-webkit-transform: perspective(100px) rotateX(0) rotateY(0);
transform: perspective(100px) rotateX(0) rotateY(0);
}
}
.square-spin>div {
-webkit-animation: square-spin 3s 0s cubic-bezier(0.09, 0.57, 0.49, 0.9) infinite;
animation: square-spin 3s 0s cubic-bezier(0.09, 0.57, 0.49, 0.9) infinite;
-webkit-animation-fill-mode: both;
animation-fill-mode: both;
width: 50px;
height: 50px;
background: #06f;
}
.square-spin {
display: flex;
justify-content: center;
position: relative;
top: 200px;
}
</style>
<link rel="icon" href="/favicon.ico">
</head>
<body style='background: #f8f8f8;'>
<!--SVGElement-->
<div id="studioApp" style="height: 100%;">
<div class="square-spin">
<div></div>
</div>
</div>
<script type="module" src="./app/index.tsx"></script>
<script type="module">
import editorWorker from 'monaco-editor/esm/vs/editor/editor.worker?worker';
self.MonacoEnvironment = {
getWorker(_, _label) {
return new editorWorker();
},
};
</script>
</body>
</html>