path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/utils/ValidComponentChildren.js
jontewks/react-bootstrap
import React from 'react'; /** * Maps children that are typically specified as `props.children`, * but only iterates over children that are "valid components". * * The mapFunction provided index will be normalised to the components mapped, * so an invalid component would not increase the index. * * @param {?*} ...
packages/@lyra/components/src/previews/CardPreview.js
VegaPublish/vega-studio
import PropTypes from 'prop-types' import React from 'react' import formatDate from 'date-fns/format' import {debounce, truncate} from 'lodash' import styles from 'part:@lyra/components/previews/card-style' import elementResizeDetectorMaker from 'element-resize-detector' let index = 0 const svgStyles = { position: ...
test/utils/CustomPropTypesSpec.js
aparticka/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import CustomPropTypes from '../../src/utils/CustomPropTypes'; function isChainableAndUndefinedOK(validatorUnderTest) { it('Should validate OK with undefined or null values', function() { assert.isUndefined(validatorUnderTest({}, '...
src/components/express/original/ExpressOriginal.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './ExpressOriginal.svg' /** ExpressOriginal */ function ExpressOriginal({ width, height, className }) { return ( <SVGDeviconInline className={'ExpressOriginal' + ' '...
src/docs/src/components/Blog/BlogList/BlogList.js
StarterInc/Ignite
import { window } from 'browser-monads'; import { Link, StaticQuery, withPrefix, graphql } from 'gatsby'; import React from 'react'; import CodeTabs from '../../CodeTabs'; import CodeClipboard from '../../CodeClipboard'; class BlogList extends React.Component { componentDidMount() { this._codeTabs = new Co...
docs/src/app/components/pages/components/Slider/ExampleControlled.js
pradel/material-ui
import React from 'react'; import Slider from 'material-ui/Slider'; export default class SliderExampleControlled extends React.Component { state = { firstSlider: 0.5, secondSlider: 50, } handleFirstSlider(event, value) { this.setState({firstSlider: value}); } handleSecondSlider(event, value) {...
src/js/components/docImage.js
tohashi/css-typesetter
import React from 'react'; import DraggableText from './draggableText'; export default class DocImage extends React.Component { get imageStyle() { const setting = this.props.setting; return { width: `${setting.previewWidth}px`, height: `${setting.previewHeight}px`, backgroundImage: `url(${s...
examples/real-world/src/index.js
ioof-holdings/redux-dynamic-reducer
import React from 'react' import { render } from 'react-dom' import { browserHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import { Root, configureStore } from './root' const store = configureStore() const history = syncHistoryWithStore(browserHistory, store) render( <Root ...
src/components/NavTab/__tests__/navtab-test.js
falmar/react-adm-lte
jest.unmock('./../NavTab') import React from 'react' import {shallow} from 'enzyme' import NavTab from './../NavTab' describe('NavTab', () => { it('should have basic classnames', () => { const wrapper = shallow(<NavTab />) expect( wrapper.hasClass('nav') ).toBeTruthy() expect( wrapper...
src/components/book/BookDetails.js
budiantotan/book-store
import React from 'react'; const BookDetails = ({book, addToCart}) => { return ( <div className="media"> <div className="media-left"> <a href="#"> <img className="media-object" src="http://placehold.it/200/450" alt="Placehold" /> </a> ...
sample/components/text.js
LINKIWI/react-elemental
import React from 'react'; import PropTypes from 'prop-types'; import { Spacing, Text, sizes } from 'react-elemental'; const Sizes = ({ secondary = false }) => ( <div> { Object.keys(sizes).map((size) => ( <Spacing key={size} bottom> <Spacing size="micro" bottom> <Text size="ki...
src/containers/loading/error_state.js
zerilliworks/snax
import React from 'react' import ReactDOM from 'react-dom' import _ from 'lodash' const isNotEmpty = _.negate(_.isEmpty) const ErrorState = React.createClass({ render() { if(isNotEmpty(this.props.children)) { return this.props.children } else { return ( <div className={this.props.cla...
docs/website/src/templates/action.js
adaltas/node-mecano
// React import React from 'react' // Gatsby import { graphql } from 'gatsby' // MDX import { MDXProvider } from "@mdx-js/react" import { MDXRenderer } from "gatsby-plugin-mdx" // Local import Layout from '../components/Layout' const Template = ({ data }) => { const { page } = data return ( <Layout page={{ ...
frontend/App/BlogHeader.js
fdemian/Morpheus
import React from 'react' //import cssModules from 'react-css-modules'; import { Link } from 'react-router-dom'; const headerImageStyles = { 'maxHeight': '1000px', 'width': '100%', 'maxWidth': '100%' } const imgSRC = "https://fb-s-a-a.akamaihd.net/h-ak-xtp1/v/t1.0-9/15036540_10211033285894206_4752209531205670470_n...
docs/src/pages/components/snackbars/SimpleSnackbar.js
lgollut/material-ui
import React from 'react'; import Button from '@material-ui/core/Button'; import Snackbar from '@material-ui/core/Snackbar'; import IconButton from '@material-ui/core/IconButton'; import CloseIcon from '@material-ui/icons/Close'; export default function SimpleSnackbar() { const [open, setOpen] = React.useState(false...
src/app/components/AutoComplete/AutoComplete.js
xZarisx/react-rpg
import React from 'react'; import style from './auto-complete.css'; import classNames from 'classnames'; import strongify from './util/strongify.js'; // import throttle from '../../lib/throttle.js'; export default class AutoComplete extends React.Component { constructor(props) { super(props); th...
pages/navigation-components.js
pagesource/fusion
import React from 'react'; import { ThemeProvider } from 'theming'; import { Navbar, Pagination, StepperControl, Breadcrumb } from '../'; // --------page specific imports--------- import theme from '../theme'; // ---- global imports ---------- import Layout from './components/Layout'; const NavigationComponent = () =>...
node_modules/react-router/es6/Router.js
NathanBWaters/jb_club
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
client/src/components/alert/Needs.js
15thnight/15thnight
import React from 'react'; export default function Needs(props) { let { needs, role } = props; return ( <div> {needs.map(need => { let name = need.service.name; return ( <div key={need.id}> {need.resolved ? ...
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch04/04_06/start/src/index.js
yevheniyc/C
import React from 'react' import { render } from 'react-dom' import './stylesheets/ui.scss' import { App } from './components/App' window.React = React render( <App />, document.getElementById('react-container') )
node_modules/react-bootstrap/es/ModalBody.js
NathanBWaters/jb_club
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/svg-icons/action/alarm-off.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAlarmOff = (props) => ( <SvgIcon {...props}> <path d="M12 6c3.87 0 7 3.13 7 7 0 .84-.16 1.65-.43 2.4l1.52 1.52c.58-1.19.91-2.51.91-3.92 0-4.97-4.03-9-9-9-1.41 0-2.73.33-3.92.91L9.6 6.43C10.35 6.16 11.16 6...
components/illustrations/quicksort/intro.js
skidding/illustrated-algorithms
import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; import PureLayoutComponent from '../../../utils/pure-layout-component'; class Intro extends PureLayoutComponent { render() { const { frame, } = this.props; const { padding, borderWidth, ...
packages/icons/src/md/editor/BorderColor.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdBorderColor(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <g> <path d="M35.5 13.995l-7.5-7.5-20 20v7.5h7.5l20-20zm5.91-5.91c.78-.78.78-2.05 0-2.83L36.74.585c-.78-.78-2.05-.78-2.83 0L30 4.495l7.5 7.5 3.91-...
src/layout/section.js
bokuweb/re-bulma
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styles from '../../build/styles'; import { getCallbacks } from '../helper/helper'; export default class Section extends Component { static propTypes = { children: PropTypes.any, style: PropTypes.object, className: PropTy...
react/gameday2/gameday2.js
tsteward/the-blue-alliance
import 'babel-polyfill' import React from 'react' import { Provider } from 'react-redux' import thunk from 'redux-thunk' import { createStore, applyMiddleware, compose } from 'redux' import ReactDOM from 'react-dom' import queryString from 'query-string' import injectTapEventPlugin from 'react-tap-event-plugin' import ...
src/browser/app/Header.js
xiankai/triple-triad-solver
/* @flow */ import type { State } from '../../common/types'; import React from 'react'; import linksMessages from '../../common/app/linksMessages'; import { FormattedMessage } from 'react-intl'; import { Link, Space, Toolbar } from '../app/components'; import { connect } from 'react-redux'; const styles = { toolbar:...
js/player/NameLabel.js
GyrosOfWar/podcaster-frontend
import React from 'react' import { Label } from 'react-bootstrap' const NameLabel = React.createClass({ render: function() { return ( <span className="audio-name-label pull-left">{this.props.name}</span> ); } }) export default NameLabel
index.android.js
rissch/Smart-Recipes-Mobile-App
// @flow // Vendor. import React, { Component } from 'react'; import { AppRegistry, View } from 'react-native'; import { NativeRouter } from 'react-router-native'; // App. import App from './src/app'; export default function SmartRecipes(){ return ( <View> <NativeRouter> <App /> </NativeRou...
src/components/Dialogs/index.js
welovekpop/uwave-web-welovekpop.club
import React from 'react'; import EditMediaDialog from '../../containers/EditMediaDialog'; import LoginDialog from '../../containers/LoginDialog'; import PreviewMediaDialog from '../../containers/PreviewMediaDialog'; const Dialogs = () => ( <div className="Dialogs"> <EditMediaDialog /> <LoginDialog /> <...
renderer/components/Channels/ChannelSummaryList.js
LN-Zap/zap-desktop
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import { List, AutoSizer } from 'react-virtualized' import { space as baseSpace } from 'themes/base' import ChannelSummaryListItem from './ChannelSummaryListItem' const StyledList = styled(List)` outline: none; over...
src/ButtonInput.js
tonylinyy/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...
packages/bundle/src/adaptiveCards/Attachment/VideoCardAttachment.js
billba/botchat
/* eslint react/no-array-index-key: "off" */ import PropTypes from 'prop-types'; import React from 'react'; import VideoCardContent from './VideoCardContent'; const VideoCardAttachment = ({ attachment: { content }, disabled }) => ( <VideoCardContent content={content} disabled={disabled} /> ); VideoCardAttachment....
packages/generator-emakinacee-react/generators/app/templates/static/src/components/Button/Button.spec.js
emakina-cee-oss/react-cli
import React from 'react'; import ReactDOM from 'react-dom'; import Button from './Button'; describe('Button', () => { it('renders without error', () => { const div = document.createElement('div'); ReactDOM.render(<Button label="foo" />, div); }); });
blueocean-material-icons/src/js/components/svg-icons/action/thumb-up.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionThumbUp = (props) => ( <SvgIcon {...props}> <path d="M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14...
src/svg-icons/editor/border-style.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderStyle = (props) => ( <SvgIcon {...props}> <path d="M15 21h2v-2h-2v2zm4 0h2v-2h-2v2zM7 21h2v-2H7v2zm4 0h2v-2h-2v2zm8-4h2v-2h-2v2zm0-4h2v-2h-2v2zM3 3v18h2V5h16V3H3zm16 6h2V7h-2v2z"/> </SvgIcon> ); E...
platform/ui/src/components/ohifModal/OHIFModal.js
OHIF/Viewers
import React from 'react'; import PropTypes from 'prop-types'; import Modal from 'react-modal'; import classNames from 'classnames'; import './OHIFModal.styl'; const customStyle = { overlay: { zIndex: 1071, backgroundColor: 'rgb(0, 0, 0, 0.5)', display: 'flex', alignItems: 'center', justifyConte...
src/svg-icons/file/cloud-done.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileCloudDone = (props) => ( <SvgIcon {...props}> <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96...
app/javascript/mastodon/features/account_gallery/index.js
esetomo/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { fetchAccount } from '../../actions/accounts'; import { refreshAccountMediaTimeline, expandAccountMediaTimeline } from '../../actions/timelines'; impo...
src/svg-icons/av/games.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvGames = (props) => ( <SvgIcon {...props}> <path d="M15 7.5V2H9v5.5l3 3 3-3zM7.5 9H2v6h5.5l3-3-3-3zM9 16.5V22h6v-5.5l-3-3-3 3zM16.5 9l-3 3 3 3H22V9h-5.5z"/> </SvgIcon> ); AvGames = pure(AvGames); AvGames.dis...
example/index.js
NdYAG/react-rater
import React from 'react' import ReactDOM from 'react-dom' import App from './App' function render() { ReactDOM.render(<App />, document.getElementById('app')) } render()
Libraries/Components/Keyboard/Keyboard.js
cdlewis/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/scene/Nearby/NearbyCell.js
dudongge/DDGMeiTuan
/** * Copyright (c) 2017-present, dudongge * All rights reserved. * * https://github.com/dudongge/DDGMeiTuan * copyright by dudodongge */ //import liraries import React, { Component } from 'react'; import { View, Text, StyleSheet, TouchableOpacity, Image } from 'react-native'; import { Heading1, Heading2, Parag...
src/icons/PersonStalker.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class PersonStalker extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M425.3,324.8c-41.4-15.7-38.9-9.4-38.9-38.5c0-18.8,9.3-11.9,15.2-47.7c2.3-14.1,4.2-4.7,9.1-27.3 c2.6-11.8-1.8...
src/client/todos/index.react.js
obimod/este
import Buttons from './buttons.react'; import Component from '../components/component.react'; import DocumentTitle from 'react-document-title'; import NewTodo from './newtodo.react'; import React from 'react'; import ToCheck from './tocheck.react'; import Todos from './todos.react'; export default class TodosIndex ext...
src/index.js
DanFlavius/React-boilerplate-workshop
import React from 'react'; import ReactDOM from 'react-dom'; import reducers from './reducers'; import createSagaMiddleware from 'redux-saga'; import mySaga from './sagas'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { Router, browserHistory } from 'react-router...
pkg/interface/weather/tile/tile.js
jfranklin9000/urbit
import React, { Component } from 'react'; import classnames from 'classnames'; import moment from 'moment'; export default class WeatherTile extends Component { constructor(props) { super(props); this.state = { latlng: '', manualEntry: false, error: false }; let api = window.api; ...
test/FadeSpec.js
glenjamin/react-bootstrap
import React from 'react'; import { mount } from 'enzyme'; import Fade from '../src/Fade'; describe('Fade', () => { let Component, wrapper; beforeEach(() => { Component = class extends React.Component { render() { let { children, ...props } = this.props; return ( <Fade ref={r...
src/components/Input/index.js
cowback/charcode-client
import React from 'react' import cn from 'utils/cn' import './input.css' const Input = ({ placeholder, value, type, name, minlength, maxlength, required, onChange, }) => { return ( <input type={type} value={value} name={name} placeholder={placeholder} minLength={mi...
src/Grid.js
mmarcant/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import elementType from 'react-prop-types/lib/elementType'; import { bsClass, prefix, splitBsProps } from './utils/bootstrapUtils'; const propTypes = { /** * Turn any fixed-width grid layout into a full-width layout by this property. * * Adds ...
src/js/components/icons/base/SocialVisa.js
kylebyerly-hp/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...
time-on-task/app/components/Report.js
ajaymore/time-on-task
import React, { Component } from 'react'; import { Text, View, StyleSheet, ScrollView } from 'react-native'; import moment from 'moment'; import range from 'lodash/range'; export default class Report extends Component { render() { const { starttime, endtime, readings } = this.props.observation; const...
src/ChallengeMeta7/index.js
christianalfoni/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Icon from '../Icon'; import ChallengeMeta4 from '../ChallengeMeta4'; import styles from './styles.css'; function ChallengeMeta7(props) { return ( <div className={classNames(styles.wrapper, { [props.cl...
examples/huge-apps/routes/Course/routes/Assignments/routes/Assignment/components/Assignment.js
Nedomas/react-router
/*globals COURSES:true */ import React from 'react' class Assignment extends React.Component { render() { let { courseId, assignmentId } = this.props.params let { title, body } = COURSES[courseId].assignments[assignmentId] return ( <div> <h4>{title}</h4> <p>{body}</p> </div> ...
docs/app/Examples/views/Statistic/Variations/StatisticExampleInverted.js
koenvg/Semantic-UI-React
import React from 'react' import { Segment, Statistic } from 'semantic-ui-react' const StatisticExampleInverted = () => ( <Segment inverted> <Statistic inverted value='54' label='inverted' /> <Statistic inverted color='red' value='27' label='red' /> <Statistic inverted color='orange' value='8' label='ora...
public/js/components/activityfeed/Comment.react.js
IsuruDilhan/Coupley
import React from 'react'; import Card from 'material-ui/lib/card/card'; import ListItem from 'material-ui/lib/lists/list-item'; import List from 'material-ui/lib/lists/list'; import Divider from 'material-ui/lib/divider'; import Avatar from 'material-ui/lib/avatar'; var Comment = React.createClass({ render: fun...
src/organisms/footer/stories.js
dsmjs/components
/* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */ import React from 'react'; import storyRouter from 'storybook-router'; import {linkTo} from '@storybook/addon-links'; import Footer from './index'; export default { title: 'Organisms/Footer', decorators: [ storyRouter({ ...
docs/app/Examples/elements/Divider/Variations/index.js
mohammed88/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const DividerVariationsExamples = () => ( <ExampleSection title='Variations'> <ComponentExample title='Inverted' desc...
src/svg-icons/device/signal-cellular-1-bar.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellular1Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/><path d="M12 12L2 22h10z"/> </SvgIcon> ); DeviceSignalCellular1Bar = pure(DeviceSignalCellular1Bar); Device...
src/GameMode.js
Brianzchen/tabletennis-handicap
import React from 'react'; import GameModePlayer from './GameModePlayer'; export default class GameMode extends React.Component { render() { const disableSumbit = (!this.state.playerOne || !this.state.playerTwo) || (this.state.playerOne === this.state.playerTwo); return ( <div> <GameMod...
src/components/Iconfont/Iconfont.js
vincentdd/crm
import React from 'react' import PropTypes from 'prop-types' import './iconfont.less' const Iconfont = ({ type, colorful }) => { if (colorful) { return (<span dangerouslySetInnerHTML={{ __html: `<svg class="colorful-icon" aria-hidden="true"><use xlink:href="#${type.startsWith('#') ? type.replace(/#...
src/pages/editEvent.js
OpenCollective/frontend
import React from 'react'; import PropTypes from 'prop-types'; import EditEvent from '../components/EditEvent'; import ErrorPage from '../components/ErrorPage'; import { addEventCollectiveData } from '../graphql/queries'; import withData from '../lib/withData'; import withIntl from '../lib/withIntl'; import withLogg...
app/auth/components/Navbar.js
sagnikm95/internship-portal
import React from 'react'; import PropTypes from 'prop-types'; import { Switch, Route, Link, withRouter } from 'react-router-dom'; import { Menu } from 'semantic-ui-react'; import Auth from '../modules/Auth'; const Navbar = (props) => { const LogoutFunction = () => { Auth.deauthenticateUser(); props.history...
node_modules/react-bootstrap/es/NavDropdown.js
rblin081/drafting-client
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from...
src/components/stepFour/index.js
oraclesorg/ico-wizard
import React from 'react' import '../../assets/stylesheets/application.css' import { buildDeploymentSteps, download, getDownloadName, handleConstantForFile, handleContractsForFile, handlerForFile, scrollToBottom, setupContractDeployment } from './utils' import { noContractDataAlert, successfulDeployment...
app/components/movie.js
shrihari/moviemonkey
import React from 'react' import ReactDOM from 'react-dom' const remote = require('electron').remote; const app = remote.app; const path = require('path'); export default class Movie extends React.Component { constructor(props) { super(props); } render() { var movie = this.props.data; return ( ...
src/routes/home/Home.js
yvanwangl/UniversalBlog
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
client/components/lists/progress-bar.js
CommonActionForum/liqen-face
import React from 'react' import styled, { keyframes } from 'styled-components' import PropTypes from 'prop-types' const growing = keyframes` 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } ` const disappearing = keyframes` 0% { transform: scaleX(0) } 50% { transform: scale...
websrc/cacti-user/src/WMUserApp.js
howardjones/network-weathermap
import React from 'react'; import {connect} from 'react-redux'; import {loadSettings} from './actions'; import './App.css'; import {HashRouter, Redirect, Route} from 'react-router-dom' import SingleMap from './components/SingleMap'; import MapGroup from './components/MapGroup'; class WMUserApp extends React.Comp...
src/DetailsBox.component.js
dhis2/datim-data-export-log
import React from 'react'; import classes from 'classnames'; import FontIcon from 'material-ui/FontIcon/FontIcon'; import RaisedButton from 'material-ui/RaisedButton'; import Divider from 'material-ui/Divider'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import Translate ...
src/container/Root.js
coolday4me/react-starter-kit
import React from 'react'; import { connect } from 'react-redux'; import CRUD from '../libs/CRUD'; import Layout from './Layout'; const Container = props => <Layout {...props} />; const mapStateToProps = state => ({ state }); const mapDispatchToProps = dispatch => ({ dispatch, }); const mergeProps = (stateProps,...
src/components/Profile/LastOffered.js
andresmechali/shareify
import React from 'react'; import PropTypes from 'prop-types'; import { withApollo } from 'react-apollo'; import LAST_OFFERED from '../../utils/queries/LAST_OFFERED'; import Image from '../Image'; class LastOffered extends React.Component { constructor(props) { super(props); this.state = { ...
components/Footer.js
Belhalaribi/PFE
import React, { Component } from 'react'; import FontIcon from 'material-ui/FontIcon'; import {BottomNavigation, BottomNavigationItem} from 'material-ui/BottomNavigation'; import Paper from 'material-ui/Paper'; import IconLocationOn from 'material-ui/svg-icons/communication/location-on'; import {Tabs, Tab} from 'mater...
app/containers/Players/components/MultiFormatTableRow/index.js
hugogrochau/rocketleaguesam-web
import TableRowColumn from 'material-ui/Table/TableRowColumn'; import TableRow from 'material-ui/Table/TableRow'; import React from 'react'; import { Link } from 'react-router'; import styled from 'styled-components'; const SmallTableRowColumn = styled(TableRowColumn)` padding-left: 12px !important padding-right: ...
src/docs/components/chart/LineDoc.js
grommet/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Chart, { Base, Line, Layers } from 'grommet/components/chart/Chart'; import Anchor from 'grommet/components/Anchor'; import DocsArticle from '../../../components/DocsArticle'; import BackControl from '...
src/components/Blog/Blog.js
tomzaoral/tomzaoral.github.io
import React, { Component } from 'react'; import { Link } from 'react-router'; import posts from './../../../posts.json'; import './Blog.less'; import moment from 'moment'; export default class Blog extends Component { constructor(props) { super(props) document.title = 'Blog'; } render() { let p...
client/omnichannel/realTimeMonitoring/overviews/AgentsOverview.js
Sing-Li/Rocket.Chat
import React from 'react'; import { useEndpointDataExperimental } from '../../../hooks/useEndpointDataExperimental'; import CounterContainer from '../counter/CounterContainer'; const overviewInitalValue = { title: '', value: '-', }; const initialData = [ overviewInitalValue, overviewInitalValue, overviewInitalV...
src/components/__tests__/InfoBar-test.js
vaseker/react-redux-universal-hot-example
import React from 'react'; import ReactDOM from 'react-dom'; import {renderIntoDocument} from 'react-addons-test-utils'; import { expect} from 'chai'; import { InfoBar } from 'components'; import { Provider } from 'react-redux'; import createStore from 'redux/create'; import ApiClient from 'helpers/ApiClient'; const cl...
blueocean-material-icons/src/js/components/svg-icons/device/bluetooth-searching.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const DeviceBluetoothSearching = (props) => ( <SvgIcon {...props}> <path d="M14.24 12.01l2.32 2.32c.28-.72.44-1.51.44-2.33 0-.82-.16-1.59-.43-2.31l-2.33 2.32zm5.29-5.3l-1.26 1.26c.63 1.21.98 2.57.98 4.02s-.36 2.82-.98 4.02l1.2 1.2c.97-1.54 1.54-3.36...
app/components/LoadingIndicator/index.js
mikejong0815/Temp
import React from 'react'; import Circle from './Circle'; import Wrapper from './Wrapper'; const LoadingIndicator = () => ( <Wrapper> <Circle /> <Circle rotate={30} delay={-1.1} /> <Circle rotate={60} delay={-1} /> <Circle rotate={90} delay={-0.9} /> <Circle rotate={120} delay={-0.8} /> <Cir...
app/private/indexerApp/imports/ui/pages/Files.js
ericvrp/GameCollie
import React from 'react'; import { Link } from 'react-router'; import { Row, Col, Button } from 'react-bootstrap'; import FileList from '../components/FileList'; const Files = () => ( <div className="Files"> <Row> <Col xs={ 12 }> <div className="page-header clearfix"> <h4 className="pull...
src/svg-icons/av/high-quality.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvHighQuality = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 11H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm7-1c0 .55-.45 1-1 1h-.75v1.5h-1....
src/mui/input/NumberInput.spec.js
azureReact/AzureReact
import React from 'react'; import assert from 'assert'; import { shallow } from 'enzyme'; import sinon from 'sinon'; import NumberInput from './NumberInput'; describe('<NumberInput />', () => { const defaultProps = { source: 'foo', meta: {}, input: { onBlur: () => {}, ...
docs/app/Examples/elements/Loader/Types/LoaderExampleTextShorthand.js
koenvg/Semantic-UI-React
import React from 'react' import { Dimmer, Loader, Image, Segment } from 'semantic-ui-react' const LoaderExampleTextShorthand = () => ( <div> <Segment> <Dimmer active> <Loader content='Loading' /> </Dimmer> <Image src='http://semantic-ui.com/images/wireframe/short-paragraph.png' /> ...
src/modules/Attachment/component.js
svmn/ace-rx
'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Component as AttachmentImage } from '../AttachmentImage'; import { Component as AttachmentYoutube } from '../AttachmentYoutube'; import { Component as AttachmentWebm } from '../AttachmentWebm'; import { getExtWebmUrl...
test/VNav-spec.js
gearz-lab/react-ui
import React from 'react'; import expressionEvaluator from '../src/lib/expression-evaluator.js'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import VNav from '../src/components/navigation/VNav/VNav.jsx'; import VNavGroup from '../src/components/navigation/VNav/VNavGroup.jsx'; import VNavItem from '../src/com...
Ethereum-based-Roll4Win/node_modules/react-bootstrap/es/Collapse.js
brett-harvey/Smart-Contracts
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose"; var _collapseStyles; import classNames from 'classnames'; import css from 'dom-helpers/...
src/components/QuestionItem/QuestionItem.js
poeschko/ask-refugeescode
// @flow import React from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import FaEdit from 'react-icons/lib/fa/edit'; import s from './QuestionItem.css'; import type Question from '../../data/flow/Question'; class QuestionItem extends React.Component { static defaultProps = { open...
client/apps/shipping-settings/index.js
Automattic/woocommerce-services
/** * External dependencies */ import React from 'react'; /** * Internal dependencies */ import ViewWrapper from './view-wrapper'; // from calypso import labelSettingsReducer from '../../extensions/woocommerce/woocommerce-services/state/label-settings/reducer'; import packagesReducer from '../../extensions/woocomm...
src/routes/teahouse/editre/index.js
DiroKate/SysuhikerCC
import React from 'react'; import { connect } from 'dva'; import { Row, Col } from 'antd'; import { ReEditorForm } from '../../../components'; function EditPage({ dispatch, userId, currentRe }) { const onSubmitHandle = ({ contentValue, reId }) => { dispatch({ type: 'teahouse/editTopicRe', payload: {...
analysis/monkbrewmaster/src/CONFIG.js
anom0ly/WoWAnalyzer
import { emallson } from 'CONTRIBUTORS'; import SPECS from 'game/SPECS'; import React from 'react'; import CHANGELOG from './CHANGELOG'; export default { // The people that have contributed to this spec recently. People don't have to sign up to be long-time maintainers to be included in this list. If someone built ...
src/containers/tool/Doraemon/SuggestIcon.js
mydearxym/mastani
/* * render the icon based on suggestion type * */ import React from 'react' import { contains } from 'ramda' import { DEFAULT_ICON } from '@/config' import { NON_FILL_COMMUNITY } from '@/constant' import { themeCoverMap } from '@/utils/themes' import { Wrapper, ThemeIconWrapper, Icon, DoraemonIcon, The...
stories/primary.stories.js
joshwcomeau/react-flip-move
import React from 'react'; import { storiesOf } from '@storybook/react'; import FlipMoveWrapper from './helpers/FlipMoveWrapper'; import FlipMoveListItem from './helpers/FlipMoveListItem'; import FlipMoveListItemLegacy from './helpers/FlipMoveListItemLegacy'; storiesOf('Basic Behaviour', module) .add('native (<div>...
public/scripts/components/applicants/filter-card-list.js
asarode/flux-grok
'use strict' import React from 'react' import cx from 'classname' import ApplicantCard from './applicant-card' class FilterCardList extends React.Component { constructor(props) { super(props) this.state = {} } render() { return ( <div> {this.cards} </div> ) } get cards(...
src/manager/containers/LocalePanel/__tests__/index.js
truffls/storybook-addon-intl
import React from 'react'; import renderer from 'react-test-renderer'; import LocalePanel from '../'; import { EVENT_SET_CONFIG_ID, EVENT_GET_LOCALE_ID, EVENT_SET_LOCALE_ID } from '../../../../shared'; describe('LocalePanel', () => { test('initialize correctly', () => { const channel = { ...
src/shared/components/AppBar/index.js
rvboris/finalytics
import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { NavLink } from 'react-router-dom'; import { get } from 'lodash'; import { push } from 'react-router-redux'; import { Navbar, NavbarBrand, NavbarToggler, Nav, Collapse, NavItem, NavDropdown...
src/views/blockapps-intro/GetBalanceView.js
prashantpawar/blockapps-js-tutorial
import React from 'react' import AceEditor from 'react-ace' import Hightlight from 'react-highlight' import BaseView from './BaseView' import JSValidator from '../../components/JSValidator' import 'brace/mode/html' import 'brace/mode/javascript' import 'brace/theme/github' import 'highlight.js/styles/default.css' ex...
client/containers/App.js
rickyeh/nimblecode
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { getUsername, smashUser } from '../actions/index'; import { bindActionCreators } from 'redux'; import NavLink from '../components/NavLink'; import { Link } from 'react-router'; import Radium from 'radium'; import color from 'color'...
src/components/map/routelayer.js
ClanWolf/C3-StarMap
/* @flow */ import React, { Component } from 'react'; import L from 'leaflet'; import { toJS } from 'mobx'; import { observer } from 'mobx-react'; import { Universe, App } from '../../state'; type Props = {}; @observer export default class RouteLayer extends Component { layer: Object; constructor(props: Props) { ...
examples/full-example/isomorphic/base/main.js
stephanwlee/mendel
/* Copyright 2015, Yahoo Inc. Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms. */ import App from './components/app'; import React from 'react'; // eslint-disable-line import '../../config.json'; if (typeof document !== 'undefined') { const ReactDOM = require('react-dom...