@chat21/chat21-ionic 3.0.63 → 3.0.65-rc1
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 +18 -1
- package/deploy_amazon_beta.sh +29 -0
- package/deploy_amazon_prod.sh +26 -0
- package/deploy_pre.sh +5 -44
- package/deploy_prod.sh +6 -54
- package/package.json +6 -1
- package/publiccode.yml +110 -0
- package/src/app/app.component.ts +50 -59
- package/src/app/app.module.ts +1 -0
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.html +2 -2
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.scss +0 -1
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.ts +2 -39
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.html +18 -6
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.ts +2 -2
- package/src/app/chatlib/conversation-detail/message/html/html.component.html +1 -0
- package/src/app/chatlib/conversation-detail/message/html/html.component.scss +79 -0
- package/src/app/chatlib/conversation-detail/message/html/html.component.spec.ts +25 -0
- package/src/app/chatlib/conversation-detail/message/html/html.component.ts +33 -0
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.html +1 -1
- package/src/app/chatlib/list-conversations-component/list-conversations/list-conversations.component.ts +0 -1
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.html +1 -1
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.scss +19 -0
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component_2.html +116 -0
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.html +2 -2
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.ts +2 -2
- package/src/app/directives/safe-html.pipe.ts +2 -2
- package/src/app/directives/truncate.pipe.spec.ts +8 -0
- package/src/app/directives/truncate.pipe.ts +16 -0
- package/src/app/pages/conversation-detail/conversation-detail.module.ts +3 -2
- package/src/app/pages/conversation-detail/conversation-detail.page.html +4 -2
- package/src/app/pages/conversation-detail/conversation-detail.page.ts +12 -23
- package/src/app/pages/conversations-list/conversations-list.page.html +21 -12
- package/src/app/pages/conversations-list/conversations-list.page.ts +104 -366
- package/src/app/pages/loader-preview/loader-preview.module.ts +1 -2
- package/src/app/shared/shared.module.ts +4 -0
- package/src/assets/js/chat21client.js +1 -1
- package/src/{chat-config-mqtt-ver-uploaded.json → chat-config-mqtt-localhost.json} +10 -6
- package/src/chat-config-mqtt.json +18 -28
- package/src/chat-config-native-mqtt.json +30 -0
- package/src/chat-config-pre.json +9 -13
- package/src/chat21-core/models/conversation.ts +1 -1
- package/src/chat21-core/providers/abstract/conversations-handler.service.ts +1 -1
- package/src/chat21-core/providers/firebase/firebase-conversations-handler.ts +65 -9
- package/src/chat21-core/utils/utils-message.ts +5 -6
- package/src/chat-config-pre-test.json +0 -37
|
@@ -143,7 +143,7 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
|
|
|
143
143
|
arrowkeyLocation = -1
|
|
144
144
|
public_Key: any;
|
|
145
145
|
areVisibleCAR: boolean;
|
|
146
|
-
|
|
146
|
+
supportMode: boolean;
|
|
147
147
|
//SOUND
|
|
148
148
|
setTimeoutSound: any;
|
|
149
149
|
audio: any;
|
|
@@ -313,7 +313,6 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
|
|
|
313
313
|
const conversations = this.conversationsHandlerService.conversations
|
|
314
314
|
// console.log('[CONVS-DETAIL] conversations', conversations);
|
|
315
315
|
this.conversation_count = conversations.length
|
|
316
|
-
this.logger.log('[CONVS-DETAIL] conversation_count', this.conversation_count)
|
|
317
316
|
})
|
|
318
317
|
|
|
319
318
|
this.conversationsHandlerService.conversationChanged.subscribe((conv) => {
|
|
@@ -321,7 +320,6 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
|
|
|
321
320
|
const conversations = this.conversationsHandlerService.conversations
|
|
322
321
|
// console.log('[CONVS-DETAIL] conversations', conversations);
|
|
323
322
|
this.conversation_count = conversations.length
|
|
324
|
-
this.logger.log('[CONVS-DETAIL] conversation_count', this.conversation_count)
|
|
325
323
|
if (conv && conv.sender !== this.loggedUser.uid) {
|
|
326
324
|
this.logger.log('[CONVS-DETAIL] subscribe to BSConversationsChange data sender ', conv.sender)
|
|
327
325
|
this.logger.log('[CONVS-DETAIL] subscribe to BSConversationsChange this.loggedUser.uid ', this.loggedUser.uid)
|
|
@@ -333,8 +331,8 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
|
|
|
333
331
|
// ARE AT THE END
|
|
334
332
|
this.updateConversationBadge()
|
|
335
333
|
}
|
|
336
|
-
if
|
|
337
|
-
this.conversationAvatar = setConversationAvatar(conv.conversation_with,
|
|
334
|
+
if(conv.uid && conv.uid === this.conversationWith){
|
|
335
|
+
this.conversationAvatar = setConversationAvatar(conv.conversation_with,conv.conversation_with_fullname,conv.channel_type)
|
|
338
336
|
}
|
|
339
337
|
|
|
340
338
|
}
|
|
@@ -354,15 +352,15 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
|
|
|
354
352
|
}
|
|
355
353
|
|
|
356
354
|
getOSCODE() {
|
|
357
|
-
this.
|
|
355
|
+
this.supportMode = null
|
|
358
356
|
if (this.appConfigProvider.getConfig().supportMode === true || this.appConfigProvider.getConfig().supportMode === 'true') {
|
|
359
|
-
this.
|
|
357
|
+
this.supportMode = true
|
|
360
358
|
} else if (this.appConfigProvider.getConfig().supportMode === false || this.appConfigProvider.getConfig().supportMode === 'false') {
|
|
361
|
-
this.
|
|
359
|
+
this.supportMode = false
|
|
362
360
|
} else if (!this.appConfigProvider.getConfig().supportMode) {
|
|
363
|
-
this.
|
|
361
|
+
this.supportMode = false
|
|
364
362
|
}
|
|
365
|
-
this.logger.log('[CONVS-DETAIL] AppConfigService getAppConfig
|
|
363
|
+
this.logger.log('[CONVS-DETAIL] AppConfigService getAppConfig supportMode', this.supportMode)
|
|
366
364
|
this.public_Key = this.appConfigProvider.getConfig().t2y12PruGU9wUtEGzBJfolMIgK
|
|
367
365
|
this.logger.log('[CONVS-DETAIL] AppConfigService getAppConfig public_Key', this.public_Key)
|
|
368
366
|
|
|
@@ -375,26 +373,17 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
|
|
|
375
373
|
let car = key.split(':')
|
|
376
374
|
if (car[1] === 'F') {
|
|
377
375
|
this.areVisibleCAR = false
|
|
378
|
-
this.logger.log(
|
|
379
|
-
'[CONVS-DETAIL] PUBLIC-KEY - areVisibleCAR',
|
|
380
|
-
this.areVisibleCAR,
|
|
381
|
-
)
|
|
376
|
+
this.logger.log('[CONVS-DETAIL] PUBLIC-KEY - areVisibleCAR',this.areVisibleCAR)
|
|
382
377
|
} else {
|
|
383
378
|
this.areVisibleCAR = true
|
|
384
|
-
this.logger.log(
|
|
385
|
-
'[CONVS-DETAIL] PUBLIC-KEY - areVisibleCAR',
|
|
386
|
-
this.areVisibleCAR,
|
|
387
|
-
)
|
|
379
|
+
this.logger.log('[CONVS-DETAIL] PUBLIC-KEY - areVisibleCAR',this.areVisibleCAR)
|
|
388
380
|
}
|
|
389
381
|
}
|
|
390
382
|
})
|
|
391
383
|
|
|
392
384
|
if (!this.public_Key.includes('CAR')) {
|
|
393
385
|
this.areVisibleCAR = false
|
|
394
|
-
this.logger.log(
|
|
395
|
-
'[CONVS-DETAIL] PUBLIC-KEY - areVisibleCAR',
|
|
396
|
-
this.areVisibleCAR,
|
|
397
|
-
)
|
|
386
|
+
this.logger.log('[CONVS-DETAIL] PUBLIC-KEY - areVisibleCAR',this.areVisibleCAR)
|
|
398
387
|
}
|
|
399
388
|
} else {
|
|
400
389
|
this.areVisibleCAR = false
|
|
@@ -1127,7 +1116,7 @@ export class ConversationDetailPage implements OnInit, OnDestroy, AfterViewInit
|
|
|
1127
1116
|
// ----------------------------------------------------------
|
|
1128
1117
|
// DISPLAY CANNED RESPONSES if message.lastIndexOf("/")
|
|
1129
1118
|
// ----------------------------------------------------------
|
|
1130
|
-
if (this.areVisibleCAR && this.
|
|
1119
|
+
if (this.areVisibleCAR && this.supportMode === true) {
|
|
1131
1120
|
setTimeout(() => {
|
|
1132
1121
|
if (this.conversationWith.startsWith('support-group')) {
|
|
1133
1122
|
const pos = message.lastIndexOf('/')
|
|
@@ -43,16 +43,17 @@
|
|
|
43
43
|
<ion-label part="message-text" class="waiting-for-network-msg"> Waiting for network</ion-label>
|
|
44
44
|
</ion-item>
|
|
45
45
|
<!-- supportMode && -->
|
|
46
|
-
<ion-item *ngIf="displayNewConvsItem && conversationType !=='archived'" class="ion-no-padding open-iframe-item">
|
|
46
|
+
<ion-item *ngIf="displayNewConvsItem && conversationType !=='archived' && supportMode" class="ion-no-padding open-iframe-item">
|
|
47
47
|
<div tabindex="0"></div>
|
|
48
48
|
<!-- <ion-note class="pinned-project">
|
|
49
49
|
{{ 'PINNED_PROJECT' | translate }}
|
|
50
50
|
</ion-note> -->
|
|
51
51
|
|
|
52
|
-
<app-project-item
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
<app-project-item
|
|
53
|
+
style="width: 100%;"
|
|
54
|
+
(openUnsevedConvsEvent)="openUnsevedConversationIframe($event)"
|
|
55
|
+
(projectIdEvent)="getLastProjectId($event)">
|
|
56
|
+
</app-project-item>
|
|
56
57
|
</ion-item>
|
|
57
58
|
|
|
58
59
|
<span
|
|
@@ -66,10 +67,15 @@
|
|
|
66
67
|
<!-- ---------------------------------- -->
|
|
67
68
|
<!-- ACTIVE CONVERSATION LIST -->
|
|
68
69
|
<!-- ---------------------------------- -->
|
|
69
|
-
<ion-list-conversations *ngIf="conversationType ==='active'"
|
|
70
|
-
[
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
<ion-list-conversations *ngIf="conversationType ==='active'"
|
|
71
|
+
[uidConvSelected]="uidConvSelected"
|
|
72
|
+
[listConversations]="conversations"
|
|
73
|
+
[stylesMap]="stylesMap"
|
|
74
|
+
[translationMap]="translationMapConversation"
|
|
75
|
+
(onConversationSelected)=onConversationSelected($event)
|
|
76
|
+
(onImageLoaded)="onImageLoaded($event)"
|
|
77
|
+
(onConversationLoaded)="onConversationLoaded($event)"
|
|
78
|
+
(onCloseConversation)="onCloseConversation($event)"
|
|
73
79
|
[archiveActionNotAllowed]="archiveActionNotAllowed"
|
|
74
80
|
(onCloseAlert)="onCloseAlert($event)">
|
|
75
81
|
</ion-list-conversations>
|
|
@@ -77,9 +83,12 @@
|
|
|
77
83
|
<!-- ---------------------------------- -->
|
|
78
84
|
<!-- ARCHIVED CONVERSATION LIST -->
|
|
79
85
|
<!-- ---------------------------------- -->
|
|
80
|
-
<ion-list-conversations *ngIf="conversationType ==='archived'"
|
|
81
|
-
[
|
|
82
|
-
|
|
86
|
+
<ion-list-conversations *ngIf="conversationType ==='archived'"
|
|
87
|
+
[listConversations]="archivedConversations"
|
|
88
|
+
[stylesMap]="stylesMap"
|
|
89
|
+
[translationMap]="translationMapConversation"
|
|
90
|
+
(onConversationSelected)=onConversationSelected($event)
|
|
91
|
+
(onImageLoaded)="onImageLoaded($event)"
|
|
83
92
|
(onConversationLoaded)="onConversationLoaded($event)">
|
|
84
93
|
</ion-list-conversations>
|
|
85
94
|
</ng-template>
|