3bc05d88df
* if both local and remote instance have external XMPP connections enabled, the user joins the remote room with his local account * some code refactoring (builtin.ts) Note: documentation and settings descriptions are to do. Related to #112
38 lines
2.0 KiB
HTML
38 lines
2.0 KiB
HTML
<!DOCTYPE html>
|
|
<html class="no-js">
|
|
<head>
|
|
<title>Peertube LiveChat Plugin</title>
|
|
<meta charset="utf-8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
<meta name="description" content="Peertube LiveChat Plugin"/>
|
|
<link type="text/css" rel="stylesheet" media="screen" href="{{BASE_STATIC_URL}}conversejs/converse.min.css" />
|
|
<script type="text/javaScript" src="{{BASE_STATIC_URL}}conversejs/converse.min.js"></script>
|
|
<script type="text/javascript" src="{{BASE_STATIC_URL}}static/builtin.js"></script>
|
|
{{CONVERSEJS_AUTOCOLORS}}
|
|
</head>
|
|
<body class="converse-fullscreen theme-peertube">
|
|
<noscript>You need to enable JavaScript to run the Converse.js chat app.</noscript>
|
|
<div id="conversejs-bg" class="theme-peertube"></div>
|
|
<script type="text/javascript">
|
|
initConverse({
|
|
isRemoteChat: '{{IS_REMOTE_CHAT}}' === 'true',
|
|
localAnonymousJID: '{{LOCAL_ANONYMOUS_JID}}',
|
|
remoteAnonymousJID: '{{REMOTE_ANONYMOUS_JID}}' === '' ? null : '{{REMOTE_ANONYMOUS_JID}}',
|
|
remoteAnonymousXMPPServer: '{{REMOTE_ANONYMOUS_XMPP_SERVER}}' === 'true',
|
|
remoteAuthenticatedXMPPServer: '{{REMOTE_AUTHENTICATED_XMPP_SERVER}}' === 'true',
|
|
assetsPath : '{{BASE_STATIC_URL}}conversejs/',
|
|
room: '{{ROOM}}',
|
|
localBoshServiceUrl: '{{LOCAL_BOSH_SERVICE_URL}}' === '' ? null : '{{LOCAL_BOSH_SERVICE_URL}}',
|
|
localWebsocketServiceUrl: '{{LOCAL_WS_SERVICE_URL}}' === '' ? null : '{{LOCAL_WS_SERVICE_URL}}',
|
|
remoteBoshServiceUrl: '{{REMOTE_BOSH_SERVICE_URL}}' === '' ? null : '{{REMOTE_BOSH_SERVICE_URL}}',
|
|
remoteWebsocketServiceUrl: '{{REMOTE_WS_SERVICE_URL}}' === '' ? null : '{{REMOTE_WS_SERVICE_URL}}',
|
|
authenticationUrl: '{{AUTHENTICATION_URL}}',
|
|
autoViewerMode: '{{AUTOVIEWERMODE}}' === 'true',
|
|
theme: '{{CONVERSEJS_THEME}}',
|
|
forceReadonly: '{{FORCEREADONLY}}' === 'noscroll' ? '{{FORCEREADONLY}}' : '{{FORCEREADONLY}}' === 'true',
|
|
transparent: '{{TRANSPARENT}}' === 'true'
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|