path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/utils/Row.js | Harrison1/several-levels | import React from 'react'
const Row = ({ children }) =>
<div className="row justify-content-sm-center">
{ children }
</div>
export default Row |
app/components/App.js | alihalabyah/fil | import _ from 'underscore';
import React from 'react';
import {connect} from 'react-redux';
import Header from 'components/Header';
import CodeEditor from 'components/CodeEditor';
import Console from 'components/Console';
import FileList from 'components/FileList'
import {openFile, saveFile} from 'actions/files';
imp... |
react-app/src/containers/ProfileContainer.js | floodfx/gma-village | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import AdminForm from '../components/AdminForm';
import GmaForm from '../components/GmaForm';
import ParentForm from '../components/ParentForm';
import LoadingIndicator from '../components/Loadin... |
modules/dreamview/frontend/src/components/Header/Selector.js | ycool/apollo | import React from 'react';
export default class Selector extends React.Component {
constructor(props) {
super(props);
this.state = {
name: props.name,
value: props.currentOption,
};
this.onChangeHandler = this.onChangeHandler.bind(this);
}
onChangeHandler(event) {
this.setState... |
tools/public-components.js | mengmenglv/react-bootstrap | import React from 'react';
import * as index from '../src/index';
let components = [];
Object.keys(index).forEach(function(item) {
if (index[item] instanceof React.Component.constructor) {
components.push(item);
}
});
export default components;
|
views/main.js | jqk6/black-screen | import React from 'react';
import _ from 'lodash';
import Rx from 'rx';
import ApplicationView from './compiled/src/views/ApplicationView.js';
var keys = {
goUp: event => (event.ctrlKey && event.keyCode === 80) || event.keyCode === 38,
goDown: event => (event.ctrlKey && event.keyCode === 78) || event.keyCode ... |
actor-apps/app-web/src/app/components/Login.react.js | it33/actor-platform | import _ from 'lodash';
import React from 'react';
import classNames from 'classnames';
import { Styles, RaisedButton, TextField } from 'material-ui';
import { AuthSteps } from 'constants/ActorAppConstants';
import Banner from 'components/common/Banner.react';
import LoginActionCreators from 'actions/LoginActionCre... |
src/layout/app.js | knledg/react-webpack-skeleton | import React from 'react';
import { withRouter } from 'react-router';
// Components
import { Sidebar, PageTop } from 'src/layout/components';
import { Notifications } from 'react-blur-admin';
// Lib
import eventBus from 'src/lib/event-bus';
class AppLayout extends React.Component {
static propTypes = {
router:... |
frontend/src/components/popup/WelcomeWarningPopUp.js | jirkae/BeerCheese | import React, { Component } from 'react';
import { Modal, ModalHeader, ModalFooter, Button } from 'reactstrap';
import localizedTexts from '../../text_localization/LocalizedStrings';
export default class WelcomeWarningPopUp extends Component {
state = {
isOpen: true
};
render() {
return (
<Modal i... |
src/common/lib/redux-fields/fields.js | xiankai/triple-triad-solver | /* @flow weak */
import R from 'ramda';
import React from 'react';
import invariant from 'invariant';
import { resetFields, setField } from './actions';
type Path = string | Array<string> | (props: Object) => Array<string>;
type Options = {
path: Path,
fields: Array<string>,
getInitialState?: (props: Object) =>... |
src/svg-icons/image/texture.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTexture = (props) => (
<SvgIcon {...props}>
<path d="M19.51 3.08L3.08 19.51c.09.34.27.65.51.9.25.24.56.42.9.51L20.93 4.49c-.19-.69-.73-1.23-1.42-1.41zM11.88 3L3 11.88v2.83L14.71 3h-2.83zM5 3c-1.1 0-2 .9-2 ... |
src/svg-icons/action/card-travel.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCardTravel = (props) => (
<SvgIcon {...props}>
<path d="M20 6h-3V4c0-1.11-.89-2-2-2H9c-1.11 0-2 .89-2 2v2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zM9 4h6v2H9V4zm11 15H... |
docs/app/Examples/collections/Message/Variations/MessageExampleNegative.js | koenvg/Semantic-UI-React | import React from 'react'
import { Message } from 'semantic-ui-react'
const MessageExampleNegative = () => (
<Message negative>
<Message.Header>We're sorry we can't apply that discount</Message.Header>
<p>That offer has expired</p>
</Message>
)
export default MessageExampleNegative
|
src/svg-icons/device/signal-cellular-connected-no-internet-3-bar.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularConnectedNoInternet3Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M17 22V7L2 22h15zm3-12v8h2v-8h-2zm0 12h2v-2h-2v2z"/>
</SvgIcon>
);
Devic... |
app/components/Task/Task.js | Jberivera/kanban-app | import React from 'react';
import styles from './Task.scss';
import classNames from 'classnames/bind';
import EditTask from '../EditTask/EditTask';
const css = classNames.bind(styles);
const TASKS_MARGINBOTTOM = 7;
class Task extends React.Component {
constructor (props) {
super(props);
this.mouseOutHandle... |
src/pages/Animation.js | marktani/react-native-express-1 | import React from 'react'
import markdown from 'markdown-in-js'
import markdownOptions from '../utils/MarkdownOptions'
import DefaultPage from './DefaultPage'
const content = markdown(markdownOptions)`
React Native provides two animation APIs out of the box: \`Animated\` and \`LayoutAnimation\`. \`Animated\` is used ... |
app/views/components/SubTimeline.js | mziemer21/wedding | import React from 'react';
export default class SubTimeline extends React.Component {
static propTypes = {
children: React.PropTypes.oneOfType([
React.PropTypes.arrayOf(React.PropTypes.node).isRequired,
React.PropTypes.node.isRequired
])
};
render() {
return (
<li className="timelin... |
app/components/DurationSlider/index.js | cerebral/cerebral-reference-app | import React from 'react';
import {Decorator as Cerebral} from 'cerebral-view-react';
import styles from './styles.css';
import icons from 'common/icons.css';
import classnames from 'classnames';
import currentScene from 'modules/course/computed/currentScene';
import currentAssignmentsSolvedCount from 'modules/course/c... |
src/routes/Measurements/components/nettests/HttpInvalidRequestLine.js | TheTorProject/ooni-wui | import React from 'react'
import { FormattedMessage } from 'react-intl'
export class HttpInvalidRequestLineDetails extends React.Component {
constructor (props) {
super(props)
this.state = { exchangesEnabled: false }
}
toggleExchanges () {
this.setState({ exchangesEnabled: !this.state.exchangesEnabl... |
admin/client/components/Popout/PopoutListHeading.js | Tangcuyu/keystone | import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var PopoutListHeading = React.createClass({
displayName: 'PopoutListHeading',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
},
render () {
const className = classnam... |
src/index.js | jamez14/jams-tweeter | // import React from 'react';
// import { render } from 'react-dom';
// import { App } from './App';
import React from 'react';
import { render } from 'react-dom';
import { Router, Route, IndexRoute, Link, IndexLink, browserHistory } from 'react-router';
import App from './App';
import Home from './components/Home';
i... |
docs/app/Examples/elements/Icon/Groups/IconExampleTwitterGroup.js | koenvg/Semantic-UI-React | import React from 'react'
import { Header, Icon } from 'semantic-ui-react'
const IconExampleTwitterGroup = () => (
<Header as='h2'>
<Icon.Group size='large'>
<Icon name='twitter' />
<Icon corner name='add' />
</Icon.Group>
Add on Twitter
</Header>
)
export default IconExampleTwitterGroup
|
src/components/FaucetTable/FaucetTable.js | transmute-industries/eth-faucet | import React from 'react'
import {
Table,
TableBody,
TableHeader,
TableHeaderColumn,
TableRow,
TableRowColumn
} from 'material-ui/Table'
import Dialog from 'material-ui/Dialog'
import FlatButton from 'material-ui/FlatButton'
class FaucetTable extends React.Component {
constructor (props) {
super(pro... |
assets/javascripts/kitten/components/structure/cards/reward-card/components/image.js | KissKissBankBank/kitten | import React from 'react'
import classNames from 'classnames'
export const Image = ({ className, ...props }) => (
<div
className={classNames('k-RewardCard__imageWrapper', className)}
{...props}
/>
)
|
src/components/stateful/NumberField.js | thomas-p-wilson/react-form | import React from 'react';
import BasicField from '../BasicField';
/**
* Produces an HTML input text element and allows the user to enter a number.
*/
export default class NumberField extends BasicField {
static displayName = 'NumberField';
static propTypes = Object.assign({}, BasicField.propTypes, {
... |
ReactNativeLIFE/Pages/JYMine.js | YotrolZ/React-Native-LIFE | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*
* 我的页面
*
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
ScrollView
} from 'react-native';
export default class Mine extends Component {
render() {
return (
<View s... |
generators/root/templates/client.js | stylesuxx/generator-react-webpack-redux | import React from 'react';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './stores';
const store = configureStore();
ReactDOM.render(
<AppContainer>
<Provider store={store}... |
actor-apps/app-web/src/app/components/JoinGroup.react.js | chieryw/actor-platform | import React from 'react';
import requireAuth from 'utils/require-auth';
import DialogActionCreators from 'actions/DialogActionCreators';
import JoinGroupActions from 'actions/JoinGroupActions';
import JoinGroupStore from 'stores/JoinGroupStore'; // eslint-disable-line
class JoinGroup extends React.Component {
st... |
src/lib/utils/scales-utils.js | jameskraus/react-vis | // Copyright (c) 2016 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, merge... |
frontend/src/components/Navigation/presenter.js | plusbeauxjours/nomadgram | import React from 'react';
import Ionicon from 'react-ionicons';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import styles from './styles.scss';
import NotificationList from 'components/NotificationList';
const Navigation = (
{
onSubmit,
value,
onInputChange,
seeingNo... |
src/components/source/homepage/SourcesHomepage.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { injectIntl, FormattedMessage, FormattedHTMLMessage } from 'react-intl';
import { push } from 'react-router-redux';
import { connect } from 'react-redux';
import Link from 'react-router/lib/Link';
import { Grid, Row, Col } from 'react-flexbox-grid/l... |
js/components/show.js | frequencyasia/website | import React from 'react';
import $ from 'jquery';
import fecha from 'fecha';
import i18next from 'i18next';
import Constants from './../constants';
import EpisodeCard from './episodeCard';
module.exports = React.createClass({
propTypes: {
slug: React.PropTypes.string.isRequired,
nowPlayingSlug: React.Prop... |
src/components/Root.js | PunxNotDead/takemybook-frontend | import React from 'react';
import { applyMiddleware, createStore } from 'redux';
import { Provider } from 'react-redux';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import createSagaMiddleware from 'redux-saga';
import Main from './Main';
import Register from './Register';
import reducers from ... |
WebClient/src/components/Button2.js | mfratczak/myfood-generator | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleEmphasis = () => (
<div>
<Button primary>Primary</Button>
<Button secondary>Secondary</Button>
<Button secondary>Secondary</Button>
</div>
)
export default ButtonExampleEmphasis
|
docs/app/Examples/addons/Radio/Variations/index.js | clemensw/stardust | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import { Message } from 'semantic-ui-react'
const RadioVariationsExamples = () => (
<ExampleSection title='Variations'>
<Componen... |
src/main.js | abkfenris/inferno-react | import React from 'react'
import ReactDOM from 'react-dom'
import Root from './containers/Root'
import configureStore from './redux/configureStore'
import { loadGeojson } from './redux/modules/geojson'
// Set initial state of store
const initialState = window.__INITIAL_STATE__
const store = configureStore(initialState... |
src/components/Post/Content/Content.js | hb-gatsby/gatsby-starter-lumen | // @flow strict
import React from 'react';
import styles from './Content.module.scss';
type Props = {
body: string,
title: string
};
const Content = ({ body, title }: Props) => (
<div className={styles['content']}>
<h1 className={styles['content__title']}>{title}</h1>
<div className={styles['content__bo... |
src/components/Discover/messages.js | transitlinks/web-app | import React from 'react';
import { defineMessages } from 'react-intl';
export default defineMessages({
'profile-link': {
id: 'account.profileLink',
defaultMessage: 'Profile',
description: 'Profile'
},
'links-link': {
id: 'account.linksLink',
defaultMessage: 'Links',
description: 'Links'
... |
client/src/Components/UserProfile/ClientEducationEdit.js | teamcrux/EmploymentOptions | import React from 'react';
import { Field, FieldArray, reduxForm } from 'redux-form';
import ClientEducationForm from './ClientEditForms/ClientEducationForm';
class ClientEducationEdit extends React.Component {
constructor(props){
super(props);
this.sendPatch = this.sendPatch.bind(this);
};
sendPatch(fo... |
project-base/src/client/client.js | ch-apptitude/goomi | import React from 'react';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import createStore from 'redux/createStore';
import { syncHistoryWithStore } from 'react-router-redux';
import { browserHistory } from 'react-router';
import { selectLocationState } from 'features/routing/sele... |
node_modules/react-bootstrap/es/SafeAnchor.js | soniacq/LearningReact | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
vertex_ui/src/components/ColorPicker/Chrome/ChromePointerCircle.js | zapcoop/vertex | import React from 'react';
import reactCSS from 'reactcss';
export const ChromePointerCircle = () => {
const styles = reactCSS({
default: {
picker: {
width: '12px',
height: '12px',
borderRadius: '6px',
boxShadow: 'inset 0 0 0 1px #fff',
transform: 'translate(-6px, -6... |
fields/types/money/MoneyField.js | lojack/keystone | import Field from '../Field';
import React from 'react';
import { FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'MoneyField',
valueChanged (event) {
var newValue = event.target.value.replace(/[^\d\s\,\.\$€£¥]/g, '');
if (newValue === this.props.value) return;
this.props.onChange(... |
Project 08 - FastestWriter/src/App.js | DCKT/30DaysofReactNative | import '../reactotron.config'
import React from 'react'
import { Provider } from 'react-redux'
import store from './store'
import { StackNavigator } from 'react-navigation'
import Home from './containers/Home'
import Game from './containers/Game'
import './utils/storage'
const Router = StackNavigator({
Home: { scr... |
resources/apps/frontend/src/pages/services/show.js | johndavedecano/PHPLaravelGymManagementSystem | import React from 'react';
import {
Card,
CardBody,
Form,
FormGroup,
Input,
Label,
Row,
Col,
} from 'reactstrap';
import {Link} from 'react-router-dom';
import {showService} from 'requests/services';
import Breadcrumbs from 'components/Breadcrumbs';
import Loader from 'components/Loader';
class Compo... |
src/svg-icons/hardware/desktop-mac.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareDesktopMac = (props) => (
<SvgIcon {...props}>
<path d="M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7l-2 3v1h8v-1l-2-3h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 12H3V4h18v10z"/>
</SvgIcon>
);
HardwareDesktopM... |
docs/src/app/components/pages/components/Card/Page.js | ruifortes/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import cardReadmeText from './README';
import cardExampleWithAvatarCode from '!r... |
src/svg-icons/image/iso.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageIso = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5.5 7.5h2v-2H9v2h2V9H9v2H7.5V9h-2V7.5zM19 19H5L19 5v14zm-2-2v-1.5h-5V17h5z"/>
... |
js/src/DappRequests/dappRequests.js | destenson/ethcore--parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any lat... |
ARKit.js | panter/react-native-arkit | //
// index.js
//
// Created by HippoAR on 7/9/17.
// Copyright © 2017 HippoAR. All rights reserved.
//
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import {
StyleSheet,
View,
Text,
NativeModules,
requireNativeComponent,
} from 'react-native';
import generateId from './c... |
src/components/Layout.js | holderdeord/hdo-blog | import React from 'react';
import PropTypes from 'prop-types';
import '../styles/hdo.scss';
import '../styles/syntax.scss'; // FIXME: Replace with remark thing
import Footer from './Footer';
import Header from './Header';
import siteMetadata from '../siteMetadata';
const Layout = ({ children, location }) => (
<div... |
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/actual.js | lauracurley/2016-08-ps-react | import React, { Component } from 'react';
class Foo extends Component {
render() {}
}
|
src/app/containers/Footer.js | GContaldi/node_chat | import React from 'react';
import { connect } from 'react-redux';
import { updateMessage, sendMessage } from '../actions';
const ENTER_KEY_CODE = 13;
const Footer = (props) => {
const isMessageEmpty = () => (props.message.trim() === '');
const handleClick = () => {
if (isMessageEmpty()) {
return;
}... |
fields/types/location/LocationColumn.js | frontyard/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
const SUB_FIELDS = ['street1', 'suburb', 'state', 'postcode', 'country'];
var LocationColumn = React.createClass({
displayName: 'LocationColumn',
propTypes: {
co... |
frontend/src/admin/branchManagement/adminsView/AdminListTable.js | rabblerouser/core | import React from 'react';
import { connect } from 'react-redux';
import { DeleteButton, EditButton } from '../../common';
import { SortedTable } from '../../common/tables';
import { editAdmin, adminRemoveRequested } from './actions';
import { getAdmins } from './reducers';
const columns = [
{ type: 'name', field: ... |
examples/fiber/debugger/src/Editor.js | niubaba63/react | import React, { Component } from 'react';
class Editor extends Component {
constructor(props) {
super(props);
this.state = {
code: props.code
};
}
render() {
return (
<div style={{
height: '100%',
width: '100%'
}}>
<textarea
value={this.state.c... |
src/components/Game.js | ryyppy/redux-word-gl | /* @flow */
import React from 'react';
import Board from './Board';
import Input from './Input';
export default class Game extends React.Component {
render() {
const {
board,
input,
score,
paused,
} = this.props;
return (
<div>
{ paused ? <div>PAUSED</div> : null ... |
react/mortgage/src/components/BaseFigures.js | webmaster444/webmaster444.github.io | import React from 'react';
import { connect } from 'react-redux';
import * as actions from '../ducks/mortgage';
export default connect(({ mortgage }) => ({ mortgage }))(
({ mortgage: { initial, years, rate }, className, dispatch }) => (
<div className={ className }>
<div>
<h2>Initial</h2>... |
src/parser/warrior/fury/modules/spells/MissedRampage.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import SPELLS from 'common/SPELLS';
import RESOURCE_TYPES from 'game/RESOURCE_TYPES';
import { SELECTED_PLAYER } from 'parser/core/EventFilter';
import SpellLink from 'common/SpellLink';
/* Example log... |
js/src/components/Controls/History/Component/index.js | understory-dev/react-draft-wysiwyg | /* @flow */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { getFirstIcon } from '../../../../utils/toolbar';
import Option from '../../../Option';
import { Dropdown, DropdownOption } from '../../../Dropdown';
import styles from './styles.css'... |
blueocean-material-icons/src/js/components/svg-icons/image/crop-7-5.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageCrop75 = (props) => (
<SvgIcon {...props}>
<path d="M19 7H5c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zm0 8H5V9h14v6z"/>
</SvgIcon>
);
ImageCrop75.displayName = 'ImageCrop75';
ImageCrop75.muiName = 'SvgIcon';
ex... |
app/containers/Root.dev.js | Heatequation/react-router-redux-todo | import PropTypes from 'prop-types';
import React from 'react';
import {Provider} from 'react-redux';
import {Route} from 'react-router-dom';
import {ConnectedRouter} from 'react-router-redux';
import App from '../components/App';
import DevTools from './DevTools';
export default function Root({store, history}) {
... |
client/scripts/components/admin/disclosure-filter-search/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
Lic... |
packages/mineral-ui-icons/src/IconAddToPhotos.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconAddToPhotos(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconPr... |
reactjs/budget/client/components/Calculator/TemperatureInput.js | Kevin-Huang-NZ/notes | import React, { Component } from 'react';
const scaleNames = {
c: 'Celsius',
f: 'Fahrenheit'
};
class TemperatureInput extends Component {
constructor(props) {
super(props);
this.handleChange = this.handleChange.bind(this);
}
handleChange(event) {
this.props.onCha... |
src/components/task.js | saiteja/SvgWithReact | import React from 'react';
export default class Task extends React.Component {
prepareCords() {
let coords = {
x: this.props.x,
y: this.props.y,
width: this.props.width,
height: this.props.height,
fill: this.props.fill
}
return coo... |
src/components/HomeLink.js | ataylorme/hazels-heritage-frontend | import React from 'react';
import {Link} from 'react-router';
class HomeLink extends React.Component {
render() {
if( '/' === this.props.current_uri ){
return null;
}
return (
<h2>
<span className="text">
<Link to={'/'}... |
app/domain/component/HomeGridItem.js | njxiaohan/TransPal | /**
* Copyright (c) 2017-present, Liu Jinyong
* All rights reserved.
*
* https://github.com/huanxsd/MeiTuan
*/
//import liraries
import React, { Component } from 'react';
import { View, Text, StyleSheet, TouchableOpacity, Image } from 'react-native';
import { Heading1, Heading2 } from 'domain/def/Text'
import scr... |
information/blendle-frontend-react-source/app/modules/item/components/ItemToSpeech/Controls/index.js | BramscoChill/BlendleParser | import React from 'react';
import { Slider } from '@blendle/lego';
import classNames from 'classnames';
import { padStart } from 'lodash';
import { number, bool, func } from 'prop-types';
import PlayIcon from 'components/icons/PlayIcon';
import PauseIcon from 'components/icons/PauseIcon';
import CSS from './style.scss'... |
imports/ui/components/MultiStepAuthor/MultiStepAuthor.js | jamiebones/Journal_Publication | /* eslint-disable */
import React from 'react';
import PropTypes from 'prop-types';
import { Row, Col, FormGroup, HelpBlock ,
ControlLabel, Button , Well , FormControl ,
Panel , Label , ButtonToolbar , ButtonGroup} from 'react-bootstrap';
import { Meteor } from 'meteor/meteor';
import { createContainer } from ... |
local-cli/templates/HelloNavigation/App.js | cdlewis/react-native | /**
* This is an example React Native app demonstrates ListViews, text input and
* navigation between a few screens.
* https://github.com/facebook/react-native
*/
import React, { Component } from 'react';
import { StackNavigator } from 'react-navigation';
import HomeScreenTabNavigator from './views/HomeScreenTabN... |
src/components/__SCAFFOLD__/__NAME__.js | albertfdp/react-podio-universal | import React from 'react';
if (__CLIENT__) {
require('./__NAME__.scss');
}
export default class __NAME__ extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="__NAME-PARAMCASE__">
<h1>Component __NAME__</h1>
</div>
);
}
}
__NAM... |
node_modules/@material-ui/core/esm/Badge/Badge.js | pcclarke/civ-techs | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import withStyles from '../styles/withStyles';
import { capitalize } from '../utils/helper... |
examples/auth-flow/app.js | malte-wessel/react-router | import React from 'react'
import { render } from 'react-dom'
import { browserHistory, Router, Route, Link } from 'react-router'
import auth from './auth'
const App = React.createClass({
getInitialState() {
return {
loggedIn: auth.loggedIn()
}
},
updateAuth(loggedIn) {
this.setState({
log... |
archimate-frontend/src/main/javascript/components/view/nodes/model_i/gap.js | zhuj/mentha-web-archimate | import React from 'react'
import { BaseRepresentationWidget } from '../_base'
export const TYPE='gap';
export class GapWidget extends BaseRepresentationWidget {
getClassName(node) { return 'a-node model_i gap'; }
}
|
docs/app/Examples/elements/Segment/Variations/SegmentExampleEmphasis.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExampleEmphasis = () => (
<div>
<Segment>
I'm here to tell you something, and you will probably read me first.
</Segment>
<Segment secondary>
I am pretty noticeable but you might check out other content before ... |
examples/passing-props-to-children/app.js | tylermcginnis/react-router | import React from 'react'
import { render } from 'react-dom'
import { browserHistory, Router, Route, Link, withRouter } from 'react-router'
import withExampleBasename from '../withExampleBasename'
import './app.css'
const App = withRouter(
React.createClass({
getInitialState() {
return {
tacos: ... |
frontend/jqwidgets/jqwidgets-react/react_jqxinput.js | liamray/nexl-js | /*
jQWidgets v5.7.2 (2018-Apr)
Copyright (c) 2011-2018 jQWidgets.
License: https://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxInput extends React.Component {
componentDidMount() {
let options = this.manageAt... |
packages/wix-style-react/src/Table/DataTable/docs/ExampleWithAnimatedRowDetails.js | wix/wix-style-react | import React from 'react';
import DataTable from '..';
import PropTypes from 'prop-types';
import './Example.scss';
const style = {
width: '966px',
};
const baseData = [
{ firstName: 'Meghan', lastName: 'Bishop' },
{ firstName: 'Sara', lastName: 'Porter' },
{ firstName: 'Deborah', lastName: 'Rhodes' },
{ fi... |
docs/app/Examples/elements/Step/Variations/Fluid.js | jamiehill/stardust | import React from 'react'
import { Grid, Step } from 'stardust'
const Fluid = () => (
<Grid columns={2}>
<Grid.Column>
<Step.Group fluid vertical>
<Step completed icon='truck' title='Shipping' description='Choose your shipping options' />
<Step active icon='dollar' title='Billing' descripti... |
examples/js/sort/multi-sort-table.js | AllenFang/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
let price = 2100;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
if (id % 5... |
frontend/src/components/dashboard/agencyDashboard/listOfConceptNotesTable.js | unicef/un-partner-portal | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import { TableCell } from 'material-ui/Table';
import Typography from 'material-ui/Typography';
import { loadApplicationsToScore } from '../../../reducers/application... |
src/svg-icons/editor/strikethrough-s.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorStrikethroughS = (props) => (
<SvgIcon {...props}>
<path d="M7.24 8.75c-.26-.48-.39-1.03-.39-1.67 0-.61.13-1.16.4-1.67.26-.5.63-.93 1.11-1.29.48-.35 1.05-.63 1.7-.83.66-.19 1.39-.29 2.18-.29.81 0 1.54.11 ... |
src/routes/dashboard/components/weather.js | caijinchun/hsweb-antd | import React from 'react'
import PropTypes from 'prop-types'
import styles from './weather.less'
function Weather ({ city, icon, dateTime, temperature, name }) {
return (<div className={styles.weather}>
<div className={styles.left}>
<div className={styles.icon} style={{
backgroundImage: `url(${icon... |
src/index.js | XatMassacrE/react-toggleLists | import React from 'react';
import ReactDOM from 'react-dom';
var App = require('./components/App');
require('./index.scss');
ReactDOM.render(
<App />, document.getElementById('app')
); |
app/javascript/mastodon/features/ui/index.js | musashino205/mastodon | import classNames from 'classnames';
import React from 'react';
import { HotKeys } from 'react-hotkeys';
import { defineMessages, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import { Redirect, withRouter } from 'react-router-dom';
import PropTypes from 'prop-types';
import NotificationsContai... |
server/sonar-web/src/main/js/apps/quality-profiles/details/ProfileRulesRow.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/svg-icons/editor/strikethrough-s.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorStrikethroughS = (props) => (
<SvgIcon {...props}>
<path d="M7.24 8.75c-.26-.48-.39-1.03-.39-1.67 0-.61.13-1.16.4-1.67.26-.5.63-.93 1.11-1.29.48-.35 1.05-.63 1.7-.83.66-.19 1.39-.29 2.18-.29.81 0 1.54.11 ... |
app/containers/App.js | wilomgfx/code-push-gui | // @flow
import React, { Component } from 'react';
import type { Children } from 'react';
export default class App extends Component {
props: {
children: Children
};
render() {
return (
<div>
{this.props.children}
</div>
);
}
}
|
packages/cp-frontend/src/components/services/quick-actions.js | yldio/copilot | import React from 'react';
import PropTypes from 'prop-types';
import {
Tooltip,
TooltipButton,
TooltipDivider,
TooltipList
} from 'joyent-ui-toolkit';
const ServicesQuickActions = ({
show,
position,
service,
onBlur = () => {},
onRestartClick = () => {},
onStopClick = () => {},
onStartClick = () ... |
src/style/WebStyles.js | tuckerconnelly/carbon-ui | /* eslint-disable react/no-danger */
import React from 'react'
// Kinda risky. Urls grabbed directly from Google Fonts.
// Needed to do this to rename the font-family
// to match React Native
// http://stackoverflow.com/questions/25011533/google-font-api-uses-browser-detection-how-to-get-all-font-variations-for-font
... |
src/app/app.js | lolamastro/beerswap | import React from 'react';
import {render} from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import {Router, Route, hashHistory} from 'react-router';
import createStore from './store/createStore';
import { Provider } from 'react-redux';
import CreateSwap from './CreateSwap';
import InviteUse... |
internals/templates/containers/LanguageProvider/index.js | haithemT/app-test | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
app/views/assignment.js | thaiinhk/VocabReactNative | import React from 'react';
import {
Platform,
StyleSheet,
View,
TouchableOpacity,
Text,
} from 'react-native';
// 3rd party libraries
import _ from 'underscore';
import * as Animatable from 'react-native-animatable';
import { Actions } from 'react-native-router-flux';
import { AdMobInterstitial } from 'react... |
client/app/components/Social/index.js | KamillaKhabibrakhmanova/postcardsforchange-api | import React from 'react';
import components from './components';
import Img from '../Img';
import styled from 'styled-components';
const SocialBox = styled.span`
background-colour: #ffffff;
margin: 0 ${props => props.small ? 0.5 : 1}rem;
@media all and (max-width: 2000px) { /* screen size until 1200px */
.s... |
app/components/views/members/testModal.js | AidanNichol/stedwards-booking-system | import React from 'react';
import { Button, Modal, Tooltip, Popover, OverlayTrigger} from 'react-bootstrap';
const testModal = React.createClass({
getInitialState() {
return { showModal: false };
},
close() {
this.setState({ showModal: false });
},
open() {
this.setState({ showModal: true });
... |
src/Parser/EnhancementShaman/Modules/Main/CastEfficiency.js | Yuyz0112/WoWAnalyzer | import React from 'react';
import ITEMS from 'common/ITEMS';
import SPELLS from 'common/SPELLS';
import CoreCastEfficiency from 'Parser/Core/Modules/CastEfficiency';
import getCastEfficiency from 'Parser/Core/getCastEfficiency';
import Tab from 'Main/Tab';
import CastEfficiencyComponent from 'Main/CastEfficiency';
... |
app/client/src/routes/manageActionSettings/index.js | uprisecampaigns/uprise-app | import React from 'react';
import ManageActionSettings from 'scenes/ManageActionSettings';
import Layout from 'components/Layout';
import organizeActionPaths from 'routes/organizeActionPaths';
export default organizeActionPaths({
path: '/organize/:campaignSlug/opportunity/:actionSlug/settings',
component: (campa... |
src/components/Notification.js | hannupekka/splitthebill | // @flow
import styles from 'styles/components/Notification';
import React from 'react';
import { Map } from 'immutable';
import { pure } from 'recompose';
import type { Component } from 'recompose';
import CSSModules from 'react-css-modules';
type Props = {
data: Map<string, NotificationOptionsType>,
onDismiss: (... |
src/components/AboutPage.js | rafurr/react-material-ui-components | import React from 'react';
import {Link} from 'react-router';
import '../styles/about-page.css';
// Since this component is simple and static, there's no parent container for it.
const AboutPage = () => {
return (
<div>
<h2 className="alt-header">About</h2>
<p>
A showcase of new React, Redux... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.