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
1f772f46
Commit
1f772f46
authored
Aug 04, 2013
by
JC Brand
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into gh-pages
Conflicts: index.html
parents
a01f9543
eb39faa7
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
626 additions
and
110 deletions
+626
-110
CHANGES.rst
CHANGES.rst
+7
-0
Gruntfile.js
Gruntfile.js
+3
-4
converse.js
converse.js
+111
-95
converse.min.css
converse.min.css
+0
-0
converse.min.js
converse.min.js
+1
-1
index.html
index.html
+3
-3
locale/en/LC_MESSAGES/converse.po
locale/en/LC_MESSAGES/converse.po
+486
-0
package.json
package.json
+1
-1
spec/MainSpec.js
spec/MainSpec.js
+13
-4
tests_main.js
tests_main.js
+1
-2
No files found.
CHANGES.rst
View file @
1f772f46
Changelog
=========
0.5.1 (Unreleased)
------------------
- #13, #14: Messages sent between to GTalk accounts weren't being received. [jcbrand]
- #32: Default status was offline when user didn't have contacts. [jcbrand]
- Attach panels to the DOM upon initialize. [jcbrand]
0.5.0 (2013-07-30)
------------------
...
...
Gruntfile.js
View file @
1f772f46
...
...
@@ -25,7 +25,7 @@ module.exports = function(grunt) {
"
*/
"
},
minify
:
{
dest
:
'
converse
-
'
+
cfg
.
version
+
'
.min.css
'
,
dest
:
'
converse.min.css
'
,
src
:
[
'
converse.css
'
]
}
},
...
...
@@ -34,7 +34,7 @@ module.exports = function(grunt) {
options
:
{
baseUrl
:
"
.
"
,
name
:
"
main
"
,
out
:
"
converse
-
"
+
cfg
.
version
+
"
.min.js
"
,
out
:
"
converse.min.js
"
,
paths
:
{
"
require
"
:
"
components/requirejs/require
"
,
"
jquery
"
:
"
components/jquery/jquery
"
,
...
...
@@ -106,8 +106,7 @@ module.exports = function(grunt) {
});
});
// TODO: update CHANGES.txt with release date
grunt
.
registerTask
(
'
release
'
,
'
Create a new release
'
,
[
'
requirejs
'
,
'
cssmin
'
]);
grunt
.
registerTask
(
'
minify
'
,
'
Create a new release
'
,
[
'
requirejs
'
,
'
cssmin
'
]);
grunt
.
registerTask
(
'
check
'
,
'
Perform all checks (e.g. before releasing)
'
,
function
()
{
grunt
.
task
.
run
(
'
jshint
'
,
'
test
'
);
...
...
converse.js
View file @
1f772f46
This diff is collapsed.
Click to expand it.
converse
-0.5.0
.min.css
→
converse.min.css
View file @
1f772f46
File moved
converse
-0.5.0
.min.js
→
converse.min.js
View file @
1f772f46
This diff is collapsed.
Click to expand it.
index.html
View file @
1f772f46
...
...
@@ -5,9 +5,9 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"chrome=1"
/>
<meta
name=
"description"
content=
"Converse.js: Open Source Browser-Based Instant Messaging"
/>
<link
rel=
"stylesheet"
type=
"text/css"
media=
"screen"
href=
"stylesheets/stylesheet.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
media=
"screen"
href=
"converse
-0.5.0
.min.css"
>
<script
src=
"converse
-0.5.0
.min.js"
></script>
<!-- For development
: <script data-main="main" src="Libraries/require-jquery
.js"></script> -->
<link
rel=
"stylesheet"
type=
"text/css"
media=
"screen"
href=
"converse.min.css"
>
<script
src=
"converse.min.js"
></script>
<!-- For development
<script data-main="main" src="components/requirejs/require
.js"></script> -->
<title>
Converse.js
</title>
</head>
...
...
locale/en/LC_MESSAGES/converse.po
0 → 100644
View file @
1f772f46
This diff is collapsed.
Click to expand it.
package.json
View file @
1f772f46
{
"name"
:
"converse.js"
,
"version"
:
"0.5.
0
"
,
"version"
:
"0.5.
1
"
,
"description"
:
"Browser based XMPP instant messaging client"
,
"main"
:
"main.js"
,
"directories"
:
{
...
...
spec/MainSpec.js
View file @
1f772f46
...
...
@@ -56,6 +56,12 @@
it
(
"
can be opened by clicking a DOM element with class 'toggle-online-users'
"
,
open_controlbox
);
describe
(
"
The Status Widget
"
,
$
.
proxy
(
function
()
{
it
(
"
shows the user's chat status, which is online by default
"
,
$
.
proxy
(
function
()
{
var
view
=
this
.
xmppstatusview
;
expect
(
view
.
$el
.
find
(
'
a.choose-xmpp-status
'
).
hasClass
(
'
online
'
)).
toBe
(
true
);
expect
(
view
.
$el
.
find
(
'
a.choose-xmpp-status
'
).
attr
(
'
data-value
'
)).
toBe
(
'
I am online
'
);
},
converse
));
it
(
"
can be used to set the current user's chat status
"
,
$
.
proxy
(
function
()
{
var
view
=
this
.
xmppstatusview
;
spyOn
(
view
,
'
toggleOptions
'
).
andCallThrough
();
...
...
@@ -64,25 +70,26 @@
runs
(
function
()
{
view
.
$el
.
find
(
'
a.choose-xmpp-status
'
).
click
();
expect
(
view
.
toggleOptions
).
toHaveBeenCalled
();
expect
(
view
.
$el
.
find
(
'
a.choose-xmpp-status
'
).
hasClass
(
'
online
'
)).
toBe
(
false
);
});
waits
(
250
);
runs
(
function
()
{
spyOn
(
view
,
'
updateStatusUI
'
).
andCallThrough
();
view
.
initialize
();
// Rebind events for spy
view
.
$el
.
find
(
'
.dropdown dd ul li a
'
).
first
(
).
click
();
$
(
view
.
$el
.
find
(
'
.dropdown dd ul li a
'
)[
1
]
).
click
();
expect
(
view
.
setStatus
).
toHaveBeenCalled
();
});
waits
(
250
);
runs
(
$
.
proxy
(
function
()
{
expect
(
view
.
updateStatusUI
).
toHaveBeenCalled
();
expect
(
view
.
$el
.
find
(
'
a.choose-xmpp-status
'
).
hasClass
(
'
online
'
)).
toBe
(
true
);
expect
(
view
.
$el
.
find
(
'
a.choose-xmpp-status
'
).
attr
(
'
data-value
'
)).
toBe
(
'
I am online
'
);
expect
(
view
.
$el
.
find
(
'
a.choose-xmpp-status
'
).
hasClass
(
'
online
'
)).
toBe
(
false
);
expect
(
view
.
$el
.
find
(
'
a.choose-xmpp-status
'
).
hasClass
(
'
dnd
'
)).
toBe
(
true
);
expect
(
view
.
$el
.
find
(
'
a.choose-xmpp-status
'
).
attr
(
'
data-value
'
)).
toBe
(
'
I am busy
'
);
},
converse
));
},
converse
));
it
(
"
can be used to set a custom status message
"
,
$
.
proxy
(
function
()
{
var
view
=
this
.
xmppstatusview
;
this
.
xmppstatus
.
save
({
'
status
'
:
'
online
'
});
spyOn
(
view
,
'
setStatusMessage
'
).
andCallThrough
();
spyOn
(
view
,
'
renderStatusChangeForm
'
).
andCallThrough
();
view
.
delegateEvents
();
// We need to rebind all events otherwise our spy won't be called
...
...
@@ -120,6 +127,7 @@
it
(
"
can be added to the roster and they will be sorted alphabetically
"
,
$
.
proxy
(
function
()
{
var
i
,
t
,
is_last
;
spyOn
(
this
.
rosterview
,
'
render
'
).
andCallThrough
();
spyOn
(
this
.
xmppstatus
,
'
sendPresence
'
);
for
(
i
=
0
;
i
<
pend_names
.
length
;
i
++
)
{
is_last
=
i
===
(
pend_names
.
length
-
1
);
this
.
roster
.
create
({
...
...
@@ -133,6 +141,7 @@
// the last contact has been added.
if
(
is_last
)
{
expect
(
this
.
rosterview
.
$el
.
is
(
'
:visible
'
)).
toEqual
(
true
);
expect
(
this
.
xmppstatus
.
sendPresence
).
toHaveBeenCalled
();
}
else
{
expect
(
this
.
rosterview
.
$el
.
is
(
'
:visible
'
)).
toEqual
(
false
);
}
...
...
tests_main.js
View file @
1f772f46
...
...
@@ -75,7 +75,6 @@ require([
auto_subscribe
:
false
,
animate
:
false
});
converse
.
onConnected
(
mock_connection
);
// Jasmine stuff
var
jasmineEnv
=
jasmine
.
getEnv
();
...
...
@@ -93,5 +92,5 @@ require([
};
jasmineEnv
.
updateInterval
=
200
;
}
jasmineEnv
.
execute
(
);
converse
.
onConnected
(
mock_connection
,
$
.
proxy
(
jasmineEnv
.
execute
,
jasmineEnv
)
);
});
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