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
c855d2f4
Commit
c855d2f4
authored
Dec 10, 2020
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates #2350 Avoid bundling Strophe twice
by not importing Strophe outside of @converse/headless
parent
4ece50d0
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
5 additions
and
10 deletions
+5
-10
src/headless/core.js
src/headless/core.js
+0
-1
src/headless/shared/connection.js
src/headless/shared/connection.js
+1
-1
src/headless/utils/core.js
src/headless/utils/core.js
+1
-3
src/headless/utils/stanza.js
src/headless/utils/stanza.js
+1
-3
src/modals/add-muc.js
src/modals/add-muc.js
+1
-1
src/modals/muc-list.js
src/modals/muc-list.js
+1
-1
No files found.
src/headless/core.js
View file @
c855d2f4
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
* @license Mozilla Public License (MPLv2)
* @license Mozilla Public License (MPLv2)
*/
*/
import
'
./polyfill
'
;
import
'
./polyfill
'
;
import
'
strophe.js/src/websocket
'
;
import
Storage
from
'
@converse/skeletor/src/storage.js
'
;
import
Storage
from
'
@converse/skeletor/src/storage.js
'
;
import
advancedFormat
from
'
dayjs/plugin/advancedFormat
'
;
import
advancedFormat
from
'
dayjs/plugin/advancedFormat
'
;
import
dayjs
from
'
dayjs
'
;
import
dayjs
from
'
dayjs
'
;
...
...
src/headless/shared/connection.js
View file @
c855d2f4
import
log
from
"
../log.js
"
;
import
log
from
"
../log.js
"
;
import
sizzle
from
'
sizzle
'
;
import
sizzle
from
'
sizzle
'
;
import
u
from
'
@converse/headless/utils/core
'
;
import
u
from
'
@converse/headless/utils/core
'
;
import
{
Strophe
}
from
'
strophe.js/src/
cor
e
'
;
import
{
Strophe
}
from
'
strophe.js/src/
stroph
e
'
;
import
{
_converse
,
api
,
clearSession
,
tearDown
}
from
"
../core.js
"
;
import
{
_converse
,
api
,
clearSession
,
tearDown
}
from
"
../core.js
"
;
import
{
debounce
,
isElement
}
from
'
lodash
'
;
import
{
debounce
,
isElement
}
from
'
lodash
'
;
...
...
src/headless/utils/core.js
View file @
c855d2f4
...
@@ -3,14 +3,12 @@
...
@@ -3,14 +3,12 @@
* @license Mozilla Public License (MPLv2)
* @license Mozilla Public License (MPLv2)
* @description This is the core utilities module.
* @description This is the core utilities module.
*/
*/
import
*
as
strophe
from
'
strophe.js/src/cor
e
'
;
import
{
Strophe
}
from
'
strophe.js/src/stroph
e
'
;
import
{
Model
}
from
'
@converse/skeletor/src/model.js
'
;
import
{
Model
}
from
'
@converse/skeletor/src/model.js
'
;
import
{
compact
,
last
,
isElement
,
isObject
}
from
"
lodash-es
"
;
import
{
compact
,
last
,
isElement
,
isObject
}
from
"
lodash-es
"
;
import
log
from
"
@converse/headless/log
"
;
import
log
from
"
@converse/headless/log
"
;
import
sizzle
from
"
sizzle
"
;
import
sizzle
from
"
sizzle
"
;
const
Strophe
=
strophe
.
default
.
Strophe
;
/**
/**
* The utils object
* The utils object
* @namespace u
* @namespace u
...
...
src/headless/utils/stanza.js
View file @
c855d2f4
import
*
as
strophe
from
'
strophe.js/src/cor
e
'
;
import
{
Strophe
,
$msg
}
from
'
strophe.js/src/stroph
e
'
;
import
dayjs
from
'
dayjs
'
;
import
dayjs
from
'
dayjs
'
;
import
sizzle
from
'
sizzle
'
;
import
sizzle
from
'
sizzle
'
;
import
u
from
'
@converse/headless/utils/core
'
;
import
u
from
'
@converse/headless/utils/core
'
;
import
log
from
"
../log
"
;
import
log
from
"
../log
"
;
import
{
_converse
,
api
}
from
"
@converse/headless/core
"
;
import
{
_converse
,
api
}
from
"
@converse/headless/core
"
;
const
Strophe
=
strophe
.
default
.
Strophe
;
const
$msg
=
strophe
.
default
.
$msg
;
const
{
NS
}
=
Strophe
;
const
{
NS
}
=
Strophe
;
...
...
src/modals/add-muc.js
View file @
c855d2f4
import
tpl_add_muc
from
"
./templates/add-muc.js
"
;
import
tpl_add_muc
from
"
./templates/add-muc.js
"
;
import
BootstrapModal
from
"
./base.js
"
;
import
BootstrapModal
from
"
./base.js
"
;
import
{
Strophe
}
from
'
strophe.js/src/strophe
'
;
import
{
__
}
from
'
../i18n
'
;
import
{
__
}
from
'
../i18n
'
;
import
{
_converse
,
api
,
converse
}
from
"
@converse/headless/core
"
;
import
{
_converse
,
api
,
converse
}
from
"
@converse/headless/core
"
;
const
u
=
converse
.
env
.
utils
;
const
u
=
converse
.
env
.
utils
;
const
{
Strophe
}
=
converse
.
env
;
export
default
BootstrapModal
.
extend
({
export
default
BootstrapModal
.
extend
({
...
...
src/modals/muc-list.js
View file @
c855d2f4
...
@@ -5,11 +5,11 @@ import st from "@converse/headless/utils/stanza";
...
@@ -5,11 +5,11 @@ import st from "@converse/headless/utils/stanza";
import
tpl_list_chatrooms_modal
from
"
./templates/muc-list.js
"
;
import
tpl_list_chatrooms_modal
from
"
./templates/muc-list.js
"
;
import
tpl_room_description
from
"
templates/room_description.html
"
;
import
tpl_room_description
from
"
templates/room_description.html
"
;
import
tpl_spinner
from
"
templates/spinner.js
"
;
import
tpl_spinner
from
"
templates/spinner.js
"
;
import
{
Strophe
,
$iq
}
from
'
strophe.js/src/strophe
'
;
import
{
__
}
from
'
../i18n
'
;
import
{
__
}
from
'
../i18n
'
;
import
{
_converse
,
api
,
converse
}
from
"
@converse/headless/core
"
;
import
{
_converse
,
api
,
converse
}
from
"
@converse/headless/core
"
;
import
{
head
}
from
"
lodash-es
"
;
import
{
head
}
from
"
lodash-es
"
;
const
{
Strophe
,
$iq
}
=
converse
.
env
;
const
u
=
converse
.
env
.
utils
;
const
u
=
converse
.
env
.
utils
;
...
...
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