@chat21/chat21-ionic 3.0.54-RC2 → 3.0.55-RC6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/LICENSE +21 -0
- package/config.xml +1 -0
- package/package.json +6 -2
- package/resources/Android/icon/drawable-hdpi-icon.png +0 -0
- package/resources/Android/icon/drawable-ldpi-icon.png +0 -0
- package/resources/Android/icon/drawable-mdpi-icon.png +0 -0
- package/resources/Android/icon/drawable-xhdpi-icon.png +0 -0
- package/resources/Android/icon/drawable-xxhdpi-icon.png +0 -0
- package/resources/Android/icon/drawable-xxxhdpi-icon.png +0 -0
- package/resources/Android/icon.png +0 -0
- package/resources/Android/splash/drawable-land-hdpi-screen.png +0 -0
- package/resources/Android/splash/drawable-land-ldpi-screen.png +0 -0
- package/resources/Android/splash/drawable-land-mdpi-screen.png +0 -0
- package/resources/Android/splash/drawable-land-xhdpi-screen.png +0 -0
- package/resources/Android/splash/drawable-land-xxhdpi-screen.png +0 -0
- package/resources/Android/splash/drawable-land-xxxhdpi-screen.png +0 -0
- package/resources/Android/splash/drawable-port-hdpi-screen.png +0 -0
- package/resources/Android/splash/drawable-port-ldpi-screen.png +0 -0
- package/resources/Android/splash/drawable-port-mdpi-screen.png +0 -0
- package/resources/Android/splash/drawable-port-xhdpi-screen.png +0 -0
- package/resources/Android/splash/drawable-port-xxhdpi-screen.png +0 -0
- package/resources/Android/splash/drawable-port-xxxhdpi-screen.png +0 -0
- package/resources/Android/splash.png +0 -0
- package/src/app/app.component.ts +504 -433
- package/src/app/app.module.ts +9 -4
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.scss +4 -0
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.html +27 -30
- package/src/app/chatlib/conversation-detail/message/text/text.component.html +1 -1
- package/src/app/chatlib/conversation-detail/message/text/text.component.ts +27 -3
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.html +4 -4
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.ts +5 -5
- package/src/app/components/conversation-info/info-content/info-content.component.ts +8 -1
- package/src/app/pages/conversation-detail/conversation-detail.page.ts +33 -25
- package/src/chat-config-pre-test.json +2 -1
- package/src/chat21-core/providers/abstract/messagingAuth.service.ts +1 -1
- package/src/chat21-core/providers/firebase/firebase-archivedconversations-handler.ts +3 -2
- package/src/chat21-core/providers/firebase/firebase-auth-service.ts +84 -17
- package/src/chat21-core/providers/firebase/firebase-conversations-handler.ts +6 -4
- package/src/chat21-core/providers/localSessionStorage.ts +2 -1
- package/src/index.html +87 -6
package/src/index.html
CHANGED
|
@@ -5,25 +5,105 @@
|
|
|
5
5
|
<meta charset="utf-8" />
|
|
6
6
|
<title>Tiledesk - Open Source Live Chat</title>
|
|
7
7
|
|
|
8
|
-
<base href="./"/>
|
|
8
|
+
<base href="./" />
|
|
9
9
|
<!-- <base href="/"/> -->
|
|
10
10
|
<!-- <base href="./"/> quando rilascio in prod sostituisco questo base con quello sopra -->
|
|
11
11
|
|
|
12
12
|
<!-- <meta name="color-scheme" content="light dark" /> disable dark mode: Note in theme/variable.scss is also commented all the code that referts to dark-mode -->
|
|
13
13
|
<meta name="color-scheme" content="light" />
|
|
14
|
-
<meta name="viewport"
|
|
14
|
+
<meta name="viewport"
|
|
15
|
+
content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
|
15
16
|
<meta name="format-detection" content="telephone=no" />
|
|
16
17
|
<meta name="msapplication-tap-highlight" content="no" />
|
|
17
18
|
|
|
18
19
|
<link rel="icon" type="image/png" href="assets/icon/favicon.ico" />
|
|
19
20
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&lang=en" />
|
|
20
|
-
|
|
21
|
+
|
|
21
22
|
<link rel="manifest" href="./manifest.json">
|
|
22
23
|
<!-- <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> -->
|
|
23
|
-
|
|
24
|
+
|
|
24
25
|
<!-- <script src="./assets/js/chat21client.js"></script> -->
|
|
25
26
|
<!-- <script src="https://unpkg.com/mqtt@4.1.0/dist/mqtt.min.js"></script> -->
|
|
26
27
|
|
|
28
|
+
<script>
|
|
29
|
+
console.log('index.html script version 0.1');
|
|
30
|
+
// window.onload = (event) => {
|
|
31
|
+
// console.log('index.html page is fully loaded');
|
|
32
|
+
// };
|
|
33
|
+
|
|
34
|
+
// window.addEventListener('online', (event) => {
|
|
35
|
+
// console.log("index.html You are now connected to the network.");
|
|
36
|
+
// });
|
|
37
|
+
|
|
38
|
+
// // ononline version
|
|
39
|
+
window.ononline = (event) => {
|
|
40
|
+
console.log("index.html You are now connected to the network.");
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
// // addEventListener version
|
|
44
|
+
// window.addEventListener('offline', (event) => {
|
|
45
|
+
// console.log("The network connection has been lost.");
|
|
46
|
+
// });
|
|
47
|
+
|
|
48
|
+
// // onoffline version
|
|
49
|
+
window.onoffline = (event) => {
|
|
50
|
+
console.log("The network connection has been lost.");
|
|
51
|
+
};
|
|
52
|
+
console.log('index.html window.navigator.onLine is ' + window.navigator.onLine);
|
|
53
|
+
|
|
54
|
+
if (window.navigator.onLine === false) {
|
|
55
|
+
let app_root_el = document.getElementsByTagName('app-root');
|
|
56
|
+
console.log('index.html app_root_el ', app_root_el);
|
|
57
|
+
|
|
58
|
+
setTimeout(function () {
|
|
59
|
+
console.log('index.html app_root_el > childNodes ', app_root_el[0].childNodes);
|
|
60
|
+
if (app_root_el[0].childNodes.length > 0) { // Or just `if (element.childNodes.length)`
|
|
61
|
+
console.log('index.html app_root_el has child', app_root_el[0].childNodes);
|
|
62
|
+
// window.ononline = (event) => {
|
|
63
|
+
// console.log("index.html You are now connected to the network.");
|
|
64
|
+
// location.reload(true);
|
|
65
|
+
// };
|
|
66
|
+
} else {
|
|
67
|
+
console.log('index.html app_root_el not has child', app_root_el[0].childNodes);
|
|
68
|
+
// if (window.navigator.onLine === true) {
|
|
69
|
+
// location.reload(true);
|
|
70
|
+
// }
|
|
71
|
+
window.ononline = (event) => {
|
|
72
|
+
console.log("index.html You are now connected to the network.");
|
|
73
|
+
location.reload(true);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
}, 3000);
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
// document.addEventListener('DOMContentLoaded', (event) => {
|
|
84
|
+
// // log.textContent = log.textContent + `DOMContentLoaded\n`;
|
|
85
|
+
// console.log("index.html DOMContentLoaded event ", event);
|
|
86
|
+
// console.log('index.html window.navigator.onLine is ' + window.navigator.onLine);
|
|
87
|
+
// let app_root_el = document.getElementsByTagName('app-root');
|
|
88
|
+
// console.log('index.html app_root_el ', app_root_el);
|
|
89
|
+
|
|
90
|
+
// setTimeout(function () {
|
|
91
|
+
// console.log('index.html app_root_el > childNodes ', app_root_el[0].childNodes);
|
|
92
|
+
// if (app_root_el[0].childNodes.length > 0) { // Or just `if (element.childNodes.length)`
|
|
93
|
+
// console.log('index.html app_root_el has child', app_root_el[0].childNodes);
|
|
94
|
+
// } else {
|
|
95
|
+
// console.log('index.html app_root_el not has child', app_root_el[0].childNodes);
|
|
96
|
+
// if (window.navigator.onLine === true) {
|
|
97
|
+
// location.reload(true);
|
|
98
|
+
// }
|
|
99
|
+
// }
|
|
100
|
+
|
|
101
|
+
// }, 3000);
|
|
102
|
+
|
|
103
|
+
// });
|
|
104
|
+
|
|
105
|
+
</script>
|
|
106
|
+
|
|
27
107
|
|
|
28
108
|
|
|
29
109
|
|
|
@@ -37,5 +117,6 @@
|
|
|
37
117
|
<app-root></app-root>
|
|
38
118
|
</body>
|
|
39
119
|
|
|
40
|
-
</script>
|
|
41
|
-
|
|
120
|
+
</script>
|
|
121
|
+
|
|
122
|
+
</html>
|