瀏覽代碼

Get rid of the `mobile` view mode.

The goal is rather that all modes are responsive.
Instead of the `mobile` view mode, use `fullscreen`.

Fixes #1057
JC Brand 10 月之前
父節點
當前提交
3a754a00e4

+ 1 - 0
CHANGES.md

@@ -2,6 +2,7 @@
 
 ## 11.0.0 (Unreleased)
 
+- #1057: Removed the `mobile` view mode. Instead of setting `view_mode` to `mobile`, set it to `fullscreen`.
 - #1174: Show MUC avatars in the rooms list
 - #1195: Add actions to quote and copy messages
 - #1349: XEP-0392 Consistent Color Generation

+ 1 - 48
docs/source/configuration.rst

@@ -2287,60 +2287,13 @@ view_mode
 ---------
 
 * Default: ``overlayed``
-* Allowed values: ``overlayed``, ``fullscreen``, ``mobile``, ``embedded``
+* Allowed values: ``overlayed``, ``fullscreen``, ``embedded``
 
 The ``view_mode`` setting configures Converse's mode and resulting behavior.
 
 * ``overlayed`` is the original mode, in which the chats appeared as small boxes overlaying a webpage which can contain arbitrary content.
 * ``fullscreen`` is for a fullpage and single-page app.
 * ``embedded`` is used to embed Converse into a particular part of the web page. Put the custom element ``<converse-root></converse-root>`` into your page HTML there were you want Converse to appear. See `conversejs.org/demo/embedded.html <https://conversejs.org/demo/embedded.html>`_ for an example of this view mode.
-* ``mobile`` is for smaller viewports. Converse is responsive, and the other views will also resize to fit a smaller viewport, but certain behavioural changes won't be made. For example, when using ``overlayed`` in a mobile view, Converse won't know which chat is currently visible and therefore won't be able to properly show notifications for chats that are obscured.
-
-.. note::
-
-    Before the introduction of this setting (in version 3.3.0), there were there
-    different builds, each for the different modes.
-
-    These were:
-
-    * ``converse-mobile.js`` for the ``mobile`` mode
-    * ``converse-muc-embedded.js`` for embedding a single MUC room into a DOM element with id ``conversejs``
-    * ``converse.js`` for the ``overlayed`` mode
-    * ``inverse.js`` for the ``fullscreen`` mode
-
-    Besides having different builds, certain plugins had to be whitelisted
-    and blacklisted for the different modes.
-
-    ``converse-singleton`` had to be whitelisted for the ``mobile`` and ``fullscreen``
-    modes, additionally ``converse-inverse`` had to be whitelisted for the
-    ``fullscreen`` mode.
-
-    For both those modes the ``converse-minimize`` and ``converse-dragresize``
-    plugins had to be blacklisted.
-
-    When using ``converse-muc-embedded.js`` various plugins also had to manually be
-    blacklisted.
-
-    Since version 3.3.0 it's no longer necessary to blacklist any plugins (except
-    for ``converse-muc-embedded.js``, which is from version 3.3.3).
-
-    Blacklisting now happens automatically.
-
-    Since version 3.3.0, the ``inverse.js`` and ``converse-mobile.js`` builds no
-    longer exist. Instead the standard ``converse.js`` build is used, together with
-    the appropriate ``view_mode`` value.
-
-    Since version 4.0.0, there is now also only one CSS file to be used for all
-    the different view modes, ``converse.css``.
-
-    The ``converse-muc-embedded.js`` build can still be built, because it's smaller
-    than ``converse.js`` due to unused code being removed. It doesn't however contain
-    any new code, so the full ``converse.js`` build could be used instead, as long
-    as ``view_mode`` is set to ``embedded``.
-
-    Furthermore, it's no longer necessary to whitelist or blacklist any plugins
-    when switching view modes.
-
 
 .. _`whitelisted_plugins`:
 

+ 0 - 384
mobile.html

