36 lines
1.3 KiB
HTML
36 lines
1.3 KiB
HTML
|
{{define "index"}}
|
||
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<link rel="icon" href="/favicon.ico">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<link rel="stylesheet" type="text/css" href="/static/css/bulma.min.css">
|
||
|
<link rel="stylesheet" type="text/css" href="/static/css/bulma-prefers-dark.css?{{.CacheHash}}">
|
||
|
<link rel="stylesheet" href="/static/fontawesome-free-6.1.2-web/css/all.css">
|
||
|
<link rel="stylesheet" type="text/css" href="/static/css/chat.css?{{.CacheHash}}">
|
||
|
<title>{{.Config.Title}}</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="app"></div>
|
||
|
|
||
|
<!-- BareRTC constants injected by IndexPage route -->
|
||
|
<script type="text/javascript">
|
||
|
const Branding = {{.Config.Branding}};
|
||
|
const PublicChannels = {{.Config.GetChannels}};
|
||
|
const WebsiteURL = "{{.Config.WebsiteURL}}";
|
||
|
const PermitNSFW = {{AsJS .Config.PermitNSFW}};
|
||
|
const TURN = {{.Config.TURN}};
|
||
|
const WebhookURLs = {{.Config.WebhookURLs}};
|
||
|
const VIP = {{.Config.VIP}};
|
||
|
const UserJWTToken = {{.JWTTokenString}};
|
||
|
const UserJWTValid = {{if .JWTAuthOK}}true{{else}}false{{end}};
|
||
|
const UserJWTClaims = {{.JWTClaims.ToJSON}};
|
||
|
const CachedBlocklist = {{.CachedBlocklist}};
|
||
|
</script>
|
||
|
|
||
|
<script type="module" src="/src/main.js"></script>
|
||
|
</body>
|
||
|
</html>
|
||
|
{{end}}
|