path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/hardware/router.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareRouter = (props) => ( <SvgIcon {...props}> <path d="M20.2 5.9l.8-.8C19.6 3.7 17.8 3 16 3s-3.6.7-5 2.1l.8.8C13 4.8 14.5 4.2 16 4.2s3 .6 4.2 1.7zm-.9.8c-.9-.9-2.1-1.4-3.3-1.4s-2.4.5-3.3 1.4l.8.8c.7-.7 1.6...
src/templates/index-template.js
ryanermita/ryanermita.github.io
// @flow strict import React from 'react'; import { graphql } from 'gatsby'; import Layout from '../components/Layout'; import Sidebar from '../components/Sidebar'; import Feed from '../components/Feed'; import Page from '../components/Page'; import Pagination from '../components/Pagination'; import { useSiteMetadata }...
src/views/Main/Account.js
halo-design/halo-optimus
import React from 'react' import { connect } from 'react-redux' import { withRouter } from 'react-router-dom' import { bindActionCreators } from 'redux' import avatarImg from 'IMAGE/avatar.png' import { getCookie } from 'UTIL/cookie' import { logout } from 'REDUCER/public/login' import { setPasswordVisible } from 'REDU...
frontend/src/containers/LoginTopBar.js
OpenCollective/opencollective-website
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { pushState } from 'redux-router'; import * as storage from '../lib/storage'; import { getQueryParams } from '../lib/utils'; import fetchUser from '../actions/users/fetch_by_id'; import logout from '../actions/session/logout'; impo...
src/icons/font/BuildIcon.js
skystebnicki/chamel
import React from 'react'; import PropTypes from 'prop-types'; import FontIcon from '../../FontIcon'; import ThemeService from '../../styles/ChamelThemeService'; /** * Build button * * @param props * @param context * @returns {ReactDOM} * @constructor */ const BuildIcon = (props, context) => { let theme = ...
src/components/Weui/panel/panel_header.js
ynu/ecard-wxe
/** * Created by n7best */ import React from 'react'; import classNames from 'classnames'; export default class PanelHeader extends React.Component { render() { const {children, ...others} = this.props; const className = classNames({ weui_panel_hd: true }); return ...
app/components/Menu.js
peterfication/space-jumper
import PT from 'prop-types' import React from 'react' import styles from './menu.scss' const Menu = props => ( <div className={styles['menu-container']}> <a onClick={props.startGame}>Start</a> <a onClick={props.showAbout}>About</a> </div> ) if (process.env.NODE_ENV !== 'production') { Menu.propTypes = ...
lib/components/Width.js
boldkhuu/uikit-with-react
import { classNames } from '../utils'; import React from 'react'; const WIDTHS = ['small', 'medium', 'large']; const Width = React.createClass({ displayName: 'UK Width', propTypes: { all: React.PropTypes.string, small: React.PropTypes.string, medium: React.PropTypes.string, large: React.PropTypes...
src/svg-icons/av/playlist-add.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPlaylistAdd = (props) => ( <SvgIcon {...props}> <path d="M14 10H2v2h12v-2zm0-4H2v2h12V6zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM2 16h8v-2H2v2z"/> </SvgIcon> ); AvPlaylistAdd = pure(AvPlaylistAdd); AvPlaylistAdd...
examples/huge-apps/routes/Grades/components/Grades.js
buddhike/react-router
import React from 'react'; class Grades extends React.Component { render () { return ( <div> <h2>Grades</h2> </div> ); } } export default Grades;
blueocean-material-icons/src/js/components/svg-icons/communication/swap-calls.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const CommunicationSwapCalls = (props) => ( <SvgIcon {...props}> <path d="M18 4l-4 4h3v7c0 1.1-.9 2-2 2s-2-.9-2-2V8c0-2.21-1.79-4-4-4S5 5.79 5 8v7H2l4 4 4-4H7V8c0-1.1.9-2 2-2s2 .9 2 2v7c0 2.21 1.79 4 4 4s4-1.79 4-4V8h3l-4-4z"/> </SvgIcon> ); Commu...
app/components/AddTask/DeliveryAddress/index.js
prudhvisays/season
import React from 'react'; import Input from '../Input'; import Flatpickr from 'react-flatpickr'; import '../../../../node_modules/flatpickr/dist/themes/dark.css'; import DMaps from '../DMaps'; import '../TaskAddress/taskAddress.css'; import moment from 'moment'; export default class TaskAddress extends React.Componen...
actor-apps/app-web/src/app/components/modals/invite-user/ContactItem.react.js
dsaved/africhat-platform-0.1
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import classnames from 'classnames'; import InviteUserStore from 'stores/InviteUserStore'; import { AsyncActionStates } from 'constants/ActorAppConstants'; import AvatarItem from 'components/common/AvatarItem.react'; ...
Realization/frontend/czechidm-core/src/components/advanced/Navigation/NavigationItem.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import classnames from 'classnames'; // import * as Basic from '../../basic'; /** * Single navigation item. * * @author Radek Tomiška */ export default class NavigationItem extends Basic.AbstractContextComponent...
modules/gui/src/app/home/body/process/recipe/remapping/panels/inputImagery/assetSection.js
openforis/sepal
import {AssetInput} from 'widget/assetInput' import {msg} from 'translate' import PropTypes from 'prop-types' import React from 'react' import style from './inputImage.module.css' export default class AssetSection extends React.Component { render() { const {input, onLoading} = this.props return ( ...
src/index.js
catarina2/eva
import React from 'react'; import ReactDOM from 'react-dom'; import Root from './containers/Root'; import './index.css'; ReactDOM.render(<Root />, document.getElementById('app'));
components/helpline.js
gembarrett/hamara-internet-app
import React from 'react'; import { StyleSheet, Text, View, Button, ScrollView } from 'react-native'; import BasicText from './sub/basicText.js'; import { prefs } from '../routes/prefs.js'; import { helpline } from '../content/helpline.js'; import { translatedText, translatedTitle, printLinks } from '../routes/shared.j...
src/library/validations/components/CheckBox.js
zdizzle6717/universal-react-movie-app
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import defaultValidations from '../constants/defaultValidations' import classNames from 'classnames'; import FormActions from '../actions/FormActions'; import FormStore from '../stores/FormStore'; export default class CheckBox extends React.Co...
frontend/src/Movie/Editor/Delete/DeleteMovieModal.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React from 'react'; import Modal from 'Components/Modal/Modal'; import DeleteMovieModalContentConnector from './DeleteMovieModalContentConnector'; function DeleteMovieModal(props) { const { isOpen, onModalClose, ...otherProps } = props; return ( <Modal ...
websrc/components/dashboard/ProjectSegmentsPanel.js
Ricky-Nz/react-relay-example
import React from 'react'; import Relay from 'react-relay'; import { Panel, Button } from 'react-bootstrap'; import SegmentItem from './SegmentItem'; class ProjectSegmentsEditor extends React.Component { constructor(props) { super(props); this.state = this.onPropChanged(props); } componentWillReceiveProps(nextP...
src/svg-icons/image/blur-circular.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBlurCircular = (props) => ( <SvgIcon {...props}> <path d="M10 9c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zM7 9.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5...
app/card.js
GDGVIT/website-stat-electron
/** * Created by rahul on 9/28/16. */ import React from 'react'; class Card extends React.Component{ constructor(props){ super(props); this.state={ style:'card col s12' } } render(){ this.state.style=this.props.color+' card col s12'; return( <...
src/components/SomeoneStaffing.js
theodo/captain-staffing
import React from 'react' import PropTypes from 'prop-types' export default class SomeoneStaffing extends React.Component { static propTypes = { header: PropTypes.string.isRequired, } render() { return ( <div className="row"> <div className="header cell">{ this.props.header }</div> ...
src/components/obligee/BoundaryList.js
axmand/react-webpack-redux
import React, { Component } from 'react'; import CheckCell from './CheckCell' import { connect } from 'react-redux' // import PointNameCell from './PointNameCell' //import projectData from "./../../redux/RootData"; import InputListCell from "./InputListCell" import MutiCheckButton from "./MutiCheckButton" // Map Redux...
docs/app/Examples/addons/Radio/Types/Radio.js
jcarbo/stardust
import React from 'react' import { Radio } from 'stardust' const RadioRadioExample = () => ( <Radio label='Make my profile visible' /> ) export default RadioRadioExample
app/app.js
EugeneHlushko/game-15
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
server/server.js
openfocus/HTH-MERN
import Express from 'express'; import compression from 'compression'; import mongoose from 'mongoose'; import bodyParser from 'body-parser'; import path from 'path'; import IntlWrapper from '../client/modules/Intl/IntlWrapper'; // Webpack Requirements import webpack from 'webpack'; import config from '../webpack.confi...
benchmarks/dom-comparison/src/implementations/reactxp/Provider.js
risetechnologies/fela
/* eslint-disable react/prop-types */ import React from 'react'; import { object } from 'prop-types'; import { View } from 'reactxp'; class Provider extends React.Component { /* this mock context is necessary for reactxp to work without errors… ¯\_(ツ)_/¯ */ static childContextTypes = { focusManager: object ...
src/index.js
Sekhmet/busy
import React from 'react'; import ReactDOM from 'react-dom'; import { browserHistory } from 'react-router'; import { Provider } from 'react-redux'; import steemconnect from 'steemconnect'; import ReactGA from 'react-ga'; import { AppContainer } from 'react-hot-loader'; import getStore from './store'; import { isSmall }...
src/components/Top.js
glennwedin/Progressive-Web-App
/* globals navigator */ "use strict"; import React from 'react'; export default class Top extends React.Component { constructor () { super(); this.state = { isOnline: true }; } componentDidMount() { this.checkConnection(); } checkConnection() { if(navigator.connection || navigator.mozConnection || ...
App/Containers/MainScreen.js
friskipr/Ignite_MyApp
import React from 'react' import { Text } from 'react-native' import { Tabs, Tab, Icon } from 'react-native-elements' import InventoryScreen from './Inventory' export default class MainScreen extends React.Component { constructor(props) { super(props) this.state = { selectedTab: 'items'...
plugins/Files/js/components/unlockwarning.js
NebulousLabs/Sia-UI
import PropTypes from 'prop-types' import React from 'react' const UnlockWarning = ({ onClick }) => ( <div className='allowance-dialog unlock-warning'> <h1 className='unlock-warning-head'> Your wallet must be unlocked and synchronized to buy storage. </h1> <div className='allowance-buttons'> ...
src/components/About.js
jalcantara90/cv
import React from 'react'; import PropTypes from 'prop-types'; import Social from './Social'; const About = ({avatar, name, profession, bio, address, social}) => { return( <div className='bio'> <div className='avatar'> <div className="img-container"> <img src={avatar} alt={name} /> ...
client/mobile/src/views/StudentLayout.js
CongYunan/course_attendance
// 加载 React 相关组件 import React, { Component } from 'react'; // 加载 Ant Design 相关组件 import { Icon } from 'antd'; // 加载 Dva 相关组件 import { connect } from 'dva'; // 加载样式 import Styles from '../styles/StudentLayout.less'; // 加载自定义组件 import CourseAttendance from '../components/Student/CourseAttendance'; import AttendanceConfir...
node_modules/react-router/es6/Router.js
ArtixZ/LyingMan2
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
src/routes/config/tvbrand/index.js
china2008qyj/DVA-DEMO
import React from 'react' import PropTypes from 'prop-types' import { routerRedux } from 'dva/router' import { connect } from 'dva' import { Row, Col, Button, Popconfirm } from 'antd' import List from './List' import Filter from './Filter' import Modal from './Modal' const Tvbrand = ({ location, dispatch, tvbrand, loa...
src/main/resources/public/js/components/dropdown_menus/member/member-dropdown-footer.js
SICTIAM/ozwillo-portal
import React from 'react'; import PropTypes from 'prop-types'; import Select from 'react-select'; import { i18n } from "../../../config/i18n-config" import { t } from "@lingui/macro" import NotificationMessageBlock from '../../notification-message-block'; class MemberDropdownFooter extends React.Component { stat...
src/index.js
raq929/react-french-toast
import React from 'react'; import {render} from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import routes from './routes'; import configureStore from './store/configureStore'; import './styles/styles.scss'; //Yep, that's right. You can import SASS/CSS file...
internals/templates/containers/HomePage/index.js
BartoszBazanski/react-100-pushup-challenge
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
docs/app/Examples/elements/Label/Content/LabelExampleLinkDetail.js
shengnian/shengnian-ui-react
import React from 'react' import { Icon, Label } from 'shengnian-ui-react' const LabelExampleLinkDetail = () => ( <Label> <Icon name='mail' /> 23 <Label.Detail>View Mail</Label.Detail> </Label> ) export default LabelExampleLinkDetail
src/components/app.js
matwej/IAmHungryFor
import React, { Component } from 'react'; import SearchBar from '../containers/search_bar'; import ResultsList from '../containers/results_list'; export default class App extends Component { render() { return ( <div className="container"> <div className="row vert-offset-top-4"> <div class...
src/components/IngestionWizardFormAdvanced/WizardForm.js
giux78/daf-dataportal
import React, { Component } from 'react'; import WizardFormFirstPage from './WizardFormFirstPage'; import WizardFormSecondPage from './WizardFormSecondPage'; import WizardFormThirdPage from './WizardFormThirdPage'; import Steps, { Step } from 'rc-steps'; import themes from '../../data/themes' import licenze from '../.....
packages/reactReduxFormBase/DEV/App.js
daniloster/react-experiments
import React, { Component } from 'react'; import ErrorBoundary from './ErrorBoundary'; import AppModel from './AppModel'; import AppModelList from './AppModelList'; import AppFormState from './AppFormState'; export default class App extends Component { render() { return ( <ErrorBoundary> <AppModel ...
src/components/ui/List.js
elarasu/roverz-chat
/** * List * <List><ListView /></List> * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { List } from 'react-native-elements'; // Consts and Libs import { AppColors } from '../../theme/'...
node_modules/react-select/examples/src/components/NumericSelect.js
Sweetgrassbuffalo/ReactionSweeGrass-v2
import React from 'react'; import Select from 'react-select'; var ValuesAsNumbersField = React.createClass({ displayName: 'ValuesAsNumbersField', propTypes: { label: React.PropTypes.string }, getInitialState () { return { options: [ { value: 10, label: 'Ten' }, { value: 11, label: 'Eleven' }, { ...
src/app/components/common/SimpleField.js
jhagai/react-redux-demo
import React from 'react'; export default ({input, label, type, meta: {touched, error, warning}}) => { let feedBack = touched && ((error && <span>{error}</span>) || (warning && <span>{warning}</span>)); return ( <div className={'form-group ' + (touched && error ? 'has-error' : '')}> <inpu...
docs/src/examples/modules/Popup/Variations/PopupExampleWide.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Icon, Popup } from 'semantic-ui-react' const PopupExampleWide = () => ( <> <Popup trigger={<Icon circular name='heart' />}> Hello. This is a regular pop-up which does not allow for lots of content. You cannot fit a lot of words here as the paragraphs will be pretty ...
app/components/GameCard.js
georgeF105/handball-scoring
import React from 'react' import { Link } from 'react-router' import { formatScore } from '../../lib/formatNumber' export default (props) => { const game = props.game const homeTeam = props.homeTeam || 'Home Team' const awayTeam = props.awayTeam || 'Away Team' const homeTeamScore = formatScore(game.current_sco...
src/pages/list/daigou.js
neekey/daigou
import React from 'react'; import Item from './comp.Item'; import style from './daigou.scss'; import data from 'src/data/index'; import config from '../../components/header/header.json'; import ImagePreview from './imagePreview'; function getDataForCat(cat) { return data({ tags: cat.tags, keyword: cat.keyword }, cat...
JS/server.js
letsspeak/Stock
import React from 'react'; import { renderToString } from 'react-dom/server'; import { createStore } from 'redux' import { Provider } from 'react-redux' import { StaticRouter as Router, Route } from 'react-router-dom' import rootReducer from './reducers' import Layout from './components/Layout' import Portfolio from ...
src/components/swatches/SwatchesColor.js
socialtables/react-color
'use strict' /* @flow */ import React from 'react' import ReactCSS from 'reactcss' import shallowCompare from 'react-addons-shallow-compare' export class SwatchesColor extends ReactCSS.Component { shouldComponentUpdate = shallowCompare.bind(this, this, arguments[0], arguments[1]) classes(): any { return { ...
docs/app/Examples/elements/Input/Variations/InputExampleLeftCornerLabeled.js
mohammed88/Semantic-UI-React
import React from 'react' import { Input } from 'semantic-ui-react' const InputExampleLeftCornerLabeled = () => ( <Input label={{ icon: 'asterisk' }} labelPosition='left corner' placeholder='Search...' /> ) export default InputExampleLeftCornerLabeled
app/components/AdvancedChat.js
andreybutenko/fieldtrip
import React, { Component } from 'react'; import { View, StyleSheet, Text } from 'react-native'; import Icon from 'react-native-vector-icons/MaterialIcons'; import ConversationsRow from './ConversationsRow'; const styles = StyleSheet.create({ container: { height: 30, flexDirection: 'row', a...
frontend/src/router/router.js
Coroneal/spark
import React from 'react'; import { Route, Redirect, IndexRoute } from 'react-router'; import Home from 'container/home/Home'; import SimpleListComponent from 'container/SimpleListComponent'; import PrivatePage from 'container/PrivatePage'; import LoginPage from 'container/LoginPage'; import privateRoute from 'router/...
packages/material/src/components/ScrollView.native.js
wq/wq.app
import React from 'react'; import { ScrollView as PaperScrollView } from 'react-native'; import { useTheme } from 'react-native-paper'; import PropTypes from 'prop-types'; export default function ScrollView({ style, ...rest }) { const theme = useTheme(); return ( <PaperScrollView style={{ ...
example/src/Screens/Docs/AnimatedRoute/Code.js
maisano/react-router-transition
import React from 'react'; import Footer from '../shared/Footer'; import AnimatedRouteJS from '!!prismjs-loader?lang=jsx!./example'; const ExampleCode = () => ( <div> <h2>Example Code</h2> <div> <h3>AnimatedRouteDemo.js</h3> <pre className="language-javascript" dangerouslySetInn...
packages/reactor-kitchensink/src/examples/Charts/Pie/Spie/Spie.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import { Container } from '@extjs/ext-react'; import { Polar } from '@extjs/ext-react-charts'; import ChartToolbar from '../../ChartToolbar'; export default class Spie extends Component { store = Ext.create('Ext.data.Store', { fields: ['os', 'data1', 'data2'], ...
app/containers/AdminRelaisCommandes/components/ListeAcheteurs.js
Proxiweb/react-boilerplate
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { List, makeSelectable } from 'material-ui/List'; import { format } from 'utils/dates'; import compareDesc from 'date-fns/compare_desc'; import...
app/routes/waste-type/CreateRoute.js
ryrudnev/dss-wm
import React from 'react'; import Helmet from 'react-helmet'; import { Route } from '../../core/router'; import { Model as WasteType } from '../../entities/WasteType'; import { Collection as MethodTypes } from '../../entities/MethodType'; import { Collection as AggregateStates } from '../../entities/AggregateState'; im...
src/components/ParticipantListItem.js
brianyamasaki/rideshare
import React, { Component } from 'react'; import { Text, TouchableOpacity } from 'react-native'; import { Actions } from 'react-native-router-flux'; class ParticipantListItem extends Component { onEdit() { Actions.participantEdit({ participant: this.props.participant }); } render() { const { firstname, ...
examples/todomvc/containers/Root.js
Drooids/redux
import React, { Component } from 'react'; import TodoApp from './TodoApp'; import { createStore, combineReducers } from 'redux'; import { Provider } from 'react-redux'; import rootReducer from '../reducers'; const store = createStore(rootReducer); export default class Root extends Component { render() { return ...
client/src/app/routes/misc/containers/Page404.js
zraees/sms-project
import React from 'react' export default class Page404 extends React.Component { render() { return ( <div id="content"> {/* row */} <div className="row"> <div className="col-xs-12 col-sm-12 col-md-12 col-lg-12"> <div className="row"> <div className="col-...
src/star/ui/transferbutton/TransferSection.js
flysonic10/initial-celestial-offering
import React from 'react' import TransferButton from './TransferButtonContainer'; class TransferSection extends React.Component { constructor(props) { super(props); this.state = { to: '0x0' } } updateToAddress() { this.setState({to: this.refs.to.value}); } render() { let starInde...
src/shared/components/button/button.js
miaket/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; const Button = (props) => { const { handleClick, ...otherProps } = props; return ( <button onSubmit={handleClick} {...otherProps} /> ); }; Button.propTypes = { handleClick: PropTypes.func }; Button.defaultProps = { handleClick: n...
blueocean-material-icons/src/js/components/svg-icons/action/perm-data-setting.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionPermDataSetting = (props) => ( <SvgIcon {...props}> <path d="M18.99 11.5c.34 0 .67.03 1 .07L20 0 0 20h11.56c-.04-.33-.07-.66-.07-1 0-4.14 3.36-7.5 7.5-7.5zm3.71 7.99c.02-.16.04-.32.04-.49 0-.17-.01-.33-.04-.49l1.06-.83c.09-.08.12-.21.06-...
src/components/graph/screens/GraphTagDisplay/containers/GraphTagDisplayContainer.js
yasavbrain/yasav
import React from 'react'; import { Dimensions } from 'react-native'; import { connect } from 'react-redux'; import * as shape from 'd3-shape'; import * as hierarchy from 'd3-hierarchy'; import * as force from 'd3-force'; import * as zoom from 'd3-zoom'; import Colors from 'yasav/src/styles/Colors'; import GraphTagDisp...
src/components/Login/LoginTab.js
ascrutae/sky-walking-ui
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
src/DatePicker/DayButton.js
skarnecki/material-ui
import React from 'react'; import Transition from '../styles/transitions'; import {isEqualDate} from './dateUtils'; import EnhancedButton from '../internal/EnhancedButton'; function getStyles(props, context) { const { date, disabled, selected, } = props; const {hover} = context; const { baseT...
app/client/src/components/SearchUsers/SearchUsers.js
uprisecampaigns/uprise-app
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { graphql, compose } from 'react-apollo'; import SearchPresentation from 'components/SearchPresentation'; import { addSearchItem, } from 'actions/SearchActions'; import UsersQuery from 'schem...
src/components/search/TimelineCard.js
ChrisWhiten/react-rink
import Schedule from 'material-ui/svg-icons/action/schedule'; import Paper from 'material-ui/Paper'; import Divider from 'material-ui/Divider'; import RaisedButton from 'material-ui/RaisedButton'; import React from 'react'; import moment from 'moment'; import locale from '../../localization/locale'; import './styles/T...
src/svg-icons/content/next-week.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentNextWeek = (props) => ( <SvgIcon {...props}> <path d="M20 7h-4V5c0-.55-.22-1.05-.59-1.41C15.05 3.22 14.55 3 14 3h-4c-1.1 0-2 .9-2 2v2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2...
test/utils/create-test-component.js
vincefliek/Pet-Firebase
import React, { Component } from 'react'; import { findRenderedComponentWithType, renderIntoDocument } from 'react-addons-test-utils'; export function createTestComponent(TestComponent, props) { return findRenderedComponentWithType( renderIntoDocument(<TestComponent {...props}/>), TestComponent ); }
client/common/components/guide/Text/index.js
Haaarp/geo
import React from 'react'; import Label from './../../Label'; import FormWrap from './../../FormWrap'; import FormGroup from './../../FormGroup'; const TextSection = () => ( <FormWrap> <FormGroup> <Label className="lbl-1">Text styles</Label> </FormGroup> <FormWrap className="f...
tus-front-end/src/components/Message.js
nit3owl/testing-utility-server
import React, { Component } from 'react'; class Message extends Component { constructor(props) { super(); } render() { let message; if(this.props.message !== undefined) message = this.props.message; else message = 'Whoops! Something wen...
examples/js/remote/remote-sorting.js
AllenFang/react-bootstrap-table
import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; export default class RemoteSorting extends React.Component { constructor(props) { super(props); } render() { return ( <BootstrapTable data={ this.props.data } remote={ true }...
src/svg-icons/editor/border-bottom.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderBottom = (props) => ( <SvgIcon {...props}> <path d="M9 11H7v2h2v-2zm4 4h-2v2h2v-2zM9 3H7v2h2V3zm4 8h-2v2h2v-2zM5 3H3v2h2V3zm8 4h-2v2h2V7zm4 4h-2v2h2v-2zm-4-8h-2v2h2V3zm4 0h-2v2h2V3zm2 10h2v-2h-2v2zm...
app/src/components/Department/LearnMore.js
open-austin/budgetparty
import React from 'react' import { Link } from 'react-router-dom' import PropTypes from 'prop-types'; import Navigation from '../Navigation' import departments from '../../data/departments.js' const LearnMore = (props) => { const serviceId = props.match.params.service_id const departmentId = props.match.params.id...
src/svg-icons/places/smoke-free.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesSmokeFree = (props) => ( <SvgIcon {...props}> <path d="M2 6l6.99 7H2v3h9.99l7 7 1.26-1.25-17-17zm18.5 7H22v3h-1.5zM18 13h1.5v3H18zm.85-8.12c.62-.61 1-1.45 1-2.38h-1.5c0 1.02-.83 1.85-1.85 1.85v1.5c2.24 0 ...
src/svg-icons/image/iso.js
rscnt/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"/> ...
src/components/form/error/index.js
WHCIBoys/nitpik-web
import React from 'react'; import classNames from 'classnames'; function FormError({ children, isVisible, testid = 'form-error', ...props}) { const formErrorClasses = classNames('bold', 'black', { 'hide': !isVisible }); return ( <div data-testid={testid} className={ formErrorClasses } {...props}> { chil...
src/js/components/TextInput/stories/OnSelect.js
grommet/grommet
import React from 'react'; import { Box, TextInput } from 'grommet'; const suggestions = Array(100) .fill() .map((_, i) => `suggestion ${i + 1}`); export const OnSelect = () => { const [value, setValue] = React.useState(''); const onChange = (event) => setValue(event.target.value); const onSelect = (even...
web/client/configdev/src/config/DiskManager.js
project-owner/Peppy
/* Copyright 2021 Peppy Player peppy.player@gmail.com This file is part of Peppy Player. Peppy Player 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 la...
app/javascript/mastodon/features/notifications/components/clear_column_button.js
pfm-eyesightjp/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; export default class ClearColumnButton extends React.Component { static propTypes = { onClick: PropTypes.func.isRequired, }; render () { return ( <button className='text-btn column-header...
app/javascript/flavours/glitch/features/ui/components/upload_area.js
im-in-space/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from 'flavours/glitch/util/optional_motion'; import spring from 'react-motion/lib/spring'; import { FormattedMessage } from 'react-intl'; export default class UploadArea extends React.PureComponent { static propTypes = { active: PropTy...
src/main/js/containers/App.js
rexk/spring-webpack-reactjs
import React from 'react'; import TodoApp from './TodoApp' import './App.less'; class App extends React.Component { static displayName = 'App'; render() { return ( <TodoApp /> ); } } export default App;
examples/react/app.js
spicydonuts/lucid-router
import React from 'react' import ReactDOM from 'react-dom' import * as router from 'lucid-router' import App from './components/App' router.addRoutes([ {name: 'home', path: '/'}, {name: 'friends', path: '/friends'}, {name: 'friends.info', path: '/friends/:name'} ]) router.register(location => rende...
pages/demos/paper.js
AndriusBil/material-ui
// @flow 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/demos/paper/paper.md'; function Page() { return ( <MarkdownDocs markdown={markdown} demos={{ ...
node_modules/react-bootstrap/es/Form.js
hsavit1/gosofi_webpage
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 ...
client/trello/src/app/components/HeaderSearch/HeaderSearch.js
Madmous/madClones
import FontAwesome from 'react-fontawesome'; import React from 'react'; import './HeaderSearch.css'; export default function HeaderSearch(props) { return ( <div className="Header-Button Header-Board-Search"> <input className="Header-Board-Search-Input" type="text" autoComplete="...
src/AppRouters.js
hanpanpan200/react-native-starter
import React from 'react' import { Tabs, Scene, Router } from 'react-native-router-flux' import { StyleSheet } from 'react-native' import { connect } from 'react-redux' import Blank from './layout/Blank' import TabIcon from './layout/TabIcon' import { COLOR, FONT } from './constants/theme' const styles = StyleSheet.cr...
react/features/deep-linking/components/DeepLinkingDesktopPage.web.js
bgrozev/jitsi-meet
// @flow import Button, { ButtonGroup } from '@atlaskit/button'; import { AtlasKitThemeProvider } from '@atlaskit/theme'; import React, { Component } from 'react'; import { connect } from '../../base/redux'; import type { Dispatch } from 'redux'; import { createDeepLinkingPageEvent, sendAnalytics } from '../../analyt...
app/javascript/mastodon/components/attachment_list.js
mstdn-jp/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; const filename = url => url.split('/').pop().split('#')[0].split('?')[0]; export default class AttachmentList extends Immutabl...
components/Select/stories.js
insane-ux/rebulma
// @flow import React from 'react' import { storiesOf } from '@kadira/storybook' import Select from './' const options = [ { label: 'Rr', value: 'dr', }, { label: 'Mr', value: 'mr', }, { label: 'Ms', value: 'ms', }, { label: 'Miss', value: 'miss', }, ] storiesOf('Selec...
app/containers/NotFoundPage/index.js
akeel26/react-user-management
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
src/components/tag/theme/minified.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2016 Loki Education (Social Enterprise) 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 License, o...
app/javascript/mastodon/features/ui/components/actions_modal.js
dwango/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import StatusContent from '../../../components/status_content'; import Avatar from '../../../components/avatar'; import Relative...
client/desktop/app/components/teacher/classes/ClassData/StudentData.js
Jakeyrob/thumbroll
import React from 'react' import {Route, RouteHandler, Link} from 'react-router' import api from '../../../../utils/api'; class StudentData extends React.Component { constructor(props){ super(props); this.state = { firstName: this.props.location.state.firstName, lastName: this.props.location.sta...
packages/hello-world-example/pages/Home.js
wangzuo/cxx
import React from 'react'; import Layout from '../components/layout'; export default () => <Layout titleTemplate="%s" title="Hello World Example"> <h1>Home</h1> </Layout>;
src/containers/App.js
JailBreakC/react-redux-wechat
import React, { Component } from 'react'; import PropTypes from 'prop-types' import { reduxConnect } from '../helpers' import Panel from './Panel' import ChatContent from './ChatContent' import Copyleft from '../components/Copyleft' import Promise from 'promise' import './App.less'; class App extends Component { sta...
src/Thumbnail.js
justinanastos/react-bootstrap
import React from 'react'; import classSet from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import SafeAnchor from './SafeAnchor'; const Thumbnail = React.createClass({ mixins: [BootstrapMixin], propTypes: { alt: React.PropTypes.string, href: React.PropTypes.string, src: React.PropTyp...