path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/Input/Textarea.js
AndriusBil/material-ui
// @flow import React from 'react'; import classnames from 'classnames'; import debounce from 'lodash/debounce'; import EventListener from 'react-event-listener'; import withStyles from '../styles/withStyles'; const rowsHeight = 24; export const styles = { root: { position: 'relative', // because the shadow ha...
src/app/components/feedItem.js
nazar/soapee-ui
import moment from 'moment'; import React from 'react'; import { Link } from 'react-router'; import MarkedDisplay from 'components/markedDisplay'; import ImageableThumbnails from 'components/imageableThumbnails'; import UserAvatar from 'components/userAvatar'; export default React.createClass( { render() { ...
03-mybooks-lab4/src/Book.js
iproduct/course-node-express-react
import React from 'react'; import './Book.css'; export default function Book({ book, ...rest }) { return ( <div className="card-wrapper col s12 l6 Book-card"> <div className="card horizontal"> <div className="card-image waves-effect waves-block waves-light"> <img className="ac...
web/src/presentation/retro-results.js
mgwalker/retros
import React from 'react'; function getResults(resultList) { const results = []; for (const result of resultList) { results.push( <div key={`retro-results-${result.name}`}> <div className="usa-width-one-twelfth">{result.votes}</div> <div>{result.name}</div> </div> ); } retur...
app/layouts/login.js
jtparrett/countcals
import React from 'react' import { StyleSheet, View, Text, Button } from 'react-native' import Header from '../components/header' import Input from '../components/input' export default class Login extends React.Component { constructor(props) { super(props) this.state = { username: '', password: ...
app/javascript/mastodon/features/lists/components/new_list_form.js
pixiv/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { changeListEditorTitle, submitListEditor } from '../../../actions/lists'; import IconButton from '../../../components/icon_button'; import { defineMessages, injectIntl } from 'react-intl'; const messages = def...
09-react-lab-b/src/app/index.js
iproduct/course-node-express-react
import React from 'react'; import { render } from 'react-dom'; import TodoApp from './todo-app'; import { hot } from 'react-hot-loader'; const root = document.getElementById('root'); render(<TodoApp />, root);
src/js/faz.js
INTA-Suelos/faz
// Punto de entrada de React, donde renderiza la aplicación entera y la inserta // en el DOM. import React from 'react' import ReactDOM from 'react-dom' import Root from './Root' ReactDOM.render(Root, document.getElementById('faz'))
src/app/components/common/simple-tooltip.js
feedm3/unhypem-frontend
/** * This component can be used to add a tooltip to an existing component. * * The existing component must be passed as child of the tooltip and the tooltip text itself must be passed as property. * * @author Fabian Dietenberger */ 'use strict'; import React from 'react'; import PropTypes from 'prop-types'; im...
app/containers/PlanSheet/index.js
hukid/shootingstudio
/* * * PlanSheet * */ import React from 'react'; import ActorList from 'containers/ActorList'; const PlanSheet = (props) => { let sheetRows = (<div className="row">empty</div>); window.scnes = props.planSheet.scenes; const scenes = props.planSheet.scenes; if (scenes) { sheetRows = scenes.map((scene, ...
react/gameday2/components/embeds/EmbedHtml5.js
fangeugene/the-blue-alliance
/* global videojs */ import React from 'react' import { webcastPropType } from '../../utils/webcastUtils' export default class EmbedHtml5 extends React.Component { static propTypes = { webcast: webcastPropType.isRequired, } componentDidMount() { videojs(this.props.webcast.id, { width: '100%', ...
src/components/availabilityschedule/Slot.js
ChrisWhiten/react-rink
import React from 'react'; import moment from 'moment'; import './Slot.css'; class Slot extends React.Component { constructor() { super(); this.state = { open: false, }; this.onClick = this.onClick.bind(this); } onClick() { this.props.onClick(this.props.day, this.props.time); } ...
src/parser/shared/modules/items/bfa/dungeons/AzerokksResonatingHeart.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import { formatPercentage } from 'common/format'; import { calculatePrimaryStat } from 'common/stats'; import ItemStatistic from 'interface/statistics/ItemStatistic'; import BoringItemValueText from 'interface/statistics/c...
src/layouts/CoreLayout/CoreLayout.js
thanhiro/tuha-ui-tpl
import React from 'react'; import Helmet from 'react-helmet'; import Header from '../../components/Header'; import Footer from '../../components/Footer'; import classes from './CoreLayout.scss'; import '../../styles/core.scss'; export const CoreLayout = ({location, children}) => ( <div> <Helmet meta={[ {'n...
src/svg-icons/image/style.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageStyle = (props) => ( <SvgIcon {...props}> <path d="M2.53 19.65l1.34.56v-9.03l-2.43 5.86c-.41 1.02.08 2.19 1.09 2.61zm19.5-3.7L17.07 3.98c-.31-.75-1.04-1.21-1.81-1.23-.26 0-.53.04-.79.15L7.1 5.95c-.75.31-1....
modules/react-documentation/src/components/Code.js
casesandberg/reactcss
'use strict'; import React from 'react' import reactCSS from 'reactcss' import markdown from '../helpers/markdown' import context from 'react-context' var { Tile, Raised } = require('../../../react-material-design'); class Code extends React.Component { render() { const styles = reactCSS({ 'default': { ...
src/docs/components/SectionDoc.js
grommet/grommet-docs
import React, { Component } from 'react'; import DocsArticle from '../../components/DocsArticle'; import Anchor from 'grommet/components/Anchor'; import Section from 'grommet/components/Section'; import Heading from 'grommet/components/Heading'; import Paragraph from 'grommet/components/Paragraph'; import Code from '.....
packages/react-dom/src/shared/checkReact.js
prometheansacrifice/react
/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import React from 'react'; import invariant from 'fbjs/lib/invariant'; invariant( React, 'ReactDOM was loaded before Re...
src/js/components/shared/loading-progress.js
trwalker/marvel-react
import React from 'react'; class LoadingProgress extends React.Component { constructor(props) { super(props); this.title_ = props.title ? props.title : 'Loading...'; this.initialProgressValue_ = props.initialProgressValue ? props.initialProgressValue : 0; this.getCurrentProgress_ =...
gui/components/MainTab.js
venogram/ExpressiveJS
import React, { Component } from 'react'; import PropTypes from 'prop-types'; function MainTab(props) { const method = props.routeId.split(' ')[0].slice(0,1) + props.routeId.split(' ')[0].slice(1).toLowerCase(); let classString = 'MainTab' classString += (props.routeId === props.activeTab ? ' activeMainTab' : ' ...
src/pages/home.js
AlbinOS/book-keeper-ui
import React from 'react'; class Home extends React.Component { render() { return ( <div> <h1>Welcome to Book Keeper !</h1> <p>Serving live timetracking report of your JIRA project with love.</p> </div> ); } } export default Home;
src/Breadcrumb.js
HPate-Riptide/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import BreadcrumbItem from './BreadcrumbItem'; import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils'; class Breadcrumb extends React.Component { render() { const { className, ...props } = this.props; const [bsProps, elemen...
src/components/Snippets/abilityText.js
chaoticbackup/chaoticbackup.github.io
import React from 'react'; import processString from 'react-process-string'; import { MugicIcon, ElementIcon, DisciplineIcon, TribeIcon } from "./_icons"; export function abilityText(props) { if (!props.ability || props.ability.length === 0) return ""; const mugic_counters = { regex: /([0-9x]*){{mc}}/i, f...
assets/node_modules/react-router/es/IndexRoute.js
janta-devs/nyumbani
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { component, components, falsy } from './InternalPropTypes'; var func = React.PropTypes.func; /** * An <IndexRoute> i...
client/modules/Poll/components/PollCreateModal/PollNameInput.js
maicongil/fcc_voting_app
import React from 'react'; import { Input } from 'semantic-ui-react'; export default function PollNameInput(props){ return ( <Input {...props} label={{ basic: true, content: '?' }} labelPosition='right' placeholder='Enter question...' ...
src/index.js
TylerFoss/weather-app
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import ReduxPromise from "redux-promise"; import App from './components/app'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware(...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/SassInclusion.js
mangomint/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import './assets/sass-styles.sass'; export default () => <p id="feature-sass-inclusion">We love useless text...
src/containers/SearchForm.js
houkah26/reddit-clone
import React, { Component } from 'react'; import SearchResults from '../components/SearchResults'; import './SearchForm.css' const filterResults = (searchResults) => { let filteredResults = []; searchResults.forEach(sub => { if (sub.data.subscribers > 5) { filteredResults.push(sub.data); } }); ...
src/Home.js
believer/movies
// @flow import React from 'react' import { StyleSheet, Text, View } from 'react-native' import Feed from './Feed' import Movie from './Movie' import AddMovie from './AddMovie' import { StackNavigator, TabNavigator } from 'react-navigation' import Dimensions from 'Dimensions' const { width } = Dimensions.get('window'...
components/Person.js
pcm-ca/pcm-ca.github.io
import React from 'react'; import {Link} from 'react-router'; const Person = ({ name, email, picture, link }) => ( <Link className='person' to={link}> <center><img src={picture} alt="foto" className="person--picture" /></center> <div className="person--info"> <span className="person--n...
app/components/AppContainer.js
shug0/Awesomidi
import React from 'react'; // MATERIAL import {blue500, cyan700, pinkA200, cyan500} from 'material-ui/styles/colors'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; // COMPONENT import Navigation from '../components/0_Global/Navigation/Navig...
content/src/scripts/components/app/HighlightsTray.js
CaliAlec/ChromeIGStory
import React, { Component } from 'react'; import {connect} from 'react-redux'; import LinearProgress from '@material-ui/core/LinearProgress'; import MenuItem from '@material-ui/core/MenuItem'; import StoryTrayItem from './StoryTrayItem'; import InstagramApi from '../../../../../utils/InstagramApi'; import {setCurrentSt...
admin/client/App/components/Navigation/Secondary/NavItem.js
michaelerobertsjr/keystone
/** * A navigation item of the secondary navigation */ import React from 'react'; import { Link } from 'react-router'; const SecondaryNavItem = React.createClass({ displayName: 'SecondaryNavItem', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, href: React.PropType...
index.ios.js
fabriziomoscon/pepperoni-app-kit
import {Provider} from 'react-redux'; import store from './src/redux/store'; import AppViewContainer from './src/modules/AppViewContainer'; import React from 'react'; import {AppRegistry} from 'react-native'; const PepperoniAppTemplate = React.createClass({ render() { return ( <Provider store={store}> ...
client/index.js
sethkaufee/TherapyApp
/** * Client entry point */ import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import App from './App'; import { configureStore } from './store'; // Initialize store const store = configureStore(window.__INITIAL_STATE__); const mountApp = document.getEleme...
client/components/ViewPost.js
JayMc/react-crud-example
import React from 'react'; export default React.createClass({ render() { let post = this.props.posts.filter((post) => { if (post.id == this.props.params.id) return post; })[0]; return ( <div> <h3>Post details</h3> <p>{post.title}</p> </div> ); }, });
views/decoration_toggle.js
alessandrostone/black-screen
import React from 'react'; export default React.createClass({ getInitialState() { return {enabled: this.props.invocation.state.decorate}; }, handleClick(event) { stopBubblingUp(event); var newState = !this.state.enabled; this.setState({enabled: newState}); this.prop...
docs/src/PageFooter.js
roadmanfong/react-bootstrap
import React from 'react'; import packageJSON from '../../package.json'; let version = packageJSON.version; if (/docs/.test(version)) { version = version.split('-')[0]; } const PageHeader = React.createClass({ render() { return ( <footer className='bs-docs-footer' role='contentinfo'> <div c...
src/parser/priest/holy/modules/features/HolyPriestHealingEfficiencyDetails.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import Panel from 'interface/others/Panel'; import HealingEfficiencyTracker from './HolyPriestHealingEfficiencyTracker'; import HealingEfficiencyBreakdown from './HolyPriestHealingEfficiencyBreakdown'; class HolyPriestHealingEfficiencyDetails ext...
docs/components/Homepage/Featured/index.js
enjoylife/storybook
import React from 'react'; import PropTypes from 'prop-types'; import './style.css'; const Item = ({ storybook, owner, source }) => <div className="ft-sbooks col-xs-6 col-md-4" key={storybook.link}> <div className="col-md-4"> <a href={storybook.link} target="_blank" rel="noopener noreferrer"> <cent...
examples/real-world/index.js
chicoxyzzy/redux
import 'babel-core/polyfill'; import React from 'react'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import { Provider } from 'react-redux'; import { Router, Route } from 'react-router'; import configureStore from './store/configureStore'; import App from './containers/App'; import UserPage fro...
app/javascript/mastodon/features/compose/index.js
pixiv/mastodon
import classNames from 'classnames'; import React from 'react'; import ComposeFormContainer from './containers/compose_form_container'; import NavigationContainer from './containers/navigation_container'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } ...
mobile/mock ups/manager/src/components/common/Button.js
parammehta/TravLendar
import React from 'react'; import { Text, TouchableOpacity } from 'react-native'; const Button = ({ onPress, children }) => { const { buttonStyle, textStyle } = styles; return ( <TouchableOpacity onPress={onPress} style={buttonStyle} > <Text style={textStyle}> {children} </Text> </...
src/svg-icons/image/looks.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooks = (props) => ( <SvgIcon {...props}> <path d="M12 10c-3.86 0-7 3.14-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.86-3.14-7-7-7zm0-4C5.93 6 1 10.93 1 17h2c0-4.96 4.04-9 9-9s9 4.04 9 9h2c0-6.07-4.93-11-11-1...
src/components/portfolio.js
erik-sn/mslt
if (process.env.BROWSER) { require('../sass/portfolio.scss'); } import React, { Component } from 'react'; import { Card, CardHeader } from 'material-ui/Card'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; export default class Admin extends Component { constructor(props) { super(props); ...
client/components/Wishlist.js
jimini-js/jimini
import React from 'react'; import Item from './Item.js'; import $ from 'jquery'; import { DropdownButton } from 'react-bootstrap'; import { MenuItem } from 'react-bootstrap'; class Wishlist extends React.Component { constructor(){ super() this.removeWish = this.removeWish.bind(this); this.markAsBought = ...
app/shared/feedback-link/FeedbackLink.js
fastmonkeys/respa-ui
import React from 'react'; import PropTypes from 'prop-types'; import constants from '../../constants/AppConstants'; import { getCurrentCustomization } from '../../utils/customizationUtils'; function FeedbackLink({ children }) { const refUrl = window.location.href; const href = `${constants.FEEDBACK_URL}&ref=${re...
src/components/ui/FormInput.js
banovotz/WatchBug2
/** * Text Input * <FormInput></FormInput> * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { FormInput } from 'react-native-elements'; // Consts and Libs import { AppColors, AppFonts } ...
src/features/feed/feed-list/feed-list.component.js
sunstorymvp/playground
import React from 'react'; import classNames from 'classnames'; import styles from './feed-list.css'; import FeedListItem from '../feed-list-item'; const renderFeedListItems = () => ( [ 1, 2, 3 ].map((feedListItem) => ( <FeedListItem key={ feedListItem } /> )) ); const FeedList = () => { const classList = ...
src/components/ReportFormPayment/index.js
bruceli1986/contract-react
import React from 'react' /** 打印报表合同支付对应表单*/ class ReportFormPayment extends React.Component { static propTypes = { businessId: React.PropTypes.string, opinions: React.PropTypes.array, loaded: React.PropTypes.bool, onClickCancel: React.PropTypes.func, onReport: React.PropTypes.func } constru...
src/svg-icons/action/perm-media.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermMedia = (props) => ( <SvgIcon {...props}> <path d="M2 6H0v5h.01L0 20c0 1.1.9 2 2 2h18v-2H2V6zm20-2h-8l-2-2H6c-1.1 0-1.99.9-1.99 2L4 16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7 15l4.5-6 3.5 ...
src/modules/history/HistoryDetail.js
dominictracey/hangboard
import React from 'react' import PropTypes from 'prop-types' import {View, ScrollView, StyleSheet, TouchableOpacity} from 'react-native' import AppText from '../../components/AppText' import {Card} from 'react-native-elements' import {Icon} from 'react-native-vector-icons/MaterialIcons' import HistoryDetailsGrid from '...
src/svg-icons/social/cake.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialCake = (props) => ( <SvgIcon {...props}> <path d="M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2zm4.6 9.99l-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l...
src/components/molecules/IconButton/index.stories.js
SIB-Colombia/dataportal_v2_frontend
import React from 'react' import { storiesOf } from '@kadira/storybook' import { IconButton } from 'components' storiesOf('IconButton', module) .add('default', () => ( <IconButton icon="close">Hello</IconButton> )) .add('transparent', () => ( <IconButton icon="close" transparent>Hello</IconButton> )) ...
src/app.js
qmmr/react-movies
import React from 'react' import App from './components/App.jsx' import createActionCreators from './actions/createActionCreators' import getFirebaseService from './services/firebaseService' import getOMDBService from './services/omdbService' import AppDispatcher from './dispatcher/AppDispatcher' import MoviesStore fro...
src/components/App.js
fvalencia/react-vimeo
/** * 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-...
src/interface/VerticalLine.js
yajinni/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import Tooltip from 'interface/Tooltip'; import './VerticalLine.css'; const VerticalLine = props => { const { value, style, className, children, // ton of properties get injected from XYPlot xRange, xDomain, marginLeft, ...
examples/src/components/Multiselect.js
realestate-com-au/react-select
import React from 'react'; import Select from 'react-select'; const FLAVOURS = [ { label: 'Chocolate', value: 'chocolate' }, { label: 'Vanilla', value: 'vanilla' }, { label: 'Strawberry', value: 'strawberry' }, { label: 'Caramel', value: 'caramel' }, { label: 'Cookies and Cream', value: 'cookiescream' }, { label...
src/svg-icons/hardware/keyboard-capslock.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardCapslock = (props) => ( <SvgIcon {...props}> <path d="M12 8.41L16.59 13 18 11.59l-6-6-6 6L7.41 13 12 8.41zM6 18h12v-2H6v2z"/> </SvgIcon> ); HardwareKeyboardCapslock = pure(HardwareKeyboardCaps...
website/src/pages/index.js
giraud/reasonml-idea-plugin
import React from 'react'; import clsx from 'clsx'; import Layout from '@theme/Layout'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import useBaseUrl from '@docusaurus/useBaseUrl'; import styles from './styles.module.scss'; import Hero from '@theme/Hero'; const features = [ { title: 'La...
compare/src/components/ecosystems/Header.js
garris/BackstopJS
import React from 'react'; import styled from 'styled-components'; import { Sticky } from 'react-sticky'; import Topbar from '../organisms/Topbar'; import Toolbar from '../organisms/Toolbar'; const HeaderWrapper = styled.section` width: 100%; margin: 0 auto; padding: 15px 0; z-index: 999; box-sizing: border...
app/components/CharacterCreate.js
lotgd/client-react-native
// @flow 'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, Image, TextInput, } from 'react-native'; import { gql, graphql } from 'react-apollo'; import { connect } from 'react-redux'; import { ApolloProvider } from 'react-apollo'; import { NavigationActions } from 'react...
src/components/Gallery/GalleryItem.js
wundery/wundery-ui-react
import React from 'react'; import classnames from 'classnames'; import { Spinner } from '../Spinner'; import { Progress } from '../Progress'; import { Icon } from '../Icon'; function GalleryItem(props) { const { addon, onClick, progress, ribbon, small, size, src, highlighted, medium } = props; const style = { bac...
src/public/js/components/Checkout/index.js
Natinux/ironsource-test
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Checkout from './presenter'; import {saveUser} from '../../actions'; const mapDispatchToProps = dispatch => ({ saveUser: bindActionCreators(saveUser, dispatch) }); export default connect(null, map...
src/components/icons/HourGlassIcon.js
InsideSalesOfficial/insidesales-components
import React from 'react'; import { colors, generateFillFromProps } from '../styles/colors.js'; const HourGlassIcon = props => ( <svg {...props.size || { width: '15px', height: '25px' }} {...props} viewBox="0 0 15 25"> {props.title && <title>{props.title}</title>} <g stroke="none" strokeWidth="1" ...
src/step-24/StoreSetup.js
gufsky/react-native-workshop
import React, { Component } from 'react' import Highlight from 'react-syntax-highlight' // import Note from '../Note' import structurePng from './Structure.png' const indexJs = `import React from 'react' import { AppRegistry } from 'react-native' import { StackNavigator } from 'react-navigation' import { fetchInitial...
src/routes/app/routes/ui/routes/hover/components/Hover.js
ahthamrin/kbri-admin2
import React from 'react'; import QueueAnim from 'rc-queue-anim'; const MaterialHover = () => ( <article className="article"> <h2 className="article-title">Material Hover</h2> <div className="row"> <div className="col-xl-4"> <div className="ih-item ih-material"> <a href="javascript:;...
src/web/forms/editor/FormAdder.js
asha-nepal/AshaFusionCross
/* @flow */ import React from 'react'; import Modal from '../../components/Modal'; import { TextInputComponent, } from '../fields'; type Props = { onFormAdd: (id: string, label: string) => void, className?: string, } export default class extends React.Component { constructor(props: Props) { super(props);...
imports/ui/admin/components/books_new.js
dououFullstack/atomic
import React from 'react'; import { browserHistory } from 'react-router'; import Loading from '/imports/ui/loading'; class _Component extends React.Component { handelDelete(id) { if (window.confirm('确认删除?')) { Meteor.call('bookNew.delete', id); } } render() { const data = this.props.data; ...
clients/libs/webpage/src/lib/plugins/content/components/draft-editor/index.js
nossas/bonde-client
import React from 'react' import PropTypes from 'prop-types' import Editor from './editable-mode' if (require('exenv').canUseDOM) require('./index.scss') class EditorNew extends React.Component { render () { const { decorator, mobilization, widget: { settings } } = this.props const { body_font: bodyFont } ...
modules/Day.js
SomethingSexy/react-planner
import moment from 'moment'; import PropTypes from 'prop-types'; import React from 'react'; const Day = ({ day }) => { return (React.createElement("div", { style: { textAlign: 'center' } }, React.createElement("strong", null, moment(day, 'MM/DD/YYYY').format('MM/DD')))); }; Day.propTypes = { day: PropTy...
lib/controllers/github-tab-header-controller.js
atom/github
import React from 'react'; import PropTypes from 'prop-types'; import {AuthorPropType} from '../prop-types'; import GithubTabHeaderView from '../views/github-tab-header-view'; export default class GithubTabHeaderController extends React.Component { static propTypes = { user: AuthorPropType.isRequired, // Wo...
src/ducks/BhajanDetail/component/Header.js
saitheexplorer/bhajan-db
import React from 'react' const Header = ({ title }) => ( <div className="row"> <div className="col-lg-12"> <h3 className="title">{title}</h3> </div> </div> ) export default Header
src/index.js
himadriganguly/reactjs-form-practice
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import BookStore from './BookStore'; ReactDOM.render(<BookStore />, document.getElementById('root'));
demo/components/MultiCheckbox.js
technicallyfeasible/dataparser
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import uuid from 'uuid'; export default class MultiCheckbox extends Component { static propTypes = { onChange: PropTypes.func, options: PropTypes.arrayOf(PropTypes.shape({ label: PropTypes.string, value: PropTypes.any, ...
react/reactRedux/redux-master/examples/todos-with-undo/src/components/Link.js
huxinmin/PracticeMakesPerfect
import React from 'react' import PropTypes from 'prop-types' const Link = ({ active, children, onClick }) => { if (active) { return <span>{children}</span> } return ( <a href="#" onClick={e => { e.preventDefault() onClick() }} > {children} </a> ) } Link.p...
js/components/anatomy/index.js
ChiragHindocha/stay_fit
import React, { Component } from 'react'; import { StatusBar } from 'react-native'; import { connect } from 'react-redux'; import { Container, Header, Title, Content, Text, H3, Button, Icon, Footer, FooterTab, Left, Right, Body } from 'native-base'; import { openDrawer } from '../../actions/drawer'; import styles fro...
src/svg-icons/image/style.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageStyle = (props) => ( <SvgIcon {...props}> <path d="M2.53 19.65l1.34.56v-9.03l-2.43 5.86c-.41 1.02.08 2.19 1.09 2.61zm19.5-3.7L17.07 3.98c-.31-.75-1.04-1.21-1.81-1.23-.26 0-.53.04-.79.15L7.1 5.95c-.75.31-1....
packages/veritone-react-common/src/components/FolderTree/Component/ExpandIcon.js
veritone/veritone-sdk
import React from 'react'; import _ from 'lodash'; import cx from 'classnames'; import { arrayOf, shape, func, oneOfType, number, string } from 'prop-types'; import { makeStyles } from '@material-ui/core/styles'; import styles from '../styles'; const useStyles = makeStyles(theme => ({ ...styles })); ex...
addons/themes/future-imperfect/layouts/Home.js
rendact/rendact
import $ from 'jquery' import React from 'react'; import gql from 'graphql-tag'; import {graphql} from 'react-apollo'; import moment from 'moment'; import {Link} from 'react-router'; let Home = React.createClass({ componentDidMount(){ require('../assets/css/main.css') }, render(){ let { theConfig,...
templates/react/routes/foo.js
api-platform/generate-crud
import React from 'react'; import { Route } from 'react-router-dom'; import { List, Create, Update, Show } from '../components/{{{lc}}}/'; export default [ <Route path="/{{{name}}}/create" component={Create} exact key="create" />, <Route path="/{{{name}}}/edit/:id" component={Update} exact key="update" />, <Rout...
demo/src/index.js
bem-sdk/bemjson-to-jsx
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
client/canx-client/src/views/Categories.js
uros-stegic/canx
import React from 'react' import {Link} from 'react-router' function Categories(props) { return ( <div className='category-container'> <h1 className='profile-title'>CATEGORIES</h1> {props.args.categories.map((cat, ind) => <Link key={ind} to={'/categories/'+cat.name.toLowerCase() }> ...
examples/huge-apps/components/App.js
mjw56/react-router
import React from 'react'; import Dashboard from './Dashboard'; import GlobalNav from './GlobalNav'; class App extends React.Component { render() { var courses = COURSES; return ( <div> <GlobalNav /> <div style={{ padding: 20 }}> {this.props.children || <Dashboard courses={co...
03a-todo-list-from-scratch/src/index.js
dtanzer/react-basic-examples
import React from 'react'; import ReactDOM from 'react-dom'; import TodoList from './TodoList'; import './index.css'; ReactDOM.render( <TodoList />, document.getElementById('root') );
frontend/src/app/containers/SharePage.js
mathjazz/testpilot
import React from 'react'; import Copter from '../components/Copter'; import LayoutWrapper from '../components/LayoutWrapper'; import View from '../components/View'; export default class SharePage extends React.Component { render() { return ( <View spaceBetween={true} showNewsletterFooter={false} {...thi...
node_modules/react-bootstrap/es/BreadcrumbItem.js
lucketta/got-quote-generator
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 ...
initial_test/src/app/components/projectItem.js
niketpathak/npk-website
import React, { Component } from 'react'; class ProjectItem extends Component { deleteProject(id) { console.log('delete clicked', id); this.props.onDelete(id); } render() { // console.log(this.props); return ( <li className="projectItem"> <strong>{this.props.project.title} </strong> - {th...
src/pages/404.js
lottebijlsma/lottebijlsma.github.io
import React from 'react'; const NotFoundPage = () => ( <div> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </div> ); export default NotFoundPage;
app/components/AnalyticsOverview/index.js
eddiewang/tinderapp
/** * * AnalyticsOverview * */ import React from 'react'; import Card from 'components/Card'; import Avatar from 'components/Avatar'; import avatar from 'assets/img/avatar.jpg'; import styles from './styles.scss'; function AnalyticsOverview() { return ( <div className={styles.analyticsOverview}> <Card w...
src/components/TextArea/Textarea-story.js
jzhang300/carbon-components-react
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import TextArea from '../TextArea'; const TextAreaProps = { labelText: 'Text Area label', className: 'some-class', onChange: action('onChange'), onClick: action('onClick'), placeholder:...
app/components/IssueIcon/index.js
mclxly/react-study
import React from 'react'; function IssueIcon(props) { return ( <svg height="1em" width="0.875em" className={props.className} > <path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v...
packages/icons/src/md/av/Replay5.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdReplay5(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M24 12V4L14 14l10 10v-8c6.6 0 12 5.4 12 12s-5.4 12-12 12-12-5.4-12-12H8c0 8.8 7.2 16 16 16s16-7.2 16-16-7.2-16-16-16zm-2.6 17.8l.5-4.3h4.8v1.4h-3.4l-...
src/client/search/search-message.react.js
lassecapel/este-isomorphic-app
import React from 'react'; import PureComponent from '../components/purecomponent.react'; export default class SearchMessage extends PureComponent { render() { return ( <div className='row' style={{textAlign: 'center', height: '4em'}}> {this.props.query && <p>You search "{this.props.query}" resulte...
client/components/Main.js
wilywallabies/wilyVideo
import React from 'react'; import { Link } from 'react-router'; const Main = React.createClass({ render(){ return ( <div> <h1> <Link to="/">WilyVideo</Link> </h1> {React.cloneElement(this.props.children, this.props)} </div> ) } }); export default Main;
app/javascript/mastodon/features/compose/components/upload_button.js
Chronister/mastodon
import React from 'react'; import IconButton from '../../../components/icon_button'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 're...
src/components/search-result.js
marcusdarmstrong/mockdraftable-web
// @flow import React from 'react'; import SparkGraph from './graphs/spark-graph'; import type { Position } from '../types/domain'; import type { MeasurablePercentile } from '../types/graphing'; import Link from './link'; type Props = { name: string, playerPosition: Position, selectedPosition: Position, id: s...
src/components/CollapseTreeZoom.js
ysaaron/react-collapse-tree
import React from 'react'; import d3 from 'd3'; import { DragDropContext } from 'react-dnd'; import MouseEventBackend from 'react-dnd-mouse-backend'; import { walkThroughTree } from '../utils/walkThroughTree'; import SvgChart from './SvgChart'; import Links from './Links'; import Nodes from './Nodes'; class Collapse...
src/components/LandingPages/Email/FilterOptions/index.js
ndlib/usurper
import React from 'react' import { useLocation } from 'react-router-dom' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import typy from 'typy' import PresenterFactory from 'components/APIPresenterFactory' import Presenter from './presenter' import ...
node_modules/react-bootstrap/es/MediaHeading.js
firdiansyah/crud-req
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 ...