path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/toolbar.js
lukasmartinelli/postgis-editor
import React from 'react'; import ReactDOM from 'react-dom'; import Modal from 'react-modal'; import * as _ from 'lodash'; import Configstore from 'configstore'; import pkg from '../package.json'; const conf = new Configstore(pkg.name); export class Toolbar extends React.Component { constructor(props) { s...
app/src/components/ControlPanel/index.js
civa86/electrophone
import React, { Component } from 'react'; import $ from 'jquery'; import Knob from './Knob'; import Select from './Select' class ControlPanel extends Component { getControlProperty (module, prop) { const { updateModule } = this.props; if (prop.type === 'number') { return <Knob propert...
react-flux-mui/js/material-ui/src/svg-icons/social/cake.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialCake = (props) => ( <SvgIcon {...props}> <path d="M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2zm4.6 9.99l-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l...
angular/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
naxtyn45/naxtyn45.github.io
import React from 'react'; // 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'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/shared/components/form/formEmail/formEmail.js
hollomancer/operationcode_frontend
import React, { Component } from 'react'; import FormInput from '../formInput/formInput'; class FormEmail extends Component { render() { const validEmailRegex = /(^[^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})/; return ( <FormInput {...this.props} validationRegex={validEmailRegex} vali...
src/components/flows/secondPillar/confirmMandate/ConfirmMandate.js
TulevaEE/onboarding-client
import React from 'react'; import { PropTypes as Types } from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { Link, Redirect } from 'react-router-dom'; import { FormattedMessage } from 'react-intl'; import { Loader, AuthenticationLoader, ErrorMessage, utils } f...
test/integration/css-fixtures/transition-react/pages/other.js
JeromeFitz/next.js
import React from 'react' import Link from 'next/link' import css from './other.module.css' export default class Other extends React.Component { ref = React.createRef() constructor(props) { super(props) this.state = { color: null, } } componentDidMount() { this.setState({ color: w...
react/features/video-menu/components/web/MuteButton.js
gpolitis/jitsi-meet
/* @flow */ import React from 'react'; import ContextMenuItem from '../../../base/components/context-menu/ContextMenuItem'; import { translate } from '../../../base/i18n'; import { IconMicrophoneEmptySlash } from '../../../base/icons'; import { connect } from '../../../base/redux'; import AbstractMuteButton, { _m...
packages/material-ui-icons/src/Battery80.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Battery80 = 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.33V9h10V5.33z" /><path d="M7 9v11.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34...
examples/todomvc/containers/TodoApp.js
quicksnap/redux
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { Connector } from 'redux/react'; import Header from '../components/Header'; import MainSection from '../components/MainSection'; import * as TodoActions from '../actions/TodoActions'; export default class TodoApp extends Comp...
src/admin_components/ImportRaceForm.js
chiefwhitecloud/running-man-frontend
import React from 'react'; export default class ImportRaceForm extends React.Component { constructor(props) { super(props); this.handleSubmit = this.handleSubmit.bind(this); this.handleInputChange = this.handleInputChange.bind(this); this.state = { url: '', error: false, }; } han...
fixtures/packaging/systemjs-builder/prod/input.js
yangshun/react
import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( React.createElement('h1', null, 'Hello World!'), document.getElementById('container') );
fields/types/number/NumberField.js
lastjune/keystone
import React from 'react'; import Field from '../Field'; import { FormInput } from 'elemental'; module.exports = Field.create({ displayName: 'NumberField', valueChanged (event) { var newValue = event.target.value.replace(/[^-\d\.]/g, ''); if (newValue === this.props.value) return; this.props.onChange({ pa...
app/components/Home/DiscussList.js
Caraxiong/react-demo
import React from 'react' import PropTypes from 'prop-types' import Discuss from './Discuss' import AddComment from '../../containers/Home/AddComment' import './discuss.scss' const DiscussList = ( { comments } ) => ( <div className="discuss-container"> <div> {comments.map(comment => <Discus...
examples/03 Nesting/Drag Sources/index.js
ntdb/react-dnd
import React from 'react'; import Container from './Container'; export default class NestingDragSources { render() { return ( <div> <p> <b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/03%20Nesting/Drag%20Sources'>Browse the Source</a></b> </p> <p> ...
app/javascript/mastodon/features/notifications/components/notification.js
rainyday/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage, defineMessages } from 'react-intl'; import { HotKeys } from 'react-hotkeys'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { me ...
src/svg-icons/action/autorenew.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAutorenew = (props) => ( <SvgIcon {...props}> <path d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 ...
src/exseed.contrib.user/flux/routes.js
exseed/exseed-boilerplate
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import settings from '../settings'; import AppLayout from './views/layouts/AppLayout'; import RegisterPage from './views/pages/RegisterPage'; import LoginPage from './views/pages/LoginPage'; import LogoutPage from './views/pages/LogoutPage'; ...
src/bundles/Advert/containers/AdvertContainer/index.js
CharlesMangwa/Chloe
/* @flow */ import React from 'react' import { Image, StatusBar, Text, TouchableWithoutFeedback, View } from 'react-native' import { Actions } from 'react-native-router-flux' import { getPeriodColor } from '@helpers/periods' import Icon from '@components/Icon' import styles from './styles' type Props = { current: O...
src/containers/search_bar.js
ionware/weather-react-redux-app
import React, { Component } from 'react'; import { fetchWeather } from '../actions/index'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; class SearchBar extends Component { constructor(props){ super(props); this.state = { term : "" } ...
examples/with-react-i18next/pages/page2.js
arunoda/next.js
import React from 'react' import Link from 'next/link' import { translate } from 'react-i18next' import i18n from '../i18n' import PureComponent from '../components/PureComponent' import ExtendedComponent from '../components/ExtendedComponent' function Page2 ({ t, initialI18nStore }) { return ( <div> {t('...
src/routes/login/index.js
luznlun/kkRoom
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Login from './Login'; c...
src/components/SidebarContent/SidebarContent.js
expdevelop/d812
import React from 'react' import { classNames } from 'helpers' import s from './SidebarContent.sass' const SidebarContent = ({children, className, ...rest}) => { return ( <div className={classNames(s.content, className)} {...rest} > {children} </div> ) }; export default SidebarContent;
examples-react/app/components/home.js
zcoding/dashboard
import React from 'react' export default class Home extends React.Component { constructor(props) { super(props) } render() { return ( <h1>我是首页</h1> ) } }
src/svg-icons/content/reply.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentReply = (props) => ( <SvgIcon {...props}> <path d="M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"/> </SvgIcon> ); ContentReply = pure(ContentReply); ContentReply.displayName = 'ContentReply'...
course/example_2/src/layouts/PageLayout/PageLayout.js
FMCalisto/redux-get-started
import React from 'react' import { IndexLink, Link } from 'react-router' import PropTypes from 'prop-types' import './PageLayout.scss' export const PageLayout = ({ children }) => ( <div className='container text-center'> <h1>React Redux Starter Kit</h1> <IndexLink to='/' activeClassName='page-layout__nav-ite...
stories/Modal.stories.js
LIQIDTechnology/liqid-react-components
import React from 'react'; import Modal from '../src/components/Modal'; import { storiesOf } from '@storybook/react'; class ToggleModal extends React.Component { constructor(props) { super(props); this.openModal = this.openModal.bind(this); this.closeModal = this.closeModal.bind(this); ...
wedding_site/frontend/RSVP.js
JeffBain/wedding-website
import React from 'react'; import Paper from 'material-ui/Paper'; import TextField from 'material-ui/TextField'; import { RadioButtonGroup, RadioButton } from 'material-ui/RadioButton' import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; import { Toolbar, ToolbarGroup } ...
src/icons/OpenInNewIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class OpenInNewIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M38 38H10V10h14V6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V24h-4v14zM28 6v4h7.17L...
src/js/components/input/input_file.js
rafaelfbs/realizejs
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import PropTypes from '../../prop_types'; import $ from 'jquery'; import i18n from '../../i18n'; import { autobind, mixin } from '../../utils/decorators'; import InputBase from './input_base'; import { CssClassMixin } from '../../mixins'; @...
src/components/posts_index.js
jameswatkins77/React-Blogger-App
import React, { Component } from 'react'; import { connect } from 'react-redux'; // import { bindActionCreators } from 'redux'; import { fetchPosts } from '../actions/index'; import { Link } from 'react-router'; class PostsIndex extends Component { componentWillMount(){ this.props.fetchPosts(); } ...
app/renderInBrowser.js
theseushu/funong-web
import React from 'react'; import ReactDOM from 'react-dom'; import { match, applyRouterMiddleware, Router } from 'react-router'; import { useScroll } from 'react-router-scroll'; import AppRoot from 'containers/AppRoot'; import FullScreenGallery from 'modules/fullScreenGallery'; import MapDialog from 'modules/mapDialog...
tools/public-components.js
Cellule/react-bootstrap
import React from 'react'; import 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;
todo-iflux-es6/assets/js/components/header.react.js
hufeng/todomvc
import React from 'react'; import PureComponent from './pure-component'; import {INPUT_CHANGE, TODO_SAVE} from '../const'; import {msg} from 'iflux'; /** * 封装header */ export default class Header extends PureComponent { render() { console.log('header reader....'); return ( <header id="header"> ...
example/Button.js
yangshun/react-storybook-addon-chapters
import React from 'react'; import PropTypes from 'prop-types'; const styles = { color: '#fff', cursor: 'pointer', backgroundColor: '#33c066', border: 'none', borderRadius: 5, fontSize: 14, padding: '20px 30px', }; const propTypes = { label: PropTypes.string, disabled: PropTypes.bool, onClick: Prop...
src/components/ResolveEventDialog.js
KozlovDmitriy/Pos.Hierarchy.Net
import React from 'react' import PropTypes from 'prop-types' import Slide from '@material-ui/core/Slide' import Dialog from '@material-ui/core/Dialog' import DialogActions from '@material-ui/core/DialogActions' import DialogContent from '@material-ui/core/DialogContent' import DialogContentText from '@material-ui/core/...
src/scenes/friends.js
Andrey11/golfmanager
'use strict'; import React, { Component } from 'react'; import { AppRegistry, ActivityIndicator, Text, View, ScrollView, Image, InteractionManager, Picker, TouchableHighlight } from 'react-native'; import { FriendStatusTypes, FriendActionTypes } from '../utilities/const'; import FriendItem from '../...
client/component/redirect-edit/warning.js
johngodley/redirection
/** * External dependencies */ import React from 'react'; import { translate as __ } from 'i18n-calypso'; import * as parseUrl from 'url'; /** * Internal dependencies */ import { ExternalLink } from 'wp-plugin-components'; import TableRow from './table-row'; export const isRegex = ( text ) => { if ( text.match...
src/svg-icons/av/featured-video.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFeaturedVideo = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 9H3V5h9v7z"/> </SvgIcon> ); AvFeaturedVideo = pure(AvFeaturedVideo)...
app/static/src/diagnostic/TestTypeResultForm_modules/MetalsInOilTestForm.js
SnowBeaver/Vision
import React from 'react'; import FormControl from 'react-bootstrap/lib/FormControl'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import ControlLabel from 'react-bootstrap/lib/ControlLabel'; import Button from 'react-bootstrap/lib/Button'; import Checkbox from 'react-bootstrap/lib/Checkbox'; import Panel fro...
app/components/PromptCourse.js
paladinze/testSemantic
import React from 'react' var PropTypes = React.PropTypes import {Container, Button, Form, Input} from 'semantic-ui-react' function PromptCourse(props) { return ( <Container> <h1>{props.header}</h1> <Form> <Form.Field inline> <label>github username</label> <Input ...
src/containers/DropZone.js
BrisklyPapers/react
import React from 'react'; import Radium from 'radium'; import FileDrop from '../components/FileDrop'; import InputTag from '../components/InputTag'; import RaisedButton from 'material-ui/RaisedButton'; import LinearProgress from 'material-ui/LinearProgress'; import Snackbar from 'material-ui/Snackbar'; import PropType...
src/components/SoundcloudPlayer/SoundcloudPlayer.js
kevinchau321/TReactr
import React from 'react'; import ReactPlayer from 'react-player'; // import Wavesurfer from 'react-wavesurfer'; // import WaveSurfer from 'wavesurfer.js'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import PropTypes from 'prop-types'; import Player from '../Player'; import s from './SoundcloudPlay...
packages/giu-examples/pages/material.js
guigrpa/giu
/* eslint-disable no-console, no-alert, max-len */ /* eslint-disable react/prop-types, react/no-multi-comp, react/jsx-no-bind, react/jsx-boolean-value */ /* eslint-disable react/prefer-stateless-function, react/jsx-no-target-blank */ import React from 'react'; import Head from 'next/head'; import moment from 'moment'; ...
containers/ReportsPage.js
hustlzp/react-redux-example
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { updateQuestion, deleteQuestion as _deleteQuestion } from '../actions/question' import { fetchReportedQuestions } from '../actions/reportedQuestions' import Pagination from '../components/public/Pagination...
src/icons/IosCloseEmpty.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosCloseEmpty extends React.Component { render() { if(this.props.bare) { return <g> <style type="text/css"> .st0{fill:#010101;} </style> <polygon class="st0" points="340.2,160 255.8,244.3 171.8,160.4 160,1...
src/svg-icons/editor/format-list-bulleted.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatListBulleted = (props) => ( <SvgIcon {...props}> <path d="M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 ...
frontend/src/views/LogView.js
astranis/starlog
import React, { Component } from 'react'; import { fetchAPI, formatDate } from '../Util.js'; import io from 'socket.io-client'; import ReactDOM from 'react-dom'; import InfiniteScroll from 'react-infinite-scroller'; // Max number of logs to display at once. const LOG_LIMIT = 10000; const socket = io('/', { autoConn...
docs/app/Examples/modules/Dropdown/Usage/index.js
mohammed88/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const DropdownUsageExamples = () => ( <ExampleSection title='Usage'> <ComponentExample title='Open On Focus' descript...
src/popover/SKPopover.js
ShaneKing/sk-antd
import {Popover} from 'antd'; import PropTypes from 'prop-types'; import React from 'react'; import {Mesgs, SK} from 'sk-js'; import AntdComp from '../AntdComp'; import CommonTip from '../tooltip/CommonTip'; Popover.defaultProps = SK.extends(true, {}, {}, CommonTip.defaultProps, Popover.defaultProps, {}); Popover.prop...
env/src/js/app.js
aterrae/abimis-webkit
import 'whatwg-fetch'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import createHistory from 'history/createBrowserHistory'; import configureStore from './store/configureStore'; import { ConnectedRouter } from 'react-router-redux'; import getRoutes from './routes...
src/containers/posts_new.js
JonnyPickard/blog-app-react
import React, { Component } from 'react'; import { Field, reduxForm } from 'redux-form'; import { Link } from 'react-router-dom'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createPost } from '../actions'; const styles = { alertStyle: { paddingTop: 10, paddingBottom: 1...
app/javascript/mastodon/containers/compose_container.js
mosaxiv/mastodon
import React from 'react'; import { Provider } from 'react-redux'; import PropTypes from 'prop-types'; import configureStore from '../store/configureStore'; import { hydrateStore } from '../actions/store'; import { IntlProvider, addLocaleData } from 'react-intl'; import { getLocale } from '../locales'; import Compose f...
app/javascript/mastodon/features/notifications/components/column_settings.js
haleyashleypraesent/ProjectPrionosuchus
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import ColumnCollapsable from '../../../components/column_collapsable'; import ClearColumnButton from './clear_column_button'; import SettingToggle fr...
src/code/app.js
concord-consortium/geniblocks
/* global firebase */ import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { Router, Route, useRouterHistory } from 'react-router'; import { createHashHistory } from 'history'; impor...
src/pages/About.js
lottebijlsma/lottebijlsma.github.io
// @flow import React from 'react'; import './about.css'; type TProps = { data: { contentfulPage: { images: Array<{ file: { url: string, } }> } } } const AboutPage = ({ data: { contentfulPage: page } }: TProps) => ( <div className='about'> <section> <div ...
packages/react-router-website/components/ExampleRouter.js
rafrex/react-router
import React from 'react' const ExampleRouter = ({ children }) => ( children ? React.Children.only(children) : null ) export default ExampleRouter
examples/with-zeit-fetch/pages/index.js
BlancheXu/test
import React from 'react' import Link from 'next/link' import fetch from '../fetch' function Index (props) { return ( <div> <p>Next.js has {props.stars} ⭐️</p> <Link href='/preact'> <a>How about preact?</a> </Link> </div> ) } Index.getInitialProps = async () => { const res = aw...
src/components/foodTab.js
apurvamaloo/ZoloAssignment
import React from 'react'; import { Tabs, Tab } from 'material-ui/Tabs'; import Slider from 'material-ui/Slider'; const styles = { headline: { fontSize: 24, paddingTop: 16, marginBottom: 12, fontWeight: 400, }, }; const FoodTabs = (props) => ( <Tabs> <Tab label="w...
src/svg-icons/hardware/laptop-chromebook.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareLaptopChromebook = (props) => ( <SvgIcon {...props}> <path d="M22 18V3H2v15H0v2h24v-2h-2zm-8 0h-4v-1h4v1zm6-3H4V5h16v10z"/> </SvgIcon> ); HardwareLaptopChromebook = pure(HardwareLaptopChromebook); Har...
src/components/UsageStatistic.js
ayastreb/bandwidth-hero
import React from 'react' import { Segment, Statistic } from 'semantic-ui-react' import prettyBytes from 'pretty-bytes' export default ({ filesProcessed = 0, bytesProcessed = 0, bytesSaved = 0 }) => { const dataSavedPercentage = () => { if (bytesProcessed === 0) return `0%` const percentage = Math.round(byte...
src/components/video_list_item.js
tanimmahmud/React_youtube_search
import React from 'react'; const VideoListItem = (props) => { const video = props.video; const image = video.snippet.thumbnails.default.url; const title = video.snippet.title; console.log(video); return( <li className="list-group-item"> <div className="video-list media"> <div className=...
src/components/antd/date-picker/createPicker.js
hyd378008136/olymComponents
import React from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import MonthCalendar from 'rc-calendar/lib/MonthCalendar'; import RcDatePicker from 'rc-calendar/lib/Picker'; import classNames from 'classnames'; import omit from 'omit.js'; import Icon from '../icon'; import { getLocaleCode } ...
src/Container.js
gordon2012/portfolio
import React from 'react'; const Container = props => ( <div style={{ margin: '0 auto', maxWidth: props.w }}>{props.children}</div> ); export default Container;
app/index.js
leapset/codeship-easy
import React from 'react'; import ReactDOM from 'react-dom'; // Components import Banner from './components/Banner'; // Render to the #app element ReactDOM.render( <Banner message="HI, I'M A FULL STACK ENGINEER" />, document.getElementById('app') );
src/components/video_list.js
vishalpandey2192/React
import React from 'react'; import VideoListItem from './video_list_item'; const VideoList = (props) =>{ const VideoItems = props.videos.map((video) => { return (<VideoListItem onVideoSelect = {props.onVideoSelect} key={video.etag} video={video} />); }); ...
app-admin/src/index.js
IoanAlexandru/React-Redux-with-Hot-Loading-and-tcomb-forms
import React from 'react' import {Router, Route, IndexRoute} from 'react-router' import 'normalize.css/normalize.css' import 'bootstrap/dist/css/bootstrap.css' import 'bootstrap/dist/css/bootstrap-theme.css' import Navbar from './Navbar' import Persons from './Persons' import './main.css' React.render(<Router> ...
src/components/Main/ChatMessage.js
neyko5/BalistosNative
import React from 'react'; import PropTypes from 'prop-types'; import { View, Text } from 'react-native'; const ChatMessage = props => ( <View> <Text>{props.message.user.username}: {props.message.message}</Text> </View> ); ChatMessage.propTypes = { username: PropTypes.string, message: PropTypes.shape({ ...
src/component/dashboard-container/index.js
Spwahle/Narcan-Now-Frontend
import React from 'react'; import {connect} from 'react-redux'; import './_dashboard-container.scss'; import * as utils from '../../lib/utils'; import {profileFetchRequest} from '../../action/profile-actions'; import {photoCreateRequest, photosFetchRequest} from '../../action/photo-actions'; import MapWithRoute from '....
examples/js/column/column-align-table.js
prajapati-parth/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; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
docs/src/app/components/pages/discover-more/RelatedProjects.js
owencm/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import relatedProjectsText from './related-projects.md'; const RelatedProjects = () => ( <div> <Title render={(previousTitle) => `Related Projects - ${previousTitle}`} /> <MarkdownEleme...
src/components/containers/dashboard-container.js
mberneti/ReactAdmin
import React from 'react'; import { connect } from 'react-redux'; import Dashboard from '../views/dashboard'; class DashboardContainer extends React.Component { render() { return ( <div> <Dashboard /> </div> ); } }; const mapStateToProps = store => { return store.loginState; }; exp...
src/svg-icons/hardware/scanner.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareScanner = (props) => ( <SvgIcon {...props}> <path d="M19.8 10.7L4.2 5l-.7 1.9L17.6 12H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-5.5c0-.8-.5-1.6-1.2-1.8zM7 17H5v-2h2v2zm12 0H9v-2h10v2z"/> </...
webapp-src/src/Hutch/ModalManageSafe.js
babelouest/hutch
import React, { Component } from 'react'; import i18next from 'i18next'; import { decodeProtectedHeader, jwtDecrypt, importJWK } from 'jose-browser-runtime'; import ManageExportData from './ManageExportData'; import JwkInput from './JwkInput'; function getUnlockedCoinList(props) { if (props.safeContent && props.s...
app/javascript/mastodon/features/keyboard_shortcuts/index.js
ambition-vietnam/mastodon
import React from 'react'; import Column from '../ui/components/column'; import ColumnBackButtonSlim from '../../components/column_back_button_slim'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-co...
src/basic/Footer.js
chaitanya0bhagvan/NativeBase
import React, { Component } from 'react'; import { View, ViewPropTypes } from 'react-native'; import _ from 'lodash'; import { connectStyle } from 'native-base-shoutem-theme'; import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; class Footer extends Component { render() { return ( <View ref=...
src/components/UI/Sticky/Sticky.js
dopry/netlify-cms
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import classnames from 'classnames'; import { partial, without } from 'lodash'; import styles from './Sticky.css'; /** * Sticky is a collection of three components meant to facilitate "sticky" UI * behavior for nested components. It uses R...
node_modules/react-bootstrap/es/DropdownToggle.js
nikhil-ahuja/Express-React
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 ...
react/dashboard_example/src/routes/dashboardPages/morrisjsCharts/index.js
webmaster444/webmaster444.github.io
import React from 'react'; import MorrisjsCharts from './MorrisjsCharts'; export default { path: '/morrisjscharts', action() { return <MorrisjsCharts />; }, };
front/bookings/components/form/participantsForm.js
RalphSleigh/bookings
import React from 'react' import Moment from 'moment' import attendance from '../../../attendance' import {ParticipantWidget} from "../../../attendance/presets"; import update from 'immutability-helper'; import DateTimePicker from 'react-widgets/lib/DateTimePicker' import momentLocalizer from 'react-widgets-moment' ...
app/app.js
cmsbl/cmsbl
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import 'babel-polyfill'; /* eslint-disable import/no-unresolved import/extensions */ // Load the manifest.json file and the .htaccess file import '!file?name=[name].[ext]!./manifest.json'; import 'file?name=[name].[...
templates/rubix/rubix-bootstrap/src/BNavDropdown.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import classNames from 'classnames'; import React from 'react'; import Dropdown from './Dropdown'; import splitComponentProps from 'react-bootstrap/lib/utils/splitComponentProps'; const propTypes = { ...Dropdown.propTypes, // Toggle props. title: React.PropTypes.node.isRequired, noCaret: React.PropTypes.bool...
lib/components/tab.js
AlmirKadric/hyperterm
import React from 'react'; import Component from '../component'; export default class Tab extends Component { constructor() { super(); this.handleHover = this.handleHover.bind(this); this.handleBlur = this.handleBlur.bind(this); this.handleClick = this.handleClick.bind(this); this.state = { ...
src/components/Contact.js
galaxyfeeder/sschat-client
import React from 'react'; import './Contact.css'; import EditContact from '../modals/EditContact'; class Contact extends React.Component { constructor (props) { super(props); this.onclick = this.onclick.bind(this); this.onEditClick = this.onEditClick.bind(this); this.onEditContact ...
app/javascript/mastodon/components/avatar.js
musashino205/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class Avatar extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, size: PropType...
src/encoded/static/components/graph.js
ENCODE-DCC/encoded
import React from 'react'; import PropTypes from 'prop-types'; import _ from 'underscore'; import { svgIcon } from '../libs/svg-icons'; import { Modal, ModalHeader, ModalBody, ModalFooter } from '../libs/ui/modal'; import { requestFiles } from './objectutils'; import Status, { sessionToAccessLevel, getObjectStatuses } ...
Console/app/node_modules/antd/es/icon/index.js
RisenEsports/RisenEsports.github.io
import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import React from 'react'; import classNames from 'classnames'; import omit from 'omit.js'; var Icon = function Icon(props) { var type = props.type, _props$className = props.className, ...
src/svg-icons/action/info.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionInfo = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/> </SvgIcon> ); ActionInfo = pure(ActionInfo); ActionI...
src/components/Feedback/Feedback.js
ycjonlin/voca-toca
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Feedback.less'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback { render() { return ( <div className="Feedback"> <div className="Feedb...
examples/official-storybook/stories/addon-links/link.stories.js
kadirahq/react-storybook
import React from 'react'; import LinkTo from '@storybook/addon-links/react'; export default { title: 'Addons/Links/Link', }; export const First = () => <LinkTo story="Second">Go to Second</LinkTo>; export const Second = () => <LinkTo story="First">Go to First</LinkTo>;
app/javascript/mastodon/containers/account_container.js
rekif/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { makeGetAccount } from '../selectors'; import Account from '../components/account'; import { followAccount, unfollowAccount, blockAccount, unblockAccount, muteAc...
components/content.js
sgmap/inspire
import React from 'react' import PropTypes from 'prop-types' const Content = ({children, clouds}) => ( <main className={clouds ? 'clouds' : ''}> {children} <style jsx>{` @import 'colors'; main { background-color: $white; padding: 20px 0; display: flex; flex-direc...
ui/src/components/AutoComplete2/Inputs/BasicInput/BasicInput.js
LearningLocker/learninglocker
import React from 'react'; import classNames from 'classnames'; import DebounceInput from 'react-debounce-input'; import { InputWrapper } from 'ui/components/AutoComplete2/Inputs/styled'; /** * A basic text input component with some default styling */ const BasicInput = ({ value, onChange = () => { }, hasFocus...
Agenda/src/index.js
interlegis/agenda-evento
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { Router, hashHistory } from 'react-router'; import reduxThunk from 'redux-thunk'; import routes from './routes'; import { AUTH_USUARIO } from './actions/type...
local-cli/templates/HelloNavigation/views/chat/ChatScreen.js
Purii/react-native
import React, { Component } from 'react'; import { Button, ListView, Platform, StyleSheet, Text, TextInput, View, } from 'react-native'; import KeyboardSpacer from '../../components/KeyboardSpacer'; export default class ChatScreen extends Component { static navigationOptions = { title: (navigation...
src/svg-icons/editor/format-paint.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatPaint = (props) => ( <SvgIcon {...props}> <path d="M18 4V3c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6h1v4H9v11c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-9h8V4h-3z"/> </SvgIco...
src/App/Core/Layout.js
ccubed/Vertinext
import React from 'react'; import Router from 'react-router'; var {RouteHandler} = Router; import Menu from '../Components/Menu'; class App extends React.Component { render() { return ( <div> <Menu /> <RouteHandler/> </div> ); } } module.exports = App;
docs/src/sections/ThumbnailSection.js
SSLcom/Bootsharp
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function ThumbnailSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> ...
node_modules/react-router/es6/Lifecycle.js
andrit/VideoListReact
import warning from './routerWarning'; import React from 'react'; import invariant from 'invariant'; var object = React.PropTypes.object; /** * The Lifecycle mixin adds the routerWillLeave lifecycle method to a * component that may be used to cancel a transition or prompt the user * for confirmation. * * On stan...
src/svg-icons/image/timer-off.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTimerOff = (props) => ( <SvgIcon {...props}> <path d="M19.04 4.55l-1.42 1.42C16.07 4.74 14.12 4 12 4c-1.83 0-3.53.55-4.95 1.48l1.46 1.46C9.53 6.35 10.73 6 12 6c3.87 0 7 3.13 7 7 0 1.27-.35 2.47-.94 3.49l1....