Skip to content

Commit

Permalink
updated grpc-web to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
ettec committed Oct 21, 2020
1 parent 70a5201 commit 77dc2ef
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 378 deletions.
1 change: 0 additions & 1 deletion go/authorization-service/lastdeployed.txt

This file was deleted.

1 change: 0 additions & 1 deletion go/authorization-service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ type AuthService struct {
users map[string]user
}

// inject a header that can be used for future rate limiting
func (a *AuthService) Check(_ context.Context, req *auth.CheckRequest) (*auth.CheckResponse, error) {

path, ok := req.Attributes.Request.Http.Headers[":path"]
Expand Down
357 changes: 0 additions & 357 deletions go/authorization-service/telepresence.log

This file was deleted.

2 changes: 1 addition & 1 deletion react/opentp-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"flexlayout-react": "^0.3.4",
"google-protobuf": "^3.10.0",
"grpc": "^1.24.2",
"grpc-web": "^1.0.7",
"grpc-web": "^1.2.1",
"local-storage": "^2.0.0",
"loglevel": "^1.7.0",
"node-fetch": "^2.6.1",
Expand Down
20 changes: 13 additions & 7 deletions react/opentp-client/src/components/OrderTicket/OrderTicket.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { AnchorButton, Classes, Colors, Dialog, FormGroup, Intent, Label, NumericInput, MenuItem, Button } from '@blueprintjs/core';
import { Error } from 'grpc-web';
import { Error, StatusCode } from 'grpc-web';
import React, { CSSProperties } from 'react';
import { getListingLongName, getListingShortName, getTickSize } from '../../common/modelutilities';
import log from 'loglevel';
Expand Down Expand Up @@ -78,7 +78,7 @@ export default class OrderTicket extends React.Component<OrderTicketProps, Order
<MenuItem
active={modifiers.active}
disabled={modifiers.disabled}

key={destinationMic}
onClick={handleClick}
text={text}
Expand All @@ -88,8 +88,8 @@ export default class OrderTicket extends React.Component<OrderTicketProps, Order
}


