@chat21/chat21-ionic 3.0.61-rc5 → 3.0.61

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.
Files changed (115) hide show
  1. package/CHANGELOG.md +90 -0
  2. package/README.md +6 -0
  3. package/angular.json +2 -0
  4. package/config.xml +4 -5
  5. package/deploy_pre.sh +10 -10
  6. package/deploy_prod.sh +4 -0
  7. package/env.sample +1 -1
  8. package/package.json +8 -8
  9. package/resources/{Android → android}/icon/drawable-hdpi-icon.png +0 -0
  10. package/resources/{Android → android}/icon/drawable-ldpi-icon.png +0 -0
  11. package/resources/{Android → android}/icon/drawable-mdpi-icon.png +0 -0
  12. package/resources/{Android → android}/icon/drawable-xhdpi-icon.png +0 -0
  13. package/resources/{Android → android}/icon/drawable-xxhdpi-icon.png +0 -0
  14. package/resources/{Android → android}/icon/drawable-xxxhdpi-icon.png +0 -0
  15. package/resources/{Android → android}/icon.png +0 -0
  16. package/resources/{Android → android}/splash/drawable-land-hdpi-screen.png +0 -0
  17. package/resources/{Android → android}/splash/drawable-land-ldpi-screen.png +0 -0
  18. package/resources/{Android → android}/splash/drawable-land-mdpi-screen.png +0 -0
  19. package/resources/{Android → android}/splash/drawable-land-xhdpi-screen.png +0 -0
  20. package/resources/{Android → android}/splash/drawable-land-xxhdpi-screen.png +0 -0
  21. package/resources/{Android → android}/splash/drawable-land-xxxhdpi-screen.png +0 -0
  22. package/resources/{Android → android}/splash/drawable-port-hdpi-screen.png +0 -0
  23. package/resources/{Android → android}/splash/drawable-port-ldpi-screen.png +0 -0
  24. package/resources/{Android → android}/splash/drawable-port-mdpi-screen.png +0 -0
  25. package/resources/{Android → android}/splash/drawable-port-xhdpi-screen.png +0 -0
  26. package/resources/{Android → android}/splash/drawable-port-xxhdpi-screen.png +0 -0
  27. package/resources/{Android → android}/splash/drawable-port-xxxhdpi-screen.png +0 -0
  28. package/resources/{Android → android}/splash.png +0 -0
  29. package/src/app/app-routing.module.ts +15 -0
  30. package/src/app/app.component.html +2 -2
  31. package/src/app/app.component.scss +2 -1
  32. package/src/app/app.component.ts +34 -20
  33. package/src/app/app.module.ts +11 -3
  34. package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.html +36 -25
  35. package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.scss +160 -50
  36. package/src/app/chatlib/conversation-detail/ion-conversation-detail/ion-conversation-detail.component.ts +108 -18
  37. package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.html +21 -36
  38. package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.scss +19 -7
  39. package/src/app/chatlib/conversation-detail/message/bubble-message/bubble-message.component.ts +35 -40
  40. package/src/app/chatlib/conversation-detail/message/message-attachment/message-attachment.component.scss +1 -1
  41. package/src/app/chatlib/list-conversations-component/ion-list-conversations/ion-list-conversations.component.ts +78 -15
  42. package/src/app/chatlib/list-conversations-component/list-conversations/list-conversations.component.ts +13 -10
  43. package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.html +11 -4
  44. package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.scss +3 -1
  45. package/src/app/components/conversation-detail/header-conversation-detail/header-conversation-detail.component.ts +142 -71
  46. package/src/app/components/conversation-detail/message-text-area/message-text-area.component.html +59 -22
  47. package/src/app/components/conversation-detail/message-text-area/message-text-area.component.scss +32 -9
  48. package/src/app/components/conversation-detail/message-text-area/message-text-area.component.ts +107 -23
  49. package/src/app/components/ddp-header/ddp-header.component.html +9 -2
  50. package/src/app/components/ddp-header/ddp-header.component.ts +93 -18
  51. package/src/app/components/project-item/project-item.component.html +1 -1
  52. package/src/app/components/project-item/project-item.component.scss +1 -1
  53. package/src/app/components/project-item/project-item.component.ts +3 -3
  54. package/src/app/components/sidebar/sidebar.component.html +151 -86
  55. package/src/app/components/sidebar/sidebar.component.scss +60 -3
  56. package/src/app/components/sidebar/sidebar.component.ts +173 -47
  57. package/src/app/components/sidebar-user-details/sidebar-user-details.component.html +26 -7
  58. package/src/app/components/sidebar-user-details/sidebar-user-details.component.scss +44 -19
  59. package/src/app/components/sidebar-user-details/sidebar-user-details.component.ts +109 -35
  60. package/src/app/pages/conversation-detail/conversation-detail.module.ts +5 -1
  61. package/src/app/pages/conversation-detail/conversation-detail.page.html +19 -9
  62. package/src/app/pages/conversation-detail/conversation-detail.page.scss +28 -0
  63. package/src/app/pages/conversation-detail/conversation-detail.page.ts +1124 -778
  64. package/src/app/pages/conversations-list/conversations-list.page.html +3 -1
  65. package/src/app/pages/conversations-list/conversations-list.page.ts +647 -445
  66. package/src/app/pages/create-canned-response/create-canned-response-routing.module.ts +17 -0
  67. package/src/app/pages/create-canned-response/create-canned-response.module.ts +30 -0
  68. package/src/app/pages/create-canned-response/create-canned-response.page.html +150 -0
  69. package/src/app/pages/create-canned-response/create-canned-response.page.scss +55 -0
  70. package/src/app/pages/create-canned-response/create-canned-response.page.spec.ts +24 -0
  71. package/src/app/pages/create-canned-response/create-canned-response.page.ts +319 -0
  72. package/src/app/pages/create-requester/create-requester-routing.module.ts +17 -0
  73. package/src/app/pages/create-requester/create-requester.module.ts +28 -0
  74. package/src/app/pages/create-requester/create-requester.page.html +67 -0
  75. package/src/app/pages/create-requester/create-requester.page.scss +30 -0
  76. package/src/app/pages/create-requester/create-requester.page.spec.ts +24 -0
  77. package/src/app/pages/create-requester/create-requester.page.ts +138 -0
  78. package/src/app/pages/create-ticket/create-ticket-routing.module.ts +17 -0
  79. package/src/app/pages/create-ticket/create-ticket.module.ts +28 -0
  80. package/src/app/pages/create-ticket/create-ticket.page.html +171 -0
  81. package/src/app/pages/create-ticket/create-ticket.page.scss +52 -0
  82. package/src/app/pages/create-ticket/create-ticket.page.spec.ts +24 -0
  83. package/src/app/pages/create-ticket/create-ticket.page.ts +432 -0
  84. package/src/app/pages/loader-preview/loader-preview.page.ts +226 -166
  85. package/src/app/pages/profile-info/profile-info.page.html +2 -2
  86. package/src/app/pages/profile-info/profile-info.page.scss +13 -2
  87. package/src/app/services/tiledesk/tiledesk.service.ts +209 -0
  88. package/src/app/shared/shared.module.ts +1 -1
  89. package/src/assets/i18n/de.json +45 -7
  90. package/src/assets/i18n/en.json +41 -3
  91. package/src/assets/i18n/es.json +41 -3
  92. package/src/assets/i18n/fr.json +44 -6
  93. package/src/assets/i18n/it.json +41 -3
  94. package/src/assets/i18n/pt.json +41 -3
  95. package/src/assets/i18n/ru.json +42 -4
  96. package/src/assets/i18n/sr.json +265 -0
  97. package/src/assets/i18n/tr.json +41 -4
  98. package/src/assets/images/default-avatar-x-select.png +0 -0
  99. package/src/assets/images/priority_icons/high.svg +3 -0
  100. package/src/assets/images/priority_icons/high_v2.svg +14 -0
  101. package/src/assets/images/priority_icons/low.svg +10 -0
  102. package/src/assets/images/priority_icons/low_v2.svg +14 -0
  103. package/src/assets/images/priority_icons/medium.svg +16 -0
  104. package/src/assets/images/priority_icons/medium_v2.svg +11 -0
  105. package/src/assets/images/priority_icons/urgent.svg +4 -0
  106. package/src/assets/images/priority_icons/urgent_v2.svg +16 -0
  107. package/src/chat-config-mqtt.json +25 -16
  108. package/src/chat-config-template.json +5 -4
  109. package/src/chat-config.json +1 -0
  110. package/src/chat21-core/providers/firebase/firebase-conversation-handler.ts +8 -3
  111. package/src/chat21-core/utils/constants.ts +6 -1
  112. package/src/chat21-core/utils/utils-message.ts +19 -0
  113. package/src/global.scss +65 -76
  114. package/publish_pre.sh +0 -33
  115. package/publish_prod.sh +0 -33
