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
ce2548c8
Commit
ce2548c8
authored
Jul 15, 2017
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove the `visible_toolbar_buttons.emoticons` config option
in favor of `visible_toolbar_buttons.emoji`.
parent
3fabe889
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
52 deletions
+14
-52
CHANGES.md
CHANGES.md
+5
-0
docs/source/configuration.rst
docs/source/configuration.rst
+4
-4
sass/_core.scss
sass/_core.scss
+0
-3
src/converse-chatview.js
src/converse-chatview.js
+2
-4
src/templates/chatroom_toolbar.html
src/templates/chatroom_toolbar.html
+1
-20
src/templates/toolbar.html
src/templates/toolbar.html
+1
-20
src/utils.js
src/utils.js
+1
-1
No files found.
CHANGES.md
View file @
ce2548c8
...
...
@@ -2,7 +2,12 @@
## 3.2.0 (Unreleased)
### New features
-
Add support for Emojis (either native, or via
<a
href=
"https://www.emojione.com/"
>
Emojione
</a>
).
Therefore the
`visible_toolbar_buttons.emoticons`
configuration option is now changed
to
`visible_toolbar_buttons.emoji`
. [jcbrand]
### Code changes
-
Removed jQuery from
`converse-core`
,
`converse-vcard`
and
`converse-roomslist`
. [jcbrand]
-
Remove
`jquery.easing`
from the full build. Was only being used by the
[
conversejs.org
](
https://conversejs.org
)
website, which has been updated to not rely on it. [jcbrand]
...
...
docs/source/configuration.rst
View file @
ce2548c8
...
...
@@ -1162,7 +1162,7 @@ visible_toolbar_buttons
{
call: false,
clear: true,
emo
ticons
: true,
emo
ji
: true,
toggle_occupants: true
}
...
...
@@ -1181,9 +1181,9 @@ Allows you to show or hide buttons on the chat boxes' toolbars.
});
* *clear*:
Provides a button for clearing messages from a chat box.
* *emo
ticons
*:
Enables rendering of emo
ticons
and provides a toolbar button for choosing them.
*
toggle_occupants
:
* *emo
ji
*:
Enables rendering of emo
ji
and provides a toolbar button for choosing them.
*
*toggle_occupants*
:
Shows a button for toggling (i.e. showing/hiding) the list of occupants in a chat room.
.. _`websocket-url`:
...
...
sass/_core.scss
View file @
ce2548c8
...
...
@@ -52,9 +52,6 @@
-webkit-touch-callout
:
none
;
@include
user-select
(
none
);
}
.emoticon
{
font-size
:
$font-size
;
}
@keyframes
fadein
{
0
%
{
opacity
:
0
}
...
...
src/converse-chatview.js
View file @
ce2548c8
...
...
@@ -93,7 +93,6 @@
time_format
:
'
HH:mm
'
,
visible_toolbar_buttons
:
{
'
emoji
'
:
true
,
'
emoticons
'
:
true
,
'
call
'
:
false
,
'
clear
'
:
true
},
...
...
@@ -422,8 +421,8 @@
'
extra_classes
'
:
this
.
getExtraMessageClasses
(
attrs
)
})
));
if
(
_converse
.
visible_toolbar_buttons
.
emo
ticons
)
{
text
=
utils
.
addEmo
ticons
(
_converse
,
emojione
,
text
);
if
(
_converse
.
visible_toolbar_buttons
.
emo
ji
)
{
text
=
utils
.
addEmo
ji
(
_converse
,
emojione
,
text
);
}
$msg
.
find
(
'
.chat-msg-content
'
).
first
().
text
(
text
).
addHyperlinks
();
return
$msg
;
...
...
@@ -780,7 +779,6 @@
'
label_start_call
'
:
__
(
'
Start a call
'
),
'
show_call_button
'
:
_converse
.
visible_toolbar_buttons
.
call
,
'
show_clear_button
'
:
_converse
.
visible_toolbar_buttons
.
clear
,
'
show_emoticons
'
:
_converse
.
visible_toolbar_buttons
.
emoticons
,
'
use_emoji
'
:
_converse
.
visible_toolbar_buttons
.
emoji
,
});
},
...
...
src/templates/chatroom_toolbar.html
View file @
ce2548c8
{[ if (
show_emoticons
) { ]}
{[ if (
use_emoji
) { ]}
<li
class=
"toggle-smiley icon-happy"
title=
"{{{label_insert_smiley}}}"
>
{[ if (use_emoji) { ]}
<ul
class=
"emoji-picker"
></ul>
{[ } ]}
{[ if (!use_emoji) { ]}
<ul
class=
"toolbar-picker-panel"
>
<li><a
class=
"icon-smiley"
href=
"#"
data-emoticon=
":)"
></a></li>
<li><a
class=
"icon-wink"
href=
"#"
data-emoticon=
";)"
></a></li>
<li><a
class=
"icon-grin"
href=
"#"
data-emoticon=
":D"
></a></li>
<li><a
class=
"icon-tongue"
href=
"#"
data-emoticon=
":P"
></a></li>
<li><a
class=
"icon-cool"
href=
"#"
data-emoticon=
"8)"
></a></li>
<li><a
class=
"icon-evil"
href=
"#"
data-emoticon=
">:)"
></a></li>
<li><a
class=
"icon-confused"
href=
"#"
data-emoticon=
":S"
></a></li>
<li><a
class=
"icon-wondering"
href=
"#"
data-emoticon=
":\"
></a></li>
<li><a
class=
"icon-angry"
href=
"#"
data-emoticon=
">:("
></a></li>
<li><a
class=
"icon-sad"
href=
"#"
data-emoticon=
":("
></a></li>
<li><a
class=
"icon-shocked"
href=
"#"
data-emoticon=
":O"
></a></li>
<li><a
class=
"icon-thumbs-up"
href=
"#"
data-emoticon=
"(^.^)b"
></a></li>
<li><a
class=
"icon-heart"
href=
"#"
data-emoticon=
"<3"
></a></li>
</ul>
{[ } ]}
</li>
{[ } ]}
{[ if (show_call_button) { ]}
...
...
src/templates/toolbar.html
View file @
ce2548c8
{[ if (
show_emoticons
) { ]}
{[ if (
use_emoji
) { ]}
<li
class=
"toggle-smiley icon-happy"
title=
"{{{label_insert_smiley}}}"
>
{[ if (use_emoji) { ]}
<ul
class=
"emoji-picker"
></ul>
{[ } ]}
{[ if (!use_emoji) { ]}
<ul
class=
"toolbar-picker-panel"
>
<li><a
class=
"icon-smiley"
href=
"#"
data-emoticon=
":)"
></a></li>
<li><a
class=
"icon-wink"
href=
"#"
data-emoticon=
";)"
></a></li>
<li><a
class=
"icon-grin"
href=
"#"
data-emoticon=
":D"
></a></li>
<li><a
class=
"icon-tongue"
href=
"#"
data-emoticon=
":P"
></a></li>
<li><a
class=
"icon-cool"
href=
"#"
data-emoticon=
"8)"
></a></li>
<li><a
class=
"icon-evil"
href=
"#"
data-emoticon=
">:)"
></a></li>
<li><a
class=
"icon-confused"
href=
"#"
data-emoticon=
":S"
></a></li>
<li><a
class=
"icon-wondering"
href=
"#"
data-emoticon=
":\"
></a></li>
<li><a
class=
"icon-angry"
href=
"#"
data-emoticon=
">:("
></a></li>
<li><a
class=
"icon-sad"
href=
"#"
data-emoticon=
":("
></a></li>
<li><a
class=
"icon-shocked"
href=
"#"
data-emoticon=
":O"
></a></li>
<li><a
class=
"icon-thumbs-up"
href=
"#"
data-emoticon=
"(^.^)b"
></a></li>
<li><a
class=
"icon-heart"
href=
"#"
data-emoticon=
"<3"
></a></li>
</ul>
</li>
{[ } ]}
{[ } ]}
{[ if (show_call_button) { ]}
<li
class=
"toggle-call"
><a
class=
"icon-phone"
title=
"{{{label_start_call}}}"
></a></li>
...
...
src/utils.js
View file @
ce2548c8
...
...
@@ -565,7 +565,7 @@
frag
=
tmp
=
null
;
};
utils
.
addEmo
ticons
=
function
(
_converse
,
emojione
,
text
)
{
utils
.
addEmo
ji
=
function
(
_converse
,
emojione
,
text
)
{
return
emojione
.
shortnameToUnicode
(
text
);
}
...
...
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