@@ -1,384 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-    <title>Converse.js | Mobile</title>
-    <meta charset="utf-8">
-    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
-    <meta http-equiv="X-UA-Compatible" content="IE=edge">
-    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
-    <meta name="description" content="Converse: An XMPP chat client which can be integrated into any website" />
-    <meta name="author" content="JC Brand" />
-    <meta name="keywords" content="xmpp chat webchat converse.js Converse" />
-
-    <!-- These files are NOT needed when using converse.js in your own project. -->
-    <link rel="shortcut icon" type="image/ico" href="images/favicon.ico"/>
-    <link type="text/css" rel="stylesheet" media="screen" href="/dist/website.min.css" />
-    <link rel="manifest" href="./manifest.json">
-    <noscript><p><img src="//stats.opkode.com/piwik.php?idsite=1" style="border:0;" alt="" /></p></noscript>
-    <script type="text/javascript" src="/src/website.js"></script>
-    <script type="text/javascript" src="analytics.js"></script>
-    <!-- *********************************************************************** -->
-
-    <link type="text/css" rel="stylesheet" media="screen" href="https://cdn.conversejs.org/10.1.5/dist/converse.min.css" />
-    <script src="https://cdn.conversejs.org/3rdparty/libsignal-protocol.min.js"></script>
-    <script src="https://cdn.conversejs.org/10.1.5/dist/converse.min.js"></script>
-</head>
-
-<body id="page-top" data-spy="scroll" class="converse-website">
-
-<section class="section-wrapper">
-	<nav class="navbar sticky-top navbar-expand-lg" role="navigation">
-		<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo01" aria-controls="navbarTogglerDemo01" aria-expanded="false" aria-label="Toggle navigation">
-			<span class="navbar-toggler-icon"></span>
-		</button>
-		<div class="collapse navbar-collapse" id="navbarTogglerDemo01">
-			<span class="page-scroll">
-				<a class="navbar-brand" href="#intro"><span class="converse-brand-heading">Converse</span></a>
-			</span>
-			<ul class="navbar-nav mt-2 mt-lg-0">
-				<!-- Hidden li included to remove active class from about link when scrolled up past about section -->
-				<li class="hidden">
-					<a class="nav-link" href="#page-top"></a>
-				</li>
-				<li class="nav-item page-scroll">
-					<a class="nav-link" href="#about">About</a>
-				</li>
-				<li class="nav-item page-scroll">
-					<a class="nav-link" href="#features">Features</a>
-				</li>
-				<li class="nav-item page-scroll">
-					<a class="nav-link" href="#contact">Contact</a>
-				</li>
-				<li class="nav-item page-scroll">
-					<a class="nav-link" href="#sponsors">Sponsor</a>
-				</li>
-				<li class="nav-item page-scroll">
-					<a class="nav-link" href="#hosting">Hosting</a>
-				</li>
-				<li class="nav-item">
-					<a class="nav-link" href="/docs/html/index.html">Documentation&nbsp;<i class="fa fa-external-link-alt"></i></a>
-				</li>
-				<li class="nav-item">
-					<a class="nav-link" href="https://github.com/conversejs/converse.js/releases" class="button" target="_blank" rel="noopener">Download&nbsp;<i class="fa fa-external-link-alt"></i></a>
-				</li>
-			</ul>
-		</div>
-	</nav>
-
-    <section id="intro" class="intro" class="container">
-        <div class="row">
-            <div class="col-md-12 col-md-offset-2">
-                <h1 class="brand-heading fade-in">
-                    <svg class="converse-svg-logo"
-                        xmlns:svg="http://www.w3.org/2000/svg"
-                        xmlns="http://www.w3.org/2000/svg"
-                        xmlns:xlink="http://www.w3.org/1999/xlink"
-                        viewBox="0 0 364 364">
-                    <title>Converse</title>
-                    <g class="cls-1" id="g904">
-                        <g data-name="Layer 2">
-                            <g data-name="Layer 7">
-                                <path
-                                    class="cls-3"
-                                    d="M221.46,103.71c0,18.83-29.36,18.83-29.12,0C192.1,84.88,221.46,84.88,221.46,103.71Z" />
-                                <path
-                                    class="cls-4"
-                                    d="M179.9,4.15A175.48,175.48,0,1,0,355.38,179.63,175.48,175.48,0,0,0,179.9,4.15Zm-40.79,264.5c-.23-17.82,27.58-17.82,27.58,0S138.88,286.48,139.11,268.65ZM218.6,168.24A79.65,79.65,0,0,1,205.15,174a12.76,12.76,0,0,0-6.29,4.65L167.54,222a1.36,1.36,0,0,1-2.46-.8v-35.8a2.58,2.58,0,0,0-3.06-2.53c-15.43,3-30.23,7.7-42.73,19.94-38.8,38-29.42,105.69,16.09,133.16a162.25,162.25,0,0,1-91.47-67.27C-3.86,182.26,34.5,47.25,138.37,25.66c46.89-9.75,118.25,5.16,123.73,62.83C265.15,120.64,246.56,152.89,218.6,168.24Z" />
-                            </g>
-                        </g>
-                    </g>
-                </svg>
-                <span class="brand-heading__text">
-                    <span>converse<span class="subdued">.js</span></span>
-                    <p class="byline">messaging freedom</p>
-                </span>
-                </h1>
-
-                <p class="intro-text">A free and open-source XMPP chat client in your browser</p>
-                <p class="intro-text">Try the <a href="/fullscreen.html">fullpage</a> version</p>
-                <p style="padding-top: 1.5em">
-                <a href="https://inverse.chat/#converse/room?jid=discuss@conference.conversejs.org"
-                   target="_blank" rel="noopener"><img src="https://inverse.chat/badge.svg?room=discuss@conference.conversejs.org"/></a>
-                </p>
-                <div class="page-scroll">
-                    <a href="#about" class="btn btn-default btn-lg"><span class="btn-text">Learn More</span></a>
-                </div>
-            </div>
-        </div>
-        <div class="row">
-            <div class="col-md-12 col-md-offset-2 banner-social-buttons">
-                <ul class="list-inline">
-                    <li class="list-inline-item"><a href="https://twitter.com/jcopkode" class="btn btn-circle btn-lg" title="Twitter" target="_blank" rel="noopener"><i class="fab fa-twitter"></i></a></li>
-                    <li class="list-inline-item"><a href="https://mastodon.xyz/@jcbrand" class="btn btn-lg" title="Mastodon" target="_blank" rel="noopener"><img class="mastodon" src="/logo/mastodon.svg"/></a></li>
-                    <li class="list-inline-item"><a href="https://github.com/jcbrand/converse.js" class="btn btn-circle btn-lg" title="GitHub" target="_blank" rel="noopener"><i class="fab fa-github"></i></a></li>
-                </ul>
-            </div>
-        </div>
-    </section>
-
-    <section id="about" class="container content-section text-center">
-        <div class="row">
-            <div class="col-lg-12 col-lg-offset-2">
-                <h2>What is Converse?</h2>
-                <p>Converse is a free and open-source XMPP chat client that runs in a web browser.</p>
-
-                <h2>Converse is easy to set up</h2>
-                <p>You can use it here, host it yourself, or <a href="/docs/html/index.html">integrate it into your own website</a>.
-                   It's possible to connect to any publically accessible <a href="https://xmpp.org" target="_blank" rel="noopener">XMPP/Jabber</a> server.
-                   Take a look at the <a href="/demo">demo page</a> for other examples of how Converse can be configured and used.</a>
-                </p>
-
-                <h3>Need an XMPP/Jabber account?</h3>
-                <p>No problem! With Converse you can register an account on any public XMPP server that allows in-band registration,
-				   including our own at <span style="color: #89B7CD">conversejs.org</span>.</p>
-
-                <h2>Converse is a community</h2>
-				<p>Over 130 people have contributed features, bugfixes and translations, and many more have integrated it into their own websites or applications.</p>
-				<p>Come and chat with us at <a href="https://inverse.chat/#converse/room?jid=discuss@conference.conversejs.org" class="xmpp JSnocheck" title="Converse chat room">discuss@conference.conversejs.org</a>.</p>
-            </div>
-        </div>
-    </section>
-
-    <section class="features-section content-section" id="features">
-        <div class="container">
-            <div class="row">
-                <div class="col-lg-6">
-                    <header>
-                        <h2>Integration</h2>
-                    </header>
-                    <ul class="integration">
-                        <!-- xmpp server -->
-                        <li><a href="https://www.igniterealtime.org/projects/openfire/plugins.jsp" target="_blank" rel="noopener">Openfire</a></li>
-                        <li><a href="https://modules.prosody.im/mod_conversejs.html" target="_blank" rel="noopener">Prosody</a></li>
-                        <!-- xmpp frameworks -->
-                        <li><a href="https://github.com/mikemarsian/conversejs-rails" target="_blank" rel="noopener">Ruby on Rails</a></li>
-                        <li><a href="https://pypi.python.org/pypi/django-conversejs" target="_blank" rel="noopener">Django (option 1)</a></li>
-                        <li><a href="https://github.com/fpytloun/django-xmpp" target="_blank" rel="noopener">Django (option 2)</a></li>
-                        <!-- xmpp as plugin -->
-                        <li><a href="https://github.com/jcbrand/patterns.converse" target="_blank" rel="noopener">Patternslib</a></li>
-                        <li><a href="https://github.com/devurandom/roundcube-converse.js-xmpp-plugin" target="_blank" rel="noopener">Roundcube</a></li>
-                        <li><a href="https://wordpress.org/plugins/conversejs/" target="_blank" rel="noopener">Wordpress</a></li>
-                        <li><a href="https://github.com/collective/collective.converse" target="_blank" rel="noopener">Plone</a></li>
-                        <li><a href="https://github.com/keensoft/alfresco-js-chat-share" target="_blank" rel="noopener">Alfresco</a></li>
-                        <li><a href="https://github.com/friendica/friendica-addons/tree/master/xmpp/converse" target="_blank" rel="noopener">Friendica</a></li>
-                        <li><a href="https://doc.tiki.org/xmpp" target="_blank" rel="noopener">Tiki Wiki CMS Groupware</a></li>
-                    </ul>
-                </div>
-                <div class="col-lg-6">
-                    <header>
-                        <h2>Features</h2>
-                    </header>
-                    <ul class="features">
-                        <li>Available as overlayed chat boxes or as a fullscreen application.
-                            See <a href="https://inverse.chat" target="_blank" rel="noopener">inverse.chat</a> for the fullscreen version.
-                        </li>
-                        <li>A <a href="https://conversejs.org/docs/html/plugin_development.html" target="_blank" rel="noopener">plugin architecture</a> based on <a href="https://conversejs.github.io/pluggable.js/" target="_blank" rel="noopener">pluggable.js</a></li>
-                        <li>Single-user and group chat</li>
-                        <li>Contacts and groups</li>
-                        <li>Multi-user chatrooms (<a href="https://xmpp.org/extensions/xep-0045.html" target="_blank" rel="noopener">XEP 45</a>)</li>
-                        <li>Chatroom bookmarks (<a href="https://xmpp.org/extensions/xep-0048.html" target="_blank" rel="noopener">XEP 48</a>)</li>
-                        <li>Direct invitations to chat rooms (<a href="https://xmpp.org/extensions/xep-0249.html" target="_blank" rel="noopener">XEP 249</a>)</li>
-                        <li>vCard support (<a href="https://xmpp.org/extensions/xep-0054.html" target="_blank" rel="noopener">XEP 54</a>)</li>
-                        <li>Service discovery (<a href="https://xmpp.org/extensions/xep-0030.html" target="_blank" rel="noopener">XEP 30</a>)</li>
-                        <li>In-band registration (<a href="https://xmpp.org/extensions/xep-0077.html" target="_blank" rel="noopener">XEP 77</a>)</li>
-                        <li>Roster item exchange (<a href="https://xmpp.org/extensions/xep-0144.html" target="_blank" rel="noopener">XEP 144</a>)</li>
-                        <li>Chat statuses (online, busy, away, offline)</li>
-                        <li>Custom status messages</li>
-                        <li>Typing and chat state notifications (<a href="https://xmpp.org/extensions/xep-0085.html" target="_blank" rel="noopener">XEP 85</a>)</li>
-                        <li>Desktop notifications</li>
-                        <li>File sharing / HTTP File Upload (<a href="https://xmpp.org/extensions/xep-0363.html" target="_blank" rel="noopener">XEP 363</a>)</li>
-                        <li>Messages appear in all connected chat clients / Message Carbons (<a href="https://xmpp.org/extensions/xep-0280.html" target="_blank" rel="noopener">XEP 280</a>)</li>
-                        <li>Third person "/me" messages (<a href="https://xmpp.org/extensions/xep-0245.html" target="_blank" rel="noopener">XEP 245</a>)</li>
-                        <li>XMPP Ping (<a href="https://xmpp.org/extensions/xep-0199.html" target="_blank" rel="noopener">XEP 199</a>)</li>
-                        <li>Server-side archiving of messages (<a href="https://xmpp.org/extensions/xep-0313.html" target="_blank" rel="noopener">XEP 313</a>)</li>
-                        <li>Hidden messages (aka Spoilers) (<a href="https://xmpp.org/extensions/xep-0382.html" target="_blank" rel="noopener">XEP 382</a>)</li>
-                        <li>Client state indication (<a href="https://xmpp.org/extensions/xep-0352.html" target="_blank" rel="noopener">XEP 352</a>)</li>
-                        <li>Last Message Correction (<a href="https://xmpp.org/extensions/xep-0308.html" target="_blank" rel="noopener">XEP 308</a>)</li>
-                        <li>OMEMO encrypted messaging (<a href="https://xmpp.org/extensions/xep-0384.html" target="_blank" rel="noopener">XEP 384</a>)</li>
-                        <li>Supports anonymous logins, see the <a href="https://conversejs.org/demo/anonymous.html" target="_blank" rel="noopener">anonymous login demo</a>.</li>
-                        <li>Translated into 29 languages</li>
-                    </ul>
-                </div>
-            </div>
-        </div>
-    </section>
-
-    <section class="outro content-section text-center" id="contact">
-        <div class="container">
-            <div class="row">
-                <div class="col-lg-12 col-lg-offset-2">
-                    <h2>Contact</h2>
-                    <ul class="contact">
-                        <li>Follow on <a href="https://twitter.com/jcopkode" target="_blank" rel="noopener">Twitter</a>
-                            or <a href="https://mastodon.xyz/@jcbrand" target="_blank" rel="noopener">Mastodon</a>
-                        <li>Chat via XMPP at <a href="xmpp:jc@opkode.com" class="xmpp JSnocheck" title="XMPP/Jabber">jc@opkode.com</a></li>
-                        <li>For technical support, you can ask on <a href="https://stackoverflow.com/questions/tagged/converse.js">Stack Overflow</a>
-                        <li>The Converse XMPP chatroom: <a href="xmpp:discuss@conference.conversejs.org?join" class="xmpp JSnocheck chatroom-name" title="Converse chat room">discuss@conference.conversejs.org</a></li>
-                        <li>Please file bugs and feature requests on <a target="_blank" rel="noopener" href="https://github.com/jcbrand/converse.js/issues">Github</a></li>
-                    </ul>
-                </div>
-
-                <div class="col-lg-12 col-lg-offset-2" style="margin-top: 4em; text-align: left">
-                    <h2 style="text-align: center">Professional support and custom development</h2>
-                    <p> We'll put you into contact with developers
-                        who can help you to integrate and customize Converse for your needs.
-                        <br/> <br/>
-                        You can use the following <a href="https://opkode.com/contact.html" target="_blank" rel="noopener">contact form</a>.
-                        <br/> <br/>
-                        Please don't use the contact form for free support, use the other channels mentioned above.<br/><br/>
-
-                    </p>
-                </div>
-            </div>
-        </div>
-    </section>
-
-    <section class="outro content-section text-center" id="sponsors">
-        <div class="container">
-            <div class="row">
-                <div class="col-lg-12 col-lg-offset-2" style="margin-top: 3em">
-                    <div class="sponsors">
-                        <h2>Converse is supported by:</h2>
-                        <ul >
-                            <li><a href="https://www.keycdn.com?utm_source=conversejs" target="_blank" rel="noopener"><img style="height: 3em" src="/logo/keycdn.svg" alt="KeyCDN"></a></li>
-                            <li><a href="https://weblate.org?utm_source=conversejs" target="_blank" rel="noopener"><img style="height: 2.6em" src="/logo/weblate-button.svg" alt="Weblate"></a></li>
-                            <li><a href="https://blokt.com?utm_source=conversejs" target="_blank" rel="noopener"><img style="width: 12em" src="/logo/blokt.png" alt="Blokt Crypto & Privacy"></a></li>
-                            <li><a href="https://primesound.org/?utm_source=conversejs" target="_blank" rel="noopener"><img style="width: 10em" src="/media/logos/primesound.png" alt="Prime Sound"></a></li>
-                        </ul>
-                    </div>
-
-                    <p class="sponsors-text">Converse is a software commons, available at no cost to you or anyone else.
-                       Sponsorships allow us to fund further development and improvements.
-                       If you'd like to sponsor this project, please visit <a href="https://www.patreon.com/jcbrand" target="_blank" rel="noopener">Patreon</a>,
-                       <a href="https://liberapay.com/jcbrand" target="_blank" rel="noopener">Liberapay</a> or
-                       <a href="https://opkode.com/contact.html" target="_blank" rel="noopener">contact us</a>.
-                    </p>
-                </div>
-            </div>
-        </div>
-    </section>
-</body>
-
-    <section class="outro account-hosting content-section text-center" id="hosting">
-        <div class="container">
-            <div class="row">
-                <div class="col-lg-12 col-lg-offset-2" style="margin-top: 3em">
-                    <h2>XMPP Account Hosting</h2>
-                    <p>
-                        We provide free XMPP accounts under the domain <strong>conversejs.org</strong>.
-                        You can create an account directly through the app on
-                        this website or on <a href="https://inverse.chat" target="_blank" rel="noopener">inverse.chat</a>.
-                    </p>
-                    <p>
-                        If you're interested in professional XMPP hosting under your
-                        own domain name, please <a href="https://opkode.com/contact.html" target="_blank" rel="noopener">contact us</a>.
-                    </p>
-
-                    <div class="privacy-policy">
-                        <h3>Privacy policy and GDPR compliance</h3>
-                        <p>
-                            This service is provided on a pro bono basis. An email
-                            address is not needed to sign up and we don't sell or
-                            monetize any of your data.
-                        </p>
-                        <h4>Sharing of data with 3rd parties</h4>
-                        <p>
-                            We don't share any of your data with 3rd parties,
-                            except when necessary to run the service. For example,
-                            when you send a message to a user on a differerent XMPP
-                            server.
-                            Your presence information (whether you're online or
-                            not) is shared with contacts that you've added from
-                            other servers.
-                        </p>
-                        <p>
-                            Users on other XMPP servers
-                            can request access to your (optionally filled-in) VCard data.
-                            You can remove your VCard data through an XMPP client.
-                            The latest version of Converse supports this, and you can
-                            <a href="https://conversejs.org/4.0.0-alpha/fullscreen.html" target="_blank" rel="noopener">use it here</a>.
-                        </p>
-                        <h4>Data storage</h4>
-                        <p>
-                            Our XMPP server runs in a Hetzner data centre in
-                            Strasbourg, France.
-                        </p>
-                        <p>
-                            Your chat messages are archived for a period of 1
-                            month, after which they are deleted.
-                        </p>
-                        <p>
-                            Currently the <strong>conversejs.org</strong> XMPP
-                            server does not support HTTP-file upload (although Converse the client does),
-                            which means that we don't host any uploaded files of users.
-                        </p>
-                        <p>
-                            During normal operations we don't log or process IP
-                            addresses, although it might be necessary in certain
-                            cases where a problem needs to be debugged (hasn't
-                            happened yet). Logs older than 6 months are deleted.
-                        </p>
-                        <h4>Data portability</h4>
-                        <p>
-                            Currently there is no standardized way to move a
-                            user account from one XMPP server to another.
-                        </p>
-                        <p>
-                            If you'd like to have a copy of your data for
-                            transferal to another account, please <a href="https://opkode.com/contact.html" target="_blank" rel="noopener">contact us</a>.
-                        </p>
-                        <h4>Account deletion</h4>
-                        <p>
-                            Currently it's not possible to automatically delete
-                            your account via Converse, although you might be
-                            able to do so via other XMPP clients that support
-                            account deletion via
-                            <a href="https://xmpp.org/extensions/xep-0077.html" target="_blank" rel="noopener">XEP-0077</a>.
-                        </p>
-                        <p>
-                            You can always <a href="https://opkode.com/contact.html" target="_blank" rel="noopener">contact us</a>
-                            and we'll delete your account manually.
-                        </p>
-                    </div>
-                </div>
-            </div>
-        </div>
-    </section>
-</section>
-</body>
-
-<script>
-    /*
-    @licstart
-    This is free and unencumbered software released into the public domain.
-
-    Anyone is free to copy, modify, publish, use, compile, sell, or
-    distribute this software, either in source code form or as a compiled
-    binary, for any purpose, commercial or non-commercial, and by any
-    means.
-
-    In jurisdictions that recognize copyright laws, the author or authors
-    of this software dedicate any and all copyright interest in the
-    software to the public domain. We make this dedication for the benefit
-    of the public at large and to the detriment of our heirs and
-    successors. We intend this dedication to be an overt act of
-    relinquishment in perpetuity of all present and future rights to this
-    software under copyright law.
-
-    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-    MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-    IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
-    OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
-    ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-    OTHER DEALINGS IN THE SOFTWARE.
-
-    For more information, please refer to <https://unlicense.org/>
-    @licend
-    */
-    converse.initialize({
-        // Please use this connection manager only for testing purposes
-        bosh_service_url: 'https://conversejs.org/http-bind/'
-    });
-</script>
-</html>

