This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CollapseWrapper extends React.Component { | |
constructor(props) { | |
super(props); | |
} | |
componentDidUpdate(prevProps) { | |
const { onOpen, onClose } = this.props | |
const isShownUpdated = (this.props.isShown !== prevProps.isShown) | |
const contentOpen = this.props.isShown | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react" | |
import PropTypes from "prop-types" | |
import ImPropTypes from "react-immutable-proptypes" | |
import Im from "immutable" | |
import { createDeepLinkPath, sanitizeUrl } from "core/utils" | |
import Store from "../system.js" | |
const store = (new Store()).getStore() | |
export default class OperationTag extends React.Component { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react" | |
import PropTypes from "prop-types" | |
import updateJsonSpec from "../plugins/deep-linking/spec-wrap-actions.js" | |
export default class App extends React.Component { | |
getLayout() { | |
let { getComponent, layoutSelectors } = this.props | |
const layoutName = layoutSelectors.current() | |
const Component = getComponent(layoutName, true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) git clone -b exp-scr https://github.com/srpalomino/swagger-ui.git | |
2) npm run dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"swagger":"2.0", | |
"info":{ | |
"description": "[Google] (https://www.google.com/)", | |
"version":"1.0.0", | |
"title":"Swagger Petstore" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- HTML for dev server --> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Swagger UI</title> | |
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700" rel="stylesheet"> | |
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" > | |
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x32" /> |