path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
tests/baselines/reference/checkJsxChildrenCanBeTupleType.js
nojvek/TypeScript
//// [checkJsxChildrenCanBeTupleType.tsx] /// <reference path="/.lib/react16.d.ts" /> import React from 'react' interface ResizablePanelProps { children: [React.ReactNode, React.ReactNode] } class ResizablePanel extends React.Component< ResizablePanelProps, any> {} const test = <ResizablePanel> <div /> <di...
app/components/Preview/RightBlock/MessageDispatcher/MessageDispatcher.js
realgvard/telegram_theme_customizer
import React, { Component } from 'react'; import CSSModules from 'react-css-modules'; import { connect } from 'react-redux'; // Components import AppBar from 'material-ui/AppBar'; import IconButton from 'material-ui/IconButton'; import TextField from 'material-ui/TextField'; // Images import MicIcon from 'material-ui...
doc/src/pages/examples/component-pointer.js
mapillary/mapillary-js
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format */ import React from 'react'; import Layout from '@theme/Layout'; import {Code} from '../../js/components/Code'; import...
src/svg-icons/av/play-arrow.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPlayArrow = (props) => ( <SvgIcon {...props}> <path d="M8 5v14l11-7z"/> </SvgIcon> ); AvPlayArrow = pure(AvPlayArrow); AvPlayArrow.displayName = 'AvPlayArrow'; AvPlayArrow.muiName = 'SvgIcon'; export defau...
react/features/device-selection/components/DeviceSelectionDialog.js
parisjulien/arkadin-jitsimeet
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { setAudioInputDevice, setAudioOutputDevice, setVideoInputDevice } from '../../base/devices'; import { Dialog, hideDialog } from '../../base/dialog'; import { translate } from '../../base/i18n'; import { createL...
src/components/Main.js
planningFor/react-build
import React, { Component } from 'react'; import Navbar from './Navbar'; import Loading from './Loading'; require('../css/Main.scss'); /** * App component is top component of all. */ export default class App extends Component { render() { return ( <div className="app"> <Navba...
demo/reactjs/src/index.js
harttle/shopify-liquid
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import * as serviceWorker from './serviceWorker'; import { App } from './App'; // import { App } from './AppWithHooks'; ReactDOM.render(<App />, document.getElementById('root')); // If you want your app to work offline and load faster,...
src/scenes.js
yarikgenza/WhereToGo-Lviv
import React from 'react'; import { Actions, Scene } from 'react-native-router-flux'; import LaunchScreen from './Containers/LaunchScreen'; import LocationScreen from './Containers/LocationScreen'; import CategoryScreen from './Containers/CategoryScreen'; import PlacesScreen from './Containers/Places/PlacesScreen'; i...
packages/mineral-ui-icons/src/IconNotificationsNone.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconNotificationsNone(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {......
src/components/Rocket.js
krystalcampioni/krystalcampioni-portfolio
import React from 'react'; import styles from '../styles/main.scss'; var Rocket = React.createClass({ render: function(){ return( <div className={styles.rocket}> <ul className={styles.rocket__windows}> <li></li> <li></li> <li></li> <li></li> </ul> ...
app/components/H1/index.js
PeterKow/clientAurity
import React from 'react'; import styles from './styles.css'; function H1(props) { return ( <h1 className={ styles.heading1 } { ...props } /> ); } export default H1;
app/javascript/mastodon/components/autosuggest_emoji.js
ikuradon/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import unicodeMapping from '../features/emoji/emoji_unicode_mapping_light'; import { assetHost } from 'mastodon/utils/config'; export default class AutosuggestEmoji extends React.PureComponent { static propTypes = { emoji: PropTypes.object.isRequire...
examples/huge-apps/routes/Grades/components/Grades.js
KamilSzot/react-router
import React from 'react'; class Grades extends React.Component { render () { return ( <div> <h2>Grades</h2> </div> ); } } export default Grades;
src/pages/pokemon.js
tylerchilds/pokedex
import React from 'react'; import { IndexLink, Link } from 'react-router'; import TypeMatchup from '../components/type-matchup'; import TypeLink from '../components/type-link'; import PokemonLink from '../components/pokemon-link'; import ALL_POKEMON from '../data/pokemon'; export default class Pokemon extends React.Co...
src/styles/style.js
ijhua/analytics
import React from 'react'; const link = { normal: { borderBottom: '1px dotted rgb(0, 168, 0)', }, hover: { borderBottom: '1px solid rgb(0, 168, 0)', color: 'black', }, active: 'hover', touchActive: { borderBottom: '1px dashed rgb(0, 168, 0)', color: 'black', }, focusFromTab: { o...
packages/react-error-overlay/src/components/Collapsible.js
digitalorigin/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. */ /* @flow */ import React, { Component } from 'react'; import { black } from '../styles'; import type { Element as ReactElement } from '...
examples/universal/client/index.js
jdelight/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import configureStore from '../common/store/configureStore'; import App from '../common/containers/App'; const initialState = window.__INITIAL_STATE__; const store = configureStore(initialState); const rootElement = do...
Projets/JS/React/Projet 3 BAR/myRecipeBox/src/components/Admin.js
thib123/TPJ
import React from 'react'; import base from '../base'; import AjouterRecette from './AjouterRecette'; class Admin extends React.Component { state = { uid: null, owner: null }; componentDidMount() { base.onAuth(user => { if (user) { this.traiterConnexion(null, { user }) } }) } traiterChangemen...
examples/files/core_components/sectionlistHomogenous.js
dabbott/react-native-express
import React from 'react' import { SectionList, StyleSheet, Text } from 'react-native' const sections = [ { id: '0', title: 'Basic Components', data: [ { id: '0', text: 'View' }, { id: '1', text: 'Text' }, { id: '2', text: 'Image' }, ], }, { id: '1', title: 'List Compone...
examples/huge-apps/routes/Course/components/Dashboard.js
birendra-ideas2it/react-router
import React from 'react' class Dashboard extends React.Component { render() { return ( <div> <h3>Course Dashboard</h3> </div> ) } } export default Dashboard
apps/mk-app-tree-table/apps/mk-app-tree-table-detail/action.js
ziaochina/mk-demo
import React from 'react' import { action as MetaAction, AppLoader } from 'mk-meta-engine' import { List, fromJS } from 'immutable' import moment from 'moment' import config from './config' class action { constructor(option) { this.metaAction = option.metaAction this.config = config.current ...
dashboard/components/log.js
vinnyhuang/fw-dev-dashboard
import React, { Component } from 'react'; import ansiHTML from 'ansi-html'; import Parser from 'html-react-parser'; ansiHTML.setColors({ reset: ['111111','ffffff'], black: '111111', white: 'ffffff', red: 'ff4136', green: '2ecc40', yellow: 'ffdc00', blue: '0074d9', magenta: ...
src/components/Music/Music.js
Aquellex/aquellexws
import React from 'react'; import PropTypes from 'prop-types'; import styles from './Music.module.css'; const Music = ({ title, genre, children }) => ( <article className={styles.music}> <h4 className={styles.musicEntryTitle}> <span>{title}</span> &#8729; {genre} </h4> {children} </article> ); ...
src/components/Template/Hero/index.js
tscanlin/tocbot
import React from 'react' import Link from 'next/link' function makeGithubCounter ({ user, repo }) { return <iframe src={`https://ghbtns.com/github-btn.html?user=${user}&repo=${repo}&type=star&count=true&size=large`} frameBorder='0' scrolling='0' width='160px' height='30px' /> } function Hero (props) { return ( ...
lib/Sae.js
halilb/react-native-textinput-effects
import React from 'react'; import PropTypes from 'prop-types'; import { Animated, TextInput, TouchableWithoutFeedback, View, StyleSheet, } from 'react-native'; import BaseInput from './BaseInput'; export default class Sae extends BaseInput { static propTypes = { height: PropTypes.number, /* *...
app/hourList/GDHourList.js
jo-liu/GD
/** * Created by Jo on 2017/8/30. */ /** * Created by Jo on 2017/8/30. */ /** * Created by Jo on 2017/8/30. */ /** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { StyleSheet, Text, View, TouchableOpacity, ...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
AndreyKedo/My_project_blog
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/Parser/Priest/Shadow/Modules/Features/Checklist.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; // import ITEMS from 'common/ITEMS'; import SpellLink from 'common/SpellLink'; import Wrapper from 'common/Wrapper'; // import ItemLink from 'common/ItemLink'; import CoreChecklist, { Rule, Requirement } from 'Parser/Core/Modules/Features/Checklist'; imp...
index.js
RealOrangeOne/react-native-busy-indicator
import React from 'react'; import { StyleSheet, View, Text, DeviceEventEmitter, ActivityIndicator } from 'react-native'; import PropTypes from 'prop-types'; const styles = StyleSheet.create({ container: { position: 'absolute', backgroundColor: 'rgba(0,0,0,0.3)', justifyContent: 'center', ...
src/manager/components/SelectTheme.js
sm-react/react-theming
import React from 'react'; import { flattenTheme } from '@react-theming/flatten'; import * as styled from './SelectTheme.styled'; import Toolbar from '../UI/Toolbar'; import Caption from '../UI/Caption'; import IconButton from '../UI/IconButton'; const materialPreview = ({ palette }) => ({ main: [palette.primary.ma...
app/static/src/diagnostic/CampaignForm_modules/NewUserForm.js
vsilent/Vision
import React from 'react'; import FormControl from 'react-bootstrap/lib/FormControl'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import Button from 'react-bootstrap/lib/Button'; import Panel from 'react-bootstrap/lib/Panel'; import Checkbox from 'react-bootstrap/lib/Checkbox'; import {findDOMNode} from 'rea...
ajax/libs/react-redux/7.1.0-alpha.0/react-redux.js
sufuf3/cdnjs
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('redux'), require('react-dom')) : typeof define === 'function' && define.amd ? define(['exports', 'react', 'redux', 'react-dom'], factory) : (global = global || self, factory(glo...
src/components/LongDescription.js
OpenCollective/frontend
import React from 'react'; import PropTypes from 'prop-types'; import { processMarkdown } from '../lib/markdown.lib'; import SectionTitle from './SectionTitle'; import { FormattedMessage } from 'react-intl'; import unified from 'unified'; import remarkParse from 'remark-parse'; import remarkRehype from 'remark-rehype';...
src/layouts/PublicLayout.js
sanalonyedi/egitimbudur-web-app
import React from 'react' import { IndexLink, Link } from 'react-router' import PropTypes from 'prop-types' import Header from '../components/Header' export const PublicLayout = ({ children }) => ( <div> <Header /> {children} </div> ) PublicLayout.propTypes = { children: PropTypes.node, }...
src/Pagination.js
brentertz/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import PaginationButton from './PaginationButton'; import CustomPropTypes from './utils/CustomPropTypes'; import SafeAnchor from './SafeAnchor'; const Pagination = React.createClass({ mixins: [BootstrapMixi...
docs/app/Examples/collections/Grid/Variations/GridExamplePadded.js
clemensw/stardust
import React from 'react' import { Grid, Image } from 'semantic-ui-react' const GridExamplePadded = () => ( <div> <p>The following grid has vertical and horizontal gutters.</p> <Grid columns={2} padded> <Grid.Column> <Image src='http://semantic-ui.com/images/wireframe/paragraph.png' /> <...
example/components/Chart.js
woles/animated-3d-piechart
import React from 'react'; import piechart3D from '../../src'; function generateId() { const alphabet = 'abcdefghijklmnopqrstuvwxyz'; let id = ''; for (let i = 2; i >= 0; i -= 1) { id += (alphabet[(Math.random() * alphabet.length).toFixed(0)]); } return id; } class Chart extends React.Component { st...
example/examples/PanController.js
pjamrozowicz/react-native-maps
/* eslint-disable */ import React from 'react'; import PropTypes from 'prop-types'; import { View, Animated, PanResponder, } from 'react-native'; const ModePropType = PropTypes.oneOf(['decay', 'snap', 'spring-origin']); const OvershootPropType = PropTypes.oneOf(['spring', 'clamp']); const AnimatedPropType = Pr...
Team4of5/src/Team4of5_App/ProjectManagement/ProjectManagement.js
Team4Of5/Project
import React from 'react'; import Navbar from '../Navbar/Nav.js'; import ProjectManagementTable from './ProjectManagementTable.js'; import './ProjectManagementTables.css'; import * as Users from '../../Team4of5_Service/Users.js'; //import { Board } from 'react-trello' import { Board } from './react-trello/src/index.js'...
ajax/libs/react-instantsearch/4.5.0/Connectors.js
wout/cdnjs
/*! ReactInstantSearch 4.5.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) : ...
client/app/components/ListRowItem.js
florianporada/moovel_testme
import React from 'react'; import { Text } from 'react-native'; import PropTypes from 'prop-types'; class ListRowItem extends React.Component { constructor(props) { super(props); } render() { return ( <Text>{this.props.name}</Text> ); } } ListRowItem.propTypes = { name: PropTypes.string ...
docs/src/app/components/pages/components/Dialog/ExampleAlert.js
w01fgang/material-ui
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; /** * Alerts are urgent interruptions, requiring acknowledgement, that inform the user about a situation. */ export default class DialogExampleAler...
src/client/components/App.js
mucsi96/react-native-lambda-starter
import React from 'react'; import { StyleSheet, Text, View, ScrollView } from 'react-native'; import RegisterForm from './RegisterForm'; export default () => ( <View style={styles.container}> <ScrollView> <RegisterForm/> </ScrollView> </View> ) const styles = StyleSheet.create({ container:...
webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Table.js
adamruzicka/katello
import React from 'react'; import PropTypes from 'prop-types'; import { Table as PFtable } from 'patternfly-react'; import { translate as __ } from 'foremanReact/common/I18n'; import classNames from 'classnames'; import { createSubscriptionsTableSchema } from '../SubscriptionsTableSchema'; import { Table as ForemanTabl...
src/Parser/Paladin/Holy/Modules/Traits/SacredDawn.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage } from 'common/format'; import Analyzer from 'Parser/Core/Analyzer'; import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing'; import Combatants from 'Parser/Core/Mod...
src/components/RandomizerPage.js
rgdelato/instantly-lunch
import React, { Component } from 'react'; import { TransitionMotion, spring } from 'react-motion'; import RestaurantItem from '../containers/RestaurantItem'; class AttributeCheckbox extends Component { render () { const { name } = this.props; return ( <label className="restaurant-item-attribute"> <input...
tests/site2/code/components/component2.js
dominikwilkowski/cuttlebelle
import PropTypes from 'prop-types'; import React from 'react'; import List from './list'; /** * The Component2 component for the footer */ const Component2 = ({ background, links }) => { const backgroundStyle = { backgroundColor: background, padding: '1em', marginTop: '3em', }; return ( <footer style={ ...
webpack/scenes/Subscriptions/Details/SubscriptionDetailProducts.js
Katello/katello
import React from 'react'; import PropTypes from 'prop-types'; import { translate as __ } from 'foremanReact/common/I18n'; import { ListGroup, ListGroupItem } from 'patternfly-react'; import './SubscriptionDetails.scss'; const SubscriptionDetailProducts = ({ subscriptionDetails }) => ( <div> <h2>{__('Provided Pr...
app/components/slider/UpMenuSlider.js
Hirico/supic
/** * Created by lu on 2017/7/20. */ import React, { Component } from 'react'; import { Slider, Icon } from 'antd'; import styles from './UpMenuSlider.css'; class UpMenuSlider extends Component { constructor(props) { super(props); const { max, min } = props; const mid = ((max - min) / 2).toFixed(5); ...
client/charCreation/gameDifficulty.js
mordrax/cotwmtor
import React from 'react'; import * as actions from '../../actions/index'; import {connect} from 'react-redux'; import classNames from '../../node_modules/classnames/bind'; import Game from '../../collections/games'; export const DifficultyLevel = { "Easy": 0, "Intermediate": 1, "Difficult": 2, "ExpertsOnly": ...
docs/app/Examples/collections/Table/Variations/TableExampleCollapsing.js
aabustamante/Semantic-UI-React
import React from 'react' import { Table } from 'semantic-ui-react' const TableExampleCollapsing = () => { return ( <Table collapsing> <Table.Header> <Table.Row> <Table.HeaderCell>Name</Table.HeaderCell> <Table.HeaderCell>Status</Table.HeaderCell> <Table.HeaderCell>Not...
docs-ui/components/shareIssue.stories.js
beeftornado/sentry
import React from 'react'; import {action} from '@storybook/addon-actions'; import {text} from '@storybook/addon-knobs'; import {withInfo} from '@storybook/addon-info'; import ShareIssue from 'app/components/shareIssue'; export default { title: 'Features/Issues/Share Issue', }; class ShareSimulator extends React.C...
Todo/components/Index.js
davejmac/test-react-native-app
import React from 'react' import { Provider } from 'react-redux' import { createStore } from 'redux' import todoApp from '../reducers' import App from './App' let store = createStore(todoApp) const Index = () => ( <Provider store={store}> <App /> </Provider> ) export default Index
src/about/index.js
Zetoff/react-flexbox-grid-jss-demo
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-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'; ...
src/layouts/CoreLayout/CoreLayout.js
jhardin293/style-guide-manager
import React from 'react' import Header from '../../components/Header' import './CoreLayout.scss' import '../../styles/core.scss' export const CoreLayout = ({ children }) => ( <div> <Header /> <div> {children} </div> </div> ) CoreLayout.propTypes = { children : React.PropTypes.element.isRequir...
examples/demos/rendering.js
TeaBough/react-big-calendar
import React from 'react' import { Calendar, Views } from 'react-big-calendar' import events from '../events' function Event({ event }) { return ( <span> <strong>{event.title}</strong> {event.desc && ': ' + event.desc} </span> ) } function EventAgenda({ event }) { return ( <span> ...
node_modules/react-router-dom/es/HashRouter.js
Bartoshko/occasion-jitsu
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
src/components/molecules/HomeTitle/index.js
SIB-Colombia/biodiversity_catalogue_v2_frontend
import React from 'react'; import styled from 'styled-components'; import {Link} from 'components'; import Copyright from 'material-ui/svg-icons/action/copyright'; import {size, palette} from 'styled-theme'; const Wrapper = styled.div ` font-size: 25px; padding: 30px 10px; font-weight: 500; margin-left: 20px; color:#...
src/core/display/App/Navigation/Horizontal/index.js
JulienPradet/pigment-store
import React from 'react' import CategoryNavigation from './CategoryNavigation' const Navigation = ({indexCategory, prefix}) => ( <CategoryNavigation category={indexCategory} prefix={prefix} parentPathname={prefix} /> ) export default Navigation
react/features/calendar-sync/components/CalendarList.native.js
gpolitis/jitsi-meet
// @flow import React from 'react'; import { Text, TouchableOpacity, View } from 'react-native'; import { translate } from '../../base/i18n'; import { AbstractPage } from '../../base/react'; import { connect } from '../../base/redux'; import { openSettings } from '../../mobile/permissions'; import { refre...
paraviewweb/src/React/Properties/MapProperty/KeyValuePair.js
CordyChen/VisMechan
import React from 'react'; import style from 'PVWStyle/ReactProperties/MapProperty.mcss'; export default React.createClass({ displayName: 'KeyValuePair', propTypes: { idx: React.PropTypes.number, label: React.PropTypes.string, onChange: React.PropTypes.func, value: React.PropTypes.object, }, ...
source/PhoneInput.js
halt-hammerzeit/react-phone-number-input
import React from 'react' import PropTypes from 'prop-types' import usePhoneDigits from './usePhoneDigits' function PhoneInput({ Component, country, defaultCountry, useNationalFormatForDefaultCountryValue, value, onChange, metadata, international, withCountryCallingCode, ...rest }, ref) { // "Phone digits"...
src/components/TableOfContents/TableOfContents.js
hologram-io/docs
import React from 'react' import {Link} from '../' class TableOfContents extends React.PureComponent { constructor(props) { super(props); } render() { const { tocData = [] } = this.props; return ( <div className="toc"> {tocData.map((group, i) => ( <div className="lin...
src/svg-icons/device/screen-rotation.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceScreenRotation = (props) => ( <SvgIcon {...props}> <path d="M16.48 2.52c3.27 1.55 5.61 4.72 5.97 8.48h1.5C23.44 4.84 18.29 0 12 0l-.66.03 3.81 3.81 1.33-1.32zm-6.25-.77c-.59-.59-1.54-.59-2.12 0L1.75 8.11c...
examples/js/selection/single-select-table.js
neelvadgama-hailo/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
pages/about.js
uraway/CreditChecking
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; import FlatButton from 'material-ui/lib/flat-button'; import FontIcon from 'material-ui/lib/font-icon'; import { TwitterButton...
android/rn/src/ui/cmntList/index.js
skyujilong/native-rn
//评论列表部分 'use strict'; import React from 'react'; import { View, Text, Alert, Button, Image, TouchableOpacity } from 'react-native'; import './reducer'; import {connect} from 'react-redux'; import styles from './css/style'; import {goReplyList,disableGoReplyList} from './action'; class CmntLis...
Example/index.android.js
pocesar/react-native-sim
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import RNSimData from 'react-native-sim-data' export default class Example extends Component { render() { ...
techCurriculum/ui/solutions/4.1/src/components/Title.js
tadas412/EngineeringEssentials
/** * Copyright 2017 Goldman Sachs. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
src/svg-icons/av/volume-down.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVolumeDown = (props) => ( <SvgIcon {...props}> <path d="M18.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM5 9v6h4l5 5V4L9 9H5z"/> </SvgIcon> ); AvVolumeDown = pure(AvVolumeDown); AvVolumeD...
app/components/ActionBar/ControlBetRaise.js
acebusters/ab-web
import React from 'react'; import PropTypes from 'prop-types'; import ActionButton from './ActionButton'; import { ALL_IN, BET_SET, BET, } from '../../containers/ActionBar/actions'; const ControlBetRaise = (props) => { const { amount, amountToCall, minRaise, myStack, sliderOpen, } = pro...
src/js/components/icons/base/DriveCage.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...
_site/src/components/header/settings-dialog.js
eemp/elasticsearch-scribe
import React from 'react' import Dialog from 'material-ui/lib/dialog' import RaisedButton from 'material-ui/lib/raised-button' import RadioButton from 'material-ui/lib/radio-button' import RadioButtonGroup from 'material-ui/lib/radio-button-group' import Toggle from 'material-ui/lib/toggle' class SettingsDialog exten...
src/common/containers/SiteCreate.js
strekmann/samklang
import React from 'react'; import { Grid, Row, Col, Input, Button } from 'react-bootstrap'; import { connect } from 'react-redux'; import { createSite } from '../actions/sites'; class SiteCreate extends React.Component { constructor(props) { super(props); this.onCreate = this.onCreate.bind(this); ...
src/components/Links.js
ysaaron/react-collapse-tree
import React from 'react'; import { TransitionMotion, spring } from 'react-motion'; import d3 from 'd3'; const diagonal = d3.svg.diagonal().projection((d) => { return [d.y, d.x]; }); export default class Links extends React.Component { constructor(props) { super(props); this.willEnter = this.willEnter.bind...
packages/node_modules/@webex/react-component-activity-system-message/src/index.js
adamweeks/react-ciscospark-1
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import {FormattedMessage} from 'react-intl'; import CallDataActivityMessage from '@webex/react-component-call-data-activity'; import messages from './messages'; import styles from './styles.css'; // eslint-disable-nex...
app/containers/Login/index.js
thecodingwhale/conduit-clone
/** * * Login * */ import React from 'react'; import PropTypes from 'prop-types'; import { push } from 'react-router-redux'; import { connect } from 'react-redux'; import { Helmet } from 'react-helmet'; import { FormattedMessage } from 'react-intl'; import { createStructuredSelector } from 'reselect'; import { com...
src/theme/template/NotFound.js
td-ui/td-ui.github.io
/** * @Author: Zhengfeng.Yao <yzf> * @Date: 2017-06-12 11:29:45 * @Last modified by: yzf * @Last modified time: 2017-06-12 11:29:47 */ import React from 'react'; import { Link } from 'react-router'; import * as utils from './utils'; export default function NotFound({ location }) { return ( <div id="pag...
showcase/axes/custom-axis.js
Apercu/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
app/javascript/mastodon/features/explore/tags.js
musashino205/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { ImmutableHashtag as Hashtag } from 'mastodon/components/hashtag'; import LoadingIndicator from 'mastodon/components/loading_indicator'; import { connect } from 'react-redux'; import { fetc...
addons/themes/striped/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'; import scrollToElement from 'scroll-to-element'; let Home = React.createClass({ componentDidMount(){ require('../assets/css/main.c...
packages/strapi-admin/files/public/app/components/LeftMenuSubLinkContainer/index.js
evian42/starpies
/** * * LeftMenuLinkContainer * */ import React from 'react'; import LeftMenuSubLink from 'components/LeftMenuSubLink'; import styles from './styles.scss'; class LeftMenuSubLinkContainer extends React.Component { // eslint-disable-line react/prefer-stateless-function render() { // List of links let links = ...
js/components/details/DetailsContent.js
a-omsk/Vegreact
import React from 'react'; const DetailsContent = ({ location, hasManyLocations, prev, next }) => { const displayStyle = { display: hasManyLocations ? null : 'none', }; let content; if (Object.keys(location).length) { content = ( <div style={{ paddingLeft: 15 }} className=...
front/src/components/body/auth/loginRegister/Register.js
litleleprikon/ds_chat
/** * Created by litleleprikon on 14/11/2016. * ___ __ ___ ___ __ * /\_ \ __/\ \__/\_ \ /\_ \ __/\ \ * \//\ \ /\_\ \ ,_\//\ \ __\//\ \ __ _____ _ __ /\_\ \ \/'\ ___ ___ * \ \ \ \/\ \ \ \/ \ \ \ /'__`\\ ...
src/components/About.js
SpicyZinc/SpicyContents
import React from 'react'; import Search from './autocomplete/Search'; const About = () => ( <div> <h1> About Myself </h1> <Search options={ [ "Alligator", "Bask", "Crocodilian", "Death Roll", "Eggs", "Jaws", "Reptile", "Solitary", "Tail", "Wetlands" ...
src/Flags/Guinea.js
runjak/css-flags
// @flow import React from 'react'; import LinearFlag from './LinearFlag'; import gradient from '../utils/gradient'; const red = '#CF0821'; const yellow = '#FCD20F'; const green = '#009560'; export default function Guinea() { return ( <LinearFlag gradient={`to right, ${gradient([red, yellow, green])}`} ...
fields/types/boolean/BooleanFilter.js
Freakland/keystone
import React from 'react'; import { SegmentedControl } from 'elemental'; const TOGGLE_OPTIONS = [ { label: 'Is Checked', value: true }, { label: 'Is NOT Checked', value: false } ]; function getDefaultValue () { return { value: true }; } var BooleanFilter = React.createClass({ statics: { getDefaultValue: get...
src/Tooltip.js
BespokeInsights/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import CustomPropTypes from './utils/CustomPropTypes'; export default class Tooltip extends React.Component { render() { const { placement, positionLeft, positionTop, arrowOffsetLeft, arrowOffsetTop, className, ...
pkg/ui/src/routes.js
matt-deboer/kuill
import React from 'react' import Overview from './containers/Overview' import Workloads from './containers/Workloads' import AccessControls from './containers/AccessControls' import WorkloadInfo from './containers/WorkloadInfo' import ClusterInfo from './containers/ClusterInfo' import AccessControlsInfo from './contain...
react-notes/test/test_helper.js
majalcmaj/ReactJSCourse
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/UnknownExtInclusion.js
ontruck/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 aFileWithExtUnknown from './assets/aFileWithExt.unknown'; const text = aFileWithExtUnknown.includes('...
src/Share.js
amysimmons/mememe
import React from 'react'; var Share = React.createClass({ render: function(){ return ( <div className="share"> </div> ) } }); module.exports = Share;
app/scripts/ui-lib/navbar.js
kouryuu/react-questionnaire
import React from 'react' export default class Navbar extends React.Component{ render(){ return( <nav className="full-navbar"> {this.props.title} </nav> ); } }
src/components/ui/Card.js
BrownEPTech/brown-ep-startup-ideas-app
/** * Cards * <Card></Card> * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Card } from 'react-native-elements'; // Consts and Libs import { AppSizes, AppColors, AppStyles } from '@th...
services/web-client/src/index.js
andykais/telebum2
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import ReduxRouter from './routes' import configureStore from './store' const store = configureStore() const renderComponent = () => <Provider store={store}> <ReduxRouter/> </Provider> ReactDOM.render( render...
packages/mineral-ui-icons/src/IconPortrait.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconPortrait(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps...
admin/src/components/PopoutPane.js
woody0907/keystone
import blacklist from 'blacklist'; import classnames from 'classnames'; import React from 'react'; var PopoutPane = React.createClass({ displayName: 'PopoutPane', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, onLayout: React.PropTypes.func }, componentDidMount () ...
src/parser/druid/balance/modules/talents/Starlord.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatDuration, formatPercentage } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import StatisticBox from 'interface/ot...
src/modules/Chat/component.js
svmn/ace-rx
/* global window */ 'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Scrollbars } from 'react-custom-scrollbars'; import FloatingActionButton from 'material-ui/FloatingActionButton'; import FontIcon from 'material-ui/FontIcon'; import RefreshIncicator from 'material...
src/Parser/Mage/Frost/Modules/Features/GlacialSpike.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import Wrapper from 'common/Wrapper'; import { formatPercentage } from 'common/format'; import Combatants from 'Parser/Core/Mod...