+ 2 - 2
src/headless/shared/settings/constants.js

@@ -28,7 +28,7 @@
  * @property { String } [sid]
  * @property { Boolean } [singleton=false]
  * @property { Boolean } [strict_plugin_dependencies=false]
- * @property { ('overlayed'|'fullscreen'|'mobile') } [view_mode='overlayed']
+ * @property { ('overlayed'|'fullscreen'|'embedded') } [view_mode='overlayed']
  * @property { String } [websocket_url]
  * @property { Array<String>} [whitelisted_plugins]
  */
@@ -103,7 +103,7 @@ export const DEFAULT_SETTINGS = {
     singleton: false,
     strict_plugin_dependencies: false,
     stanza_timeout: 60000,
-    view_mode: 'overlayed', // Choices are 'overlayed', 'fullscreen', 'mobile'
+    view_mode: 'overlayed',
     websocket_url: undefined,
     whitelisted_plugins: [],
 };

+ 1 - 1
src/headless/types/shared/settings/constants.d.ts

@@ -72,7 +72,7 @@ export type ConfigurationSettings = {
     sid?: string;
     singleton?: boolean;
     strict_plugin_dependencies?: boolean;
-    view_mode?: ('overlayed' | 'fullscreen' | 'mobile');
+    view_mode?: ('overlayed' | 'fullscreen' | 'embedded');
     websocket_url?: string;
     whitelisted_plugins?: Array<string>;
 };

