Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
d95a7987
Commit
d95a7987
authored
Jul 11, 2019
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix linting errors and add `@module` jsdoc directives
parent
b016aa0f
Changes
43
Hide whitespace changes
Inline
Side-by-side
Showing
43 changed files
with
138 additions
and
90 deletions
+138
-90
.eslintrc.json
.eslintrc.json
+1
-0
src/converse-autocomplete.js
src/converse-autocomplete.js
+6
-4
src/converse-bookmark-views.js
src/converse-bookmark-views.js
+4
-5
src/converse-chatboxviews.js
src/converse-chatboxviews.js
+3
-0
src/converse-chatview.js
src/converse-chatview.js
+3
-0
src/converse-controlbox.js
src/converse-controlbox.js
+3
-2
src/converse-dragresize.js
src/converse-dragresize.js
+3
-2
src/converse-fullscreen.js
src/converse-fullscreen.js
+3
-1
src/converse-headline.js
src/converse-headline.js
+3
-1
src/converse-mam-views.js
src/converse-mam-views.js
+5
-2
src/converse-message-view.js
src/converse-message-view.js
+3
-1
src/converse-minimize.js
src/converse-minimize.js
+3
-1
src/converse-modal.js
src/converse-modal.js
+3
-1
src/converse-muc-views.js
src/converse-muc-views.js
+5
-2
src/converse-notification.js
src/converse-notification.js
+3
-2
src/converse-omemo.js
src/converse-omemo.js
+4
-2
src/converse-profile.js
src/converse-profile.js
+3
-2
src/converse-push.js
src/converse-push.js
+4
-4
src/converse-register.js
src/converse-register.js
+4
-4
src/converse-roomslist.js
src/converse-roomslist.js
+4
-2
src/converse-rosterview.js
src/converse-rosterview.js
+3
-1
src/converse-singleton.js
src/converse-singleton.js
+3
-5
src/converse-uniview.js
src/converse-uniview.js
+3
-5
src/headless/converse-bookmarks.js
src/headless/converse-bookmarks.js
+4
-5
src/headless/converse-bosh.js
src/headless/converse-bosh.js
+5
-3
src/headless/converse-caps.js
src/headless/converse-caps.js
+3
-1
src/headless/converse-chatboxes.js
src/headless/converse-chatboxes.js
+3
-1
src/headless/converse-core.js
src/headless/converse-core.js
+3
-1
src/headless/converse-disco.js
src/headless/converse-disco.js
+5
-3
src/headless/converse-mam.js
src/headless/converse-mam.js
+5
-3
src/headless/converse-muc.js
src/headless/converse-muc.js
+6
-3
src/headless/converse-ping.js
src/headless/converse-ping.js
+4
-3
src/headless/converse-pubsub.js
src/headless/converse-pubsub.js
+3
-1
src/headless/converse-roster.js
src/headless/converse-roster.js
+3
-1
src/headless/converse-rsm.js
src/headless/converse-rsm.js
+5
-2
src/headless/converse-smacks.js
src/headless/converse-smacks.js
+6
-3
src/headless/converse-vcard.js
src/headless/converse-vcard.js
+3
-1
src/headless/i18n.js
src/headless/i18n.js
+0
-2
src/headless/lodash.noconflict.js
src/headless/lodash.noconflict.js
+0
-1
src/headless/utils/core.js
src/headless/utils/core.js
+0
-2
src/headless/utils/muc.js
src/headless/utils/muc.js
+1
-3
src/jquery-stub.js
src/jquery-stub.js
+0
-1
src/underscore-shim.js
src/underscore-shim.js
+0
-1
No files found.
.eslintrc.json
View file @
d95a7987
...
@@ -244,6 +244,7 @@
...
@@ -244,6 +244,7 @@
"error"
,
"error"
,
"always"
"always"
],
],
"require-atomic-updates"
:
"off"
,
"require-await"
:
"error"
,
"require-await"
:
"error"
,
"require-jsdoc"
:
"off"
,
"require-jsdoc"
:
"off"
,
"rest-spread-spacing"
:
"error"
,
"rest-spread-spacing"
:
"error"
,
...
...
src/converse-autocomplete.js
View file @
d95a7987
...
@@ -4,10 +4,12 @@
...
@@ -4,10 +4,12 @@
// Copyright (c) 2013-2019, the Converse.js developers
// Copyright (c) 2013-2019, the Converse.js developers
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
// This plugin started as a fork of Lea Verou's Awesomplete
/**
// https://leaverou.github.io/awesomplete/
* @module converse-autocomplete
* @description
* Converse.js plugin which started as a fork of Lea Verou's Awesomplete
* https://leaverou.github.io/awesomplete/
*/
import
converse
from
"
@converse/headless/converse-core
"
;
import
converse
from
"
@converse/headless/converse-core
"
;
const
{
_
,
Backbone
}
=
converse
.
env
,
const
{
_
,
Backbone
}
=
converse
.
env
,
...
...
src/converse-bookmark-views.js
View file @
d95a7987
...
@@ -4,12 +4,11 @@
...
@@ -4,12 +4,11 @@
// Copyright (c) 2019, Jan-Carel Brand <jc@opkode.com>
// Copyright (c) 2019, Jan-Carel Brand <jc@opkode.com>
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
//
//
/*
global define */
/*
*
* @module converse-bookmark-views
/* This is a Converse.js plugin which add support for bookmarks specified
* @description
*
in XEP-0048.
*
Converse.js plugin which adds views for XEP-0048 bookmarks
*/
*/
import
"
backbone.nativeview
"
;
import
"
backbone.nativeview
"
;
import
BrowserStorage
from
"
backbone.browserStorage
"
;
import
BrowserStorage
from
"
backbone.browserStorage
"
;
import
{
OrderedListView
}
from
"
backbone.overview
"
;
import
{
OrderedListView
}
from
"
backbone.overview
"
;
...
...
src/converse-chatboxviews.js
View file @
d95a7987
...
@@ -4,6 +4,9 @@
...
@@ -4,6 +4,9 @@
// Copyright (c) 2012-2019, the Converse.js developers
// Copyright (c) 2012-2019, the Converse.js developers
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
/**
* @module converse-chatboxviews
*/
import
"
@converse/headless/converse-chatboxes
"
;
import
"
@converse/headless/converse-chatboxes
"
;
import
"
backbone.nativeview
"
;
import
"
backbone.nativeview
"
;
import
{
Overview
}
from
"
backbone.overview
"
;
import
{
Overview
}
from
"
backbone.overview
"
;
...
...
src/converse-chatview.js
View file @
d95a7987
...
@@ -4,6 +4,9 @@
...
@@ -4,6 +4,9 @@
// Copyright (c) 2013-2019, the Converse.js developers
// Copyright (c) 2013-2019, the Converse.js developers
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
/**
* @module converse-chatview
*/
import
"
backbone.nativeview
"
;
import
"
backbone.nativeview
"
;
import
"
converse-chatboxviews
"
;
import
"
converse-chatboxviews
"
;
import
"
converse-message-view
"
;
import
"
converse-message-view
"
;
...
...
src/converse-controlbox.js
View file @
d95a7987
...
@@ -4,8 +4,9 @@
...
@@ -4,8 +4,9 @@
// Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
// Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
//
//
/*global define */
/**
* @module converse-controlbox
*/
import
"
converse-chatview
"
;
import
"
converse-chatview
"
;
import
"
converse-profile
"
;
import
"
converse-profile
"
;
import
"
converse-rosterview
"
;
import
"
converse-rosterview
"
;
...
...
src/converse-dragresize.js
View file @
d95a7987
...
@@ -4,8 +4,9 @@
...
@@ -4,8 +4,9 @@
// Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
// Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
//
//
/*global define, window, document */
/**
* @module converse-dragresize
*/
import
"
converse-chatview
"
;
import
"
converse-chatview
"
;
import
"
converse-controlbox
"
;
import
"
converse-controlbox
"
;
import
converse
from
"
@converse/headless/converse-core
"
;
import
converse
from
"
@converse/headless/converse-core
"
;
...
...
src/converse-fullscreen.js
View file @
d95a7987
...
@@ -4,7 +4,9 @@
...
@@ -4,7 +4,9 @@
// Copyright (c) JC Brand <jc@opkode.com>
// Copyright (c) JC Brand <jc@opkode.com>
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
//
//
/**
* @module converse-fullscreen
*/
import
"
@converse/headless/converse-muc
"
;
import
"
@converse/headless/converse-muc
"
;
import
"
converse-chatview
"
;
import
"
converse-chatview
"
;
import
"
converse-controlbox
"
;
import
"
converse-controlbox
"
;
...
...
src/converse-headline.js
View file @
d95a7987
...
@@ -3,7 +3,9 @@
...
@@ -3,7 +3,9 @@
//
//
// Copyright (c) 2019, Jan-Carel Brand <jc@opkode.com>
// Copyright (c) 2019, Jan-Carel Brand <jc@opkode.com>
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
/**
* @module converse-headline
*/
import
"
converse-chatview
"
;
import
"
converse-chatview
"
;
import
converse
from
"
@converse/headless/converse-core
"
;
import
converse
from
"
@converse/headless/converse-core
"
;
import
tpl_chatbox
from
"
templates/chatbox.html
"
;
import
tpl_chatbox
from
"
templates/chatbox.html
"
;
...
...
src/converse-mam-views.js
View file @
d95a7987
...
@@ -4,8 +4,11 @@
...
@@ -4,8 +4,11 @@
// Copyright (c) 2012-2019, Jan-Carel Brand <jc@opkode.com>
// Copyright (c) 2012-2019, Jan-Carel Brand <jc@opkode.com>
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
//
//
// Views for XEP-0313 Message Archive Management
/**
* @module converse-mam-views
* @description
* Views for XEP-0313 Message Archive Management
*/
import
converse
from
"
@converse/headless/converse-core
"
;
import
converse
from
"
@converse/headless/converse-core
"
;
import
{
debounce
}
from
'
lodash
'
import
{
debounce
}
from
'
lodash
'
...
...
src/converse-message-view.js
View file @
d95a7987
...
@@ -3,7 +3,9 @@
...
@@ -3,7 +3,9 @@
//
//
// Copyright (c) 2013-2019, the Converse.js developers
// Copyright (c) 2013-2019, the Converse.js developers
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
/**
* @module converse-message-view
*/
import
URI
from
"
urijs
"
;
import
URI
from
"
urijs
"
;
import
converse
from
"
@converse/headless/converse-core
"
;
import
converse
from
"
@converse/headless/converse-core
"
;
import
filesize
from
"
filesize
"
;
import
filesize
from
"
filesize
"
;
...
...
src/converse-minimize.js
View file @
d95a7987
...
@@ -3,7 +3,9 @@
...
@@ -3,7 +3,9 @@
//
//
// Copyright (c) 2013-2019, Jan-Carel Brand <jc@opkode.com>
// Copyright (c) 2013-2019, Jan-Carel Brand <jc@opkode.com>
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
/**
* @module converse-minimize
*/
import
"
converse-chatview
"
;
import
"
converse-chatview
"
;
import
BrowserStorage
from
"
backbone.browserStorage
"
;
import
BrowserStorage
from
"
backbone.browserStorage
"
;
import
{
Overview
}
from
"
backbone.overview
"
;
import
{
Overview
}
from
"
backbone.overview
"
;
...
...
src/converse-modal.js
View file @
d95a7987
...
@@ -3,7 +3,9 @@
...
@@ -3,7 +3,9 @@
//
//
// Copyright (c) 2013-2019, the Converse.js developers
// Copyright (c) 2013-2019, the Converse.js developers
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
/**
* @module converse-modal
*/
import
"
backbone.vdomview
"
;
import
"
backbone.vdomview
"
;
import
bootstrap
from
"
bootstrap.native
"
;
import
bootstrap
from
"
bootstrap.native
"
;
import
converse
from
"
@converse/headless/converse-core
"
;
import
converse
from
"
@converse/headless/converse-core
"
;
...
...
src/converse-muc-views.js
View file @
d95a7987
...
@@ -4,8 +4,11 @@
...
@@ -4,8 +4,11 @@
// Copyright (c) 2013-2019, the Converse.js developers
// Copyright (c) 2013-2019, the Converse.js developers
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
//
//
// XEP-0045 Multi-User Chat Views
/**
* @module converse-muc-views
* @description
* XEP-0045 Multi-User Chat Views
*/
import
"
converse-modal
"
;
import
"
converse-modal
"
;
import
"
backbone.vdomview
"
;
import
"
backbone.vdomview
"
;
import
BrowserStorage
from
"
backbone.browserStorage
"
;
import
BrowserStorage
from
"
backbone.browserStorage
"
;
...
...
src/converse-notification.js
View file @
d95a7987
...
@@ -4,8 +4,9 @@
...
@@ -4,8 +4,9 @@
// Copyright (c) 2013-2019, JC Brand <jc@opkode.com>
// Copyright (c) 2013-2019, JC Brand <jc@opkode.com>
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
//
//
/*global define */
/**
* @module converse-notification
*/
import
converse
from
"
@converse/headless/converse-core
"
;
import
converse
from
"
@converse/headless/converse-core
"
;
const
{
Strophe
,
_
,
sizzle
}
=
converse
.
env
,
const
{
Strophe
,
_
,
sizzle
}
=
converse
.
env
,
...
...
src/converse-omemo.js
View file @
d95a7987
...
@@ -4,8 +4,10 @@
...
@@ -4,8 +4,10 @@
// Copyright (c) 2013-2019, the Converse.js developers
// Copyright (c) 2013-2019, the Converse.js developers
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
/* global libsignal, ArrayBuffer, parseInt, crypto */
/* global libsignal, ArrayBuffer */
/**
* @module converse-omemo
*/
import
BrowserStorage
from
"
backbone.browserStorage
"
;
import
BrowserStorage
from
"
backbone.browserStorage
"
;
import
converse
from
"
@converse/headless/converse-core
"
;
import
converse
from
"
@converse/headless/converse-core
"
;
import
tpl_toolbar_omemo
from
"
templates/toolbar_omemo.html
"
;
import
tpl_toolbar_omemo
from
"
templates/toolbar_omemo.html
"
;
...
...
src/converse-profile.js
View file @
d95a7987
...
@@ -4,8 +4,9 @@
...
@@ -4,8 +4,9 @@
// Copyright (c) 2013-2017, Jan-Carel Brand <jc@opkode.com>
// Copyright (c) 2013-2017, Jan-Carel Brand <jc@opkode.com>
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
//
//
/*global define */
/**
* @module converse-profile
*/
import
"
@converse/headless/converse-vcard
"
;
import
"
@converse/headless/converse-vcard
"
;
import
"
converse-modal
"
;
import
"
converse-modal
"
;
import
_FormData
from
"
formdata-polyfill
"
;
import
_FormData
from
"
formdata-polyfill
"
;
...
...
src/converse-push.js
View file @
d95a7987
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
//
//
// Copyright (c) 2013-2019, the Converse.js developers
// Copyright (c) 2013-2019, the Converse.js developers
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
/**
/* This is a Converse.js plugin which add support for registering
* @module converse-push
* @description
* Converse.js plugin which add support for registering
* an "App Server" as defined in XEP-0357
* an "App Server" as defined in XEP-0357
*/
*/
import
converse
from
"
@converse/headless/converse-core
"
;
import
converse
from
"
@converse/headless/converse-core
"
;
const
{
Strophe
,
$iq
,
_
}
=
converse
.
env
;
const
{
Strophe
,
$iq
,
_
}
=
converse
.
env
;
...
...
src/converse-register.js
View file @
d95a7987
...
@@ -4,12 +4,12 @@
...
@@ -4,12 +4,12 @@
// Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
// Copyright (c) 2012-2017, Jan-Carel Brand <jc@opkode.com>
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
//
//
/*global define */
/**
* @module converse-register
/* This is a Converse.js plugin which add support for in-band registration
* @description
* This is a Converse.js plugin which add support for in-band registration
* as specified in XEP-0077.
* as specified in XEP-0077.
*/
*/
import
"
converse-controlbox
"
;
import
"
converse-controlbox
"
;
import
converse
from
"
@converse/headless/converse-core
"
;
import
converse
from
"
@converse/headless/converse-core
"
;
import
tpl_form_input
from
"
templates/form_input.html
"
;
import
tpl_form_input
from
"
templates/form_input.html
"
;
...
...
src/converse-roomslist.js
View file @
d95a7987
...
@@ -3,8 +3,10 @@
...
@@ -3,8 +3,10 @@
//
//
// Copyright (c) 2013-2019, Jan-Carel Brand <jc@opkode.com>
// Copyright (c) 2013-2019, Jan-Carel Brand <jc@opkode.com>
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
/**
/* This is a non-core Converse.js plugin which shows a list of currently open
* @module converse-roomslist
* @description
* Converse.js plugin which shows a list of currently open
* rooms in the "Rooms Panel" of the ControlBox.
* rooms in the "Rooms Panel" of the ControlBox.
*/
*/
import
BrowserStorage
from
"
backbone.browserStorage
"
;
import
BrowserStorage
from
"
backbone.browserStorage
"
;
...
...
src/converse-rosterview.js
View file @
d95a7987
...
@@ -3,7 +3,9 @@
...
@@ -3,7 +3,9 @@
//
//
// Copyright (c) 2013-2019, the Converse.js developers
// Copyright (c) 2013-2019, the Converse.js developers
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
/**
* @module converse-rosterview
*/
import
"
@converse/headless/converse-chatboxes
"
;
import
"
@converse/headless/converse-chatboxes
"
;
import
"
@converse/headless/converse-roster
"
;
import
"
@converse/headless/converse-roster
"
;
import
"
converse-modal
"
;
import
"
converse-modal
"
;
...
...
src/converse-singleton.js
View file @
d95a7987
...
@@ -3,13 +3,11 @@
...
@@ -3,13 +3,11 @@
//
//
// Copyright (c) 2013-2019, the Converse.js developers
// Copyright (c) 2013-2019, the Converse.js developers
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
/**
/* converse-singleton
* @module converse-singleton
* ******************
* @description
*
* A plugin which restricts Converse to only one chat.
* A plugin which restricts Converse to only one chat.
*/
*/
import
converse
from
"
@converse/headless/converse-core
"
;
import
converse
from
"
@converse/headless/converse-core
"
;
const
{
_
,
Strophe
}
=
converse
.
env
;
const
{
_
,
Strophe
}
=
converse
.
env
;
...
...
src/converse-uniview.js
View file @
d95a7987
...
@@ -3,10 +3,9 @@
...
@@ -3,10 +3,9 @@
//
//
// Copyright (c) 2013-2018, the Converse.js developers
// Copyright (c) 2013-2018, the Converse.js developers
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
/**
/* converse-uniview
* @module converse-uniview
* ****************
* @description
*
* A plugin which ensures that only one chat (private or groupchat) is
* A plugin which ensures that only one chat (private or groupchat) is
* visible at any one time. All other ongoing chats are hidden and kept in the
* visible at any one time. All other ongoing chats are hidden and kept in the
* background.
* background.
...
@@ -14,7 +13,6 @@
...
@@ -14,7 +13,6 @@
* This plugin makes sense in mobile, embedded or fullscreen chat environments
* This plugin makes sense in mobile, embedded or fullscreen chat environments
* (as configured by the `view_mode` setting).
* (as configured by the `view_mode` setting).
*/
*/
import
"
converse-chatview
"
;
import
"
converse-chatview
"
;
import
converse
from
"
@converse/headless/converse-core
"
;
import
converse
from
"
@converse/headless/converse-core
"
;
...
...
src/headless/converse-bookmarks.js
View file @
d95a7987
...
@@ -4,12 +4,11 @@
...
@@ -4,12 +4,11 @@
// Copyright (c) 2019, Jan-Carel Brand <jc@opkode.com>
// Copyright (c) 2019, Jan-Carel Brand <jc@opkode.com>
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
//
//
/*
global define */
/*
*
* @module converse-bookmarks
/* This is a Converse.js plugin which adds views for bookmarks specified
* @description
* in XEP-0048.
*
Converse.js plugin which adds views for bookmarks specified
in XEP-0048.
*/
*/
import
BrowserStorage
from
"
backbone.browserStorage
"
;
import
BrowserStorage
from
"
backbone.browserStorage
"
;
import
converse
from
"
@converse/headless/converse-core
"
;
import
converse
from
"
@converse/headless/converse-core
"
;
import
muc
from
"
@converse/headless/converse-muc
"
;
import
muc
from
"
@converse/headless/converse-muc
"
;
...
...
src/headless/converse-bosh.js
View file @
d95a7987
...
@@ -3,9 +3,11 @@
...
@@ -3,9 +3,11 @@
//
//
// Copyright (c) The Converse.js developers
// Copyright (c) The Converse.js developers
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
/**
/* This is a Converse.js plugin which add support for XEP-0206: XMPP Over BOSH */
* @module converse-bosh
* @description
* Converse.js plugin which add support for XEP-0206: XMPP Over BOSH
*/
import
BrowserStorage
from
"
backbone.browserStorage
"
;
import
BrowserStorage
from
"
backbone.browserStorage
"
;
import
converse
from
"
./converse-core
"
;
import
converse
from
"
./converse-core
"
;
...
...
src/headless/converse-caps.js
View file @
d95a7987
...
@@ -3,7 +3,9 @@
...
@@ -3,7 +3,9 @@
//
//
// Copyright (c) 2013-2019, the Converse.js developers
// Copyright (c) 2013-2019, the Converse.js developers
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
/**
* @module converse-caps
*/
import
SHA1
from
'
strophe.js/src/sha1
'
;
import
SHA1
from
'
strophe.js/src/sha1
'
;
import
converse
from
"
@converse/headless/converse-core
"
;
import
converse
from
"
@converse/headless/converse-core
"
;
...
...
src/headless/converse-chatboxes.js
View file @
d95a7987
...
@@ -3,7 +3,9 @@
...
@@ -3,7 +3,9 @@
//
//
// Copyright (c) 2012-2019, the Converse.js developers
// Copyright (c) 2012-2019, the Converse.js developers
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
/**
* @module converse-chatboxes
*/
import
"
./utils/emoji
"
;
import
"
./utils/emoji
"
;
import
"
./utils/form
"
;
import
"
./utils/form
"
;
import
BrowserStorage
from
"
backbone.browserStorage
"
;
import
BrowserStorage
from
"
backbone.browserStorage
"
;
...
...
src/headless/converse-core.js
View file @
d95a7987
...
@@ -3,7 +3,9 @@
...
@@ -3,7 +3,9 @@
//
//
// Copyright (c) 2013-2019, the Converse.js developers
// Copyright (c) 2013-2019, the Converse.js developers
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
/**
* @module converse-core
*/
import
*
as
bosh
from
'
strophe.js/src/bosh
'
;
import
*
as
bosh
from
'
strophe.js/src/bosh
'
;
import
*
as
strophe
from
'
strophe.js/src/core
'
;
import
*
as
strophe
from
'
strophe.js/src/core
'
;
import
*
as
websocket
from
'
strophe.js/src/websocket
'
;
import
*
as
websocket
from
'
strophe.js/src/websocket
'
;
...
...
src/headless/converse-disco.js
View file @
d95a7987
...
@@ -3,9 +3,11 @@
...
@@ -3,9 +3,11 @@
//
//
// Copyright (c) 2013-2019, the Converse developers
// Copyright (c) 2013-2019, the Converse developers
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
/**
/* This is a Converse plugin which add support for XEP-0030: Service Discovery */
* @module converse-disco
* @description
* Converse plugin which add support for XEP-0030: Service Discovery
*/
import
BrowserStorage
from
"
backbone.browserStorage
"
;
import
BrowserStorage
from
"
backbone.browserStorage
"
;
import
converse
from
"
./converse-core
"
;
import
converse
from
"
./converse-core
"
;
import
sizzle
from
"
sizzle
"
;
import
sizzle
from
"
sizzle
"
;
...
...
src/headless/converse-mam.js
View file @
d95a7987
...
@@ -4,14 +4,16 @@
...
@@ -4,14 +4,16 @@
// Copyright (c) Jan-Carel Brand <jc@opkode.com>
// Copyright (c) Jan-Carel Brand <jc@opkode.com>
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
//
//
// XEP-0313 Message Archive Management
/**
* @module converse-mam
* @description
* XEP-0313 Message Archive Management
*/
import
"
./converse-disco
"
;
import
"
./converse-disco
"
;
import
"
./converse-rsm
"
;
import
"
./converse-rsm
"
;
import
converse
from
"
./converse-core
"
;
import
converse
from
"
./converse-core
"
;
import
sizzle
from
"
sizzle
"
;
import
sizzle
from
"
sizzle
"
;
const
{
Strophe
,
$iq
,
$build
,
_
,
dayjs
}
=
converse
.
env
;
const
{
Strophe
,
$iq
,
$build
,
_
,
dayjs
}
=
converse
.
env
;
const
u
=
converse
.
env
.
utils
;
const
u
=
converse
.
env
.
utils
;
...
...
src/headless/converse-muc.js
View file @
d95a7987
...
@@ -4,8 +4,11 @@
...
@@ -4,8 +4,11 @@
// Copyright (c) 2013-2019, the Converse.js developers
// Copyright (c) 2013-2019, the Converse.js developers
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
//
//
// XEP-0045 Multi-User Chat
/**
* @module converse-muc
* @description
* Implements the non-view logic for XEP-0045 Multi-User Chat
*/
import
"
./converse-disco
"
;
import
"
./converse-disco
"
;
import
"
./utils/emoji
"
;
import
"
./utils/emoji
"
;
import
"
./utils/muc
"
;
import
"
./utils/muc
"
;
...
@@ -928,7 +931,7 @@ converse.plugins.add('converse-muc', {
...
@@ -928,7 +931,7 @@ converse.plugins.add('converse-muc', {
* been received.
* been received.
*/
*/
autoConfigureChatRoom
()
{
autoConfigureChatRoom
()
{
return
new
Promise
(
async
(
resolve
,
reject
)
=>
{
return
new
Promise
(
async
(
resolve
,
reject
)
=>
{
/* eslint-disable-line no-async-promise-executor */
const
stanza
=
await
this
.
fetchRoomConfiguration
();
const
stanza
=
await
this
.
fetchRoomConfiguration
();
const
fields
=
sizzle
(
'
field
'
,
stanza
);
const
fields
=
sizzle
(
'
field
'
,
stanza
);
const
configArray
=
fields
.
map
(
f
=>
this
.
addFieldValue
(
f
))
const
configArray
=
fields
.
map
(
f
=>
this
.
addFieldValue
(
f
))
...
...
src/headless/converse-ping.js
View file @
d95a7987
...
@@ -3,11 +3,12 @@
...
@@ -3,11 +3,12 @@
//
//
// Copyright (c) 2013-2019, the Converse.js developers
// Copyright (c) 2013-2019, the Converse.js developers
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
/**
/* This is a Converse.js plugin which add support for application-level pings
* @module converse-ping
* @description
* Converse.js plugin which add support for application-level pings
* as specified in XEP-0199 XMPP Ping.
* as specified in XEP-0199 XMPP Ping.
*/
*/
import
converse
from
"
./converse-core
"
;
import
converse
from
"
./converse-core
"
;
// Strophe methods for building stanzas
// Strophe methods for building stanzas
...
...
src/headless/converse-pubsub.js
View file @
d95a7987
...
@@ -3,7 +3,9 @@
...
@@ -3,7 +3,9 @@
//
//
// Copyright (c) 2019, the Converse.js developers
// Copyright (c) 2019, the Converse.js developers
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
/**
* @module converse-pubsub
*/
import
"
./converse-disco
"
;
import
"
./converse-disco
"
;
import
converse
from
"
./converse-core
"
;
import
converse
from
"
./converse-core
"
;
...
...
src/headless/converse-roster.js
View file @
d95a7987
...
@@ -3,7 +3,9 @@
...
@@ -3,7 +3,9 @@
//
//
// Copyright (c) 2013-2019, the Converse.js developers
// Copyright (c) 2013-2019, the Converse.js developers
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
/**
* @module converse-roster
*/
import
BrowserStorage
from
"
backbone.browserStorage
"
;
import
BrowserStorage
from
"
backbone.browserStorage
"
;
import
converse
from
"
@converse/headless/converse-core
"
;
import
converse
from
"
@converse/headless/converse-core
"
;
...
...
src/headless/converse-rsm.js
View file @
d95a7987
...
@@ -7,8 +7,11 @@
...
@@ -7,8 +7,11 @@
// Some code taken from the Strophe RSM plugin, licensed under the MIT License
// Some code taken from the Strophe RSM plugin, licensed under the MIT License
// Copyright 2006-2017 Strophe (https://github.com/strophe/strophejs)
// Copyright 2006-2017 Strophe (https://github.com/strophe/strophejs)
//
//
// XEP-0059 Result Set Management
/**
* @module converse-rsm
* @description
* XEP-0059 Result Set Management
*/
import
converse
from
"
./converse-core
"
;
import
converse
from
"
./converse-core
"
;
const
{
Strophe
,
$build
}
=
converse
.
env
;
const
{
Strophe
,
$build
}
=
converse
.
env
;
...
...
src/headless/converse-smacks.js
View file @
d95a7987
...
@@ -3,9 +3,12 @@
...
@@ -3,9 +3,12 @@
//
//
// Copyright (c) The Converse.js developers
// Copyright (c) The Converse.js developers
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
//
/* This is a Converse.js plugin which add support for XEP-0198: Stream Management */
/**
* @module converse-smacks
* @description
* Converse.js plugin which adds support for XEP-0198: Stream Management
*/
import
converse
from
"
./converse-core
"
;
import
converse
from
"
./converse-core
"
;
const
{
Strophe
,
$build
,
_
}
=
converse
.
env
;
const
{
Strophe
,
$build
,
_
}
=
converse
.
env
;
...
...
src/headless/converse-vcard.js
View file @
d95a7987
...
@@ -3,7 +3,9 @@
...
@@ -3,7 +3,9 @@
//
//
// Copyright (c) 2013-2019, the Converse.js developers
// Copyright (c) 2013-2019, the Converse.js developers
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
/**
* @module converse-vcard
*/
import
BrowserStorage
from
"
backbone.browserStorage
"
;
import
BrowserStorage
from
"
backbone.browserStorage
"
;
import
converse
from
"
./converse-core
"
;
import
converse
from
"
./converse-core
"
;
import
tpl_vcard
from
"
./templates/vcard.html
"
;
import
tpl_vcard
from
"
./templates/vcard.html
"
;
...
...
src/headless/i18n.js
View file @
d95a7987
...
@@ -6,8 +6,6 @@
...
@@ -6,8 +6,6 @@
// Copyright (c) 2013-2017, Jan-Carel Brand <jc@opkode.com>
// Copyright (c) 2013-2017, Jan-Carel Brand <jc@opkode.com>
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
//
//
/*global define */
import
'
dayjs/locale/af
'
;
import
'
dayjs/locale/af
'
;
import
'
dayjs/locale/ar
'
;
import
'
dayjs/locale/ar
'
;
import
'
dayjs/locale/bg
'
;
import
'
dayjs/locale/bg
'
;
...
...
src/headless/lodash.noconflict.js
View file @
d95a7987
/*global define */
define
([
'
lodash
'
],
function
(
_
)
{
define
([
'
lodash
'
],
function
(
_
)
{
return
_
.
noConflict
();
return
_
.
noConflict
();
});
});
src/headless/utils/core.js
View file @
d95a7987
...
@@ -6,8 +6,6 @@
...
@@ -6,8 +6,6 @@
// Copyright (c) 2013-2019, Jan-Carel Brand <jc@opkode.com>
// Copyright (c) 2013-2019, Jan-Carel Brand <jc@opkode.com>
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
//
//
/*global escape, Uint8Array */
import
*
as
strophe
from
'
strophe.js/src/core
'
;
import
*
as
strophe
from
'
strophe.js/src/core
'
;
import
Backbone
from
"
backbone
"
;
import
Backbone
from
"
backbone
"
;
import
Promise
from
"
es6-promise/dist/es6-promise.auto
"
;
import
Promise
from
"
es6-promise/dist/es6-promise.auto
"
;
...
...
src/headless/utils/muc.js
View file @
d95a7987
...
@@ -6,9 +6,7 @@
...
@@ -6,9 +6,7 @@
// Copyright (c) 2013-2019, Jan-Carel Brand <jc@opkode.com>
// Copyright (c) 2013-2019, Jan-Carel Brand <jc@opkode.com>
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
//
//
/*global escape, Jed */
/*global Jed */
import
converse
from
"
@converse/headless/converse-core
"
;
import
converse
from
"
@converse/headless/converse-core
"
;
import
u
from
"
./core
"
;
import
u
from
"
./core
"
;
...
...
src/jquery-stub.js
View file @
d95a7987
/*global define */
define
([],
function
()
{
define
([],
function
()
{
return
Object
;
return
Object
;
});
});
src/underscore-shim.js
View file @
d95a7987
/*global define */
define
([
'
lodash
'
],
function
(
_
)
{
define
([
'
lodash
'
],
function
(
_
)
{
return
_
.
noConflict
();
return
_
.
noConflict
();
});
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment