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
b7643eab
Commit
b7643eab
authored
Jan 27, 2015
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial work on letting converse.js use the AMD version of strophe.js
parent
6aa38952
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
45 deletions
+45
-45
converse.js
converse.js
+16
-25
dev.html
dev.html
+2
-1
main.js
main.js
+16
-10
src/deps-website.js
src/deps-website.js
+11
-9
No files found.
converse.js
View file @
b7643eab
...
...
@@ -12,34 +12,25 @@
define
(
"
converse
"
,
[
"
converse-dependencies
"
,
"
converse-templates
"
],
function
(
dependencies
,
templates
)
{
var
otr
=
dependencies
.
otr
;
if
(
typeof
otr
!==
"
undefined
"
)
{
return
factory
(
dependencies
.
jQuery
,
_
,
otr
.
OTR
,
otr
.
DSA
,
templates
,
dependencies
.
moment
,
dependencies
.
utils
);
}
else
{
return
factory
(
dependencies
.
jQuery
,
_
,
undefined
,
undefined
,
templates
,
dependencies
.
moment
,
dependencies
.
utils
);
}
return
factory
(
dependencies
,
templates
);
}
);
}
else
{
root
.
converse
=
factory
(
jQuery
,
_
,
OTR
,
DSA
,
templates
,
moment
,
util
s
);
root
.
converse
=
factory
(
dependencies
,
template
s
);
}
}(
this
,
function
(
$
,
_
,
OTR
,
DSA
,
templates
,
moment
,
utils
)
{
}(
this
,
function
(
dependencies
,
templates
)
{
var
$
=
dependencies
.
jQuery
;
var
$iq
=
dependencies
.
$iq
;
var
$msg
=
dependencies
.
$msg
;
var
$pres
=
dependencies
.
$pres
;
var
DSA
=
dependencies
.
otr
?
dependencies
.
otr
.
DSA
:
undefined
;
var
OTR
=
dependencies
.
otr
?
dependencies
.
otr
.
OTR
:
undefined
;
var
Strophe
=
dependencies
.
Strophe
;
var
_
=
dependencies
.
underscore
;
var
moment
=
dependencies
.
moment
;
var
utils
=
dependencies
.
utils
;
var
b64_sha1
=
depencencies
.
SHA1
.
b64_sha1
;
// "use strict";
// Cannot use this due to Safari bug.
// See https://github.com/jcbrand/converse.js/issues/196
...
...
@@ -5288,7 +5279,7 @@
},
'
env
'
:
{
'
jQuery
'
:
$
,
'
Strophe
'
:
Strophe
,
'
Strophe
'
:
Strophe
,
// TODO: this must be wrapped
'
_
'
:
_
},
...
...
dev.html
View file @
b7643eab
...
...
@@ -248,7 +248,8 @@
play_sounds
:
true
,
roster_groups
:
true
,
show_controlbox_by_default
:
true
,
xhr_user_search
:
false
xhr_user_search
:
false
,
debug
:
true
});
});
</script>
...
...
main.js
View file @
b7643eab
var
config
;
if
(
typeof
(
require
)
===
'
undefined
'
)
{
/* XXX: Hack to work around r.js's stupid parsing.
* We want to save the configuration in a variable so that we can reuse it in
* tests/main.js.
*/
* We want to save the configuration in a variable so that we can reuse it in
* tests/main.js.
*/
require
=
{
config
:
function
(
c
)
{
config
=
c
;
...
...
@@ -27,7 +27,14 @@ require.config({
"
jquery.browser
"
:
"
components/jquery.browser/index
"
,
"
jquery.easing
"
:
"
components/jquery-easing-original/index
"
,
// XXX: Only required for https://conversejs.org website
"
moment
"
:
"
components/momentjs/moment
"
,
"
strophe
"
:
"
components/strophe/strophe
"
,
"
strophe-base64
"
:
"
components/strophe/src/base64
"
,
"
strophe-bosh
"
:
"
components/strophe/src/bosh
"
,
"
strophe-core
"
:
"
components/strophe/src/core
"
,
"
strophe-full
"
:
"
components/strophe/src/wrapper
"
,
"
strophe-md5
"
:
"
components/strophe/src/md5
"
,
"
strophe-sha1
"
:
"
components/strophe/src/sha1
"
,
"
strophe-websocket
"
:
"
components/strophe/src/websocket
"
,
"
strophe-polyfill
"
:
"
components/strophe/src/polyfill
"
,
"
strophe.disco
"
:
"
components/strophejs-plugins/disco/strophe.disco
"
,
"
strophe.muc
"
:
"
components/strophe.muc/index
"
,
"
strophe.roster
"
:
"
src/strophe.roster
"
,
...
...
@@ -161,12 +168,11 @@ require.config({
'
crypto.sha1
'
:
{
deps
:
[
'
crypto.core
'
]
},
'
crypto.sha256
'
:
{
deps
:
[
'
crypto.core
'
]
},
'
bigint
'
:
{
deps
:
[
'
crypto
'
]
},
'
strophe
'
:
{
exports
:
'
Strophe
'
},
'
strophe.disco
'
:
{
deps
:
[
'
strophe
'
]
},
'
strophe.muc
'
:
{
deps
:
[
'
strophe
'
]
},
'
strophe.register
'
:
{
deps
:
[
'
strophe
'
]
},
'
strophe.roster
'
:
{
deps
:
[
'
strophe
'
]
},
'
strophe.vcard
'
:
{
deps
:
[
'
strophe
'
]
}
'
strophe.disco
'
:
{
deps
:
[
'
strophe-full
'
]
},
'
strophe.muc
'
:
{
deps
:
[
'
strophe-full
'
]
},
'
strophe.register
'
:
{
deps
:
[
'
strophe-full
'
]
},
'
strophe.roster
'
:
{
deps
:
[
'
strophe-full
'
]
},
'
strophe.vcard
'
:
{
deps
:
[
'
strophe-full
'
]
}
}
});
...
...
src/deps-website.js
View file @
b7643eab
define
(
"
converse-dependencies
"
,
[
"
jquery
"
,
"
underscore
"
,
"
utils
"
,
"
otr
"
,
"
moment
"
,
"
strophe-full
"
,
"
strophe.muc
"
,
"
strophe.roster
"
,
"
strophe.vcard
"
,
"
strophe.disco
"
,
"
bootstrapJS
"
,
// XXX: Only for https://conversejs.org
"
backbone.browserStorage
"
,
"
backbone.overview
"
,
"
jquery.browser
"
,
"
jquery.easing
"
,
// XXX: Only for https://conversejs.org
"
typeahead
"
,
"
strophe
"
,
"
strophe.muc
"
,
"
strophe.roster
"
,
"
strophe.vcard
"
,
"
strophe.disco
"
],
function
(
$
,
utils
,
otr
,
moment
)
{
return
{
"
typeahead
"
],
function
(
$
,
_
,
utils
,
otr
,
moment
,
Strophe
)
{
return
_
.
extend
({
'
underscore
'
:
_
,
'
jQuery
'
:
$
,
'
otr
'
:
otr
,
'
moment
'
:
moment
,
'
utils
'
:
utils
};
}
,
Strophe
)
;
});
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