@chat21/chat21-ionic 3.0.61-rc5 → 3.0.61-rc7
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 +15 -0
- package/config.xml +5 -5
- package/deploy_pre.sh +10 -10
- package/deploy_prod.sh +5 -1
- package/package.json +6 -6
- package/resources/{Android → android}/icon/drawable-hdpi-icon.png +0 -0
- package/resources/{Android → android}/icon/drawable-ldpi-icon.png +0 -0
- package/resources/{Android → android}/icon/drawable-mdpi-icon.png +0 -0
- package/resources/{Android → android}/icon/drawable-xhdpi-icon.png +0 -0
- package/resources/{Android → android}/icon/drawable-xxhdpi-icon.png +0 -0
- package/resources/{Android → android}/icon/drawable-xxxhdpi-icon.png +0 -0
- package/resources/{Android → android}/icon.png +0 -0
- package/resources/{Android → android}/splash/drawable-land-hdpi-screen.png +0 -0
- package/resources/{Android → android}/splash/drawable-land-ldpi-screen.png +0 -0
- package/resources/{Android → android}/splash/drawable-land-mdpi-screen.png +0 -0
- package/resources/{Android → android}/splash/drawable-land-xhdpi-screen.png +0 -0
- package/resources/{Android → android}/splash/drawable-land-xxhdpi-screen.png +0 -0
- package/resources/{Android → android}/splash/drawable-land-xxxhdpi-screen.png +0 -0
- package/resources/{Android → android}/splash/drawable-port-hdpi-screen.png +0 -0
- package/resources/{Android → android}/splash/drawable-port-ldpi-screen.png +0 -0
- package/resources/{Android → android}/splash/drawable-port-mdpi-screen.png +0 -0
- package/resources/{Android → android}/splash/drawable-port-xhdpi-screen.png +0 -0
- package/resources/{Android → android}/splash/drawable-port-xxhdpi-screen.png +0 -0
- package/resources/{Android → android}/splash/drawable-port-xxxhdpi-screen.png +0 -0
- package/resources/{Android → android}/splash.png +0 -0
- package/src/app/app.component.html +2 -2
- package/src/app/app.component.scss +2 -1
- package/src/app/app.component.ts +22 -11
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.ts +78 -15
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.html +4 -3
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.scss +1 -1
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.html +3 -3
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.ts +12 -2
- package/src/app/components/sidebar/sidebar.component.html +119 -66
- package/src/app/components/sidebar/sidebar.component.scss +41 -3
- package/src/app/components/sidebar/sidebar.component.ts +108 -30
- package/src/app/components/sidebar-user-details/sidebar-user-details.component.html +9 -1
- package/src/app/components/sidebar-user-details/sidebar-user-details.component.scss +25 -17
- package/src/app/components/sidebar-user-details/sidebar-user-details.component.ts +92 -34
- package/src/app/pages/conversation-detail/conversation-detail.page.html +2 -1
- package/src/app/pages/conversation-detail/conversation-detail.page.ts +1289 -783
- package/src/app/pages/conversations-list/conversations-list.page.html +3 -1
- package/src/app/pages/conversations-list/conversations-list.page.ts +28 -18
- package/src/app/pages/loader-preview/loader-preview.page.ts +235 -166
- package/src/app/pages/profile-info/profile-info.page.scss +1 -1
- package/src/app/services/tiledesk/tiledesk.service.ts +19 -0
- package/src/assets/i18n/de.json +9 -7
- package/src/assets/i18n/en.json +5 -3
- package/src/assets/i18n/es.json +4 -2
- package/src/assets/i18n/fr.json +7 -5
- package/src/assets/i18n/it.json +4 -2
- package/src/assets/i18n/pt.json +4 -2
- package/src/assets/i18n/ru.json +5 -3
- package/src/assets/i18n/tr.json +4 -2
- package/src/chat21-core/utils/constants.ts +4 -1
- package/src/global.scss +32 -67
- package/publish_pre.sh +0 -33
- package/publish_prod.sh +0 -33
package/src/assets/i18n/fr.json
CHANGED
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"LABEL_VIDEO_CHAT": "Appel vidéo",
|
|
45
45
|
"LABEL_LEAVE_GROUP": "Quitter le groupe",
|
|
46
46
|
"LABEL_CLOSE_GROUP": "Fermer",
|
|
47
|
-
"ALERT_TITLE": "
|
|
48
|
-
"CLOSE_ALERT_CONFIRM_LABEL": "
|
|
47
|
+
"ALERT_TITLE": "Attention!",
|
|
48
|
+
"CLOSE_ALERT_CONFIRM_LABEL": "d'accord",
|
|
49
49
|
"CLOSE_ALERT_CANCEL_LABEL": "ANNULER",
|
|
50
|
-
"LEAVE_ALERT_MSG": "Quitter le groupe
|
|
51
|
-
"CLOSE_ALERT_MSG": "Fermer la conversation
|
|
50
|
+
"LEAVE_ALERT_MSG": "Quitter le groupe?",
|
|
51
|
+
"CLOSE_ALERT_MSG": "Fermer la conversation?",
|
|
52
52
|
"VIDEOCHAT_ALERT_MSG": "Service indisponible",
|
|
53
53
|
"CLOSING_CONVERSATION_SPINNER_MSG": "S'il vous plaît, attendez.<br> Nous clôturons la conversation",
|
|
54
54
|
"CONVERSATION_CLOSED_ALERT_MSG": "La conversation a été fermée avec succès.",
|
|
@@ -223,5 +223,7 @@
|
|
|
223
223
|
"History": "Histoire",
|
|
224
224
|
"Settings": "Réglages",
|
|
225
225
|
"Resolve": "Résoudre",
|
|
226
|
-
"Archive": "Archiver"
|
|
226
|
+
"Archive": "Archiver",
|
|
227
|
+
"ActionNotAllowed":"Action non autorisée",
|
|
228
|
+
"YouAreNoLongerAmongTheTeammatesManagingThisConversation":"Vous n'êtes plus parmi les coéquipiers qui gèrent cette conversation"
|
|
227
229
|
}
|
package/src/assets/i18n/it.json
CHANGED
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"LABEL_VIDEO_CHAT": "Video chiamata",
|
|
45
45
|
"LABEL_LEAVE_GROUP": "Abbandona il gruppo",
|
|
46
46
|
"LABEL_CLOSE_GROUP": "Chiudi",
|
|
47
|
-
"ALERT_TITLE": "
|
|
47
|
+
"ALERT_TITLE": "Attenzione!",
|
|
48
48
|
"CLOSE_ALERT_CONFIRM_LABEL": "OK",
|
|
49
49
|
"CLOSE_ALERT_CANCEL_LABEL": "ANNULLA",
|
|
50
50
|
"LEAVE_ALERT_MSG": "Abbandonare il gruppo?",
|
|
@@ -223,5 +223,7 @@
|
|
|
223
223
|
"History": "Cronologia",
|
|
224
224
|
"Settings": "Impostazioni",
|
|
225
225
|
"Resolve": "Risolvi",
|
|
226
|
-
"Archive": "Archivia"
|
|
226
|
+
"Archive": "Archivia",
|
|
227
|
+
"ActionNotAllowed":"Azione non permessa",
|
|
228
|
+
"YouAreNoLongerAmongTheTeammatesManagingThisConversation":"Non sei più tra i compagni di squadra che gestiscono questa conversazione"
|
|
227
229
|
}
|
package/src/assets/i18n/pt.json
CHANGED
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"LABEL_VIDEO_CHAT": "Videochamada",
|
|
45
45
|
"LABEL_LEAVE_GROUP": "Sair do grupo",
|
|
46
46
|
"LABEL_CLOSE_GROUP": "Fechar",
|
|
47
|
-
"ALERT_TITLE": "
|
|
47
|
+
"ALERT_TITLE": "Atenção!",
|
|
48
48
|
"CLOSE_ALERT_CONFIRM_LABEL": "OK",
|
|
49
49
|
"CLOSE_ALERT_CANCEL_LABEL": "CANCELAR",
|
|
50
50
|
"LEAVE_ALERT_MSG": "Sair do grupo?",
|
|
@@ -223,5 +223,7 @@
|
|
|
223
223
|
"History": "História",
|
|
224
224
|
"Settings": "Configurações",
|
|
225
225
|
"Resolve": "Resolver",
|
|
226
|
-
"Archive": "Arquivar"
|
|
226
|
+
"Archive": "Arquivar",
|
|
227
|
+
"ActionNotAllowed":"Ação não autorizada",
|
|
228
|
+
"YouAreNoLongerAmongTheTeammatesManagingThisConversation":"Você não está mais entre os colegas de equipe que estão gerenciando esta conversa"
|
|
227
229
|
}
|
package/src/assets/i18n/ru.json
CHANGED
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"LABEL_VIDEO_CHAT": "Видеозвонок",
|
|
45
45
|
"LABEL_LEAVE_GROUP": "Выйти из группы",
|
|
46
46
|
"LABEL_CLOSE_GROUP": "Закрывать",
|
|
47
|
-
"ALERT_TITLE": "
|
|
48
|
-
"CLOSE_ALERT_CONFIRM_LABEL": "
|
|
47
|
+
"ALERT_TITLE": "Внимание!",
|
|
48
|
+
"CLOSE_ALERT_CONFIRM_LABEL": "Ok",
|
|
49
49
|
"CLOSE_ALERT_CANCEL_LABEL": "ОТМЕНИТЬ",
|
|
50
50
|
"LEAVE_ALERT_MSG": "Покинуть группу?",
|
|
51
51
|
"CLOSE_ALERT_MSG": "Закрыть беседу?",
|
|
@@ -223,5 +223,7 @@
|
|
|
223
223
|
"History": "История",
|
|
224
224
|
"Settings": "Настройки",
|
|
225
225
|
"Resolve": "Pазрешить",
|
|
226
|
-
"Archive": "Архивировать"
|
|
226
|
+
"Archive": "Архивировать",
|
|
227
|
+
"ActionNotAllowed":"Действие не разрешено",
|
|
228
|
+
"YouAreNoLongerAmongTheTeammatesManagingThisConversation":"Вы больше не входите в число товарищей по команде, ведущих этот разговор"
|
|
227
229
|
}
|
package/src/assets/i18n/tr.json
CHANGED
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"LABEL_VIDEO_CHAT": "Görüntülü arama",
|
|
45
45
|
"LABEL_LEAVE_GROUP": "Gruptan ayrıl",
|
|
46
46
|
"LABEL_CLOSE_GROUP": "Kapat",
|
|
47
|
-
"ALERT_TITLE": "
|
|
47
|
+
"ALERT_TITLE": "Dikkat!",
|
|
48
48
|
"CLOSE_ALERT_CONFIRM_LABEL": "Tamam",
|
|
49
49
|
"CLOSE_ALERT_CANCEL_LABEL": "İPTAL ET",
|
|
50
50
|
"LEAVE_ALERT_MSG": "Gruptan ayrılmak mı?",
|
|
@@ -223,6 +223,8 @@
|
|
|
223
223
|
"History": "Tarih",
|
|
224
224
|
"Settings": "Ayarlar",
|
|
225
225
|
"Resolve": "Çözmek",
|
|
226
|
-
"Archive": "Arşivle"
|
|
226
|
+
"Archive": "Arşivle",
|
|
227
|
+
"ActionNotAllowed":"İşleme izin verilmiyor",
|
|
228
|
+
"YouAreNoLongerAmongTheTeammatesManagingThisConversation":"Artık bu konuşmayı yöneten takım arkadaşları arasında değilsiniz"
|
|
227
229
|
}
|
|
228
230
|
|
package/src/global.scss
CHANGED
|
@@ -649,9 +649,9 @@ select:-webkit-autofill:focus {
|
|
|
649
649
|
}
|
|
650
650
|
|
|
651
651
|
.small-sidebar-tiledesk-nav-user {
|
|
652
|
-
height:
|
|
653
|
-
min-height:
|
|
654
|
-
max-height:
|
|
652
|
+
height: 35px;
|
|
653
|
+
min-height: 35px;
|
|
654
|
+
max-height: 35px;
|
|
655
655
|
}
|
|
656
656
|
|
|
657
657
|
.user {
|
|
@@ -673,41 +673,41 @@ select:-webkit-autofill:focus {
|
|
|
673
673
|
display: none;
|
|
674
674
|
}
|
|
675
675
|
|
|
676
|
-
|
|
677
|
-
display: none;
|
|
678
|
-
}
|
|
676
|
+
|
|
679
677
|
|
|
680
678
|
.tiledesk-nav-avatar {
|
|
681
679
|
background-color: #2d323e !important;
|
|
682
680
|
color: #fff !important;
|
|
683
681
|
}
|
|
684
682
|
|
|
685
|
-
.avatar-container {
|
|
683
|
+
.sidebar-avatar-container {
|
|
686
684
|
text-align: center;
|
|
687
685
|
cursor: pointer;
|
|
688
686
|
position: absolute;
|
|
689
687
|
// top: 80px;
|
|
690
688
|
border-radius: 50%;
|
|
691
|
-
padding: 4px;
|
|
689
|
+
// padding: 4px;
|
|
692
690
|
-webkit-transform: translateX(-50%);
|
|
693
691
|
transform: translateX(-50%);
|
|
694
692
|
left: 50%;
|
|
693
|
+
width: 35px;
|
|
694
|
+
height: 35px;
|
|
695
695
|
}
|
|
696
696
|
|
|
697
|
-
.avatar-container .sidebar-avatar {
|
|
698
|
-
width:
|
|
699
|
-
height:
|
|
697
|
+
.sidebar-avatar-container .sidebar-avatar {
|
|
698
|
+
width: 35px;
|
|
699
|
+
height: 35px;
|
|
700
700
|
margin: 0;
|
|
701
701
|
border-radius: 50%;
|
|
702
702
|
-o-object-fit: cover;
|
|
703
703
|
object-fit: cover;
|
|
704
|
-
min-width:
|
|
705
|
-
max-width:
|
|
704
|
+
min-width: 35px;
|
|
705
|
+
max-width: 35px;
|
|
706
706
|
}
|
|
707
707
|
|
|
708
708
|
.small-sidebar-status-icon {
|
|
709
|
-
left:
|
|
710
|
-
bottom:
|
|
709
|
+
left: 26px !important;
|
|
710
|
+
bottom: -1px !important;
|
|
711
711
|
width: 12px !important;
|
|
712
712
|
height: 12px !important;
|
|
713
713
|
}
|
|
@@ -739,11 +739,11 @@ select:-webkit-autofill:focus {
|
|
|
739
739
|
}
|
|
740
740
|
|
|
741
741
|
.sidebar--isBusy-icon-wpr {
|
|
742
|
-
width:
|
|
743
|
-
height:
|
|
742
|
+
width: 12px;
|
|
743
|
+
height: 12px;
|
|
744
744
|
position: absolute;
|
|
745
|
-
top:
|
|
746
|
-
right:
|
|
745
|
+
top: -5px;
|
|
746
|
+
right: 25px;
|
|
747
747
|
}
|
|
748
748
|
|
|
749
749
|
@media (max-width: 991px) {
|
|
@@ -753,7 +753,7 @@ select:-webkit-autofill:focus {
|
|
|
753
753
|
}
|
|
754
754
|
|
|
755
755
|
.sidebar .nav {
|
|
756
|
-
margin-top:
|
|
756
|
+
margin-top: 0px;
|
|
757
757
|
}
|
|
758
758
|
|
|
759
759
|
.nav {
|
|
@@ -776,8 +776,9 @@ select:-webkit-autofill:focus {
|
|
|
776
776
|
margin-bottom: 5px;
|
|
777
777
|
}
|
|
778
778
|
|
|
779
|
-
.nav > li:hover {
|
|
780
|
-
background-color: #eee;
|
|
779
|
+
.nav > li:hover > a > i {
|
|
780
|
+
// background-color: #eee;
|
|
781
|
+
color: #a9afbb
|
|
781
782
|
}
|
|
782
783
|
|
|
783
784
|
.sidebar .nav li > a {
|
|
@@ -793,7 +794,7 @@ select:-webkit-autofill:focus {
|
|
|
793
794
|
|
|
794
795
|
.item-active {
|
|
795
796
|
height: 40px;
|
|
796
|
-
background-color: #3ea9f5;
|
|
797
|
+
// background-color: #3ea9f5;
|
|
797
798
|
color: #fff !important;
|
|
798
799
|
pointer-events: none;
|
|
799
800
|
}
|
|
@@ -809,7 +810,7 @@ select:-webkit-autofill:focus {
|
|
|
809
810
|
}
|
|
810
811
|
|
|
811
812
|
.logo {
|
|
812
|
-
background-color: #
|
|
813
|
+
background-color: #2d323e !important;
|
|
813
814
|
padding-bottom: 5px;
|
|
814
815
|
min-height: 60px;
|
|
815
816
|
width: 60px; // for SMALL SIDEBAR
|
|
@@ -843,25 +844,9 @@ select:-webkit-autofill:focus {
|
|
|
843
844
|
display: none;
|
|
844
845
|
}
|
|
845
846
|
|
|
846
|
-
.small-sidebar-status-icon {
|
|
847
|
-
left: 33px !important;
|
|
848
|
-
bottom: 4px !important;
|
|
849
|
-
width: 12px !important;
|
|
850
|
-
height: 12px !important;
|
|
851
|
-
}
|
|
852
847
|
|
|
853
|
-
.small-sidebar-status-text {
|
|
854
|
-
display: none;
|
|
855
|
-
}
|
|
856
848
|
|
|
857
|
-
.small-sidebar-userfullname {
|
|
858
|
-
display: none;
|
|
859
|
-
}
|
|
860
849
|
|
|
861
|
-
.small-sidebar-camera-icon {
|
|
862
|
-
// top: 86px !important;
|
|
863
|
-
top: 19px !important;
|
|
864
|
-
}
|
|
865
850
|
|
|
866
851
|
/* OVERWRITE THE DEFAULT STYLE */
|
|
867
852
|
.nav-mobile-menu {
|
|
@@ -872,7 +857,7 @@ select:-webkit-autofill:focus {
|
|
|
872
857
|
/* NK start CUSTOM SCROLL BAR */
|
|
873
858
|
|
|
874
859
|
::-webkit-scrollbar {
|
|
875
|
-
width:
|
|
860
|
+
width: 3px;
|
|
876
861
|
}
|
|
877
862
|
::-webkit-scrollbar-track {
|
|
878
863
|
background-color: #1c2b45;
|
|
@@ -901,12 +886,7 @@ select:-webkit-autofill:focus {
|
|
|
901
886
|
margin-top: 0px;
|
|
902
887
|
}
|
|
903
888
|
|
|
904
|
-
|
|
905
|
-
background-color: #1e2129 !important;
|
|
906
|
-
padding-bottom: 5px;
|
|
907
|
-
min-height: 60px;
|
|
908
|
-
width: 60px; // for SMALL SIDEBAR
|
|
909
|
-
}
|
|
889
|
+
|
|
910
890
|
|
|
911
891
|
/* *** SMALL SIDEBAR STYLE *** */
|
|
912
892
|
.small-sidebar-tiledesk-nav-user {
|
|
@@ -915,32 +895,16 @@ select:-webkit-autofill:focus {
|
|
|
915
895
|
max-height: 40px;
|
|
916
896
|
}
|
|
917
897
|
.small-sidebar-avatar {
|
|
918
|
-
top:
|
|
898
|
+
top: 13px;
|
|
919
899
|
}
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
display: none;
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
.small-sidebar-status-icon {
|
|
926
|
-
left: 33px !important;
|
|
927
|
-
bottom: 4px !important;
|
|
928
|
-
width: 12px !important;
|
|
929
|
-
height: 12px !important;
|
|
900
|
+
.small-sidebar-avatar-with-avatar {
|
|
901
|
+
top: 13px;
|
|
930
902
|
}
|
|
931
903
|
|
|
932
904
|
.small-sidebar-status-text {
|
|
933
905
|
display: none;
|
|
934
906
|
}
|
|
935
907
|
|
|
936
|
-
.small-sidebar-userfullname {
|
|
937
|
-
display: none;
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
.small-sidebar-camera-icon {
|
|
941
|
-
// top: 86px !important;
|
|
942
|
-
top: 19px !important;
|
|
943
|
-
}
|
|
944
908
|
|
|
945
909
|
/* OVERWRITE THE DEFAULT STYLE */
|
|
946
910
|
.nav-mobile-menu {
|
|
@@ -997,6 +961,7 @@ ul.dropdown-menu > li > a {
|
|
|
997
961
|
// line-height: 30px;
|
|
998
962
|
width: 60px;
|
|
999
963
|
text-align: center;
|
|
1000
|
-
color: #a9afbb;
|
|
964
|
+
// color: #a9afbb;
|
|
965
|
+
color: #647491;
|
|
1001
966
|
padding-top: 10px;
|
|
1002
967
|
}
|
package/publish_pre.sh
DELETED
|
@@ -1,33 +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
|
-
# if [ "$version" != "" ]; then
|
|
9
|
-
# git tag -a "$version" -m "`git log -1 --format=%s`"
|
|
10
|
-
# echo "Created a new tag, $version"
|
|
11
|
-
# git push --tags
|
|
12
|
-
# npm publish
|
|
13
|
-
# fi
|
|
14
|
-
|
|
15
|
-
# sed -i -e "s/$start$ver.$build/$start$NEW_VER.$NEW_BUILD/g" src/utils/constants.ts
|
|
16
|
-
sed -i -e "s/$URL_VER/g" src/utils/constants.ts
|
|
17
|
-
ionic cordova platform add browser --save
|
|
18
|
-
#ionic cordova build --env=prod browser -- --base-href /www/ --prod
|
|
19
|
-
ionic cordova build --env=prod browser --prod
|
|
20
|
-
cp -p src/firebase-messaging-sw.js platforms/browser/www/
|
|
21
|
-
cp -p src/manifest.json platforms/browser/www/
|
|
22
|
-
cp -p src/chat-config.json platforms/browser/www/
|
|
23
|
-
|
|
24
|
-
cd platforms/browser/www
|
|
25
|
-
#aws s3 sync . s3://tiledesk-dashboard/chat/
|
|
26
|
-
aws s3 sync . s3://tiledesk-console/v2/chat-ionic5/
|
|
27
|
-
aws s3 sync . s3://tiledesk-console/v2/chat-ionic5/$version/
|
|
28
|
-
cd ../../../
|
|
29
|
-
# aws cloudfront create-invalidation --distribution-id E2DTAKWHWQ7C3J --paths "/*"
|
|
30
|
-
|
|
31
|
-
# echo new version deployed on s3://tiledesk-dashboard/chat/$NEW_BUILD/
|
|
32
|
-
echo new version deployed on s3://tiledesk-console/v2/chat-ionic5/$version/
|
|
33
|
-
echo available on https://console.tiledesk.com/v2/chat-ionic5/$version/index.html
|
package/publish_prod.sh
DELETED
|
@@ -1,33 +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
|
-
# if [ "$version" != "" ]; then
|
|
9
|
-
# git tag -a "$version" -m "`git log -1 --format=%s`"
|
|
10
|
-
# echo "Created a new tag, $version"
|
|
11
|
-
# git push --tags
|
|
12
|
-
# npm publish
|
|
13
|
-
# fi
|
|
14
|
-
|
|
15
|
-
# sed -i -e "s/$start$ver.$build/$start$NEW_VER.$NEW_BUILD/g" src/utils/constants.ts
|
|
16
|
-
sed -i -e "s/$URL_VER/g" src/utils/constants.ts
|
|
17
|
-
ionic cordova platform add browser --save
|
|
18
|
-
#ionic cordova build --env=prod browser -- --base-href /www/ --prod
|
|
19
|
-
ionic cordova build --env=prod browser --prod
|
|
20
|
-
cp -p src/firebase-messaging-sw.js platforms/browser/www/
|
|
21
|
-
cp -p src/manifest.json platforms/browser/www/
|
|
22
|
-
cp -p src/chat-config.json platforms/browser/www/
|
|
23
|
-
|
|
24
|
-
cd platforms/browser/www
|
|
25
|
-
#aws s3 sync . s3://tiledesk-dashboard/chat/
|
|
26
|
-
aws s3 sync . s3://tiledesk-console/v2/chat-ionic5/
|
|
27
|
-
aws s3 sync . s3://tiledesk-console/v2/chat-ionic5/$version/
|
|
28
|
-
cd ../../../
|
|
29
|
-
# aws cloudfront create-invalidation --distribution-id E2DTAKWHWQ7C3J --paths "/*"
|
|
30
|
-
|
|
31
|
-
# echo new version deployed on s3://tiledesk-dashboard/chat/$NEW_BUILD/
|
|
32
|
-
echo new version deployed on s3://tiledesk-console/v2/chat-ionic5/$version/
|
|
33
|
-
echo available on https://console.tiledesk.com/v2/chat-ionic5/$version/index.html
|