@chat21/chat21-ionic 3.0.80-rc.1 → 3.0.80
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 +4 -61
- package/README.md +2 -2
- package/package.json +2 -2
- package/src/app/app.component.html +1 -7
- package/src/app/app.component.scss +2 -18
- package/src/app/app.component.ts +15 -73
- package/src/app/app.module.ts +1 -3
- package/src/app/chatlib/conversation-detail/conversation-content/conversation-content.component.ts +1 -8
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.html +23 -75
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.scss +85 -162
- 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 +19 -7
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.scss +10 -6
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.spec.ts +2 -2
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.ts +25 -16
- package/src/app/chatlib/conversation-detail/message/buttons/action-button/action-button.component.html +1 -5
- package/src/app/chatlib/conversation-detail/message/buttons/action-button/action-button.component.scss +15 -22
- package/src/app/chatlib/conversation-detail/message/buttons/action-button/action-button.component.ts +5 -25
- package/src/app/chatlib/conversation-detail/message/buttons/link-button/link-button.component.html +1 -2
- package/src/app/chatlib/conversation-detail/message/buttons/link-button/link-button.component.scss +15 -14
- package/src/app/chatlib/conversation-detail/message/buttons/link-button/link-button.component.ts +5 -24
- package/src/app/chatlib/conversation-detail/message/buttons/text-button/text-button.component.html +1 -6
- package/src/app/chatlib/conversation-detail/message/buttons/text-button/text-button.component.scss +13 -12
- package/src/app/chatlib/conversation-detail/message/buttons/text-button/text-button.component.ts +5 -26
- package/src/app/chatlib/conversation-detail/message/html/html.component.ts +1 -0
- package/src/app/chatlib/conversation-detail/message/info-message/info-message.component.scss +2 -2
- package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.html +6 -16
- package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.scss +3 -1
- package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.ts +0 -2
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.html +52 -78
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.scss +20 -62
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.ts +10 -14
- package/src/app/components/canned-response/canned-response.component.html +5 -5
- package/src/app/components/canned-response/canned-response.component.scss +1 -1
- package/src/app/components/canned-response/canned-response.component.ts +0 -1
- package/src/app/components/contacts-directory/contacts-directory.component.html +26 -22
- package/src/app/components/contacts-directory/contacts-directory.component.scss +6 -8
- package/src/app/components/conversation-detail/bubble-day-message/bubble-day-message.component.html +3 -0
- package/src/app/components/conversation-detail/bubble-day-message/bubble-day-message.component.scss +21 -0
- package/src/app/components/conversation-detail/bubble-day-message/bubble-day-message.component.spec.ts +24 -0
- package/src/app/components/conversation-detail/bubble-day-message/bubble-day-message.component.ts +14 -0
- package/src/app/components/conversation-detail/bubble-my-message/bubble-my-message.component.html +54 -0
- package/src/app/components/conversation-detail/bubble-my-message/bubble-my-message.component.scss +98 -0
- package/src/app/components/{conversations-list/header-conversations-list/header-conversations-list.component.spec.ts → conversation-detail/bubble-my-message/bubble-my-message.component.spec.ts} +6 -6
- package/src/app/components/conversation-detail/bubble-my-message/bubble-my-message.component.ts +84 -0
- package/src/app/components/conversation-detail/bubble-others-message/bubble-others-message.component.html +30 -0
- package/src/app/components/conversation-detail/bubble-others-message/bubble-others-message.component.scss +83 -0
- package/src/app/components/conversation-detail/bubble-others-message/bubble-others-message.component.spec.ts +24 -0
- package/src/app/components/conversation-detail/bubble-others-message/bubble-others-message.component.ts +68 -0
- package/src/app/components/conversation-detail/bubble-system-message/bubble-system-message.component.html +3 -0
- package/src/app/components/conversation-detail/bubble-system-message/bubble-system-message.component.scss +10 -0
- package/src/app/components/conversation-detail/bubble-system-message/bubble-system-message.component.spec.ts +24 -0
- package/src/app/components/conversation-detail/bubble-system-message/bubble-system-message.component.ts +14 -0
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.html +42 -61
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.scss +61 -98
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.ts +25 -9
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.html +5 -6
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.scss +4 -4
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.ts +83 -4
- package/src/app/components/conversation-detail/option-header/option-header.component.html +13 -0
- package/src/app/components/conversation-detail/option-header/option-header.component.scss +0 -0
- package/src/app/components/{conversations-list/header-conversations-list-archived/header-conversations-list-archived.component.spec.ts → conversation-detail/option-header/option-header.component.spec.ts} +5 -5
- package/src/app/components/{conversations-list/header-conversations-list-archived/header-conversations-list-archived.component.ts → conversation-detail/option-header/option-header.component.ts} +4 -5
- package/src/app/components/conversation-info/info-content/info-content.component.html +1 -2
- package/src/app/components/conversation-info/info-content/info-content.component.ts +2 -3
- package/src/app/components/conversation-info/info-direct/info-direct.component.html +9 -1
- package/src/app/components/conversation-info/info-direct/info-direct.component.ts +2 -0
- package/src/app/components/conversation-info/info-group/info-group.component.html +108 -44
- package/src/app/components/conversation-info/info-group/info-group.component.scss +61 -101
- package/src/app/components/conversation-info/info-group/info-group.component.ts +0 -1
- package/src/app/components/{conversations-list/header-conversations-list/header-conversations-list.component.html → ddp-header/ddp-header.component.html} +3 -3
- package/src/app/components/{conversations-list/header-conversations-list/header-conversations-list.component.scss → ddp-header/ddp-header.component.scss} +4 -16
- package/src/app/components/{navbar/navbar.component.spec.ts → ddp-header/ddp-header.component.spec.ts} +6 -6
- package/src/app/components/{conversations-list/header-conversations-list/header-conversations-list.component.ts → ddp-header/ddp-header.component.ts} +16 -7
- package/src/app/components/project-item/project-item.component.html +149 -98
- package/src/app/components/project-item/project-item.component.scss +35 -42
- package/src/app/components/project-item/project-item.component.ts +4 -16
- package/src/app/components/sidebar-user-details/sidebar-user-details.component.html +3 -3
- package/src/app/components/sidebar-user-details/sidebar-user-details.component.ts +7 -2
- package/src/app/components/utils/user-presence/user-presence.component.html +2 -7
- package/src/app/components/utils/user-presence/user-presence.component.scss +18 -35
- package/src/app/components/utils/user-presence/user-presence.component.ts +10 -6
- package/src/app/pages/contacts-directory/contacts-directory.page.html +1 -1
- package/src/app/pages/contacts-directory/contacts-directory.page.scss +0 -41
- package/src/app/pages/contacts-directory/contacts-directory.page.ts +0 -2
- package/src/app/pages/conversation-detail/conversation-detail.module.ts +8 -0
- package/src/app/pages/conversation-detail/conversation-detail.page.html +23 -40
- package/src/app/pages/conversation-detail/conversation-detail.page.scss +250 -40
- package/src/app/pages/conversation-detail/conversation-detail.page.ts +84 -190
- package/src/app/pages/conversations-list/conversations-list.page.html +8 -11
- package/src/app/pages/conversations-list/conversations-list.page.scss +2 -11
- package/src/app/pages/conversations-list/conversations-list.page.ts +22 -25
- package/src/app/pages/create-canned-response/create-canned-response.page.ts +13 -13
- package/src/app/pages/loader-preview/loader-preview.page.html +1 -1
- package/src/app/pages/loader-preview/loader-preview.page.scss +0 -4
- package/src/app/pages/loader-preview/loader-preview.page.ts +2 -1
- package/src/app/pages/profile-info/profile-info.page.html +4 -2
- package/src/app/pages/unassigned-conversations/unassigned-conversations.page.html +1 -1
- package/src/app/pages/unassigned-conversations/unassigned-conversations.page.scss +0 -42
- package/src/app/pages/unassigned-conversations/unassigned-conversations.page.ts +0 -1
- package/src/app/services/canned-responses/canned-responses.service.ts +0 -26
- package/src/app/services/tiledesk/tiledesk.service.ts +25 -1
- package/src/app/shared/shared.module.ts +33 -24
- package/src/assets/i18n/ar.json +265 -278
- package/src/assets/i18n/az.json +1 -14
- package/src/assets/i18n/de.json +2 -15
- package/src/assets/i18n/en.json +2 -15
- package/src/assets/i18n/es.json +2 -15
- package/src/assets/i18n/fr.json +1 -14
- package/src/assets/i18n/it.json +1 -14
- package/src/assets/i18n/kk.json +2 -15
- package/src/assets/i18n/pt.json +2 -15
- package/src/assets/i18n/ru.json +1 -14
- package/src/assets/i18n/sr.json +264 -277
- package/src/assets/i18n/sv.json +2 -15
- package/src/assets/i18n/tr.json +2 -15
- package/src/assets/i18n/uk.json +2 -15
- package/src/assets/i18n/uz.json +1 -14
- package/src/chat21-core/models/conversation.ts +1 -0
- package/src/chat21-core/providers/firebase/firebase-typing.service.ts +9 -7
- package/src/chat21-core/utils/constants.ts +1 -5
- package/src/chat21-core/utils/user-typing/user-typing.component.html +5 -8
- package/src/chat21-core/utils/user-typing/user-typing.component.scss +17 -87
- package/src/chat21-core/utils/user-typing/user-typing.component.ts +94 -12
- package/src/chat21-core/utils/utils.ts +10 -38
- package/src/global.scss +57 -48
- package/src/index.html +2 -2
- package/src/variables.scss +10 -30
- package/deploy_amazon_beta.sh +0 -29
- package/deploy_amazon_prod.sh +0 -30
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component_2.html +0 -116
- package/src/app/components/conversations-list/header-conversations-list-archived/header-conversations-list-archived.component.html +0 -12
- package/src/app/components/conversations-list/header-conversations-list-archived/header-conversations-list-archived.component.scss +0 -14
- package/src/app/components/navbar/navbar.component.html +0 -103
- package/src/app/components/navbar/navbar.component.scss +0 -249
- package/src/app/components/navbar/navbar.component.ts +0 -189
- package/src/app/services/projects/projects.service.spec.ts +0 -12
- package/src/app/services/projects/projects.service.ts +0 -43
- package/src/assets/sounds/wheep-wheep.mp3 +0 -0
- package/src/chat21-core/models/projects.ts +0 -27
- package/src/chat21-core/utils/convertRequestToConversation.ts +0 -41
package/src/global.scss
CHANGED
|
@@ -362,7 +362,19 @@ app-message-text-area {
|
|
|
362
362
|
z-index: 99999; // nk
|
|
363
363
|
background: #fff; // nk
|
|
364
364
|
}
|
|
365
|
-
|
|
365
|
+
app-bubble-day-message {
|
|
366
|
+
width: 100%;
|
|
367
|
+
}
|
|
368
|
+
app-bubble-system-message {
|
|
369
|
+
max-width: 80%;
|
|
370
|
+
margin: 0 auto;
|
|
371
|
+
}
|
|
372
|
+
app-bubble-my-message {
|
|
373
|
+
width: 100%;
|
|
374
|
+
}
|
|
375
|
+
app-bubble-others-message {
|
|
376
|
+
width: 100%;
|
|
377
|
+
}
|
|
366
378
|
app-conversation-info {
|
|
367
379
|
height: calc(100% - 60px);
|
|
368
380
|
}
|
|
@@ -422,6 +434,7 @@ select:-webkit-autofill:focus {
|
|
|
422
434
|
.canned-list {
|
|
423
435
|
.native-input[disabled] {
|
|
424
436
|
opacity: 10 !important;
|
|
437
|
+
cursor: pointer;
|
|
425
438
|
}
|
|
426
439
|
}
|
|
427
440
|
|
|
@@ -782,70 +795,66 @@ select:-webkit-autofill:focus {
|
|
|
782
795
|
}
|
|
783
796
|
|
|
784
797
|
// select teammate status in user detail drawer
|
|
785
|
-
.teammate-status-in-drawer {
|
|
786
|
-
|
|
787
|
-
&.ng-select {
|
|
798
|
+
.ng-select.teammate-status-in-drawer {
|
|
788
799
|
|
|
800
|
+
.ng-select-container {
|
|
801
|
+
background-color: #2d323e;
|
|
802
|
+
color: #fff;
|
|
803
|
+
border: 1px solid #2d323e;
|
|
804
|
+
}
|
|
805
|
+
&.ng-select-opened{
|
|
789
806
|
.ng-select-container {
|
|
790
807
|
background-color: #2d323e;
|
|
791
|
-
color: #fff;
|
|
792
808
|
border: 1px solid #2d323e;
|
|
793
809
|
}
|
|
794
|
-
&.ng-select-opened{
|
|
795
|
-
.ng-select-container {
|
|
796
|
-
background-color: #2d323e;
|
|
797
|
-
border: 1px solid #2d323e;
|
|
798
|
-
}
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
&.ng-select-focused:not(.ng-select-opened){
|
|
802
|
-
>.ng-select-container{
|
|
803
|
-
border: 1px solid #2d323e;
|
|
804
|
-
box-shadow: unset;
|
|
805
|
-
}
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
|
|
809
810
|
}
|
|
810
811
|
|
|
811
|
-
.ng-
|
|
812
|
-
|
|
813
|
-
border: 1px solid #2d323e;
|
|
814
|
-
|
|
815
|
-
&.ng-select-bottom {
|
|
812
|
+
&.ng-select-focused:not(.ng-select-opened){
|
|
813
|
+
>.ng-select-container{
|
|
816
814
|
border: 1px solid #2d323e;
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
815
|
+
box-shadow: unset;
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
|
|
821
819
|
|
|
822
|
-
|
|
823
|
-
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
.ng-dropdown-panel {
|
|
823
|
+
background-color: #2d323e;
|
|
824
|
+
border: 1px solid #2d323e;
|
|
825
|
+
|
|
826
|
+
&.ng-select-bottom {
|
|
827
|
+
border: 1px solid #2d323e;
|
|
828
|
+
margin-top: 8px;
|
|
829
|
+
border-top-right-radius: 4px;
|
|
830
|
+
border-top-left-radius: 4px;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
.ng-dropdown-panel-items {
|
|
834
|
+
.ng-option {
|
|
835
|
+
background-color: #2d323e;
|
|
836
|
+
color: #fff;
|
|
837
|
+
|
|
838
|
+
&.ng-option-marked {
|
|
839
|
+
background-color: rgba(30, 33, 41, 0.3);
|
|
840
|
+
color: #fff;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
&.ng-option-selected {
|
|
824
844
|
background-color: #2d323e;
|
|
825
845
|
color: #fff;
|
|
826
|
-
|
|
827
|
-
&.ng-option-marked {
|
|
828
|
-
background-color: rgba(30, 33, 41, 0.3);
|
|
829
|
-
color: #fff;
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
&.ng-option-selected {
|
|
833
|
-
background-color: #2d323e;
|
|
834
|
-
color: #fff;
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
&.ng-option-marked.ng-option-selected{
|
|
838
|
-
background-color: rgba(30, 33, 41, 0.3);
|
|
839
|
-
color: #fff;
|
|
840
|
-
}
|
|
841
846
|
}
|
|
842
|
-
|
|
847
|
+
|
|
848
|
+
&.ng-option-marked.ng-option-selected{
|
|
849
|
+
background-color: rgba(30, 33, 41, 0.3);
|
|
850
|
+
color: #fff;
|
|
851
|
+
}
|
|
843
852
|
}
|
|
853
|
+
|
|
844
854
|
}
|
|
845
855
|
}
|
|
846
856
|
|
|
847
857
|
|
|
848
|
-
|
|
849
858
|
/* *** SMALL SIDEBAR STYLE *** */
|
|
850
859
|
.small-sidebar-tiledesk-nav-user {
|
|
851
860
|
height: 40px;
|
package/src/index.html
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<!-- <script src="https://unpkg.com/mqtt@4.1.0/dist/mqtt.min.js"></script> -->
|
|
34
34
|
<!-- <script src="./assets/js/watchToConnectionAtStartUp.js"></script> -->
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
|
|
37
37
|
<!-- segment analytics -->
|
|
38
38
|
<script>
|
|
39
39
|
!function(){var analytics=window.analytics=window.analytics||[];if(!analytics.initialize)if(analytics.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{analytics.invoked=!0;analytics.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"];analytics.factory=function(e){return function(){var t=Array.prototype.slice.call(arguments);t.unshift(e);analytics.push(t);return analytics}};for(var e=0;e<analytics.methods.length;e++){var key=analytics.methods[e];analytics[key]=analytics.factory(key)}analytics.load=function(key,e){var t=document.createElement("script");t.type="text/javascript";t.async=!0;t.src="https://cdn.segment.com/analytics.js/v1/" + key + "/analytics.min.js";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n);analytics._loadOptions=e};analytics._writeKey="qaTU0wG6VH6xPAhOzD2kneI70Txg1fTB";;analytics.SNIPPET_VERSION="4.15.3";
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
analytics.page();
|
|
42
42
|
}}();
|
|
43
43
|
</script>
|
|
44
|
-
|
|
44
|
+
|
|
45
45
|
<!-- add to homescreen for ios -->
|
|
46
46
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
47
47
|
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
|
package/src/variables.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
:root {
|
|
2
2
|
/* Color palette */
|
|
3
3
|
--white: #ffffff;
|
|
4
4
|
--black: #000000;
|
|
@@ -7,47 +7,27 @@ body {
|
|
|
7
7
|
--basic-green: #0A7D41;
|
|
8
8
|
--dark-green: #005f3b;
|
|
9
9
|
--light-green: #8cc841;
|
|
10
|
+
|
|
10
11
|
--light-gray: #F2F2F2;
|
|
11
12
|
--basic-gray: #666666;
|
|
12
13
|
--dark-gray: #363636;
|
|
14
|
+
|
|
15
|
+
|
|
13
16
|
--light-blue: #C9E4F6;
|
|
14
17
|
--basic-blue: #2a69c1;
|
|
15
18
|
--bubble-blue: rgb(0, 153, 255);
|
|
16
|
-
|
|
19
|
+
--bubble-lightyellow: rgb(255, 247, 237);
|
|
20
|
+
--bubble-privateMsg: rgb(254, 214, 168);
|
|
21
|
+
--bubble-privateMsgColor: rgb(47, 57, 65);
|
|
17
22
|
|
|
18
23
|
--basic-yellow: #FFC627;
|
|
19
24
|
--basic-red: #EB1E23;
|
|
20
25
|
|
|
21
|
-
--bck-msg-sent: #
|
|
26
|
+
--bck-msg-sent: #62a8ea;
|
|
22
27
|
--col-msg-sent:#ffffff;
|
|
23
|
-
|
|
24
|
-
--bck-msg-received: #f0f2f7;
|
|
25
|
-
--col-msg-received: #06132b;
|
|
26
|
-
|
|
27
|
-
--bubble-lightyellow: rgb(255, 247, 237);
|
|
28
|
-
--bubble-privateMsg: rgb(254, 214, 168);
|
|
29
|
-
--bubble-privateMsgColor: rgb(47, 57, 65);
|
|
30
|
-
|
|
31
28
|
--light-white: #f7f7f7;
|
|
32
29
|
--black: #1a1a1a;
|
|
33
30
|
--gray: #aaaaaa;
|
|
34
31
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
--list-bkg-color-selected: rgba(24, 119, 242, 0.12); //rgba(24, 119, 242, 0.04);
|
|
38
|
-
|
|
39
|
-
--button-in-msg-font-size: 15px;
|
|
40
|
-
--buttonBackgroundColor: #ffffff;
|
|
41
|
-
--buttonTextColor: #2a6ac1;
|
|
42
|
-
--buttonHoverBackgroundColor: #2a6ac1;
|
|
43
|
-
--buttonHoverTextColor: #ffffff;
|
|
44
|
-
|
|
45
|
-
--padding-conversation-detail: 10px;
|
|
46
|
-
|
|
47
|
-
--border-radius-item: 16px;
|
|
48
|
-
--border-radius-content: 16px;
|
|
49
|
-
|
|
50
|
-
--sidebar-width: 60px;
|
|
51
|
-
--nav-bar-heigth: 60px;
|
|
52
|
-
|
|
53
|
-
}
|
|
32
|
+
|
|
33
|
+
}
|
package/deploy_amazon_beta.sh
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
#npm version prerelease --preid=beta
|
|
2
|
-
version=`node -e 'console.log(require("./package.json").version)'`
|
|
3
|
-
echo "version $version"
|
|
4
|
-
|
|
5
|
-
URL_VER=${version//[.]//}
|
|
6
|
-
echo 'URL_VER: ---->'$URL_VER
|
|
7
|
-
|
|
8
|
-
sed -i -e "s/$URL_VER/g" src/utils/constants.ts
|
|
9
|
-
|
|
10
|
-
# ng build --prod --base-href /$NEW_BUILD/
|
|
11
|
-
#ionic cordova build browser --prod
|
|
12
|
-
|
|
13
|
-
ionic cordova platform add browser --save
|
|
14
|
-
#ionic cordova build browser --prod --release
|
|
15
|
-
ionic cordova build --configuration="pre" browser #--prod --verbose
|
|
16
|
-
|
|
17
|
-
cp -p src/firebase-messaging-sw.js platforms/browser/www/
|
|
18
|
-
cp -p src/manifest.json platforms/browser/www/
|
|
19
|
-
cp -p src/chat-config.json platforms/browser/www/
|
|
20
|
-
|
|
21
|
-
cd platforms/browser/www
|
|
22
|
-
aws s3 sync . s3://tiledesk-dashboard-pre/chat-ionic5/$version/ --cache-control max-age=300
|
|
23
|
-
aws s3 sync . s3://tiledesk-dashboard-pre/chat-ionic5/ --cache-control max-age=300
|
|
24
|
-
cd ../../../
|
|
25
|
-
|
|
26
|
-
#aws cloudfront create-invalidation --distribution-id E13L8CUUKUWAJF --paths "/*"
|
|
27
|
-
|
|
28
|
-
echo new version deployed on s3://tiledesk-dashboard-pre/chat-ionic5/$version/
|
|
29
|
-
echo available on https://s3.eu-west-1.amazonaws.com/tiledesk-dashboard-pre/chat-ionic5/$version/index.html
|
package/deploy_amazon_prod.sh
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# npm version patch
|
|
2
|
-
version=`node -e 'console.log(require("./package.json").version)'`
|
|
3
|
-
echo "version $version"
|
|
4
|
-
|
|
5
|
-
URL_VER=${version//[.]//}
|
|
6
|
-
echo 'URL_VER: ---->'$URL_VER
|
|
7
|
-
|
|
8
|
-
# sed -i -e "s/$start$ver.$build/$start$NEW_VER.$NEW_BUILD/g" src/utils/constants.ts
|
|
9
|
-
sed -i -e "s/$URL_VER/g" src/utils/constants.ts
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
ionic cordova platform add browser --save
|
|
13
|
-
#ionic cordova build --env=prod browser -- --base-href /www/ --prod
|
|
14
|
-
ionic cordova build --env=prod browser --prod
|
|
15
|
-
|
|
16
|
-
cp -p src/firebase-messaging-sw.js platforms/browser/www/
|
|
17
|
-
cp -p src/manifest.json platforms/browser/www/
|
|
18
|
-
cp -p src/chat-config.json platforms/browser/www/
|
|
19
|
-
|
|
20
|
-
cd platforms/browser/www
|
|
21
|
-
aws s3 sync . s3://tiledesk-console/v2/chat/ --cache-control max-age=172800
|
|
22
|
-
aws s3 sync . s3://tiledesk-console/v2/chat/$version/ --cache-control max-age=172800
|
|
23
|
-
# aws s3 sync . s3://tiledesk-console/v2/chat/latest/ --cache-control max-age=172800
|
|
24
|
-
cd ../../../
|
|
25
|
-
|
|
26
|
-
# aws cloudfront create-invalidation --distribution-id E36UIP90GOSFPM --paths "/*"
|
|
27
|
-
|
|
28
|
-
# echo new version deployed on s3://tiledesk-dashboard/chat/$NEW_BUILD/
|
|
29
|
-
echo new version deployed on s3://tiledesk-console/v2/chat/$version/
|
|
30
|
-
echo available on https://console.tiledesk.com/v2/chat/$version/index.html
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
<ion-header no-border class="ion-no-border">
|
|
2
|
-
<ion-toolbar style="height:60px">
|
|
3
|
-
<div class="flex-container">
|
|
4
|
-
<div class="back-flex-container">
|
|
5
|
-
<ion-buttons slot="start" style="height:60px">
|
|
6
|
-
<!-- (click)="pushPage('conversations-list')" defaultHref="/conversations-list" -->
|
|
7
|
-
<ion-back-button style="display: block;" text="" *ngIf="isMobile" (click)="goBackToConversationList()">
|
|
8
|
-
</ion-back-button>
|
|
9
|
-
</ion-buttons>
|
|
10
|
-
</div>
|
|
11
|
-
<div class="user-info-flex-container">
|
|
12
|
-
<div style="display: flex;">
|
|
13
|
-
<div>1</div>
|
|
14
|
-
<div>2</div>
|
|
15
|
-
</div>
|
|
16
|
-
</div>
|
|
17
|
-
|
|
18
|
-
<div class="resolve-flex-container">
|
|
19
|
-
<ion-buttons slot="end">
|
|
20
|
-
|
|
21
|
-
<!-- <ion-button ion-button fill="clear" color="primary" size="small" (click)="presentCreateTicketModal()" [ngClass]="{'resolve-conv-margin-right': !isMobile}">
|
|
22
|
-
<ion-icon name="ticket-outline"></ion-icon>
|
|
23
|
-
<span style="text-transform: capitalize; margin-left: 5px;"> {{ 'Crea ticket' | translate}} </span>
|
|
24
|
-
</ion-button> -->
|
|
25
|
-
|
|
26
|
-
<ion-button *ngIf="conversationUid?.startsWith('support-group') && conv_type !== 'archived'" ion-button fill="clear" color="primary" size="small"
|
|
27
|
-
(click)="closeConversation()" [ngClass]="{'resolve-conv-margin-right': !isMobile}" [disabled]="conv_closed === true">
|
|
28
|
-
<!-- <ion-icon slot="icon-only" name="alert-circle-outline"></ion-icon> -->
|
|
29
|
-
<ion-icon name="archive-outline"></ion-icon>
|
|
30
|
-
<!-- <ion-icon slot="icon-only" name="information-outline"></ion-icon> -->
|
|
31
|
-
<span style="text-transform: capitalize; margin-left: 5px;"> {{ 'Resolve' | translate}} </span>
|
|
32
|
-
</ion-button>
|
|
33
|
-
|
|
34
|
-
<ion-button *ngIf="!openInfoConversation" ion-button fill="clear" (click)="onOpenCloseInfoConversation()">
|
|
35
|
-
<!-- <ion-icon slot="icon-only" name="alert-circle-outline"></ion-icon> -->
|
|
36
|
-
<ion-icon slot="icon-only" name="information-circle-outline"></ion-icon>
|
|
37
|
-
<!-- <ion-icon slot="icon-only" name="information-outline"></ion-icon> -->
|
|
38
|
-
|
|
39
|
-
</ion-button>
|
|
40
|
-
<ion-button *ngIf="openInfoConversation" ion-button fill="clear" (click)="onOpenCloseInfoConversation()">
|
|
41
|
-
<ion-icon slot="icon-only" name="close-circle-outline"></ion-icon>
|
|
42
|
-
</ion-button>
|
|
43
|
-
|
|
44
|
-
</ion-buttons>
|
|
45
|
-
</div>
|
|
46
|
-
|
|
47
|
-
</div>
|
|
48
|
-
</ion-toolbar>
|
|
49
|
-
</ion-header>
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
<ion-title>
|
|
55
|
-
|
|
56
|
-
<div *ngIf="conversationAvatar" class="avatar-and-typing-wpr" >
|
|
57
|
-
<!-- [ngStyle] = "{ 'left': platformName === 'ios' ? '55px' : '' }" -->
|
|
58
|
-
<div *ngIf="conversationAvatar" class="avatar-container" (click)="onOpenCloseInfoConversation()" style="cursor: pointer"
|
|
59
|
-
[ngClass]="{ 'avatar-container-ios': platformName === 'ios' }">
|
|
60
|
-
<app-avatar-profile [itemAvatar]=conversationAvatar></app-avatar-profile>
|
|
61
|
-
</div>
|
|
62
|
-
<!-- [ngStyle] = "{ 'left': platformName === 'ios' ? '63px' : '' }" -->
|
|
63
|
-
<div *ngIf="isDirect" class="user-presence" [ngClass]="{ 'user-presence-ios': platformName === 'ios' }">
|
|
64
|
-
<app-user-presence [idUser]=conversationAvatar.conversation_with [translationMap]=translationMap
|
|
65
|
-
[borderColor]=borderColor [fontColor]=fontColor>
|
|
66
|
-
</app-user-presence>
|
|
67
|
-
</div>
|
|
68
|
-
|
|
69
|
-
<div *ngIf="conversationAvatar" class="user-typing">
|
|
70
|
-
<app-user-typing [idConversation]=conversationAvatar.uid [idCurrentUser]=idLoggedUser [isDirect]=isDirect
|
|
71
|
-
[translationMap]=translationMap [color]=fontColor [membersConversation]=membersConversation>
|
|
72
|
-
</app-user-typing>
|
|
73
|
-
</div>
|
|
74
|
-
|
|
75
|
-
</div>
|
|
76
|
-
<!-- [ngClass] = "{ 'tile-info-with-ios': platformName === 'ios' ? '82px' : ''82px'' }" -->
|
|
77
|
-
<!-- (click)="onOpenCloseInfoConversation()" -->
|
|
78
|
-
<div *ngIf="conversationAvatar" class="tile-info-with"
|
|
79
|
-
[ngClass]="{ 'tile-info-with-ios': platformName === 'ios' }">
|
|
80
|
-
<span class="tile-username">{{ conversationAvatar.conversation_with_fullname | truncate:50 }} </span>
|
|
81
|
-
<!-- <span class="tile-username">{{ conversation_with_fullname }} </span> -->
|
|
82
|
-
|
|
83
|
-
</div>
|
|
84
|
-
|
|
85
|
-
<!-- <div *ngIf="conversationWithFullname" class="tile-info-with" (click)="onOpenCloseInfoConversation()">
|
|
86
|
-
<span class="tile-username">{{ conversationWithFullname }} </span>
|
|
87
|
-
</div> -->
|
|
88
|
-
|
|
89
|
-
</ion-title>
|
|
90
|
-
<!-- openInfoConversation {{openInfoConversation}} -->
|
|
91
|
-
<ion-buttons slot="end">
|
|
92
|
-
|
|
93
|
-
<!-- <ion-button ion-button fill="clear" color="primary" size="small" (click)="presentCreateTicketModal()" [ngClass]="{'resolve-conv-margin-right': !isMobile}">
|
|
94
|
-
<ion-icon name="ticket-outline"></ion-icon>
|
|
95
|
-
<span style="text-transform: capitalize; margin-left: 5px;"> {{ 'Crea ticket' | translate}} </span>
|
|
96
|
-
</ion-button> -->
|
|
97
|
-
|
|
98
|
-
<ion-button *ngIf="conversationUid?.startsWith('support-group') && conv_type !== 'archived'" ion-button fill="clear" color="primary" size="small"
|
|
99
|
-
(click)="closeConversation()" [ngClass]="{'resolve-conv-margin-right': !isMobile}" [disabled]="conv_closed === true">
|
|
100
|
-
<!-- <ion-icon slot="icon-only" name="alert-circle-outline"></ion-icon> -->
|
|
101
|
-
<ion-icon name="archive-outline"></ion-icon>
|
|
102
|
-
<!-- <ion-icon slot="icon-only" name="information-outline"></ion-icon> -->
|
|
103
|
-
<span style="text-transform: capitalize; margin-left: 5px;"> {{ 'Resolve' | translate}} </span>
|
|
104
|
-
</ion-button>
|
|
105
|
-
|
|
106
|
-
<ion-button *ngIf="!openInfoConversation" ion-button fill="clear" (click)="onOpenCloseInfoConversation()">
|
|
107
|
-
<!-- <ion-icon slot="icon-only" name="alert-circle-outline"></ion-icon> -->
|
|
108
|
-
<ion-icon slot="icon-only" name="information-circle-outline"></ion-icon>
|
|
109
|
-
<!-- <ion-icon slot="icon-only" name="information-outline"></ion-icon> -->
|
|
110
|
-
|
|
111
|
-
</ion-button>
|
|
112
|
-
<ion-button *ngIf="openInfoConversation" ion-button fill="clear" (click)="onOpenCloseInfoConversation()">
|
|
113
|
-
<ion-icon slot="icon-only" name="close-circle-outline"></ion-icon>
|
|
114
|
-
</ion-button>
|
|
115
|
-
|
|
116
|
-
</ion-buttons>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<ion-toolbar [class.mobile]="isMobile">
|
|
2
|
-
|
|
3
|
-
<ion-buttons slot="start">
|
|
4
|
-
<ion-button ion-button (click)="onBackButtonHandler()">
|
|
5
|
-
<ion-icon slot="icon-only" name="arrow-back-outline"></ion-icon>
|
|
6
|
-
</ion-button>
|
|
7
|
-
</ion-buttons>
|
|
8
|
-
|
|
9
|
-
<ion-title> {{headerTitle}}</ion-title>
|
|
10
|
-
|
|
11
|
-
</ion-toolbar>
|
|
12
|
-
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
<ion-navbar class="navbar navbar-absolute">
|
|
2
|
-
<div class="container-fluid">
|
|
3
|
-
<!-- <div class="navbar-left">
|
|
4
|
-
left
|
|
5
|
-
</div> -->
|
|
6
|
-
<div class="navbar-right">
|
|
7
|
-
<!-- test site -->
|
|
8
|
-
<ng-container *ngIf="project">
|
|
9
|
-
<button class="btn simulate-visitor-btn btn-success-no-boxshadow " (click)="testWidgetPage()">
|
|
10
|
-
<i class="material-icons" style="padding-top: 0px;font-size: 24px;">play_arrow</i>
|
|
11
|
-
{{translationsMap.get('NAVBAR.SIMULATE_VISITOR')}}
|
|
12
|
-
</button>
|
|
13
|
-
</ng-container>
|
|
14
|
-
|
|
15
|
-
<!-- ------ PROJECTS DROPDOWN ------ -->
|
|
16
|
-
<ng-container *ngIf="project">
|
|
17
|
-
<li>
|
|
18
|
-
<button class="btn dropdown-toggle project-dropdown" (click)="openDropdownProjects = !openDropdownProjects">
|
|
19
|
-
<i class="material-icons" style="margin-right: 3px;">keyboard_arrow_down</i>
|
|
20
|
-
<span style="text-transform: none"> {{ project?.id_project?.name }} </span>
|
|
21
|
-
</button>
|
|
22
|
-
<div class="ripple-container"></div>
|
|
23
|
-
<div id="navbar_dropdown" class="dropdown-menu" [ngClass]="{'open': openDropdownProjects}">
|
|
24
|
-
|
|
25
|
-
<!-- PROJECT SETTINGS -->
|
|
26
|
-
<!-- <li *ngIf="USER_ROLE !== 'agent'">
|
|
27
|
-
<a (click)="onClickDropdownOption('projectSettings')">
|
|
28
|
-
<i class="material-icons" style="padding-right: 5px; margin-bottom: 2px; font-size: 20px">settings</i>
|
|
29
|
-
{{translationsMap?.get('NAVBAR.PROJECT_SETTINGS')}}
|
|
30
|
-
</a>
|
|
31
|
-
</li> -->
|
|
32
|
-
|
|
33
|
-
<!-- ALL PROJECTS -->
|
|
34
|
-
<li (click)="onClickDropdownOption('allProjects')">
|
|
35
|
-
<a style="cursor: pointer">
|
|
36
|
-
<i class="material-icons" style="padding-right: 5px; margin-bottom: 2px; font-size: 20px">view_list</i>
|
|
37
|
-
{{translationsMap?.get('NAVBAR.VIEW_ALL_PROJECTS')}}
|
|
38
|
-
</a>
|
|
39
|
-
</li>
|
|
40
|
-
|
|
41
|
-
<!-- ADD PROJECT -->
|
|
42
|
-
<li id="navbar_create_prjct" *ngIf="MT === true" (click)="onClickDropdownOption('addProject')">
|
|
43
|
-
<a style="cursor: pointer">
|
|
44
|
-
<i class="material-icons" style="padding-right: 5px; margin-bottom: 2px; font-size: 20px">add_circle_outline </i>
|
|
45
|
-
{{translationsMap?.get('NAVBAR.ADD_PROJECT')}}
|
|
46
|
-
</a>
|
|
47
|
-
</li>
|
|
48
|
-
|
|
49
|
-
<li class="divider"></li>
|
|
50
|
-
|
|
51
|
-
<!-- RECENT PROJECTS -->
|
|
52
|
-
<li>
|
|
53
|
-
<span style="padding-left: 24px;font-size: 12px; color: rgb(118,149,165);font-weight: 400">
|
|
54
|
-
{{translationsMap?.get('NAVBAR.RECENT_PROJECTS')}}
|
|
55
|
-
</span>
|
|
56
|
-
</li>
|
|
57
|
-
<!--
|
|
58
|
-
***** ngFor - reverse order of output using the index *****
|
|
59
|
-
Reverse() works in place. It means, it will change the original array.
|
|
60
|
-
Slice without parameters returns a copy of projects, so original array, in this case, stays unchanged.
|
|
61
|
-
let prjct of projects?.reverse()
|
|
62
|
-
-->
|
|
63
|
-
<!-- *ngFor="let prjct of projects?.slice().reverse() | slice:0:5; let i=index" -->
|
|
64
|
-
<li *ngFor="let prjct of projects?.slice() | slice:0:5; let i=index" style="cursor: pointer">
|
|
65
|
-
<a (click)="goToHome(prjct?.id_project?._id, prjct?.id_project?.name)"
|
|
66
|
-
[ngClass]="{'li-selected' : prjct?.id_project?._id === project?.id_project?.id }">
|
|
67
|
-
|
|
68
|
-
<span> {{ prjct?.id_project?.name }} </span>
|
|
69
|
-
</a>
|
|
70
|
-
</li>
|
|
71
|
-
|
|
72
|
-
<ng-container *ngIf="projects?.length > 5">
|
|
73
|
-
<li class="divider"></li>
|
|
74
|
-
<li>
|
|
75
|
-
<span style="padding-left: 24px;font-size: 12px; color: rgb(118,149,165);font-weight: 400">
|
|
76
|
-
{{translationsMap?.get('NAVBAR.OTHER_PROJECTS')}}
|
|
77
|
-
</span>
|
|
78
|
-
</li>
|
|
79
|
-
|
|
80
|
-
<!-- *ngFor="let prjct of projects?.slice().reverse() | slice:5:10; let i=index" -->
|
|
81
|
-
<li *ngFor="let prjct of projects?.slice() | slice:5:10; let i=index" style="cursor: pointer">
|
|
82
|
-
<a (click)="goToHome(prjct?.id_project?._id, prjct?.id_project?.name)">
|
|
83
|
-
{{ prjct?.id_project?.name }}
|
|
84
|
-
</a>
|
|
85
|
-
</li>
|
|
86
|
-
</ng-container>
|
|
87
|
-
|
|
88
|
-
</div>
|
|
89
|
-
</li>
|
|
90
|
-
</ng-container>
|
|
91
|
-
|
|
92
|
-
<!-- Sound on / off -->
|
|
93
|
-
<ng-container *ngIf="project">
|
|
94
|
-
<button class="btn volume" style="cursor: pointer;" *ngIf="isSoundEnabled" (click)="onClickSound('disabled')">
|
|
95
|
-
<i class="material-icons">volume_up</i>
|
|
96
|
-
</button>
|
|
97
|
-
<button class="btn volume" style="cursor: pointer;" *ngIf="!isSoundEnabled" (click)="onClickSound('enabled')">
|
|
98
|
-
<i class="material-icons">volume_off</i>
|
|
99
|
-
</button>
|
|
100
|
-
</ng-container>
|
|
101
|
-
</div>
|
|
102
|
-
</div>
|
|
103
|
-
</ion-navbar>
|