path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
gatsby-ssr.js
flexbox/webcitation
/** * Implement Gatsby's SSR (Server Side Rendering) APIs in this file. * * See: https://www.gatsbyjs.org/docs/ssr-apis/ */ import React from 'react' import { renderToString } from 'react-dom/server' import { ServerStyleSheet } from 'styled-components' import AppProvider from 'store/provider' import wrapPageElemen...
app/javascript/mastodon/features/ui/components/video_modal.js
theoria24/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Video from 'mastodon/features/video'; import ImmutablePureComponent from 'react-immutable-pure-component'; import Footer from 'mastodon/features/picture_in_picture/components/footer'; import...
src/components/svg/ShareIcon.js
jslauthor/react-audio-component
import React from 'react'; const ShareIcon = props => ( <svg width="18px" height="14px" viewBox="16 234 18 14" {...props}> <path d="M29.5,240.3 L29.5,243 L34,238.5 L29.5,234 L29.5,236.25 C22.6153,236.2944 22.75,243 22.75,243 C22.75,243 25.2028,239.6298 29.5,240.3 L29.5,240.3 Z M25.9,234.45 L17.35,234.45 C16.2427...
client/src/components/confirmation.js
CharismaticChard/CharismaticChard
import React from 'react'; import Button from 'react-bootstrap/lib/Button'; import Modal from 'react-bootstrap/lib/Modal'; import Form from 'react-bootstrap/lib/Form'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import FormControl from 'react-bootstrap/lib/FormControl'; import numeral from 'numeral'; import ...
es/catalog/properties/property-color.js
dearkaran/react-planner
import React from 'react'; import PropTypes from 'prop-types'; import FormLabel from '../../components/style/form-label'; import FormColorInput from '../../components/style/form-color-input'; var tableStyle = { width: "100%", borderSpacing: "2px 0", marginBottom: "2px" }; var firstTdStyle = { width: '6em' }; export d...
src/components/Quiz.js
ETBlue/llscanner
import React from 'react' import { Redirect } from 'react-router' import { HashLink as Link } from 'react-router-hash-link' import { Progress } from 'semantic-ui-react' import PropTypes from 'prop-types' import * as options from '../settings/Option' import Option from './Option' const Quiz = ({rawQuizID, quizID, quiz...
example/v9.x.x/locize/src/App.js
i18next/react-i18next
import React, { Component } from 'react'; import { withNamespaces, Trans } from 'react-i18next'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { const { t, i18n } = this.props; const changeLanguage = lng => { i18n.changeLanguage(lng); }; return ( ...
src/svg-icons/communication/ring-volume.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationRingVolume = (props) => ( <SvgIcon {...props}> <path d="M23.71 16.67C20.66 13.78 16.54 12 12 12 7.46 12 3.34 13.78.29 16.67c-.18.18-.29.43-.29.71 0 .28.11.53.29.71l2.48 2.48c.18.18.43.29.71.29.27 0...
lib/shared/screens/admin/shared/components/page-builder-menu/actions/index.js
relax/relax
import Component from 'components/component'; import get from 'lodash/get'; import React from 'react'; import PropTypes from 'prop-types'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import {openDropDraftConfirmation, openPushChangesConfirmation} from 'actions/page-builder'; import A...
src/svg-icons/av/subtitles.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSubtitles = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM4 12h4v2H4v-2zm10 6H4v-2h10v2zm6 0h-4v-2h4v2zm0-4H10v-2h10v2z"/> </SvgIcon...
demo/src/index.js
nafitzgerald/allennlp
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
src/web/forms/__mocks__/DynamicForm.js
asha-nepal/AshaFusionCross
/** * Copyright 2017 Yuichiro Tsuchiya * * 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 agr...
src/main-block/HopCalc/HopCalc.js
ilya-matvienko/BeerCalc-react-v0.0.1
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import $ from 'jquery'; import HopHead from './HopHead'; import HopRow from './HopRow'; import './hopCalc.css'; export default class HopCalc extends Component { static PropTypes = { countRow: PropTypes.number.isRequi...
src/components/materialContent.js
grafmark59/gatsby-site
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import ReactModal from 'react-modal'; import RaisedButton from 'material-ui/RaisedButton'; // Grid imports import {GridList, GridTile} from 'material-ui/GridList'; import Subheader from 'material-ui/Subheader'; import StarBorder from 'material...
example/src/screens/types/tabs/TabTwo.js
eeynard/react-native-navigation
import React from 'react'; import {View, Text} from 'react-native'; class TabOne extends React.Component { render() { return ( <View> <Text>Tab Two</Text> </View> ); } } export default TabOne;
shared/components/Auth/ProfileView.js
kizzlebot/music_dev
'use strict'; import React from 'react'; class ProfileView extends React.Component { render() { return ( <div /> ); } } export default ProfileView;
app/GUI/helpers/disclaimer.js
bgrsquared/places
import React from 'react'; import { Well } from 'react-bootstrap'; export const Disclaimer = () => (<div> <Well bsSize={'small'}> <h5> News </h5> <p> Click to freeze a node (click it again (or specific button) to release it!) </p> <p> Most recently added countries: <strong>Iran...
app/jsx/blueprint_courses/components/BlueprintLockOptions.js
djbender/canvas-lms
/* * Copyright (C) 2017 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
src/components/Widgets/ObjectPreview.js
dopry/netlify-cms
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { resolveWidget } from '../Widgets'; import previewStyle from './defaultPreviewStyle'; const ObjectPreview = ({ field }) => ( <div style={previewStyle}>{(field && field.get('fields')) || null}</div> ); ObjectPreview.propTypes = { ...
src/components/todo/TodoList.js
brianlmosley/todo_react
import React from 'react' import {TodoItem} from './TodoItem' export const TodoList = (props) => { return ( <div className="Todo-List"> <ul> {props.todos.map(todo => <TodoItem handleToggle ={props.handleToggle} key = {todo.id} {...todo} handleRemove ={props.handleRemove}/>)} </u...
node_modules/react-bootstrap/es/Image.js
caughtclean/but-thats-wrong-blog
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 ...
docs/client/components/pages/Hashtag/CustomHashtagEditor/index.js
koaninc/draft-js-plugins
import React, { Component } from 'react'; import Editor, { createEditorStateWithText } from 'draft-js-plugins-editor'; // eslint-disable-line import/no-unresolved import createHashtagPlugin from 'draft-js-hashtag-plugin'; // eslint-disable-line import/no-unresolved import editorStyles from './editorStyles.css'; import ...
step6/client/index.js
colmarius/universal-react-workshop-app
import {render} from 'react-dom' import React from 'react' import Bootstrap from 'bootstrap/dist/css/bootstrap.css' import App from "./App.jsx" render(<App/>, document.getElementById("container"))
src/components/GameCheckIn.js
Julzso23/player.me-one-click-share
import React from 'react'; import GameSelection from './GameSelection'; import GameQuery from './GameQuery'; import GameList from './GameList'; export default class GameCheckIn extends React.Component { constructor(props) { super(props); this.state = { games: [], selection:...
src/browser/todos/Buttons.js
VigneshRavichandran02/3io
/* @flow */ import type { State } from '../../common/types'; import R from 'ramda'; import React from 'react'; import buttonsMessages from '../../common/todos/buttonsMessages'; import { Button, Space, View } from '../app/components'; import { FormattedMessage } from 'react-intl'; import { addHundredTodos, clearAllTodos...
src/app/routes/ui/containers/UiGeneral.js
backpackcoder/world-in-flames
import React from 'react' import {OverlayTrigger, Tooltip, Popover} from 'react-bootstrap' import {Stats, BigBreadcrumbs, WidgetGrid, JarvisWidget} from '../../../components' import UiProgressbar from '../../../components/ui/UiProgressbar' import {smallBox, bigBox, SmartMessageBox} from "../../../components/utils/a...
projects/twitch-ui/src/components/NavigationLinks.js
unindented/twitch-x
import React from 'react' import styled from 'styled-components' import NavigationLink from './NavigationLink' import homeIcon from 'twitch-assets/build/web/icons/home.svg' import streamsIcon from 'twitch-assets/build/web/icons/streams.svg' import gamesIcon from 'twitch-assets/build/web/icons/games.svg' import communit...
src/components/Post/Author/Author.js
dalareo/dalareo.github.io
// @flow strict import React from 'react'; import { getContactHref } from '../../../utils'; import styles from './Author.module.scss'; import { useSiteMetadata } from '../../../hooks'; const Author = () => { const { author } = useSiteMetadata(); return ( <div className={styles['author']}> <p className={...
src/js/components/icons/base/BrandGrommetPath.js
odedre/grommet-final
/** * @description BrandGrommetPath 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.textColo...
packages/reactor-kitchensink/src/examples/Charts/Line/BasicLine/BasicLine.js
markbrocato/extjs-reactor
import React, { Component } from 'react'; import { Container } from '@extjs/ext-react'; import { Cartesian } from '@extjs/ext-react-charts'; import data from './data'; import ChartToolbar from '../../ChartToolbar'; Ext.require([ 'Ext.chart.series.Line', 'Ext.chart.axis.Numeric', 'Ext.chart.axis.Time' ]); ...
src/components/MainPage/Footer.js
cindyqian/BoardGames
import React from 'react' import { Link } from 'react-router'; /** * */ export default class Footer extends React.Component{ /** * render * @return {ReactElement} markup */ render(){ return ( <div id="footer" style={{margin:'20px'}}> <a href="cindyqian.com" target="_blank">See more on Cindy's ...
src/components/IndexPage.js
Arunvirat/Logi-heroes
'use strict'; import React from 'react'; import AthletePreview from './AthletePreview'; import athletes from '../data/athletes'; export default class IndexPage extends React.Component { render() { return ( <div className="home"> <div className="athletes-selector"> {athletes.map(athleteDa...
src/svg-icons/action/zoom-out.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionZoomOut = (props) => ( <SvgIcon {...props}> <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 ...
demo/components/common/Loading.js
ahyiru/react-ui-demo
import React, { Component } from 'react'; import { Icon } from 'antd'; const main = { textAlign: 'center', fontSize: '16px', padding: '10px', width: '200px', } const loader = { paddingLeft: '10px', } export default class Loading extends Component { render() { return ( <div style={main}> ...
docs/app/Examples/elements/Loader/States/LoaderExampleDisabled.js
shengnian/shengnian-ui-react
import React from 'react' import { Loader, Image, Segment } from 'shengnian-ui-react' const LoaderExampleDisabled = () => ( <Segment> <Loader disabled /> <Image src='/assets/images/wireframe/short-paragraph.png' /> </Segment> ) export default LoaderExampleDisabled
js/App/Components/TabViews/SubViews/Device/Step.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or *...
docs/src/app/components/pages/components/DatePicker/ExampleSimple.js
rscnt/material-ui
import React from 'react'; import DatePicker from 'material-ui/DatePicker'; const DatePickerExampleSimple = () => ( <div> <DatePicker hintText="Portrait Dialog" /> <DatePicker hintText="Landscape Dialog" mode="landscape" /> <DatePicker hintText="Dialog Disabled" disabled={true} /> </div> ); export def...
src/components/Gallery/index.js
pekkis/diktaattoriporssi-2016
import React from 'react'; const entries = [ { 'image': require('./slider/bokassa-slider.jpg'), 'alt': 'Jean-Bedel Bokassa kruunataan Keski-Afrikan keisariksi. Seremonia on herkkä ja koskettava', 'caption': '"Diktaattoripörssi on kerrassaan mainio ilmestys. Jos minun olisi pakko valita, söi...
src/components/common/LogoutLink.js
bj0rge/bjorge-irc
import React from 'react'; const LogoutLink = ({signOut}) => { return <a href="#" onClick={signOut}>Logout</a>; }; LogoutLink.propTypes = { signOut: React.PropTypes.func.isRequired }; export default LogoutLink;
examples/js/column-format/get-row-index-table.js
powerhome/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0*/ /* eslint no-console: 0*/ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const jobs = []; function addProducts(quantity) { const startId = jobs.length; for (let i = 0; i < quantity; i++) { const id = ...
src/components/Content/index.js
StudentRND/www
import React from 'react' import { graphql } from 'gatsby' import "./index.sass" import HtmlBlock from '../Blocks/Html' import MarkdownBlock from '../Blocks/Markdown' import QuoteBlock from '../Blocks/Quote' import PhotoGalleryBlock from '../Blocks/PhotoGallery' import HeadingBlock from '../Blocks/Heading' import Spo...
react/features/settings/components/web/SettingsDialog.js
jitsi/jitsi-meet
// @flow import { withStyles } from '@material-ui/styles'; import React, { Component } from 'react'; import { getAvailableDevices } from '../../../base/devices'; import { DialogWithTabs, hideDialog } from '../../../base/dialog'; import { connect } from '../../../base/redux'; import { isCalendarEnabled } from '../../....
docs/src/layouts/doc-wrapper.js
optimizely/nuclear-js
import React from 'react' import Wrapper from './wrapper' import DocSidebar from '../components/doc-sidebar' import Nav from '../components/nav' export default React.createClass({ propTypes: { title: React.PropTypes.string.isRequired, contents: React.PropTypes.string.isRequired, }, render() { return...
src/components/Bag.js
TeamEatGood/shopping-list-ui
import React from 'react'; const Bag = ({children}) => ( <div className="bag"> <img src="../public/images/paperbag.svg"></img> <div className="shoppingBagContents">{children}</div> </div> ); export default Bag;
src/parser/priest/discipline/modules/spells/SinsOfTheMany.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import DualStatisticBox, { STATISTIC_ORDER } from 'interface/others/DualStatisticBox'; import { formatPercentage, formatNumber } from 'common/format'; import Combatants from 'parser/shared/modules/Combatants'; imp...
blueocean-material-icons/src/js/components/svg-icons/navigation/fullscreen.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const NavigationFullscreen = (props) => ( <SvgIcon {...props}> <path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/> </SvgIcon> ); NavigationFullscreen.displayName = 'NavigationFullscreen'; NavigationFullscreen...
app/javascript/mastodon/features/ui/components/zoomable_image.js
clworld/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const MIN_SCALE = 1; const MAX_SCALE = 4; const getMidpoint = (p1, p2) => ({ x: (p1.clientX + p2.clientX) / 2, y: (p1.clientY + p2.clientY) / 2, }); const getDistance = (p1, p2) => Math.sqrt(Math.pow(p1.clientX - p2.clientX, 2) + Math.pow(p1.client...
app/containers/Contact/index.js
Jasonlucas724/SWASH
/* * * Contact * */ import React from 'react'; import Helmet from 'react-helmet'; import Responsive from 'react-responsive'; import {Link} from 'react-router'; import Menu from 'material-ui/svg-icons/navigation/Menu'; import TextField from 'material-ui/TextField'; import Person from 'material-ui/svg-icons/social/p...
classic/src/scenes/wbfa/generated/FASArrowFromTop.pro.js
wavebox/waveboxapp
import React from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faArrowFromTop } from '@fortawesome/pro-solid-svg-icons/faArrowFromTop' export default class FASArrowFromTop extends React.Component { render () { return (<FontAwesomeIcon {...this.props} icon={faArrowFromTop} />) ...
src/SocialConnectComposit2/index.js
DuckyTeam/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import SocialConnect from '../SocialConnect'; import Spacer from '../Spacer'; import Typography from '../Typography'; import Wrapper from '../Wrapper'; import styles from './styles.css'; function SocialConnectComposit2(...
src/Layout/HeaderRow.js
react-mdl/react-mdl
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Spacer from './Spacer'; const HeaderRow = props => { const { className, title, children, hideSpacer, ...otherProps } = props; const classes = classNames('mdl-layout__header-row', className); return ...
src/svg-icons/communication/live-help.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationLiveHelp = (props) => ( <SvgIcon {...props}> <path d="M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 16h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 11.9 13 12.5 13...
docs/src/components/Docs/index.js
rhalff/storybook
import React from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import Header from '../Header'; import Container from './Container'; import Footer from '../Footer'; import './style.css'; const Docs = ({ sections, selectedItem, selectedSectionId, selectedItemId }) => ( <div classNam...
src/modules/NoteSearchOptions.js
OCMC-Translation-Projects/ioc-liturgical-react
import React from 'react'; import PropTypes from 'prop-types'; import ResourceSelector from './ReactSelector' import FontAwesome from 'react-fontawesome'; import { Button } from 'react-bootstrap'; class NoteSearchOptions extends React.Component { constructor(props) { super(props); let initialType = "Human"...
pkg/systemd/logs.js
garrett/cockpit
/* * This file is part of Cockpit. * * Copyright (C) 2015 Red Hat, Inc. * * Cockpit is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any l...
docs/app/Examples/modules/Popup/Usage/index.js
mohammed88/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const PopupUsageExamples = () => ( <ExampleSection title='Usage'> <ComponentExample title='Hover' description='A popu...
stories/date_picker/index.js
JerryBerton/dh-component
import React from 'react'; import { storiesOf, action, linkTo } from '@kadira/storybook'; import DatePickerDemo from './date_picker' import withReadme from 'storybook-readme/with-readme'; const options = { inline: true, propTables: false } storiesOf('DatePicker 日期选择', module) .addWithInfo('默认列表', () => ( <div...
docs/app/Examples/views/Feed/Content/FeedExampleIconLabel.js
vageeshb/Semantic-UI-React
import React from 'react' import { Feed, Icon } from 'semantic-ui-react' const FeedExampleIconLabel = () => ( <Feed> <Feed.Event> <Feed.Label> <Icon name='pencil' /> </Feed.Label> <Feed.Content> <Feed.Date>Today</Feed.Date> <Feed.Summary> You posted on your fri...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
yaal-fr/ysvgmaps
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
src/components/Account/Account.js
MattMcFarland/tw-client
import React from 'react'; import remove from 'lodash.remove'; import AccountActions from '../../actions/AccountActions'; import AccountStore from '../../stores/AccountStore'; import ProfileActions from '../../actions/ProfileActions'; import ProfileStore from '../../stores/ProfileStore'; const constrainProportions =...
app/js/sign-up/views/_success.js
blockstack/blockstack-browser
/** * Success screen * * This screen welcomes the new user and shows their username / ID */ import React from 'react' import { ShellScreen, Type, Button } from '@blockstack/ui' import PropTypes from 'prop-types' import { ProfileScreen, Line } from '@components/ui/containers/profile' import { Flex, Box } from '@comp...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Create/FormComponents/SingleInput.js
abimarank/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/li...
src/routes/Introduce/components/IntroduceView.js
eunvanz/handpokemon2
import React from 'react' import PropTypes from 'prop-types' import shallowCompare from 'react-addons-shallow-compare' import { getMsg } from 'utils/commonUtil' import ContentContainer from 'components/ContentContainer' import forKidultImg from './assets/art_1303782647.jpg' import collectionImg from './assets/collec...
views/main.js
bodiam/black-screen
import React from 'react'; import _ from 'lodash'; import Rx from 'rx'; import ApplicationView from './compiled/src/views/ApplicationView.js'; var keys = { goUp: event => (event.ctrlKey && event.keyCode === 80) || event.keyCode === 38, goDown: event => (event.ctrlKey && event.keyCode === 78) || event.keyCode ...
src/modules/Link.js
markmiro/ui-experiments
import React from 'react'; import {size} from './Size.js'; export class Link extends React.Component { render () { return ( <a href="#0" style={{ display: 'inline-block', padding: size(3), }} {...this.props}> {this.props.children} </a> ); } }
local-cli/generator/templates/index.ios.js
nathanajah/react-native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class <%= name %> extends Component { render() { return ( <View style={styles.container}> <T...
imports/ui/pages/UploadPdfCopyAdmin/UploadPdfCopyAdmin.js
jamiebones/Journal_Publication
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { Table, Alert, Button , Row , Col } from 'react-bootstrap'; import { Bert } from 'meteor/themeteorchef:bert'; import { Capitalize } from '../../../modules/utilities'; import { SortReturnRecentOne } from '.....
src/client/main.js
beni55/hacker-menu
import React from 'react' import StoryBox from './story_box.js' React.render( <StoryBox />, document.getElementById('container') )
benchmarks/src/implementations/reactxp/Provider.js
rofrischmann/fela
/* eslint-disable react/prop-types */ import React from 'react'; import { object } from 'prop-types'; import { View } from 'reactxp'; class Provider extends React.Component { /* this mock context is necessary for reactxp to work without errors… ¯\_(ツ)_/¯ */ static childContextTypes = { focusManager: object ...
src/Alert.js
adampickeral/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Alert = React.createClass({ mixins: [BootstrapMixin], propTypes: { onDismiss: React.PropTypes.func, dismissAfter: React.PropTypes.number, closeLabel: React.PropTypes.string }, getD...
src/components/Rule.js
dlindahl/stemcell
import { array, number, object, oneOfType } from 'prop-types' import Bit from './Bit' import { boxModelRuleVerticalRhythm as vr } from '../util/verticalRhythm' import React from 'react' const Rule = ( { css, size, margin, marginVertical = margin, marginHorizontal = margin, marginTop = marginV...
client/src/vizhu.js
nikita-sunwind/vizhu
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import 'bootstrap/dist/css/bootstrap.min.css'; import 'font-awesome/css/font-awesome.min.css'; import AppRouter from './Router'; import AppStore from './Store'; ReactDOM.render( <Provider store={AppStore}> ...
src/svg-icons/image/filter-9-plus.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter9Plus = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 7V8c0-1.11-.9-2-2-2h-1c-1.1 0-2 .89-2 2v1c0 1.11.9 2 2 2h1v1H9v2h3c1.1 0 2-.89 2-2zm-3-3V8h1v1h-1zm10-8H7c-1.1...
src/scenes/home/press/pressPhotos/pressPhotos.js
sethbergman/operationcode_frontend
import React from 'react'; import CodeConferencePic from '../../../../images/CodeConferenceLA.jpg'; import RedHatSummitPic from '../../../../images/RedHat-Summit.jpg'; import NodeSummitPic from '../../../../images/Node-Summit.jpg'; import AngelHackBostonPic from '../../../../images/AngelHack-Boston.jpg'; import UtahMee...
src/Affix.js
erictherobot/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import AffixMixin from './AffixMixin'; const Affix = React.createClass({ mixins: [AffixMixin], render() { let holderStyle = { top: this.state.affixPositionTop, // we don't want to expose the `style` property ...this.props.style...
stories/Protvista.skip-stories.js
ProteinsWebTeam/interpro7-client
import React from 'react'; import { EntryColorMode } from 'utils/entry-color'; import { ProtVista } from 'components/ProtVista'; import Provider from './Provider'; import configureStore from './configuedStore.js'; const store = configureStore(); const withProvider = (story) => <Provider store={store}>{story()}</Pro...
src/01-jsx/App.js
benmvp/react-workshop
import React from 'react' const App = () => { return ( <main> <h1>Giphy Search!</h1> </main> ) } export default App
docs/src/stories/ControlledTable.js
byumark/react-table
/* eslint-disable import/no-webpack-loader-syntax */ import React from 'react' import _ from 'lodash' import namor from 'namor' import ReactTable from '../../../lib/index' const data = _.map(_.range(5553), d => { return { firstName: namor.generate({ words: 1, numLen: 0 }), lastName: namor.generate({ words: ...
js/fw/LessonTitle.js
leftstick/react-lesson
'use strict'; import React from 'react'; class LessonTitle extends React.Component { constructor(props) { super(props); } shouldComponentUpdate(nextProps, nextState) { return this.props.text !== nextProps.text; } render() { return ( <h2 style={ styles.header ...
client/scripts/components/user/dashboard/review-table-row/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...
app/containers/Account/Register/index.js
rayrw/skygear-apitable
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { push as changeRouteAction } from 'react-router-redux'; import { showNotification as showNotificationAction } from 'containers/Notification/actions'; import * as actions from './actions'; import AccountRegister from '../../../compo...
src/components/AthletesMenu.js
lmammino/judo-heroes
'use strict'; import React from 'react'; import { Link } from 'react-router'; export default class AthletesMenu extends React.Component { render() { return ( <nav className="athletes-menu"> {this.props.athletes.map(menuAthlete => { return <Link key={menuAthlete.id} to={`/athlete/${menuAt...
client/src/containers/Home.js
codefordenver/Circular
import React from 'react'; import { Grid } from 'react-bootstrap'; import { connect } from 'react-redux'; import HeroCTA from '../components/HeroCTA'; // import CampaignsMap from '../components/CampaignsMap'; import StepByStep from '../components/StepByStep'; import TenantOrPMChoice from '../components/TenantOrPMChoice...
simple-filer/src/renderer/components/react-split-pane/Resizer.js
akabekobeko/examples-electron
import React from 'react'; import PropTypes from 'prop-types'; import stylePropType from 'react-style-proptype'; export const RESIZER_DEFAULT_CLASSNAME = 'Resizer'; class Resizer extends React.Component { render() { const { className, onClick, onDoubleClick, onMouseDown, onTouchEnd...
app/components/shared/FormSelect.js
fotinakis/buildkite-frontend
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import FormInputLabel from './FormInputLabel'; import FormInputHelp from './FormInputHelp'; import FormInputErrors from './FormInputErrors'; class FormSelect extends React.Component { static propTypes = { options...
react/EmailField/EmailField.js
seek-oss/seek-style-guide
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import TextField from '../TextField/TextField'; const seekEmailRegex = "^[a-zA-Z0-9_][a-zA-Z0-9!#$%&'*+/=?_`{|}~-]*(?:.[a-zA-Z0-9!#$%&';*+/=?_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?.)+(?:[a-zA-Z]{2,})$"; export default clas...
src/static-page.js
cmwd/cmwd.github.io
import React from 'react'; import { renderToString } from 'react-dom/server'; import { styleSheet } from 'styled-components'; import App from './App'; import { normalizer } from './entity'; export default function render(locals) { const store = normalizer(locals.initialState); const html = renderToString( <Ap...
GrooveBass/App/Components/Concerts.js
Groove-Bass/Groove-Bass-the-Repo
import React, { Component } from 'react'; var ReactNative = require('react-native'); import PlayerUI from './Player'; var sapi = require('../Utils/spotifyapi') import { Player } from 'react-native-audio-streaming'; var { View, Text, StyleSheet, TextInput, Button, ScrollView, Linking, TouchableHighlig...
example/login-react/src/App.js
bripkens/formalistic
import React, { Component } from 'react'; import Login from './Login'; class App extends Component { render() { return ( <div className="App"> <div className="App-header"> <h2>formalistic and React example</h2> </div> <Login /> </div> ); } } export default Ap...
src/Main/ItemManaGained.js
enragednuke/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import Wrapper from 'common/Wrapper'; import ResourceIcon from 'common/ResourceIcon'; import RESOURCE_TYPES from 'common/RESOURCE_TYPES'; import connectParser from 'common/connectParser'; class ItemManaGained extends React.PureComponent { static propTyp...
src/components/DateModal.js
richardstrutt/umbrella
import React from 'react'; import Toast from 'react-native-simple-toast'; import PropTypes from 'prop-types'; import { View, TouchableHighlight, Modal, Text, DatePickerIOS, TimePickerAndroid, } from 'react-native'; import utils from '../utils/methods'; import { Button } from './common'; import styles from '...
blueprints/route/files/src/routes/__name__/components/__name__.js
IndyXTechFellowship/Cultural-Trail-Web
import React from 'react' import classes from './<%= pascalEntityName %>.scss' export const <%= pascalEntityName %> = () => ( <div className={classes['<%= pascalEntityName %>']}> <h4><%= pascalEntityName %></h4> </div> ) export default <%= pascalEntityName %>
ios/versioned-react-native/ABI11_0_0/Libraries/Utilities/throwOnWrongReactAPI.js
jolicloud/exponent
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/components/TouchableNativeFeedback.js
Root-App/react-native-mock-render
import React from 'react'; import PropTypes from 'prop-types'; import createReactClass from 'create-react-class'; import TouchableWithoutFeedback from './TouchableWithoutFeedback'; const TouchableNativeFeedback = createReactClass({ displayName: 'TouchableNativeFeedback', propTypes: { ...TouchableWithoutFeedba...
src/library/Menu/MenuGroup.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import { MenuGroupTitle } from './styled'; import { menuGroupPropTypes } from './propTypes'; import type { MenuGroupProps } from './types'; const MenuGroup = (props: MenuGroupProps) => { const { children, title, ...restProps } = props; return [ title && ( <MenuGrou...
packages/vulcan-forms/lib/components/withCollectionProps.js
VulcanJS/Vulcan
import React from 'react'; import { extractCollectionInfo } from 'meteor/vulcan:lib'; import PropTypes from 'prop-types'; /** * Handle the collection or collectionName and pass down other related * props (typeName, collectionName, etc.) */ const withCollectionProps = C => { const CollectionPropsWrapper = ({ colle...
pages/decal/lesson-11/index.js
jubearsun/innovative-design
import React from 'react'; import DocumentTitle from 'react-document-title'; import { prefixLink } from 'gatsby-helpers'; import $ from 'jquery'; import _ from 'lodash'; export default class Index extends React.Component { constructor(props) { super(props); } componentDidMount() {} render () { retur...
src/containers/Asians/_components/ViewLockedRound/AdjudicationFeedback/index.js
westoncolemanl/tabbr-web
import React from 'react' import Responsive from 'react-responsive' import LargeAdjudicatorFeedback from './LargeAdjudicatorFeedback' import SmallAdjudicatorFeedback from './SmallAdjudicatorFeedback' export default ({ round }) => { return ( <div> <Responsive minWidth={961} > <Large...
src/svg-icons/action/android.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAndroid = (props) => ( <SvgIcon {...props}> <path d="M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V8H6v10zM3.5 8C2.67 8...
test/fixtures/ignored/actual.js
layershifter/babel-plugin-transform-react-handled-props
import PropTypes from 'prop-types'; import React from 'react'; function Example() { return <div />; } Example.defaultProps = { as: 'button' }; Example.propTypes = { as: PropTypes.element, children: PropTypes.node, className: PropTypes.string }; export default Example;