path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
fields/explorer/components/FieldSpec.js | Pop-Code/keystone | import Domify from 'react-domify';
import React from 'react';
import { Form } from '../../../admin/client/App/elemental';
import Col from './Col';
import Row from './Row';
const ExplorerFieldType = React.createClass({
getInitialState () {
return {
filter: this.props.FilterComponent.getDefaultValue(),
value: ... |
src/react/LogMonitorButton.js | khronnuz/redux-devtools | import React from 'react';
import brighten from '../utils/brighten';
const styles = {
base: {
cursor: 'pointer',
fontWeight: 'bold',
borderRadius: 3,
padding: 4,
marginLeft: 3,
marginRight: 3,
marginTop: 5,
marginBottom: 5,
flexGrow: 1,
display: 'inline-block',
fontSize: '... |
docs/src/PageHeader.js | mmarcant/react-bootstrap | import React from 'react';
const PageHeader = React.createClass({
render() {
return (
<div className="bs-docs-header" id="content">
<div className="container">
<h1>{this.props.title}</h1>
<p>{this.props.subTitle}</p>
</div>
</div>
);
}
});
export default Pag... |
test/test_helper.js | jordanyryan/JDTube | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
src/frontend/react/pages/ProfilePage.js | FakeYou/voerr | import React from 'react';
import connectToStores from 'alt/utils/connectToStores';
import { Form } from 'formsy-react';
import LoginStore from 'flux/stores/LoginStore';
import RegisterAccountActions from 'flux/actions/RegisterAccountActions';
import Input from 'react/components/form/Input';
import 'assets/style/edi... |
src/rich-media/index.js | joxoo/react-material | import React from 'react';
import PropTypes from 'prop-types';
import { MaterialPropTypes } from '../addons';
import { getClassesStatic } from '../addons/get-classes';
import Audio from './audio';
import Video from './video';
import Picture from './picture';
const getWithMimeType = (type, value) => value.type.split... |
src/index.js | lwansbrough/react-redux | import React from 'react';
import createAll from './components/createAll';
export const { Provider, connect } = createAll(React);
|
src/routes/subject/list.js | ykx456654/hr_admin | import React from 'react'
import PropTypes from 'prop-types'
import { Link,router } from 'dva/router'
import { connect } from 'dva'
import {
Button,
Pagination,
Table,
Icon,
Modal
} from 'antd'
import style from './index.less'
function subjectList ({ subject,dispatch }) {
let { table } = su... |
analysis/demonhunterhavoc/src/modules/talents/EssenceBreak.js | anom0ly/WoWAnalyzer | import { formatThousands } from 'common/format';
import SPELLS from 'common/SPELLS';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import calculateEffectiveDamage from 'parser/core/calculateEffectiveDamage';
import Events from 'parser/core/Events';
import Enemies from 'parser/shared/modules/Enemies'... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | azilnik/azilnik.github.io | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/components/Page.js | samghelms/fast-math | import React from 'react';
import Paper from 'material-ui/Paper';
import LineContainer from '../containers/LineContainer'
const style = {
height: "2132px",
width: "816px",
margin: 20,
display: 'inline-block',
};
const Page = () => (
<Paper style={style} zDepth={1} >
<LineContainer />
</Paper>
)
export... |
template/source/scripts/components/application.js | rafaelrinaldi/slush-web-app | import React, { Component } from 'react';
export default class extends Component {
render() {
return (
<div className='wrapper'>
<h1>Hello World!</h1>
<small>(from React)</small>
</div>
);
}
}
|
node_modules/antd/es/modal/confirm.js | prodigalyijun/demo-by-antd | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import React from 'react';
import ReactDOM from 'react-dom';
import classNames from 'classnames';
import assign from 'object-assign';
import Icon from '../icon';
import Dialog from './Modal';
import ActionButton from './ActionButton';
import { getConfi... |
client/src/javascript/components/general/Portal.js | jfurrow/flood | import {IntlProvider} from 'react-intl';
import PropTypes from 'prop-types';
import React from 'react';
import ReactDOM from 'react-dom';
import * as i18n from '../../i18n/languages';
import SettingsStore from '../../stores/SettingsStore';
class Portal extends React.Component {
static propTypes = {
children: Pr... |
src/components/Login.js | tilgram/tilgram-frontend | import { Link } from 'react-router';
import ListErrors from './ListErrors';
import React from 'react';
import agent from '../agent';
import { connect } from 'react-redux';
import {
UPDATE_FIELD_AUTH,
LOGIN,
LOGIN_PAGE_UNLOADED
} from '../constants/actionTypes';
const mapStateToProps = state => ({ ...state.auth }... |
packages/@lyra/components/src/fileinput/DefaultFileInput.js | VegaPublish/vega-studio | import PropTypes from 'prop-types'
import React from 'react'
import {uniqueId} from 'lodash'
export default class DefaultFileInput extends React.PureComponent {
static propTypes = {
onSelect: PropTypes.func.isRequired,
children: PropTypes.node,
className: PropTypes.string,
style: PropTypes.object
}... |
src/svg-icons/image/filter-hdr.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterHdr = (props) => (
<SvgIcon {...props}>
<path d="M14 6l-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22L14 6z"/>
</SvgIcon>
);
ImageFilterHdr = pure(ImageFilterHdr);
ImageFilterHdr.displayName... |
docs/src/pages/components/tooltips/DelayTooltips.js | lgollut/material-ui | import React from 'react';
import Button from '@material-ui/core/Button';
import Tooltip from '@material-ui/core/Tooltip';
export default function DelayTooltips() {
return (
<Tooltip title="Add" enterDelay={500} leaveDelay={200}>
<Button>[500ms, 200ms]</Button>
</Tooltip>
);
}
|
app/javascript/mastodon/features/compose/components/upload_form.js | hugogameiro/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import UploadProgressContainer from '../containers/upload_progress_container';
import ImmutablePureComponent from 'react-immutable-pure-component';
import UploadContainer from '../containers/upload_container';
export default class U... |
src/index.js | ecoker/tictac | import React from 'react';
import { render } from 'react-dom';
import { TicTac } from './App';
render(<TicTac />, document.getElementById('root')); |
src/esm/components/structure/list/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["children", "style", "className", "bottomBorderRadiusValue", "withBottomBorderRadius", "markerElement", "gap"];
import React from 'react';
import PropT... |
src/components/NotFoundPage.js | trda/seslisozluk-simple-ui-project | import React from 'react';
import { Link } from 'react-router';
export default class NotFoundPage extends React.Component {
render() {
return (
<div>
<h2>404</h2>
<h3>Sayfa bulunamadı</h3>
<p>
<Link to="/">Ana sayfaya dön</Link>
</p>
</div>
);
}
} |
src/view/error/index.js | fishmankkk/mircowater2.0 | import React from 'react'
import styles from './index.less'
import img404 from '../../public/images/404.gif'
const Error = () => (<div className="content-inner">
<div className={styles.error}>
<img src={img404} alt={'logo'} />
</div>
</div>)
export default Error
|
pages/lab/about.js | cherniavskii/material-ui | import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from 'docs/src/pages/lab/about/about.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default withRoot(Page);
|
docs/app/Examples/elements/Label/Content/LabelExampleIconShorthand.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Label } from 'semantic-ui-react'
const LabelExampleIconShorthand = () => (
<Label as='a' content='Mail' icon='mail' />
)
export default LabelExampleIconShorthand
|
src/scripts/VideoMeta.js | williamthing/yoda | 'use strict';
import React from 'react';
import {MetaMixin} from './Mixins';
export default React.createClass({
mixins: [MetaMixin],
propTypes: {
channel: React.PropTypes.string.isRequired,
views: React.PropTypes.string.isRequired,
published: React.PropTypes.string.isRequired
},
render() {
r... |
actor-apps/app-web/src/app/components/common/MessageItem.react.js | treejames/actor-platform | import _ from 'lodash';
import React from 'react';
import { PureRenderMixin } from 'react/addons';
import memoize from 'memoizee';
import classNames from 'classnames';
import emojify from 'emojify.js';
import hljs from 'highlight.js';
import marked from 'marked';
import emojiCharacters from 'emoji-named-characters';
... |
renderer/vectors/svg.js | wulkano/kap | import React from 'react';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import {handleKeyboardActivation} from '../utils/inputs';
class Svg extends React.Component {
static defaultProps = {
fill: 'var(--icon-color)',
activeFill: 'var(--kap)',
hoverFill: 'var(--icon-hover-colo... |
MobileApp/mstudentApp/components/settingsViews/SettingsMenu.js | FresnoState/mobilestudentintranet | import React, { Component } from 'react';
import {
Text,
TouchableOpacity,
View,
} from 'react-native';
import styles from "../../styles";
export default class SettingsMenu extends Component {
static navigationOptions = {
header: null
};
constructor(props){
super(props);
}
... |
src/components/CardLists/FilterMembers.js | Minishlink/DailyScrum | // @flow
import React, { Component } from 'react';
import { StyleSheet, View } from 'react-native';
import FlatList from 'FlatList';
import { connect } from 'react-redux';
import { isEqual } from 'lodash';
import type { UserType } from '../../types';
import { FilterableMember } from './';
import { makeFilterByMember, f... |
src/svg-icons/device/battery-50.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBattery50 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V13h10V5.33z"/><path d="M7 13v7.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 ... |
packages/reactor-kitchensink/src/examples/Charts/3DColumn/3DColumnWithRenderer/3DColumnWithRenderer.js | sencha/extjs-reactor | import React, { Component } from 'react';
import { Container } from '@extjs/ext-react';
import { Cartesian } from '@extjs/ext-react-charts';
import ChartToolbar from '../../ChartToolbar';
import { storeData, colors } from './data';
export default class ThreeDColumnWithRenderer extends Component {
store = Ext.crea... |
src/components/ListBox/ListBoxMenuIcon.js | jzhang300/carbon-components-react | import cx from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import Icon from '../Icon';
export const translationIds = {
'close.menu': 'close.menu',
'open.menu': 'open.menu',
};
const defaultTranslations = {
[translationIds['close.menu']]: 'Close menu',
[translationIds['open.men... |
app/containers/LandingPage/NavItem.js | VeloCloud/website-ui | import React from 'react';
import { LinkContainer } from 'react-router-bootstrap';
import { NavItem } from 'react-bootstrap';
function MyNavItem(props) {
const to = props.to;
const content = (
<NavItem eventKey={props.eventKey}>
{React.Children.toArray(props.children)}
</NavItem>
);
if (to) {
... |
src/layouts/layout-5-6.js | nuruddeensalihu/binary-next-gen | import React from 'react';
export default (components, className, onClick) => (
<div className={className + ' horizontal'} onClick={onClick}>
{components[0]}
{components[1]}
{components[2]}
{components[3]}
{components[4]}
</div>
);
|
client/js/components/molecules/Badge.js | Code4HR/react-hrtbus | import React from 'react'
import Radium from 'radium'
import Colors from './Colors'
let container = {
height: '3rem',
minWidth: '4rem',
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center'
}
class Badge extends React.Component {
render() {
return (
... |
src/components/HistoryMap.js | TorinoMeteo/tm-realtime-map | import React from 'react'
import PropTypes from 'prop-types'
import {
withGoogleMap,
GoogleMap,
HeatmapLayer
} from 'react-google-maps'
import MarkerClusterer from 'react-google-maps/lib/addons/MarkerClusterer'
import HistoryMarker from 'components/HistoryMarker'
import HistoryStationModal from 'components/Histor... |
boxroom/archive/backup-js-glow-2018-01-28/boxroom/archive/js-surface-2018-01-27/boxroom/archive/2017-10-27-glow/js-glow/src/performance/dbmon/react/app.js | mcjazzyfunky/js-surface | /** @jsx React.createElement */
import ENV from '../shared/env.js';
import React from 'react';
import ReactDOM from 'react-dom';
export default class DBMon extends React.Component {
constructor(props) {
super(props);
this.state = {
databases: []
};
}
loadSamples()... |
app/javascript/flavours/glitch/containers/mastodon.js | Kirishima21/mastodon | import React from 'react';
import { Provider } from 'react-redux';
import PropTypes from 'prop-types';
import configureStore from 'flavours/glitch/store/configureStore';
import { BrowserRouter, Route } from 'react-router-dom';
import { ScrollContext } from 'react-router-scroll-4';
import UI from 'flavours/glitch/featur... |
ui/src/components/InstructionSetView.js | untoldwind/eightyish | import React from 'react'
import { INSTRUCTION_GROUPS } from '../stores/z80/InstructionSet'
class InstructionGroup {
constructor(instructionGroup) {
this.name = instructionGroup.name
this.description = instructionGroup.description
this.size = instructionGroup.instructions.length
if... |
src/esm/components/structure/cards/team-card/components/title.js | KissKissBankBank/kitten | import React from 'react';
import PropTypes from 'prop-types';
import { Text } from '../../../../typography/text';
import { Marger } from '../../../../layout/marger';
export var TeamCardTitle = function TeamCardTitle(_ref) {
var children = _ref.children,
subTitle = _ref.subTitle;
return /*#__PURE__*/React.cre... |
src/parser/rogue/assassination/modules/core/Energy.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import resourceSuggest from 'parser/shared/modules/resourcetracker/ResourceSuggest';
import EnergyTracker from '../../../shared/resources/EnergyTracker';
class Energy ... |
V2-Node/esquenta.v2/UI/src/views/Dashboard/Header.js | leandrocristovao/esquenta | import React, { Component } from 'react';
import { Row, Col } from 'reactstrap';
import Widget02 from '../../views/Widgets/Widget02'
class Header extends Component {
constructor(props) {
super(props);
}
render() {
return (<Row>
<Col xs="12" sm="6" lg="3">
<Widget02 head... |
hub-ui/src/components/profile/FollowBox.js | lchase/hub | import React, { Component } from 'react';
import { connect } from 'react-redux';
export class FollowBox extends Component {
render() {
return (
<div className="box box-primary">
<div className="box-body box-profile">
<img src="assets/img/placeholder-user-image.png" className="profile-user... |
packages/react-scripts/fixtures/kitchensink/src/features/env/ShellEnvVariables.js | reedsa/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
export default () => (
<span id="feature-shell-env-variables">
{process.env.REACT_APP_SHELL_ENV_MESSAG... |
src/svg-icons/hardware/phone-android.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwarePhoneAndroid = (props) => (
<SvgIcon {...props}>
<path d="M16 1H8C6.34 1 5 2.34 5 4v16c0 1.66 1.34 3 3 3h8c1.66 0 3-1.34 3-3V4c0-1.66-1.34-3-3-3zm-2 20h-4v-1h4v1zm3.25-3H6.75V4h10.5v14z"/>
</SvgIcon>
... |
examples/js/column-format/html-column-format-table.js | dana2208/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-unused-vars: 0*/
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
p... |
client/pages/home.js | quarterto/almanac | import { withTracker } from 'meteor/react-meteor-data'
import React from 'react'
import { compose, renderComponent } from 'recompact'
import { Campaigns } from '../../shared/collections'
import Link from '../control/link'
import subscribe from '../utils/subscribe'
import loggedIn from '../utils/logged-in'
import { Spl... |
src/docs/examples/TextInput/ExampleError.js | tlraridon/ps-react-train-tlr | import React from 'react';
import TextInput from 'ps-react-train-tlr/TextInput';
/** Required TextBox with error */
export default class ExampleError extends React.Component {
render() {
return (
<TextInput
htmlId="example-optional"
label="First Name"
name="firstname"
onChan... |
src/components/ListPage.js | bdougie/react-relay-instagram-example | import React from 'react'
import { Link } from 'react-router'
import Relay from 'react-relay'
import Post from '../components/Post'
class ListPage extends React.Component {
static propTypes = {
viewer: React.PropTypes.object,
}
render () {
return (
<div className='w-100 flex justify-center'>
... |
src/component/Blog/Header/Search.js | myflwq/big-demo | import React from 'react'
import SearchBtn from 'material-ui/svg-icons/action/search';
import TextField from 'material-ui/TextField';
class Search extends React.Component {
handleInput(e){
let x = e.target.value;
// console.log(x);
this.props.handleSearch(x);
}
render () {
// console.log(this.pro... |
src/screens/auth-container.js | Doko-Demo-Doa/CSClient-RN | /**
* @flow
*/
'use strict';
import React, { Component } from 'react';
import {
Body,
Button,
Container,
Content,
Header,
Icon,
Left,
Right,
Title,
} from 'native-base';
import PropTypes from 'prop-types';
import {
BackHandler,
Platform,
StatusBar,
Image,
Dimensions,
Keyboard,
Text,
... |
example/src/views/modal/index.js | TransferGo/react-subrouter | import React from 'react';
import {SubRouter} from 'react-subrouter';
import routes from './routes.js';
class Index extends SubRouter {
constructor(props, state){
// pass routes and a default route name to the constructor of the SubRouter
super(props, state, routes, 'card');
}
}
module.export... |
src/interface/others/DualStatisticBox.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import Statistic from 'interface/statistics/Statistic';
import STATISTIC_CATEGORY from './STATISTIC_CATEGORY';
export { default as STATISTIC_ORDER } from './STATISTIC_ORDER';
/**
* @deprecated Use `interface/statistics/*` instead (add a component to di... |
client/pages/examples/threejs/wavefunctions/index.js | fdesjardins/webgl | import React from 'react'
import * as THREE from 'three'
import Example from '-/components/example'
import notes from './readme.md'
import { createAxes, addControls } from '../graphing/utils'
// const config = {
// initialPosition: new THREE.Vector3(3.0, 0.0, 0.0),
// anchorPosition: new THREE.Vector3(0.0, 0.0, 0... |
test/integration/image-component/base-path/pages/prose.js | flybayer/next.js | import Image from 'next/image'
import React from 'react'
import * as styles from './prose.module.css'
const Page = () => {
return (
<div className={styles.prose}>
<p>Hello World</p>
<Image
id="prose-image"
src="/docs/test.jpg"
width="400"
height="400"
></Image>
... |
src/client/index.js | richardkall/react-starter | import React from 'react';
import { BrowserRouter as Router } from 'react-router-dom';
import { render } from 'react-dom';
import App from '../app/components/App';
render(
<Router>
<App />
</Router>,
document.getElementById('root'),
);
if (module.hot) {
module.hot.accept();
}
|
src/scenes/Layout/components/Representation/components/Month/Month.js | czonios/schedule-maker-app | import React from 'react';
import PropTypes from 'prop-types';
import './month.css';
import { Grid } from 'semantic-ui-react';
import dateService from '../../../../../../services/dates/dateService';
import DayRows from './components/DayRows/DayRows.js';
import WeekdayColumns from '../WeekDayColumns/WeekdayColumns';
c... |
src/Parser/Druid/Feral/Modules/Talents/SavageRoarUptime.js | enragednuke/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Enemies from 'Parser/Core/Modules/Enemies';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import StatisticBox, { ST... |
src/layouts/index.js | pawelmaczka/wojcin | import React from 'react';
import PropTypes from 'prop-types';
// import Link from 'gatsby-link';
import Helmet from 'react-helmet';
import Header from '../common/components/Header';
import Footer from '../common/components/Footer';
import 'normalize.css';
import './index.scss';
const TemplateWrapper = ({ children ... |
packages/bonde-admin/src/pages/admin/communities/settings/recipient/helpText.js | ourcities/rebu-client | import React from 'react'
import { FormattedMessage } from 'react-intl'
import { Warning } from '@/components/notify'
export const RecipientFormWarning = () => (
<Warning
title={
<FormattedMessage
id='page--community-recipient.warning.title'
defaultMessage='Importante'
/>
}
>
... |
src/routes/index.js | kawikadkekahuna/react-native-form | import React from 'react';
import Home from './Home.js';
import Login from './Login.js';
import PointInTime from './PointInTime.js';
import Vispdat from './VISPDAT.js';
import Refuse from './Refuse.js';
import {
Actions,
Scene
} from 'react-native-router-flux';
/**
* Order of rendering is based on index of Child ... |
src/components/DatPresets.js | rohan-deshpande/react-dat-gui | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import cloneDeep from 'lodash.clonedeep';
import isString from 'lodash.isstring';
import result from 'lodash.result';
const DEFAULT_PRESET_KEY = 'Default';
export default class DatPresets extends Component {
static propTypes = {
data... |
src/containers/AttachmentsDashboardStatContainer/index.js | envisioning/tdb-storybook | import React from 'react';
import { connect } from 'react-redux'
import AttachmentsDashboardStat from '../../components/AttachmentsDashboardStat'
import componentRegisterEnchancer from '../../components/ComponentRegisterEnchancer'
import componentMountEmitter from '../../components/ComponentMountEmitter';
const mapSta... |
src/Bundle.js | lin2jie2/react-hash-router | import React from 'react'
import PropTypes from 'prop-types'
export default class Bundle extends React.Component {
static propTypes = {
load: PropTypes.func.isRequired,
}
state = {
module: null,
}
componentWillMount() {
this.load(this.props)
}
componentWillReceiveProps(nextProps) {
if (nextProps.load... |
src/components/Dialog/index.js | d-amit/in-di-go | import React from 'react';
require('dialog-polyfill/dialog-polyfill.css');
class Dialog extends React.Component {
render() {
let { title, ...props } = this.props;
let className = props.className ? `mdl-dialog ${props.className}` : 'mdl-dialog';
return (
<dialog className={className}>
<h4 ... |
src/scenes/home/scholarship/preview/preview.js | tal87/operationcode_frontend | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from './preview.css';
class Preview extends Component {
snip = (description) => {
const str = `${description.substr(0, 300)}...`;
return str;
}
render() {
const { scholarship } = this.props;
return (
... |
src/server.js | birkir/react-starter-kit-rdb | import fs from 'fs';
import ejs from 'ejs';
import path from 'path';
import http from 'http';
import express from 'express';
import webpack from 'webpack';
import { r, listen } from 'rethinkdb-websocket-server';
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import { Router, RouterContext, ma... |
utils/typography.js | jkupcho/eri-blog | import ReactDOM from 'react-dom/server'
import React from 'react'
import Typography from 'typography'
import CodePlugin from 'typography-plugin-code'
import { MOBILE_MEDIA_QUERY } from 'typography-breakpoint-constants'
const options = {
baseFontSize: '18px',
baseLineHeight: 1.45,
scaleRatio: 2.25,
plugins: [ne... |
ajax/libs/react-instantsearch/4.1.0/Dom.js | jonobr1/cdnjs | /*! ReactInstantSearch 4.1.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define ===... |
src/components/ResourceShow.js | jordanwade/cyclo | import React, { Component } from 'react';
import base from '../base';
class ResourceShow extends Component {
constructor() {
super();
// getintial state
this.state = {
resources: {},
};
}
componentWillMount() {
this.ref = base.syncState(`resources/${this.props.params.resourceId}`
... |
source/FileUploadButton.js | halt-hammerzeit/react-responsive-ui | import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import FileUploadInput, { getAcceptFromExt } from './FileUploadInput'
export default class FileUploadButton extends React.Component {
static propTypes = {
component: PropTypes.elementType,
// On file(s) chosen.
on... |
src/streams/StreamIcon.js | nashvail/zulip-mobile | /* @flow */
import React from 'react';
import { IconMute, IconStream, IconPrivate } from '../common/Icons';
import type { StyleObj } from '../types';
type Props = {
color: string,
isPrivate?: boolean,
isMuted?: boolean,
size: number,
style?: StyleObj,
};
export default ({ color, style, isPrivate, isMuted, ... |
src/components/editor/editorOptions.js | auth0/webtask-widget | import isEqual from 'lodash.isequal';
import React from 'react';
import 'styles/editorOptions.less';
export default class A0AdvancedEditorOptions extends React.Component {
constructor(props) {
super(props);
this.state = {
mergeBody: props.mergeBody,
parseBody: pr... |
fields/types/code/CodeField.js | stosorio/keystone | import _ from 'underscore';
import CodeMirror from 'codemirror';
import Field from '../Field';
import React from 'react';
import { FormInput } from 'elemental';
/**
* TODO:
* - Remove dependency on underscore
*/
// See CodeMirror docs for API:
// http://codemirror.net/doc/manual.html
module.exports = Field.create... |
src/svg-icons/action/fingerprint.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFingerprint = (props) => (
<SvgIcon {...props}>
<path d="M17.81 4.47c-.08 0-.16-.02-.23-.06C15.66 3.42 14 3 12.01 3c-1.98 0-3.86.47-5.57 1.41-.24.13-.54.04-.68-.2-.13-.24-.04-.55.2-.68C7.82 2.52 9.86 2 12... |
docs/src/app/components/pages/components/Chip/ExampleArray.js | kasra-co/material-ui | import React from 'react';
import Chip from 'material-ui/Chip';
/**
* An example of rendering multiple Chips from an array of values. Deleting a chip removes it from the array.
* Note that since no `onTouchTap` property is defined, the Chip can be focused, but does not gain depth
* while clicked or touched.
*/
exp... |
app/javascript/mastodon/features/standalone/public_timeline/index.js | imas/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { expandPublicTimeline, expandCommunityTimeline } from 'mastodon/actions/timelines';
import Masonry from 'react-masonry-infinite';
import { List as Imm... |
docs/src/app/components/pages/components/Chip/ExampleSimple.js | kittyjumbalaya/material-components-web | import React from 'react';
import Avatar from 'material-ui/Avatar';
import Chip from 'material-ui/Chip';
import FontIcon from 'material-ui/FontIcon';
import SvgIconFace from 'material-ui/svg-icons/action/face';
import {blue300, indigo900} from 'material-ui/styles/colors';
const styles = {
chip: {
margin: 4,
},... |
fields/types/embedly/EmbedlyField.js | tony2cssc/keystone | import React from 'react';
import Field from '../Field';
import { FormField, FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'EmbedlyField',
// always defers to renderValue; there is no form UI for this field
renderField () {
return this.renderValue();
},
renderValue (path, label, ... |
app/graph/crosshairValuePointComponent.js | also/lead.js | import React from 'react';
import CursorPositionMixin from './cursorPositionMixin';
export default React.createClass({
mixins: [CursorPositionMixin],
propTypes: {
target: React.PropTypes.object.isRequired
},
contextTypes: {
params: React.PropTypes.object.isRequired,
yScale: React.PropTypes.func.i... |
src/text-field/test.js | twilson63/t63 | import React from 'react'
import test from 'tape'
import { shallow } from 'enzyme'
import TextField from './'
test('<TextField />', t => {
const wrapper = shallow(
<TextField name="Name" label={{ className: 'green' }} />
)
t.equals(wrapper.find('label').props().className, 'f6 b db mb2 green')
t.end()
})
t... |
src/components/RoomUserList/index.js | u-wave/web | import cx from 'clsx';
import React from 'react';
import PropTypes from 'prop-types';
import { useVirtual } from 'react-virtual';
import RoomUserRow from './Row';
import GuestsRow from './GuestsRow';
const {
useRef,
} = React;
function estimateSize() {
return 40;
}
function RoomUserList({ className, users, guest... |
Example/index.ios.js | starlight36/react-native-navigator-router | /**
* Sample React Native App
*/
import React from 'react';
import { AppRegistry } from 'react-native';
import App from './src/index';
AppRegistry.registerComponent('Example', () => App);
|
src/features/about/index.js | ByndyuSoft/ui.embryo | import React from 'react';
import styles from './index.scss';
export default () => <h1 className={styles.hello}>About</h1>;
|
server/sonar-web/src/main/js/apps/about/components/AboutLeakPeriod.js | Builders-SonarSource/sonarqube-bis | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
src/js/components/Fieldset.js | ScottMaclure/sotdl-chargen | import React from 'react'
const FieldSet = ({legend, content}) => (
<fieldset>
<legend>{legend}</legend>
{content}
</fieldset>
)
export default FieldSet
|
src/app/AppContainer.js | preeminence/react-redux-skeleton | import React from 'react';
import { Provider } from 'react-redux';
import Routes from './Routes';
import Layout from './components/Layout';
class App extends React.Component {
render() {
const store = this.props.store;
return (
<Provider store={store}>
<Layout history={this.props.history}>
... |
platform/viewer/src/context/UserManagerContext.js | OHIF/Viewers | import React from 'react';
const UserManagerContext = React.createContext();
export default UserManagerContext;
|
animations/TimedAnimation.js | evetstech/react-native-animated-ptr | import React from 'react'
import {
View,
Animated,
Image,
UIManager
} from 'react-native'
export default class TimedAnimation extends React.Component {
constructor(props) {
super(props);
this.state = {
animation: new Animated.ValueXY({
x: this.props.xValues.from,
y: this.props.y... |
tests/lib/rules/vars-on-top.js | voideanvalue/eslint | /**
* @fileoverview Tests for vars-on-top rule.
* @author Danny Fritz
* @author Gyandeep Singh
* @copyright 2014 Danny Fritz. All rights reserved.
* @copyright 2014 Gyandeep Singh. All rights reserved.
*/
"use strict";
//------------------------------------------------------------------------------
// Requiremen... |
src/plot/series/rect-series.js | Apercu/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
react-flux-mui/js/material-ui/src/svg-icons/action/store.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionStore = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z"/>
</SvgIcon>
);
ActionStore = pure(ActionStore);
ActionStore.displayName = ... |
test/regressions/site/src/tests/Checkbox/SimpleCheckbox.js | und3fined/material-ui | // @flow weak
import React from 'react';
import Checkbox from 'material-ui/Checkbox';
export default function SimpleCheckbox() {
return <Checkbox />;
}
|
app/containers/AppHeader/SubHeader/index.js | theterra/newsb | import React from 'react';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { Link } from 'react-router';
import Actions from '../actions';
import { selectFranchise, getFranchiseList, initialiseData} from '../../HomePage/actions';
import { franchiseList } from '../../H... |
src/components/Button/button.js | VitaliiK91/AlramRN | import React from 'react';
import {
TouchableOpacity,
View,
StyleSheet,
} from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
import PropTypes from 'prop-types';
const Button = props => (
<TouchableOpacity
style={[styles.mainContainer, props.style]}
onPress={props.onPress}
>
{props.i... |
packages/ringcentral-widgets-docs/src/app/pages/Components/RecentActivityPanel/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import { parse } from 'react-docgen';
import CodeExample from '../../../components/CodeExample';
import ComponentHeader from '../../../components/ComponentHeader';
import PropTypeDescription from '../../../components/PropTypeDescription';
import Demo from './Demo';
// eslint-disable-next-lin... |
src/ButtonInput.js | roadmanfong/react-bootstrap | import React from 'react';
import Button from './Button';
import FormGroup from './FormGroup';
import InputBase from './InputBase';
import childrenValueValidation from './utils/childrenValueInputValidation';
class ButtonInput extends InputBase {
renderFormGroup(children) {
let {bsStyle, value, ...other} = this.p... |
yarn-workspace/modules/js-react/src/AppComponent.js | gamerson/liferay-blade-samples | import React from 'react';
import ReactDOM from 'react-dom';
export default class extends React.Component {
render() {
return (
<div>
<div>
<span className="tag">Portlet Namespace:</span>
<span className="value">{this.props.portletNamespace}</span>
</div>
<div>
... |
src/containers/set-player.js | rosiene/growup-game |
import React from 'react';
import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
const style = {
marginTop: 50,
display: 'flex',
justifyContent: 'center'
};
const cardSt... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.