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
7a612460
Commit
7a612460
authored
Oct 07, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #1063 Make URLs in topic clickable
parent
5d97445d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
50 additions
and
14 deletions
+50
-14
CHANGES.md
CHANGES.md
+1
-0
css/converse.css
css/converse.css
+3
-0
dist/converse.js
dist/converse.js
+28
-8
sass/_chatrooms.scss
sass/_chatrooms.scss
+3
-0
src/converse-muc-views.js
src/converse-muc-views.js
+3
-2
src/templates/chatroom_head.html
src/templates/chatroom_head.html
+2
-1
src/templates/info.html
src/templates/info.html
+10
-3
No files found.
CHANGES.md
View file @
7a612460
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
-
Bugfix. Handler not triggered when submitting MUC password form 2nd time
-
Bugfix. Handler not triggered when submitting MUC password form 2nd time
-
Bugfix. MUC features weren't being refreshed when saving the config form
-
Bugfix. MUC features weren't being refreshed when saving the config form
-
#1063 URLs in the topic / subject are not clickable
-
#1190 MUC Participants column disappears in certain viewport widths
-
#1190 MUC Participants column disappears in certain viewport widths
-
#1199 Can't get back from to login screen from registration screen
-
#1199 Can't get back from to login screen from registration screen
-
#1214 Setting
`allow_contact_requests`
to
`false`
has no effect
-
#1214 Setting
`allow_contact_requests`
to
`false`
has no effect
...
...
css/converse.css
View file @
7a612460
...
@@ -10394,6 +10394,9 @@ body.reset {
...
@@ -10394,6 +10394,9 @@ body.reset {
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
white-space
:
nowrap
;
}
#conversejs
.converse-embedded
.chat-head-chatroom
.chatroom-description
a
,
#conversejs
.chat-head-chatroom
.chatroom-description
a
{
color
:
white
;
}
#conversejs
.converse-embedded
.chat-head-chatroom
a
.chatbox-btn.fa
,
#conversejs
.converse-embedded
.chat-head-chatroom
a
:visited
.chatbox-btn.fa
,
#conversejs
.converse-embedded
.chat-head-chatroom
a
:hover
.chatbox-btn.fa
,
#conversejs
.converse-embedded
.chat-head-chatroom
a
:not
([
href
])
:not
([
tabindex
])
.chatbox-btn.fa
,
#conversejs
.converse-embedded
.chat-head-chatroom
a
.chatbox-btn.fa
,
#conversejs
.converse-embedded
.chat-head-chatroom
a
:visited
.chatbox-btn.fa
,
#conversejs
.converse-embedded
.chat-head-chatroom
a
:hover
.chatbox-btn.fa
,
#conversejs
.converse-embedded
.chat-head-chatroom
a
:not
([
href
])
:not
([
tabindex
])
.chatbox-btn.fa
,
#conversejs
.chat-head-chatroom
a
.chatbox-btn.fa
,
#conversejs
.chat-head-chatroom
a
.chatbox-btn.fa
,
#conversejs
.chat-head-chatroom
a
:visited
.chatbox-btn.fa
,
#conversejs
.chat-head-chatroom
a
:visited
.chatbox-btn.fa
,
...
...
dist/converse.js
View file @
7a612460
...
@@ -68850,7 +68850,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
...
@@ -68850,7 +68850,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
'info_close': __('Close and leave this groupchat'),
'info_close': __('Close and leave this groupchat'),
'info_configure': __('Configure this groupchat'),
'info_configure': __('Configure this groupchat'),
'info_details': __('Show more details about this groupchat'),
'info_details': __('Show more details about this groupchat'),
'description': _.get(this.model.get('subject'), 'text') || ''
'description': u.addHyperlinks(xss.filterXSS(_.get(this.model.get('subject'), 'text'), {
'whiteList': {}
}))
}));
}));
},
},
...
@@ -69880,7 +69882,10 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
...
@@ -69880,7 +69882,10 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
'data': '',
'data': '',
'isodate': date,
'isodate': date,
'extra_classes': 'chat-topic',
'extra_classes': 'chat-topic',
'message': subject.text
'message': u.addHyperlinks(xss.filterXSS(_.get(this.model.get('subject'), 'text'), {
'whiteList': {}
})),
'render_message': true
}));
}));
}
}
...
@@ -78970,10 +78975,10 @@ __e( o.Strophe.getNodeFromJid(o.jid) ) +
...
@@ -78970,10 +78975,10 @@ __e( o.Strophe.getNodeFromJid(o.jid) ) +
__e( o.Strophe.getDomainFromJid(o.jid) ) +
__e( o.Strophe.getDomainFromJid(o.jid) ) +
'\n ';
'\n ';
} ;
} ;
__p += '\n </div>\n <p class="chatroom-description" title="' +
__p += '\n </div>\n <
!-- Sanitized in converse-muc-views. We want to render links. -->\n <
p class="chatroom-description" title="' +
__e(o.description) +
__e(o.description) +
'">' +
'">' +
__e(o.description
) +
((__t = (o.description)) == null ? '' : __t
) +
'</p>\n</div>\n<div class="chatbox-buttons row no-gutters">\n <a class="chatbox-btn close-chatbox-button fa fa-sign-out-alt" title="' +
'</p>\n</div>\n<div class="chatbox-buttons row no-gutters">\n <a class="chatbox-btn close-chatbox-button fa fa-sign-out-alt" title="' +
__e(o.info_close) +
__e(o.info_close) +
'"></a>\n ';
'"></a>\n ';
...
@@ -79670,16 +79675,31 @@ return __p
...
@@ -79670,16 +79675,31 @@ return __p
var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
var _ = {escape:__webpack_require__(/*! ./node_modules/lodash/escape.js */ "./node_modules/lodash/escape.js")};
module.exports = function(o) {
module.exports = function(o) {
var __t, __p = '', __e = _.escape;
var __t, __p = '', __e = _.escape, __j = Array.prototype.join;
__p += '<!-- src/templates/info.html -->\n<div class="message chat-info ' +
function print() { __p += __j.call(arguments, '') }
__p += '<!-- src/templates/info.html -->\n';
if (o.render_message) { ;
__p += '\n <!-- XXX: Should only ever be rendered if the message text has been sanitized already -->\n <div class="message chat-info ' +
__e(o.extra_classes) +
'"\n data-isodate="' +
__e(o.isodate) +
'"\n ' +
__e(o.data) +
'>' +
((__t = (o.message)) == null ? '' : __t) +
'</div>\n';
} else { ;
__p += '\n <div class="message chat-info ' +
__e(o.extra_classes) +
__e(o.extra_classes) +
'"\n data-isodate="' +
'"\n
data-isodate="' +
__e(o.isodate) +
__e(o.isodate) +
'"\n ' +
'"\n
' +
__e(o.data) +
__e(o.data) +
'>' +
'>' +
__e(o.message) +
__e(o.message) +
'</div>\n';
'</div>\n';
} ;
__p += '\n';
return __p
return __p
};
};
sass/_chatrooms.scss
View file @
7a612460
...
@@ -44,6 +44,9 @@
...
@@ -44,6 +44,9 @@
overflow
:
hidden
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
white-space
:
nowrap
;
a
{
color
:
white
;
}
}
}
a
,
a
:visited
,
a
:hover
,
a
:not
([
href
])
:not
([
tabindex
])
{
a
,
a
:visited
,
a
:hover
,
a
:not
([
href
])
:not
([
tabindex
])
{
...
...
src/converse-muc-views.js
View file @
7a612460
...
@@ -694,7 +694,7 @@
...
@@ -694,7 +694,7 @@
'
info_close
'
:
__
(
'
Close and leave this groupchat
'
),
'
info_close
'
:
__
(
'
Close and leave this groupchat
'
),
'
info_configure
'
:
__
(
'
Configure this groupchat
'
),
'
info_configure
'
:
__
(
'
Configure this groupchat
'
),
'
info_details
'
:
__
(
'
Show more details about this groupchat
'
),
'
info_details
'
:
__
(
'
Show more details about this groupchat
'
),
'
description
'
:
_
.
get
(
this
.
model
.
get
(
'
subject
'
),
'
text
'
)
||
''
'
description
'
:
u
.
addHyperlinks
(
xss
.
filterXSS
(
_
.
get
(
this
.
model
.
get
(
'
subject
'
),
'
text
'
),
{
'
whiteList
'
:
{}})),
}));
}));
},
},
...
@@ -1665,7 +1665,8 @@
...
@@ -1665,7 +1665,8 @@
'
data
'
:
''
,
'
data
'
:
''
,
'
isodate
'
:
date
,
'
isodate
'
:
date
,
'
extra_classes
'
:
'
chat-topic
'
,
'
extra_classes
'
:
'
chat-topic
'
,
'
message
'
:
subject
.
text
'
message
'
:
u
.
addHyperlinks
(
xss
.
filterXSS
(
_
.
get
(
this
.
model
.
get
(
'
subject
'
),
'
text
'
),
{
'
whiteList
'
:
{}})),
'
render_message
'
:
true
}));
}));
}
}
this
.
scrollDown
();
this
.
scrollDown
();
...
...
src/templates/chatroom_head.html
View file @
7a612460
...
@@ -7,7 +7,8 @@
...
@@ -7,7 +7,8 @@
{{{ o.Strophe.getNodeFromJid(o.jid) }}}@{{{ o.Strophe.getDomainFromJid(o.jid) }}}
{{{ o.Strophe.getNodeFromJid(o.jid) }}}@{{{ o.Strophe.getDomainFromJid(o.jid) }}}
{[ } ]}
{[ } ]}
</div>
</div>
<p
class=
"chatroom-description"
title=
"{{{o.description}}}"
>
{{{o.description}}}
</p>
<!-- Sanitized in converse-muc-views. We want to render links. -->
<p
class=
"chatroom-description"
title=
"{{{o.description}}}"
>
{{o.description}}
</p>
</div>
</div>
<div
class=
"chatbox-buttons row no-gutters"
>
<div
class=
"chatbox-buttons row no-gutters"
>
<a
class=
"chatbox-btn close-chatbox-button fa fa-sign-out-alt"
title=
"{{{o.info_close}}}"
></a>
<a
class=
"chatbox-btn close-chatbox-button fa fa-sign-out-alt"
title=
"{{{o.info_close}}}"
></a>
...
...
src/templates/info.html
View file @
7a612460
<div
class=
"message chat-info {{{o.extra_classes}}}"
{[ if (o.render_message) { ]}
data-isodate=
"{{{o.isodate}}}"
<!-- XXX: Should only ever be rendered if the message text has been sanitized already -->
{{{
o
.
data
}}}
>
{{{o.message}}}
</div>
<div
class=
"message chat-info {{{o.extra_classes}}}"
data-isodate=
"{{{o.isodate}}}"
{{{
o
.
data
}}}
>
{{o.message}}
</div>
{[ } else { ]}
<div
class=
"message chat-info {{{o.extra_classes}}}"
data-isodate=
"{{{o.isodate}}}"
{{{
o
.
data
}}}
>
{{{o.message}}}
</div>
{[ } ]}
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