path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/bundles/Collaborate/CollaborateCodeWidget.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' import { Provider } from 'react-redux' import RegisterComponent from '../../RegisterComponent' import createStore from './redux/create' import Code from './components/Code' export const CollaborateCodeWidget = (props) => { const store = createStore(props) return ( <Provider store={...
docs/src/app/components/pages/components/Dialog/Page.js
pancho111203/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 dialogReadmeText from './README'; import DialogExampleSimple from './Exam...
scene/AnimSpinScene.js
withwind318/RNAppDemos
import React, { Component } from 'react'; import { StyleSheet, View, Image, Dimensions, Text, Animated, Easing, } from 'react-native'; export default class AnimSpinScene extends Component { constructor(props) { super(props); this.spinValue = new Animated.Value(0); } componentDidMount() {...
app/src/components/TotalFundAvailable.js
open-austin/budgetparty
import React from 'react' import { FormattedNumber } from 'react-intl' import PropTypes from 'prop-types'; const TotalFundAvailable = (props) => { const { generalFund, generalFundsRemaining } = props.funds const remainingAmount = generalFundsRemaining === null ? generalFund : generalFundsRemaining return ( ...
src/components/core/StrikethroughDivider/index.js
ClaudiuCeia/mioritic
// @flow import React, { Component } from 'react'; import './StrikethroughDivider.css'; type Props = { title: string, subtitle: string, } class StrikethroughDivider extends Component { props: Props; render() { return ( <div className="strikethrough-divider"> <div className="strikethrough-di...
assets/js/routes/app-routes.react.js
Nosferatu-lib/nosferatu-reactjs-auth
import React from 'react'; import Router from 'react-router'; import Master from '../layouts/master.react'; import Home from '../layouts/home.react'; var {Route, DefaultRoute} = Router; var AppRoutes = ( <Route name="root" path="/" handler={Master}> <DefaultRoute handler={Home} /> </Route> ); export default ...
sandbox/graphqlVersion/client/components/ecTranslatorHeader.js
guigrpa/mady
// @flow /* eslint-env browser */ import timm from 'timm'; import React from 'react'; import Relay, { graphql } from 'react-relay'; import throttle from 'lodash/throttle'; import { getScrollbarWidth, flexItem, flexContainer, Icon, Select } from 'giu'; import type { Choice } from 'giu/lib/gral/types'; import type { Vie...
web/client/configdev/src/config/LogFile.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...
modules/TransitionHook.js
leeric92/react-router
import React from 'react'; import warning from 'warning'; var { object } = React.PropTypes; var TransitionHook = { contextTypes: { router: object.isRequired }, componentDidMount() { warning( typeof this.routerWillLeave === 'function', 'Components that mixin TransitionHook should have a rou...
examples/example-with-styleguidist/src/components/Button/Button.js
risetechnologies/fela
import React from 'react' import PropTypes from 'prop-types' import { createComponent } from 'react-fela' // declare fela styles const __buttonStyle = props => ({ padding: '.5em 1.5em', color: `${props.color || props.theme.colorGrey}`, 'background-color': props.theme.colorWhite, border: '1px solid currentColor...
actor-apps/app-web/src/app/components/activity/UserProfileContactInfo.react.js
tsdl2013/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class UserProfileContactInfo extends React.Component { static propTypes = { phones: React.PropTypes.arr...
src/entry-points/client.js
StevenLangbroek/react-redux-starter-kit
import React from 'react'; import App from 'containers/app'; import { history } from 'react-router/lib/BrowserHistory'; React.render(<App history={history} />, document.getElementById('mount'));
examples/huge-apps/routes/Calendar/components/Calendar.js
calebmichaelsanchez/react-router
import React from 'react'; class Calendar extends React.Component { render () { var events = [{ id: 0, title: 'essay due' }]; return ( <div> <h2>Calendar</h2> <ul> {events.map(event => ( <li key={event.id}>{event.title}</li> ))} </ul> ...
src/web/Line/Line.js
Krizzu/react-progressor
import React from 'react'; import propTypes from 'prop-types'; import { Container, Track, CompletedTrack } from './helpers/subComponents'; class LineProgressor extends React.Component { valueInterpolate = (val) => { const { width = 150 } = this.props; return ((val / 100) * width); } render() { cons...
app/jsx/bundles/terms_of_service_modal.js
djbender/canvas-lms
/* * Copyright (C) 2017 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas 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, version 3 of the License. * * Canvas is distribut...
assets/javascripts/kitten/components/graphics/icons/burger-icon/index.js
KissKissBankBank/kitten
import React from 'react' import classNames from 'classnames' import PropTypes from 'prop-types' import styled from 'styled-components' import COLORS from '../../../../constants/colors-config' import deprecated from 'prop-types-extra/lib/deprecated' const StyledItem = styled.svg` overflow: visible; fill: var(--bu...
app/javascript/mastodon/features/compose/components/upload.js
masto-donte-com-br/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { FormattedMessage } fr...
src/pages/AnswerQuestion/AnswerQuestion.js
imcvampire/simple-online-form
import React from 'react' import { Container, } from 'react-grid-system' import { RaisedButton } from 'material-ui' import axios from 'axios' import isEqual from 'lodash.isequal' import Question from '../../components/Question' import { MultipleChoiceQuestion, MultipleSelectionQuestion, } from '../../utils/const...
ui/routes.js
danjac/random-movies
import React from 'react'; import { Router, Route, IndexRoute } from 'react-router'; import { App, Movie, MovieList, NotFound } from './components'; export default function (history) { return ( <Router history={history}> <Route path="/" component={App}> <IndexRoute component={MovieList} /> ...
src/EventCell.js
intljusticemission/react-big-calendar
import PropTypes from 'prop-types' import React from 'react' import clsx from 'clsx' import * as dates from './utils/dates' class EventCell extends React.Component { render() { let { style, className, event, selected, isAllDay, onSelect, onDoubleClick, localizer, ...
src/main/script/Index.js
TomG713/willitconnect
/* eslint-env browser */ import React from 'react'; import ReactDOM from 'react-dom'; import { createStore, applyMiddleware } from 'redux'; import { Provider } from 'react-redux' import thunk from 'redux-thunk'; import EntryBox from './EntryBox'; import reducers from './reducers'; require('bootstrap/dist/css/bootstra...
frontend/src/Movie/Index/Posters/Options/MovieIndexPosterOptionsModalContent.js
Radarr/Radarr
import _ from 'lodash'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Form from 'Components/Form/Form'; import FormGroup from 'Components/Form/FormGroup'; import FormInputGroup from 'Components/Form/FormInputGroup'; import FormLabel from 'Components/Form/FormLabel'; import Button ...
docs/app/Examples/modules/Dropdown/Usage/DropdownExampleMultipleCustomLabel.js
shengnian/shengnian-ui-react
import React from 'react' import { Dropdown } from 'shengnian-ui-react' const options = [ { key: 1, text: 'One', value: 1 }, { key: 2, text: 'Two', value: 2 }, { key: 3, text: 'Three', value: 3 }, ] const renderLabel = label => ({ color: 'blue', content: `Customized label - ${label.text}`, icon: 'check', ...
src/svg-icons/av/videocam-off.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVideocamOff = (props) => ( <SvgIcon {...props}> <path d="M21 6.5l-4 4V7c0-.55-.45-1-1-1H9.82L21 17.18V6.5zM3.27 2L2 3.27 4.73 6H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.21 0 .39-.08.54-.18L19.73 21 21 19.73 3...
src/Parser/Druid/Balance/Modules/Items/Tier20_2set.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import Combatants from 'Parser/Core/Modules/Combatants'; import Analyzer from 'Parser/Core/Analyzer'; import HIT_TYPES from 'Parser/Core/HIT_TYPES'; import getDamageBonus f...
spec/components/app_bar.js
soyjavi/react-toolbox
import React from 'react'; import AppBar from '../../components/app_bar'; const AppBarTest = () => ( <section> <h5>AppBar</h5> <br/> <AppBar title='Title' /> <br/> <AppBar leftIcon='menu' title='Title' /> <br/> <AppBar leftIcon='arrow_back' title='Title' rightIcon='close' /> <br/> ...
app/javascript/mastodon/components/load_more.js
palon7/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; export default class LoadMore extends React.PureComponent { static propTypes = { onClick: PropTypes.func, visible: PropTypes.bool, } static defaultProps = { visible: true, } render() {...
src/svg-icons/action/line-weight.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLineWeight = (props) => ( <SvgIcon {...props}> <path d="M3 17h18v-2H3v2zm0 3h18v-1H3v1zm0-7h18v-3H3v3zm0-9v4h18V4H3z"/> </SvgIcon> ); ActionLineWeight = pure(ActionLineWeight); ActionLineWeight.displayN...
docs/src/app/components/pages/components/Checkbox/ExampleSimple.js
spiermar/material-ui
import React from 'react'; import Checkbox from 'material-ui/Checkbox'; import ActionFavorite from 'material-ui/svg-icons/action/favorite'; import ActionFavoriteBorder from 'material-ui/svg-icons/action/favorite-border'; const styles = { block: { maxWidth: 250, }, checkbox: { marginBottom: 16, }, }; c...
src/components/Form/FancySelect/Dropdown.js
ilxanlar/cathode
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import BaseDropdown from '../../Dropdown/Dropdown'; import { selectableHelper } from '../../../helpers/utils'; class DropdownRaw extends React.Component { state = { focusedKey: 0 }; __mounted = false; op...
packages/reactor-tests/src/tests/rel/RelUpdate.js
sencha/extjs-reactor
import React, { Component } from 'react'; import { Container, Button, Menu, MenuItem } from '@extjs/ext-react'; export default class RelUpdate extends Component { state = { showMenu: false } toggleMenu = () => { this.setState({ showMenu: !this.state.showMenu }) } render() { ...
app/components/devices.component.js
karlitos/Android-Adb-Tweaker
import React from 'react'; class DeviceListItem extends React.Component { render() { return ( <li className="list-group-item"> <div className="media-body device-list-element"> <span className="icon icon-mobile device-list-device-icon pull-left"></span> ...
frontend/app/js/components/service/index.js
serverboards/serverboards
import React from 'react' import ServiceCards from 'app/containers/service/cards' import ServiceTable from 'app/containers/service/table' import Loading from 'app/components/loading' import Empty from './empty' import Tip from '../tip' import {i18n} from 'app/utils/i18n' import ServiceDetails from 'app/containers/servi...
actor-apps/app-web/src/app/components/ActivitySection.react.js
amezcua/actor-platform
import React from 'react'; import classNames from 'classnames'; import { ActivityTypes } from 'constants/ActorAppConstants'; import ActivityStore from 'stores/ActivityStore'; import UserProfile from 'components/activity/UserProfile.react'; import GroupProfile from 'components/activity/GroupProfile.react'; const getS...
src/controls/lookup2/lookup.js
thinktopography/reframe
import Format from '../../utils/format' import PropTypes from 'prop-types' import Search from './search' import React from 'react' import _ from 'lodash' class Lookup extends React.Component { static contextTypes = { form: PropTypes.object } static propTypes = { active: PropTypes.any, defaultValue:...
test/helpers/shallowRenderHelper.js
chickencyj/gallery-by-react
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
app/javascript/mastodon/features/account_timeline/index.js
ashfurrow/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { lookupAccount, fetchAccount } from '../../actions/accounts'; import { expandAccountFeaturedTimeline, expandAccountTimeline } from '../../actions/time...
node_modules/react-bootstrap/es/Label.js
WatkinsSoftwareDevelopment/HowardsBarberShop
import _Object$values from 'babel-runtime/core-js/object/values'; 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-...
src/js/components/icons/base/DocumentThreat.js
odedre/grommet-final
/** * @description DocumentThreat SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor....
public/js/src/main.js
jiadams/wjf-portfolio
import React from 'react'; // eslint-disable-line no-unused-vars import ReactDOM from 'react-dom'; import WorksBox from './components/works-box'; // eslint-disable-line no-unused-vars (function( $ ) { // eslint-disable-line no-unused-vars 'use strict'; /** * All of the code for your public-facing Jav...
example/src/pages/MapProps.js
ethanselzer/react-touch-position
import React, { Component } from 'react'; import { Col, Grid, Jumbotron, Row } from 'react-bootstrap'; import Helmet from 'react-helmet'; import MapProps from '../components/MapProps'; import Header from '../components/Header'; import 'bootstrap/dist/css/bootstrap.css'; import '../../styles/app.css'; class ...
Realization/frontend/czechidm-acc/src/content/role/RoleSystemTable.js
bcvsolutions/CzechIdMng
import PropTypes from 'prop-types'; import React from 'react'; import uuid from 'uuid'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import _ from 'lodash'; // import { Basic, Advanced, Utils } from 'czechidm-core'; import SearchParameters from 'czechidm-core/src/domain/SearchParamete...
src/svg-icons/editor/format-align-justify.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatAlignJustify = (props) => ( <SvgIcon {...props}> <path d="M3 21h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18V7H3v2zm0-6v2h18V3H3z"/> </SvgIcon> ); EditorFormatAlignJustify = pure(EditorFormatAl...
common/components/NotFound.js
amitpaperg/roadmap-planner
import React from 'react' import Helmet from 'react-helmet' const NotFound = () => ( <div> <Helmet title='Not Found' /> <h1>Page Not Found!</h1> </div> ) export default NotFound
client/pc/src/components/Admin/ClassAdmin.js
CongYunan/course_attendance
// 加载 React 相关组件 import React, { Component } from 'react'; // 加载 AntD 相关组件 import { Button, notification, Spin, Modal, Form, Input, Select } from 'antd'; // 加载自定义组件 import CommonTable from '../CommonTable'; // 加载自定义工具集 import { checkMapData } from '../../tools/Check'; // 加载 React-Redux 组件 import { connect } from 'react...
react-native solution/index.android.js
renolmachado/React-native-upload-image-to-nodejs
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import App from './components/App.js'; export default class UploadImageProject extends Component { render() { return ( <View style={styles.container}> <App/> </View> ); }...
portfolio/React_learnings/charlottes_web/client/index.js
joshua-fogg/joshua-fogg.github.io
import React from 'react' import ReactDOM from 'react-dom' import App from './App.jsx' const message = { text: "Future home of Charlotte's web" } ReactDOM.render( < App message = { message } />, document.getElementById('root') )
src/js/components/acl/update_permission_button.js
working-minds/realizejs
import React, { Component } from 'react'; import PropTypes from '../../prop_types'; import { Button } from '../../components'; export default class UpdatePermissionButton extends Component { static propTypes = { name: PropTypes.string, className: PropTypes.string, clearTheme: PropTypes.bool, element...
src/pages/index.js
wdavidw/node-csv-docs
import React from 'react' import { Link } from 'gatsby' import { MIN_TABLET_MEDIA_QUERY, TABLET_MEDIA_QUERY, } from 'typography-breakpoint-constants' // Local import Layout from '../layout' import convert_icon from '../images/convert.svg' // Syntax import { PrismLight as SyntaxHighlighter } from 'react-syntax-high...
src/index.js
smourph/fluffyroll
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorkerRegistration from './serviceWorkerRegistration'; import reportWebVitals from './reportWebVitals'; ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getE...
src/index.js
petercm/measurements-tally
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/svg-icons/action/https.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHttps = (props) => ( <SvgIcon {...props}> <path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-...
src/main.js
GKotsovos/WebBanking-Front-End
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import Application from './Application' const $ = require('jquery') window.jQuery = $ window.$ = $ require('bootstrap/dist/css/bootstrap.min.css') require('bootstrap/dist/js/bootstrap.min.js') require('font-awesome/...
src/pages/color-picker.js
getinsomnia/website
import React from 'react'; import { BlockPicker } from 'react-color'; const popUpColorPickerStyle = hex => ({ container: { position: 'relative', display: 'block', }, color: { width: '28px', height: '14px', borderRadius: '2px', background: hex, }, label: { margin: '0px 0px 0px 12px...
src/js/ui/app/index.js
bastuijnman/carpi
import React from 'react'; import ReactDOM from 'react-dom'; import { HashRouter as Router, Route } from 'react-router-dom'; import MusicPage from './pages/music'; import DashboardPage from './pages/dashboard'; const style = { backgroundImage: 'linear-gradient(-180deg, rgba(255,255,255,0.50) 0%, rgba(0,0,...
src/customSemanticInputs/Checkbox.js
panderalabs/redux-form-semantic
// @flow import React from 'react'; import { Checkbox as SemanticCheckbox } from 'semantic-ui-react'; import type { FieldProps } from 'redux-form'; import { INPUT_TYPES } from '../constants'; type Props = { label: string, } & FieldProps; const Checkbox = ({ input, label, ...rest }: Props) => ( <SemanticChec...
src/components/video-list-item.js
amaljoyc/react-tube
import React from 'react'; const VideoListItem = ({video, onVideoSelect}) => { const imgUrl = video.snippet.thumbnails.default.url; const title = video.snippet.title; return ( <li onClick={() => onVideoSelect(video)} className="list-group-item"> <div className="video-list media"> <div classNam...
docs/src/app/components/pages/components/Dialog/ExampleModal.js
lawrence-yu/material-ui
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; /** * A modal dialog can only be closed by selecting one of the actions. */ export default class DialogExampleModal extends React.Component { sta...
src/icons/font/StreetViewIcon.js
skystebnicki/chamel
import React from 'react'; import PropTypes from 'prop-types'; import FontIcon from '../../FontIcon'; import ThemeService from '../../styles/ChamelThemeService'; /** * StreetView button * * @param props * @param context * @returns {ReactDOM} * @constructor */ const StreetViewIcon = (props, context) => { let t...
docs/site/src/demos/tabs/IconLabelTabs.js
und3fined/material-ui
// @flow weak import React, { Component } from 'react'; import Paper from 'material-ui/Paper'; import Tabs from 'material-ui/Tabs'; import Tab from 'material-ui/Tabs/Tab'; import PhoneIcon from 'material-ui/svg-icons/phone'; import FavoriteIcon from 'material-ui/svg-icons/favorite'; import PersonPinIcon from 'material...
packages/material-ui-icons/src/LocalPrintshop.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z" /></g> , 'LocalPrintshop');
app/containers/BootStrap/BSButtonDefault/index.js
perry-ugroop/ugroop-react-dup2
/** * Created by Yang on 17/11/16. */ import React from 'react'; const BSButtonDefault = (props) => <button onClick={props.onClick} className={`btn btn-default ${props.className}`}> {props.children} </button>; BSButtonDefault.propTypes = { className: React.PropTypes.any, children: React.PropTypes.any, onClic...
app/components/distance.js
sirbrillig/voyageur-js-client
import React from 'react'; import { connect } from 'react-redux'; import classNames from 'classnames'; import { getAddressPairs, sumUnlessNull, getCachedDistanceForPair, getAddressesForTrip } from 'lib/helpers'; import { fetchDistanceBetween, changeUnits } from 'lib/actions/trip'; import DistanceNumber from 'components...
src/PowerSelect/BeforeOptionsWrapper.js
selvagsz/react-power-select
import React, { Component } from 'react'; import AutoResizeInput from '../AutoResizeInput'; export default function BeforeOptionsWrapper({ searchEnabled, onChange, beforeOptionsComponent, searchPlaceholder, searchInputAutoFocus, ...otherProps }) { let BeforeOptionsComponent = beforeOptionsComponent; re...
src/js/app.js
training4developers/react_redux_12122016
/* @flow */ import React from 'react'; import ReactDOM from 'react-dom'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { refreshCars, addCar, deleteCar } from './actions/car-actions'; import 'bootstrap-loader'; import '../css/styles.scss'; import { CarTool } from './compo...
example/example.js
111StudioKK/react-simpleform
import React from 'react'; import { render } from 'react-dom'; import Form, { Boolean, Buttons, Calendar, Checkboxes, Input, Select, Tags, Yup } from '../src/index.js'; //var App = React.createClass({ class App extends React.Component { constructor(props) { super(props); this.state = { schema: Yup...
imports/router/Router.js
RGaldamez/MeteorReactScaffold
import React from 'react'; import { BrowserRouter, Route } from 'react-router-dom'; import Index from './../ui/index.js'; class Router extends React.Component { render() { return ( <BrowserRouter> <Route path="/" component= {Index}/> </BrowserRouter> ) } ...
maodou/events/client/components/event.js
LIYINGZHEN/meteor-react-redux-base
import React from 'react'; import Loading from 'client/components/common/loading'; import moment from 'moment'; export default (props) => { return ( <div className="container" style={{ paddingTop: '60px'}}> <div className="row"> <div className="col-lg-12"> { props.event ? ...
templates/react-redux/app/containers/Root.js
grvcoelho/starhopper
import React from 'react' import { Provider } from 'react-redux' import App from './App' import DevTools from './DevTools' const Root = ({ store }) => ( <Provider store={store}> <div> <App /> <DevTools /> </div> </Provider> ) export default Root
src/esm/components/action/button-with-tooltip/index.js
KissKissBankBank/kitten
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["className", "children", "tooltipText", "buttonProps", "tooltipProps", "position"]; import React from 'react'; import styled, { keyframes } from 'style...
imports/startup/client/index.js
baiyalong/score
import { Meteor } from 'meteor/meteor'; import React, { Component } from 'react'; import { render } from 'react-dom'; import { renderRoutes } from './routes.js'; import { Session } from 'meteor/session'; import Wx from '../../ui/Wx'; Meteor.startup(() => { if (isWx()) render(<Wx />, document.getEl...
App/Components/Post/index.js
BelinChung/react-native-hiapp
import React from 'react' import connect from 'redux-connect-decorator' import PropTypes from 'prop-types' import config from '@Config' import Icon from '../Icon' import t from '@Localize' import ParsedText from 'react-native-parsed-text' import { getRemoteAvatar } from '@Utils' import { formatDistance } from 'date-fns...
src/components/employee/EmployeeTableRow.js
GHImplementationTeam/FrontEnd
import Checkbox from 'material-ui/Checkbox'; import MenuItem from 'material-ui/MenuItem'; import SelectField from 'material-ui/SelectField'; import { TableRow, TableRowColumn } from 'material-ui/Table'; import PropTypes from 'prop-types'; import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; ...
docs/src/example_components.js
mberneti/react-datepicker2
import React from 'react'; import hljs from 'highlight.js'; import CodeExampleComponent from './code_example_component'; import Highlight from 'react-syntax-highlight'; import Default from './examples/default'; import Jalaali from './examples/jalaali'; import HideTodayButton from './examples/HideTodayButton'; import D...
src/components/Alert/alert.js
emsiengineering/emsi-ui
import cx from 'classnames'; import CSSModules from 'react-css-modules'; import React from 'react'; import BlockText from '../BlockText'; import Card from '../Card'; import CardBody from '../CardBody'; import CSS from './alert.styl'; import Text from '../Text'; type Props = { children: any, title: string, type?...
src/components/Navigation.js
lxanders/react-clientside-example
import React from 'react'; import { Navbar, Nav, NavItem, Image } from 'react-bootstrap'; import { Link } from 'react-router'; import { LinkContainer, IndexLinkContainer } from 'react-router-bootstrap'; const Navigation = () => { const githubLink = 'https://github.com/lxanders/react-clientside-example'; const ...
src/containers/PTOPage/PTOPage.js
armaniExchange/shield
// Style import './_PTOPage'; // React & Redux import React, { Component } from 'react'; class PTOPage extends Component { render() { return ( <section>PTO Page</section> ); } } export default PTOPage;
weather-app/src/components/google_map.js
murielg/react-redux
import React, { Component } from 'react'; class GoogleMap extends Component { componentDidMount() { new google.maps.Map(this.refs.map, { zoom: 12, center: { lat: this.props.lat, lng: this.props.lon } }); } render() { return ( //this.refs.map to reference dir...
app/components/toast/lib/Toast.js
river-lee/react-group
'use strict'; import React, { Component } from 'react'; import './Toast.scss'; export default class Toast extends Component { render(){ let { message,show } = this.props; if(!message){ return null; } return ( <div className={'ymt-toast '+(show?' show':'')} show = { show }> { message } ...
cm19/ReactJS/your-first-react-app-exercises-master/exercise-11/FriendProfile.js
Brandon-J-Campbell/codemash
import React from 'react'; import Card from './Card'; import './FriendProfile.css' export default function FriendProfile({ name, image }) { return ( <Card> <div className="friend-profile"> <img src={image} alt={name} /> <h3>{name}</h3> </div> </Card> ); }
6.0.0-rc.1/examples/wizard/dist/bundle.js
erikras/redux-form-docs
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}([function(e,t,n){n(269),e.exports=n(268)},function(e,t,n){var r=n(5),o=n(32),i=n(18),a=n(20),u=n(36),s="prototype",...
src/components/EndGameModal/index.js
albertfdp/battleship
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { getResults, isGameOver } from 'selectors/ResultSelectors'; import { connect } from 'react-redux'; import { List } from 'immutable'; import AriaModal from 'react-aria-modal'; import styles from './styles.css'; class EndGameModal e...
src/components/AddItemLauncher.js
danlevine/rainchecks
import React, { Component } from 'react'; import { connect } from 'react-redux'; import AddItem from './AddItem'; import * as actions from '../actions'; class AddItemLauncher extends Component { render () { const { isAddFormActive, activateAddItem, cancelAddItem } = this.props; if (!isAddFormActive) { ...
examples/index.vr.js
Centroida/CentroUI
import React from 'react'; import {AppRegistry, View} from 'react-vr'; import CnContainer from '../components/core/container'; export default class Example extends React.Component { render() { return ( <View> <CnContainer> </CnContainer> </View> ...
src/svg-icons/maps/tram.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsTram = (props) => ( <SvgIcon {...props}> <path d="M19 16.94V8.5c0-2.79-2.61-3.4-6.01-3.49l.76-1.51H17V2H7v1.5h4.75l-.76 1.52C7.86 5.11 5 5.73 5 8.5v8.44c0 1.45 1.19 2.66 2.59 2.97L6 21.5v.5h2.23l2-2H14l2 2h...
docs/site/src/demos/selection-controls/Checkboxes.js
und3fined/material-ui
// @flow weak import React, { Component } from 'react'; import { LabelCheckbox } from 'material-ui/Checkbox'; import { FormGroup } from 'material-ui/Form'; export default class Checkboxes extends Component { state = { checkedA: true, checkedB: false, }; render() { return ( <FormGroup row> ...
techCurriculum/ui/solutions/4.3/src/components/CardForm.js
AnxChow/EngineeringEssentials-group
/** * Copyright 2017 Goldman Sachs. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
src/localization/inlineComponents.js
codeforboston/cliff-effects
import React from 'react'; import { Icon } from 'semantic-ui-react'; import { ExternalLink } from './../components/ExternalLink'; import { contributors } from './contributors'; /** @name inlineComponents * @description Contains inline components that can be * substituted into translations using the interpolation...
node_modules/react-router/es6/RouteContext.js
rogerio-toledo/Weather-Forecast
import warning from './routerWarning'; import React from 'react'; var object = React.PropTypes.object; /** * The RouteContext mixin provides a convenient way for route * components to set the route in context. This is needed for * routes that render elements that want to use the Lifecycle * mixin to prevent trans...
src/svg-icons/image/photo-album.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoAlbum = (props) => ( <SvgIcon {...props}> <path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4zm0 15l3-3.86 2.14 2.58 3-3.86L18 19H6z"/> </Sv...
src/js/components/icons/base/TopCorner.js
odedre/grommet-final
/** * @description TopCorner SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @...
packages/material-ui-icons/src/AllOut.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let AllOut = props => <SvgIcon {...props}> <path d="M16.21 4.16l4 4v-4zm4 12l-4 4h4zm-12 4l-4-4v4zm-4-12l4-4h-4zm12.95-.95c-2.73-2.73-7.17-2.73-9.9 0s-2.73 7.17 0 9.9 7.17 2.73 9.9 0 2.73-7.16 0-9.9zm-1.1 8.8...
packages/editor/src/components/Icons/AlignJustify.js
boldr/boldr
import React from 'react'; import Icon from './Icon'; const AlignJustify = props => ( <Icon viewBox="0 0 448 512" {...props}> <path d="M0 84V44c0-8.837 7.163-16 16-16h416c8.837 0 16 7.163 16 16v40c0 8.837-7.163 16-16 16H16c-8.837 0-16-7.163-16-16zm16 144h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-...
app/javascript/mastodon/features/status/components/card.js
kagucho/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import punycode from 'punycode'; const IDNA_PREFIX = 'xn--'; const decodeIDNA = domain => { return domain .split('.') .map(part => part.indexOf(IDNA_PREFIX) === 0 ? punycode.decode(part.slice(IDNA_PREFIX.length)) : part) ...
client/js/containers/ProfileCardContainer.js
SqrAK/journal
import React, { Component } from 'react'; import { connect } from 'react-redux'; import ProfileCard from '../components/ProfileCard.js'; const mapStateToProps = (state) => { return { user: state.user }; } export default connect(mapStateToProps)(ProfileCard);
project/src/scenes/Blog/components/ArticleTitle/ArticleTitle.js
boldr/boldr
/* @flow */ import React from 'react'; import styled from 'styled-components'; import cx from 'classnames'; import Heading from '@boldr/ui/Heading'; import { StyleClasses } from '@boldr/ui/theme/styleClasses'; const TitleWrapper = styled.div` text-transform: uppercase; padding-top: 150px; text-align: center; m...
webapp/app/components/EditUser/Form/index.js
EIP-SAM/SAM-Solution-Node-js
// // Component form page edit user // import React from 'react'; import Username from 'containers/EditUser/Form/Username'; import Email from 'containers/EditUser/Form/Email'; import Password from 'containers/EditUser/Form/Password'; import PasswordConfirmation from 'containers/EditUser/Form/PasswordConfirmation'; imp...
src/components/ListItem.js
dlindahl/stemcell
import React from 'react' import Text from './Text' const ListItem = (props) => <Text as="li" {...props}/> export default ListItem
frontend/src/components/EditProfile.js
textilemuseum/spinningjenny
import React from 'react' // components import Button from 'material-ui/Button' import Checkbox from 'material-ui/Checkbox' import Grid from 'material-ui/Grid' import Fade from 'material-ui/transitions/Fade' import FormControl from 'material-ui/Form/FormControl' import FormControlLabel from 'material-ui/Form/FormContro...
src/comments/comment/index.js
ChDeinert/react-katas
import React from 'react'; import PropTypes from 'prop-types'; const Comment = ({ commentItem }) => ( <div className="comments__item"> <div className="comments__item-head"> <span className="comments__item-head__name"> {commentItem.name} </span> <span className="comments__item-head__mail...