Split MUC views into separate file/plugin

This commit is contained in:
JC Brand 2018-03-04 06:37:11 +01:00
parent de66a7ddfa
commit 0013ee5506
8 changed files with 2740 additions and 2613 deletions

View File

@ -76,6 +76,7 @@ require.config({
"converse-minimize": "src/converse-minimize",
"converse-muc": "src/converse-muc",
"converse-muc-embedded": "src/converse-muc-embedded",
"converse-muc-views": "src/converse-muc-views",
"converse-notification": "src/converse-notification",
"converse-otr": "src/converse-otr",
"converse-ping": "src/converse-ping",

View File

@ -42,7 +42,7 @@
*
* NB: These plugins need to have already been loaded via require.js.
*/
dependencies: ["converse-chatboxes", "converse-muc"],
dependencies: ["converse-chatboxes", "converse-muc", "converse-muc-views"],
overrides: {
// Overrides mentioned here will be picked up by converse.js's

View File

@ -80,6 +80,7 @@
'converse-minimize',
'converse-muc',
'converse-muc-embedded',
'converse-muc-views',
'converse-notification',
'converse-otr',
'converse-ping',

View File

@ -119,7 +119,7 @@
converse.plugins.add('converse-mam', {
dependencies: ['converse-chatview', 'converse-muc'],
dependencies: ['converse-chatview', 'converse-muc', 'converse-muc-views'],
overrides: {
// Overrides mentioned here will be picked up by converse.js's

View File

@ -39,7 +39,7 @@
*
* NB: These plugins need to have already been loaded via require.js.
*/
dependencies: ["converse-chatview", "converse-controlbox", "converse-muc", "converse-headline"],
dependencies: ["converse-chatview", "converse-controlbox", "converse-muc", "converse-muc-views", "converse-headline"],
enabled (_converse) {
return _converse.view_mode == 'overlayed';

2661
src/converse-muc-views.js Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -14,6 +14,7 @@ if (typeof define !== 'undefined') {
"converse-mam", // XEP-0313 Message Archive Management
"converse-muc", // XEP-0045 Multi-user chat
"converse-muc-embedded",
"converse-muc-views",
"converse-vcard", // XEP-0054 VCard-temp
"converse-otr", // Off-the-record encryption for one-on-one messages
"converse-register", // XEP-0077 In-band registration