@chat21/chat21-ionic 3.0.5-9.2 → 3.0.6-2.3
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 +202 -0
- package/LICENSE +661 -21
- package/README.md +13 -1
- package/angular.json +4 -0
- package/config.xml +4 -5
- package/deploy_pre.sh +44 -5
- package/deploy_prod.sh +36 -7
- package/env.sample +4 -2
- package/package.json +12 -8
- 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-routing.module.ts +15 -0
- package/src/app/app.component.html +14 -4
- package/src/app/app.component.scss +18 -1
- package/src/app/app.component.ts +98 -37
- package/src/app/app.module.ts +14 -5
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.html +36 -25
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.scss +160 -50
- package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.ts +108 -18
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.html +21 -36
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.scss +19 -7
- package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.ts +63 -42
- package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.scss +1 -1
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.html +7 -2
- package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.ts +141 -21
- package/src/app/chatlib/list-conversations-component/list-conversations/list-conversations.component.ts +13 -10
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.html +39 -36
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.scss +7 -1
- package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.ts +148 -63
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.html +101 -39
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.scss +73 -2
- package/src/app/components/conversation-detail/message-text-area/message-text-area.component.ts +168 -98
- package/src/app/components/ddp-header/ddp-header.component.html +20 -6
- package/src/app/components/ddp-header/ddp-header.component.scss +4 -0
- package/src/app/components/ddp-header/ddp-header.component.ts +104 -10
- package/src/app/components/image-viewer/image-viewer.component.scss +2 -2
- package/src/app/components/project-item/project-item.component.html +141 -118
- package/src/app/components/project-item/project-item.component.scss +173 -91
- package/src/app/components/project-item/project-item.component.ts +59 -25
- package/src/app/components/sidebar/sidebar.component.html +275 -0
- package/src/app/components/sidebar/sidebar.component.scss +79 -0
- package/src/app/components/sidebar/sidebar.component.spec.ts +24 -0
- package/src/app/components/sidebar/sidebar.component.ts +541 -0
- package/src/app/components/sidebar-user-details/sidebar-user-details.component.html +137 -0
- package/src/app/components/sidebar-user-details/sidebar-user-details.component.scss +389 -0
- package/src/app/components/sidebar-user-details/sidebar-user-details.component.spec.ts +24 -0
- package/src/app/components/sidebar-user-details/sidebar-user-details.component.ts +530 -0
- package/src/app/pages/conversation-detail/conversation-detail.module.ts +9 -2
- package/src/app/pages/conversation-detail/conversation-detail.page.html +53 -49
- package/src/app/pages/conversation-detail/conversation-detail.page.scss +28 -0
- package/src/app/pages/conversation-detail/conversation-detail.page.ts +1254 -753
- package/src/app/pages/conversations-list/conversations-list.module.ts +2 -1
- package/src/app/pages/conversations-list/conversations-list.page.html +24 -11
- package/src/app/pages/conversations-list/conversations-list.page.scss +20 -1
- package/src/app/pages/conversations-list/conversations-list.page.ts +687 -420
- package/src/app/pages/create-canned-response/create-canned-response-routing.module.ts +17 -0
- package/src/app/pages/create-canned-response/create-canned-response.module.ts +30 -0
- package/src/app/pages/create-canned-response/create-canned-response.page.html +150 -0
- package/src/app/pages/create-canned-response/create-canned-response.page.scss +55 -0
- package/src/app/pages/create-canned-response/create-canned-response.page.spec.ts +24 -0
- package/src/app/pages/create-canned-response/create-canned-response.page.ts +319 -0
- package/src/app/pages/create-requester/create-requester-routing.module.ts +17 -0
- package/src/app/pages/create-requester/create-requester.module.ts +28 -0
- package/src/app/pages/create-requester/create-requester.page.html +67 -0
- package/src/app/pages/create-requester/create-requester.page.scss +30 -0
- package/src/app/pages/create-requester/create-requester.page.spec.ts +24 -0
- package/src/app/pages/create-requester/create-requester.page.ts +138 -0
- package/src/app/pages/create-ticket/create-ticket-routing.module.ts +17 -0
- package/src/app/pages/create-ticket/create-ticket.module.ts +28 -0
- package/src/app/pages/create-ticket/create-ticket.page.html +171 -0
- package/src/app/pages/create-ticket/create-ticket.page.scss +52 -0
- package/src/app/pages/create-ticket/create-ticket.page.spec.ts +24 -0
- package/src/app/pages/create-ticket/create-ticket.page.ts +432 -0
- package/src/app/pages/loader-preview/loader-preview.page.ts +226 -166
- package/src/app/pages/profile-info/profile-info.page.html +4 -4
- package/src/app/pages/profile-info/profile-info.page.scss +13 -2
- package/src/app/pages/profile-info/profile-info.page.ts +23 -21
- package/src/app/pages/unassigned-conversations/unassigned-conversations.page.html +16 -11
- package/src/app/pages/unassigned-conversations/unassigned-conversations.page.scss +157 -63
- package/src/app/pages/unassigned-conversations/unassigned-conversations.page.ts +51 -16
- package/src/app/services/app-config.ts +14 -14
- package/src/app/services/tiledesk/tiledesk.service.ts +209 -0
- package/src/app/shared/shared.module.ts +21 -7
- package/src/app/utils/scrollbar-theme.directive.ts +58 -24
- package/src/assets/i18n/de.json +266 -0
- package/src/assets/i18n/en.json +85 -10
- package/src/assets/i18n/es.json +266 -0
- package/src/assets/i18n/fr.json +266 -0
- package/src/assets/i18n/it.json +104 -37
- package/src/assets/i18n/pt.json +266 -0
- package/src/assets/i18n/ru.json +266 -0
- package/src/assets/i18n/sr.json +266 -0
- package/src/assets/i18n/tr.json +266 -0
- package/src/assets/images/default-avatar-x-select.png +0 -0
- package/src/assets/images/language_flag/ar.png +0 -0
- package/src/assets/images/language_flag/bg.png +0 -0
- package/src/assets/images/language_flag/ca.png +0 -0
- package/src/assets/images/language_flag/cs.png +0 -0
- package/src/assets/images/language_flag/da.png +0 -0
- package/src/assets/images/language_flag/de.png +0 -0
- package/src/assets/images/language_flag/el.png +0 -0
- package/src/assets/images/language_flag/en.png +0 -0
- package/src/assets/images/language_flag/es.png +0 -0
- package/src/assets/images/language_flag/fa.png +0 -0
- package/src/assets/images/language_flag/fi.png +0 -0
- package/src/assets/images/language_flag/fr.png +0 -0
- package/src/assets/images/language_flag/he.png +0 -0
- package/src/assets/images/language_flag/hi.png +0 -0
- package/src/assets/images/language_flag/hr.png +0 -0
- package/src/assets/images/language_flag/hu.png +0 -0
- package/src/assets/images/language_flag/id.png +0 -0
- package/src/assets/images/language_flag/it.png +0 -0
- package/src/assets/images/language_flag/ja.png +0 -0
- package/src/assets/images/language_flag/ko.png +0 -0
- package/src/assets/images/language_flag/ml-IN.png +0 -0
- package/src/assets/images/language_flag/ne-NP.png +0 -0
- package/src/assets/images/language_flag/nl.png +0 -0
- package/src/assets/images/language_flag/no.png +0 -0
- package/src/assets/images/language_flag/pl.png +0 -0
- package/src/assets/images/language_flag/pt-BR.png +0 -0
- package/src/assets/images/language_flag/pt.png +0 -0
- package/src/assets/images/language_flag/ro.png +0 -0
- package/src/assets/images/language_flag/ru.png +0 -0
- package/src/assets/images/language_flag/sk.png +0 -0
- package/src/assets/images/language_flag/sl.png +0 -0
- package/src/assets/images/language_flag/sr.png +0 -0
- package/src/assets/images/language_flag/sv-SE.png +0 -0
- package/src/assets/images/language_flag/ta.png +0 -0
- package/src/assets/images/language_flag/th.png +0 -0
- package/src/assets/images/language_flag/tr.png +0 -0
- package/src/assets/images/language_flag/uk.png +0 -0
- package/src/assets/images/language_flag/vi.png +0 -0
- package/src/assets/images/language_flag/zh-CN.png +0 -0
- package/src/assets/images/language_flag/zh-TW.png +0 -0
- package/src/assets/images/no_image_user.png +0 -0
- package/src/assets/images/priority_icons/high.svg +3 -0
- package/src/assets/images/priority_icons/high_v2.svg +14 -0
- package/src/assets/images/priority_icons/low.svg +10 -0
- package/src/assets/images/priority_icons/low_v2.svg +14 -0
- package/src/assets/images/priority_icons/medium.svg +16 -0
- package/src/assets/images/priority_icons/medium_v2.svg +11 -0
- package/src/assets/images/priority_icons/urgent.svg +4 -0
- package/src/assets/images/priority_icons/urgent_v2.svg +16 -0
- package/src/assets/js/chat21client.js +16 -3
- package/src/assets/tiledesk-solo-logo.png +0 -0
- package/src/chat-config-mqtt.json +27 -17
- package/src/chat-config-pre-test.json +5 -1
- package/src/chat-config-pre.json +15 -3
- package/src/chat-config-template.json +6 -2
- package/src/chat-config.json +5 -1
- package/src/chat21-core/providers/firebase/firebase-conversation-handler.ts +61 -45
- package/src/chat21-core/providers/firebase/firebase-conversations-handler.ts +23 -0
- package/src/chat21-core/providers/mqtt/mqtt-archivedconversations-handler.ts +1 -1
- package/src/chat21-core/utils/constants.ts +8 -1
- package/src/chat21-core/utils/utils-message.ts +19 -0
- package/src/chat21-core/utils/utils.ts +12 -1
- package/src/global.scss +408 -2
- package/src/index.html +7 -0
- package/publish_pre.sh +0 -33
- package/publish_prod.sh +0 -33
package/README.md
CHANGED
|
@@ -36,6 +36,12 @@ In progress git
|
|
|
36
36
|
* A Firebase project. Create one free on `https://firebase.google.com`
|
|
37
37
|
* "Chat21 Firebase cloud functions" installed. Instructions:`https://github.com/chat21/chat21-cloud-functions`
|
|
38
38
|
|
|
39
|
+
# Run Tiledesk with Docker Compose
|
|
40
|
+
|
|
41
|
+
Do you want to install all the Tiledesk components on your server with just one click?
|
|
42
|
+
Use [Docker Compose Tiledesk installation guide](https://github.com/Tiledesk/tiledesk-deployment/blob/master/docker-compose/README.md)
|
|
43
|
+
|
|
44
|
+
|
|
39
45
|
# Installation #
|
|
40
46
|
* Install the latest stable release. Check on Github page the last release under the Releases tab and then run
|
|
41
47
|
- `git clone https://github.com/frontiere21/chat21-ionic.git --branch <LATEST-RELEASE-VERSION>`
|
|
@@ -61,6 +67,8 @@ In progress git
|
|
|
61
67
|
fileUploadAccept:"*/*",
|
|
62
68
|
logLevel":"<YOUR-PREFERRED-LOG-LEVEL>",
|
|
63
69
|
supportMode: false,
|
|
70
|
+
writeToButton: false,
|
|
71
|
+
archivedButton: false,
|
|
64
72
|
firebaseConfig: {
|
|
65
73
|
tenant:"tilechat",
|
|
66
74
|
apiKey: '123ABC..',
|
|
@@ -92,7 +100,11 @@ In progress git
|
|
|
92
100
|
|
|
93
101
|
* `wsUrl`: allows you to know in real time the agent's availability status, the agent's busy status and the number of unassigned conversations for a selected project
|
|
94
102
|
|
|
95
|
-
* `supportMode`: if set to true it
|
|
103
|
+
* `supportMode`: if it is set to true it shows the left sidebar which makes dashboard and chat management smarter
|
|
104
|
+
|
|
105
|
+
* `writeToButton`: if set to true, it makes the button for viewing the contact list visible and makes direct conversations with them possible
|
|
106
|
+
|
|
107
|
+
* `archivedButton`: if set to true, it makes the button for viewing archived conversations visible
|
|
96
108
|
|
|
97
109
|
### Push notification
|
|
98
110
|
* open `/src/firebase-messaging-sw.js` and replace messagingSenderId: with < your messagingSenderId >
|
package/angular.json
CHANGED
|
@@ -41,6 +41,10 @@
|
|
|
41
41
|
"src/chat-config-dev.json"
|
|
42
42
|
],
|
|
43
43
|
"styles": [
|
|
44
|
+
"node_modules/@angular/material/prebuilt-themes/deeppurple-amber.css",
|
|
45
|
+
"node_modules/roboto-fontface/css/roboto/roboto-fontface.css",
|
|
46
|
+
"node_modules/@ng-select/ng-select/themes/default.theme.css",
|
|
47
|
+
"node_modules/@ctrl/ngx-emoji-mart/picker.css",
|
|
44
48
|
{
|
|
45
49
|
"input": "src/theme/variables.scss"
|
|
46
50
|
},
|
package/config.xml
CHANGED
|
@@ -100,19 +100,18 @@
|
|
|
100
100
|
<splash height="828" src="resources/ios/splash/Default-Landscape-1792h~iphone.png" width="1792" />
|
|
101
101
|
</platform>
|
|
102
102
|
<engine name="android" spec="^6.2.3" />
|
|
103
|
-
<engine name="browser" spec="5.0.4" />
|
|
103
|
+
<engine name="browser" spec="^5.0.4" />
|
|
104
104
|
<engine name="ios" spec="6.1.1" />
|
|
105
105
|
<plugin name="cordova-android-support-gradle-release" spec="^3.0.1">
|
|
106
106
|
<variable name="ANDROID_SUPPORT_VERSION" value="27.+" />
|
|
107
107
|
</plugin>
|
|
108
108
|
<plugin name="cordova-plugin-chooser" spec="^1.3.2" />
|
|
109
|
-
<plugin name="cordova-plugin-device" spec="^2.0.2" />
|
|
110
109
|
<plugin name="cordova-plugin-ionic-keyboard" spec="^2.2.0" />
|
|
111
110
|
<plugin name="cordova-plugin-ionic-webview" spec="^4.2.1">
|
|
112
111
|
<variable name="ANDROID_SUPPORT_ANNOTATIONS_VERSION" value="27.+" />
|
|
113
112
|
</plugin>
|
|
114
113
|
<plugin name="cordova-plugin-network-information" spec="^2.0.2" />
|
|
115
|
-
<plugin name="cordova-plugin-splashscreen" spec="^5.0.
|
|
116
|
-
<plugin name="cordova-plugin-statusbar" spec="^2.4.
|
|
117
|
-
<plugin name="cordova-plugin-whitelist" spec="^1.3.
|
|
114
|
+
<plugin name="cordova-plugin-splashscreen" spec="^5.0.4" />
|
|
115
|
+
<plugin name="cordova-plugin-statusbar" spec="^2.4.3" />
|
|
116
|
+
<plugin name="cordova-plugin-whitelist" spec="^1.3.5" />
|
|
118
117
|
</widget>
|
package/deploy_pre.sh
CHANGED
|
@@ -27,18 +27,57 @@ sed -i -e "s/$URL_VER/g" src/utils/constants.ts
|
|
|
27
27
|
|
|
28
28
|
ionic cordova platform add browser --save
|
|
29
29
|
#ionic cordova build browser --prod --release
|
|
30
|
-
ionic cordova build --env=pre browser
|
|
31
|
-
|
|
30
|
+
# ionic cordova build --env=pre browser --prod #--verbose
|
|
31
|
+
ionic cordova build -c=pre browser --prod
|
|
32
32
|
cp -p src/firebase-messaging-sw.js platforms/browser/www/
|
|
33
33
|
cp -p src/manifest.json platforms/browser/www/
|
|
34
34
|
cp -p src/chat-config.json platforms/browser/www/
|
|
35
|
-
|
|
35
|
+
# cp -p config.xml platforms/browser/www/
|
|
36
|
+
|
|
37
|
+
######### chat-ionic5 - the good one - publish in pre
|
|
36
38
|
cd platforms/browser/www
|
|
37
39
|
aws s3 sync . s3://tiledesk-dashboard-pre/chat-ionic5/$version/
|
|
38
40
|
aws s3 sync . s3://tiledesk-dashboard-pre/chat-ionic5/
|
|
39
41
|
cd ../../../
|
|
40
42
|
|
|
41
|
-
|
|
43
|
+
aws cloudfront create-invalidation --distribution-id E2DTAKWHWQ7C3J --paths "/*"
|
|
42
44
|
|
|
43
45
|
echo new version deployed on s3://tiledesk-dashboard-pre/chat-ionic5/$version/
|
|
44
|
-
echo available on https://s3.eu-west-1.amazonaws.com/tiledesk-dashboard-pre/chat-ionic5/$version/index.html
|
|
46
|
+
echo available on https://s3.eu-west-1.amazonaws.com/tiledesk-dashboard-pre/chat-ionic5/$version/index.html
|
|
47
|
+
echo available on https://support-pre.tiledesk.com/chat-ionic5/$version/index.html
|
|
48
|
+
echo available on https://support-pre.tiledesk.com/chat-ionic5/index.html
|
|
49
|
+
|
|
50
|
+
######### chat-ionic5-panel - publish in pre with the projects right panel
|
|
51
|
+
# cd platforms/browser/www
|
|
52
|
+
# aws s3 sync . s3://tiledesk-dashboard-pre/chat-ionic5-panel/$version/
|
|
53
|
+
# aws s3 sync . s3://tiledesk-dashboard-pre/chat-ionic5-panel/
|
|
54
|
+
# cd ../../../
|
|
55
|
+
|
|
56
|
+
# aws cloudfront create-invalidation --distribution-id E2DTAKWHWQ7C3J --paths "/*"
|
|
57
|
+
|
|
58
|
+
# echo new version deployed on s3://tiledesk-dashboard-pre/chat-ionic5-panel/$version/
|
|
59
|
+
# echo available on https://s3.eu-west-1.amazonaws.com/tiledesk-dashboard-pre/chat-ionic5-panel/$version/index.html
|
|
60
|
+
# echo available on https://support-pre.tiledesk.com/chat-ionic5-panel/$version/index.html
|
|
61
|
+
# echo available on https://support-pre.tiledesk.com/chat-ionic5-panel/index.html
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
####### chat ionic MQTT in pre da aggiungere in deploy_pre.sh
|
|
65
|
+
# cd platforms/browser/www
|
|
66
|
+
# aws s3 sync . s3://tiledesk-dashboard-pre/native-mqtt/chat-ionic5/
|
|
67
|
+
# aws s3 sync . s3://tiledesk-dashboard-pre/native-mqtt/chat-ionic5/$version
|
|
68
|
+
# cd ../../../
|
|
69
|
+
# echo new version deployed on s3://tiledesk-dashboard-pre/native-mqtt/chat-ionic5/
|
|
70
|
+
# echo new version deployed on s3://tiledesk-dashboard-pre/native-mqtt/chat-ionic5/$version
|
|
71
|
+
# echo http://tiledesk-dashboard-pre.s3-eu-west-1.amazonaws.com/native-mqtt/chat-ionic5/index.html
|
|
72
|
+
# echo http://tiledesk-dashboard-pre.s3-eu-west-1.amazonaws.com/native-mqtt/chat-ionic5/$version/index.html
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
####### chat ionic FIREBASE in pre da aggiungere in deploy_pre.sh
|
|
76
|
+
# cd platforms/browser/www
|
|
77
|
+
# aws s3 sync . s3://tiledesk-dashboard-pre/chat5/
|
|
78
|
+
# aws s3 sync . s3://tiledesk-dashboard-pre/chat5/$version
|
|
79
|
+
# cd ../../../
|
|
80
|
+
# echo new version deployed on s3://tiledesk-dashboard-pre/chat5/$version
|
|
81
|
+
# echo new version deployed on s3://tiledesk-dashboard-pre/chat5/
|
|
82
|
+
# echo available on http://support-pre.tiledesk.com/chat5/index.html
|
|
83
|
+
# echo available on http://support-pre.tiledesk.com/chat5/$version/index.html
|
package/deploy_prod.sh
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
npm version patch
|
|
1
|
+
# npm version patch
|
|
2
2
|
version=`node -e 'console.log(require("./package.json").version)'`
|
|
3
3
|
echo "version $version"
|
|
4
4
|
|
|
@@ -12,22 +12,51 @@ echo 'URL_VER: ---->'$URL_VER
|
|
|
12
12
|
# npm publish
|
|
13
13
|
# fi
|
|
14
14
|
|
|
15
|
-
# sed -i -e "s/$start$ver.$build/$start$NEW_VER.$NEW_BUILD/g" src/utils/constants.ts
|
|
16
15
|
sed -i -e "s/$URL_VER/g" src/utils/constants.ts
|
|
16
|
+
|
|
17
17
|
ionic cordova platform add browser --save
|
|
18
18
|
#ionic cordova build --env=prod browser -- --base-href /www/ --prod
|
|
19
19
|
ionic cordova build --env=prod browser --prod
|
|
20
20
|
cp -p src/firebase-messaging-sw.js platforms/browser/www/
|
|
21
21
|
cp -p src/manifest.json platforms/browser/www/
|
|
22
22
|
cp -p src/chat-config.json platforms/browser/www/
|
|
23
|
+
cp -p config.xml platforms/browser/www/
|
|
24
|
+
|
|
23
25
|
|
|
26
|
+
###### CHAT in prod
|
|
24
27
|
cd platforms/browser/www
|
|
25
|
-
|
|
26
|
-
aws s3 sync . s3://tiledesk-console/v2/chat
|
|
27
|
-
aws s3 sync . s3://tiledesk-console/v2/chat-ionic5/$version/
|
|
28
|
+
aws s3 sync . s3://tiledesk-console/v2/chat/
|
|
29
|
+
aws s3 sync . s3://tiledesk-console/v2/chat/$version/
|
|
28
30
|
cd ../../../
|
|
29
31
|
# aws cloudfront create-invalidation --distribution-id E2DTAKWHWQ7C3J --paths "/*"
|
|
30
32
|
|
|
31
33
|
# echo new version deployed on s3://tiledesk-dashboard/chat/$NEW_BUILD/
|
|
32
|
-
echo new version deployed on s3://tiledesk-console/v2/chat
|
|
33
|
-
echo
|
|
34
|
+
echo new version deployed on s3://tiledesk-console/v2/chat/$version/
|
|
35
|
+
echo new version deployed on s3://tiledesk-console/v2/chat/
|
|
36
|
+
echo available on https://console.tiledesk.com/v2/chat/$version/index.html
|
|
37
|
+
echo available on https://console.tiledesk.com/v2/chat/index.html
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
###### CHAT-IONIC5
|
|
41
|
+
# cd platforms/browser/www
|
|
42
|
+
# #aws s3 sync . s3://tiledesk-dashboard/chat/
|
|
43
|
+
# aws s3 sync . s3://tiledesk-console/v2/chat-ionic5/
|
|
44
|
+
# aws s3 sync . s3://tiledesk-console/v2/chat-ionic5/$version/
|
|
45
|
+
# cd ../../../
|
|
46
|
+
# # aws cloudfront create-invalidation --distribution-id E2DTAKWHWQ7C3J --paths "/*"
|
|
47
|
+
|
|
48
|
+
# # echo new version deployed on s3://tiledesk-dashboard/chat/$NEW_BUILD/
|
|
49
|
+
# echo new version deployed on s3://tiledesk-console/v2/chat-ionic5/$version/
|
|
50
|
+
# echo available on https://console.tiledesk.com/v2/chat-ionic5/$version/index.html
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
####### chat ionic FIREBASE in PROD IN SUBFOLDER
|
|
55
|
+
# cd platforms/browser/www
|
|
56
|
+
# aws s3 sync . s3://tiledesk-console/v2/chat5-dev/
|
|
57
|
+
# aws s3 sync . s3://tiledesk-console/v2/chat5-dev/$version
|
|
58
|
+
# cd ../../../
|
|
59
|
+
# echo new version deployed on s3://console.tiledesk.com/v2/chat5-dev/$version
|
|
60
|
+
# echo new version deployed on s3://console.tiledesk.com/v2/chat5-dev/
|
|
61
|
+
# echo available on http://console.tiledesk.com/v2/chat5-dev/index.html
|
|
62
|
+
# echo available on http://console.tiledesk.com/v2/chat5-dev/$version/index.html
|
package/env.sample
CHANGED
|
@@ -3,7 +3,7 @@ DASHBOARD_URL=https://YOUR_DASHBOARD_URL
|
|
|
3
3
|
WS_URL=wss://YOUR_TILEDESK_SERVER_URL?token=
|
|
4
4
|
WS_URL_RELATIVE=********
|
|
5
5
|
SERVER_BASE_URL=http://localhost:3000/
|
|
6
|
-
|
|
6
|
+
FEATURES_TOKEN=CAR:F-PAY:F-ANA:F-ACT:F-APP:F
|
|
7
7
|
CHAT21_ENGINE=mqtt
|
|
8
8
|
UPLOAD_ENGINE=native
|
|
9
9
|
PUSH_ENGINE=none
|
|
@@ -11,7 +11,9 @@ FILE_UPLOAD_ACCEPT=*/*
|
|
|
11
11
|
TENANT=tilechat
|
|
12
12
|
LOG_LEVEL=INFO
|
|
13
13
|
SUPPORT_MODE=false
|
|
14
|
-
|
|
14
|
+
WRITE_TO_BUTTON=false,
|
|
15
|
+
ARCHIVED_BUTTON=false,
|
|
16
|
+
AUTH_PERSISTENCE=LOCAL
|
|
15
17
|
# For MQTT Chat Engine
|
|
16
18
|
MQTT_APPID=tilechat
|
|
17
19
|
MQTT_ENDPOINT=mqtt://localhost:15675/ws
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chat21/chat21-ionic",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.62.3",
|
|
4
4
|
"author": "Tiledesk SRL",
|
|
5
|
-
"homepage": "https://
|
|
5
|
+
"homepage": "https://tiledesk.com/",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"ng": "ng",
|
|
8
8
|
"start": "ng serve",
|
|
@@ -13,13 +13,17 @@
|
|
|
13
13
|
},
|
|
14
14
|
"private": false,
|
|
15
15
|
"dependencies": {
|
|
16
|
+
"@angular/animations": "^8.2.14",
|
|
17
|
+
"@angular/cdk": "^8.2.3",
|
|
16
18
|
"@angular/common": "~8.2.14",
|
|
17
19
|
"@angular/core": "~8.2.14",
|
|
18
20
|
"@angular/forms": "~8.2.14",
|
|
19
21
|
"@angular/http": "^7.2.16",
|
|
22
|
+
"@angular/material": "^8.2.3",
|
|
20
23
|
"@angular/platform-browser": "~8.2.14",
|
|
21
24
|
"@angular/platform-browser-dynamic": "~8.2.14",
|
|
22
25
|
"@angular/router": "~8.2.14",
|
|
26
|
+
"@ctrl/ngx-emoji-mart": "^1.0.6",
|
|
23
27
|
"@ionic-native/chooser": "^5.29.0",
|
|
24
28
|
"@ionic-native/core": "^5.0.7",
|
|
25
29
|
"@ionic-native/globalization": "^5.28.0",
|
|
@@ -30,22 +34,22 @@
|
|
|
30
34
|
"@ionic/angular": "^5.0.7",
|
|
31
35
|
"@ionic/storage": "^2.2.0",
|
|
32
36
|
"@mdi/font": "^5.1.45",
|
|
37
|
+
"@ng-select/ng-select": "^3.7.3",
|
|
33
38
|
"@ngx-translate/core": "^12.1.2",
|
|
34
39
|
"@ngx-translate/http-loader": "^4.0.0",
|
|
35
40
|
"angular2-moment": "^1.9.0",
|
|
36
41
|
"autolinker": "^3.14.2",
|
|
37
42
|
"cordova-android": "^6.2.3",
|
|
38
43
|
"cordova-android-support-gradle-release": "^3.0.1",
|
|
39
|
-
"cordova-browser": "5.0.4",
|
|
44
|
+
"cordova-browser": "^5.0.4",
|
|
40
45
|
"cordova-ios": "6.1.1",
|
|
41
46
|
"cordova-plugin-chooser": "^1.3.2",
|
|
42
|
-
"cordova-plugin-device": "^2.0.2",
|
|
43
47
|
"cordova-plugin-ionic-keyboard": "^2.2.0",
|
|
44
48
|
"cordova-plugin-ionic-webview": "^4.2.1",
|
|
45
49
|
"cordova-plugin-network-information": "^2.0.2",
|
|
46
|
-
"cordova-plugin-splashscreen": "^5.0.
|
|
47
|
-
"cordova-plugin-statusbar": "^2.4.
|
|
48
|
-
"cordova-plugin-whitelist": "^1.3.
|
|
50
|
+
"cordova-plugin-splashscreen": "^5.0.4",
|
|
51
|
+
"cordova-plugin-statusbar": "^2.4.3",
|
|
52
|
+
"cordova-plugin-whitelist": "^1.3.5",
|
|
49
53
|
"cordova-res": "^0.15.1",
|
|
50
54
|
"core-js": "^2.5.4",
|
|
51
55
|
"firebase": "^8.6.7",
|
|
@@ -59,6 +63,7 @@
|
|
|
59
63
|
"ngx-logger": "^4.2.1",
|
|
60
64
|
"ngx-perfect-scrollbar": "^9.0.0",
|
|
61
65
|
"perfect-scrollbar": "^1.5.0",
|
|
66
|
+
"roboto-fontface": "^0.10.0",
|
|
62
67
|
"rxjs": "~6.5.1",
|
|
63
68
|
"tslib": "^1.9.0",
|
|
64
69
|
"zone.js": "~0.9.1"
|
|
@@ -91,7 +96,6 @@
|
|
|
91
96
|
"plugins": {
|
|
92
97
|
"cordova-plugin-whitelist": {},
|
|
93
98
|
"cordova-plugin-statusbar": {},
|
|
94
|
-
"cordova-plugin-device": {},
|
|
95
99
|
"cordova-plugin-splashscreen": {},
|
|
96
100
|
"cordova-plugin-ionic-webview": {
|
|
97
101
|
"ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -48,9 +48,24 @@ const routes: Routes = [
|
|
|
48
48
|
{
|
|
49
49
|
path: 'unassigned-conversations',
|
|
50
50
|
loadChildren: () => import('./pages/unassigned-conversations/unassigned-conversations.module').then( m => m.UnassignedConversationsPageModule)
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
path: 'create-ticket',
|
|
54
|
+
loadChildren: () => import('./pages/create-ticket/create-ticket.module').then( m => m.CreateTicketPageModule)
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
path: 'create-requester',
|
|
58
|
+
loadChildren: () => import('./pages/create-requester/create-requester.module').then( m => m.CreateRequesterPageModule)
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
path: 'create-canned-response',
|
|
62
|
+
loadChildren: () => import('./pages/create-canned-response/create-canned-response.module').then( m => m.CreateCannedResponsePageModule)
|
|
51
63
|
}
|
|
52
64
|
|
|
53
65
|
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
54
69
|
// {
|
|
55
70
|
// path: 'conversation-detail/:IDConv',
|
|
56
71
|
// loadChildren: () => import('./pages/conversation-detail/conversation-detail.module').then( m => m.ConversationDetailPageModule)
|
|
@@ -1,17 +1,27 @@
|
|
|
1
1
|
<ion-app>
|
|
2
2
|
<div>
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
<app-image-viewer></app-image-viewer>
|
|
5
|
-
<ion-split-pane when="md" contentId="main">
|
|
6
5
|
|
|
7
|
-
|
|
6
|
+
<div class="sidebar" [ngClass]="{'hide-sidebar': IS_ONLINE === false || IS_ON_MOBILE_DEVICE === true || SUPPORT_MODE === false}">
|
|
7
|
+
<app-sidebar></app-sidebar>
|
|
8
|
+
</div>
|
|
9
|
+
|
|
10
|
+
<div class="user-details-sidebar" [ngClass]="{'hide-sidebar': IS_ONLINE === false || IS_ON_MOBILE_DEVICE === true || SUPPORT_MODE === false}">
|
|
11
|
+
<app-sidebar-user-details> </app-sidebar-user-details>
|
|
12
|
+
</div>
|
|
13
|
+
|
|
14
|
+
<ion-split-pane when="md" contentId="main">
|
|
15
|
+
<!-- 'sidebar-visible': IS_ONLINE === true && SUPPORT_MODE === true, -->
|
|
16
|
+
<ion-nav #sidebarNav [root]="sidebarPage" [ngClass]="{'sidebar-hidden': IS_ON_MOBILE_DEVICE === true || SUPPORT_MODE === false}"></ion-nav>
|
|
8
17
|
<!-- our side menu -->
|
|
9
18
|
<!-- <ion-router-outlet id="sidebar" name='sidebar' animated="false" #masterNav> -->
|
|
10
19
|
<!-- <app-conversations-list></app-conversations-list> -->
|
|
11
20
|
<!-- <app-details></app-details> -->
|
|
12
21
|
<!-- </ion-router-outlet> -->
|
|
13
22
|
<!-- the main content -->
|
|
14
|
-
|
|
23
|
+
<!-- -->
|
|
24
|
+
<ion-router-outlet id="main" #detailNav animated="false" [ngClass]="{'router-outlet-margin-left': platformIs === 'mobile' && SUPPORT_MODE === true && IS_ON_MOBILE_DEVICE === false}">
|
|
15
25
|
</ion-router-outlet>
|
|
16
26
|
</ion-split-pane>
|
|
17
27
|
</div>
|
|
@@ -1,6 +1,23 @@
|
|
|
1
|
-
.split-pane-md.split-pane-visible > .split-pane-side {
|
|
1
|
+
.split-pane-md.split-pane-visible > .split-pane-side {
|
|
2
2
|
min-width: 312px;
|
|
3
3
|
display: block; // Safari bug fix
|
|
4
|
+
margin-left: 60px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.sidebar-visible {
|
|
8
|
+
margin-left: 60px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.sidebar-hidden {
|
|
12
|
+
margin-left: 0px !important;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.hide-sidebar {
|
|
16
|
+
display: none;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.router-outlet-margin-left {
|
|
20
|
+
left: 60px
|
|
4
21
|
}
|
|
5
22
|
|
|
6
23
|
// @media (min-width: 768px) {
|