path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
App/Register.js
adnanhemani/RideApp
import NavigationBar from 'react-native-navbar' 'use strict'; import React, { Component } from 'react'; import { Platform, TouchableHighlight, TouchableNativeFeedback, } from "react-native" import { StyleSheet, Text, View, Navigator, TextInput, Picker, ScrollView, Alert, } from 'react-native' var...
src/components/LinkToken/LinkToken.js
pmg1989/lms_mobile
import React from 'react' import PropTypes from 'prop-types' import { Link } from 'react-router' import { queryString } from 'utils/tools' const LinkToken = ({ children, to, ...props }) => { const symbol = to.includes('?') ? '&' : '?' const mobile = queryString('mobile') const token = queryString('token') if (...
examples/counter/containers/CounterApp.js
wescravens/redux-devtools
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Counter from '../components/Counter'; import * as CounterActions from '../actions/CounterActions'; class CounterApp extends Component { render() { const { counter, dispatch } = this...
examples/basic-grid/SortableItem.js
danielstocks/react-sortable
import React from 'react' import { sortable, HORIZONTAL } from '../../src' class Item extends React.Component { render() { return ( <li {...this.props} style={{ background: this.props.children }}> <span>{this.props.children}</span> </li> ) } } export default sortable(Item, HORIZONTAL)
src/index.js
b4stien/csvtoximport
import React from 'react'; import ReactDOM from 'react-dom'; // import ReactMini from 'react-mini-router'; import MainApp from './app'; // import About from './pages/about'; // var App = React.createClass({ // mixins: [ReactMini.RouterMixin], // routes: { // '/': 'home', // '/about': 'about' // }, /...
stories/Undo/CustomUndoEditor/index.js
dagopert/draft-js-plugins
import React, { Component } from 'react'; import { EditorState } from 'draft-js'; import Editor from 'draft-js-plugins-editor'; import createUndoPlugin from 'draft-js-undo-plugin'; import editorStyles from './editorStyles.css'; import buttonStyles from './buttonStyles.css'; const theme = { undo: buttonStyles.button,...
examples/02 Drag Around/Custom Drag Layer/index.js
jowcy/react-dnd
import React, { Component } from 'react'; import Container from './Container'; import CustomDragLayer from './CustomDragLayer'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd/modules/backends/HTML5'; @DragDropContext(HTML5Backend) export default class DragAroundCustomDragLayer extends...
app/Forms/AddReview.js
jbrod22/music-market-master
import React from 'react' import { connect } from 'react-redux' import { saveReview } from '../action-creators/reviewsActionCreator' class AddReview extends React.Component { constructor(props) { super(props); this.state = { numStars: 0, reviewText: '' } this.handleRatingInput = this.ha...
docs/app/Examples/views/Item/index.js
mohammed88/Semantic-UI-React
import React from 'react' import Content from './Content' import Types from './Types' import Variations from './Variations' const ItemExamples = () => ( <div> <Types /> <Content /> <Variations /> </div> ) export default ItemExamples
examples/todomvc/containers/App.js
AnthonyWhitaker/redux-devtools
import React, { Component } from 'react'; import TodoApp from './TodoApp'; import { createStore, combineReducers, compose } from 'redux'; import { devTools, persistState } from 'redux-devtools'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; import { Provider } from 'react-redux'; import *...
src/index.js
alexkuz/react-json-tree
// ES6 + inline style port of JSONViewer https://bitbucket.org/davevedder/react-json-viewer/ // all credits and original code to the author // Dave Vedder <veddermatic@gmail.com> http://www.eskimospy.com/ // port by Daniele Zannotti http://www.github.com/dzannotti <dzannotti@me.com> import React from 'react'; import P...
src/js/components/meter/Spiral.js
odedre/grommet-final
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React from 'react'; import classnames from 'classnames'; import { baseUnit, translateEndAngle, arcCommands } from '../../utils/Graphics'; import CSSClassnames from '../../utils/CSSClassnames'; import { baseDimension } from './utils'; import Gr...
packages/xo-web/src/common/resource-set-quotas.js
vatesfr/xo-web
import _, { messages } from 'intl' import ChartistGraph from 'react-chartist' import PropTypes from 'prop-types' import React from 'react' import { Card, CardBlock, CardHeader } from 'card' import { Container, Row, Col } from 'grid' import { forEach, map } from 'lodash' import { injectIntl } from 'react-intl' import C...
src/front-end/js/components/TopNavbar.js
aleksey-gonchar/challenge-zenbrook
import React from 'react' import UserNavbar from './UserNavbar.js' import { Link } from 'react-router' import { Nav, Navbar, CollapsibleNav } from 'react-bootstrap' import { NavItemLink } from 'react-router-bootstrap' NavItemLink.contextTypes = Object.assign(NavItemLink.contextTypes, { router: React.PropTypes.objec...
src/containers/InboxAll.js
metasfresh/metasfresh-webui-frontend
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import Container from '../components/Container'; import Inbox from '../components/inbox/Inbox'; const mapStateToProps = (state) => ({ inbox: state.appHandler.inbox, processStatus: state.appHandler....
packages/@vega/layout/src/components/VenueConfigCheck.js
VegaPublish/vega-studio
// @flow import React from 'react' import {combineLatest} from 'rxjs' import {map} from 'rxjs/operators' import {currentVenue$} from 'part:@vega/datastores/venue' import withPropsStream from '@vega/utils/lib/withPropsStream' import styles from './styles/VenueConfigCheck.css' // Load stages and render dots for each art...
src/docs/ComponentPage.js
ggrumbley/ghg-react
import React from 'react'; import PropTypes from 'prop-types'; import Example from './Example'; import Props from './Props'; const ComponentPage = ({component}) => { const {name, description, props, examples} = component; return ( <div className="componentpage"> <h2>{name}</h2> <p>{description}</p...
src/pages/bookmarks.js
JoshBarr/joshbarr.github.io
import React from 'react' import { Link } from 'gatsby' import Layout from '../components/layout' import SEO from '../components/seo' const Bookmarks = ({ data: { allBookmarksYaml: { edges, group }, }, }) => ( <Layout theme="theme--light"> <SEO title="Bookmarks" /> <div className="container generic-...
src/components/RecommendedPosts/index.js
evandromacedo/evandromacedo.com
import React from 'react' import PropTypes from 'prop-types' import * as S from './styled' const RecommendedPosts = ({ next, previous }) => { if (!next && !previous) { return null } return ( <S.RecommendedPostsWrapper hasNext={next} hasPrevious={previous}> {previous && ( <S.RecommendedPost...
app/javascript/mastodon/features/direct_timeline/index.js
im-in-space/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import { mountConversations, unmountConversations, expandConversations } from '../../actions/conversations'; impo...
src/modules/Audio/components/EffectBank/index.js
ruebel/synth-react-redux
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { connect } from 'react-redux'; import { addEffect, removeEffect, reorderEffects, setEffectSettings } from '../../actions'; import AddEffect from './AddEffect'; import Effects, { defaultSettings } from ...
src/post/actionButtons/LikeButton.js
Sekhmet/busy
import React from 'react'; import { FormattedMessage } from 'react-intl'; import Icon from '../../widgets/Icon'; const LikeButton = ({ onClick, active, numberOfVotes, layout }) => { const isCardLayout = layout === 'card'; const isListLayout = layout === 'list'; return ( <div> <a onClick={onClic...
src/components/Header/Header.js
dannyrdalton/example_signup_flow
import React from 'react' import { IndexLink, Link } from 'react-router' import './Header.scss' export const Header = () => ( <div> <h1>Example Signup Flow</h1> <Link to='/pinfo' activeClassName='route--active'> Start Signup </Link> </div> ) export default Header
src/js/components/input/datefilter/input_datefilter_body.js
rafaelfbs/realizejs
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import PropTypes from '../../../prop_types'; import i18n from '../../../i18n'; import { autobind, mixin } from '../../../utils/decorators'; import { compact } from 'lodash'; import { Button, Input, } from '../../../components'; import { C...
src/components/common/LoadingIcon.js
golle404/book-trade
import React from 'react'; const LoadingIcon = () => { return ( <div className="loading-icon" /> ); }; export default LoadingIcon;
src/utils/mui-fix-mixin.js
andrewMuntyan/simple-how-to
import ThemeManager from 'material-ui/lib/styles/theme-manager'; import LightRawTheme from 'material-ui/lib/styles/raw-themes/light-raw-theme'; import React from 'react'; const mUiContextsFixMixin = { //for passing default theme context to children childContextTypes: { muiTheme: React.PropTypes.object }, ...
src/svg-icons/social/sentiment-dissatisfied.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSentimentDissatisfied = (props) => ( <SvgIcon {...props}> <circle cx="15.5" cy="9.5" r="1.5"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 1...
src/pages/estratosfera.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Estratosfera' /> )
docs/src/app/components/pages/components/Slider/ExampleControlled.js
rscnt/material-ui
import React from 'react'; import Slider from 'material-ui/Slider'; export default class SliderExampleControlled extends React.Component { state = { firstSlider: 0.5, secondSlider: 50, } handleFirstSlider(event, value) { this.setState({firstSlider: value}); } handleSecondSlider(event, value) {...
src/App.js
jollopre/beverage_planning
import React, { Component } from 'react'; import { BrowserRouter as Router, Route, Switch, Redirect } from 'react-router-dom'; import Header from './components/header'; import Bars from './containers/bars'; import BarContainer from './containers/barContainer'; import RoundContainer from './containers/roundContainer...
client/src/assets/images/AmazonLogo.js
jonathanihm/freeCodeCamp
/* eslint-disable max-len */ import React from 'react'; const propTypes = {}; function SpotifyLogo(props) { return ( <svg id='amazon-logo' viewBox='93.907 230.751 1400 572' xmlns='http://www.w3.org/2000/svg' xmlnsXlink='http://www.w3.org/1999/xlink' {...props} fill='var(--qua...
app/javascript/mastodon/features/direct_timeline/components/column_settings.js
riku6460/chikuwagoddon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import SettingText from '../../../components/setting_text'; const messages = defineMessages({ filter_regex: { id: 'home...
react/src/base/inputs/SprkSelect/SprkSelect.js
sparkdesignsystem/spark-design-system
import React from 'react'; import classNames from 'classnames'; import PropTypes from 'prop-types'; import uniqueId from 'lodash/uniqueId'; class SprkSelect extends React.Component { constructor(props) { super(props); this.state = { choiceItems: props.choices.map((item) => ({ id: uniqueId(), ...item })...
components/Hero/index.js
incodeit/incodeit.github.io
import React from 'react' import style from './Hero.module.css' import ButtonLink from '../ButtonLink' const Hero = () => ( <section className={style.hero}> <header className={style.header}> <div className={style.container}> <h1 className={style.title}>We build <strong>web</strong>, <strong>apps</...
src/components/WeatherIcons/SunBig.js
Cirych/WeatherApp
import React from 'react'; export const SunBig = ({ color = 'yellow' }) => <g id="sunBig"> <ellipse id="coreBig" fill={color} stroke="none" strokeWidth="5000" cx="318500" cy="318500" rx="158751" ry="158752" /> <g id="raysBig" stroke={color} strokeWidth="50000" strokeLinecap="...
docs/src/pages/components/buttons/ButtonSizes.js
lgollut/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Button from '@material-ui/core/Button'; import IconButton from '@material-ui/core/IconButton'; import DeleteIcon from '@material-ui/icons/Delete'; import ArrowDownwardIcon from '@material-ui/icons/ArrowDownward'; const useStyles =...
packages/editor/src/components/Icons/ListUl.js
boldr/boldr
import React from 'react'; import Icon from './Icon'; const ListUl = props => ( <Icon viewBox="0 0 512 512" {...props}> <path d="M96 96c0 26.51-21.49 48-48 48S0 122.51 0 96s21.49-48 48-48 48 21.49 48 48zM48 208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm0 160c-26.51 0-48 21.49-48 48s21...
src/scripts/components/header/header.js
benvoluto/react-webpack-fetch
import React from 'react'; import style from './header.scss'; export default function Header() { return ( <div className="header" style={style}> <div className="title"> A List </div> </div> ); }
src/svg-icons/editor/vertical-align-top.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorVerticalAlignTop = (props) => ( <SvgIcon {...props}> <path d="M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"/> </SvgIcon> ); EditorVerticalAlignTop = pure(EditorVerticalAlignTop); EditorVerticalAlignTop.dis...
src/js/components/Header.js
react-beer/the-beer-store-react-es6-firebase-oauth
import React from 'react'; import GitHubFork from './GitHubFork'; import { Row, Col } from 'react-bootstrap'; class Header extends React.Component { render() { return ( <div> <GitHubFork /> <header className="header"> <Row> <Col md={6} mdOffset={3}> <...
client/views/admin/rooms/EditRoomContextBar.js
VoiSmart/Rocket.Chat
import React from 'react'; import NotAuthorizedPage from '../../../components/NotAuthorizedPage'; import { usePermission } from '../../../contexts/AuthorizationContext'; import EditRoomWithData from './EditRoomWithData'; function EditRoomContextBar({ rid }) { const canViewRoomAdministration = usePermission('view-roo...
SQL/client/src/components/dumb/Container/index.js
thebillkidy/MERGE-Stack
import React from 'react'; export default class Container extends React.Component { static propTypes = { width: React.PropTypes.number, isCentered: React.PropTypes.bool, isBackground: React.PropTypes.bool, isNoPadding: React.PropTypes.bool } render() { var style = {}...
20161207/RN-router/rn/components/list/index.js
fengnovo/react-native
'use strict'; import React from 'react'; import { View, Text, TouchableOpacity, InteractionManager } from 'react-native'; import ScrollableTabView, { ScrollableTabBar } from 'react-native-scrollable-tab-view'; class Index extends React.Component { constructor (props, context) { super(pro...
src/data-fields/text-data-field.js
apconic/aos-forms
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import TextField from 'material-ui/TextField'; import { trim } from 'lodash'; export default class TextDataField extends Component { static propTypes = { className: PropTypes.string, defaultValue: PropTypes.any, disabled: PropT...
src/components/VisualPicker/VisualPickerTileIcon.js
propertybase/react-lds
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { Icon } from '../Icon'; const VisualPickerTileIcon = ({ className, icon, sprite }) => { const figureClasses = [ 'slds-visual-picker__figure', 'slds-visual-picker__icon', { 'slds-visual-picker__text': false...
demos/demo1/index.js
woodenconsulting/react-js-diagrams
import React from 'react'; import ReactDOM from 'react-dom'; import * as RJD from '../../src/main'; import '../test.scss'; /** * * Simple test showing the Object oriented way of using this library. * It creates 2 nodes and links them together with a single link * */ class Demo1 extends React.Component { constru...
src/components/BankButton.js
dkadrios/zendrum-stompblock-client
import React from 'react' import PropTypes from 'prop-types' import { Button } from '@material-ui/core' const BankButton = ({ bank, selectedBank, onClick }) => ( <Button mini variant="contained" color={bank === selectedBank ? 'primary' : 'secondary'} onClick={() => onClick(bank)} > Bank {String...
docs/src/Routes.js
Sipree/react-bootstrap
import React from 'react'; import {IndexRoute, Route} from 'react-router'; import ComponentsPage from './ComponentsPage'; import GettingStartedPage from './GettingStartedPage'; import HomePage from './HomePage'; import IntroductionPage from './IntroductionPage'; import NotFoundPage from './NotFoundPage'; import Root f...
src/svg-icons/navigation/arrow-drop-down-circle.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowDropDownCircle = (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 2zm0 12l-4-4h8l-4 4z"/> </SvgIcon> ); NavigationArrowDropDownCircle =...
src/parser/priest/discipline/modules/items/MarchOfTheLegion.js
FaideWW/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import Analyzer from 'parser/core/Analyzer'; import ItemHealingDone from 'interface/others/ItemHealingDone'; import isAtonement from '../...
private/storybook/config.js
SIB-Colombia/biodiversity_catalogue_v2_frontend
// https://github.com/diegohaz/arc/wiki/Storybook import React from 'react' import { configure, addDecorator } from '@kadira/storybook' import { BrowserRouter } from 'react-router-dom' import { ThemeProvider } from 'styled-components' import theme from 'components/themes/default' const req = require.context('component...
src/routes.js
CrossNJU/Languist
/** * 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 Router from 'react-routi...
client/components/Nav/MobileFooterNav/MobileFooterNav.js
ncrmro/reango
import React from 'react' import IconToggle from 'react-mdc-web/lib/IconToggle/IconToggle' import styles from './MobileFooterNav.scss' import { HomeLink } from '../Nav' import withRouter from 'react-router-dom/es/withRouter' class MobileFooterNav extends React.Component { constructor(props: Object) { super(prop...
src/components/Post/index.js
fathomlondon/fathomlondon.github.io
import React from 'react'; import PropTypes from 'prop-types'; import { ReadingTime } from '../ReadingTime'; export function Post({ url, title, hero, author, date, excerpt, type, timeToRead, isNotLast, }) { return ( <figure className={`grid ${isNotLast && 'mb4 mb5-m'}`}> <div className="grid-item w-10 p...
examples/docs/src/Containers/Root.js
react-material-design/react-material-design
import React from 'react'; import jsxToString from 'jsx-to-string'; import Playground from 'component-playground'; import { Button, Card, CardActions, CardMediaItem, CardSupportingContent } from 'react-material-design'; const corgiPic2 = 'https://static.pexels.com/photos/58997/pexels-photo-58997.jpeg'; const styles2 =...
src/Layout/IntlCommonLayout.js
ant-design/scaffold-market
import React from 'react'; import { IntlProvider, addLocaleData } from 'react-intl'; import moment from 'moment'; import CommonLayout from './CommonLayout'; import { isLocaleZhCN } from '../utils'; import zhCN from '../locale/zh-CN'; import enUS from '../locale/en-US'; addLocaleData([...zhCN.data, ...enUS.data]); cla...
src/pages/blog.js
mrozilla/mrozilla.cz
// ───────────────────────────────────────────────────────────────────────────── // import // ───────────────────────────────────────────────────────────────────────────── import React from 'react'; import { graphql } from 'gatsby'; import { RootContainer, BlogPreviewsContainer, SEOContainer } from '~containers'; imp...
src/views/ReviewSettings/index.js
halo-design/halo-optimus
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { Table, Button, Modal } from 'antd' import InputSearch from 'COMPONENT/InputSearch' import DetailBox from './DetailBox' import RelSetBox from './RelSetBox' import Spin from 'COMPONENT/effects/Spin' import ...
src/ModalTitle.js
rapilabs/react-bootstrap
import React from 'react'; import classnames from 'classnames'; class ModalTitle extends React.Component { render() { return ( <h4 {...this.props} className={classnames(this.props.className, this.props.modalClassName)}> { this.props.children } </h4> ); } } ModalTitle.propTypes = { /...
[2]. Demo_RN/[18]. wineList_demo/index.ios.js
knightsj/RN_Demo
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, ScrollView, Image, ListView, TouchableOpacity, AlertIOS, } from 'react-native'; var Dimensions = require('Dimensions'); var...
src/icons/IosCameraOutline.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosCameraOutline extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M417.5,160h-61.7c-32.1-36-42.2-48-54.5-48h-88.5c-12.3,0-22.2,12-54.5,48H145v-16h-34v16H97.5C79.9,160,64,173...
src/Home.js
DangrMiao/House
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ 'use strict'; import React, { Component } from 'react'; import { StyleSheet, View, Text, Image, TextInput, ScrollView, Navigator, Dimensions, ListView, StatusBar, ToolbarAndroid, Inter...
components/Homepage/Intro.js
poeti8/findrap.xyz
import React from 'react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; const Intro = () => <ReactCSSTransitionGroup className="intro-title" component="section" transitionName="intro" transitionAppear={true} transitionAppearTimeout={1500} transitionEnter={false} ...
UQFlix/src/UQFlix/app/components/Header.js
matthew-lake/UQFlix
import React from 'react'; import IconMenu from 'material-ui/IconMenu'; import IconButton from 'material-ui/IconButton'; import FontIcon from 'material-ui/FontIcon'; import NavigationExpandMoreIcon from 'material-ui/svg-icons/navigation/expand-more'; import MenuItem from 'material-ui/MenuItem'; import DropDownMenu fro...
src/components/File/Component.js
nickorsk2020/agave-react-UI
/* * This file is part of the "Agave react UI" package * * Copyright (c) 2016 Stepanov Nickolay <nickorsk2020@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * */ import React from 'react'; import { FormGroup,Button,Contro...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/PropsConstructorNoArgs.js
jamesgpearce/flow
// @flow import React from 'react'; class MyComponent extends React.Component { constructor() {} defaultProps: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component { constructor() {} defaultProps: T; static state: T; a: T; ...
packages/pix-web/src/controllers/jobs-popover/index.js
madjam002/pix
import React from 'react' import cx from 'classnames' import {connect} from 'react-redux' import {gql, connectGraph} from 'react-graphql' import {Popover, Position, NonIdealState, Tag, ProgressBar, Intent} from 'ui' import styles from './index.less' const JobsPopover = connect( store => ({ jobs: store.jobs.jobs...
generators/electron/modules/app/components/Home.js
sahat/megaboilerplate
import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './Home.css'; export default class Home extends Component { render() { return ( <div> <div className={styles.container}> <div className={styles.nav}> <h2>Home</h2> <L...
src/components/Navbar/Logo/index.js
easingthemes/notamagic
/** * * Logo * */ import React from 'react'; import { Link } from 'react-router'; import Img from 'components/atoms/Img'; import LogoImg from './images/logo-easingthemes.png'; import './styles.scss'; const Logo = () => ( <div className="navbar-header"> <button type="button" className="navbar-toggle" data...
admin/client/App/screens/List/components/Filtering/ListFiltersAddForm.js
snowkeeper/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import Popout from '../../../../shared/Popout'; import { Filters } from 'FieldTypes'; var ListFiltersAddForm = React.createClass({ propTypes: { field: React.PropTypes.object.isRequired, maxHeight: React.PropTypes.number, onApply: React.PropTyp...
app/components/mesh/index.js
izonder/connect-4
import Style from './style.pcss'; import React from 'react'; import Chip from 'component/chip'; export default class Mesh extends React.Component { static propTypes = { mesh: React.PropTypes.array.isRequired }; generateMesh(mesh) { return mesh.map((row, y) => { return ( ...
app/Components/Atoms/Message/Message.js
martinvarelaaaa/tintina
import React from 'react'; import PropTypes from 'prop-types'; import { View, Text } from 'react-native'; import styles from './styles'; const Message = ({ message }) => ( <View style={styles[message.type]}> <Text style={[styles[`text${message.type}`], styles.text]}> {message.text} </Text> {messag...
ui/src/components/Header/Header.js
vlad-doru/experimento
import React from 'react' import { IndexLink } from 'react-router' import AppBar from 'material-ui/AppBar'; import Drawer from 'material-ui/Drawer'; import Divider from 'material-ui/Divider'; import MenuItem from 'material-ui/MenuItem'; import List from 'material-ui/svg-icons/action/list'; import Add from 'mat...
index.ios.js
Mrsunsunshine/wetland
import React from 'react'; import { AppRegistry } from 'react-native'; import Index from './app/Index'; AppRegistry.registerComponent('wetland',()=>Index);
app/components/global/AccountAvatar.js
soosgit/vessel
// @flow import React, { Component } from 'react'; const { shell } = require('electron'); export default class AccountAvatar extends Component { handleLink = () => { const { name } = this.props; shell.openExternal(`https://steemit.com/@${name}`); } render() { const { name } = this.props; retur...
js/components/Input/Input.js
amostap/react-native-todo
import React from 'react'; import PropTypes from 'prop-types'; import { TextInput } from 'react-native'; import styles from './styles'; import globalStyles from '../../globalStyles'; const Input = ({ style, ...props }) => { const color = globalStyles.colors.transparentWhite; return ( <TextInput {...props...
src/svg-icons/communication/call-received.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCallReceived = (props) => ( <SvgIcon {...props}> <path d="M20 5.41L18.59 4 7 15.59V9H5v10h10v-2H8.41z"/> </SvgIcon> ); CommunicationCallReceived = pure(CommunicationCallReceived); CommunicationCa...
client/src/components/header/Header.js
kvago36/graphql-relay
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { withRouter } from 'react-router'; import { connect } from 'react-redux'; import { Menu, Button } from 'semantic-ui-react'; import { LOGOUT } from '../../auth/AuthConstants'; // Import CSS import './Header.css'; class Header e...
src/components/common/svg-icons/editor/insert-drive-file.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertDriveFile = (props) => ( <SvgIcon {...props}> <path d="M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6H6zm7 7V3.5L18.5 9H13z"/> </SvgIcon> ); EditorInsertDriveFile = pure...
examples/todomvc/containers/TodoApp.js
tchon/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/components/Main.js
michael-lowe-nz/trigMeOnce
import React from 'react' import { Switch, Route } from 'react-router-dom' import Welcome from './Welcome' import Calculator from './Calculator' import About from './About' module.exports = ({ state, dispatch, sideType }) => <Switch> <Route exact path="/" component={Welcome}/> <Route path="/calculator" rend...
envkey-react/src/containers/login_register_container.js
envkey/envkey-app
import React from 'react' import R from 'ramda' import h from "lib/ui/hyperscript_with_helpers" import { connect } from 'react-redux' import { Link } from 'react-router' import { verifyEmailRequest, verifyEmailCodeRequest, resetVerifyEmail, login, register } from 'actions' import { getIsAuthenticating, ge...
app/components/Footer/Footer.js
afonsopacifer/react-pomodoro
'use strict'; import React from 'react'; const Footer = () => ( <footer className="credits"> Made with <span className="heart"></span>by <a href="https://github.com/afonsopacifer" className="link" target="_blank">@afonsopacifer</a> </footer> ); export default Footer;
Example/index.ios.js
JuniusAng/react-native-camera
import React from 'react'; import { AppRegistry } from 'react-native'; import Example from './Example'; AppRegistry.registerComponent('Example', () => Example);
src/App.js
WangCao/react-blog
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.less'; import Router from './router/Route' class App extends Component { render() { return ( <div className="App"> <div className="App-header"> <img src={logo} className="App-logo" alt="logo" /> ...
app/containers/RepoListItem/index.js
akash6190/apollo-starter
/** * RepoListItem * * Lists the name and the issue count of a repository */ import React from 'react'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { FormattedNumber } from 'react-intl'; import { makeSelectCurrentUser } from 'containers/App/selectors'; import...
node_modules/react-router/es/IndexLink.js
ivanhristov92/bookingCalendar
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; }; import React from 'react'; import Link from './Link'; /** *...
src/Col.js
roadmanfong/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import styleMaps from './styleMaps'; import CustomPropTypes from './utils/CustomPropTypes'; const Col = React.createClass({ propTypes: { /** * The number of columns you wish to span * * for Extra small devices Phones (<768px) * ...
src/app/components/Example.js
belfz/react-lion
import React from 'react'; class Example extends React.Component { constructor (props) { super(props); this.props = props; } shouldComponentUpdate (nextProps) { if (nextProps.count % 2 === 0) { console.log('Yup, need to update now, so...'); return true; } else { console.log('No need to update (no...
app/components/Footer/index.js
Third9/mark-one
import React from 'react'; import { FormattedMessage } from 'react-intl'; import A from 'components/A'; import LocaleToggle from 'containers/LocaleToggle'; import Wrapper from './Wrapper'; import messages from './messages'; function Footer() { return ( <Wrapper> <section> <FormattedMessage {...mes...
src/svg-icons/maps/rate-review.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsRateReview = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 14v-2.47l6.88-6.88c.2-.2.51-.2.71 0l1.77 1.77c.2.2.2.51 0 .71L8.47 14H6zm1...
cra-ua-aware-code-splitting/src/components/Product/Light/index.js
GoogleChromeLabs/adaptive-loading
/* * Copyright 2019 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
src/index.js
pskim/pskim.github.io
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/controls/GeolocationControl.js
gribnoysup/react-yandex-maps
import React from 'react'; import PropTypes from 'prop-types'; import { withParentContext } from '../Context'; import withYMaps from '../withYMaps'; import { BaseControl } from './BaseControl'; export function GeolocationControl(props) { return <BaseControl {...props} name="GeolocationControl" />; } if (process.e...
actor-apps/app-web/src/app/components/common/AvatarItem.react.js
Ajunboys/actor-platform
import React from 'react'; import classNames from 'classnames'; class AvatarItem extends React.Component { static propTypes = { image: React.PropTypes.string, placeholder: React.PropTypes.string.isRequired, size: React.PropTypes.string, title: React.PropTypes.string.isRequired }; constructor(pro...
fields/types/file/FileColumn.js
matthieugayon/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var LocalFileColumn = React.createClass({ renderValue: function () { var value = this.props.data.fields[this.props.col.path]; if (!value || !value.filename) ret...
src/components/employeeCheck.js
dhruvdatt/Athena-proj
import React, { Component } from 'react'; export default class itemList extends Component{ render(){ return( <div className="col-md-4" style={{fontWeight:"bold"}}> Is employee.? <div className="pull-right"> <input type="radio" name="chkEmployee" onClick={this.props.checkEmployee} value="true"/...
src/routes/error/ErrorPage.js
BankaiMikeH/HackWSU2017_AirRands
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present 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 PropTypes from 'prop-...
example/vds-react/static/js/47.623a0897.chunk.js
anarh/maze
(this["webpackJsonp@visa/vds-react"]=this["webpackJsonp@visa/vds-react"]||[]).push([[47],{265:function(e,a,t){"use strict";t.r(a);var n=t(144),r=t(0),c=t.n(r),s=t(538),l=t.n(s),o=t(2),m=t.n(o),i=t(544),d=t(543),u=t(39),p=t(8),b=t(532),f=t(18),v=t(23),h=t(16),E=t(530),g=t(64),y=t(531),N=t(533),O=t(534),j=t(535),B=t(536)...
src/components/NavBar/index.js
tombatossals/energy
import React from 'react' import { Link } from 'react-router-dom' import './styles.css' import logo from './logo.png' const NavBar = ({ auth }) => <nav className='NavBar'> <Link to='/'><img className='Logo' role='presentation' src={logo} /></Link> <h1><Link to='/'>Energy</Link></h1> <div className='Menu'...