UNPKG
converse.js
Version:
latest (11.0.1)
11.0.1
11.0.0
10.1.8
10.1.7
10.1.6
10.1.5
10.1.4
10.1.3
10.1.2
10.1.1
10.1.0
10.0.0
9.1.1
9.1.0
9.0.0
8.0.1
8.0.0
7.0.6
7.0.5
7.0.4
7.0.3
7.0.2
7.0.1
7.0.0
6.0.1
5.0.5
5.0.3
5.0.2
5.0.1
5.0.0
4.2.0
4.1.2
4.1.1
4.1.0
4.0.6
4.0.5
4.0.4
4.0.3
4.0.2
4.0.1
4.0.0
3.3.4
3.3.3
3.3.2
3.3.1
3.3.0
3.2.1
3.2.0
3.1.1
3.1.0
3.0.2
3.0.1
3.0.0
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.0
Browser based XMPP chat client
github.com/conversejs/converse.js
conversejs/converse.js
converse.js
/
src
/
templates
/
file.js
8 lines
(6 loc)
•
237 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
import
{ __ }
from
'i18n'
;
import
{ html }
from
"lit"
;
export
default
(url, name) => {
const
i18n_download =
__
(
'Download file "%1$s"'
, name)
return
html`
<
a
target
=
"_blank"
rel
=
"noopener"
href
=
"
${url}
"
>
${i18n_download}
</
a
>
`
; }