private getDestinationDisplayName(destinationMic: string | undefined) : string | undefined{
if( ! destinationMic) {
private getDestinationDisplayName(destinationMic: string | undefined): string | undefined {
if (!destinationMic) {
return "UNKNOWN"
}

Expand Down Expand Up @@ -224,8 +224,8 @@ export default class OrderTicket extends React.Component<OrderTicketProps, Order

<Label>{this.getListingFullName()}</Label>
<div style={{ display: 'flex', flexDirection: 'row', paddingTop: 0, alignItems: "left" }}>
<Label style={{ color: Colors.LIME3, width: 150 }}>{this.getBidText(this.state.quote)}</Label>
<Label style={{ color: Colors.ORANGE3 }}>{this.getAskText(this.state.quote)}</Label>
<Label style={{ color: Colors.LIME3, width: 150 }}>{this.getBidText(this.state.quote)}</Label>
<Label style={{ color: Colors.ORANGE3 }}>{this.getAskText(this.state.quote)}</Label>
</div>

<FormGroup
Expand Down Expand Up @@ -553,7 +553,13 @@ export default class OrderTicket extends React.Component<OrderTicketProps, Order
if (err) {
let msg = "error whilst sending order:" + err.message
log.error(msg)
alert(msg)
if (err.code === StatusCode.PERMISSION_DENIED) {
alert("permission denied")
} else {
alert(msg)
}


} else {
log.debug("create and route order created order with id:" + response.getOrderid())
}
Expand Down
27 changes: 16 additions & 11 deletions react/opentp-client/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1552,9 +1552,9 @@
"@babel/types" "^7.3.0"

"@types/bytebuffer@^5.0.40":
version "5.0.41"
resolved "https://registry.yarnpkg.com/@types/bytebuffer/-/bytebuffer-5.0.41.tgz#6850dba4d4cd2846596b4842874d5bfc01cd3db1"
integrity sha512-Mdrv4YcaHvpkx25ksqqFaezktx3yZRcd51GZY0rY/9avyaqZdiT/GiWRhfrJhMpgzXqTOSHgGvsumGxJFNiZZA==
version "5.0.42"
resolved "https://registry.yarnpkg.com/@types/bytebuffer/-/bytebuffer-5.0.42.tgz#1c602a77942d34c5c0879ad75c58d5d8c07dfb3b"
integrity sha512-lEgKojWUAc/MG2t649oZS5AfYFP2xRNPoDuwDBlBMjHXd8MaGPgFgtCXUK7inZdBOygmVf10qxc1Us8GXC96aw==
dependencies:
"@types/long" "*"
"@types/node" "*"
Expand Down Expand Up @@ -1646,9 +1646,9 @@
form-data "^3.0.0"

"@types/node@*":
version "14.6.0"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.6.0.tgz#7d4411bf5157339337d7cff864d9ff45f177b499"
integrity sha512-mikldZQitV94akrc4sCcSjtJfsTKt4p+e/s0AGscVA6XArQ9kFclP+ZiYUMnq987rc6QlYxXv/EivqlfSLxpKA==
version "14.14.0"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.0.tgz#f1091b6ad5de18e8e91bdbd43ec63f13de372538"
integrity sha512-BfbIHP9IapdupGhq/hc+jT5dyiBVZ2DdeC5WwJWQWDb0GijQlzUFAeIQn/2GtvZcd2HVUU7An8felIICFTC2qg==

"@types/[email protected]":
version "12.0.10"
Expand Down Expand Up @@ -5221,7 +5221,7 @@ growly@^1.3.0:
resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081"
integrity sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=

grpc-web@^1.0.7:
grpc-web@^1.2.1:
version "1.2.1"
resolved "https://registry.yarnpkg.com/grpc-web/-/grpc-web-1.2.1.tgz#860051d705bf5baa7b81fcbd14030060bf16b7b9"
integrity sha512-ibBaJPzfMVuLPgaST9w0kZl60s+SnkPBQp6QKdpEr85tpc1gXW2QDqSne9xiyiym0logDfdUSm4aX5h9YBA2mw==
Expand Down Expand Up @@ -7332,11 +7332,16 @@ [email protected]:
resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d"
integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==

nan@^2.12.1, nan@^2.13.2:
nan@^2.12.1:
version "2.14.1"
resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.1.tgz#d7be34dfa3105b91494c3147089315eff8874b01"
integrity sha512-isWHgVjnFjh2x2yuJ/tj3JbwoHu3UC2dX5G/88Cm24yB6YopVgxvBObDY7n5xW6ExmFhJpSEQqFPvq9zaXc8Jw==

nan@^2.13.2:
version "2.14.2"
resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.2.tgz#f5376400695168f4cc694ac9393d0c9585eeea19"
integrity sha512-M2ufzIiINKCuDfBSAUr1vWQ+vuVcA9kqx8JJUsbQi6yf1uGRyb7HfpdfUr5qLXf3B/t8dPvcjhKMmlfnP47EzQ==

nanomatch@^1.2.9:
version "1.2.13"
resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119"
Expand All @@ -7360,9 +7365,9 @@ natural-compare@^1.4.0:
integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=

needle@^2.5.0:
version "2.5.0"
resolved "https://registry.yarnpkg.com/needle/-/needle-2.5.0.tgz#e6fc4b3cc6c25caed7554bd613a5cf0bac8c31c0"
integrity sha512-o/qITSDR0JCyCKEQ1/1bnUXMmznxabbwi/Y4WwJElf+evwJNFNwIDMCCt5IigFVxgeGBJESLohGtIS9gEzo1fA==
version "2.5.2"
resolved "https://registry.yarnpkg.com/needle/-/needle-2.5.2.tgz#cf1a8fce382b5a280108bba90a14993c00e4010a"
integrity sha512-LbRIwS9BfkPvNwNHlsA41Q29kL2L/6VaOJ0qisM5lLWsTV3nP15abO5ITL6L81zqFhzjRKDAYjpcBcwM0AVvLQ==
dependencies:
debug "^3.2.6"
iconv-lite "^0.4.4"
Expand Down

0 comments on commit 77dc2ef

Please sign in to comment.