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
6dc9e8ed
Commit
6dc9e8ed
authored
May 24, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use webpack for module bundling
parent
d920c2a8
Changes
27
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
9624 additions
and
78215 deletions
+9624
-78215
.babelrc
.babelrc
+1
-1
Makefile
Makefile
+2
-1
dist/converse.js
dist/converse.js
+61
-74027
index.html
index.html
+2
-2
package-lock.json
package-lock.json
+9321
-4063
package.json
package.json
+8
-11
src/converse-bookmarks.js
src/converse-bookmarks.js
+4
-4
src/converse-chatboxes.js
src/converse-chatboxes.js
+1
-1
src/converse-chatview.js
src/converse-chatview.js
+16
-17
src/converse-controlbox.js
src/converse-controlbox.js
+4
-4
src/converse-dragresize.js
src/converse-dragresize.js
+1
-1
src/converse-fullscreen.js
src/converse-fullscreen.js
+1
-1
src/converse-headline.js
src/converse-headline.js
+1
-1
src/converse-message-view.js
src/converse-message-view.js
+6
-6
src/converse-minimize.js
src/converse-minimize.js
+4
-4
src/converse-modal.js
src/converse-modal.js
+1
-1
src/converse-muc-views.js
src/converse-muc-views.js
+20
-20
src/converse-profile.js
src/converse-profile.js
+5
-5
src/converse-register.js
src/converse-register.js
+7
-7
src/converse-roomslist.js
src/converse-roomslist.js
+2
-2
src/converse-rosterview.js
src/converse-rosterview.js
+8
-8
src/converse-vcard.js
src/converse-vcard.js
+1
-1
src/converse.js
src/converse.js
+0
-1
src/lodash.noconflict.js
src/lodash.noconflict.js
+0
-13
src/utils/core.js
src/utils/core.js
+4
-4
src/utils/form.js
src/utils/form.js
+9
-9
webpack.config.js
webpack.config.js
+134
-0
No files found.
.babelrc
View file @
6dc9e8ed
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
"presets": [
"presets": [
["@babel/preset-env", {
["@babel/preset-env", {
"targets": {
"targets": {
"browsers": ["last 2 versions", "safari >= 10", "IE >= 11"]
"browsers": ["last 2 versions", "safari >= 10", "IE >= 11"]
}
}
}]
}]
]
]
...
...
Makefile
View file @
6dc9e8ed
...
@@ -15,6 +15,7 @@ OXIPNG ?= oxipng
...
@@ -15,6 +15,7 @@ OXIPNG ?= oxipng
PAPER
=
PAPER
=
PO2JSON
?=
./node_modules/.bin/po2json
PO2JSON
?=
./node_modules/.bin/po2json
RJS
?=
./node_modules/.bin/r.js
RJS
?=
./node_modules/.bin/r.js
WEBPACK
?=
./node_modules/.bin/npx
SASS
?=
./.bundle/bin/sass
SASS
?=
./.bundle/bin/sass
SED
?=
sed
SED
?=
sed
SPHINXBUILD
?=
./bin/sphinx-build
SPHINXBUILD
?=
./bin/sphinx-build
...
@@ -155,7 +156,7 @@ watch: dev
...
@@ -155,7 +156,7 @@ watch: dev
.PHONY
:
watchjs
.PHONY
:
watchjs
watchjs
:
dev
watchjs
:
dev
$(BABEL)
--source-maps
--watch
=
./src
--out-dir
=
./builds
./node_modules/.bin/npx webpack
--mode
=
development
--watch
transpile
:
dev src
transpile
:
dev src
$(BABEL)
--source-maps
--out-dir
=
./builds ./src
$(BABEL)
--source-maps
--out-dir
=
./builds ./src
...
...
dist/converse.js
View file @
6dc9e8ed
This diff is collapsed.
Click to expand it.
index.html
View file @
6dc9e8ed
...
@@ -20,8 +20,8 @@
...
@@ -20,8 +20,8 @@
<!-- *********************************************************************** -->
<!-- *********************************************************************** -->
<
![
if
gte
IE
11
]
>
<
![
if
gte
IE
11
]
>
<link
type=
"text/css"
rel=
"stylesheet"
media=
"screen"
href=
"
https://cdn.conversejs.org/css/converse.min
.css"
/>
<link
type=
"text/css"
rel=
"stylesheet"
media=
"screen"
href=
"
css/converse
.css"
/>
<script
src=
"
https://cdn.conversejs.org/dist/converse.min
.js"
></script>
<script
src=
"
dist/converse
.js"
></script>
<
![
endif
]
>
<
![
endif
]
>
</head>
</head>
...
...
package-lock.json
View file @
6dc9e8ed
This diff is collapsed.
Click to expand it.
package.json
View file @
6dc9e8ed
...
@@ -29,11 +29,11 @@
...
@@ -29,11 +29,11 @@
"browser"
:
"*"
"browser"
:
"*"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"
@babel/cli
"
:
"
^7.0.0-beta.35
"
,
"
@babel/cli
"
:
"
^7.0.0-beta.48
"
,
"
@babel/core
"
:
"
^7.0.0-beta.35
"
,
"
@babel/core
"
:
"
^7.0.0-beta.48
"
,
"
@babel/preset-env
"
:
"
^7.0.0-beta.35
"
,
"
@babel/preset-env
"
:
"
^7.0.0-beta.48
"
,
"
almond
"
:
"
~0.3.3
"
,
"
awesomplete-avoid-xss
"
:
"
^1.1.2
"
,
"
awesomplete-avoid-xss
"
:
"
^1.1.2
"
,
"
babel-loader
"
:
"
^8.0.0-beta.3
"
,
"
backbone
"
:
"
1.3.3
"
,
"
backbone
"
:
"
1.3.3
"
,
"
backbone.browserStorage
"
:
"
0.0.3
"
,
"
backbone.browserStorage
"
:
"
0.0.3
"
,
"
backbone.nativeview
"
:
"
^0.3.3
"
,
"
backbone.nativeview
"
:
"
^0.3.3
"
,
...
@@ -57,28 +57,25 @@
...
@@ -57,28 +57,25 @@
"
jsdoc
"
:
"
^3.5.5
"
,
"
jsdoc
"
:
"
^3.5.5
"
,
"
jshint
"
:
"
^2.9.4
"
,
"
jshint
"
:
"
^2.9.4
"
,
"
lodash
"
:
"
4.17.4
"
,
"
lodash
"
:
"
4.17.4
"
,
"
lodash-template-
loader
"
:
"
^2.0.0
"
,
"
lodash-template-
webpack-loader
"
:
"
jcbrand/lodash-template-webpack-loader
"
,
"
moment
"
:
"~> 2.19.3 "
,
"
moment
"
:
"~> 2.19.3 "
,
"
npm
"
:
"
^5.7.1
"
,
"
otr
"
:
"
0.2.16
"
,
"
otr
"
:
"
0.2.16
"
,
"
pluggable.js
"
:
"
2.0.0
"
,
"
pluggable.js
"
:
"
2.0.0
"
,
"
po2json
"
:
"
^0.4.4
"
,
"
po2json
"
:
"
^0.4.4
"
,
"
requirejs
"
:
"
2.3.5
"
,
"
run-headless-chromium
"
:
"
^0.1.1
"
,
"
run-headless-chromium
"
:
"
^0.1.1
"
,
"
sinon
"
:
"
^2.1.0
"
,
"
sinon
"
:
"
^2.1.0
"
,
"
sizzle
"
:
"
^2.3.3
"
,
"
sizzle
"
:
"
^2.3.3
"
,
"
snabbdom
"
:
"
0.7.1
"
,
"
snabbdom
"
:
"
0.7.1
"
,
"
snyk
"
:
"
^1.21.2
"
,
"
strophe.js
"
:
"
1.2.14
"
,
"
strophe.js
"
:
"
1.2.14
"
,
"
strophejs-plugin-ping
"
:
"
0.0.1
"
,
"
strophejs-plugin-ping
"
:
"
0.0.1
"
,
"
strophejs-plugin-register
"
:
"
0.0.1
"
,
"
strophejs-plugin-register
"
:
"
0.0.1
"
,
"
strophejs-plugin-rsm
"
:
"
0.0.1
"
,
"
strophejs-plugin-rsm
"
:
"
0.0.1
"
,
"
text
"
:
"
requirejs/text#2.0.15
"
,
"
uglify-es
"
:
"
^3.0.24
"
,
"
uglify-es
"
:
"
^3.0.24
"
,
"
urijs
"
:
"
^1.19.1
"
,
"
urijs
"
:
"
^1.19.1
"
,
"
wait-until-promise
"
:
"
^1.0.0
"
,
"
wait-until-promise
"
:
"
^1.0.0
"
,
"
webpack
"
:
"
^4.0.1
"
,
"
webpack-cli
"
:
"
^2.1.4
"
,
"
xss
"
:
"
^0.3.3
"
"
xss
"
:
"
^0.3.3
"
},
"dependencies"
:
{
"
npm
"
:
"
^5.7.1
"
}
}
}
}
src/converse-bookmarks.js
View file @
6dc9e8ed
...
@@ -12,10 +12,10 @@
...
@@ -12,10 +12,10 @@
(
function
(
root
,
factory
)
{
(
function
(
root
,
factory
)
{
define
([
"
converse-core
"
,
define
([
"
converse-core
"
,
"
converse-muc
"
,
"
converse-muc
"
,
"
t
pl!chatroom_bookmark_form
"
,
"
t
emplates/chatroom_bookmark_form.html
"
,
"
t
pl!chatroom_bookmark_toggle
"
,
"
t
emplates/chatroom_bookmark_toggle.html
"
,
"
t
pl!bookmark
"
,
"
t
emplates/bookmark.html
"
,
"
t
pl!bookmarks_list
"
"
t
emplates/bookmarks_list.html
"
],
],
factory
);
factory
);
}(
this
,
function
(
}(
this
,
function
(
...
...
src/converse-chatboxes.js
View file @
6dc9e8ed
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
"
converse-core
"
,
"
converse-core
"
,
"
emojione
"
,
"
emojione
"
,
"
filesize
"
,
"
filesize
"
,
"
t
pl!chatboxes
"
,
"
t
emplates/chatboxes.html
"
,
"
backbone.overview
"
,
"
backbone.overview
"
,
"
form-utils
"
"
form-utils
"
],
factory
);
],
factory
);
...
...
src/converse-chatview.js
View file @
6dc9e8ed
...
@@ -5,26 +5,25 @@
...
@@ -5,26 +5,25 @@
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
(
function
(
root
,
factory
)
{
(
function
(
root
,
factory
)
{
define
([
define
([
"
converse-core
"
,
"
converse-core
"
,
"
bootstrap
"
,
"
bootstrap
"
,
"
emojione
"
,
"
emojione
"
,
"
xss
"
,
"
xss
"
,
"
t
pl!action
"
,
"
t
emplates/action.html
"
,
"
t
pl!chatbox
"
,
"
t
emplates/chatbox.html
"
,
"
t
pl!chatbox_head
"
,
"
t
emplates/chatbox_head.html
"
,
"
t
pl!chatbox_message_form
"
,
"
t
emplates/chatbox_message_form.html
"
,
"
t
pl!emojis
"
,
"
t
emplates/emojis.html
"
,
"
t
pl!error_message
"
,
"
t
emplates/error_message.html
"
,
"
t
pl!help_message
"
,
"
t
emplates/help_message.html
"
,
"
t
pl!info
"
,
"
t
emplates/info.html
"
,
"
t
pl!new_day
"
,
"
t
emplates/new_day.html
"
,
"
t
pl!user_details_moda
l
"
,
"
t
emplates/user_details_modal.htm
l
"
,
"
t
pl!toolbar_fileupload
"
,
"
t
emplates/toolbar_fileupload.html
"
,
"
t
pl!spinner
"
,
"
t
emplates/spinner.html
"
,
"
t
pl!spoiler_button
"
,
"
t
emplates/spoiler_button.html
"
,
"
t
pl!status_message
"
,
"
t
emplates/status_message.html
"
,
"
t
pl!toolbar
"
,
"
t
emplates/toolbar.html
"
,
"
converse-modal
"
,
"
converse-modal
"
,
"
converse-chatboxes
"
,
"
converse-chatboxes
"
,
"
converse-message-view
"
"
converse-message-view
"
...
...
src/converse-controlbox.js
View file @
6dc9e8ed
...
@@ -10,10 +10,10 @@
...
@@ -10,10 +10,10 @@
define
([
"
converse-core
"
,
define
([
"
converse-core
"
,
"
bootstrap
"
,
"
bootstrap
"
,
"
lodash.fp
"
,
"
lodash.fp
"
,
"
t
pl!converse_brand_heading
"
,
"
t
emplates/converse_brand_heading.html
"
,
"
t
pl!controlbox
"
,
"
t
emplates/controlbox.html
"
,
"
t
pl!controlbox_toggle
"
,
"
t
emplates/controlbox_toggle.html
"
,
"
t
pl!login_pane
l
"
,
"
t
emplates/login_panel.htm
l
"
,
"
converse-chatview
"
,
"
converse-chatview
"
,
"
converse-rosterview
"
,
"
converse-rosterview
"
,
"
converse-profile
"
"
converse-profile
"
...
...
src/converse-dragresize.js
View file @
6dc9e8ed
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
(
function
(
root
,
factory
)
{
(
function
(
root
,
factory
)
{
define
([
"
converse-core
"
,
define
([
"
converse-core
"
,
"
t
pl!dragresize
"
,
"
t
emplates/dragresize.html
"
,
"
converse-chatview
"
,
"
converse-chatview
"
,
"
converse-controlbox
"
"
converse-controlbox
"
],
factory
);
],
factory
);
...
...
src/converse-fullscreen.js
View file @
6dc9e8ed
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
(
function
(
root
,
factory
)
{
(
function
(
root
,
factory
)
{
define
([
"
converse-core
"
,
define
([
"
converse-core
"
,
"
t
pl!inverse_brand_heading
"
,
"
t
emplates/inverse_brand_heading.html
"
,
"
converse-chatview
"
,
"
converse-chatview
"
,
"
converse-controlbox
"
,
"
converse-controlbox
"
,
"
converse-muc
"
,
"
converse-muc
"
,
...
...
src/converse-headline.js
View file @
6dc9e8ed
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
(
function
(
root
,
factory
)
{
(
function
(
root
,
factory
)
{
define
([
define
([
"
converse-core
"
,
"
converse-core
"
,
"
t
pl!chatbox
"
,
"
t
emplates/chatbox.html
"
,
"
converse-chatview
"
,
"
converse-chatview
"
,
],
factory
);
],
factory
);
}(
this
,
function
(
converse
,
tpl_chatbox
)
{
}(
this
,
function
(
converse
,
tpl_chatbox
)
{
...
...
src/converse-message-view.js
View file @
6dc9e8ed
...
@@ -10,12 +10,12 @@
...
@@ -10,12 +10,12 @@
"
xss
"
,
"
xss
"
,
"
emojione
"
,
"
emojione
"
,
"
filesize
"
,
"
filesize
"
,
"
t
pl!action
"
,
"
t
emplates/action.html
"
,
"
t
pl!csn
"
,
"
t
emplates/csn.html
"
,
"
t
pl!file_progress
"
,
"
t
emplates/file_progress.html
"
,
"
t
pl!info
"
,
"
t
emplates/info.html
"
,
"
t
pl!message
"
,
"
t
emplates/message.html
"
,
"
t
pl!spoiler_message
"
"
t
emplates/spoiler_message.html
"
],
factory
);
],
factory
);
}(
this
,
function
(
}(
this
,
function
(
converse
,
converse
,
...
...
src/converse-minimize.js
View file @
6dc9e8ed
...
@@ -8,10 +8,10 @@
...
@@ -8,10 +8,10 @@
(
function
(
root
,
factory
)
{
(
function
(
root
,
factory
)
{
define
([
"
converse-core
"
,
define
([
"
converse-core
"
,
"
t
pl!chatbox_minimize
"
,
"
t
emplates/chatbox_minimize.html
"
,
"
t
pl!toggle_chats
"
,
"
t
emplates/toggle_chats.html
"
,
"
t
pl!trimmed_chat
"
,
"
t
emplates/trimmed_chat.html
"
,
"
t
pl!chats_pane
l
"
,
"
t
emplates/chats_panel.htm
l
"
,
"
converse-chatview
"
"
converse-chatview
"
],
factory
);
],
factory
);
}(
this
,
function
(
}(
this
,
function
(
...
...
src/converse-modal.js
View file @
6dc9e8ed
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
if
(
typeof
define
===
'
function
'
&&
define
.
amd
)
{
if
(
typeof
define
===
'
function
'
&&
define
.
amd
)
{
define
([
define
([
"
converse-core
"
,
"
converse-core
"
,
"
t
pl!alert_moda
l
"
,
"
t
emplates/alert_modal.htm
l
"
,
"
bootstrap
"
,
"
bootstrap
"
,
"
backbone.vdomview
"
"
backbone.vdomview
"
],
factory
);
],
factory
);
...
...
src/converse-muc-views.js
View file @
6dc9e8ed
...
@@ -8,26 +8,26 @@
...
@@ -8,26 +8,26 @@
define
([
define
([
"
converse-core
"
,
"
converse-core
"
,
"
muc-utils
"
,
"
muc-utils
"
,
"
t
pl!add_chatroom_moda
l
"
,
"
t
emplates/add_chatroom_modal.htm
l
"
,
"
t
pl!chatarea
"
,
"
t
emplates/chatarea.html
"
,
"
t
pl!chatroom
"
,
"
t
emplates/chatroom.html
"
,
"
t
pl!chatroom_disconnect
"
,
"
t
emplates/chatroom_disconnect.html
"
,
"
t
pl!chatroom_features
"
,
"
t
emplates/chatroom_features.html
"
,
"
t
pl!chatroom_form
"
,
"
t
emplates/chatroom_form.html
"
,
"
t
pl!chatroom_head
"
,
"
t
emplates/chatroom_head.html
"
,
"
t
pl!chatroom_invite
"
,
"
t
emplates/chatroom_invite.html
"
,
"
t
pl!chatroom_nickname_form
"
,
"
t
emplates/chatroom_nickname_form.html
"
,
"
t
pl!chatroom_password_form
"
,
"
t
emplates/chatroom_password_form.html
"
,
"
t
pl!chatroom_sidebar
"
,
"
t
emplates/chatroom_sidebar.html
"
,
"
t
pl!chatroom_toolbar
"
,
"
t
emplates/chatroom_toolbar.html
"
,
"
t
pl!info
"
,
"
t
emplates/info.html
"
,
"
t
pl!list_chatrooms_moda
l
"
,
"
t
emplates/list_chatrooms_modal.htm
l
"
,
"
t
pl!occupant
"
,
"
t
emplates/occupant.html
"
,
"
t
pl!room_description
"
,
"
t
emplates/room_description.html
"
,
"
t
pl!room_item
"
,
"
t
emplates/room_item.html
"
,
"
t
pl!room_pane
l
"
,
"
t
emplates/room_panel.htm
l
"
,
"
t
pl!rooms_results
"
,
"
t
emplates/rooms_results.html
"
,
"
t
pl!spinner
"
,
"
t
emplates/spinner.html
"
,
"
awesomplete
"
,
"
awesomplete
"
,
"
converse-modal
"
"
converse-modal
"
],
factory
);
],
factory
);
...
...
src/converse-profile.js
View file @
6dc9e8ed
...
@@ -9,11 +9,11 @@
...
@@ -9,11 +9,11 @@
(
function
(
root
,
factory
)
{
(
function
(
root
,
factory
)
{
define
([
"
converse-core
"
,
define
([
"
converse-core
"
,
"
bootstrap
"
,
"
bootstrap
"
,
"
t
pl!alert
"
,
"
t
emplates/alert.html
"
,
"
t
pl!chat_status_moda
l
"
,
"
t
emplates/chat_status_modal.htm
l
"
,
"
t
pl!profile_moda
l
"
,
"
t
emplates/profile_modal.htm
l
"
,
"
t
pl!profile_view
"
,
"
t
emplates/profile_view.html
"
,
"
t
pl!status_option
"
,
"
t
emplates/status_option.html
"
,
"
converse-vcard
"
,
"
converse-vcard
"
,
"
converse-modal
"
"
converse-modal
"
],
factory
);
],
factory
);
...
...
src/converse-register.js
View file @
6dc9e8ed
...
@@ -12,13 +12,13 @@
...
@@ -12,13 +12,13 @@
(
function
(
root
,
factory
)
{
(
function
(
root
,
factory
)
{
define
([
"
form-utils
"
,
define
([
"
form-utils
"
,
"
converse-core
"
,
"
converse-core
"
,
"
t
pl!form_username
"
,
"
t
emplates/form_username.html
"
,
"
t
pl!register_link
"
,
"
t
emplates/register_link.html
"
,
"
t
pl!register_pane
l
"
,
"
t
emplates/register_panel.htm
l
"
,
"
t
pl!registration_form
"
,
"
t
emplates/registration_form.html
"
,
"
t
pl!registration_request
"
,
"
t
emplates/registration_request.html
"
,
"
t
pl!form_input
"
,
"
t
emplates/form_input.html
"
,
"
t
pl!spinner
"
,
"
t
emplates/spinner.html
"
,
"
converse-controlbox
"
"
converse-controlbox
"
],
factory
);
],
factory
);
}(
this
,
function
(
}(
this
,
function
(
...
...
src/converse-roomslist.js
View file @
6dc9e8ed
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
define
([
"
utils
"
,
define
([
"
utils
"
,
"
converse-core
"
,
"
converse-core
"
,
"
converse-muc
"
,
"
converse-muc
"
,
"
t
pl!rooms_list
"
,
"
t
emplates/rooms_list.html
"
,
"
t
pl!rooms_list_item
"
"
t
emplates/rooms_list_item.html
"
],
factory
);
],
factory
);
}(
this
,
function
(
utils
,
converse
,
muc
,
tpl_rooms_list
,
tpl_rooms_list_item
)
{
}(
this
,
function
(
utils
,
converse
,
muc
,
tpl_rooms_list
,
tpl_rooms_list_item
)
{
const
{
Backbone
,
Promise
,
Strophe
,
b64_sha1
,
sizzle
,
_
}
=
converse
.
env
;
const
{
Backbone
,
Promise
,
Strophe
,
b64_sha1
,
sizzle
,
_
}
=
converse
.
env
;
...
...
src/converse-rosterview.js
View file @
6dc9e8ed
...
@@ -6,14 +6,14 @@
...
@@ -6,14 +6,14 @@
(
function
(
root
,
factory
)
{
(
function
(
root
,
factory
)
{
define
([
"
converse-core
"
,
define
([
"
converse-core
"
,
"
t
pl!add_contact_moda
l
"
,
"
t
emplates/add_contact_modal.htm
l
"
,
"
t
pl!group_header
"
,
"
t
emplates/group_header.html
"
,
"
t
pl!pending_contact
"
,
"
t
emplates/pending_contact.html
"
,
"
t
pl!requesting_contact
"
,
"
t
emplates/requesting_contact.html
"
,
"
t
pl!roster
"
,
"
t
emplates/roster.html
"
,
"
t
pl!roster_filter
"
,
"
t
emplates/roster_filter.html
"
,
"
t
pl!roster_item
"
,
"
t
emplates/roster_item.html
"
,
"
t
pl!search_contact
"
,
"
t
emplates/search_contact.html
"
,
"
awesomplete
"
,
"
awesomplete
"
,
"
converse-chatboxes
"
,
"
converse-chatboxes
"
,
"
converse-modal
"
"
converse-modal
"
...
...
src/converse-vcard.js
View file @
6dc9e8ed
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
// Licensed under the Mozilla Public License (MPLv2)
// Licensed under the Mozilla Public License (MPLv2)
(
function
(
root
,
factory
)
{
(
function
(
root
,
factory
)
{
define
([
"
converse-core
"
,
"
crypto
"
,
"
t
pl!vcard
"
],
factory
);
define
([
"
converse-core
"
,
"
crypto
"
,
"
t
emplates/vcard.html
"
],
factory
);
}(
this
,
function
(
converse
,
CryptoJS
,
tpl_vcard
)
{
}(
this
,
function
(
converse
,
CryptoJS
,
tpl_vcard
)
{
"
use strict
"
;
"
use strict
"
;
const
{
Backbone
,
Promise
,
Strophe
,
SHA1
,
_
,
$iq
,
$build
,
b64_sha1
,
moment
,
sizzle
}
=
converse
.
env
;
const
{
Backbone
,
Promise
,
Strophe
,
SHA1
,
_
,
$iq
,
$build
,
b64_sha1
,
moment
,
sizzle
}
=
converse
.
env
;
...
...
src/converse.js
View file @
6dc9e8ed
...
@@ -21,7 +21,6 @@ if (typeof define !== 'undefined') {
...
@@ -21,7 +21,6 @@ if (typeof define !== 'undefined') {
"
converse-muc-views
"
,
"
converse-muc-views
"
,
"
converse-muc-views
"
,
// Views related to MUC
"
converse-muc-views
"
,
// Views related to MUC
"
converse-notification
"
,
// HTML5 Notifications
"
converse-notification
"
,
// HTML5 Notifications
"
converse-otr
"
,
// Off-the-record encryption for one-on-one messages
"
converse-ping
"
,
// XEP-0199 XMPP Ping
"
converse-ping
"
,
// XEP-0199 XMPP Ping
"
converse-roster
"
,
"
converse-roster
"
,
"
converse-register
"
,
// XEP-0077 In-band registration
"
converse-register
"
,
// XEP-0077 In-band registration
...
...
src/lodash.noconflict.js
View file @
6dc9e8ed
/*global define */
/*global define */
define
([
'
lodash
'
],
function
(
_
)
{
define
([
'
lodash
'
],
function
(
_
)
{
if
(
!
_
.
isUndefined
(
require
)
&&
!
_
.
isUndefined
(
require
.
s
))
{
/* XXX: This is a hack to make sure that the compiled templates have
* access to the _ object.
*
* Otherwise we sometimes get errors like this:
*
* TypeError: Cannot read property 'escape' of undefined
* at eval (./src/templates/chatroom_sidebar.html:6)
*/
var
lodashLoader
=
require
.
s
.
contexts
.
_
.
config
.
lodashLoader
;
lodashLoader
.
templateSettings
.
imports
=
{
'
_
'
:
_
};
require
.
config
({
'
lodashLoader
'
:
lodashLoader
});
}
return
_
.
noConflict
();
return
_
.
noConflict
();
});
});
src/utils/core.js
View file @
6dc9e8ed
...
@@ -16,10 +16,10 @@
...
@@ -16,10 +16,10 @@
"
backbone
"
,
"
backbone
"
,
"
strophe
"
,
"
strophe
"
,
"
uri
"
,
"
uri
"
,
"
t
pl!audio
"
,
"
t
emplates/audio.html
"
,
"
t
pl!file
"
,
"
t
emplates/file.html
"
,
"
t
pl!image
"
,
"
t
emplates/image.html
"
,
"
t
pl!video
"
"
t
emplates/video.html
"
],
factory
);
],
factory
);
}
else
{
}
else
{
// Used by the mockups
// Used by the mockups
...
...
src/utils/form.js
View file @
6dc9e8ed
...
@@ -12,15 +12,15 @@
...
@@ -12,15 +12,15 @@
"
sizzle
"
,
"
sizzle
"
,
"
lodash.noconflict
"
,
"
lodash.noconflict
"
,
"
utils
"
,
"
utils
"
,
"
t
pl!field
"
,
"
t
emplates/field.html
"
,
"
t
pl!select_option
"
,
"
t
emplates/select_option.html
"
,
"
t
pl!form_select
"
,
"
t
emplates/form_select.html
"
,
"
t
pl!form_textarea
"
,
"
t
emplates/form_textarea.html
"
,
"
t
pl!form_checkbox
"
,
"
t
emplates/form_checkbox.html
"
,
"
t
pl!form_username
"
,
"
t
emplates/form_username.html
"
,
"
t
pl!form_input
"
,
"
t
emplates/form_input.html
"
,
"
t
pl!form_captcha
"
,
"
t
emplates/form_captcha.html
"
,
"
t
pl!form_ur
l
"
,
"
t
emplates/form_url.htm
l
"
,
],
factory
);
],
factory
);
}(
this
,
function
(
}(
this
,
function
(
sizzle
,
sizzle
,
...
...
webpack.config.js
0 → 100644
View file @
6dc9e8ed
/*global path, __dirname, module */
'
use strict
'
const
path
=
require
(
'
path
'
);
const
config
=
{
entry
:
path
.
resolve
(
__dirname
,
'
src/converse.js
'
),
externals
:
[{
"
window
"
:
"
window
"
}],
output
:
{
path
:
path
.
resolve
(
__dirname
,
'
dist
'
),
filename
:
'
converse.js
'
},
devtool
:
'
source-map
'
,
module
:
{
rules
:
[{
test
:
/
\.
html$/
,
exclude
:
/node_modules/
,
use
:
[{
loader
:
'
lodash-template-webpack-loader
'
,
options
:
{
"
escape
"
:
/
\
{
\
{
\
{([
\
s
\
S
]
+
?)
\
}
\
}
\
}
/g
,
"
evaluate
"
:
/
\{\[([\s\S]
+
?)\]\}
/g
,
"
interpolate
"
:
/
\
{
\
{([
\
s
\
S
]
+
?)
\
}
\
}
/g
,
// By default, template places the values from your data in the
// local scope via the with statement. However, you can specify
// a single variable name with the variable setting. This can
// significantly improve the speed at which a template is able
// to render.
"
variable
"
:
'
o
'
,
"
prependFilenameComment
"
:
__dirname
}
}]
},
{
test
:
/
\.
js$/
,
exclude
:
/
(
node_modules|spec|mockup
)
/
,
use
:
{
loader
:
'
babel-loader
'
,
options
:
{
presets
:
[
[
"
@babel/preset-env
"
,
{
"
targets
"
:
{
"
browsers
"
:
[
"
>1%
"
,
"
not ie 11
"
,
"
not op_mini all
"
]
}
}]
]
}
}
}],
},
resolve
:
{
modules
:
[
'
node_modules
'
,
path
.
resolve
(
__dirname
,
"
src
"
),
],
alias
:
{
"
IPv6
"
:
path
.
resolve
(
__dirname
,
"
node_modules/urijs/src/IPv6
"
),
"
SecondLevelDomains
"
:
path
.
resolve
(
__dirname
,
"
node_modules/urijs/src/SecondLevelDomains
"
),
"
awesomplete
"
:
path
.
resolve
(
__dirname
,
"
node_modules/awesomplete-avoid-xss/awesomplete
"
),
"
backbone
"
:
path
.
resolve
(
__dirname
,
"
node_modules/backbone/backbone
"
),
"
backbone.browserStorage
"
:
path
.
resolve
(
__dirname
,
"
node_modules/backbone.browserStorage/backbone.browserStorage
"
),
"
backbone.nativeview
"
:
path
.
resolve
(
__dirname
,
"
node_modules/backbone.nativeview/backbone.nativeview
"
),
"
backbone.noconflict
"
:
path
.
resolve
(
__dirname
,
"
src/backbone.noconflict
"
),
"
backbone.orderedlistview
"
:
path
.
resolve
(
__dirname
,
"
node_modules/backbone.overview/dist/backbone.orderedlistview
"
),
"
backbone.overview
"
:
path
.
resolve
(
__dirname
,
"
node_modules/backbone.overview/dist/backbone.overview
"
),
"
backbone.vdomview
"
:
path
.
resolve
(
__dirname
,
"
node_modules/backbone.vdomview/dist/backbone.vdomview
"
),
"
bootstrap
"
:
path
.
resolve
(
__dirname
,
"
node_modules/bootstrap.native/dist/bootstrap-native-v4
"
),
"
crypto
"
:
path
.
resolve
(
__dirname
,
"
node_modules/otr/build/dep/crypto
"
),
"
emojione
"
:
path
.
resolve
(
__dirname
,
"
node_modules/emojione/lib/js/emojione
"
),
"
es6-promise
"
:
path
.
resolve
(
__dirname
,
"
node_modules/es6-promise/dist/es6-promise.auto
"
),
"
filesize
"
:
path
.
resolve
(
__dirname
,
"
node_modules/filesize/lib/filesize
"
),
"
form-utils
"
:
path
.
resolve
(
__dirname
,
"
src/utils/form
"
),
"
i18n
"
:
path
.
resolve
(
__dirname
,
"
src/i18n
"
),
"
jed
"
:
path
.
resolve
(
__dirname
,
"
node_modules/jed/jed
"
),
"
jquery
"
:
path
.
resolve
(
__dirname
,
"
src/jquery-stub
"
),
"
lodash
"
:
path
.
resolve
(
__dirname
,
"
node_modules/lodash/lodash
"
),
"
lodash.converter
"
:
path
.
resolve
(
__dirname
,
"
3rdparty/lodash.fp
"
),
"
lodash.fp
"
:
path
.
resolve
(
__dirname
,
"
src/lodash.fp
"
),
"
lodash.noconflict
"
:
path
.
resolve
(
__dirname
,
"
src/lodash.noconflict
"
),
"
message-utils
"
:
path
.
resolve
(
__dirname
,
"
src/utils/message
"
),
"
muc-utils
"
:
path
.
resolve
(
__dirname
,
"
src/utils/muc
"
),
"
pluggable
"
:
path
.
resolve
(
__dirname
,
"
node_modules/pluggable.js/dist/pluggable
"
),
"
polyfill
"
:
path
.
resolve
(
__dirname
,
"
src/polyfill
"
),
"
punycode
"
:
path
.
resolve
(
__dirname
,
"
node_modules/urijs/src/punycode
"
),
"
sizzle
"
:
path
.
resolve
(
__dirname
,
"
node_modules/sizzle/dist/sizzle
"
),
"
snabbdom
"
:
path
.
resolve
(
__dirname
,
"
node_modules/snabbdom/dist/snabbdom
"
),
"
snabbdom-attributes
"
:
path
.
resolve
(
__dirname
,
"
node_modules/snabbdom/dist/snabbdom-attributes
"
),
"
snabbdom-class
"
:
path
.
resolve
(
__dirname
,
"
node_modules/snabbdom/dist/snabbdom-class
"
),
"
snabbdom-dataset
"
:
path
.
resolve
(
__dirname
,
"
node_modules/snabbdom/dist/snabbdom-dataset
"
),
"
snabbdom-eventlisteners
"
:
path
.
resolve
(
__dirname
,
"
node_modules/snabbdom/dist/snabbdom-eventlisteners
"
),
"
snabbdom-props
"
:
path
.
resolve
(
__dirname
,
"
node_modules/snabbdom/dist/snabbdom-props
"
),
"
snabbdom-style
"
:
path
.
resolve
(
__dirname
,
"
node_modules/snabbdom/dist/snabbdom-style
"
),
"
strophe
"
:
path
.
resolve
(
__dirname
,
"
node_modules/strophe.js/strophe
"
),
"
strophe.ping
"
:
path
.
resolve
(
__dirname
,
"
node_modules/strophejs-plugin-ping/strophe.ping
"
),
"
strophe.rsm
"
:
path
.
resolve
(
__dirname
,
"
node_modules/strophejs-plugin-rsm/strophe.rsm
"
),
"
tovnode
"
:
path
.
resolve
(
__dirname
,
"
node_modules/snabbdom/dist/tovnode
"
),
"
underscore
"
:
path
.
resolve
(
__dirname
,
"
src/underscore-shim
"
),
"
uri
"
:
path
.
resolve
(
__dirname
,
"
node_modules/urijs/src/URI
"
),
"
utils
"
:
path
.
resolve
(
__dirname
,
"
src/utils/core
"
),
"
vdom-parser
"
:
path
.
resolve
(
__dirname
,
"
node_modules/vdom-parser/dist
"
),
"
xss
"
:
path
.
resolve
(
__dirname
,
"
node_modules/xss/dist/xss
"
),
"
xss.noconflict
"
:
path
.
resolve
(
__dirname
,
"
node_modules/xss.noconflict
"
),
"
converse-bookmarks
"
:
path
.
resolve
(
__dirname
,
"
src/converse-bookmarks
"
),
"
converse-chatboxes
"
:
path
.
resolve
(
__dirname
,
"
src/converse-chatboxes
"
),
"
converse-caps
"
:
path
.
resolve
(
__dirname
,
"
src/converse-caps
"
),
"
converse-chatview
"
:
path
.
resolve
(
__dirname
,
"
src/converse-chatview
"
),
"
converse-controlbox
"
:
path
.
resolve
(
__dirname
,
"
src/converse-controlbox
"
),
"
converse-core
"
:
path
.
resolve
(
__dirname
,
"
src/converse-core
"
),
"
converse-disco
"
:
path
.
resolve
(
__dirname
,
"
src/converse-disco
"
),
"
converse-dragresize
"
:
path
.
resolve
(
__dirname
,
"
src/converse-dragresize
"
),
"
converse-embedded
"
:
path
.
resolve
(
__dirname
,
"
src/converse-embedded
"
),
"
converse-fullscreen
"
:
path
.
resolve
(
__dirname
,
"
src/converse-fullscreen
"
),
"
converse-headline
"
:
path
.
resolve
(
__dirname
,
"
src/converse-headline
"
),
"
converse-mam
"
:
path
.
resolve
(
__dirname
,
"
src/converse-mam
"
),
"
converse-message-view
"
:
path
.
resolve
(
__dirname
,
"
src/converse-message-view
"
),
"
converse-minimize
"
:
path
.
resolve
(
__dirname
,
"
src/converse-minimize
"
),
"
converse-modal
"
:
path
.
resolve
(
__dirname
,
"
src/converse-modal
"
),
"
converse-muc
"
:
path
.
resolve
(
__dirname
,
"
src/converse-muc
"
),
"
converse-muc-views
"
:
path
.
resolve
(
__dirname
,
"
src/converse-muc-views
"
),
"
converse-notification
"
:
path
.
resolve
(
__dirname
,
"
src/converse-notification
"
),
"
converse-ping
"
:
path
.
resolve
(
__dirname
,
"
src/converse-ping
"
),
"
converse-profile
"
:
path
.
resolve
(
__dirname
,
"
src/converse-profile
"
),
"
converse-register
"
:
path
.
resolve
(
__dirname
,
"
src/converse-register
"
),
"
converse-roomslist
"
:
path
.
resolve
(
__dirname
,
"
src/converse-roomslist
"
),
"
converse-roster
"
:
path
.
resolve
(
__dirname
,
"
src/converse-roster
"
),
"
converse-rosterview
"
:
path
.
resolve
(
__dirname
,
"
src/converse-rosterview
"
),
"
converse-singleton
"
:
path
.
resolve
(
__dirname
,
"
src/converse-singleton
"
),
"
converse-vcard
"
:
path
.
resolve
(
__dirname
,
"
src/converse-vcard
"
)
}
}
}
module
.
exports
=
config
;
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