This file contains hidden or 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 * as React from 'react'; | |
import * as classNames from 'classnames'; | |
interface DropdownProps { | |
text: string; | |
rightAlign?: boolean; | |
} | |
class Dropdown extends React.Component<DropdownProps, null> { | |
constructor() { |
This file contains hidden or 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": { | |
"prefix": "impr", | |
"body": [ | |
"import * as React from 'react';", | |
"$0" | |
] | |
}, | |
"Import ReactDOM": { | |
"prefix": "imprd", |
This file contains hidden or 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
const LabelValue = props => <div>{props.label}: {props.value} ({props.note})</div>; | |
const ComponentOne = props => { | |
const label = 'Label'; | |
const someValue = 'Value'; | |
const note = 'Lorem ipsum dolor sit amet'; | |
return <LabelValue {...{ | |
label, | |
value: someValue, |
This file contains hidden or 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
(function () { | |
$(function () { | |
$('#input_apiKey').attr('placeholder', 'JSON Web Token'); | |
$('#input_apiKey').off(); | |
$('#input_apiKey').on('change', function () { | |
var key = this.value; | |
console.info('Set bearer token to: ' + key); | |
if (key && key.trim() !== '') { | |
swaggerUi.api.clientAuthorizations.add("key", new SwaggerClient.ApiKeyAuthorization("Authorization", "Bearer " + key, "header")); | |
} |
This file contains hidden or 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
<!-- ... content removed --> | |
<!-- build:js({.tmp,app}) scripts/scripts.js --> | |
<!-- fileblock:js scripts --> | |
<script src="scripts/app.js"></script> | |
<script src="scripts/controllers/main.js"></script> | |
<!-- endfileblock --> | |
<!-- endbuild --> | |
</body> | |
</html> |