2
0
Эх сурвалжийг харах

inverse: Set more defaults in the plugin itself

JC Brand 8 жил өмнө
parent
commit
651a5de315

+ 4 - 4
docs/source/configuration.rst

@@ -582,7 +582,7 @@ If set to ``true``, then don't show offline users.
 hide_open_bookmarks
 hide_open_bookmarks
 -------------------
 -------------------
 
 
-* Default:  ``false``
+* Default:  ``false`` (``true`` for inVerse).
 
 
 This setting applies to the ``converse-bookmarks`` plugin and specfically the
 This setting applies to the ``converse-bookmarks`` plugin and specfically the
 list of bookmarks shown in the ``Rooms`` tab of the control box.
 list of bookmarks shown in the ``Rooms`` tab of the control box.
@@ -961,7 +961,7 @@ Specifies whether chat state (online, dnd, away) HTML5 desktop notifications sho
 show_controlbox_by_default
 show_controlbox_by_default
 --------------------------
 --------------------------
 
 
-* Default:  ``false``
+* Default:  ``false`` (``true`` for inVerse)
 
 
 The "controlbox" refers to the special chatbox containing your contacts roster,
 The "controlbox" refers to the special chatbox containing your contacts roster,
 status widget, chatrooms and other controls.
 status widget, chatrooms and other controls.
@@ -1064,7 +1064,7 @@ data.
 sticky_controlbox
 sticky_controlbox
 -----------------
 -----------------
 
 
-* Default: ``false``
+* Default: ``false`` (``true`` for inVerse).
 
 
 If set to ``true``, the control box (which includes the login, registration,
 If set to ``true``, the control box (which includes the login, registration,
 contacts and rooms tabs) will not be closeable. It won't have a close button at
 contacts and rooms tabs) will not be closeable. It won't have a close button at
@@ -1208,7 +1208,7 @@ support.
 blacklisted_plugins
 blacklisted_plugins
 -------------------
 -------------------
 
 
-* Default: ``[]``
+* Default: ``[]`` (``['converse-minimize', 'converse-dragresize']`` for inVerse)
 
 
 A list of plugin names that are blacklisted and will therefore not be
 A list of plugin names that are blacklisted and will therefore not be
 initialized once ``converse.initialize`` is called, even if the same plugin is
 initialized once ``converse.initialize`` is called, even if the same plugin is

+ 1 - 13
inverse.html

@@ -28,22 +28,10 @@
             notify_all_room_messages: [
             notify_all_room_messages: [
                 'discuss@conference.conversejs.org'
                 'discuss@conference.conversejs.org'
             ],
             ],
-            whitelisted_plugins: [
-                'converse-inverse',
-                'converse-roomslist',
-                'converse-singleton',
-            ],
-            hide_open_bookmarks: true,
-            blacklisted_plugins: ['converse-minimize', 'converse-dragresize'],
-            chatview_avatar_width: 42,
-            chatview_avatar_height: 42,
+            whitelisted_plugins: ['converse-inverse'],
             auto_reconnect: true,
             auto_reconnect: true,
             bosh_service_url: 'https://conversejs.org/http-bind/', // Please use this connection manager only for testing purposes
             bosh_service_url: 'https://conversejs.org/http-bind/', // Please use this connection manager only for testing purposes
-            message_carbons: true,
             message_archiving: 'always',
             message_archiving: 'always',
-            sticky_controlbox: true,
-            roster_groups: true,
-            show_controlbox_by_default: true,
             debug: true
             debug: true
         });
         });
     });
     });

+ 8 - 2
src/converse-inverse.js

@@ -102,9 +102,15 @@
             var _converse = this._converse;
             var _converse = this._converse;
 
 
             this.updateSettings({
             this.updateSettings({
-                sticky_controlbox: true,
-                sounds_path: '/node_modules/converse.js/sounds/', // New default
+                blacklisted_plugins: ['converse-minimize', 'converse-dragresize'],
+                chatview_avatar_height: 42,
+                chatview_avatar_width: 42,
+                hide_open_bookmarks: true,
                 notification_icon: '/node_modules/converse.js/logo/conversejs128.png', // New default
                 notification_icon: '/node_modules/converse.js/logo/conversejs128.png', // New default
+                show_controlbox_by_default: true,
+                sounds_path: '/node_modules/converse.js/sounds/', // New default
+                sticky_controlbox: true,
+                whitelisted_plugins: ['converse-roomslist', 'converse-singleton'],
             });
             });
 
 
             _converse.isMessageToHiddenChat = function (message) {
             _converse.isMessageToHiddenChat = function (message) {