-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
125 lines (121 loc) · 2.79 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<% if (process.env.NODE_ENV === 'production') { %>
<meta
name="robots"
content="follow, index"
/>
<% } %>
<meta
name="viewport"
content="width=device-width, initial-scale=1"
/>
<meta
name="theme-color"
content="#222222"
/>
<meta
name="author"
content="=nil; Foundation"
/>
<meta
name="copyright"
content="=nil; Foundation"
/>
<meta
name="description"
content="Proof market"
/>
<meta
name="keywords"
content="=nil; Foundation, Solana, Mina, Ethereum, Market, Exchange"
/>
<meta
property="og:title"
content="=nil; Foundation"
/>
<meta
property="og:description"
content="Proof Market"
/>
<meta
property="og:image"
content="/logo192.png"
/>
<link
rel="icon"
href="/favicon.ico"
sizes="any"
/>
<link
rel="icon"
href="/icon.svg"
type="image/svg+xml"
/>
<link
rel="apple-touch-icon"
href="/apple-touch-icon.png"
/>
<link
rel="manifest"
href="/manifest.json"
/>
<title>=nil; Foundation - Proof Market</title>
<link
rel="stylesheet"
href="/critical.css"
/>
<!-- Preconnect to required origins -->
<link
rel="preconnect"
href="https://www.google-analytics.com"
/>
<link
rel="preconnect"
href="https://www.googletagmanager.com"
/>
<link
rel="preconnect"
href="https://fonts.googleapis.com"
/>
<link
rel="preconnect"
href="https://fonts.gstatic.com"
/>
<script
type="text/javascript"
src="/tomlParser.js"
></script>
<script type="text/javascript">
function loadConfig() {
var configPath;
// ejs syntax
if (<%= process.env.NODE_ENV === 'production' %>) {
configPath = './runtime-config.toml';
} else {
configPath = './runtime-config.dev.toml';
}
var rawFile = new XMLHttpRequest();
rawFile.open("GET", configPath, false);
rawFile.onreadystatechange = function () {
if(rawFile.readyState === 4) {
if(rawFile.status === 200 || rawFile.status == 0) {
var rawConfig = rawFile.responseText;
config = tomlParser.parse(rawConfig);
window['RUNTIME_CONFIG'] = config;
}
}
}
rawFile.send(null);
}
loadConfig();
</script>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!-- This html file is a template for MPA plugin. You need to inject script with entrypoint during build -->
</body>
</html>