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
fe47773c
Commit
fe47773c
authored
Mar 13, 2016
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move ChatView into separate plugin.
parent
a1b31cd1
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
973 additions
and
900 deletions
+973
-900
converse.js
converse.js
+3
-1
src/converse-chatview.js
src/converse-chatview.js
+934
-0
src/converse-controlbox.js
src/converse-controlbox.js
+7
-3
src/converse-core.js
src/converse-core.js
+14
-881
src/converse-headline.js
src/converse-headline.js
+9
-10
src/converse-muc.js
src/converse-muc.js
+6
-5
No files found.
converse.js
View file @
fe47773c
...
...
@@ -45,9 +45,10 @@ require.config({
// Converse
"
converse-api
"
:
"
src/converse-api
"
,
"
converse-chatview
"
:
"
src/converse-chatview
"
,
"
converse-controlbox
"
:
"
src/converse-controlbox
"
,
"
converse-core
"
:
"
src/converse-core
"
,
"
converse-headline
"
:
"
src/converse-
notification
"
,
"
converse-headline
"
:
"
src/converse-
headline
"
,
"
converse-muc
"
:
"
src/converse-muc
"
,
"
converse-notification
"
:
"
src/converse-notification
"
,
"
converse-otr
"
:
"
src/converse-otr
"
,
...
...
@@ -225,6 +226,7 @@ if (typeof define !== 'undefined') {
// file src/locales.js to include only those
// translations that you care about.
"
converse-chatview
"
,
// Renders standalone chat boxes for single user chat
"
converse-muc
"
,
// XEP-0045 Multi-user chat
"
converse-otr
"
,
// Off-the-record encryption for one-on-one messages
"
converse-controlbox
"
,
// The control box
...
...
src/converse-chatview.js
0 → 100644
View file @
fe47773c
This diff is collapsed.
Click to expand it.
src/converse-controlbox.js
View file @
fe47773c
...
...
@@ -7,7 +7,12 @@
/*global define, Backbone */
(
function
(
root
,
factory
)
{
define
(
"
converse-controlbox
"
,
[
"
converse-core
"
,
"
converse-api
"
],
factory
);
define
(
"
converse-controlbox
"
,
[
"
converse-core
"
,
"
converse-api
"
,
// TODO: remove this dependency
"
converse-chatview
"
],
factory
);
}(
this
,
function
(
converse
,
converse_api
)
{
"
use strict
"
;
// Strophe methods for building stanzas
...
...
@@ -18,10 +23,9 @@
// Other necessary globals
var
$
=
converse_api
.
env
.
jQuery
,
_
=
converse_api
.
env
.
_
,
__
=
utils
.
__
.
bind
(
converse
),
moment
=
converse_api
.
env
.
moment
;
// For translations
var
__
=
utils
.
__
.
bind
(
converse
);
converse_api
.
plugins
.
add
(
'
controlbox
'
,
{
...
...
src/converse-core.js
View file @
fe47773c
This diff is collapsed.
Click to expand it.
src/converse-headline.js
View file @
fe47773c
...
...
@@ -7,18 +7,17 @@
/*global define */
(
function
(
root
,
factory
)
{
define
(
"
converse-headline
"
,
[
"
converse-core
"
,
"
converse-api
"
],
factory
);
define
(
"
converse-headline
"
,
[
"
converse-core
"
,
"
converse-api
"
,
// TODO: remove this dependency
"
converse-chat
"
],
factory
);
}(
this
,
function
(
converse
,
converse_api
)
{
"
use strict
"
;
var
$
=
converse_api
.
env
.
jQuery
,
utils
=
converse_api
.
env
.
utils
,
Strophe
=
converse_api
.
env
.
Strophe
,
_
=
converse_api
.
env
.
_
;
// For translations
var
__
=
utils
.
__
.
bind
(
converse
);
var
___
=
utils
.
___
;
var
supports_html5_notification
=
"
Notification
"
in
window
;
var
utils
=
converse_api
.
env
.
utils
,
_
=
converse_api
.
env
.
_
,
__
=
utils
.
__
.
bind
(
converse
);
converse_api
.
plugins
.
add
(
'
headline
'
,
{
...
...
src/converse-muc.js
View file @
fe47773c
...
...
@@ -13,6 +13,8 @@
define
(
"
converse-muc
"
,
[
"
converse-core
"
,
"
converse-api
"
,
// TODO remove next two dependencies
"
converse-chatview
"
,
"
converse-controlbox
"
],
factory
);
}(
this
,
function
(
converse
,
converse_api
)
{
...
...
@@ -202,15 +204,14 @@
*/
var
converse
=
this
.
converse
;
// Configuration values for this plugin
var
settings
=
{
this
.
updateSettings
(
{
allow_muc
:
true
,
auto_join_on_invite
:
false
,
// Auto-join chatroom on invite
hide_muc_server
:
false
,
muc_history_max_stanzas
:
undefined
,
// Takes an integer, limits the amount of messages to fetch from chat room's history
};
_
.
extend
(
converse
.
default_settings
,
settings
);
_
.
extend
(
converse
,
settings
);
_
.
extend
(
converse
,
_
.
pick
(
converse
.
user_settings
,
Object
.
keys
(
settings
)));
show_toolbar
:
true
,
});
converse
.
ChatRoomView
=
converse
.
ChatBoxView
.
extend
({
/* Backbone View which renders a chat room, based upon the view
...
...
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