package/CHANGELOG.md CHANGED
@@ -1,5 +1,95 @@
1
1
  # chat21-ionic ver 3.0
2
2
 
3
+ ### 3.0.61
4
+ - Deploys in production
5
+
6
+ ### 3.0.61-rc26
7
+ - Fixes the bug: the conversation detail is not opened if the URL contains round brackets
8
+
9
+ ### 3.0.61-rc25
10
+ - Handles the case that in the storage the value of the "last_project" key is undefined
11
+
12
+ ### 3.0.61-rc24
13
+ - Handles the "writeToButton" and the 'archivedButton' environment variables if are returned as a string
14
+ - Adds the "authPersistence" key in the chat-config-template.json, chat-config.json and env.sample files
15
+
16
+ ### 3.0.61-rc23
17
+ - Handles the "supportMode" environment variable if returned as a string (fixes the Docker image bugs: part of the conversation details go under the sidebar in mobile mode, the "add message as canned response" button is not displayed)
18
+ - Fixes the position of the emoji selection window pop up when the canned responses button is not visible
19
+
20
+ ### 3.0.61-rc22
21
+ - Minor improvements
22
+
23
+ ### 3.0.61-rc21
24
+ - Removes cordova-plugin-device
25
+
26
+ ### 3.0.61-rc20
27
+ - Updates dependencies
28
+
29
+ ### 3.0.61-rc19
30
+ - Merge branch 'features/new-sidebar'
31
+
32
+ ### 3.0.61-rc18
33
+ - Fix bugs: in the teammate settings drawer the logout button area is too large
34
+ - Fixed the bug: in the detail of the conversation the button messages are not aligned with the other messages
35
+
36
+ ### 3.0.61-rc16
37
+ - Does not allow teammates with agent role to access the "settings sidebar"
38
+
39
+ ### 3.0.61-rc15
40
+ - Increase the size of the emoji and remove the background color when it is sent or received without text
41
+ - Adds the ability to open sidebar menu items in a new tab by combining left mouse button + CMD keyboard key
42
+
43
+ ### 3.0.61-rc14
44
+ - Fixes the bug: the page to which the sidebar Settings menu item redirects is not correct for team members with agent role
45
+ - Fixes the bug: right clicking on the sidebar menu items doesn't show the context menu
46
+
47
+ ### 3.0.61-rc12
48
+ - Improves the alignment of left sidebar menu item icons
49
+ - Adds the ability to add a message as a canned response
50
+ - Hides the "Open canned responses" button if the "supportMode" environment variable is set to false
51
+ - Fixes the bug: "Settings" menu item in the left sidebar redirects to the "Canned responses" page instead of the "Widget" page
52
+ - Adds the ability to add a new canned response
53
+ - Fixes the bug: "Resolve conversation" from conversation detail header doesn't work on mobile
54
+ - Adds the ability to insert emoji in the message text
55
+ - Fixes the bug: on iOS mobile devices in the conversation detail the requester's avatar is not vertically aligned
56
+ - Fixes the bug: on mobile devices in the "info profile" modal window the version number is not visible because it is on a white background
57
+ - Fixes the bug: in the "Create canned response" modal window the "Add personalisation" menu does not always work
58
+ - Adds the chat version number to the teammate details drawer
59
+ - Makes the right sidebar "Settings" menu item visible to teammates with agent role
60
+
61
+ ### 3.0.61-rc11
62
+ - Fixed the bug: the "Resolve" button is displayed in the header of the details of the archived conversations
63
+ - Fixed the bug: in the header of the conversation detail the "Resolve" button remains active even after resolving the conversation
64
+ - Adds the ability to create a ticket
65
+ - Adds tooltips to the buttons available in the header of the conversation list
66
+ - Change the text of the "Conversations" menu item in the left sidebar to "Monitor"
67
+
68
+ ### 3.0.61-rc10
69
+ - Fixes the bug: the Analytics icon of the left sidebar is not displayed
70
+
71
+ ### 3.0.61-rc9
72
+ - Fixes the bug: the Apps icon of the left sidebar is not displayed
73
+
74
+ ### 3.0.61-rc8
75
+ - Changes the icon of the "Conversations" menu item to the left sidebar
76
+ - Adds Serbian language
77
+
78
+ ### 3.0.61-rc7
79
+ - Fixes the bug: while loading the app, the conversation list changes size and becomes wider
80
+ - Changes the style of the left sidebar
81
+ - Display in the "user data drawer" an avatar constructed with the initials of the logged in teammate if his profile picture is not available
82
+
83
+ ### 3.0.61-rc6
84
+ - Enhances the style of the sidebar tooltips
85
+ - Fixed bug: for direct conversations opening the "info sidebar" by clicking on the teammate avatar available in the conversation detail header does not work correctly
86
+ - Fixes the bug: not all chat strings are translated into the browser language or into the selected language
87
+ - Fixes the bug: Email is broken on dashes in user details sidebar
88
+ - Displays an alert when a teammate archives a conversation from a project they are no longer a part of
89
+ - Disable the "send message" textarea when a teammate replies to a support conversation of a project he is no longer a part of
90
+ - Adds, when an image is pasted in the "send message" text area, the text of the text area as a caption of the image preview modal window
91
+ - Adds, when an image is uploaded, the text of the "send message" text area as a caption of the image preview modal window
92
+
3
93
  ### 3.0.61-rc5
4
94
  - Fixes the bug: on mobile devices the chat content is shifted to the right
5
95
  - Adds the ability to open and close the "user detail sidebar" by clicking on the avatar of the logged teammate present on the sidebar
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>`
package/angular.json CHANGED
@@ -43,6 +43,8 @@
43
43
  "styles": [
44
44
  "node_modules/@angular/material/prebuilt-themes/deeppurple-amber.css",
45
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",
46
48
  {
47
49
  "input": "src/theme/variables.scss"
48
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.2" />
116
- <plugin name="cordova-plugin-statusbar" spec="^2.4.2" />
117
- <plugin name="cordova-plugin-whitelist" spec="^1.3.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
@@ -24,15 +24,15 @@ sed -i -e "s/$URL_VER/g" src/utils/constants.ts
24
24
 
25
25
  # ng build --prod --base-href /$NEW_BUILD/
26
26
  #ionic cordova build browser --prod
27
- #ionic cordova build browser --prod --release
28
- # ionic cordova build --env=pre browser --prod #--verbose
29
27
 
30
28
  ionic cordova platform add browser --save
29
+ #ionic cordova build browser --prod --release
30
+ # ionic cordova build --env=pre browser --prod #--verbose
31
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
- cp config.xml platforms/browser/www/
35
+ # cp -p config.xml platforms/browser/www/
36
36
 
37
37
  ######### chat-ionic5 - the good one - publish in pre
38
38
  cd platforms/browser/www
@@ -47,18 +47,18 @@ echo available on https://s3.eu-west-1.amazonaws.com/tiledesk-dashboard-pre/chat
47
47
  echo available on https://support-pre.tiledesk.com/chat-ionic5/$version/index.html
48
48
  echo available on https://support-pre.tiledesk.com/chat-ionic5/index.html
49
49
 
50
- ######### chat-ionic5-test - publish in pre with the projects right panel
50
+ ######### chat-ionic5-panel - publish in pre with the projects right panel
51
51
  # cd platforms/browser/www
52
- # aws s3 sync . s3://tiledesk-dashboard-pre/chat-ionic5-test/$version/
53
- # aws s3 sync . s3://tiledesk-dashboard-pre/chat-ionic5-test/
52
+ # aws s3 sync . s3://tiledesk-dashboard-pre/chat-ionic5-panel/$version/
53
+ # aws s3 sync . s3://tiledesk-dashboard-pre/chat-ionic5-panel/
54
54
  # cd ../../../
55
55
 
56
56
  # aws cloudfront create-invalidation --distribution-id E2DTAKWHWQ7C3J --paths "/*"
57
57
 
58
- # echo new version deployed on s3://tiledesk-dashboard-pre/chat-ionic5-test/$version/
59
- # echo available on https://s3.eu-west-1.amazonaws.com/tiledesk-dashboard-pre/chat-ionic5-test/$version/index.html
60
- # echo available on https://support-pre.tiledesk.com/chat-ionic5-test/$version/index.html
61
- # echo available on https://support-pre.tiledesk.com/chat-ionic5-test/index.html
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
62
 
63
63
 
64
64
  ####### chat ionic MQTT in pre da aggiungere in deploy_pre.sh
package/deploy_prod.sh CHANGED
@@ -28,6 +28,10 @@ cd platforms/browser/www
28
28
  aws s3 sync . s3://tiledesk-console/v2/chat/
29
29
  aws s3 sync . s3://tiledesk-console/v2/chat/$version/
30
30
  cd ../../../
31
+ # aws cloudfront create-invalidation --distribution-id E2DTAKWHWQ7C3J --paths "/*"
32
+
33
+ # echo new version deployed on s3://tiledesk-dashboard/chat/$NEW_BUILD/
34
+ echo new version deployed on s3://tiledesk-console/v2/chat/$version/
31
35
  echo new version deployed on s3://tiledesk-console/v2/chat/
32
36
  echo available on https://console.tiledesk.com/v2/chat/$version/index.html
33
37
  echo available on https://console.tiledesk.com/v2/chat/index.html
package/env.sample CHANGED
@@ -13,7 +13,7 @@ LOG_LEVEL=INFO
13
13
  SUPPORT_MODE=false
14
14
  WRITE_TO_BUTTON=false,
15
15
  ARCHIVED_BUTTON=false,
16
-
16
+ AUTH_PERSISTENCE=LOCAL
17
17
  # For MQTT Chat Engine
18
18
  MQTT_APPID=tilechat
19
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.61-rc5",
3
+ "version": "3.0.61",
4
4
  "author": "Tiledesk SRL",
5
- "homepage": "https://ionicframework.com/",
5
+ "homepage": "https://tiledesk.com/",
6
6
  "scripts": {
7
7
  "ng": "ng",
8
8
  "start": "ng serve",
@@ -23,6 +23,7 @@
23
23
  "@angular/platform-browser": "~8.2.14",
24
24
  "@angular/platform-browser-dynamic": "~8.2.14",
25
25
  "@angular/router": "~8.2.14",
26
+ "@ctrl/ngx-emoji-mart": "^1.0.6",
26
27
  "@ionic-native/chooser": "^5.29.0",
27
28
  "@ionic-native/core": "^5.0.7",
28
29
  "@ionic-native/globalization": "^5.28.0",
@@ -33,22 +34,22 @@
33
34
  "@ionic/angular": "^5.0.7",
34
35
  "@ionic/storage": "^2.2.0",
35
36
  "@mdi/font": "^5.1.45",
37
+ "@ng-select/ng-select": "^3.7.3",
36
38
  "@ngx-translate/core": "^12.1.2",
37
39
  "@ngx-translate/http-loader": "^4.0.0",
38
40
  "angular2-moment": "^1.9.0",
39
41
  "autolinker": "^3.14.2",
40
42
  "cordova-android": "^6.2.3",
41
43
  "cordova-android-support-gradle-release": "^3.0.1",
42
- "cordova-browser": "5.0.4",
44
+ "cordova-browser": "^5.0.4",
43
45
  "cordova-ios": "6.1.1",
44
46
  "cordova-plugin-chooser": "^1.3.2",
45
- "cordova-plugin-device": "^2.0.2",
46
47
  "cordova-plugin-ionic-keyboard": "^2.2.0",
47
48
  "cordova-plugin-ionic-webview": "^4.2.1",
48
49
  "cordova-plugin-network-information": "^2.0.2",
49
- "cordova-plugin-splashscreen": "^5.0.2",
50
- "cordova-plugin-statusbar": "^2.4.2",
51
- "cordova-plugin-whitelist": "^1.3.3",
50
+ "cordova-plugin-splashscreen": "^5.0.4",
51
+ "cordova-plugin-statusbar": "^2.4.3",
52
+ "cordova-plugin-whitelist": "^1.3.5",
52
53
  "cordova-res": "^0.15.1",
53
54
  "core-js": "^2.5.4",
54
55
  "firebase": "^8.6.7",
@@ -95,7 +96,6 @@
95
96
  "plugins": {
96
97
  "cordova-plugin-whitelist": {},
97
98
  "cordova-plugin-statusbar": {},
98
- "cordova-plugin-device": {},
99
99
  "cordova-plugin-splashscreen": {},
100
100
  "cordova-plugin-ionic-webview": {
101
101
  "ANDROID_SUPPORT_ANNOTATIONS_VERSION": "27.+"
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)
@@ -12,8 +12,8 @@
12
12
  </div>
13
13
 
14
14
  <ion-split-pane when="md" contentId="main">
15
-
16
- <ion-nav #sidebarNav [root]="sidebarPage" [ngClass]="{'sidebar-visible': IS_ONLINE === true && SUPPORT_MODE === true, 'sidebar-hidden': IS_ON_MOBILE_DEVICE === true || SUPPORT_MODE === false}"></ion-nav>
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>
17
17
  <!-- our side menu -->
18
18
  <!-- <ion-router-outlet id="sidebar" name='sidebar' animated="false" #masterNav> -->
19
19
  <!-- <app-conversations-list></app-conversations-list> -->
@@ -1,6 +1,7 @@
1
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;
4
5
  }
5
6
 
6
7
  .sidebar-visible {
@@ -8,7 +9,7 @@
8
9
  }
9
10
 
10
11
  .sidebar-hidden {
11
- margin-left: 0px;
12
+ margin-left: 0px !important;
12
13
  }
13
14
 
14
15
  .hide-sidebar {
@@ -1,4 +1,4 @@
1
- import { URL_SOUND_LIST_CONVERSATION } from './../chat21-core/utils/constants';
1
+ import { tranlatedLanguage, URL_SOUND_LIST_CONVERSATION } from './../chat21-core/utils/constants';
2
2
  import { ArchivedConversationsHandlerService } from 'src/chat21-core/providers/abstract/archivedconversations-handler.service';
3
3
  import { AppStorageService } from 'src/chat21-core/providers/abstract/app-storage.service';
4
4
 
@@ -268,7 +268,7 @@ export class AppComponent implements OnInit {
268
268
 
269
269
 
270
270
  saveInStorageNumberOfOpenedChatTab() {
271
- this.logger.log('Calling saveInStorageChatOpenedTab!');
271
+ // this.logger.log('Calling saveInStorageChatOpenedTab!');
272
272
 
273
273
  // https://jsfiddle.net/jjjs5wd3/3/å
274
274
  if (+localStorage.tabCount > 0) {
@@ -298,12 +298,13 @@ export class AppComponent implements OnInit {
298
298
  */
299
299
  ngOnInit() {
300
300
  const appconfig = this.appConfigProvider.getConfig();
301
- // console.log('[APP-COMP] appconfig', appconfig)
302
- if (appconfig && appconfig.supportMode) {
303
- this.SUPPORT_MODE = appconfig.supportMode
304
- // console.log('[APP-COMP] appconfig > SUPPORT_MODE', this.SUPPORT_MODE)
301
+ this.logger.log('[APP-COMP] ngOnInit appconfig', appconfig)
302
+ if (appconfig && appconfig.supportMode && (appconfig.supportMode === true || appconfig.supportMode === 'true' )) {
303
+ this.SUPPORT_MODE = true;
304
+ this.logger.log('[APP-COMP] appconfig > SUPPORT_MODE', this.SUPPORT_MODE)
305
305
  } else {
306
306
  this.SUPPORT_MODE = false;
307
+ this.logger.log('[APP-COMP] appconfig > SUPPORT_MODE', this.SUPPORT_MODE)
307
308
  }
308
309
  this.persistence = appconfig.authPersistence;
309
310
  this.appStorageService.initialize(environment.storage_prefix, this.persistence, '')
@@ -435,7 +436,7 @@ export class AppComponent implements OnInit {
435
436
  // this.logger.log('[APP-COMP] - X - initializeApp !!! CALLED-BY: ', calledby);
436
437
  // console.log('[APP-COMP] appconfig platform is cordova: ', this.platform.is('cordova'))
437
438
 
438
- if (!this.platform.is('cordova')) {
439
+ if (!this.platform.is('desktop')) {
439
440
  this.splashScreen.show();
440
441
  }
441
442
  this.tabTitle = document.title;
@@ -549,8 +550,8 @@ export class AppComponent implements OnInit {
549
550
  currentUserId = currentUser.uid;
550
551
  this.logger.log('[APP-COMP] - setLanguage current_user uid: ', currentUserId);
551
552
  }
552
- this.translate.setDefaultLang('en');
553
- this.translate.use('en');
553
+ // this.translate.setDefaultLang('en');
554
+ // this.translate.use('en');
554
555
 
555
556
  const browserLang = this.translate.getBrowserLang();
556
557
  this.logger.log('[APP-COMP] browserLang: ', browserLang);
@@ -563,8 +564,19 @@ export class AppComponent implements OnInit {
563
564
  } else if (browserLang && stored_preferred_lang) {
564
565
  chat_lang = stored_preferred_lang
565
566
  }
566
-
567
- this.translate.use(chat_lang);
567
+
568
+ this.logger.log('[APP-COMP] - chat_lang', chat_lang)
569
+
570
+ if (tranlatedLanguage.includes(chat_lang)) {
571
+ this.logger.log('[APP-COMP] tranlatedLanguage includes',chat_lang , ': ', tranlatedLanguage.includes(chat_lang))
572
+ this.translate.setDefaultLang(chat_lang)
573
+ this.translate.use(chat_lang);
574
+ }
575
+ else {
576
+ this.logger.log('[APP-COMP] tranlatedLanguage includes',chat_lang , ': ', tranlatedLanguage.includes(chat_lang))
577
+ this.translate.setDefaultLang('en');
578
+ this.translate.use('en');
579
+ }
568
580
 
569
581
  // this.logger.debug('[APP-COMP] navigator.language: ', navigator.language);
570
582
  // let language;
@@ -712,6 +724,7 @@ export class AppComponent implements OnInit {
712
724
 
713
725
  this.logger.log('[APP-COMP] checkPlatformIsMobile', checkPlatformIsMobile());
714
726
  this.platformIs = PLATFORM_MOBILE;
727
+ this.logger.log('[APP-COMP] this.platformIs', this.platformIs);
715
728
  const IDConv = this.route.snapshot.firstChild.paramMap.get('IDConv');
716
729
 
717
730
  // console.log('[APP-COMP] platformIs', this.platformIs);
@@ -725,7 +738,7 @@ export class AppComponent implements OnInit {
725
738
  this.chatManager.startApp();
726
739
  this.logger.log('[APP-COMP] checkPlatformIsMobile', checkPlatformIsMobile());
727
740
  this.platformIs = PLATFORM_DESKTOP;
728
- // console.log('[APP-COMP] platformIs', this.platformIs);
741
+ this.logger.log('[APP-COMP] platformIs', this.platformIs);
729
742
  // console.log('[APP-COMP] PLATFORM', PLATFORM_DESKTOP, 'route.snapshot', this.route.snapshot);
730
743
  this.logger.log('[APP-COMP] PLATFORM_DESKTOP ', this.navService);
731
744
 
@@ -741,8 +754,8 @@ export class AppComponent implements OnInit {
741
754
  if (IDConv && FullNameConv) {
742
755
  pageUrl += IDConv + '/' + FullNameConv + '/' + Convtype
743
756
  }
744
-
745
- this.router.navigateByUrl(pageUrl);
757
+ // replace(/\(/g, '%28').replace(/\)/g, '%29') -> used for the encoder of any round brackets
758
+ this.router.navigateByUrl(pageUrl.replace(/\(/g, '%28').replace(/\)/g, '%29'));
746
759
 
747
760
 
748
761
  // const DASHBOARD_URL = this.appConfigProvider.getConfig().DASHBOARD_URL;
@@ -894,12 +907,12 @@ export class AppComponent implements OnInit {
894
907
  }
895
908
 
896
909
  /**
897
- * goOnLine:
898
- * 1 - nascondo splashscreen
899
- * 2 - recupero il tiledeskToken e lo salvo in chat manager
900
- * 3 - carico in d
901
- * @param user
902
- */
910
+ * goOnLine:
911
+ * 1 - nascondo splashscreen
912
+ * 2 - recupero il tiledeskToken e lo salvo in chat manager
913
+ * 3 - carico in d
914
+ * @param user
915
+ */
903
916
  goOnLine = () => {
904
917
  this.logger.log('[APP-COMP]- GO-ONLINE ');
905
918
  // this.isOnline = true;
@@ -994,6 +1007,7 @@ export class AppComponent implements OnInit {
994
1007
  let platformIsNow = PLATFORM_DESKTOP;
995
1008
  if (checkPlatformIsMobile()) {
996
1009
  platformIsNow = PLATFORM_MOBILE;
1010
+ this.logger.log('onResize platformIsNow ', platformIsNow)
997
1011
  }
998
1012
  if (!this.platformIs || this.platformIs === '') {
999
1013
  this.platformIs = platformIsNow;
@@ -82,7 +82,9 @@ import { ConversationListPageModule } from './pages/conversations-list/conversat
82
82
  import { ConversationDetailPageModule } from './pages/conversation-detail/conversation-detail.module';
83
83
  import { LoginPageModule } from './pages/authentication/login/login.module';
84
84
  import { LoaderPreviewPageModule } from './pages/loader-preview/loader-preview.module';
85
-
85
+ import { CreateTicketPageModule } from './pages/create-ticket/create-ticket.module';
86
+ import { CreateRequesterPageModule } from './pages/create-requester/create-requester.module';
87
+ import { CreateCannedResponsePageModule } from './pages/create-canned-response/create-canned-response.module';
86
88
  // UTILS
87
89
  import { ScrollbarThemeModule } from './utils/scrollbar-theme.directive';
88
90
  import { SharedModule } from 'src/app/shared/shared.module';
@@ -90,6 +92,8 @@ import { ConversationInfoModule } from 'src/app/components/conversation-info/con
90
92
 
91
93
 
92
94
  // Directives
95
+ // import { HtmlEntitiesEncodePipe } from './directives/html-entities-encode.pipe';
96
+ // import { MarkedPipe } from './directives/marked.pipe';
93
97
 
94
98
  import { LoggerInstance } from 'src/chat21-core/providers/logger/loggerInstance';
95
99
  import { Network } from '@ionic-native/network/ngx';
@@ -97,6 +101,7 @@ import { ConnectionService } from 'ng-connection-service';
97
101
  import { WebSocketJs } from './services/websocket/websocket-js';
98
102
  import { UnassignedConversationsPageModule } from './pages/unassigned-conversations/unassigned-conversations.module';
99
103
  import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
104
+
100
105
  // FACTORIES
101
106
  export function createTranslateLoader(http: HttpClient) {
102
107
  return new TranslateHttpLoader(http, './assets/i18n/', '.json');
@@ -245,7 +250,7 @@ const appInitializerFn = (appConfig: AppConfigProvider, logger: NGXLogger) => {
245
250
 
246
251
  @NgModule({
247
252
  declarations: [
248
- AppComponent,
253
+ AppComponent
249
254
  ],
250
255
  entryComponents: [
251
256
  ],
@@ -280,7 +285,10 @@ const appInitializerFn = (appConfig: AppConfigProvider, logger: NGXLogger) => {
280
285
  SharedModule,
281
286
  ConversationInfoModule,
282
287
  NgxLinkifyjsModule.forRoot(),
283
- LoaderPreviewPageModule
288
+ LoaderPreviewPageModule,
289
+ CreateTicketPageModule,
290
+ CreateRequesterPageModule,
291
+ CreateCannedResponsePageModule
284
292
  ],
285
293
  bootstrap: [AppComponent],
286
294