path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/parser/rogue/shared/resources/ComboPointDetails.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import Panel from 'interface/others/Panel'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import Icon from 'common/Icon'; import { formatPercentage } from 'common/format'; import ResourceBreakdown from 'parser/shar...
src/components/Footer/index.js
15chrjef/ico-wizard
import React from 'react' import '../../assets/stylesheets/application.css'; import { Link } from 'react-router-dom' export const Footer = () => ( <footer className="footer"> <div className="container"> <p className="rights">2017 Oracles Network. All rights reserved.</p> <Link className="logo" to='/'></Lin...
examples/cdn/app.js
aruberto/react-foundation-components
/* eslint-disable import/no-unresolved */ import React from 'react'; import ReactDOM from 'react-dom'; import { Button } from '../../lib/global/button'; import { ButtonGroup } from '../../lib/global/button-group'; const App = () => ( <div> <h1>Welcome to CDN CSS example!</h1> <p> We've imported Found...
test/TimePicker.spec.js
react-materialize/react-materialize
import React from 'react'; import { render } from '@testing-library/react'; import TimePicker from '../src/TimePicker'; import mocker from './helper/new-mocker'; describe('<TimePicker />', () => { test('renders', () => { const { container } = render(<TimePicker />); expect(container).toMatchSnapshot(); });...
app/index.js
carly-lee/electron-sleep-timer
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, hashHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import routes from './routes'; import configureStore from './store/configureStore'; import './app.global.c...
src/routes/News/components/Stub.js
weedz/reactcms
import React from 'react'; import { Link } from 'react-router-dom'; export default class Stub extends React.Component { render() { return( <div className="Stub"> <h2><Link to={'/news/article/' +this.props.article.id}>{this.props.article.title}</Link></h2> <small>...
components/head.js
runesam/react-redux-next
import React from 'react'; import Head from 'next/head'; export default () => ( <Head> <title>RRN Application Samples</title> <meta name="viewport" content="initial-scale=1.0, width=device-width" /> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.cs...
app/components/team/Pipelines/index.js
fotinakis/buildkite-frontend
import React from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay/classic'; import { second } from 'metrick/duration'; import Panel from '../../shared/Panel'; import SearchField from '../../shared/SearchField'; import ShowMoreFooter from '../../shared/ShowMoreFooter'; import FlashesStore f...
example/src/List/List.js
lokiuz/redraft
import React from 'react'; import PropTypes from 'prop-types'; import { CSSTransitionGroup } from 'react-transition-group'; import './List.css'; const List = ({ ordered, children }) => ( <CSSTransitionGroup component={ordered ? 'ol' : 'ul'} className="List" transitionName="animatedList" transitionEnt...
src/pages/Comparison/Comparison.js
moje-skoly/app-reloaded
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import { Container, Row, Col, Alert } from 'reactstrap'; import { loadComparison, remove as removeFromComparison } from '../../redux/modules/comparison'; im...
src/popup/components/Pack/Progress.js
fluany/fluany
/** * @fileOverview A componet to show the progress of the user * @name Progress.js * @license GNU General Public License v3.0 */ import React from 'react' import PropTypes from 'prop-types' import propEq from 'ramda/src/propEq' import find from 'ramda/src/find' import { connect } from 'react-redux' import { Line ...
server/sonar-web/src/main/js/apps/projects/filters/DuplicationsFilter.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...
src/components/TripList.js
muiradams/plantogo
import React, { Component } from 'react'; import { connect } from 'react-redux'; import RaisedButton from 'material-ui/RaisedButton'; import TripCard from './TripCard'; import NewTripButton from './NewTripButton'; import * as actions from '../actions/'; class TripList extends Component { constructor(props) { s...
examples/crna-kitchen-sink/storybook/stories/Button/index.ios.js
rhalff/storybook
import React from 'react'; import PropTypes from 'prop-types'; import { TouchableHighlight } from 'react-native'; export default function Button(props) { return <TouchableHighlight onPress={props.onPress}>{props.children}</TouchableHighlight>; } Button.defaultProps = { children: null, onPress: () => {}, }; But...
src/app.js
antonyr/Mancy
import React from 'react'; import ReplSuggestions from './components/ReplSuggestions'; import ReplPreferences from './components/ReplPreferences'; import Repl from './components/Repl'; import ReplConstants from './constants/ReplConstants'; import ReplFonts from './common/ReplFonts'; import _ from 'lodash'; import remot...
src/components/GuideList/GuideList.js
devgeeks/4ZZZfm-app
import React from 'react'; import classNames from 'classnames'; import './guidelist.css'; const GuideList = (props) => { const cx = classNames({ 'guide-list': true, 'divider-color': true, }); return ( <ul className={ cx }> { props.children } </ul> ); }; GuideList.displayName = 'GuideLi...
actor-apps/app-web/src/app/components/common/AvatarItem.react.js
chieryw/actor-platform
import React from 'react'; import classNames from 'classnames'; class AvatarItem extends React.Component { static propTypes = { image: React.PropTypes.string, placeholder: React.PropTypes.string.isRequired, size: React.PropTypes.string, title: React.PropTypes.string.isRequired }; constructor(pro...
client/views/room/contextualBar/PruneMessages/PruneMessages.js
VoiSmart/Rocket.Chat
import { Field, ButtonGroup, Button, CheckBox, Callout } from '@rocket.chat/fuselage'; import { useUniqueId } from '@rocket.chat/fuselage-hooks'; import React from 'react'; import UserAutoCompleteMultiple from '../../../../../ee/client/audit/UserAutoCompleteMultiple'; import VerticalBar from '../../../../components/Ve...
app/javascript/mastodon/components/loading_indicator.js
esetomo/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...
components/org.wso2.carbon.business.rules.web/src/constants/BusinessRulesMessages.js
Nethmi-Pathirana/carbon-analytics
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache....
src/js/components/icons/base/FormAttachment.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
client/src/app/containers/header/NotificationsMenu.js
mtiger2k/graphql-tutorial
import React from 'react'; import NotificationsMenu from '../../../lib/header/NotificationsMenu'; const notifications = [ { key: 1, id: 1, icon: 'fa fa-users', iconColor: 'aqua', text: '5 new members joined today', }, { key: 2, id: 2, icon: 'fa fa-warning', iconColor: 'yellow...
examples/react-es6/CheckboxWithLabel.js
tomv564/jest
import React from 'react'; class CheckboxWithLabel extends React.Component { constructor(props) { super(props); this.state = {isChecked: false}; // since auto-binding is disabled for React's class model // we can prebind methods here // http://facebook.github.io/react/blog/2015/01/27/react-v0.1...
src/js/components/ContentBlocks/BlockImageParagraph/BlockImageParagraphWireframe.js
grommet/grommet-cms-boilerplate
import React from 'react'; import Box from 'grommet/components/Box'; export default function BlockImageParagraphWireframe() { return ( <Box pad={{ between: 'small' }} direction="row"> <Box full="horizontal" pad="large" colorIndex="light-2" /> <Box full="horizontal" pad="small" colorIndex="accent-3" /...
src/parser/deathknight/blood/modules/features/DeathStrikeTiming.js
FaideWW/WoWAnalyzer
import React from 'react'; import SelfHealTimingGraph from 'parser/shared/modules/features/SelfHealTimingGraph'; import SPELLS from 'common/SPELLS'; class DeathStrikeTiming extends SelfHealTimingGraph { constructor(...args) { super(...args); this.selfHealSpell = SPELLS.DEATH_STRIKE_HEAL; this.tabTitle ...
src/parser/shared/modules/items/bfa/raids/crucibleofstorms/IdolOfIndiscriminateConsumption.js
sMteX/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS/index'; import SPELLS from 'common/SPELLS/index'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import Abilities from 'parser/core/modules/Abilities'; import ItemStatistic from 'interface/statistics...
dva/dva-demo/src/components/Example.js
gubaojian/trylearn
import React from 'react'; const Example = () => { return ( <div> Example </div> ); }; Example.propTypes = { }; export default Example;
app/javascript/mastodon/features/ui/components/modal_root.js
summoners-riftodon/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Base from '../../../components/modal_root'; import BundleContainer from '../containers/bundle_container'; import BundleModalError from './bundle_modal_error'; import ModalLoading from './modal_loading'; import ActionsModal from './actions_modal'; imp...
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js
dkushner/ArborJs-Playground
import React from 'react' import { reduxForm } from 'redux-form' export const fields = [] const validate = (values) => { const errors = {} return errors } type Props = { handleSubmit: Function, fields: Object, } export class <%= pascalEntityName %> extends React.Component { props: Props; defaultProps = ...
app/components/SiteHeader.js
smashingboxes/tapp-web_client
import React, { Component } from 'react'; class SiteHeader extends Component { render() { return ( <div className="site-header__container"> <div className="site-header"> <div> Tapp Logo </div> <div> Tapp informations </div> </d...
src/Spinner.js
reactstrap/reactstrap
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { mapToCssModules, tagPropType } from './utils'; const propTypes = { tag: tagPropType, type: PropTypes.string, size: PropTypes.string, color: PropTypes.string, className: PropTypes.string, cssModule: ...
test/GridSpec.js
egauci/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ReactDOM from 'react-dom'; import Grid from '../src/Grid'; describe('Grid', () => { it('uses "div" by default', () => { let instance = ReactTestUtils.renderIntoDocument( <Grid /> ); assert.equal(ReactDOM.find...
react/SearchIcon/SearchIcon.sketch.js
seek-oss/seek-style-guide
import React from 'react'; import SearchIcon from './SearchIcon'; import generateSketchIconSizes from '../private/generateSketchIconSizes'; export const symbols = { ...generateSketchIconSizes('Search', <SearchIcon />) };
projects/imbu/gui/browser/app.js
neuroidss/nupic.research
/* ----------------------------------------------------------------------------- * Copyright © 2015, Numenta, Inc. Unless you have purchased from * Numenta, Inc. a separate commercial license for this software code, the * following terms and conditions apply: * * This program is free software: you can redistribute...
src/components/Products.js
ohager/nanoflux-react-demo
import React from 'react'; import ProductMatrix from './ProductMatrix'; class Products extends React.Component { componentWillMount() { this.props.actions.loadProducts(); } // must be arrow function to access 'this', or needs bind(this) // see also: https://medium.com/@rjun07a/binding-callbacks-in-react-comp...
games/jab/game3/src/scripts/modules/Numbers.js
jabrena/ReactLab
import React from 'react' let EgyptianNumber = require('../components/egyptianNumber'); let ValidateNumber = require('../components/validateNumber'); function getRandomInt(min, max) { return Math.floor(Math.random() * (max - min + 1) + min); } const min = 1; const max = 199999; export default React.createClass({ ...
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js
snow798/reactText
import React from 'react' import { reduxForm } from 'redux-form' export const fields = [] const validate = (values) => { const errors = {} return errors } type Props = { handleSubmit: Function, fields: Object, } export class <%= pascalEntityName %> extends React.Component { props: Props; defaultProps = ...
src/components/capture/capture-modal/CaptureModal.js
sebpearce/cycad-react
import React from 'react'; import { Motion, spring } from 'react-motion'; import { Howl } from 'howler'; import styles from './CaptureModal.scss'; import DatePicker from './DatePicker'; import AmountInput from './AmountInput'; import CategoryInput from './CategoryInput'; import CategorySelect from './CategorySelect'; i...
src/components/topic/About.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { FormattedMessage, injectIntl } from 'react-intl'; import { Grid, Row, Col } from 'react-flexbox-grid/lib'; import AppButton from '../common/AppButton'; import TopicsMarketingFeatureList from './homepage/TopicsMarketingFeatureList'; import messages ...
src/containers/test/AppTest.js
opiskelija-dashboard/dashboard
import test from 'ava'; import React from 'react'; import {shallow, mount} from 'enzyme'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import configureStore from 'redux-mock-store' import App from '../App' import { connectBackend, setCourseId } from "../../actions/index"; import { fetchDail...
src/components/FormAPP/FormApp.js
GuoYongfeng/react-fundamental
'use strict'; import React, { Component } from 'react'; import Checkboxes from './Checkboxes'; import RadioButtons from './RadioButtons'; class FormApp extends Component { state = { inputValue: '请输入...', selectValue: 'A', radioValue:'B', checkValues:[], textareaValue:'请输入...' } h...
app/javascript/mastodon/containers/account_container.js
abcang/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { makeGetAccount } from '../selectors'; import Account from '../components/account'; import { followAccount, unfollowAccount, blockAccount, unblockAccount, muteAc...
src/components/Menu/index.js
akilbekov/blog
import React from 'react'; import { Link } from 'gatsby'; import './style.scss'; class Menu extends React.Component { render() { const menu = this.props.data; const menuBlock = ( <ul className="menu__list"> {menu.map((item) => ( <li className="menu__list-item" key={item.path}> ...
app/common/components/Img/index.js
Kaniwani/KW-Frontend
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; const StyledImg = styled.img` display: block; max-width: 100%; height: auto; `; Img.propTypes = { src: PropTypes.oneOfType([ PropTypes.string, PropTypes.object, ]).isRequired, alt: PropTypes.stri...
fluent-react/examples/hello-world/src/App.js
zbraniecki/fluent.js
import React from 'react'; import { Localized } from 'fluent-react/compat'; export default function App() { return ( <div> <Localized id="title"> <h1>Hello, world!</h1> </Localized> <Localized id='today-is' $date={new Date()}> <p> {'Today is { DATETIME($date, month: "l...
frontend/app/js/containers/project/wizard/index.js
serverboards/serverboards
import React from 'react' import {Panes, Tip, Error} from 'app/components' import {make_introduction} from 'app/components/project/wizard/step01_introduction' import {make_projectname} from 'app/components/project/wizard/step02_projectname' import {make_widgets} from 'app/containers/project/wizard/step03_widgets' impor...
client/page/home/crash-handler.js
johngodley/redirection
/** * External dependencies */ import React from 'react'; import { translate as __ } from 'i18n-calypso'; /** * Internal dependencies */ import { ExternalLink, Error } from 'wp-plugin-components'; import { getErrorLinks, getErrorDetails } from 'lib/error-links'; import DebugReport from './debug'; function CrashH...
src/components/tcomb/TextInput.js
yursky/recommend
/** * Text Input template for tcomb * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React from 'react'; import { View } from 'react-native'; // Components import { FormInput, FormLabel, FormValidationMessage } from '@ui/'; /* Component ================================...
index.js
iostalk/redux-todo
import React, { Component } from 'react'; import AddTodo from './components/AddTodo'; import TodoList from './components/TodoList'; import Filter from './components/Filter'; import { connect,Provider } from 'react-redux'; import { createStore } from 'redux'; import { addTodo, completeTodo, setVisibilityFilter, Visibili...
src/index.js
liaofeijun/feijun
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
src/views/SettingsView.js
andrewSRahn/pickban
import React from 'react' import LanguageComponent from '../components/LanguageComponent.js' import RegionComponent from '../components/RegionComponent.js' export default function SettingsView(props){ return( <div style={{display:'none'}} id='settings'> <RegionComponent {...props}/> <LanguageComponent...
src/svg-icons/device/signal-cellular-0-bar.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellular0Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/> </SvgIcon> ); DeviceSignalCellular0Bar = pure(DeviceSignalCellular0Bar); DeviceSignalCellular0Bar.displayN...
app/components/Signin.js
mkamranhamid/react-Firebase-Playlist
import Radium from 'radium'; import React, { Component } from 'react'; import color from 'color'; import { Router, Route, Link, browserHistory } from 'react-router'; import Firebase from 'firebase'; import { fbDatabase, fbAuth} from '../util/fbService.js'; export class Signin extends Component { constructor(prop...
app/main.js
Pillar-Zhang/react-webpack
import React from 'react'; import ReactDOM from 'react-dom'; import Bootstrap from 'bootstrap' //引入material-ui和React的配置文件 import $ from 'jquery'; import bootstrap from 'bootstrap' //css import 'bootstrap/dist/css/bootstrap.min.css'; import 'materialize/css/materialize.min.css'; import 'materialize-tags/dist/css/materia...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/UnknownExtInclusion.js
powerreviews/create-react-app
/** * 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. */ import Rea...
renderer/components/cropper/overlay.js
wulkano/kap
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { connect, CursorContainer, CropperContainer, ActionBarContainer } from '../../containers'; import {getResizingCursor} from './handles'; class Overlay extends React.Component { static defaultProps = {...
src/native/nativeBaseComponents/sidebar.js
naveedaheer/react-native-doctor-app
import React, { Component } from 'react'; import { Container, Text } from 'native-base'; export default class SideBar extends Component { render() { return ( <Container> <Text> Hello World </Text> </Container> ); } }
resources/assets/js/components/signup/PrimaryContactComponent.js
jrm2k6/i-heart-reading
import React, { Component } from 'react'; import { browserHistory } from 'react-router'; import { connect } from 'react-redux'; import PrimaryContactForm from './forms/PrimaryContactForm'; import { createContact, updateContact, ERROR_CONTACT_CREATED, ERROR_CONTACT_UPDATED } from '../../actions/signup/signupContactAct...
src/Table.js
westonplatter/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const Table = React.createClass({ propTypes: { striped: React.PropTypes.bool, bordered: React.PropTypes.bool, condensed: React.PropTypes.bool, hover: React.PropTypes.bool, responsive: React.PropTypes.bool }, getDefaultProps() { ...
src/containers/Forms.js
vonubisch/Cordova-PhoneGap-Babel-React-Hotloader-Webpack-OnsenUI-FontAwesome
import React from 'react'; // import ons from 'onsenui'; import { Page, List, ListHeader, ListItem, Switch, Input, Radio, Checkbox, } from 'react-onsenui'; class Forms extends React.Component { constructor(props) { super(props); this.state = { switchEn...
fixtures/attribute-behavior/src/App.js
kaushik94/react
import React from 'react'; import {createElement} from 'glamor/react'; // eslint-disable-line /* @jsx createElement */ import {MultiGrid, AutoSizer} from 'react-virtualized'; import 'react-virtualized/styles.css'; import FileSaver from 'file-saver'; import { inject as injectErrorOverlay, uninject as uninjectError...
server/sonar-web/src/main/js/app/components/nav/component/ComponentNavMeta.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...
src/routes/authority/account/Modal.js
muidea/magicSite
import React from 'react' import PropTypes from 'prop-types' import { Form, Input, Modal } from 'antd' const FormItem = Form.Item const formItemLayout = { labelCol: { span: 6 }, wrapperCol: { span: 14 }, } const modal = ({ item, onOk, form: { getFieldDecorator, validateFields, getFieldValue, ...
src/components/PasswordInput/PasswordInput.spec.js
rajeshpillai/zs-react-pattern-lib
import React from 'react'; import renderer from 'react-test-renderer'; import PasswordInput from './PasswordInput'; import {shallow} from 'enzyme'; test('toggles input type when show/hide password clicked', () => { const wrapper = shallow(<PasswordInput htmlId="test" name="test" value="" onChange={()...
src/svg-icons/notification/wc.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationWc = (props) => ( <SvgIcon {...props}> <path d="M5.5 22v-7.5H4V9c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5.5H9.5V22h-4zM18 22v-6h3l-2.54-7.63C18.18 7.55 17.42 7 16.56 7h-.12c-.86 0-1.63.55-1.9 1.37L12 16h3v6...
client/components/DetailUser.js
EstebanFuentealba/prueba2
import React from 'react'; import Dropzone from 'react-dropzone'; import { Row, Col, Panel, Table, Thumbnail, Modal, Button } from 'react-bootstrap'; import moment from 'moment'; import appActions from './../actions'; import userStore from './../stores/userStore'; import reactMixin from 'react-mixin'; import Reflux fro...
src/notes/Note.js
nikunjagarwal1/react-make-notes
import React, { Component } from 'react'; import $ from 'jquery'; import ReactDOM from 'react-dom'; class Note extends Component{ constructor(props){ super(props); this.state={editMode:false,content:this.props.note.content}; this.handleTextChange = this.handleTextChange.bind(this); } handleDelete(){ ...
test/DropdownButtonSpec.js
azmenak/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import DropdownButton from '../src/DropdownButton'; import MenuItem from '../src/MenuItem'; import DropdownMenu from '../src/DropdownMenu'; import Button from '../src/Button'; describe('DropdownButton', function () { let instance; a...
src/svg-icons/av/mic.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvMic = (props) => ( <SvgIcon {...props}> <path d="M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-...
js/jqwidgets/demos/react/app/chart/columnrange/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxChart from '../../../jqwidgets-react/react_jqxchart.js'; class App extends React.Component { render() { let data = [ { 'month': 'Jan', 'min': -1.9, 'max': 3.7, 'avg': 0.2 }, { 'month': 'Feb', 'min': -0.9, 'max...
src/example/radial-chart/donut-chart.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...
__tests__/app.js
chrispicato/ticket-sherpa
import React from 'react'; import { shallow } from 'enzyme'; import App from '../client/components/App.jsx'; function setup() { const props = { }; const enzymeWrapper = shallow(<App {...props} />) return { props, enzymeWrapper } } describe('components', () => { describe('App', () => { it('sh...
react-ui/src/MatchesPage.js
zwachtel11/q_pong
import React, { Component } from 'react'; import { ListGroup, ListGroupItem, Jumbotron, Table, Panel } from 'react-bootstrap'; import { BrowserRouter as Router, Route, Link } from 'react-router-dom'; const moment = require('moment'); import './index.css'; export default class MatchesPage extends Component { ...
docs/app/Examples/collections/Table/Variations/TableExampleCollapsing.js
vageeshb/Semantic-UI-React
import React from 'react' import { Table } from 'semantic-ui-react' const TableExampleCollapsing = () => { return ( <Table collapsing> <Table.Header> <Table.Row> <Table.HeaderCell>Name</Table.HeaderCell> <Table.HeaderCell>Status</Table.HeaderCell> <Table.HeaderCell>Not...
src/component/manager/userSignin.js
tech-dojo/React-Task-Manager
import React from 'react'; import FlatButton from 'material-ui/FlatButton'; import TextField from 'material-ui/TextField'; import { browserHistory } from 'react-router'; import axios from 'axios'; import Paper from 'material-ui/Paper'; import {Link} from 'react-router'; export default class UserSignIn extends React.Co...
src/parser/mage/arcane/modules/features/RuleOfThrees.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import Analyzer from 'parser/core/Analyzer'; const debug = false; class RuleOfThrees extends Ana...
src/views/WidgetList/widgets/Domains/DomainsPage.js
GovReady/GovReady-Agent-Client
import React, { Component } from 'react'; import { PropTypes as PT } from 'prop-types'; import Accordion from 'react-bootstrap/lib/Accordion'; import Panel from 'react-bootstrap/lib/Panel'; import { Link } from 'react-router'; import BackButton from 'components/BackButton'; class DomainsPage extends Component { ren...
src/js/components/icons/base/Selection.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...
src/components/SectionList.js
Root-App/react-native-mock-render
import React from 'react'; import PropTypes from 'prop-types'; import createReactClass from 'create-react-class'; import VirtualizedSectionList from './VirtualizedSectionList'; import ScrollView from './ScrollView'; import View from './View'; import { SectionBase as _SectionBase, } from './VirtualizedSectionList'; ...
examples/auth-with-shared-root/components/App.js
rdjpalmer/react-router
import React from 'react' import { Link } from 'react-router' import auth from '../utils/auth' const App = React.createClass({ getInitialState() { return { loggedIn: auth.loggedIn() } }, updateAuth(loggedIn) { this.setState({ loggedIn: !!loggedIn }) }, componentWillMount() { ...
samples/use-react/src/js/components/MainAppPage.js
umema4/electron-babel6
import React from 'react'; class MainAppPage extends React.Component { static get propTypes() { return { children: React.PropTypes.node, }; } static get defaultProps() { return { }; } constructor(props) { super(props); this.state = { }; } render() { return ( ...
pages/about.js
aabril/noodle
import React from 'react' import LayoutMain from '../layouts/main' import Link from 'next/link' export default () => ( <LayoutMain> <div > <h3>About</h3> <Link href="/"> <a>back to home</a> </Link> </div> </LayoutMain> )
src/svg-icons/image/view-comfy.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageViewComfy = (props) => ( <SvgIcon {...props}> <path d="M3 9h4V5H3v4zm0 5h4v-4H3v4zm5 0h4v-4H8v4zm5 0h4v-4h-4v4zM8 9h4V5H8v4zm5-4v4h4V5h-4zm5 9h4v-4h-4v4zM3 19h4v-4H3v4zm5 0h4v-4H8v4zm5 0h4v-4h-4v4zm5 0h4v-...
src/components/Calendar/DayNames.js
YanshuoH/youkonger-frontend
import React from 'react'; import './style.less'; class DayNames extends React.PureComponent { render() { return ( <div className="week names"> <span className="day name">日</span> <span className="day name">一</span> <span className="day name">二</span> <span className="day na...
src/components/FormNote/FormNote.react.js
6congyao/CGB-Dashboard
/* * Copyright (c) 2016-present, Parse, LLC * All rights reserved. * * This source code is licensed under the license found in the LICENSE file in * the root directory of this source tree. */ import { Directions } from 'lib/Constants'; import PropTypes from 'lib/PropTypes'; import React from 'react'; import Slide...
app/javascript/mastodon/components/relative_timestamp.js
rekif/mastodon
import React from 'react'; import { injectIntl, defineMessages } from 'react-intl'; import PropTypes from 'prop-types'; const messages = defineMessages({ just_now: { id: 'relative_time.just_now', defaultMessage: 'now' }, seconds: { id: 'relative_time.seconds', defaultMessage: '{number}s' }, minutes: { id: 'relat...
src/challenges/react/React_16.js
bonham000/fcc-react-tests-module
/* eslint-disable */ import React from 'react' import assert from 'assert' import { transform } from 'babel-standalone' import Enzyme from '../Enzyme'; const shallow = Enzyme.shallow; const mount = Enzyme.mount; const render = Enzyme.render; export const QA = true; // ---------------------------- define challenge t...
docs/components/Docs/Container/index.js
enjoylife/storybook
import PropTypes from 'prop-types'; import React from 'react'; import Nav from '../Nav'; import NavDropdown from '../Nav/dropdown'; import Content from '../Content'; import './style.css'; const getEditUrl = (selectedSectionId, selectedItemId) => { const gitHubRepoUrl = 'https://github.com/storybooks/storybook'; co...
src/give/Checkout/PersonalDetails.js
NewSpring/Apollos
import React from 'react'; import BackgroundView from '@ui/BackgroundView'; import PaddedView from '@ui/PaddedView'; import { PersonalDetailsForm } from '@ui/forms'; import { Title } from './styles'; const PersonalDetails = () => ( <BackgroundView> <PaddedView> <Title>Personal Details</Title> </Padded...
src/common/Dispatcher.js
coolshare/ReactReduxPattern
/* Coolshare React PubSub - A package/service to provide publish/subscribe pattern for communication in React Copyright (C) 2017 Mark Qian <markqian@hotmail.com> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to de...
src/test/helpers/helpers.js
Viestinta/viestinta
import React from 'react' import { expect, assert } from 'chai' import { sinon, spy } from 'sinon' import { should } from 'should' import { mount, render, shallow } from 'enzyme' import { WebSocket, Server, SocketIO } from 'mock-socket' import io from 'socket.io-client' require('babel-core/register')() /** Creating ...
src/components/exercises/HearWord.js
cognostics/serlo-abc
import React, { Component } from 'react'; import { View } from 'react-native'; import speakerImage from '../../assets/images/speaker.png'; import { PRIMARY } from '../../styles/colors'; import { RoundButton, RoundTextButton } from '../Components'; import { loadSound, play } from '../helpers/audio'; class HearWord ex...
packages/react/src/components/FileUploader/FileUploader.js
carbon-design-system/carbon-components
/** * 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 classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import Filename from './Filename'; import...
app/addons/replication/components/replicate-activity.js
michellephung/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...
packages/my-joy-instances/src/components/create-instance/__tests__/images.spec.js
geek/joyent-portal
import React from 'react'; import renderer from 'react-test-renderer'; import 'jest-styled-components'; import Images from '../image'; import Theme from '@mocks/theme'; it('renders <Images /> without throwing', () => { expect( renderer .create( <Theme> <Images /> </Theme> )...
test/PageHeaderSpec.js
roderickwang/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import PageHeader from '../src/PageHeader'; describe('PageHeader', function () { it('Should output a div with content', function () { let instance = ReactTestUtils.renderIntoDocument( <PageHeader> <strong>Content</str...
src/index.js
mm4700/intern-demo
/*eslint-disable import/default*/ import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import Root from './containers/Root'; import configureStore from './store/configureStore'; const target = document.getElementById('root'); const store = configureStore(window.__INITIAL...
admin/client/App/shared/Popout/PopoutBody.js
snowkeeper/keystone
/** * Render the body of a popout */ import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; var PopoutBody = React.createClass({ displayName: 'PopoutBody', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, scrollable: React...
src/components/PlaylistManager/SearchResults/NoSearchResults.js
u-wave/web
import React from 'react'; import { useTranslator } from '@u-wave/react-translate'; import Typography from '@mui/material/Typography'; import NoResultsIcon from '@mui/icons-material/Search'; function NoResults() { const { t } = useTranslator(); return ( <div className="SearchResults-none"> <NoResultsIcon...
src/components/BannerLanding.js
jbasdf/justinball
import React from 'react' import PropTypes from 'prop-types' const BannerLanding = props => { const style = {} if (props.post.frontmatter.image && props.post.frontmatter.image.childImageSharp && props.post.frontmatter.image.childImageSharp.sizes) { style.backgroundImage = `url(${props.post.frontmatter....