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
04e948ad
Commit
04e948ad
authored
May 11, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build error by setting dependency
parent
2515001a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
50 deletions
+55
-50
dist/converse.js
dist/converse.js
+53
-49
src/build.js
src/build.js
+1
-0
src/converse-chatboxes.js
src/converse-chatboxes.js
+1
-1
No files found.
dist/converse.js
View file @
04e948ad
...
...
@@ -49664,65 +49664,69 @@ return __p
//
// Copyright (c) 2013-2018, the Converse.js developers
// Licensed under the Mozilla Public License (MPLv2)
(function (root, factory) {
define('converse-caps',["converse-core"], factory);
}(this, function (converse) {
define('converse-caps',["converse-core"], factory);
})(this, function (converse) {
var _converse$env = converse.env,
Strophe = _converse$env.Strophe,
$build = _converse$env.$build,
_ = _converse$env._,
b64_sha1 = _converse$env.b64_sha1;
Strophe.addNamespace('CAPS', "http://jabber.org/protocol/caps");
const { Strophe, $build, _, b64_sha1 } = converse.env;
function propertySort(array, property) {
return array.sort(function (a, b) {
return a[property] > b[property] ? -1 : 1;
});
}
Strophe.addNamespace('CAPS', "http://jabber.org/protocol/caps");
function generateVerificationString(_converse) {
var identities = _converse.api.disco.own.identities.get(),
features = _converse.api.disco.own.features.get();
function propertySort (array, property) {
return array.sort((a, b) => { return a[property] > b[property] ? -1 : 1 });
if (identities.length > 1) {
propertySort(identities, "category");
propertySort(identities, "type");
propertySort(identities, "lang");
}
function generateVerificationString (_converse
) {
const identities = _converse.api.disco.own.identities.get(),
features = _converse.api.disco.own.features.get(
);
var S = _.reduce(identities, function (result, id
) {
return "".concat(result).concat(id.category, "/").concat(id.type, "/").concat(_.get(id, 'lang', ''), "/").concat(id.name, "<");
}, ""
);
if (identities.length > 1) {
propertySort(identities, "category");
propertySort(identities, "type");
propertySort(identities, "lang");
}
let S = _.reduce(
identities,
(result, id) => `${result}${id.category}/${id.type}/${_.get(id, 'lang', '')}/${id.name}<`,
"");
features.sort();
S = _.reduce(features, (result, feature) => `${result}${feature}<`, S);
return b64_sha1(S);
}
features.sort();
S = _.reduce(features, function (result, feature) {
return "".concat(result).concat(feature, "<");
}, S);
return b64_sha1(S);
}
function createCapsNode
(_converse) {
return $build("c", {
'xmlns': Strophe.NS.CAPS,
'hash': "sha-1",
'node': "https://conversejs.org",
'ver': generateVerificationString(_converse)
}).nodeTree;
}
function createCapsNode
(_converse) {
return $build("c", {
'xmlns': Strophe.NS.CAPS,
'hash': "sha-1",
'node': "https://conversejs.org",
'ver': generateVerificationString(_converse)
}).nodeTree;
}
converse.plugins.add('converse-caps', {
converse.plugins.add('converse-caps', {
overrides: {
// Overrides mentioned here will be picked up by converse.js's
// plugin architecture they will replace existing methods on the
// relevant objects or classes.
XMPPStatus: {
constructPresence: function constructPresence() {
var presence = this.__super__.constructPresence.apply(this, arguments);
overrides: {
// Overrides mentioned here will be picked up by converse.js's
// plugin architecture they will replace existing methods on the
// relevant objects or classes.
XMPPStatus: {
constructPresence () {
const presence = this.__super__.constructPresence.apply(this, arguments);
presence.root().cnode(createCapsNode(this.__super__._converse));
return presence;
}
}
presence.root().cnode(createCapsNode(this.__super__._converse));
return presence;
}
});
}));
}
}
});
});
//# sourceMappingURL=converse-caps.js.map;
// Native Javascript for Bootstrap 4 v2.0.22 | © dnp_theme | MIT-License
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
...
...
@@ -53800,7 +53804,7 @@ return __p
_ = _converse$env._;
var u = converse.env.utils;
converse.plugins.add('converse-chatboxes', {
dependencies: ["converse-vcard"],
dependencies: ["converse-
roster", "converse-
vcard"],
overrides: {
// Overrides mentioned here will be picked up by converse.js's
// plugin architecture they will replace existing methods on the
src/build.js
View file @
04e948ad
...
...
@@ -5,6 +5,7 @@
paths
:
{
"
backbone.vdomview
"
:
"
builds/backbone.vdomview
"
,
"
converse-bookmarks
"
:
"
builds/converse-bookmarks
"
,
"
converse-caps
"
:
"
builds/converse-caps
"
,
"
converse-chatboxes
"
:
"
builds/converse-chatboxes
"
,
"
converse-chatview
"
:
"
builds/converse-chatview
"
,
"
converse-controlbox
"
:
"
builds/converse-controlbox
"
,
...
...
src/converse-chatboxes.js
View file @
04e948ad
...
...
@@ -22,7 +22,7 @@
converse
.
plugins
.
add
(
'
converse-chatboxes
'
,
{
dependencies
:
[
"
converse-vcard
"
],
dependencies
:
[
"
converse-
roster
"
,
"
converse-
vcard
"
],
overrides
:
{
// Overrides mentioned here will be picked up by converse.js's
...
...
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