+ 1 - 1
src/headless/types/utils/index.d.ts

@@ -53,7 +53,7 @@ declare const _default: {
     getAttributes(stanza: Element): any;
     isUniView(): boolean;
     isTestEnv(): boolean;
-    getUnloadEvent(): "pagehide" | "beforeunload" | "unload"; /** @type {keyof LEVELS} */
+    getUnloadEvent(): "pagehide" | "beforeunload" | "unload";
     replacePromise(_converse: any, name: string): void;
     shouldClearCache(_converse: any): boolean;
     tearDown(_converse: any): Promise<any>;

+ 1 - 1
src/headless/utils/session.js

@@ -15,7 +15,7 @@ const settings = settings_api;
  * MultiView means that multiple chats may be visible simultaneously.
  */
 export function isUniView () {
-    return ['mobile', 'fullscreen', 'embedded'].includes(settings.get("view_mode"));
+    return ['fullscreen', 'embedded'].includes(settings.get("view_mode"));
 }
 
 export function isTestEnv () {

+ 1 - 2
src/plugins/chatboxviews/styles/chats.scss

@@ -13,8 +13,7 @@
             }
         }
 
-        &.converse-fullscreen,
-        &.converse-mobile {
+        &.converse-fullscreen {
             flex-wrap: nowrap;
         }
 

+ 0 - 1
src/plugins/chatview/styles/index.scss

@@ -211,7 +211,6 @@
             }
         }
 
