# Conflicts:
#	deploy/whatsapp.gblib/services/WhatsappDirectLine.ts
This commit is contained in:
Rafael Arenario Pereira da Silva 2018-08-19 12:37:01 -03:00
commit 086697c042
5 changed files with 19 additions and 20 deletions

View file

@ -34,27 +34,25 @@
<html lang="pt-br" style="width:100%;height:100%"> <html lang="pt-br" style="width:100%;height:100%">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico"> <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<link rel="stylesheet" type="text/css" href="./css/botchat.css" /> <link rel="stylesheet" type="text/css" href="./css/botchat.css" />
<link rel="stylesheet" type="text/css" href="./css/pragmatismo.css" /> <link rel="stylesheet" type="text/css" href="./css/pragmatismo.css" />
<script src="./js/botchat.js"></script> <script src="./js/botchat.js"></script>
<title>General Bots Community Edition | pragmatismo.io</title> <title>General Bots Community Edition | pragmatismo.io</title>
<style> <style>
.loader { .loader {
opacity: 0 !important; opacity: 0 !important;
filter: opacity(0); /* filter: opacity(0); Problem in recent Chrome 68+ */
}
} </style>
</style>
</head> </head>
<body style="background-color: lightgrey;"> <body style="background-color: lightgrey;">
<div id="root"></div> <div id="root"></div>
</body> </body>
</html> </html>

View file

@ -43,8 +43,8 @@ import { SpeechRecognizer } from "botframework-webchat/CognitiveServices";
import { SpeechSynthesizer } from "botframework-webchat/CognitiveServices"; import { SpeechSynthesizer } from "botframework-webchat/CognitiveServices";
import { SynthesisGender } from "botframework-webchat/CognitiveServices"; import { SynthesisGender } from "botframework-webchat/CognitiveServices";
import { Chat } from "botframework-webchat"; import { Chat } from "botframework-webchat";
import { BotChat } from "botframework-webchat"; // => não está em uso import { BotChat } from "botframework-webchat";
import { Speech } from "botframework-webchat/botchat"; // => não está em uso import { Speech } from "botframework-webchat/botchat";
import GBPowerBIPlayer from "./players/GBPowerBIPlayer.js"; import GBPowerBIPlayer from "./players/GBPowerBIPlayer.js";
class GBUIApp extends React.Component { class GBUIApp extends React.Component {

View file

@ -444,6 +444,7 @@ export class KBService {
}); });
} }
); );
// TODO Use envoding based on BOM
Fs.createReadStream(filePath, { Fs.createReadStream(filePath, {
encoding: "UCS-2" encoding: "UCS-2"
}).pipe(parser); }).pipe(parser);

View file

@ -205,7 +205,7 @@ export class WhatsappDirectLine extends GBService {
// Ignore own messages. // Ignore own messages.
// TODO: this.botId instead of "general-bot-9672a8d3" // TODO: this.botId instead of "general-bot-9672a8d3"
activities = activities.filter((m) => { return (m.from.id === "GeneralBot-Netshoes") && m.type === "message" }); activities = activities.filter((m) => { return (m.from.id === "GeneralBot-Netshoes") && m.type === "message" });
if (activities.length) { if (activities.length) {
// Print other messages. // Print other messages.

View file

@ -5,7 +5,7 @@
"declaration": false, "declaration": false,
"emitDecoratorMetadata": true, "emitDecoratorMetadata": true,
"experimentalDecorators": true, "experimentalDecorators": true,
"keyofStringsOnly": true, // "keyofStringsOnly": true, // Habilitar apenas para Typescript 2.9
"mapRoot": "./dist/", "mapRoot": "./dist/",
"module": "commonjs", "module": "commonjs",
"moduleResolution": "node", "moduleResolution": "node",