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
cfb0cd09
Commit
cfb0cd09
authored
Feb 27, 2017
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New defaults
parent
ac867c95
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
11 deletions
+10
-11
Makefile
Makefile
+2
-2
docs/CHANGES.md
docs/CHANGES.md
+1
-1
spec/converse.js
spec/converse.js
+3
-3
src/config.js
src/config.js
+1
-2
src/converse-core.js
src/converse-core.js
+1
-1
src/converse-notification.js
src/converse-notification.js
+2
-2
No files found.
Makefile
View file @
cfb0cd09
...
...
@@ -166,9 +166,9 @@ dist/converse-no-dependencies.min.js: src locale node_modules *.js
dist/converse-no-dependencies.js
:
src locale node_modules *.js
$(RJS)
-o
src/build-no-dependencies.js
optimize
=
none
out
=
dist/converse-no-dependencies.js
dist/converse-mobile.min.js
:
src locale node_modules *.js
$(RJS)
-o
src/build.js
include
=
converse-mobil
e
out
=
dist/converse-mobile.min.js
$(RJS)
-o
src/build.js
paths.converse
=
src/converse-mobile
include
=
convers
e
out
=
dist/converse-mobile.min.js
dist/converse-mobile.js
:
src locale node_modules *.js
$(RJS)
-o
src/build.js
optimize
=
none
include
=
converse-mobile
out
=
dist/converse-mobile.js
$(RJS)
-o
src/build.js
paths.converse
=
src/converse-mobile
include
=
converse
out
=
dist/converse-mobile.js
optimize
=
none
.PHONY
:
jsmin
jsmin
:
$(BUILDS)
...
...
docs/CHANGES.md
View file @
cfb0cd09
...
...
@@ -33,7 +33,7 @@
-
Use lodash instead of underscore.js [jcbrand]
-
Case insensitive matching of moderation commands. [jcbrand]
-
Add
`/subject`
as alias to
`/topic`
[jcbrand]
-
`
allow_chat_pending_contacts`
now defaults
to
`true`
[jcbrand]
-
`
message_carbons`
,
`play_sounds`
and
`allow_chat_pending_contacts`
now default
to
`true`
[jcbrand]
-
Improved roster filter UX. [jcbrand]
-
Render the login form again upon authfail. [jcbrand]
-
New promises API:
[
waitUntil
](
https://conversejs.org/docs/html/developer_api.html#waituntil
)
...
...
spec/converse.js
View file @
cfb0cd09
...
...
@@ -324,11 +324,11 @@
describe
(
"
The
\"
settings
\"
API
"
,
function
()
{
it
(
"
has methods 'get' and 'set' to set configuration settings
"
,
mock
.
initConverse
(
function
(
_converse
)
{
expect
(
_
.
keys
(
_converse
.
api
.
settings
)).
toEqual
([
"
get
"
,
"
set
"
]);
expect
(
_converse
.
api
.
settings
.
get
(
"
play_sounds
"
)).
toBe
(
false
);
_converse
.
api
.
settings
.
set
(
"
play_sounds
"
,
true
);
expect
(
_converse
.
api
.
settings
.
get
(
"
play_sounds
"
)).
toBe
(
true
);
_converse
.
api
.
settings
.
set
(
{
"
play_sounds
"
:
false
}
);
_converse
.
api
.
settings
.
set
(
"
play_sounds
"
,
false
);
expect
(
_converse
.
api
.
settings
.
get
(
"
play_sounds
"
)).
toBe
(
false
);
_converse
.
api
.
settings
.
set
({
"
play_sounds
"
:
true
});
expect
(
_converse
.
api
.
settings
.
get
(
"
play_sounds
"
)).
toBe
(
true
);
// Only whitelisted settings allowed.
expect
(
typeof
_converse
.
api
.
settings
.
get
(
"
non_existing
"
)).
toBe
(
"
undefined
"
);
_converse
.
api
.
settings
.
set
(
"
non_existing
"
,
true
);
...
...
src/config.js
View file @
cfb0cd09
...
...
@@ -19,7 +19,6 @@ require.config({
"
backbone
"
:
"
node_modules/backbone/backbone
"
,
"
backbone.browserStorage
"
:
"
node_modules/backbone.browserStorage/backbone.browserStorage
"
,
"
backbone.overview
"
:
"
node_modules/backbone.overview/backbone.overview
"
,
"
converse
"
:
"
src/converse
"
,
"
eventemitter
"
:
"
node_modules/otr/build/dep/eventemitter
"
,
"
jquery
"
:
"
node_modules/jquery/dist/jquery
"
,
"
jquery-private
"
:
"
src/jquery-private
"
,
...
...
@@ -42,7 +41,7 @@ require.config({
"
utils
"
:
"
src/utils
"
,
// Converse
"
converse
-mobile
"
:
"
src/converse-mobil
e
"
,
"
converse
"
:
"
src/convers
e
"
,
"
converse-core
"
:
"
src/converse-core
"
,
"
converse-bookmarks
"
:
"
src/converse-bookmarks
"
,
...
...
src/converse-core.js
View file @
cfb0cd09
...
...
@@ -242,7 +242,7 @@
jid
:
undefined
,
keepalive
:
true
,
locked_domain
:
undefined
,
message_carbons
:
fals
e
,
message_carbons
:
tru
e
,
message_storage
:
'
session
'
,
password
:
undefined
,
prebind_url
:
null
,
...
...
src/converse-notification.js
View file @
cfb0cd09
...
...
@@ -34,7 +34,7 @@
show_chatstate_notifications
:
false
,
chatstate_notification_blacklist
:
[],
// ^ a list of JIDs to ignore concerning chat state notifications
play_sounds
:
fals
e
,
play_sounds
:
tru
e
,
sounds_path
:
'
/sounds/
'
,
notification_icon
:
'
/logo/conversejs128.png
'
});
...
...
@@ -104,7 +104,7 @@
// feature, but no browser currently supports it.
// https://developer.mozilla.org/en-US/docs/Web/API/notification/sound
var
audio
;
if
(
_converse
.
play_sounds
&&
!
_
.
isUndefined
(
Audio
))
{
if
(
_converse
.
play_sounds
&&
!
_
.
isUndefined
(
window
.
Audio
))
{
audio
=
new
Audio
(
_converse
.
sounds_path
+
"
msg_received.ogg
"
);
if
(
audio
.
canPlayType
(
'
/audio/ogg
'
))
{
audio
.
play
();
...
...
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