forked from conversejs/converse.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
72 lines (70 loc) · 2.92 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html lang="en">
<head>
<title>Converse</title>
<meta charset="utf-8" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Converse XMPP/Jabber Chat" />
<meta name="author" content="JC Brand" />
<meta name="keywords" content="xmpp chat webchat converse.js" />
<link rel="manifest" href="./manifest.json" />
<link rel="shortcut icon" type="image/ico" href="images/favicon.ico" />
<link type="text/css" rel="stylesheet" media="screen" href="dist/converse.min.css" />
<script src="3rdparty/libsignal-protocol.js"></script>
<script src="dist/converse.min.js"></script>
</head>
<body class="reset">
<script>
converse.plugins.add('converse-debug', {
initialize() {
const { _converse } = this;
window._converse = _converse;
},
});
converse.initialize({
getAuthorizationToken: function () {
return 'bearer ' + window.prompt('ingrese accessToken (sin bearer):');
},
//singleton: true,
play_sounds: true,
locales: ['es', 'en', 'pt_BR'],
allow_registration: false,
allow_message_corrections: false,
allow_message_retraction: false,
allow_dragresize: false,
muc_show_join_leave: false,
sticky_controlbox: true,
auto_away: 300,
roster_groups: false,
show_client_info: false,
send_chat_state_notifications: ['composing'],
allow_contact_removal: false,
allow_muc: false,
show_toolbar: false,
show_send_button: true,
visible_toolbar_buttons: {
call: false,
spoiler: false,
emoji: false,
toggle_occupants: false,
},
bosh_service_url: 'https://chat.gointegro.com/http-bind',
prebind: false,
auto_login: true,
authentication: 'login',
credentials_url: 'http://api.qa.go5.gointegro.net/chat/prebind',
enable_smacks: false,
persistent_store: 'IndexedDB',
show_send_button: true,
message_archiving: 'always',
loglevel: 'debug',
allow_logout: false,
allow_chat_pending_contacts: true,
allow_non_roster_messaging: true,
auto_reconnect: true,
xhr_user_search_url: 'http://api.qa.go5.gointegro.net/chat/users?',
});
</script>
</body>
</html>