summary refs log tree commit diff
path: root/assets/client_test/developers.html
blob: 59b3b122be0d2e56b025c2608d5acd8e2c0c8655 (plain) (blame)
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
<!DOCTYPE html>
<html class="theme-dark" data-theme="dark">

<head>
	<meta charset="utf-8" />
	<meta content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no" name="viewport" />

	<link rel="stylesheet" href="/assets/532.5ee4b893e126424a925a.css" integrity="" />
	<link rel="icon" href="/assets/847541504914fd33810e70a0ea73177e.ico" />
	<title>Fosscord Test Client Developer Portal</title>
	<meta charset="utf-8" data-react-helmet="true" />
</head>

<body>
	<div id="app-mount"></div>
	<script>
		window.GLOBAL_ENV = {
			API_VERSION: 9,
			API_ENDPOINT: "/api",
			WEBAPP_ENDPOINT: "",
			CDN_HOST: `${location.host}`, // TODO: make this file auto populate from config?

			BRAINTREE_KEY: "production_5st77rrc_49pp2rp4phym7387",
			STRIPE_KEY: "pk_live_CUQtlpQUF0vufWpnpUmQvcdi",
			MARKETING_ENDPOINT: "//discord.com",
			RELEASE_CHANNEL: "canary",
			ALGOLIA_KEY: "aca0d7082e4e63af5ba5917d5e96bed0"
		};
		GLOBAL_ENV.MEDIA_PROXY_ENDPOINT = location.protocol + "//" + GLOBAL_ENV.CDN_HOST;
		// TODO: remote auth
		// window.GLOBAL_ENV.REMOTE_AUTH_ENDPOINT = window.GLOBAL_ENV.GATEWAY_ENDPOINT.replace(/wss?:/, "");
		localStorage.setItem("gatewayURL", window.GLOBAL_ENV.GATEWAY_ENDPOINT);
		localStorage.setItem(
			"DeveloperOptionsStore",
			`{"trace":false,"canary":true,"logGatewayEvents":true,"logOverlayEvents":true,"logAnalyticsEvents":true,"sourceMapsEnabled":false,"axeEnabled":false}`
		);
	</script>
	<script src="/assets/1cebe9b2b9ed8283ce52.js" integrity=""></script>
	<script src="/assets/b48be57bceaf40c221ac.js" integrity=""></script>
	<script src="/assets/b6e25718b296713dc29d.js" integrity=""></script>
</body>

</html>