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
4d2c807c
Commit
4d2c807c
authored
Aug 09, 2017
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #220. Enable usage of both `_` and `fp` in non-AMD case
parent
93e67567
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
112 additions
and
1090 deletions
+112
-1090
3rdparty/lodash.fp.js
3rdparty/lodash.fp.js
+4
-2
demo/without_bundled_dependencies.html
demo/without_bundled_dependencies.html
+10
-11
dist/converse-no-dependencies.js
dist/converse-no-dependencies.js
+93
-1075
src/build-no-dependencies.js
src/build-no-dependencies.js
+3
-1
src/config.js
src/config.js
+1
-1
src/end-no-dependencies.frag
src/end-no-dependencies.frag
+1
-0
No files found.
3rdparty/lodash.fp.js
View file @
4d2c807c
...
...
@@ -69,7 +69,9 @@ return /******/ (function(modules) { // webpackBootstrap
}
if
(
typeof
_
==
'
function
'
&&
typeof
_
.
runInContext
==
'
function
'
)
{
_
=
browserConvert
(
_
.
runInContext
());
// XXX: Customization in order to be able to run both _ and fp in the
// non-AMD usecase.
fp
=
browserConvert
(
_
.
runInContext
());
}
module
.
exports
=
browserConvert
;
...
...
@@ -1037,4 +1039,4 @@ return /******/ (function(modules) { // webpackBootstrap
/***/
}
/******/
])
});
;
\ No newline at end of file
;
demo/without_bundled_dependencies.html
View file @
4d2c807c
...
...
@@ -52,9 +52,10 @@
<script
type=
"text/javascript"
src=
"../dist/locales.js"
></script>
<!-- END I18N -->
<script
type=
"text/javascript"
src=
"../node_modules/awesomplete/awesomplete.js"
></script>
<script
type=
"text/javascript"
src=
"../node_modules/awesomplete
-avoid-xss
/awesomplete.js"
></script>
<script
type=
"text/javascript"
src=
"../node_modules/moment/min/moment-with-locales.js"
></script>
<script
type=
"text/javascript"
src=
"../3rdparty/lodash.fp.js"
></script>
<script
src=
"../dist/converse-no-dependencies.js"
></script>
</head>
<body
id=
"page-top"
data-spy=
"scroll"
data-target=
".navbar-custom"
>
...
...
@@ -80,16 +81,14 @@
</body>
<script>
require
([
'
converse
'
],
function
(
converse
)
{
converse
.
initialize
({
bosh_service_url
:
'
https://conversejs.org/http-bind/
'
,
// Please use this connection manager only for testing purposes
i18n
:
locales
.
en
,
// Refer to ./locale/locales.js to see which locales are supported
prebind
:
false
,
show_controlbox_by_default
:
true
,
debug
:
true
,
roster_groups
:
true
,
keepalive
:
true
});
converse
.
initialize
({
bosh_service_url
:
'
https://conversejs.org/http-bind/
'
,
// Please use this connection manager only for testing purposes
i18n
:
locales
.
en
,
// Refer to ./locale/locales.js to see which locales are supported
prebind
:
false
,
show_controlbox_by_default
:
true
,
debug
:
true
,
roster_groups
:
true
,
keepalive
:
true
});
</script>
</html>
dist/converse-no-dependencies.js
View file @
4d2c807c
This diff is collapsed.
Click to expand it.
src/build-no-dependencies.js
View file @
4d2c807c
...
...
@@ -36,7 +36,9 @@
"
strophe.vcard
"
,
"
strophe.ping
"
,
"
otr
"
,
"
lodash
"
"
lodash
"
,
"
lodash.converter
"
,
"
lodash.noconflict
"
],
paths
:
{
"
converse-bookmarks
"
:
"
builds/converse-bookmarks
"
,
...
...
src/config.js
View file @
4d2c807c
...
...
@@ -44,7 +44,7 @@ require.config({
"
typeahead
"
:
"
components/typeahead.js/index
"
,
"
underscore
"
:
"
src/underscore-shim
"
,
"
utils
"
:
"
src/utils
"
,
"
xss.noconflict
"
:
"
src/xss.noconflict
"
,
"
xss.noconflict
"
:
"
src/xss.noconflict
"
,
"
xss
"
:
"
node_modules/xss/dist/xss
"
,
// Converse
...
...
src/end-no-dependencies.frag
View file @
4d2c807c
...
...
@@ -4,6 +4,7 @@
define
(
'
jquery
.
browser
'
,
[],
function
()
{
return
jQuery
;
});
define
(
'
awesomplete
'
,
[],
function
()
{
return
jQuery
;
});
define
(
'
lodash
'
,
[],
function
()
{
return
_
;
});
define
(
'
lodash
.
converter
'
,
[],
function
()
{
return
fp
;
});
define
(
'
lodash
.
noconflict
'
,
[],
function
()
{
return
_
;
});
define
(
'
moment_with_locales
'
,
[],
function
()
{
return
moment
;
});
define
(
'
strophe
'
,
[],
function
()
{
...
...
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