Skip to content

Commit d9c07a6

Browse files
authored
Merge branch 'master' into fix-orderedmap-length
2 parents 25c63b5 + 8bf9037 commit d9c07a6

File tree

6 files changed

+15
-5
lines changed

6 files changed

+15
-5
lines changed

dist/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
const ui = SwaggerUIBundle({
7777
url: "http://petstore.swagger.io/v2/swagger.json",
7878
dom_id: '#swagger-ui',
79+
deepLinking: true,
7980
presets: [
8081
SwaggerUIBundle.presets.apis,
8182
SwaggerUIStandalonePreset

src/core/components/models.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ export default class Models extends Component {
2424
return <section className={ showModels ? "models is-open" : "models"}>
2525
<h4 onClick={() => layoutActions.show("models", !showModels)}>
2626
<span>Models</span>
27-
<svg width="20" height="20">
28-
<use xlinkHref="#large-arrow" />
27+
<svg className="arrow" width="20" height="20">
28+
<use xlinkHref={showModels ? "#large-arrow-down" : "#large-arrow"} />
2929
</svg>
3030
</h4>
3131
<Collapse isOpened={showModels}>

src/core/plugins/auth/actions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const authorizePassword = ( auth ) => ( { authActions } ) => {
7373
let { schema, name, username, password, passwordType, clientId, clientSecret } = auth
7474
let form = {
7575
grant_type: "password",
76-
scopes: encodeURIComponent(auth.scopes.join(scopeSeparator))
76+
scope: encodeURIComponent(auth.scopes.join(scopeSeparator))
7777
}
7878
let query = {}
7979
let headers = {}

src/plugins/add-plugin.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ SwaggerUI({
2020
})
2121
```
2222

23-
Or if you're updating the core plugins.. you'll add it to [src/js/bootstrap-plugin](https://github.com/SmartBear/swagger-ux/blob/master/src/js/bootstrap-plugin.js)
23+
Or if you're updating the core plugins.. you'll add it to the base preset: [src/core/presets/base.js](https://github.com/swagger-api/swagger-ui/blob/master/src/core/presets/base.js)
2424

2525
Each Plugin is a function that returns an object. That object will get merged with the `system` and later bound to the state.
2626
Here is an example of each `type`

src/plugins/topbar/topbar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export default class Topbar extends React.Component {
130130
<div className="wrapper">
131131
<div className="topbar-wrapper">
132132
<Link href="#" title="Swagger UX">
133-
<img height="30" width="30" src={ Logo } alt="Swagger UX"/>
133+
<img height="30" width="30" src={ Logo } alt="Swagger UI"/>
134134
<span>swagger</span>
135135
</Link>
136136
<form className="download-url-wrapper" onSubmit={formOnSubmit}>

src/style/_layout.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,15 @@ body
508508
{
509509
margin: 0;
510510
}
511+
512+
a
513+
{
514+
@include text_code(#89bf04);
515+
text-decoration: underline;
516+
&:hover {
517+
color: #81b10c;
518+
}
519+
}
511520
}
512521
}
513522

0 commit comments

Comments
 (0)