-        converse-chats.converse-mobile,
         converse-chats.converse-overlayed,
         converse-chats.converse-fullscreen {
             .chat-head {

+ 1 - 2
src/plugins/controlbox/styles/_controlbox.scss

@@ -236,8 +236,7 @@
         }
 
         &.converse-embedded,
-        &.converse-fullscreen,
-        &.converse-mobile {
+        &.converse-fullscreen {
             #controlbox {
                 margin: 0;
 

+ 1 - 2
src/plugins/controlbox/styles/loginform.scss

@@ -54,8 +54,7 @@
         }
 
         &.converse-embedded,
-        &.converse-fullscreen,
-        &.converse-mobile {
+        &.converse-fullscreen {
             #controlbox {
                 .toggle-register-login {
                     line-height: var(--line-height-huge);

+ 1 - 2
src/plugins/muc-views/styles/index.scss

@@ -79,8 +79,7 @@ converse-muc-destroyed {
         }
 
         &.converse-embedded,
-        &.converse-fullscreen,
-        &.converse-mobile {
+        &.converse-fullscreen {
 
             .chatroom {
                 .box-flyout {

+ 1 - 2
src/plugins/rootview/styles/root.scss

@@ -1,7 +1,6 @@
 converse-root {
     &.converse-fullscreen,
-    &.converse-overlayed,
-    &.converse-mobile {
+    &.converse-overlayed {
         bottom: 0;
         left: 0;
         height: 100%;

+ 1 - 2
src/shared/chat/styles/unfurl.scss

@@ -44,8 +44,7 @@
             }
         }
 
-        &.converse-overlayed,
-        &.converse-mobile {
+        &.converse-overlayed {
             .message {
                 .card--unfurl {
                     margin: 0.5em 0;

+ 0 - 1
src/types/plugins/roomslist/model.d.ts

@@ -2,7 +2,6 @@ export default RoomsListModel;
 declare class RoomsListModel extends Model {
     defaults(): {
         muc_domain: any;
-        nick: any;
         toggle_state: "opened";
         collapsed_domains: any[];
     };