Commit 5e856b3 1 parent 36faf72 commit 5e856b3 Copy full SHA for 5e856b3
File tree 4 files changed +19
-7
lines changed
4 files changed +19
-7
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ ui/src/api/.openapi-generator/VERSION
43
43
ui /src /api /git_push.sh
44
44
45
45
# UI generated typescript types
46
- ui /src /client /index .ts
46
+ ui /src /client /generatedRoutes .ts
47
47
48
48
http /swagger_gen.go
49
49
Original file line number Diff line number Diff line change 37
37
"tsc:cypress" : " tsc -p ./cypress/tsconfig.json --noEmit --pretty --skipLibCheck" ,
38
38
"cy" : " CYPRESS_baseUrl=http://localhost:9999 cypress open" ,
39
39
"cy:dev" : " CYPRESS_baseUrl=http://localhost:8080 cypress open" ,
40
- "generate" : " oats ../http/swagger.yml > src/client/index .ts"
40
+ "generate" : " oats ../http/swagger.yml > src/client/generatedRoutes .ts"
41
41
},
42
42
"author" : " " ,
43
43
"devDependencies" : {
44
44
"@babel/core" : " ^7.5.5" ,
45
45
"@babel/preset-env" : " ^7.5.5" ,
46
46
"@cypress/webpack-preprocessor" : " ^4.0.3" ,
47
- "@influxdata/oats" : " 0.4 .0" ,
47
+ "@influxdata/oats" : " 0.5 .0" ,
48
48
"@types/chroma-js" : " ^1.3.4" ,
49
49
"@types/codemirror" : " ^0.0.56" ,
50
50
"@types/d3-color" : " ^1.2.1" ,
Original file line number Diff line number Diff line change
1
+ import { setResponseHandler , postSignout } from './generatedRoutes'
2
+
3
+ setResponseHandler ( ( status , headers , data ) => {
4
+ if ( status === 403 ) {
5
+ postSignout ( { } )
6
+ window . location . href = '/signin'
7
+ }
8
+
9
+ return { status, headers, data}
10
+ } )
11
+
12
+ export * from './generatedRoutes'
Original file line number Diff line number Diff line change 1107
1107
resolved "https://registry.yarnpkg.com/@influxdata/influxdb-templates/-/influxdb-templates-0.9.0.tgz#d4b1f727c8949147d2ade63f5754425a0d1a0e9d"
1108
1108
integrity sha512-R/QhYJz+nNPGT8LkWHXKOLYYUROavDPfIFoGP7sIrxhStjm+hb0TzHYeQ75HLPQqKh54zCB8cv/TINwRgijYBw==
1109
1109
1110
- "@influxdata/oats@0.4 .0":
1111
- version "0.4 .0"
1112
- resolved "https://registry.yarnpkg.com/@influxdata/oats/-/oats-0.4 .0.tgz#709b288232473140802fd1a3871f9b0f7ae49fc2 "
1113
- integrity sha512-VgzO2jU0UguGFmdBEuqMM7jQS9soW0pqj251LmLKQhlFbuL9AKCAIOO6rf6OFqC3sCloduxwgZRc+Y9EprQhmQ ==
1110
+ "@influxdata/oats@0.5 .0":
1111
+ version "0.5 .0"
1112
+ resolved "https://registry.yarnpkg.com/@influxdata/oats/-/oats-0.5 .0.tgz#0fdd308524fa407303ffa6a3d60fe959777dcfcb "
1113
+ integrity sha512-oBlSB5ROM6JMqsVBDLlJzkBiMvAom+b4dszH83LPdM9H+pUtj2SeUoMpQhj9/4ioCnUVZx8HFN58/a/pkmADAQ ==
1114
1114
dependencies:
1115
1115
commander "^2.20.0"
1116
1116
humps "^2.0.1"
You can’t perform that action at this time.
0 commit comments