path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
project/src/scenes/Admin/Tags/components/AddTag/AddTag.js
boldr/boldr
/* @flow */ import React from 'react'; import { Field, reduxForm } from 'redux-form'; import { graphql, compose } from 'react-apollo'; import styled from 'styled-components'; // internal import Button from '@boldr/ui/Button'; import Heading from '@boldr/ui/Heading'; import { Control, FormField, Form, TextFormField } fr...
src/components/PetitionsFilters/index.js
iris-dni/iris-frontend
import React from 'react'; import settings from 'settings'; import { petitionsPath } from 'helpers/petitionUrls'; import citySuggestionFormatter from 'helpers/citySuggestionFormatter'; import PetitionsFiltersField from 'components/PetitionsFiltersField'; import Filter from 'components/Filter'; import Autocomplete from ...
application/components/checkout/cartAction/index.js
ronanamsterdam/squaredcoffee
import React, { Component } from 'react'; import { Text, TextInput, View, WebView, ScrollView } from 'react-native'; import Button from 'react-native-button'; import { Card, CardImage, CardTitle, CardContent, CardAction } from 'react-native-card-view'; export default ({actionCb, disabled, title}) => { ...
app/components/Home/home.js
newtext/timer
import React from 'react'; import { Button } from 'react-bootstrap'; export default class Home extends React.Component { render() { return ( <div className="container"> <Button bsStyle="primary"> Hello </Button> <Button bsStyle="primary"> World </Button> <Button bsStyle="primary"> B...
src/containers/App/Navigation.js
masterwendu/react-redux-boilerplate
import React from 'react' import { Link } from 'react-router' const Navigation = () => { return ( <div className='navigationWrapper'> <Link to='/' className='navigationLink' activeClassName='active'>Home</Link> <Link to='/subPage' className='navigationLink' activeClassName='active'>Sub Page</Link> ...
examples/simple/src/index.js
treyhoover/react-greedy-text
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
examples/redux/src/containers/HeaderContainer.js
djorg83/react-bootstrap-sweetalert
import React from 'react'; import {Navbar} from 'react-bootstrap'; import {connect} from "react-redux"; import HeaderNav from "../components/HeaverNav"; class HeaderContainer extends React.Component { constructor(props) { super(props); this.state = { navExpanded: false }; } componentDidMount() { do...
src/components/ColorInput.react.js
torifat/jetbrains-icls-editor
import React from 'react'; // import React from 'react/addons'; import _ from 'underscore'; export default class ColorInput extends React.Component { KEY_BACKSPACE = 8; KEY_ZERO = 48; KEY_NINE = 57; KEY_A = 65; KEY_F = 70; KEY_LEFT = 37; KEY_RIGHT = 39; static propTypes = { title: React.PropTypes...
src/components/Navigation/Navigation.js
divsbhalala/accelEventsWebApp
/** * 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 cx from 'classnames';...
app/javascript/mastodon/features/account_timeline/containers/header_container.js
pointlessone/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { makeGetAccount } from '../../../selectors'; import Header from '../components/header'; import { followAccount, unfollowAccount, blockAccount, unblockAccount, unmuteAccount, pinAccount, unpinAccount, } from '../../../actions/account...
src/views/BootCard/BootCardSubtitle.js
shengnian/shengnian-ui-react
import React from 'react' import PropTypes from 'prop-types' import cx from 'classnames' import { mapToCssModules } from '../../lib/' const propTypes = { tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]), className: PropTypes.string, cssModule: PropTypes.object, } const defaultProps = { tag: 'h6', ...
cmd/elwinator/src/App.js
foolusion/choices
import React from 'react'; import { Link } from 'react-router'; import NamespaceList from './components/NamespaceList'; import PublishView from './connectors/PublishView'; import { namespaceNewURL } from './urls'; const App = ({ namespaceName, params, children }) => { return ( <div className="container"> ...
src/views/pages/main-page/index.js
zerubeus/future-layout
import React from 'react'; import { connect } from 'react-redux'; import HomeIcon from '../../components/home-icons'; import AcquisitionSvg from '../../../assets/img/acquisition.svg'; import positioningSvg from '../../../assets/img/positioning.svg'; import applicationsSvg from '../../../assets/img/applications.svg'; im...
app/javascript/mastodon/features/standalone/hashtag_timeline/index.js
rekif/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../../ui/containers/status_list_container'; import { expandHashtagTimeline } from '../../../actions/timelines'; import Column from '../../../components/column'; import ColumnHeader from...
assets/jqwidgets/demos/react/app/grid/masterdetails/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; class App extends React.Component { constructor() { super(); let source1 = { datafields: [ { name: 'CustomerID' }, ...
InputToText/index.android.js
jennselby/ReactNativeExamples
import React, { Component } from 'react'; import { AppRegistry, } from 'react-native'; import SaveInput from './saveInput.js'; export default class InputToText extends Component { render() { return ( <SaveInput /> ); } } AppRegistry.registerComponent('InputToText', () => InputToText);
newclient/scripts/components/user/questionnaire/question/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Lic...
src/provider.js
jsonnull/redux-render
import React from 'react' import PropTypes from 'prop-types' class Provider extends React.Component { constructor(props) { super(props) this.store = props.store } getChildContext() { return { reduxRenderStore: this.store } } render() { return React.Children.only(this.props.childre...
docs/src/app/components/pages/components/Stepper/CustomIcon.js
barakmitz/material-ui
import React from 'react'; import { Step, Stepper, StepLabel, } from 'material-ui/Stepper'; import WarningIcon from 'material-ui/svg-icons/alert/warning'; import {red500} from 'material-ui/styles/colors'; /** * Custom icons can be used to create different visual states. */ class CustomIcon extends React.Compon...
src/Parser/Warrior/Fury/Modules/Features/Abilities.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import ITEMS from 'common/ITEMS'; import CoreAbilities from 'Parser/Core/Modules/Abilities'; import Wrapper from 'common/Wrapper'; import ISSUE_IMPORTANCE from 'Parser/Core/ISSUE_IMPORTANCE'; class Abilities exte...
admin/client/App/components/Navigation/Primary/index.js
matthieugayon/keystone
/** * The primary (i.e. uppermost) navigation on desktop. Renders all sections and * the home-, website- and signout buttons. */ import React from 'react'; import { Container } from 'elemental'; import PrimaryNavItem from './NavItem'; var PrimaryNavigation = React.createClass({ displayName: 'PrimaryNavigation', ...
src/js/components/MoviePlaceholder.js
nicholasodonnell/moonshine
import React from 'react'; import Truncate from 'react-truncate'; class MovieThumbnail extends React.Component { constructor() { super(); } componentWillMount() { } render() { return ( <a class='c-movie-thumbnail c-movie-thumbnail--placeholder' href="#"> ...
src/layouts/CoreLayout/CoreLayout.js
andresol/sollieweb
import React from 'react' import Header from '../../components/Header' import './CoreLayout.scss' import '../../styles/core.scss' export const CoreLayout = ({ children }) => ( <div className='text-center'> <Header /> <div className='core-layout__viewport'> {children} </div> </div> ) CoreLayout.p...
src/js/components/icons/base/SocialGoogleWallet.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
app/src/components/App.js
jluangphasy/shop
import React, { Component } from 'react'; import 'whatwg-fetch'; import Header from './Header.js'; import InventoryList from './InventoryList'; import ProductList from './ProductList'; import ShoppingBasket from './ShoppingBasket'; class App extends Component { /** * Init state, custom methods, etc. */ con...
index.ios.js
egumerlock/skillnest
import StartSlider from './App/Components/StartSlider' import User from './App/Components/User' import ClassList from './App/Components/ClassList' import MainMapView from './App/Components/MainMapView' import CoursePage from './App/Components/CoursePage' import Categories from './App/Components/Categories' import Topic...
actor-apps/app-web/src/app/components/modals/create-group/ContactItem.react.js
sc4599/actor-platform
import React from 'react'; import AvatarItem from 'components/common/AvatarItem.react'; class ContactItem extends React.Component { static propTypes = { contact: React.PropTypes.object, onToggle: React.PropTypes.func } constructor(props) { super(props); this.onToggle = this.onToggle.bind(this)...
app/components/Counter.js
lumibloc/tabloc
// @flow import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import styles from './Counter.css'; class Counter extends Component { props: { increment: () => void, incrementIfOdd: () => void, incrementAsync: () => void, decrement: () => void, counter: number }; ...
src/pages/Jobs.js
ludovers/FirstReactApp
import React, { Component } from 'react'; import axios from 'axios'; // Just the state part of creating a React component export default class Comments extends React.Component{ constructor(props) { super(props); this.state = { jobs: [], }; } componentDidMount() { var _this = this; thi...
src/components/event/AllianceSelection.js
tervay/AutoScout
import React from 'react'; import { linkTeam } from '@/js/links'; export default class EventRankings extends React.Component { constructor(props) { super(); } render() { let backup = false; const rows = this.props.alliances.map((a) => { let lastTeam = null; let prefix = a.seed === null ? ...
src/feature.js
paralleldrive/react-feature-toggles
import React from 'react'; import PropTypes from 'prop-types'; import { Consumer } from './context'; const noop = () => null; export const Feature = ({ activeComponent, children, inactiveComponent = noop, name }) => ( <Consumer> {features => { const Component = features.includes(name) ? ac...
admin/src/components/DocsPage.js
teikei/teikei
import React from 'react' import { Card, CardContent } from '@material-ui/core' /* eslint-disable import/no-webpack-loader-syntax */ import ApiDocs from '!babel-loader!@mdx-js/loader!./../content/apidocs.mdx' const DocsPage = () => ( <Card> <CardContent> <ApiDocs /> </CardContent> </Card> ) export d...
app/containers/CheckRegForm/index.js
elainewlin/Executive
/* * * CheckRegForm * */ import React from 'react'; // import { connect } from 'react-redux'; import styles from './styles.scss'; import { reduxForm, change } from 'redux-form/immutable'; import TextField from 'components/TextField'; import SelectField from 'components/SelectField'; import CheckField from 'compone...
viewer/core/static/js/app/components/views/dataset-datestamp.js
openjck/distribution-viewer
import React from 'react'; export default function(props) { return ( <span className="dataset-datestamp"> <time dateTime={props.isoDate}>{props.isoDate}</time> </span> ); }
src/mui/list/FilterButton.js
RestUI/rest-ui
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import FlatButton from 'material-ui/FlatButton'; import Popover from 'material-ui/Popover'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; import ContentFilter from 'material-ui/svg-icons/content/filter-list...
stories/props/startAccessor.stories.js
jquense/react-big-calendar
import React from 'react' import { Calendar } from '../../src' import { accessorStoryArgs } from './storyDefaults' import mdx from './startAccessor.mdx' export default { title: 'props', component: Calendar, argTypes: { localizer: { control: { type: null } }, events: { control: { type: null } }, defau...
turismo_client/src/components/listItemsWithPagination.js
leiverandres/turismo-risaralda
import React from 'react'; import { Grid, Segment, Header, Dimmer, Loader, Menu } from 'semantic-ui-react'; import PropTypes from 'prop-types'; const ListItemsWithPagination = ({ loading, children, title, pageNumbers, pageSelected, onPageUpdate, ...rest }) => { return ( <Grid centered> <Grid....
SSBW/Tareas/Tarea9/restaurantes2/node_modules/react-bootstrap/es/Form.js
jmanday/Master
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 ...
test/integration/client-navigation/pages/head.js
zeit/next.js
import React from 'react' import Head from 'next/head' export default () => ( <div> <Head> {/* this will not render */} <meta charSet="utf-8" /> {/* this will get rendered */} <meta charSet="iso-8859-5" /> {/* this will not render */} <meta name="viewport" content="width=devi...
src/router.js
pekkis/kino-kobros
import React from 'react'; import { Router, Route, IndexRoute } from 'react-router'; import { fetchEvent } from './actions/event-actions'; import App from './components/container/AppContainer'; import IndexPage from './components/container/IndexPageContainer'; import EventPage from './components/container/EventPageCont...
src/svg-icons/editor/format-color-reset.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatColorReset = (props) => ( <SvgIcon {...props}> <path d="M18 14c0-4-6-10.8-6-10.8s-1.33 1.51-2.73 3.52l8.59 8.59c.09-.42.14-.86.14-1.31zm-.88 3.12L12.5 12.5 5.27 5.27 4 6.55l3.32 3.32C6.55 11.32 6 12...
public/js/components/trends/trendComment.react.js
rajikaimal/Coupley
import React from 'react'; import Card from 'material-ui/lib/card/card'; import ListItem from 'material-ui/lib/lists/list-item'; import List from 'material-ui/lib/lists/list'; import Divider from 'material-ui/lib/divider'; import Avatar from 'material-ui/lib/avatar'; let style1={ width: 800, }; var Comment = React....
example/styles.js
dancormier/react-native-swipeout
import React from 'react'; import { StyleSheet } from 'react-native'; var styles = StyleSheet.create({ container: { backgroundColor: '#f2f2f2', flex: 1, }, listview: { flex: 1, }, li: { backgroundColor: '#fff', borderBottomColor: '#eee', borderColor: 'transparent', borderWidth: 1,...
src/ui/board/ResourceStack.js
kpsroka/splendid
/* * Copyright 2017 K. P. Sroka * * 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 in wr...
src/app/routes/forms/components/layouts/CommentForm.js
backpackcoder/world-in-flames
import React from 'react' import UiValidate from '../../../../components/forms/validation/UiValidate' import MaskedInput from '../../../../components/forms/inputs/MaskedInput' import UiDatepicker from '../../../../components/forms/inputs/UiDatepicker' const validationOptions = { // Rules for form validation rules...
src/app/component/footer/footer.story.js
all3dp/printing-engine-client
import React from 'react' import {storiesOf} from '@storybook/react' import Footer from '.' import Link from '../link' storiesOf('Footer', module).add('default', () => ( <Footer copyline="© 2020 All3DP"> <Link label="Terms and conditions" href="#" /> <Link label="Imprint" href="#" /> </Footer> ))
app/src/components/Home.js
alpcanaydin/heygidi
import React, { Component } from 'react'; import Cloud from './Cloud'; import dataTransformer from '../util/dataTransformer'; import data from '../data/all.json'; class Home extends Component { render() { const width = window.innerWidth || document.documentElement.clientWidth || document.body.client...
app/containers/HomePage.js
sdlfj/eq-roll-tracker
// @flow import React, { Component } from 'react'; import Home from '../components/Home'; export default class HomePage extends Component { render() { return ( <Home /> ); } }
docs/public/static/examples/v40.0.0/tutorial/sharing-web-workaround.js
exponent/exponent
import React from 'react'; import { Image, Platform, StyleSheet, Text, TouchableOpacity, View } from 'react-native'; import * as ImagePicker from 'expo-image-picker'; import * as Sharing from 'expo-sharing'; import uploadToAnonymousFilesAsync from 'anonymous-files'; export default function App() { let [selectedImage...
app/components/SKNavbar.js
Kahrstrom/skillocate-react
import React from 'react'; import { Link } from 'react-router'; import IconMenu from 'material-ui/IconMenu'; import IconButton from 'material-ui/IconButton'; import FontIcon from 'material-ui/FontIcon'; import MenuItem from 'material-ui/MenuItem'; import AppBar from 'material-ui/AppBar'; import EventPluginHub from 'rea...
examples/todomvc/index.js
eiriklv/redux
import 'babel-core/polyfill'; import React from 'react'; import Root from './containers/Root'; import 'todomvc-app-css/index.css'; React.render( <Root />, document.getElementById('root') );
src/components/Plots.js
nickooms/racing-webgl2
import React from 'react'; import PropTypes from 'prop-types'; import PlotsSVG from './PlotsSVG'; import PlotList from './PlotList'; const Plots = (props) => { const { street, plots } = props; return ( <div style={{ flexDirection: 'row', display: 'flex', alignItems: 'flex-start' }}> <PlotList street={str...
src/components/LaserTagHeader.js
bobrown101/phi-tau
import React from 'react'; const LaserTagHeader = React.createClass({ render () { return ( <div id="lasertag-header" className="animated fadeIn"> <div id="header" className="text-center"> </div> </div> ); } }); export default LaserTagHe...
src/component/resultcard.js
ftmatsumoto/crss
import React, { Component } from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import Toggle from 'material-ui/Toggle'; import Divider from 'material-ui/Divider'; import Paper from 'material-ui/Paper'; import TextField from 'material-ui/TextField'; import ReactGA fro...
Console/app/node_modules/rc-slider/es/Slider.js
RisenEsports/RisenEsports.github.io
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/i...
src/pages/gina-campos.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Gina Campos' /> )
docs/src/app/pages/components/ButtonGroup/ExampleButtonGroupRequired.js
GetAmbassador/react-ions
import React from 'react' import ButtonGroup from 'react-ions/lib/components/ButtonGroup/ButtonGroup' const options = [ { value: 'option_1', label: 'Option 1' }, { value: 'option_2', label: 'Option 2' }, { value: 'option_3', label: 'Option 3' } ] const ExampleButtonGroupRequired = () =...
app/javascript/mastodon/components/edited_timestamp/index.js
im-in-space/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage, injectIntl } from 'react-intl'; import Icon from 'mastodon/components/icon'; import DropdownMenu from './containers/dropdown_menu_container'; import { connect } from 'react-redux'; import { openModal } from 'mastodon/actions/modal...
es/admin/components/BansList/Row.js
welovekpop/uwave-web-welovekpop.club
import _jsx from "@babel/runtime/helpers/builtin/jsx"; import React from 'react'; import PropTypes from 'prop-types'; import { translate } from 'react-i18next'; import ms from 'ms'; import Button from "@material-ui/core/es/Button"; import TableRow from "@material-ui/core/es/TableRow"; import TableCell from "@material-u...
src/svg-icons/action/schedule.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSchedule = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H...
src/components/BetaAlert/BetaAlert.js
nase-skoly/web-app
import React, { Component } from 'react'; import { Grid, Row, Col, Alert } from 'react-bootstrap'; export default class BetaAlert extends Component { render() { return ( <Grid> <Row> <Col xs={12}> <Alert bsStyle="warning"> Aplikaci jsme právě spustili. Budeme pr...
src/containers/CommuterRouter.js
vnguyen94/react-commute
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Router, Route } from 'react-router'; import { createHistory } from 'history'; import { Row, Col } from 'react-bootstrap'; import CommuteImport from './CommuteImport'; import CommuteStatistics from './CommuteStatistics'; import Co...
src/svg-icons/device/network-wifi.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceNetworkWifi = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M3.53 10.95l8.46 10.54.01.0...
src/parser/priest/shadow/modules/talents/VoidTorrent.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS/index'; import SpellLink from 'common/SpellLink'; import Analyzer from 'parser/core/Analyzer'; import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox'; import ItemDamageDone from 'interface/others/ItemDamageDone'; import Vo...
docs/pages/api-docs/expansion-panel-summary.js
lgollut/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'api/expansion-panel-summary'; const requireRaw = require.context('!raw-loader!./', false, /\/expansion-panel-summary\.md$/); exp...
src/collections/Menu/Menu.js
shengnian/shengnian-ui-react
import cx from 'classnames' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { AutoControlledComponent as Component, childrenUtils, customPropTypes, createShorthandFactory, getElementType, getUnhandledProps, META, SUI, useKeyOnly, useKeyOrValueAndKey, use...
docs/src/pages/components/badges/CustomizedBadges.js
lgollut/material-ui
import React from 'react'; import Badge from '@material-ui/core/Badge'; import { withStyles } from '@material-ui/core/styles'; import IconButton from '@material-ui/core/IconButton'; import ShoppingCartIcon from '@material-ui/icons/ShoppingCart'; const StyledBadge = withStyles((theme) => ({ badge: { right: -3, ...
src/routes.js
harpreetkhalsagtbit/react-redux-express-webpack
import React from 'react'; // using an ES6 transpiler, like babel import { Route, IndexRoute } from 'react-router'; import App from './components/App'; import HomePage from './components/home/HomePage'; import AboutPage from './components/about/AboutPage'; export default ( <Route path="/" component={App}> <IndexRou...
src/components/AddLink.js
dggriffin/noteworthy
//import styles from 'styles/Note.css'; import React from 'react'; import { FlatButton, TextField, IconButton } from 'material-ui'; import AddCircleIcon from 'material-ui/svg-icons/content/add-circle'; import RemoveCircleIcon from 'material-ui/svg-icons/content/remove-circle'; class AddLink extends React.Component { ...
src/svg-icons/content/reply-all.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentReplyAll = (props) => ( <SvgIcon {...props}> <path d="M7 8V5l-7 7 7 7v-3l-4-4 4-4zm6 1V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"/> </SvgIcon> ); ContentReplyAll = pure(ContentReplyAll); Conte...
index.ios.js
jiangqizheng/ReactNative-BookProject
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class BookProject extends Component { render() { return ( <View style={styles.contain...
src/utils/ValidComponentChildren.js
andrew-d/react-bootstrap
import React from 'react'; /** * Maps children that are typically specified as `props.children`, * but only iterates over children that are "valid components". * * The mapFunction provided index will be normalised to the components mapped, * so an invalid component would not increase the index. * * @param {?*} ...
src/components/ReplPrompt.js
princejwesley/Mancy
import React from 'react'; import ReplActiveIcon from './ReplActiveIcon'; import ReplActiveInput from './ReplActiveInput'; export default class ReplPrompt extends React.Component { constructor(props) { super(props); } render() { let key = this.props.tag || `prompt-${(Math.random() * Math.pow(10, 9)) | 0}...
src/main/app/scripts/containers/calendar/AddEvent.js
ondrejhudek/pinboard
import React from 'react' import injectTapEventPlugin from 'react-tap-event-plugin' import { FloatingActionButton } from 'material-ui' import AddIcon from 'material-ui/lib/svg-icons/content/add' import EventDialog from '../../components/calendar/EventDialog' injectTapEventPlugin() class AddEvent extends React.Compon...
src/client/assets/js/features/repos/components/RepoManager.js
me-box/platform-sdk
import React, { Component } from 'react'; import {connect} from 'react-redux'; import { bindActionCreators } from 'redux'; import Textfield from 'components/form/Textfield'; import Textarea from 'components/form/Textarea'; import Cell from 'components/Cell'; import Cells from 'components/Cells'; import Dialogue from '...
imports/ui/components/reading/ReadingMedia/ReadingMedia.js
pletcher/cltk_frontend
import React from 'react'; import PropTypes from 'prop-types'; import { Meteor } from 'meteor/meteor'; import { createContainer } from 'meteor/react-meteor-data'; import FlatButton from 'material-ui/FlatButton'; class ReadingMedia extends React.Component { getDefaultProps() { return { mediaId: '', }; } re...
src/pages/le-rizz.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Le Rizz' /> )
actor-apps/app-web/src/app/components/common/Favicon.react.js
changjiashuai/actor-platform
import React from 'react'; export default class Fav extends React.Component { static propTypes = { path: React.PropTypes.string } constructor(props) { super(props); //// Create link element and it's attributes //let favicon = document.createElement('link'); //let rel = document.createAttrib...
draft-js-sidebar-plugin/src/components/Sidebar/index.js
vacenz/last-draft-js-plugins
import React from 'react' import DraftOffsetKey from 'draft-js/lib/DraftOffsetKey' export default class Sidebar extends React.Component { state = { position: { transform: 'scale(0)', modalVisible: false, modal: null } } componentDidMount () { this.props.store.subscribeToItem('edit...
src/js/components/icons/base/User.js
odedre/grommet-final
/** * @description User 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. * @prope...
src/components/FbShareLink/FbShareLink.js
goldylucks/adamgoldman.me
// @flow import React from 'react' type Props = { children: any, } class FbShareLink extends React.Component { state = { href: '', } componentDidMount() { this.setHref() } props: Props render() { return ( <a rel='nofollow noreferrer noopener' target='_blank' ...
src/DynamicField.react.js
wincent/hextrapolate
/** * Copyright 2003-present Greg Hurrell. All rights reserved. * Licensed under the terms of the MIT license. * * @flow */ import PropTypes from 'prop-types'; import React from 'react'; import { default as Field, ValuePropType, } from './Field.react'; export default class DynamicField extends React.Componen...
docs/src/sections/textarea.js
ricsv/react-leonardo-ui
import React from 'react'; import Example from '../example'; import Props from '../props'; import Section from '../section'; import { Textarea } from '../../../src/react-leonardo-ui'; const TextareaSection = (props) => ( <Section title="Textarea"> <Example code={'<Textarea/>'}> <Textarea variant={props.ba...
universal/containers/PulseApp.js
GordyD/3ree
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import Header from '../components/Header'; import EventList from '../components/EventList'; import EventTicker from '../components/EventTicker'; import AsyncBar from '../components/AsyncBar'; im...
src/components/AboutModal/AboutModalChangeLogItem.js
dialogs/dialog-web-components
/* * Copyright 2019 dialog LLC <info@dlg.im> * @flow */ import React from 'react'; import styles from './AboutModal.css'; export type ChangeLogItem = { headline: string, items: Array<string>, }; function AboutModalChangeLogItem(props: ChangeLogItem) { return ( <div className={styles.changeLogChangesItem...
src/js/scopes/scopes.block-chat.js
stamkracht/Convy
import React from 'react'; import ReactDOM from 'react-dom'; import Linkify from 'react-linkify'; import { classNames, humanReadableTimeStamp } from '../utillities'; class BlockChat extends React.Component { handleImageLoad(evt) { evt.target.classList.remove('c-message__image--loading') } renderMessage(m...
example/nextjs/pages/login.js
lipp/login-with
import React from 'react' import withProfile from '../with-profile' import withLayout from '../with-layout' import LoggedInNotification from '../components/LoggedInNotification' const LoginWith = ({service, redirect}) => ( <div className='login'> <a className='button is-medium' href={`https://auth.login-with.com...
src/components/YearSelector.js
gj262/noaa-coops-viewer
import PropTypes from 'prop-types' import React from 'react' import './YearSelector.scss' const debug = window.debug('components/year-selector') export default class YearSelector extends React.Component { static propTypes = { data: PropTypes.array.isRequired, isFetching: PropTypes.bool.isRequired, sele...
src/svg-icons/hardware/keyboard-arrow-right.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardArrowRight = (props) => ( <SvgIcon {...props}> <path d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"/> </SvgIcon> ); HardwareKeyboardArrowRight = pure(HardwareKeyboardArrowRight); Hardwar...
examples/todomvc/index.js
yonatanmn/Cartiv
import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import App from './components/App'; import 'todomvc-app-css/index.css'; render( <App/>, document.getElementById('root') );
src/components/stories/Camera.js
neontribe/spool
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import Camera from '../Camera'; storiesOf('Camera', module) .add('Initial View', () => ( <Camera save={action('save')} onFailure={action('Media Fail')} /> ));
src/components/share.js
RaulEscobarRivas/React-Redux-High-Order-Components
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { getPositionSelected } from '../reducers'; import SharingTemplate from './sharing-template'; class Share extends Component { render() { const { positionSelected } = this.props; return ( <div class...
packages/my-joy-instances/src/containers/instances/list.js
geek/joyent-portal
import React from 'react'; import { compose, graphql } from 'react-apollo'; import { connect } from 'react-redux'; import { stopSubmit, startSubmit, reset, change } from 'redux-form'; import { set } from 'react-redux-values'; import ReduxForm from 'declarative-redux-form'; import { Margin } from 'styled-components-spac...
src/svg-icons/action/all-out.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAllOut = (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...
examples/form-validation/src/web.js
weaintplastic/react-sketchapp
import React from 'react'; import { typography, fontFamily } from './designSystem'; import Register from './components/Register'; const styles = { containerStyle: { width: 364, marginLeft: 'auto', marginRight: 'auto', }, }; export default () => ( <div> <div style={styles.containerStyle}> <...
node_modules/react-native-mock/src/mixins/ScrollResponder.js
niukui/gitpro
import ScrollViewManager from '../NativeModules/ScrollViewManager'; import Platform from '../plugins/Platform'; import Dimensions from '../api/Dimensions'; import DeviceEventEmitter from '../plugins/DeviceEventEmitter'; import React from 'react'; import invariant from 'invariant'; import warning from 'warning'; import ...
src/svg-icons/av/volume-mute.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVolumeMute = (props) => ( <SvgIcon {...props}> <path d="M7 9v6h4l5 5V4l-5 5H7z"/> </SvgIcon> ); AvVolumeMute = pure(AvVolumeMute); AvVolumeMute.displayName = 'AvVolumeMute'; AvVolumeMute.muiName = 'SvgIcon'...
shared/components/DemoApp/AsyncCounterRoute/CounterRoute.js
diondirza/react-universally
/* eslint-disable react/no-unescaped-entities */ import React, { Component } from 'react'; class CounterRoute extends Component { constructor(props) { super(props); this.incrementCounter = this.incrementCounter.bind(this); this.state = { counter: 0 }; } incrementCounter() { this.setState({ count...
node_modules/react-bootstrap/es/ButtonGroup.js
mohammed52/something.pk
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 ...
src/index.js
rickie120243/converter-app
import 'babel-polyfill'; import './index.css'; import React from 'react'; import {render} from 'react-dom'; import App from './containers/App.js'; render( <App />, document.getElementById('root') );