Skip to content

Commit

Permalink
fix(default.gbui): Removed warnings from code.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Jun 13, 2021
1 parent 42719e7 commit d742c00
Show file tree
Hide file tree
Showing 9 changed files with 191 additions and 290 deletions.
445 changes: 177 additions & 268 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"speakingurl": "^14.0.1",
"sppull": "2.7.0",
"strict-password-generator": "1.1.2",
"swagger-client": "2.1.18",
"swagger-client": "^3.13.5",
"tedious": "9.2.1",
"textract": "2.5.0",
"typescript": "4.3.2",
Expand Down
17 changes: 7 additions & 10 deletions packages/default.gbui/src/GBUIApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ class GBUIApp extends React.Component {
})
.subscribe(() => {
window.userAgentApplication.logout();
console.log('updateToken done');
});
}, 400);
}
Expand All @@ -86,8 +85,7 @@ class GBUIApp extends React.Component {
textFormat: 'plain',
timestamp: new Date().toISOString(),
from: this.getUser()
})
.subscribe(console.log('EVENT SENT TO Guaribas.'));
});
}

getUser() {
Expand All @@ -106,7 +104,6 @@ class GBUIApp extends React.Component {
timestamp: new Date().toISOString(),
from: window.user
})
.subscribe(console.log("success"));
}, 400);
}
postMessage(value) {
Expand Down Expand Up @@ -156,9 +153,9 @@ class GBUIApp extends React.Component {
let userAgentApplication = new UserAgentApplication(
this.state.instanceClient.authenticatorClientId,
authority,
function (errorDesc, token, error, tokenType) {
function (errorDesc, token, error) {
if (error) {
console.log(error);
_this_.sendToken(error);
}
}
);
Expand All @@ -173,7 +170,7 @@ class GBUIApp extends React.Component {
_this_.sendToken(accessToken);
},
function (error) {
console.log(error);
_this_.sendToken(error);
}
);
}
Expand All @@ -200,14 +197,14 @@ class GBUIApp extends React.Component {

line.activity$
.filter(activity => activity.type === 'event' && activity.name === 'loadInstance')
.subscribe(activity => {
.subscribe(() => {
this.postEvent('startGB', true);
_this_.authenticate();
});

line.activity$
.filter(activity => activity.type === 'event' && activity.name === 'stop')
.subscribe(activity => {
.subscribe(() => {
if (_this_.player) {
_this_.player.stop();
}
Expand Down Expand Up @@ -301,7 +298,7 @@ class GBUIApp extends React.Component {
);
break;
default:
console.log('GBERROR: Unknow player type specified on message from server.');
playerComponent = <div>GBERROR: Unknow player type specified on message from server.</div>;
break;
}
}
Expand Down
3 changes: 1 addition & 2 deletions packages/default.gbui/src/components/SidebarMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ class SideBarMenu extends React.Component {
textFormat: "plain",
timestamp: new Date().toISOString(),
from: window.user
})
.subscribe(console.log("success"));
});
}

render() {
Expand Down
3 changes: 1 addition & 2 deletions packages/default.gbui/src/players/GBBulletPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,13 @@ class RenderItem extends Component {
timestamp: new Date().toISOString(),
from: window.user
})
.subscribe(console.log("success"));
},400);
}

render() {
return (
<ul>
{this.props.list.map((item, i) => (
{this.props.list.map((item) => (
<li key={item.questionId}>
<label className="gb-bullet-player-item" onClick={this.send.bind(this, item)}>{item.content}</label>
</li>
Expand Down
2 changes: 1 addition & 1 deletion packages/default.gbui/src/players/GBImagePlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class GBImagePlayer extends Component {
stop(){
this.playerImage.src = "";
}
componentDidUpdate(prevProps, prevState) {}


render() {
return (
Expand Down
6 changes: 3 additions & 3 deletions packages/default.gbui/src/players/GBLoginPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class GBLoginPlayer extends React.Component {
};
}

doLogin(info) {
doLogin() {
let authority =
"https://login.microsoftonline.com/" +
this.state.login.authenticatorTenant;
Expand All @@ -51,9 +51,9 @@ class GBLoginPlayer extends React.Component {
let userAgentApplication = new UserAgentApplication(
this.state.login.authenticatorClientId,
authority,
function (errorDesc, token, error, tokenType) {
function (errorDesc, token, error) {
if (error) {
console.log(error);
this.setState({ login: error});
}
})

Expand Down
2 changes: 0 additions & 2 deletions packages/default.gbui/src/players/GBMarkdownPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ class GBMarkdownPlayer extends Component {
timestamp: new Date().toISOString(),
from: { id: "webUser", name: "You" }
})
.subscribe(console.log("success"));
}, 400);
}

Expand All @@ -62,7 +61,6 @@ class GBMarkdownPlayer extends Component {
timestamp: new Date().toISOString(),
from: window.user
})
.subscribe(console.log("success"));
}, 400);

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ class GBPowerBIPlayer extends Component {
timestamp: new Date().toISOString(),
from: { id: "webUser", name: "You" }
})
.subscribe(console.log("success"));
}, 400);
}

Expand Down

0 comments on commit d742c00

Please sign in to comment.