Commit cf66e829 authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

Customize for Nexedi

 * set the following options
   - auto_list_rooms: true
   - time_format: 'HH:mm:ss'
   - notification_delay: 0 # message notifications stay forever
   - default_domain : 'nexedi.com'
 * enable mobile mode based on user agent
 * "Converse for Nexedi" on login page
parent 7553bb37
......@@ -11,9 +11,9 @@
<script type="text/javascript" src="inverse-analytics.js"></script>
<noscript><p><img src="//stats.opkode.com/piwik.php?idsite=5" style="border:0;" alt="" /></p></noscript>
<link rel="manifest" href="./manifest.json">
<link type="text/css" rel="stylesheet" media="screen" href="https://cdn.conversejs.org/6.0.0/dist/converse.min.css" />
<link type="text/css" rel="stylesheet" media="screen" href="dist/converse.min.css" />
<script src="https://cdn.conversejs.org/3rdparty/libsignal-protocol.min.js"></script>
<script src="https://cdn.conversejs.org/6.0.0/dist/converse.min.js"></script>
<script src="dist/converse.min.js"></script>
</head>
<body class="converse-fullscreen">
<noscript>You need to enable JavaScript to run the Converse.js chat app.</noscript>
......@@ -50,10 +50,16 @@
converse.initialize({
authentication: 'login',
auto_away: 300,
auto_list_rooms: true,
auto_reconnect: true,
auto_subscribe: true,
bosh_service_url: 'https://mail.nexedi.net/chat/http-bind/',
default_domain: 'nexedi.com',
hide_open_bookmarks: true,
message_archiving: 'always',
view_mode: 'fullscreen'
notification_delay: 0,
time_format: 'HH:mm:ss',
view_mode: /Android|webOS|iPhone|iPad|iPod|Opera Mini/i.test(navigator.userAgent) ? 'mobile' : 'fullscreen'
});
</script>
</body>
......
......@@ -27,7 +27,7 @@ export const ConverseBrandHeading = (o) => {
</g>
</svg>
<span class="brand-name">
<span class="brand-name__text">converse<span class="subdued">.js</span></span>
<span class="brand-name__text">converse<span class="subdued">.js</span> for Nexedi</span>
${ is_fullscreen ? html`<p class="byline">messaging freedom</p>` : '' }
</span>
</span>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment