@chat21/chat21-ionic 3.0.61-rc23 → 3.0.61-rc24

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 CHANGED
@@ -1,8 +1,11 @@
1
1
  # chat21-ionic ver 3.0
2
2
 
3
+ ### 3.0.61-rc24
4
+ - Handles the "writeToButton" and the 'archivedButton' environment variables if are returned as a string
5
+ - Adds the "authPersistence" key in the chat-config-template.json, chat-config.json and env.sample files
3
6
 
4
7
  ### 3.0.61-rc23
5
- - Handles the "SupptMode" 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)
8
+ - 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)
6
9
  - Fixes the position of the emoji selection window pop up when the canned responses button is not visible
7
10
 
8
11
  ### 3.0.61-rc22
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/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,6 +1,6 @@
1
1
  {
2
2
  "name": "@chat21/chat21-ionic",
3
- "version": "3.0.61-rc23",
3
+ "version": "3.0.61-rc24",
4
4
  "author": "Tiledesk SRL",
5
5
  "homepage": "https://tiledesk.com/",
6
6
  "scripts": {
@@ -227,29 +227,44 @@ export class ConversationListPage implements OnInit {
227
227
 
228
228
  getConversationListHeight() {
229
229
  var scrollbar2element = document.getElementById('scrollbar2')
230
- this.logger.log(
231
- '[CONVS-LIST-PAGE] getConversationListHeight scrollbar2element',
232
- scrollbar2element,
233
- )
230
+ this.logger.log('[CONVS-LIST-PAGE] getConversationListHeight scrollbar2element',scrollbar2element)
234
231
  }
235
232
 
233
+ // this.support_mode = null
234
+ // if( this.appConfigProvider.getConfig().supportMode === true || this.appConfigProvider.getConfig().supportMode === 'true') {
235
+ // this.support_mode = true
236
+ // } else if ( this.appConfigProvider.getConfig().supportMode === false || this.appConfigProvider.getConfig().supportMode === 'false') {
237
+ // this.support_mode = false
238
+ // } else if ( !this.appConfigProvider.getConfig().supportMode ) {
239
+ // this.support_mode = false
240
+ // }
241
+
236
242
  getAppConfigToHideDiplayBtns() {
237
243
  const appConfig = this.appConfigProvider.getConfig()
238
- // console.log('[ION-LIST-CONVS-COMP] - appConfig ', appConfig)
239
- if (appConfig && appConfig.supportMode) {
240
- this.supportMode = appConfig.supportMode
241
- } else {
244
+ // console.log('[CONVS-LIST-PAGE] - appConfig ', appConfig)
245
+ this.supportMode = null
246
+ if (appConfig && appConfig.supportMode === true || appConfig.supportMode === 'true') {
247
+ this.supportMode = true;
248
+ this.logger.log('[CONVS-LIST-PAGE] getAppConfigToHideDiplayBtns supportMode ', this.supportMode)
249
+ } else if (appConfig && appConfig.supportMode === false || appConfig.supportMode === 'false') {
242
250
  this.supportMode = false
251
+ this.logger.log('[CONVS-LIST-PAGE] getAppConfigToHideDiplayBtns supportMode ', this.supportMode)
243
252
  }
244
- if (appConfig && appConfig.archivedButton) {
245
- this.archived_btn = appConfig.archivedButton
246
- } else {
247
- this.archived_btn = false
253
+ this.archived_btn = null
254
+ if (appConfig && appConfig.archivedButton === true || appConfig.archivedButton === 'true') {
255
+ this.archived_btn = true;
256
+ this.logger.log('[CONVS-LIST-PAGE] getAppConfigToHideDiplayBtns archived_btn ', this.archived_btn)
257
+ } else if (appConfig && appConfig.archivedButton === false || appConfig.archivedButton === 'false') {
258
+ this.archived_btn = false;
259
+ this.logger.log('[CONVS-LIST-PAGE] getAppConfigToHideDiplayBtns archived_btn ', this.archived_btn)
248
260
  }
249
- if (appConfig && appConfig.writeToButton) {
250
- this.writeto_btn = appConfig.writeToButton
251
- } else {
252
- this.writeto_btn = false
261
+ this.writeto_btn = null
262
+ if (appConfig && appConfig.writeToButton === true || appConfig.writeToButton === 'true') {
263
+ this.writeto_btn = true;
264
+ this.logger.log('[CONVS-LIST-PAGE] getAppConfigToHideDiplayBtns writeto_btn ', this.writeto_btn)
265
+ } else if (appConfig && appConfig.writeToButton === false || appConfig.writeToButton === 'false') {
266
+ this.writeto_btn = false;
267
+ this.logger.log('[CONVS-LIST-PAGE] getAppConfigToHideDiplayBtns writeto_btn ', this.writeto_btn)
253
268
  }
254
269
  // console.log('[ION-LIST-CONVS-COMP] - supportMode ', this.supportMode)
255
270
  }
@@ -257,10 +272,7 @@ export class ConversationListPage implements OnInit {
257
272
  watchToConnectionStatus() {
258
273
  this.networkService.checkInternetFunc().subscribe((isOnline) => {
259
274
  this.checkInternet = isOnline
260
- this.logger.log(
261
- '[ION-LIST-CONVS-COMP] - watchToConnectionStatus - isOnline',
262
- this.checkInternet,
263
- )
275
+ this.logger.log('[ION-LIST-CONVS-COMP] - watchToConnectionStatus - isOnline', this.checkInternet)
264
276
 
265
277
  // checking internet connection
266
278
  if (this.checkInternet == true) {
@@ -5,6 +5,10 @@
5
5
  "pushEngine":"${PUSH_ENGINE}",
6
6
  "fileUploadAccept":"${FILE_UPLOAD_ACCEPT}",
7
7
  "logLevel":"${LOG_LEVEL}",
8
+ "authPersistence": "${AUTH_PERSISTENCE}",
9
+ "supportMode": "${SUPPORT_MODE}",
10
+ "writeToButton": "${WRITE_TO_BUTTON}",
11
+ "archivedButton": "${ARCHIVED_BUTTON}",
8
12
  "firebaseConfig": {
9
13
  "tenant":"${FIREBASE_TENANT}",
10
14
  "apiKey": "${FIREBASE_APIKEY}",
@@ -26,8 +30,5 @@
26
30
  "baseImageUrl": "${API_BASEIMAGE_URL}",
27
31
  "dashboardUrl": "${DASHBOARD_URL}",
28
32
  "wsUrl": "${WS_URL}",
29
- "wsUrlRel": "${WS_URL_RELATIVE}",
30
- "supportMode": "${SUPPORT_MODE}",
31
- "writeToButton": "${WRITE_TO_BUTTON}",
32
- "archivedButton": "${ARCHIVED_BUTTON}"
33
+ "wsUrlRel": "${WS_URL_RELATIVE}"
33
34
  }
@@ -5,6 +5,7 @@
5
5
  "pushEngine":"none",
6
6
  "fileUploadAccept":"*/*",
7
7
  "logLevel": "Info",
8
+ "authPersistence": "LOCAL",
8
9
  "firebaseConfig": {
9
10
  "tenant":"tilechat",
10
11
  "apiKey": "CHANGEIT",