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
3aa9ee1b
Commit
3aa9ee1b
authored
Mar 04, 2019
by
Emmanuel Gil Peyrot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace http: with https: in xmpp.org links
parent
b7ae9f21
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
42 additions
and
42 deletions
+42
-42
CHANGES.md
CHANGES.md
+1
-1
docs/source/configuration.rst
docs/source/configuration.rst
+4
-4
docs/source/developer_api.rst
docs/source/developer_api.rst
+1
-1
docs/source/index.rst
docs/source/index.rst
+1
-1
docs/source/setup.rst
docs/source/setup.rst
+4
-4
spec/chatbox.js
spec/chatbox.js
+3
-3
spec/muc.js
spec/muc.js
+15
-15
spec/room_registration.js
spec/room_registration.js
+1
-1
spec/roster.js
spec/roster.js
+1
-1
src/converse-muc-views.js
src/converse-muc-views.js
+4
-4
src/headless/converse-core.js
src/headless/converse-core.js
+1
-1
src/headless/converse-disco.js
src/headless/converse-disco.js
+1
-1
src/headless/converse-muc.js
src/headless/converse-muc.js
+4
-4
tests/utils.js
tests/utils.js
+1
-1
No files found.
CHANGES.md
View file @
3aa9ee1b
...
...
@@ -646,7 +646,7 @@ More info here: https://github.com/LeaVerou/awesomplete/pull/17082
## 2.0.4 (2016-12-13)
-
#737: Bugfix. Translations weren't being applied. [jcbrand]
-
Fetch room info and store it on the room model.
For context, see: http://xmpp.org/extensions/xep-0045.html#disco-roominfo [jcbrand]
For context, see: http
s
://xmpp.org/extensions/xep-0045.html#disco-roominfo [jcbrand]
-
Bugfix. Switching from bookmarks form to config form shows only the spinner. [jcbrand]
-
Bugfix. Other room occupants sometimes not shown when reloading the page. [jcbrand]
-
Bugfix. Due to changes in
`converse-core`
the controlbox wasn't aware anymore of
...
...
docs/source/configuration.rst
View file @
3aa9ee1b
...
...
@@ -222,7 +222,7 @@ allow_registration
* Default: ``true``
Support for `XEP-0077: In band registration <http://xmpp.org/extensions/xep-0077.html>`_
Support for `XEP-0077: In band registration <http
s
://xmpp.org/extensions/xep-0077.html>`_
Allow XMPP account registration showing the corresponding UI register form interface.
...
...
@@ -572,7 +572,7 @@ csi_waiting_time
* Default: ``0``
This option adds support for `XEP-0352 Client State Indication <http://xmpp.org/extensions/xep-0352.html>_`
This option adds support for `XEP-0352 Client State Indication <http
s
://xmpp.org/extensions/xep-0352.html>_`
If Converse is idle for the configured amount of seconds, a chat state
indication of ``inactive`` will be sent out to the XMPP server (if the server
...
...
@@ -806,7 +806,7 @@ See also:
Currently the "keepalive" setting only works with BOSH and not with
websockets. This is because XMPP over websocket does not use the same
session token as with BOSH. A possible solution for this is to implement
`XEP-0198 <http://xmpp.org/extensions/xep-0198.html>`_, specifically
`XEP-0198 <http
s
://xmpp.org/extensions/xep-0198.html>`_, specifically
with regards to "stream resumption".
.. _`locales`:
...
...
@@ -993,7 +993,7 @@ muc_instant_rooms
Determines whether 'instant' (also called 'dynamic' in OpenFire) rooms are created.
Otherwise rooms first have to be configured before they're available to other
users (so-called "registered rooms" in `MUC-0045 <http://xmpp.org/extensions/xep-0045.html#createroom>`_).
users (so-called "registered rooms" in `MUC-0045 <http
s
://xmpp.org/extensions/xep-0045.html#createroom>`_).
From a UX perspective, if this settings is `false`, then a configuration form will
render, that has to be filled in first, before the room can be joined by other
...
...
docs/source/developer_api.rst
View file @
3aa9ee1b
...
...
@@ -1050,7 +1050,7 @@ Room attributes that may be passed in:
configured automatically. Currently it doesn't make sense to specify
``roomconfig`` values if ``auto_configure`` is set to ``false``.
For a list of configuration values that can be passed in, refer to these values
in the `XEP-0045 MUC specification <http://xmpp.org/extensions/xep-0045.html#registrar-formtype-owner>`_.
in the `XEP-0045 MUC specification <http
s
://xmpp.org/extensions/xep-0045.html#registrar-formtype-owner>`_.
The values should be named without the ``muc#roomconfig_`` prefix.
* *maximize*: A boolean, indicating whether minimized rooms should also be
maximized, when opened. Set to ``false`` by default.
...
...
docs/source/index.rst
View file @
3aa9ee1b
...
...
@@ -20,7 +20,7 @@ contribute, please read the :doc:`documentation` page.
Introduction
============
Converse is a free and open-source `XMPP <http://xmpp.org/about-xmpp/>`_
Converse is a free and open-source `XMPP <http
s
://xmpp.org/about-xmpp/>`_
chat client written in JavaScript which can be tightly integrated into any website.
The benefit of using converse.js as opposed to relying on a SaaS
...
...
docs/source/setup.rst
View file @
3aa9ee1b
...
...
@@ -57,7 +57,7 @@ The various components
An XMPP server
==============
Converse uses `XMPP <http://xmpp.org/about-xmpp/>`_ as its
Converse uses `XMPP <http
s
://xmpp.org/about-xmpp/>`_ as its
messaging protocol, and therefore needs to connect to an XMPP/Jabber
server (Jabber® is an older and more user-friendly synonym for XMPP).
...
...
@@ -67,7 +67,7 @@ authentication sessions to log in users to the XMPP server (i.e. :ref:`session s
then you'll have to set up your own XMPP server.
You can find a list of public XMPP servers/providers on `compliance.conversations.im <http://compliance.conversations.im/>`_
and a list of servers that you can set up yourself on `xmpp.org <http://xmpp.org/xmpp-software/servers/>`_.
and a list of servers that you can set up yourself on `xmpp.org <http
s
://xmpp.org/xmpp-software/servers/>`_.
.. _`BOSH-section`:
...
...
@@ -90,7 +90,7 @@ server, we need a proxy which acts as a bridge between these two protocols.
This is the job of a BOSH connection manager. BOSH (Bidirectional-streams Over
Synchronous HTTP) is a protocol for allowing XMPP communication over HTTP. The
protocol is defined in `XEP-0206: XMPP Over BOSH <http://xmpp.org/extensions/xep-0206.html>`_.
protocol is defined in `XEP-0206: XMPP Over BOSH <http
s
://xmpp.org/extensions/xep-0206.html>`_.
Popular XMPP servers such as `Ejabberd <http://www.ejabberd.im>`_,
Prosody `(mod_bosh) <http://prosody.im/doc/setting_up_bosh>`_ and
...
...
@@ -258,7 +258,7 @@ Option 1). Server-side authentication via BOSH prebinding
---------------------------------------------------------
To **prebind** refers to a technique whereby your web application sets up an
authenticated BOSH session with the XMPP server or a standalone `BOSH <http://xmpp.org/about-xmpp/technology-overview/bosh/>`_
authenticated BOSH session with the XMPP server or a standalone `BOSH <http
s
://xmpp.org/about-xmpp/technology-overview/bosh/>`_
connection manager.
Once authenticated, it receives RID and SID tokens which need to be passed
...
...
spec/chatbox.js
View file @
3aa9ee1b
...
...
@@ -671,7 +671,7 @@
await
test_utils
.
waitForRoster
(
_converse
,
'
current
'
);
test_utils
.
openControlBox
();
// See XEP-0085 http://xmpp.org/extensions/xep-0085.html#definitions
// See XEP-0085 http
s
://xmpp.org/extensions/xep-0085.html#definitions
spyOn
(
_converse
,
'
emit
'
);
const
sender_jid
=
mock
.
cur_names
[
1
].
replace
(
/ /g
,
'
.
'
).
toLowerCase
()
+
'
@localhost
'
;
await
test_utils
.
waitUntil
(()
=>
_converse
.
rosterview
.
el
.
querySelectorAll
(
'
.roster-group
'
).
length
);
...
...
@@ -817,7 +817,7 @@
test_utils
.
openControlBox
();
await
test_utils
.
waitUntil
(()
=>
_converse
.
rosterview
.
el
.
querySelectorAll
(
'
.roster-group
'
).
length
);
// TODO: only show paused state if the previous state was composing
// See XEP-0085 http://xmpp.org/extensions/xep-0085.html#definitions
// See XEP-0085 http
s
://xmpp.org/extensions/xep-0085.html#definitions
spyOn
(
_converse
,
'
emit
'
).
and
.
callThrough
();
const
sender_jid
=
mock
.
cur_names
[
1
].
replace
(
/ /g
,
'
.
'
).
toLowerCase
()
+
'
@localhost
'
;
const
view
=
await
test_utils
.
openChatBoxFor
(
_converse
,
sender_jid
);
...
...
@@ -985,7 +985,7 @@
await
test_utils
.
waitForRoster
(
_converse
,
'
current
'
);
test_utils
.
openControlBox
();
const
sender_jid
=
mock
.
cur_names
[
1
].
replace
(
/ /g
,
'
.
'
).
toLowerCase
()
+
'
@localhost
'
;
// See XEP-0085 http://xmpp.org/extensions/xep-0085.html#definitions
// See XEP-0085 http
s
://xmpp.org/extensions/xep-0085.html#definitions
spyOn
(
_converse
,
'
emit
'
);
await
test_utils
.
openChatBoxFor
(
_converse
,
sender_jid
);
const
view
=
_converse
.
chatboxviews
.
get
(
sender_jid
);
...
...
spec/muc.js
View file @
3aa9ee1b
...
...
@@ -347,7 +347,7 @@
// The user has just entered the room (because join was called)
// and receives their own presence from the server.
// See example 24:
// http://xmpp.org/extensions/xep-0045.html#enter-pres
// http
s
://xmpp.org/extensions/xep-0045.html#enter-pres
//
/* <presence xmlns="jabber:client" to="jordie.langen@chat.example.org/converse.js-11659299" from="myroom@conference.chat.example.org/jc">
* <x xmlns="http://jabber.org/protocol/muc#user">
...
...
@@ -1219,7 +1219,7 @@
/* Check that an IQ is sent out, asking for the
* configuration form.
* See: // http://xmpp.org/extensions/xep-0045.html#example-163
* See: // http
s
://xmpp.org/extensions/xep-0045.html#example-163
*
* <iq from='crone1@shakespeare.lit/desktop'
* id='config1'
...
...
@@ -1234,7 +1234,7 @@
`</iq>`
);
/* Server responds with the configuration form.
* See: // http://xmpp.org/extensions/xep-0045.html#example-165
* See: // http
s
://xmpp.org/extensions/xep-0045.html#example-165
*/
var
config_stanza
=
$iq
({
from
:
'
coven@chat.shakespeare.lit
'
,
'
id
'
:
IQ_id
,
...
...
@@ -1398,7 +1398,7 @@
for
(
var
i
=
0
;
i
<
mock
.
chatroom_names
.
length
;
i
++
)
{
name
=
mock
.
chatroom_names
[
i
];
role
=
mock
.
chatroom_roles
[
name
].
role
;
// See example 21 http://xmpp.org/extensions/xep-0045.html#enter-pres
// See example 21 http
s
://xmpp.org/extensions/xep-0045.html#enter-pres
jid
=
presence
=
$pres
({
to
:
'
dummy@localhost/pda
'
,
...
...
@@ -1418,11 +1418,11 @@
}
// Test users leaving the groupchat
// http://xmpp.org/extensions/xep-0045.html#exit
// http
s
://xmpp.org/extensions/xep-0045.html#exit
for
(
i
=
mock
.
chatroom_names
.
length
-
1
;
i
>-
1
;
i
--
)
{
name
=
mock
.
chatroom_names
[
i
];
role
=
mock
.
chatroom_roles
[
name
].
role
;
// See example 21 http://xmpp.org/extensions/xep-0045.html#enter-pres
// See example 21 http
s
://xmpp.org/extensions/xep-0045.html#enter-pres
presence
=
$pres
({
to
:
'
dummy@localhost/pda
'
,
from
:
'
lounge@localhost/
'
+
name
,
...
...
@@ -1452,7 +1452,7 @@
for
(
var
i
=
0
;
i
<
mock
.
chatroom_names
.
length
;
i
++
)
{
name
=
mock
.
chatroom_names
[
i
];
role
=
mock
.
chatroom_roles
[
name
].
role
;
// See example 21 http://xmpp.org/extensions/xep-0045.html#enter-pres
// See example 21 http
s
://xmpp.org/extensions/xep-0045.html#enter-pres
jid
=
presence
=
$pres
({
to
:
'
dummy@localhost/pda
'
,
...
...
@@ -1472,11 +1472,11 @@
}
// Test users leaving the groupchat
// http://xmpp.org/extensions/xep-0045.html#exit
// http
s
://xmpp.org/extensions/xep-0045.html#exit
for
(
i
=
mock
.
chatroom_names
.
length
-
1
;
i
>-
1
;
i
--
)
{
name
=
mock
.
chatroom_names
[
i
];
role
=
mock
.
chatroom_roles
[
name
].
role
;
// See example 21 http://xmpp.org/extensions/xep-0045.html#enter-pres
// See example 21 http
s
://xmpp.org/extensions/xep-0045.html#enter-pres
presence
=
$pres
({
to
:
'
dummy@localhost/pda
'
,
from
:
'
lounge@localhost/
'
+
name
,
...
...
@@ -1695,7 +1695,7 @@
// The user has just entered the groupchat (because join was called)
// and receives their own presence from the server.
// See example 24:
// http://xmpp.org/extensions/xep-0045.html#enter-pres
// http
s
://xmpp.org/extensions/xep-0045.html#enter-pres
const
presence
=
$pres
({
to
:
'
dummy@localhost/resource
'
,
from
:
'
lounge@localhost/thirdwitch
'
,
...
...
@@ -1946,7 +1946,7 @@
async
function
(
done
,
_converse
)
{
await
test_utils
.
openAndEnterChatRoom
(
_converse
,
'
jdev
'
,
'
conference.jabber.org
'
,
'
jc
'
);
const
text
=
'
Jabber/XMPP Development | RFCs and Extensions: http://xmpp.org/ | Protocol and XSF discussions: xsf@muc.xmpp.org
'
;
const
text
=
'
Jabber/XMPP Development | RFCs and Extensions: http
s
://xmpp.org/ | Protocol and XSF discussions: xsf@muc.xmpp.org
'
;
let
stanza
=
u
.
toStanza
(
`
<message xmlns="jabber:client" to="jc@opkode.com/_converse.js-60429116" type="groupchat" from="jdev@conference.jabber.org/ralphm">
<subject>
${
text
}
</subject>
...
...
@@ -2008,7 +2008,7 @@
* nickname and one indicating availability for the new
* nickname.
*
* See: http://xmpp.org/extensions/xep-0045.html#changenick
* See: http
s
://xmpp.org/extensions/xep-0045.html#changenick
*
* <presence
* from='coven@localhost/thirdwitch'
...
...
@@ -4082,7 +4082,7 @@
spyOn
(
_converse
.
ChatRoom
.
prototype
,
'
getRoomFeatures
'
).
and
.
callFake
(()
=>
Promise
.
resolve
());
roomspanel
.
delegateEvents
();
// We need to rebind all events otherwise our spy won't be called
// See: http://xmpp.org/extensions/xep-0045.html#disco-rooms
// See: http
s
://xmpp.org/extensions/xep-0045.html#disco-rooms
expect
(
modal
.
el
.
querySelectorAll
(
'
.available-chatrooms li
'
).
length
).
toBe
(
0
);
const
server_input
=
modal
.
el
.
querySelector
(
'
input[name="server"]
'
);
...
...
@@ -4299,7 +4299,7 @@
expect
(
sizzle
(
'
div.chat-info:last
'
,
chat_content
).
pop
().
textContent
)
.
toBe
(
"
nomorenicks has entered the groupchat
"
);
// See XEP-0085 http://xmpp.org/extensions/xep-0085.html#definitions
// See XEP-0085 http
s
://xmpp.org/extensions/xep-0085.html#definitions
// <composing> state
let
msg
=
$msg
({
...
...
@@ -4475,7 +4475,7 @@
expect
(
sizzle
(
'
div.chat-info:last
'
,
chat_content
).
pop
().
textContent
)
.
toBe
(
"
nomorenicks has entered the groupchat
"
);
// See XEP-0085 http://xmpp.org/extensions/xep-0085.html#definitions
// See XEP-0085 http
s
://xmpp.org/extensions/xep-0085.html#definitions
// <composing> state
var
msg
=
$msg
({
...
...
spec/room_registration.js
View file @
3aa9ee1b
...
...
@@ -112,7 +112,7 @@
}).
then
(
stanza
=>
{
// The user has just entered the room (because join was called)
// and receives their own presence from the server.
// See example 24: http://xmpp.org/extensions/xep-0045.html#enter-pres
// See example 24: http
s
://xmpp.org/extensions/xep-0045.html#enter-pres
const
presence
=
$pres
({
to
:
_converse
.
connection
.
jid
,
from
:
room_jid
,
...
...
spec/roster.js
View file @
3aa9ee1b
...
...
@@ -1270,7 +1270,7 @@
expect
(
_converse
.
roster
.
pluck
(
'
jid
'
).
length
).
toBe
(
1
);
expect
(
_
.
includes
(
_converse
.
roster
.
pluck
(
'
jid
'
),
'
data@enterprise
'
)).
toBeTruthy
();
// Taken from the spec
// http://xmpp.org/rfcs/rfc3921.html#rfc.section.7.3
// http
s
://xmpp.org/rfcs/rfc3921.html#rfc.section.7.3
stanza
=
$iq
({
to
:
_converse
.
connection
.
jid
,
type
:
'
result
'
,
...
...
src/converse-muc-views.js
View file @
3aa9ee1b
...
...
@@ -128,7 +128,7 @@ converse.plugins.add('converse-muc-views', {
return
str
;
}
/* http://xmpp.org/extensions/xep-0045.html
/* http
s
://xmpp.org/extensions/xep-0045.html
* ----------------------------------------
* 100 message Entering a groupchat Inform user that any occupant is allowed to see the user's full JID
* 101 message (out of band) Affiliation change Inform user that his or her affiliation changed while not in the groupchat
...
...
@@ -206,7 +206,7 @@ converse.plugins.add('converse-muc-views', {
* (XMLElement) stanza: The IQ stanza containing the groupchat
* info.
*/
// All MUC features found here: http://xmpp.org/registrar/disco-features.html
// All MUC features found here: http
s
://xmpp.org/registrar/disco-features.html
el
.
querySelector
(
'
span.spinner
'
).
remove
();
el
.
querySelector
(
'
a.room-info
'
).
classList
.
add
(
'
selected
'
);
el
.
insertAdjacentHTML
(
...
...
@@ -812,7 +812,7 @@ converse.plugins.add('converse-muc-views', {
* ignore <gone/> notifications in groupchats.
*
* As laid out in the business rules in XEP-0085
* http://xmpp.org/extensions/xep-0085.html#bizrules-groupchat
* http
s
://xmpp.org/extensions/xep-0085.html#bizrules-groupchat
*/
if
(
message
.
get
(
'
fullname
'
)
===
this
.
model
.
get
(
'
nick
'
))
{
// Don't know about other servers, but OpenFire sends
...
...
@@ -1669,7 +1669,7 @@ converse.plugins.add('converse-muc-views', {
showStatusMessages
(
stanza
)
{
/* Check for status codes and communicate their purpose to the user.
* See: http://xmpp.org/registrar/mucstatus.html
* See: http
s
://xmpp.org/registrar/mucstatus.html
*
* Parameters:
* (XMLElement) stanza: The message or presence stanza
...
...
src/headless/converse-core.js
View file @
3aa9ee1b
...
...
@@ -165,7 +165,7 @@ _converse.TIMEOUTS = { // Set as module attr so that we can override in tests.
};
// XEP-0085 Chat states
// http://xmpp.org/extensions/xep-0085.html
// http
s
://xmpp.org/extensions/xep-0085.html
_converse
.
INACTIVE
=
'
inactive
'
;
_converse
.
ACTIVE
=
'
active
'
;
_converse
.
COMPOSING
=
'
composing
'
;
...
...
src/headless/converse-disco.js
View file @
3aa9ee1b
...
...
@@ -217,7 +217,7 @@ converse.plugins.add('converse-disco', {
});
function
addClientFeatures
()
{
// See http://xmpp.org/registrar/disco-categories.html
// See http
s
://xmpp.org/registrar/disco-categories.html
_converse
.
api
.
disco
.
own
.
identities
.
add
(
'
client
'
,
'
web
'
,
'
Converse
'
);
_converse
.
api
.
disco
.
own
.
features
.
add
(
Strophe
.
NS
.
BOSH
);
...
...
src/headless/converse-muc.js
View file @
3aa9ee1b
...
...
@@ -538,7 +538,7 @@ converse.plugins.add('converse-muc', {
/* Send an IQ stanza to the server, asking it for the
* member-list of this groupchat.
*
* See: http://xmpp.org/extensions/xep-0045.html#modifymember
* See: http
s
://xmpp.org/extensions/xep-0045.html#modifymember
*
* Parameters:
* (String) affiliation: The specific member list to
...
...
@@ -559,7 +559,7 @@ converse.plugins.add('converse-muc', {
/* Send IQ stanzas to the server to set an affiliation for
* the provided JIDs.
*
* See: http://xmpp.org/extensions/xep-0045.html#modifymember
* See: http
s
://xmpp.org/extensions/xep-0045.html#modifymember
*
* XXX: Prosody doesn't accept multiple JIDs' affiliations
* being set in one IQ stanza, so as a workaround we send
...
...
@@ -728,7 +728,7 @@ converse.plugins.add('converse-muc', {
/* Send IQ stanzas to the server to modify the
* affiliations in this groupchat.
*
* See: http://xmpp.org/extensions/xep-0045.html#modifymember
* See: http
s
://xmpp.org/extensions/xep-0045.html#modifymember
*
* Parameters:
* (Object) members: A map of jids, affiliations and optionally reasons
...
...
@@ -1498,7 +1498,7 @@ converse.plugins.add('converse-muc', {
* configured automatically. Currently it doesn't make sense to specify
* `roomconfig` values if `auto_configure` is set to `false`.
* For a list of configuration values that can be passed in, refer to these values
* in the [XEP-0045 MUC specification](http://xmpp.org/extensions/xep-0045.html#registrar-formtype-owner).
* in the [XEP-0045 MUC specification](http
s
://xmpp.org/extensions/xep-0045.html#registrar-formtype-owner).
* The values should be named without the `muc#roomconfig_` prefix.
* @param {boolean} [attrs.maximize] A boolean, indicating whether minimized rooms should also be
* maximized, when opened. Set to `false` by default.
...
...
tests/utils.js
View file @
3aa9ee1b
...
...
@@ -182,7 +182,7 @@
// The user has just entered the room (because join was called)
// and receives their own presence from the server.
// See example 24: http://xmpp.org/extensions/xep-0045.html#enter-pres
// See example 24: http
s
://xmpp.org/extensions/xep-0045.html#enter-pres
var
presence
=
$pres
({
to
:
_converse
.
connection
.
jid
,
from
:
`
${
room_jid
}
/
${
nick
}
`
,
...
...
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