path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
admin/client/components/Forms/EditForm.js
andreufirefly/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import moment from 'moment'; import ConfirmationDialog from './ConfirmationDialog'; import Fields from '../../fields'; import FormHeading from './FormHeading'; import AltText from './AltText'; import FooterBar from '../FooterBar'; import InvalidFieldTy...
src/containers/Admin/MissingPeople/MissingPeople.js
EncontrAR/backoffice
import React, { Component } from 'react'; import Table from '../../../components/uielements/table'; import Pagination from '../../../components/uielements/pagination'; import Button from '../../../components/uielements/button'; import missingPersonActions from '../../../redux/missing_person/actions'; import { Row, Col ...
public/js/components/matches/Match.react.js
MadushikaPerera/Coupley
import React from 'react'; import ListItem from 'material-ui/lib/lists/list-item'; import Divider from 'material-ui/lib/divider'; import Avatar from 'material-ui/lib/avatar'; import Colors from 'material-ui/lib/styles/colors'; import IconButton from 'material-ui/lib/icon-button'; import MoreVertIcon from 'material-ui/l...
docs/src/app/components/pages/components/GridList/ExampleSingleLine.js
frnk94/material-ui
import React from 'react'; import {GridList, GridTile} from 'material-ui/GridList'; import IconButton from 'material-ui/IconButton'; import StarBorder from 'material-ui/svg-icons/toggle/star-border'; const styles = { root: { display: 'flex', flexWrap: 'wrap', justifyContent: 'space-around', }, gridLi...
src/components/ExpandingView.js
dereksweet/ComedyCompanion
import React, { Component } from 'react'; import { Animated } from 'react-native'; export default class ExpandingView extends React.Component { constructor(props) { super(props); this.state = { heightAnim: new Animated.Value(0) }; } performExpand() { Animated.spring( this.state.heigh...
client/modules/core/components/error.js
pstuart/Open-Dash
import React from 'react'; const CustomError = ({error}) => ( <div style={{ color: 'red', textAlign: 'center' }}> {error.message} </div> ); export default CustomError;
resources/assets/components/utilities/TextBlock.js
DoSomething/rogue
import React from 'react'; import PropTypes from 'prop-types'; const TextBlock = props => ( <div className="container"> <h4 className="heading">{props.title}</h4> <p>{props.content}</p> </div> ); TextBlock.propTypes = { title: PropTypes.string.isRequired, content: PropTypes.string, }; TextBlock.defau...
src/components/BoardSidebar.js
dggriffin/noteworthee
require('styles/index.css'); import styles from 'styles/BoardSidebar.css' import React from 'react'; import { MenuItem } from 'material-ui'; import { Link } from 'react-router'; const defaultProps = { boardList: [], loading: true, boardName: '' }; class BoardSidebar extends React.Component { constructor(props...
src/ModalDialog.js
herojobs/react-bootstrap
/*eslint-disable react/prop-types */ import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const ModalDialog = React.createClass({ mixins: [BootstrapMixin], propTypes: { /** * A Callback fired when the header closeButton or non-static backdrop is c...
docs/src/components/Homepage/UsedBy/index.js
storybooks/react-storybook
import PropTypes from 'prop-types'; import React from 'react'; import Link from 'gatsby-link'; import './style.css'; export const UsedByBg = ({ color, style }) => ( <div className="used-by-bg" style={style}> <svg width="100%" height="100%" preserveAspectRatio="none" viewBox="0 0 1440 380"...
public/src/containers/dnd/dnd.js
white87332/react-redux
import React, { Component } from 'react'; import Board from './board'; import { observe } from './game'; import './dnd.scss'; class Dnd extends Component { constructor(props) { super(props); this.unobserve = observe(this.handleChange.bind(this)); } handleChange(knightPosition) { ...
app/javascript/src/components/textEditor/blocks/onDemandTriggers.js
michelson/chaskiq
import React from 'react' import { LoadBalancerIcon } from '../../icons' function appPackage () { return <LoadBalancerIcon/> } export default class OnDemandTriggers extends React.Component { render = () => { return <span></span> }; } export const OnDemandTriggersBlockConfig = (options = {}) => { const co...
fixtures/ssr/server/render.js
TheBlasfem/react
import React from 'react'; import {renderToString} from 'react-dom/server'; import App from '../src/components/App'; let assets; if (process.env.NODE_ENV === 'development') { // Use the bundle from create-react-app's server in development mode. assets = { 'main.js': '/static/js/bundle.js', 'main.css': '',...
node_modules/re-base/examples/github-notetaker/app/components/Home.js
react-beer/the-beer-store-jsday-facisa
import React from 'react'; class Home extends React.Component{ render(){ return ( <h2 className="text-center"> Search by Github Username Above </h2> ) } }; export default Home;
components/_notfound/test.js
joeybaker/rachelandjoey
import test from 'tape' import React from 'react' import {addons} from 'react/addons' import Notfound from './index.jsx' const {TestUtils} = addons const {Simulate, renderIntoDocument, isElement, createRenderer} = TestUtils const getReactNode = (dom, node) => TestUtils.findRenderedDOMComponentWithTag(dom, node) const g...
src/docs/components/topology/TopologyExamplesDoc.js
grommet/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Topology from 'grommet/components/Topology'; import InteractiveExample from '../../../components/InteractiveExample'; Topology.displayName = 'Topology'; export default class TopologyExamplesDoc exten...
src/components/CreatePostForm.js
chausme/reactnd-project-readable
import React from 'react' import { Field, reduxForm } from 'redux-form' const required = value => value ? undefined : 'Required' const renderInput = ({ input, label, type, meta: { touched, error, warning } }) => ( <div> <input {...input} placeholder={label} type={type}/> {touched && ((error && <span>{error}...
docs/app/Examples/elements/Step/Content/index.js
Rohanhacker/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const StepContentExamples = () => ( <ExampleSection title='Content'> <ComponentExample title='Description' descriptio...
example/devServer.js
JamieDixon/styled-components
const path = require('path') const exec = require('child_process').exec const Express = require('express') const watch = require('node-watch') import fs from 'fs' import React from 'react' import { renderToString } from 'react-dom/server' import { ServerStyleSheet } from '../dist/styled-components' import getExample ...
app/client/imports/containers/NotFound.js
Caroisawesome/jukeBox
import React, { Component } from 'react'; class NotFound extends Component { render() { return ( <div> <h1>This route does not exist</h1> </div> ); } } export default NotFound;
src/index.js
da07ng/danqing
// import 'babel-polyfill'; import React from 'react'; import ReactDom from 'react-dom'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { Provider } from 'react-redux'; import './assets/styles/global.scss'; import configureSt...
blueocean-material-icons/src/js/components/svg-icons/device/signal-cellular-no-sim.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const DeviceSignalCellularNoSim = (props) => ( <SvgIcon {...props}> <path d="M18.99 5c0-1.1-.89-2-1.99-2h-7L7.66 5.34 19 16.68 18.99 5zM3.65 3.88L2.38 5.15 5 7.77V19c0 1.1.9 2 2 2h10.01c.35 0 .67-.1.96-.26l1.88 1.88 1.27-1.27L3.65 3.88z"/> </SvgIc...
src/containers/Authorized.js
bmarshall511/twitscreen
// Import node dependencies import React, { Component } from 'react'; // Import component dependencies import Status from './../components/Status/Status'; class Authorized extends Component { render() { const { state } = this.props; return ( <Status state={state} /> ); } } export default Auth...
src/stories/multi-speedometers.js
palerdot/react-d3-speedometer
import React from 'react' import ReactSpeedometer from '../index' // create multiple speedometers export default class MultiSpeedoMeters extends React.Component { constructor(props) { super(props) this.state = { speedometer1: { startColor: 'red', toggleStatus: false, value: 10, ...
src/views/routes.js
bshyong/trailerzoo-redux
import React from 'react'; import {Route} from 'react-router'; import App from 'views/App'; import MoviesPage from 'components/moviesPage'; import SignUp from 'views/SignUp'; import Login from 'views/Login'; export default ( <Route component={App}> <Route path="/" component={MoviesPage}/> <Route path="/sign-...
apps/marketplace/components/ItemSelect/ItemSelectResultsList.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' import styles from './ItemSelectResultsList.scss' const ItemSelectResultsList = props => { const { emptyResultsMessage, items, keywords, resultListItems } = props const numberOfItems = items.length const resultIsEmpty = numberOfItems < 1 const hasManyResults = numberOfItems > 3 r...
test/integration/font-optimization/fixtures/with-google/pages/amp.js
azukaru/next.js
import React from 'react' const Page = () => { return <div>Hi!</div> } export const config = { amp: true } export default Page
app/index.js
davidj288/learn-es6
import React from 'react'; import ReactDOM from 'react-dom'; import Global from './components/Global'; ReactDOM.render( <Global/>, document.getElementById('root') ); // // PRE REACT STUFF // // // // Generators // // // function* letterMaker(){ // console.log("=Our Letter Generator/Iterator="); // yield 'a'; // ...
app/javascript/mastodon/features/list_editor/components/search.js
pointlessone/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { defineMessages, injectIntl } from 'react-intl'; import { fetchListSuggestions, clearListSuggestions, changeListSuggestions } from '../../../actions/lists'; import classNames from 'classnames'; const messages ...
examples/with-cerebral/pages/other.js
BlancheXu/test
import React from 'react' import { Controller, UniversalController } from 'cerebral' import Devtools from 'cerebral/devtools' import { Container } from '@cerebral/react' import Page from '../components/Page' import clock from '../modules/clock' export default class Counter extends React.Component { static getInitial...
examples/relay-treasurehunt/js/components/App.js
SBUtltmedia/relay
/** * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNES...
src/components/TimeAndSalary/Banner.js
WendellLiu/GoodJobShare
import React from 'react'; import { Link } from 'react-router'; import cn from 'classnames'; import Wrapper from 'common/base/Wrapper'; import { Star, Sort } from 'common/icons'; import styles from './Banner.module.css'; export default () => ( <section className={styles.pageBanner}> <Wrapper size="l" className=...
src/pages/404.js
rhostem/blog
import React from 'react' import Layout from '../components/layout/DefaultLayout' import SEO from '../components/Seo' const NotFoundPage = () => ( <Layout> <SEO title="404: Not found" /> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </Layout> ) export default No...
addons/knobs/src/components/types/Date/index.js
jribeiro/storybook
import PropTypes from 'prop-types'; import React from 'react'; import Datetime from 'react-datetime'; import insertCss from 'insert-css'; import style from './styles'; const customStyle = ` .rdt input { outline: 0; width: 100%; border: 1px solid #f7f4f4; border-radius: 2px; font-size: 11px; p...
frontend/blueprints/view/files/__root__/views/__name__View/__name__View.js
swistak35/symmetrical-chainsaw
import React from 'react' type Props = { }; export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } export default <%= pascalEntityName %>
tests/react/ConcurrentMode.js
samwgoldman/flow
// @flow import React from 'react'; { const {ConcurrentMode} = React; <ConcurrentMode> <div /> </ConcurrentMode> } { const {Component, ConcurrentMode} = React; class ClassExample extends Component<{||}> { render() { return null; } } <ConcurrentMode> <ClassExample /> </Concurr...
newclient/scripts/components/user/entities/relationship-text-field/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/m_main.js
kongchun/BigData-Web
import React from 'react'; import ReactDOM from 'react-dom'; import m_routes from './m_routes'; ReactDOM.render(m_routes, document.getElementById('m_app'));
docs/app/Examples/elements/Button/Types/ButtonExampleIcon.js
shengnian/shengnian-ui-react
import React from 'react' import { Button, Icon } from 'shengnian-ui-react' const ButtonExampleIcon = () => ( <Button icon> <Icon name='world' /> </Button> ) export default ButtonExampleIcon
example/src/screens/transitions/sharedElementTransitions/Cards/Info.js
okarakose/react-native-navigation
import React, { Component } from 'react'; import { ScrollView, TouchableOpacity, StyleSheet, Image, Text, View, Platform, ScrolView } from 'react-native'; import { SharedElementTransition } from 'react-native-navigation'; import * as Animatable from 'react-native-animatable'; const SHOW...
src/svg-icons/action/view-module.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewModule = (props) => ( <SvgIcon {...props}> <path d="M4 11h5V5H4v6zm0 7h5v-6H4v6zm6 0h5v-6h-5v6zm6 0h5v-6h-5v6zm-6-7h5V5h-5v6zm6-6v6h5V5h-5z"/> </SvgIcon> ); ActionViewModule = pure(ActionViewModule)...
src/scenes/home/families/jumboQuote/jumboQuote.js
miaket/operationcode_frontend
import React, { Component } from 'react'; import { FaQuoteLeft, FaQuoteRight } from 'react-icons/lib/fa'; import quotes from './quotes.json'; import styles from './jumboQuote.css'; class JumboQuote extends Component { constructor(props) { super(props); this.state = { quote: {} }; } componentD...
caseStudy/ui/src/index.js
jennybkim/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/parser/druid/restoration/modules/items/azeritetraits/WakingDream.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import {formatPercentage, formatNumber} from 'common/format'; import SPELLS from 'common/SPELLS'; import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox'; import StatWeights from '../../features/StatWeights'; import ...
packages/react-server-test-pages/pages/root/reduxAdapter.js
szhou8813/react-server
import {createStore, applyMiddleware} from "redux"; import React from 'react'; import { connect } from 'react-redux'; import {RootElement} from "react-server"; import {RootProvider, ReduxAdapter} from "react-server-redux"; import ReduxThunk from "redux-thunk"; function reduxAdapterReducer(state = {}, action) { if (ac...
examples/github-explorer/containers/repos-list.js
hetmann/sass-redux-router
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Card from 'material-ui/Card/Card'; import CardHeader from 'material-ui/Card/CardHeader'; import CardTitle from 'material-ui/Card/CardTitle'; import CardText from 'material-ui/Card/CardText'; import Search from './search'; import Lis...
node_modules/react-bootstrap/es/Table.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 ...
src/react/LogMonitorEntryAction.js
AnthonyWhitaker/redux-devtools
import React from 'react'; import JSONTree from 'react-json-tree'; const styles = { actionBar: { paddingTop: 8, paddingBottom: 7, paddingLeft: 16 }, payload: { margin: 0, overflow: 'auto' } }; export default class LogMonitorAction extends React.Component { renderPayload(payload) { r...
src/guide/index.js
smaato/ui-framework
import 'babel-core/polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { Router, useRouterHistory, } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import createHashHistory from 'history/lib/createHashHistory'; // ...
src/svg-icons/device/wifi-lock.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceWifiLock = (props) => ( <SvgIcon {...props}> <path d="M20.5 9.5c.28 0 .55.04.81.08L24 6c-3.34-2.51-7.5-4-12-4S3.34 3.49 0 6l12 16 3.5-4.67V14.5c0-2.76 2.24-5 5-5zM23 16v-1.5c0-1.38-1.12-2.5-2.5-2.5S18 13....
app/index.js
axynos/STARK
import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import Root from './containers/Root'; import { configureStore, history } from './store/configureStore'; import './app.global.css'; const store = configureStore(); render( <AppContainer> <Root store={s...
web/src/components/common/Inputs.js
arieled91/openteam
import React from 'react'; import { Col, ControlLabel, FormControl, FormGroup, HelpBlock } from "react-bootstrap"; import Autosuggest from 'react-bootstrap-autosuggest' import PropTypes from 'prop-types'; export const FieldGroup = ({ id, label, help, colxs, colmd, ...props })=>{ const hideAutoFillColorStyle = { ...
test/test_helper.js
xingjianpan/react-redux-news-reader
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...
src/components/ui/Modal.js
felixyale/express-react
import { Router, Route, IndexRoute, Redirect, Link, browserHistory } from 'react-router' import React from 'react' export default class Modal extends React.Component { constructor(props) { super(props); this.state = props.data; this.handleClose = this.handleClose.bind(this); this.handleOk = this.han...
src/containers/about-container.js
ChrisRast/Le-Taguenet
import React from 'react'; export default class About extends React.PureComponent { render () { return ( <div>About</div> ); } }
WasteApp/js/components/list/list-divider.js
airien/workbits
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Button, Icon, List, ListItem, Text } from 'native-base'; import styles from './styles'; const { replaceAt, } = actions; clas...
examples/with-react-loadable/src/App.js
jaredpalmer/react-production-starter
import React from 'react'; import Route from 'react-router-dom/Route'; import Switch from 'react-router-dom/Switch'; import Home from './Home'; import './App.css'; const App = () => ( <Switch> <Route exact path="/" component={Home} /> </Switch> ); export default App;
src/containers/Subview.js
bartonhammond/snowflake
/** * # Subview.js * * This is called from main to demonstrate the back button * */ 'use strict' /* * ## Imports * * Imports from redux */ import { bindActionCreators } from 'redux' import { connect } from 'react-redux' /** * Router */ import {Actions} from 'react-native-router-flux' /** * Navigation Bar...
src/containers/Home/Home.js
trungtin/mP
import React, { Component } from 'react'; export default class Home extends Component { render() { const styles = require('./Home.scss'); // require the logo image both from client and server const logoImage = require('./logo.png'); return ( <div className={styles.home}> <div className=...
src/pages/dynamic/Palindromic/Palindromic.js
hyy1115/react-redux-webpack2
import React from 'react' class Palindromic extends React.Component { render() { return ( <div>Palindromic</div> ) } } export default Palindromic
server/sonar-web/src/main/js/apps/project-permissions/permissions-header.js
joansmith/sonarqube
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program 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 3 of the License...
src/vendor/recharts/demo/component/PolarGrid.js
donal-crotty/fuzzy-telegram
import React from 'react'; import { Surface, PolarGrid } from 'recharts'; export default React.createClass({ render () { const polarAngles = [0, 30, 60, 90, 145, 180, 200, 270, 300]; const polarRadius = [10, 20, 40, 80]; return ( <Surface width={500} height={500}> <PolarGrid cx={...
app/components/layout/Profile/ProjectNoImageCard.js
communicode-source/communicode
import React from 'react'; import classNames from 'classnames'; import styles from './../../../assets/css/pages/profile.scss'; class ProjectNoImageCard extends React.Component { constructor({github = null, website = null, description = null, name = null}) { super(); this.description = description; ...
components/Header.js
react-community/native-directory
import React from 'react'; import PropTypes from 'prop-types'; import { StyleSheet, css } from 'glamor/aphrodite'; import Link from '../components/Link'; export default class Header extends React.PureComponent { static propTypes = { count: PropTypes.number, }; render() { return ( <header classNa...
src/renderer/controllers/home.js
marcus-sa/Venobo
import {ipcRenderer} from 'electron' import React from 'react' import HomePage from '../pages/home' import HTTP from '../utils/http' import {dispatch} from '../lib/dispatcher' import config from '../../config' // Controls the Home page export default class HomeController extends React.Component { constructor(prop...
node_modules/react-document-meta/lib/index.js
yomolify/cs-webserver
import React from 'react'; import { canUseDOM } from 'react/lib/ExecutionEnvironment'; import withSideEffect from 'react-side-effect'; import { clone, defaults, forEach } from './utils'; function reducePropsTostate ( propsList ) { const props = {}; let extend = true; for (var i = propsList.length - 1; e...
src/main/resources/public/js/components/dropdown-menu.js
SICTIAM/ozwillo-portal
import React from 'react'; import PropTypes from 'prop-types'; class DropDownMenu extends React.Component { static propTypes = { header: PropTypes.node, footer: PropTypes.node, isOpen: PropTypes.bool, isAvailable: PropTypes.bool, dropDownChange: PropTypes.func, drop...
src/js/components/TagForm.js
mmagr/gui
/** Reusable form for entity tags. Uses TagActions to manipulate the list of tags. */ import React, { Component } from 'react'; import TagActions from '../actions/TagActions' class TagForm extends Component{ constructor(props) { super(props); this.state = { tag: "" }; this.tagChange = this.tagCha...
client/App.js
Dean177/jumpy-bird-react-demo
import '!style!css!less!./resources/styles/App.less'; import React, { Component } from 'react'; import { createStore } from 'redux'; import { Provider } from 'react-redux'; import { Uuid, HighScores } from '../shared/Constants/FlappyActionTypes'; import { Goto } from '../shared/Constants/SlidesActionTypes'; import { ge...
docs/src/app/pages/components/Spinner/ExampleSpinnerInline.js
GetAmbassador/react-ions
import React from 'react' import Spinner from 'react-ions/lib/components/Spinner' const ExampleSpinnerInline = () => ( <p>Here is an example of a spinner displayed inline <Spinner loading={true} type='spinner-bounce' position='inline' /> with a paragraph tag.</p> ) export default ExampleSpinnerInline
view/component/course14.js
leechuanjun/TLReactNativeProject
/** * Course 14 * React Native控件之DatePickerIOS时间日期选择器组件讲解 */ import React, { Component } from 'react'; import { StyleSheet, Text, View, TextInput, DatePickerIOS, TouchableHighlight, ScrollView, } from 'react-native'; import Util from '../utils'; class WithLabel extends Component { render() { re...
stories/ConvertFromHTML/index.js
jpuri/react-draft-wysiwyg
/* @flow */ import React, { Component } from 'react'; import { EditorState, ContentState } from 'draft-js'; import htmlToDraft from 'html-to-draftjs'; import { Editor } from '../../src'; class ConvertToRawDraftContent extends Component { constructor(props) { super(props); const html = `<p></p> <img sr...
src/components/video_list_item.js
jonathan-dai/ReactYoutubeQuickSearch
import React from 'react'; const VideoListItem = ({video, onVideoSelect}) => { const imageUrl = video.snippet.thumbnails.default.url; return ( <li onClick={() => onVideoSelect(video)} className="list-group-item"> <div className="video-list media"> <div className="media-left"> <img classN...
src/js/pages/ProgrammersPage.js
micahstartnow/cncworkwebsite
import React from 'react'; import DocumentTitle from 'react-document-title'; import { UserProfileForm } from 'react-stormpath'; export default class ProgrammersPage extends React.Component { render() { return( <DocumentTitle title={`ProgrammersLfw`}> <div className="container"> <div classN...
src/components/AccessBadge/AccessBadge.js
arvigeus/studentlife
import React from 'react'; import { Link } from 'react-router'; import userPic from '../../images/user.png'; import s from './AccessBadge.css'; export default function AccessBadge() { return ( <form className={s.root}> <fieldset className={s.info}> <legend>Карта за достъп</legend> <label> ...
app/javascript/mastodon/features/account/components/account_note.js
lynlynlynx/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import Textarea from 'react-textarea-autosize'; impor...
ozwillo-datacore-web/src/main/webapp/dc-ui/src/components/linkPlayground.js
ozwillo/ozwillo-datacore
import React from 'react'; import { connect } from 'react-redux' export default class LinkPlayground extends React.Component{ handleClick = (event) => { var tools = this.props.tools(); tools.callAPIUpdatePlaygroundOnClick(event); tools.goToTop(); } render(){ return( <a className="playground...
src/main.js
vio-lets/Larkyo-Client
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import AppContainer from './containers/AppContainer' // ======================================================== // Store Instantiation // ======================================================== const initialState...
node_modules/node_modules/recharts/demo/component/LineChart.js
SerendpityZOEY/Solr-Search-React-UI
import React from 'react'; import CustomLineDot from './CustomLineDot'; import { changeNumberOfData } from './utils'; import { ResponsiveContainer, LineChart, Line, XAxis, YAxis, ReferenceLine, ReferenceDot, Tooltip, CartesianGrid, Legend, Brush } from 'recharts'; const data = [ { name: 'Page A', uv: 400, pv: 2400...
public/assets/js/node_modules/react-select/examples/src/components/ValuesAsNumbersField.js
ngocson8b/6jar
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var ValuesAsNumbersField = React.createClass({ displayName: 'ValuesAsNumbersField', propTypes: { label: React.PropTypes....
src/components/Icon/Icon.js
faizhasim/faizhasim.github.io
// @flow strict import React from 'react'; import styles from './Icon.module.scss'; type Props = { name: string, icon: { viewBox?: string, path?: string } }; const Icon = ({ name, icon }: Props) => ( <svg className={styles['icon']} viewBox={icon.viewBox}> <title>{name}</title> <path d={icon.pa...
src/components/footer/index.js
adrienhobbs/redux-glow
import React from 'react'; import styles from './footer.css'; const Footer = () => { var year = new Date().getFullYear(); return ( <footer className={styles.footer} id='footer'> <article className={styles.desktop_footer}> <section className={styles.footer_section_left}> <ul className={s...
src/resources/assets/js/reusable/markdown.js
rlorenzo/tmlpstats
import React from 'react' import { objectAssign } from './ponyfill' import { defaultRules, parserFor, reactFor, ruleOutput } from 'simple-markdown' const paragraphRule = objectAssign({}, defaultRules.paragraph, { react: function(node, output, state) { return React.createElement('p', {}, output(node.content...
client/react/frontpage/components/StreamBar/StreamBar.js
uclaradio/uclaradio
// StreamBar.js import React from 'react'; import { Grid, Glyphicon, Collapse } from 'react-bootstrap'; import Slider from 'react-slick'; import ChatBox from './ChatBox/ChatBox'; import RecentlyPlayed from './RecentlyPlayed/RecentlyPlayed'; import isMobile from '../misc/isMobile'; import VolumeSlider from 'rc-slider';...
toDoList/app/client.js
joekraken/react-demos
import React from 'react' import {render} from 'react-dom' //import ReactDOM from 'react-dom' import {Router, IndexRoute, Route, Link, browserHistory} from 'react-router' import {createHistory} from 'history' import App from './components/app' import NoMatch from './components/common/NoMatch' import Dashboard from ...
examples/official-storybook/stories/core.stories.js
rhalff/storybook
import React from 'react'; import { storiesOf, addParameters } from '@storybook/react'; const globalParameter = 'globalParameter'; const chapterParameter = 'chapterParameter'; const storyParameter = 'storyParameter'; addParameters({ globalParameter }); storiesOf('Core|Parameters', module) .addParameters({ chapterP...
app/javascript/mastodon/features/favourites/index.js
kirakiratter/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchFavourit...
src/client/now/components/filters.js
michigan-com/nova
'use strict'; import React from 'react'; import SectionFilter from './section-filter'; export default class SectionFilters extends React.Component { static FILTER_HEIGHT = 65 constructor(props) { super(props); this.lastScrollTop = document.body.scrollTop; this.scrollVelocity = 0; this.threshold...
re-grid/src/header/filters-row.js
NourEldin275/reGrid
/** * Created by nour on 8/25/17. */ import React, { Component } from 'react'; import FilterCell from './cells/filterCell'; class HeaderFiltersRow extends Component{ render(){ const columns = this.props.columns; const columnFilters = columns.map((column) => { if (column.filter && co...
source/client/components/user/UserRegister.js
worminer/React.js-Financial-News
import React from 'react' import FormActions from '../../actions/FormActions' import UserActions from '../../actions/UserActions' import FormStore from '../../stores/FormStore' import Form from '../form/Form' import TextGroup from '../form/TextGroup' import RadioGroup from '../form/RadioGroup' import RadioElement from ...
src/templates/blog-post.js
mudetroit/mudetroit.github.io
import React from 'react' import Helmet from 'react-helmet' import Link from 'gatsby-link' import get from 'lodash/get' import Bio from '../components/Bio' import { rhythm, scale } from '../utils/typography' class BlogPostTemplate extends React.Component { render() { const post = this.props.data.markdownRemark ...
examples/shopping-cart/src/components/ProductsContainer.js
adisuryadi/nuclear-js
import React from 'react' import ProductItem from '../../common/components/ProductItem' import ProductsList from '../../common/components/ProductsList' import reactor from '../reactor' import getters from '../getters' import actions from '../actions' const ProductItemContainer = React.createClass({ onAddToCartCli...
node_modules/react-router/es6/RouterContext.js
UpStage-Community/upstage-web
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; }; var _extends = Object.assign || function (target) { for (var i = 1; i < argum...
client/app/components/ContentEditor/customPlugins/block-plugin/BlockControls.js
bryanph/Geist
import React from 'react'; import { RichUtils, EditorState } from 'draft-js'; import styles from './styles.css'; export default (type) => (props) => <BlockControlButton label={props.label || type.label} style={type.style} theme={props.theme || styles} {...pro...
app/assets/javascripts/reducers/eventsReducer.js
loggingroads/onboarding
import React from 'react'; function setEventsList(state, eventsList) { return Object.assign({}, state, {eventsList}); }; function setEventDetail(state, eventDetail) { return Object.assign({}, state, {eventDetail}); }; export default function eventsReducer(state = {} , action) { switch (action.type) { case ...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
kmouakher/my-first-angular2-app
import React from 'react'; // 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'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/website/app/demos/Link/Link/examples/variants.js
mineral-ui/mineral-ui
/* @flow */ import styled from '@emotion/styled'; import React from 'react'; import _Link from '../../../../../../library/Link'; import { componentStyleReset } from '../../../../../../library/styles'; import _DemoLayout from '../../../common/DemoLayout'; import type { StyledComponent } from '@emotion/styled-base/src/ut...
Router/route-transition/src/index.js
imuntil/React
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; import './index.css'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/components/UIShell/HeaderMenu.js
joshblack/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import ChevronDownGlyph from '@carbon/icons-react/lib/chevron--down'; import { settings } from 'carbon-components'; import cx from 'classname...
public/src/components/addRaidInfo/gwRoleSelection/gwRole.js
intr/gw2-raid-webapp
import { Component } from 'react'; import React from 'react'; import Immutable from 'immutable'; class Role extends Component { onClick(e) { this.props.onClick(e.target.id); } render() { const raidInfo = Immutable.Map(this.props.raidInfo); let imgSrc = "/img/" + this.props.role +...