This website works better with JavaScript.
Home
Explore
Help
Sign In
bubblev
/
swagger-ui
Watch
4
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
fix
#2456
bubble
Anna Bodnia
7 years ago
parent
436586a661
commit
59ecaf40ee
6 changed files
with
29 additions
and
12 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+14
-8
dist/swagger-ui.js
+1
-1
dist/swagger-ui.js.map
+0
-1
package.json
+1
-1
src/core/plugins/auth/actions.js
+1
-1
src/core/plugins/auth/reducers.js
+12
-0
src/core/utils.js
+ 14
- 8
dist/swagger-ui.js
File diff suppressed because it is too large
View File
+ 1
- 1
dist/swagger-ui.js.map
View File
@@ -1 +1 @@
{"version":3,"file":"swagger-ui.js","sources":["webpack:///swagger-ui.js"],"mappings":"AAAA;
AAsoGA;AAy4HA;AA+7FA;AA2mCA;AAkgCA;AAshCA;AAi
4BA","sourceRoot":""}
{"version":3,"file":"swagger-ui.js","sources":["webpack:///swagger-ui.js"],"mappings":"AAAA;
;;;;;AAmwCA;AAoyHA;AA2wHA;AA07FA;AAmnCA;AAu/BA;AAmiCA;AA4
4BA","sourceRoot":""}
+ 0
- 1
package.json
View File
@@ -37,7 +37,6 @@
"dependencies": {
"babel-polyfill": "^6.23.0",
"brace": "0.7.0",
"btoa": "^1.1.2",
"deep-extend": "0.4.1",
"expect": "1.20.2",
"getbase": "^2.8.2",
+ 1
- 1
src/core/plugins/auth/actions.js
View File
@@ -1,5 +1,5 @@
import win from "core/window"
import
btoa from "btoa
"
import
{ btoa } from "core/utils
"
export const SHOW_AUTH_POPUP = "show_popup"
export const AUTHORIZE = "authorize"
+ 1
- 1
src/core/plugins/auth/reducers.js
View File
@@ -1,5 +1,5 @@
import { fromJS, Map } from "immutable"
import
btoa from "btoa
"
import
{ btoa } from "core/utils
"
import {
SHOW_AUTH_POPUP,
+ 12
- 0
src/core/utils.js
View File
@@ -547,3 +547,15 @@ export const parseSeach = () => {
return map
}
export const btoa = (str) => {
let buffer;
if (str instanceof Buffer) {
buffer = str;
} else {
buffer = new Buffer(str.toString(), "utf-8");
}
return buffer.toString("base64");
}
Write
Preview
Loading…
Cancel
Save