From f1af1ee1bdf299ad62966c33aef04740a48cbbfd Mon Sep 17 00:00:00 2001 From: Jorge Ramos Date: Sat, 18 Aug 2018 23:46:51 -0300 Subject: [PATCH 1/3] Opacity commented in class "loader" and todoincluded --- deploy/default.gbui/public/index.html | 32 +++++++++++++-------------- deploy/kb.gbapp/services/KBService.ts | 1 + 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/deploy/default.gbui/public/index.html b/deploy/default.gbui/public/index.html index 6d13aa1b..b9031b29 100644 --- a/deploy/default.gbui/public/index.html +++ b/deploy/default.gbui/public/index.html @@ -34,27 +34,25 @@ - - - - - - - - General Bots Community Edition | pragmatismo.io + + + + + + + + General Bots Community Edition | pragmatismo.io - + -
+
- \ No newline at end of file diff --git a/deploy/kb.gbapp/services/KBService.ts b/deploy/kb.gbapp/services/KBService.ts index 24a4750c..cc0e5ad2 100644 --- a/deploy/kb.gbapp/services/KBService.ts +++ b/deploy/kb.gbapp/services/KBService.ts @@ -444,6 +444,7 @@ export class KBService { }); } ); + // TODO Use envoding based on BOM Fs.createReadStream(filePath, { encoding: "UCS-2" }).pipe(parser); From 6b254e1aaddfdb3666d4e076fb28f9207ae1331e Mon Sep 17 00:00:00 2001 From: Jorge Ramos Date: Sun, 19 Aug 2018 05:37:13 -0300 Subject: [PATCH 2/3] Compilation fixes --- deploy/default.gbui/src/GBUIApp.js | 4 ++-- tsconfig.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deploy/default.gbui/src/GBUIApp.js b/deploy/default.gbui/src/GBUIApp.js index f8d7186b..2d726446 100644 --- a/deploy/default.gbui/src/GBUIApp.js +++ b/deploy/default.gbui/src/GBUIApp.js @@ -43,8 +43,8 @@ import { SpeechRecognizer } from "botframework-webchat/CognitiveServices"; import { SpeechSynthesizer } from "botframework-webchat/CognitiveServices"; import { SynthesisGender } from "botframework-webchat/CognitiveServices"; import { Chat } from "botframework-webchat"; -import { BotChat } from "botframework-webchat"; -import { Speech } from "botframework-webchat/botchat"; +// => não está em uso import { BotChat } from "botframework-webchat"; +// => não está em uso import { Speech } from "botframework-webchat/botchat"; import GBPowerBIPlayer from "./players/GBPowerBIPlayer.js"; class GBUIApp extends React.Component { diff --git a/tsconfig.json b/tsconfig.json index b02300c9..3d6e628a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,7 +5,7 @@ "declaration": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, - "keyofStringsOnly": true, + // "keyofStringsOnly": true, // Habilitar apenas para Typescript 2.9 "mapRoot": "./dist/", "module": "commonjs", "moduleResolution": "node", From bc41a8c18c57b8fe8d6e7836ac4c006aa7130b21 Mon Sep 17 00:00:00 2001 From: Jorge Ramos Date: Sun, 19 Aug 2018 05:56:38 -0300 Subject: [PATCH 3/3] Whatsapp test changed to all netshoes bots --- deploy/whatsapp.gblib/services/WhatsappDirectLine.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy/whatsapp.gblib/services/WhatsappDirectLine.ts b/deploy/whatsapp.gblib/services/WhatsappDirectLine.ts index 44583d2e..18c2d72a 100644 --- a/deploy/whatsapp.gblib/services/WhatsappDirectLine.ts +++ b/deploy/whatsapp.gblib/services/WhatsappDirectLine.ts @@ -204,7 +204,8 @@ export class WhatsappDirectLine extends GBService { // Ignore own messages. // TODO: this.botId instead of "general-bot-9672a8d3" - activities = activities.filter((m) => { return (m.from.id === "GeneralBot-Netshoes" || m.from.id.includes("4vqtLx3cFJgBAELkRib2K8")) && m.type === "message" }); + activities = activities.filter((m) => { + return (m.from.id.substr(0, 19) === "GeneralBot-Netshoes" || m.from.id.includes("4vqtLx3cFJgBAELkRib2K8")) && m.type === "message" }); if (activities.length) {