path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/redux/root.js
andreipreda/coconut
import React from 'react'; import { Provider } from 'react-redux'; import store from './store'; import { AppRouter } from './router'; export const Root = () => ( <Provider store={store}> <AppRouter /> </Provider> );
src/higherOrders/Sort.js
Lobos/react-ui
import React from 'react' import PropTypes from '../utils/proptypes' import { isEmpty } from '../utils/objects' import PureRender from '../mixins/PureRender' const defaultSort = (key, asc) => (a, b) => { let x = a[key] let y = b[key] if (asc === 0) { return ((x < y) ? -1 : ((x > y) ? 1 : 0)) } else { r...
frontend/src/components/editor/index.js
1905410/Misago
// jshint ignore:start import React from 'react'; import Code from './actions/code'; import Emphasis from './actions/emphasis'; import Hr from './actions/hr'; import Image from './actions/image'; import Link from './actions/link'; import Striketrough from './actions/striketrough'; import Strong from './actions/strong';...
server/server.js
tranphong001/BIGVN
import Express from 'express'; import compression from 'compression'; import mongoose from 'mongoose'; import bodyParser from 'body-parser'; import path from 'path'; // Webpack Requirements import webpack from 'webpack'; import config from '../webpack.config.dev'; import webpackDevMiddleware from 'webpack-dev-middlewa...
client/channel/helpers/clickableItem.js
iiet/iiet-chat
import React from 'react'; import { css } from '@rocket.chat/css-in-js'; export function clickableItem(WrappedComponent) { const clickable = css` cursor: pointer; border-bottom: 2px solid #F2F3F5 !important; &:hover, &:focus { background: #F7F8FA; } `; return (props) => <WrappedComponent className={cl...
src/index.js
ndemianc/react_app
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import Board from './components/board'; import { observe } from './components/game'; import App from './components/app'; import reducers from './reducers'; const c...
node_modules/semantic-ui-react/dist/es/collections/Table/TableFooter.js
jessicaappelbaum/cljs-update
import React from 'react'; import { META } from '../../lib'; import TableHeader from './TableHeader'; /** * A table can have a footer. */ function TableFooter(props) { return React.createElement(TableHeader, props); } TableFooter.handledProps = ['as']; TableFooter._meta = { name: 'TableFooter', type: META.TY...
docs/src/app/components/pages/components/DropDownMenu/ExampleLabeled.js
ruifortes/material-ui
import React from 'react'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem'; export default class DropDownMenuLabeledExample extends React.Component { constructor(props) { super(props); this.state = {value: 2}; } handleChange = (event, index, value) => th...
www/src/layouts/index.js
tsuyoshiwada/react-drip-form
import React from 'react'; /* eslint-disable import/no-extraneous-dependencies */ import 'prismjs'; import 'prismjs/components/prism-bash'; import 'prismjs/components/prism-javascript'; import 'prismjs/components/prism-typescript'; import 'prismjs/components/prism-jsx'; import 'prismjs/components/prism-css'; import 'pr...
components/common/icons.js
DarcyChan/darcychan.com
/* Icon Component. A common component to render an SVG icon. */ import React from 'react'; import ArrowRight from 'assets/arrow-right.svg'; import Close from 'assets/close.svg'; import Logo from 'assets/logo.svg'; import Menu from 'assets/menu.svg'; import Photo from 'assets/photo.svg'; export default class ...
src/ColumnMarkers.js
ornl-sava/vis-react-components
import React from 'react' import PropTypes from 'prop-types' import { setEase } from './util/d3' import SVGComponent from './SVGComponent' // NOTE: Fills top margin with rect column markers // Requires a top margin greater than 5px, xScale, and the data // Expects 2D data like heatmap class ColumnMarkers extends Reac...
client/src/javascript/components/sidebar/DiskUsage.js
jfurrow/flood
import {FormattedMessage} from 'react-intl'; import React from 'react'; import EventTypes from '../../constants/EventTypes'; import DiskUsageStore from '../../stores/DiskUsageStore'; import Size from '../general/Size'; import Tooltip from '../general/Tooltip'; import connectStores from '../../util/connectStores'; impo...
src/index.js
kfergin/dragging-boxes-example
import React, { Component } from 'react'; import { render } from 'react-dom'; import { TransitionMotion, spring } from 'react-motion'; import uuid from 'uuid'; import classNames from 'classnames'; import './styles/main.scss'; class Box extends Component { constructor(props) { super(props); this.handleMouseDown =...
node_modules/react-bootstrap/es/PaginationButton.js
darklilium/Factigis_2
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/SparklinesLine.js
konsumer/react-sparklines
import React from 'react'; export default class SparklinesLine extends React.Component { static propTypes = { color: React.PropTypes.string, style: React.PropTypes.object }; static defaultProps = { style: {} }; render() { const { points, width, height, margin, col...
examples/universal/client/index.js
ggerrietts/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...
scripts/stores/GetBookStore.js
nverdhan/satticentre
import React from 'react'; import { register } from '../AppDispatcher'; import { createStore, mergeIntoBag, isInBag } from '../utils/StoreUtils'; import selectn from 'selectn'; var _book = {} var _bookUsers = [] var _bookStatus = 'NA' // NA, OWN, WISH, LEND, RENT var _showLoading = true; const GetBookStore = createSto...
snippets/camunda-tasklist-examples/camunda-react-app/src/components/forms/myprocess/approveDataTask.js
camunda/camunda-consulting
import React from 'react' import { connect } from 'react-redux' import { Field, reduxForm } from 'redux-form' import { Form, Button } from 'semantic-ui-react' import { InputField, CheckboxField, TextAreaField } from 'react-semantic-redux-form' import * as Validation from '../../../constants/ValidationOptions' let Simp...
pages/api/table-cell.js
AndriusBil/material-ui
// @flow import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './table-cell.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRoot(Page);
src/svg-icons/image/blur-linear.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBlurLinear = (props) => ( <SvgIcon {...props}> <path d="M5 17.5c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5.67 1.5 1.5 1.5zM9 13c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0-4c.55 0 1-.45 1-...
node_modules/react-bootstrap/es/Tooltip.js
ivanhristov92/bookingCalendar
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 ...
app/LoginScene.js
dalmago/thatThing
import React, { Component } from 'react'; import { Text, View, Button, TextInput, Picker, ActivityIndicator, Alert, } from 'react-native' export class LoginScene extends Component { constructor(props){ super(props); this.state = {pickerValue: 'dw', loading: false, text: '', text2: ''}; } ...
docs/src/app/components/pages/components/Dialog/Page.js
tan-jerene/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import dialogReadmeText from './README'; import DialogExampleSimple from './Exam...
packages/reactor-tests/src/tests/props/SimplePropUpdate.js
markbrocato/extjs-reactor
import React, { Component } from 'react'; import { Button } from '@extjs/ext-react'; export default class SimplePropUpdate extends Component { state = { count: 0 }; increment = () => this.setState({ count: this.state.count + 1 }); render() { return ( <Button itemId="button" text={`Co...
src/pages/index.js
BeardedYeti/react-blog
import React from 'react' import Link from 'gatsby-link' import Helmet from 'react-helmet' // import '../css/index.css'; export default function Index({ data }) { const { edges: posts } = data.allMarkdownRemark; return ( <div className="blog-posts"> {posts .filter(post => post.node.frontmatter.title.lengt...
customView/node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/actual.js
TheKingOfNorway/React-Native
import React from 'react'; const First = React.createNotClass({ displayName: 'First' }); class Second extends React.NotComponent {}
client/scripts/controllers/season2Ctrl.js
IHarryIJumper/trials-fusion-stats-cptsparkles
import React from 'react'; import { render } from 'react-dom'; import { SeasonTwoPageComponent } from '../components/seasonsPages/season2Component.jsx'; export const renderSeason2Page = render(<SeasonTwoPageComponent />, document.getElementById('season2-page-target'));
app/addons/replication/components/source.js
popojargo/couchdb-fauxton
// Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
src/parser/deathknight/blood/modules/talents/Bloodworms.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS/index'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER'; impor...
packages/material-ui-icons/src/PermContactCalendar.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let PermContactCalendar = props => <SvgIcon {...props}> <path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 ...
src/js/components/Split.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2016 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 { smallSize } from '../utils/Responsive'; const CLASS_ROOT = CSSClassnames....
components/Header/NavIcon.js
owennicol/yaiza
// React import React from 'react' import classNames from 'classnames' const NavIcon = (props) => { const menuClasses = classNames({ cross: true, open: props.menuIsOpen }) return ( <div className="toggle" id="navMenuToggleButton"> <a href="#" className={menuClasses}><span></span></a> </div>...
src/svg-icons/action/restore.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRestore = (props) => ( <SvgIcon {...props}> <path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 ...
src/App.js
karlpatrickespiritu/todo-react-flux
import React, { Component } from 'react'; // import logo from './logo.svg'; import './App.css'; import Todos from './components/Todos/Todos' import TodoForm from './components/Todos/TodoForm/TodoForm' class App extends Component { render() { return ( <div className="App"> <div className="row"> ...
src/Parser/Warrior/Fury/Modules/Features/RampageCancelled.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Wrapper from 'common/Wrapper'; import { formatPercentage } from 'common/format'; import Analyzer from 'Parser/Core/Analyzer'; const RAMPAGE_HITS_PER_CAST = 5; class RampageCancelled extends Analyzer { ...
client/src/app/admin/panel/dashboard/admin-panel-my-account.js
ivandiazwm/opensupports
import React from 'react'; import {connect} from 'react-redux'; import _ from 'lodash'; import i18n from 'lib-app/i18n'; import API from 'lib-app/api-call'; import SessionActions from 'actions/session-actions'; import StaffEditor from 'app/admin/panel/staff/staff-editor'; import Header from 'core-components/header'; ...
src/svg-icons/content/archive.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentArchive = (props) => ( <SvgIcon {...props}> <path d="M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-....
node_modules/native-base/src/basic/H2.js
odapplications/WebView-with-Lower-Tab-Menu
import React, { Component } from 'react'; import { Text } from 'react-native'; import { connectStyle } from '@shoutem/theme'; import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; class H2 extends Component { render() { return ( <Text ref={c => this._root = c} {...this.props} /> ); } } c...
components/SpaceTypeIcon/SpaceTypeIcon.story.js
NGMarmaduke/bloom
import React from 'react'; import { storiesOf } from '@storybook/react'; import SpaceTypeIcon from './SpaceTypeIcon'; import icons from './icons'; const story = storiesOf('SpaceTypeIcon', module); Object.keys(icons).forEach((icon) => { story.add(icon, () => ( <div> {icon}: <SpaceTypeIcon name={ icon } />...
app/containers/App.js
robogroves/bps
// @flow import React, { Component } from 'react'; export default class App extends Component { props: { children: HTMLElement }; render() { return ( <div> {this.props.children} </div> ); } }
src/entypo/Brush.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Brush'; let EntypoBrush = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M2.763,13.563c-1.515,1.488-0.235,3.016-2.247,5.279c-0.908,1.023,3.738,0.711,6.039-1.551c0.977-0.961,0.7...
www/src/pages/components/modal.js
glenjamin/react-bootstrap
import { graphql } from 'gatsby'; import React from 'react'; import { css } from 'astroturf'; import ComponentApi from '../../components/ComponentApi'; import LinkedHeading from '../../components/LinkedHeading'; import ReactPlayground from '../../components/ReactPlayground'; import ModalStatic from '../../examples/Mo...
src/entypo/DotSingle.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--DotSingle'; let EntypoDotSingle = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M7.8,10c0,1.215,0.986,2.2,2.201,2.2S12.2,11.214,12.2,10c0-1.215-0.984-2.199-2.199-2.199S7.8,8.7...
genie-web/src/main/resources/static/scripts/components/Error.js
irontable/genie
import T from 'prop-types'; import React from 'react'; const Error = props => ( <div className="col-md-10 result-panel-msg"> <div><h4>{props.error.error}</h4></div> <code> <div>{props.error.status}</div> <div>{props.error.exception}</div> <div>{props.error.message}</div> </code> </div...
src/packages/@ncigdc/components/Explore/SummaryPage/SummaryPage.relay.js
NCI-GDC/portal-ui
import React from 'react'; import { graphql } from 'react-relay'; import { BaseQuery } from '@ncigdc/modern_components/Query'; import { compose, setDisplayName } from 'recompose'; const EnhancedSummaryPageQuery = (Component) => compose( setDisplayName('SummaryPageQuery'), )( (props) => ( <BaseQuery Compo...
components/Exam/components/List/List.js
yabeow/sinhvienuit
import React from 'react'; import PropTypes from 'prop-types'; import { FlatList, RefreshControl } from 'react-native'; import { View } from 'native-base'; import Exam from './Item'; import EmptyList from '../../../EmptyList'; import { ANDROID_PULL_TO_REFRESH_COLOR } from '../../../../config/config'; const sortExams =...
src/example/plot/custom-axis.js
jameskraus/react-vis
// Copyright (c) 2016 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, merge...
fields/types/email/EmailColumn.js
Tangcuyu/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue'; var EmailColumn = React.createClass({ displayName: 'EmailColumn', propTypes: { col: React.PropTypes.object, ...
src/svg-icons/content/flag.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentFlag = (props) => ( <SvgIcon {...props}> <path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"/> </SvgIcon> ); ContentFlag = pure(ContentFlag); ContentFlag.displayName = 'ContentFlag'; ContentFlag.muiName = '...
client/src/app-components/password-recovery.js
opensupports/opensupports
import React from 'react'; import classNames from 'classnames'; import i18n from 'lib-app/i18n'; import API from 'lib-app/api-call'; import Form from 'core-components/form'; import FormField from 'core-components/form-field'; import Widget from 'core-components/widget'; imp...
docs-ui/components/qrcode.stories.js
ifduyue/sentry
import React from 'react'; import {storiesOf} from '@storybook/react'; import {withInfo} from '@storybook/addon-info'; // import {action} from '@storybook/addon-actions'; import Qrcode from 'app/components/qrcode'; storiesOf('Qrcode', module).add( 'default', withInfo('Description')(() => ( <Qrcode code=...
docs/src/examples/jalaali.js
mberneti/react-datepicker2
import React from 'react' import momentJalaali from 'moment-jalaali' import DatePicker from '../../../src/components/DatePicker'; class component extends React.Component { constructor(props) { super(props); this.state = { value: momentJalaali('1396/7/6', 'jYYYY/jM/jD') }; } render() { retur...
Console/app/node_modules/rc-select/es/OptGroup.js
RisenEsports/RisenEsports.github.io
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; var OptGroup = function (_React$Component) { _inherits(OptGroup, _React$Comp...
node_modules/react-bootstrap/es/ModalTitle.js
WatkinsSoftwareDevelopment/HowardsBarberShop
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/components/Previewer/index.js
dachi023/snippets
import React from 'react' import {Divider} from 'material-ui' import marked from 'marked' class MarkdownPreview extends React.Component { constructor(props) { super(props) marked.setOptions({ gfm: true, tables: true, breaks: true, sanitize: true }) } getStyles() { return ...
src/components/TodoForm.js
woowoo/react-todo
import React from 'react'; import uuid from 'node-uuid'; export default class TodoForm extends React.Component { render() { return ( <form onSubmit={this.onSubmit.bind(this)}> <input ref="text" type="text" placeholder="What u wanna todo?" /> </form> ); } onSubmit(e) { e.preventDe...
internals/templates/containers/NotFoundPage/index.js
mikejong0815/Temp
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
public/js/components/trends/TrendContainer.react.js
rajikaimal/Coupley
import React from 'react'; import List from 'material-ui/lib/lists/list'; import Divider from 'material-ui/lib/divider'; import TextField from 'material-ui/lib/text-field'; import TrendsStore from '../../stores/TrendsStore'; import TrendsAction from '../../actions/TrendsAction'; import Trend from './trendbox.react'; im...
src/svg-icons/image/crop-din.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropDin = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"/> </SvgIcon> ); ImageCropDin = pure(ImageCropDin); Image...
docs/src/SupportPage.js
roadmanfong/react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; export default class Page extends React.Component { render() { return ( <div> <NavMain activePage="support" /> <PageHeader title="Nee...
src/App.js
shcallaway/react-snake
import React, { Component } from 'react'; // import logo from './logo.svg'; import './App.css'; import Game from './game.js'; import { Header } from './interface.js'; class App extends Component { render() { return ( <div> <Header /> <Game /> </div> ); } } export defau...
assets/jqwidgets/jqwidgets-react/react_jqxtree.js
juannelisalde/holter
/* jQWidgets v4.5.4 (2017-June) Copyright (c) 2011-2017 jQWidgets. License: http://jqwidgets.com/license/ */ import React from 'react'; const JQXLite = window.JQXLite; export default class JqxTree extends React.Component { componentDidMount() { let options = this.manageAttributes(); this.createCom...
app/components/Tabs/Timeline/index.js
theterra/newsb
import React from 'react'; import moment from 'moment'; import './timeline.css'; export default class Timeline extends React.Component { //eslint-disable-line constructor(props) { super(props); this.formatTime = this.formatTime.bind(this); this.formatDate = this.formatDate.bind(this); } formatTim...
src/components/video_list_item.js
dpano/redux-d
import React from 'react'; const VideoListItem = ({video, onVideoSelect}) =>{ const imageUrl = video.snippet.thumbnails.default.url; return ( <li className='list-group-item' onClick={()=>onVideoSelect(video)}> <div className='video-list media'> <div className='media-left'> <img classNa...
src/components/pages/Admin/Contents/TypeForms/AdminContentsArticle.js
ESTEBANMURUZABAL/my-ecommerce-template
/** * Imports */ import React from 'react'; import {FormattedMessage} from 'react-intl'; // Flux import IntlStore from '../../../../../stores/Application/IntlStore'; // Required components import FormLabel from '../../../../common/forms/FormLabel'; import InputField from '../../../../common/forms/InputField'; impor...
app/layouts/authenticated.js
meddle0x53/react-koa-gulp-postgres-passport-example
import React, { Component } from 'react'; import { Link, RouteHandler } from 'react-router'; import { Jumbotron, Nav, Row, Col } from 'react-bootstrap'; import { NavItemLink } from 'react-router-bootstrap'; import AuthStore from '../stores/auth'; import SignIn from '../pages/signin'; export default class MainLayout...
src/routes.js
TobiasBales/PlayuavOSDConfigurator
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './App'; import Config from './config/Config'; import Pixler from './pixler/Pixler'; export default ( <Route path="/" component={App}> <IndexRoute component={Config} /> <Route path="pixler" component={Pixler} /> </...
src/containers/Header.js
eveafeline/D3-ID3-Naomi
import React, { Component } from 'react'; import { render } from 'react-dom'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { getScatterPlot } from '../actions/ScatterPlotActions'; import { getD3ParserObj } from '../actions/D3ParserActions'; import { ScatterPlotReducer, D3Par...
src/index.js
Oliboy50/oliver-thebault-front
/* eslint-disable import/default */ // React import React from 'react'; import {render} from 'react-dom'; import injectTapEventPlugin from 'react-tap-event-plugin'; // Router import { Router, browserHistory } from 'react-router'; import routes from './routes'; // Redux //import { Provider } from 'react-redux'; //imp...
lib/main.js
jdknezek/mq-set-calc
import bootstrap from 'bootstrap'; import _ from 'lodash'; import React from 'react'; import App from './App.jsx!'; import sets from './sets'; React.render(React.createElement(App, {sets: sets}), document.getElementById('app'));
client/extensions/woocommerce/woocommerce-services/views/packages/packages-list-item.js
Automattic/woocommerce-services
/** @format */ /** * External dependencies */ import React from 'react'; import PropTypes from 'prop-types'; import { localize } from 'i18n-calypso'; import { trim } from 'lodash'; import Gridicon from 'gridicons'; import classNames from 'classnames'; const PackagesListItem = ( { isPlaceholder, data, dimensionU...
docs/app/Examples/elements/Header/Content/HeaderExampleImage.js
ben174/Semantic-UI-React
import React from 'react' import { Header, Image } from 'semantic-ui-react' const HeaderExampleImage = () => ( <Header as='h2'> <Image shape='circular' src='http://semantic-ui.com/images/avatar2/large/patrick.png' /> {' '}Patrick </Header> ) export default HeaderExampleImage
src/ButtonInput.js
azmenak/react-bootstrap
import React from 'react'; import Button from './Button'; import FormGroup from './FormGroup'; import InputBase from './InputBase'; import childrenValueValidation from './utils/childrenValueInputValidation'; class ButtonInput extends InputBase { renderFormGroup(children) { let {bsStyle, value, ...other} = this.p...
src/index.js
kikoruiz/react-course
import React from 'react'; import { render } from 'react-dom'; import { Router, Route, IndexRoute, Redirect, hashHistory, applyRouterMiddleware } from 'react-router'; import { useTransitions, withTransition } from 'react-router-transitions'; import ReactCSSTransitionGroup from 'react-addons-css-transition-g...
app/javascript/mastodon/features/account_timeline/containers/header_container.js
sylph-sin-tyaku/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { makeGetAccount } from '../../../selectors'; import Header from '../components/header'; import { followAccount, unfollowAccount, unblockAccount, unmuteAccount, pinAccount, unpinAccount, } from '../../../actions/accounts'; import { m...
TodoWonder/js/NavigationPager.js
lintonye/react-native-diary
/** * @flow */ import React from 'react' import { Animated, View, StyleSheet, NavigationExperimental, } from 'react-native' const { CardStack: NavCardStack, StateUtils: NavStateUtils, Transitioner: NavTransitioner, Card: NavCard, } = NavigationExperimental const { PagerPanResponder: NavigationPag...
src/js/components/icons/base/Document.js
odedre/grommet-final
/** * @description Document SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @p...
src/TextLinkElement/index.js
DuckyTeam/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './styles.css'; import Wrapper from '../Wrapper'; import Typography from '../Typography'; function TextLinkElement(props) { function openTab() { if (props.onClick) { props.onC...
app/javascript/mastodon/components/loading_indicator.js
ambition-vietnam/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; const LoadingIndicator = () => ( <div className='loading-indicator'> <div className='loading-indicator__figure' /> <FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' /> </div> ); export default LoadingIndicat...
mobile/ClubLife/src/views/editProfile.js
Bcpoole/ClubLife
import React, { Component } from 'react'; import { AppRegistry, Alert, Button, StyleSheet, Text, View, TextInput, ScrollView, TouchableNativeFeedback, Image, TouchableOpacity, TouchableHighlight, Platform, } from 'react-native'; export default class EditProfile extends Component { constructor(props){ s...
server/sonar-web/src/main/js/apps/quality-gates/components/DetailsContent.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info 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, o...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/index.js
claudiopro/flow
/** * @format * @flow */ const path = require('path'); const Styled = require('../../../Styled'); exports.kind = 'codemod'; exports.title = 'Simplify React.Component type arguments.'; exports.description = ` A React.Component used to require three type arguments like this: React.Component<DefaultProps, Props, St...
client/src/Views/AcctManagementLayout.js
deepankarmalhan/fd-website
import React, { Component } from 'react'; import { Route } from 'react-router-dom'; import DeleteAccountBox from './DeleteAccountBox'; import AcctInfoLayout from './AcctInfoLayout'; export default class AcctManagementLayout extends Component { componentWillMount() { if(!localStorage.clientName) { this.pro...
src/utils/childrenValueInputValidation.js
Firfi/meteor-react-bootstrap
import React from 'react'; import { singlePropFrom } from './CustomPropTypes'; const propList = ['children', 'value']; const typeList = [React.PropTypes.number, React.PropTypes.string]; export default function valueValidation(props, propName, componentName) { let error = singlePropFrom(propList)(props, propName, co...
client/src/components/trucks/TruckModal.js
PCGeekBrain/TruckTrack
import React, { Component } from 'react'; // Components import { Modal, Button, FormControl } from 'react-bootstrap'; // Actions import { submitTruck, hideModal } from '../../actions/trucks'; // Redux import { connect } from 'react-redux'; class TruckModal extends Component { componentWillMount(){ this.setState...
imports/startup/client/routes.js
KyneSilverhide/team-manager
import React from 'react'; import { render } from 'react-dom'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import { Meteor } from 'meteor/meteor'; import App from '../../ui/layouts/App.js'; import Teams from '../../ui/pages/teams/Teams.js'; import Versions from '../../ui/pages/versions/Ver...
spec/components/link.js
rahultaglr/taglr-toolbox
import React from 'react'; import Link from '../../components/link'; const LinkTest = () => ( <section> <h5>Links</h5> <p>lorem ipsum...</p> <Link label="Github" route="http://www.github.com" icon="bookmark" /> <Link label="Inbox" route="http://mail.google.com" icon="inbox" /> </section> ); export...
client/src/components/ingredient/Create.js
noinc/SimpleStorefront
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link, Redirect } from 'react-router-dom'; import PropTypes from 'prop-types'; import Form from './Form'; import { create, reset } from '../../actions/ingredient/create'; class Create extends Component { static propTypes = { ...
demo/components/navbar/NavBarOptions.js
ctco/rosemary-ui
import React from 'react'; import {NavItem, NavHrefItem} from '../../../src'; import OptionsTable from '../../helper/OptionsTable'; export default () => { let commonPropDesc = { active: { values: 'boolean', description: 'Set link to be active' }, right: { ...
src/svg-icons/action/loyalty.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLoyalty = (props) => ( <SvgIcon {...props}> <path d="M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86....
Realization/frontend/czechidm-core/src/content/audit/identity/AuditIdentityPasswordChangeContent.js
bcvsolutions/CzechIdMng
import React from 'react'; import Helmet from 'react-helmet'; // import * as Basic from '../../../components/basic'; import AuditIdentityPasswordChangeTable from './AuditIdentityPasswordChangeTable'; /** * Audit for identity password change. * * @author Ondřej Kopr * @author Radek Tomiška */ export default class ...
app/public/src/js/App/Weather/Index.js
ShawnCC/magic-mirror
'use strict'; import React from 'react'; import { connect } from 'react-redux'; const CronJob = require('cron').CronJob; import { getForecast } from '../Actions/Weather'; import Current from './Current'; import Upcoming from './Upcoming'; class Weather extends React.Component { constructor() { super(); ...
ReactJS/07.Async-Redux/chiper-spa/src/index.js
Martotko/JS-Web
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; import { BrowserRouter } from 'react-router-dom' import { Provider } from 'react-redux' import storeGen from './store/store' let store = storeGen Rea...
src/components/pages/StaticContent/StoresPage.js
ESTEBANMURUZABAL/bananaStore
/** * Imports */ import React from 'react'; // Required components import Heading from '../../common/typography/Heading'; /** * Component */ class StoresPage extends React.Component { //*** Page Title and Snippets ***// static pageTitleAndSnippets = function (context, params, query) { return { ...
src/app/component/labeled-field/labeled-field.js
all3dp/printing-engine-client
import PropTypes from 'prop-types' import React from 'react' import cn from '../../lib/class-names' import propTypes from '../../prop-types' const LabeledField = ({classNames, label, children}) => ( <div className={cn('LabeledField', {}, classNames)}> <span className="LabeledField__label">{label}</span> <di...
docs/src/components/Demo/Code/Code.js
seek-oss/seek-style-guide
import styles from './Code.less'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Section, Text } from 'seek-style-guide/react'; import debounce from 'lodash/debounce'; import uniq from 'lodash/uniq'; import jsxToString from 'react-element-to-jsx-string'; import CopyToClipboard f...
monkey/monkey_island/cc/ui/src/components/ui-components/LoadingScreen.js
guardicore/monkey
import React from 'react'; import monkeyLoader from '../../images/monkey_loading.gif'; import '../../styles/components/LoadingScreen.scss'; import ParticleBackground from './ParticleBackground'; export default function LoadingScreen(props) { return ( <div className={'loading-screen'}> <ParticleBackground/>...
src/docs/src/templates/docs.js
StarterInc/Ignite
import { graphql } from 'gatsby'; import Helmet from 'react-helmet'; import MDXRenderer from 'gatsby-mdx/mdx-renderer'; import React from 'react'; import SimpleFooter from '../components/SimpleFooter'; import Sidebar from '../components/Sidebar'; import LayoutNav from '../components/LayoutNav'; import CodeTabs from '....
src/components/movie/component/_movie.js
chemoish/react-webpack
import React from 'react'; import Router from 'react-router'; var {Link} = Router; export default React.createClass({ render() { let movie = this.props.movie; return ( <Link className="movie" to="movie" params={{slug: movie.seoTitle}}> <div className="movie-image"> ...
app/javascript/flavours/glitch/containers/account_container.js
glitch-soc/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { makeGetAccount } from 'flavours/glitch/selectors'; import Account from 'flavours/glitch/components/account'; import { followAccount, unfollowAccount, blockAccount, ...