path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
examples/js/manipulation/delete-row-table.js
pvoznyuk/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-console: 0 */ /* eslint no-alert: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const i...
src/icons/CheckmarkRound.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class CheckmarkRound extends React.Component { render() { if(this.props.bare) { return <g> <path d="M448,71.9c-17.3-13.4-41.5-9.3-54.1,9.1L214,344.2l-99.1-107.3c-14.6-16.6-39.1-17.4-54.7-1.8 c-15.6,15.5-16.4,41.6-...
test/PageItemSpec.js
mmartche/boilerplate-shop
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ReactDOM from 'react-dom'; import PageItem from '../src/PageItem'; describe('PageItem', () => { it('Should output a "list item" as root element, and an "anchor" as a child item', () => { let instance = ReactTestUtils.render...
src/components/Children/Graph.js
rspica/Sugr
import React, { Component } from 'react'; import { Chart } from 'react-google-charts'; export default class Graph extends Component { constructor(props) { super(props); this.state = { // Sets all the stuff that shows up on the screen, s.a. style, axis titles, etc. options: { title: '', hAxis: { titl...
frontend/src/components/controls/SidebarPageViewerUI/renderers.js
webrecorder/webrecorder
import React from 'react'; import { untitledEntry } from 'config'; import { buildDate } from 'helpers/utils'; import { Collection } from 'components/icons'; export function PageIndex({ cellData, rowIndex }) { return <div className="row-index">{rowIndex + 1}</div>; } export function PageRenderer({ cellData, rowD...
src/components/about/AboutPage.js
IvoPaunov/stremio-demo-app
import React from 'react'; class AboutPage extends React.Component { render() { return ( <div> <h1>About</h1> <p>This application uses React, Redux, React Router and a variety of other helpful libraries.</p> </div> ); } } export default AboutPage;
src/screens/App/screens/Read/components/SentenceContainer.js
savitri/savitri-web
import React from 'react'; // import { bindActionCreators } from 'redux'; // import { connect } from 'react-redux'; import Reference from 'components/Reference'; // eslint-disable-line import/no-unresolved import Sentence from 'components/Sentence'; // eslint-disable-line import/no-unresolved // import * as actions fr...
App.js
helengray/XiFan
import React, { Component } from 'react'; import MainScene from './js/MainScene'; import AppNavigator from './js/component/AppNavigator'; export default class App extends Component { render(){ return( <AppNavigator id='MainScene' component={MainScene}/> ); } }
src/App.js
aastein/crypto-trader
import React from 'react'; import { Switch, Route } from 'react-router-dom'; import Navigation from './containers/Navigation'; import DashboardContainer from './containers/Dashboard'; import Profile from './containers/Profile'; import Accounts from './containers/Accounts'; import Orderbook from './containers/Orderbook...
src/mixins/paypal.js
mozilla/donate.mozilla.org
import React from 'react'; import submit from '../lib/submit'; var NOT_SUBMITTING = 0; var PAYPAL_SUBMITTING = 3; var PaypalMixin = { contextTypes: { intl: React.PropTypes.object }, paypal: function() { var props = { frequency: this.props.frequency, amount: this.props.amount, appName: ...
lib/components/__tests__/Cmp1-test.js
revolunet/cmp1
import React from 'react'; import expect from 'expect'; import { createRenderer } from 'react-addons-test-utils'; import expectJSX from 'expect-jsx'; expect.extend(expectJSX); import Cmp1 from '../Cmp1'; describe('Cmp1', () => { it('works', () => { let renderer = createRenderer(); renderer.render(<Cmp1 name...
src/components/entry/__tests__/EntryModal.spec.js
bcongdon/EachDay
import React from 'react' import { shallow } from 'enzyme' import toJson from 'enzyme-to-json' import { EntryModal } from '../EntryModal' import { Modal } from 'semantic-ui-react' jest.mock('universal-cookie') const closeEntryModal = jest.fn() const trigger = (<div />) describe('entry component', () => { beforeEac...
src/hoc/withStore.js
wmira/reactor-ui
import React, { Component } from 'react'; /** * A poor mans store */ //withStore :: ( Obj -> Obj -> Obj ) -> Obj -> (Component -> Component) export const withStore = (reducer, initialState) => Comp => { return class extends Component { constructor(props) { super(props); this.s...
frontend/modules/account/components/Alert.js
RyanNoelk/OpenEats
import React from 'react' import { injectIntl, defineMessages } from 'react-intl'; const Alert = ({ intl }) => { const messages = defineMessages({ title: { id: 'login.alert.unable_to_login', description: 'Fail to login header', defaultMessage: 'Unable to login!', }, message: { ...
src/withStyles.js
sarmadsangi/react-decorators
/** * React Decorators * Copyright (c) Konstantin Tarkus | MIT License */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import { canUseDOM } from 'react/lib/ExecutionEnvironment'; import EventEmitter from 'eventemitter3'; let EE; let viewport = {width: 1366, height: 768}; // Defau...
app/javascript/mastodon/features/ui/components/__tests__/column-test.js
dwango/mastodon
import React from 'react'; import { mount } from 'enzyme'; import Column from '../column'; import ColumnHeader from '../column_header'; describe('<Column />', () => { describe('<ColumnHeader /> click handler', () => { const originalRaf = global.requestAnimationFrame; beforeEach(() => { global.requestA...
renderer/components/Autopay/AutopayMerchantList.js
LN-Zap/zap-desktop
import React from 'react' import PropTypes from 'prop-types' import { Box } from 'rebass/styled-components' import AutopayGrid from './AutopayGrid' import AutopaySearchNoResults from './AutopaySearchNoResults' const AutopayList = ({ merchants, openAutopayCreateModal, ...rest }) => { if (merchants.length === 0) { ...
src/components/Tickets.js
bow-paris/bow-paris.github.io
import React from 'react' import Ticket from './Ticket' import { StaticQuery, graphql } from 'gatsby' export default () => ( <StaticQuery query={graphql` query { bow { events(slug: "best-of-web-2020") { id slug tickets { name ...
src/components/Result/__tests__/Result.spec.js
thangngoc89/react-code-playground
import React from 'react' import $ from 'teaspoon' import Result from '../Result' import styles from '../Result.scss' const render = props => $(<Result {...props} />).render() const shallowRender = props => $(<Result {...props} />).shallowRender() describe('(component) Nav', () => { describe('Result', () => { l...
src/PlayerNamesView.js
otsoaUnLoco/wolf-chess
// @flow import React from 'react'; type Props = { whiteName: string, blackName: string, current: 'white' | 'black', changeWhiteName: (SyntheticInputEvent) => void, changeBlackName: (SyntheticInputEvent) => void }; export default function PlayerNamesView(props: Props): React.Element<*> { return ( <div...
src/main.js
Sonarvio/sonarvio.com
/** * Main * ==== * * */ import './utilities/adapter' import React from 'react' import ReactDOM from 'react-dom' import { createStore, compose } from 'redux' import { Provider } from 'react-redux' import { ReduxRouter, reduxReactRouter } from 'redux-router' import { createHistory } from 'history' import reducer...
src/svg-icons/av/remove-from-queue.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvRemoveFromQueue = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-7v2H8v-2h8z"/> </SvgIcon> );...
stories/components/heading/index.js
NestorSegura/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import Heading from 'shared/components/heading/heading'; storiesOf('shared/components/heading', module) .add('Default', () => ( <Heading text="Hello World" /> )) .add('Without heading lines', () => ( <Heading text...
clients/packages/admin-client/src/mobilizations/widgets/components/form-finish-message/index.js
nossas/bonde-client
import React from 'react'; import { bool, oneOfType, func, node, object, string } from 'prop-types'; import { FormattedMessage, intlShape, injectIntl } from 'react-intl'; import { reduxForm } from 'redux-form'; import { FormGroup, RadioGroup, Radio, ControlLabel, HelpBlock, FormControl, } from '../../../.....
src/components/Form/RangeSlider/RangeSlider.js
jmlweb/paskman
import React from 'react'; import styled, { css } from 'styled-components'; import Slider from 'react-rangeslider'; import colors from '../../../styles/colors'; const fillStyle = css` display: block; box-shadow: inset 0 1px 3px ${colors.secondaryA2}; `; const StyledRangeSlider = styled(Slider)` margin: 10px 0 2...
tests/containers/GiveUpFeedback.spec.js
LaunchAcademy/name-game
import GiveUpFeedback, { GiveUpFeedback as PureGiveUpFeedback } from '../../src/containers/GiveUpFeedback' import { mount } from 'enzyme' import React from 'react' import { Provider } from 'react-redux' import createStore from '../../src/store/createStore' import { purgeSkippedIdentity } from '../../src/modules/Guess'...
app/containers/HomePage.js
lynks-p2p/lynks-client
// @flow import React, { Component } from 'react'; import Home from '../components/Home'; export default class HomePage extends Component { render() { return ( <Home /> ); } }
src/components/EmbedPetitionLink/index.js
iris-dni/iris-frontend
import React from 'react'; import settings from 'settings'; import Button from 'components/Button'; import ButtonIcon from 'components/ButtonIcon'; const EmbedPetitionLink = ({ modal, showModalWindow }) => ( <Button type={'button'} block onClick={() => showModalWindow(modal)} size={'compact'} brand={'ema...
src/ui/molecule/ComponentSchema/Connection.js
jkubos/tickator-ide
import React from 'react'; import {ConnectionDefinition} from '~/src/tickator/definition/ConnectionDefinition' import style from './style.less' export class Connection extends React.Component { render() { return <g> {/*<polyline points={this.props.geom.map(a=>`${a.x},${a.y}`).join(" ")} str...
js/testapp.js
gilesbradshaw/uaQL
// @flow 'use strict'; import 'babel-polyfill'; import Test from './test/Test'; import TestNodeClass from './test/TestNodeClass'; import React from 'react'; import ReactDOM from 'react-dom'; import Relay from 'react-relay'; import { RelayRouter } from 'react-router-relay'; import {browserHistory} from 'react-router...
__tests__/index.android.js
hakale/bestCarRent
import 'react-native'; import React from 'react'; import Index from '../index.android.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
client/apps/github-api-sample/components/Repository.js
armw4/redux-samples
import React from 'react' export default ({ details })=> { const { fullName, htmlUrl } = details return ( <div className="repository"> <a target="_blank" href={htmlUrl}>{fullName}</a> </div> ) }
UQFlix/src/UQFlix/app/components/Suggestions.js
matthew-lake/UQFlix
import React from 'react'; import Movie from './Movie'; import { white, grey200 } from 'material-ui/styles/colors'; export default class Suggestions extends React.Component { constructor(props) { super(props); this.state = { suggestionCount: 20, suggestions: [] }; ...
assets/js/Components/RegisterForm.js
symbios-zi/react-learning
import React, { Component } from 'react'; import map from 'lodash/map'; class RegisterForm extends Component { constructor(props) { super(props); this.state = { email: '', errors: {}, isLoading: false, invalid: false }; this.onChange...
src/svg-icons/file/file-upload.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileFileUpload = (props) => ( <SvgIcon {...props}> <path d="M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"/> </SvgIcon> ); FileFileUpload = pure(FileFileUpload); FileFileUpload.displayName = 'FileFileUpload'; FileFil...
internals/templates/containers/LanguageProvider/index.js
commanderking/alliancechemistry
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
src/components/sketched/Sketch.js
Scratch-it/react-color
'use strict' /* @flow */ import React from 'react' import ReactCSS from 'reactcss' import shallowCompare from 'react-addons-shallow-compare' import { ColorWrap, Saturation, Hue, Alpha, Checkboard } from '../common' import SketchFields from './SketchFields' import SketchPresetColors from './SketchPresetColors' export...
node_modules/react-bootstrap/es/Media.js
Crisa221/Lista-Giocatori
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/FlexContainer.js
wbreakell/changeover
import React from 'react'; import styled from 'styled-components'; import { media } from '../styles/media'; const FlexContainer = styled.div` display: flex; ${props => props.alignContentXS && `align-content: ${props.alignContentXS};`} ${props => props.alignItemsXS && `align-items: ${props.alignItemsXS};`...
__tests__/components/Label-test.js
nickjvm/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React from 'react'; import renderer from 'react-test-renderer'; import Label from '../../src/js/components/Label'; describe('Label', () => { it('has correct default options', () => { const component = renderer.create( <Label data...
src/Illuminate/Foundation/Console/Presets/react-stubs/Example.js
miclf/framework
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; export default class Example extends Component { render() { return ( <div className="container"> <div className="row"> <div className="col-md-8 col-md-offset-2"> ...
app/components/app.js
JohnKim/react-native-boilerplate
import React, { Component } from 'react'; import { AppState, StyleSheet, StatusBar, View, Linking, } from 'react-native'; import { VERSION } from 's5-env'; import { loadConfig, updateInstallation } from 's5-action'; import LoginView from './login/LoginView'; import S5Navigator from './navigator'; import ...
src/docs/components/social-share/SocialShareExamplesDoc.js
grommet/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import SocialShare from 'grommet/components/SocialShare'; import InteractiveExample from '../../../components/InteractiveExample'; SocialShare.displayName = 'SocialShare'; const PROPS_SCHEMA = { type: { o...
docs/src/app/components/pages/components/FontIcon/Page.js
xmityaz/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 iconCode from '!raw!material-ui/FontIcon/FontIcon'; import iconReadmeText...
client/src/components/post/NewPost.js
adityasharat/react-readable
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createPost } from '../../actions/PostActions'; import { guid } from '../../utils/Utils'; class NewPost extends Component { createPost = (e) => { e.preventDefault(); const post = { id: guid(), timestamp: Dat...
rojak-ui-web/src/app/candidate/Candidates.js
pyk/rojak
import React from 'react' import { connect } from 'react-redux' import { Link } from 'react-router' import SimpleList from '../kit/SimpleList' import { fetchCandidates } from '../candidate/actions' class Candidates extends React.Component { static propTypes = { candidates: React.PropTypes.object, fetchCandid...
src/components/common/radio/Radio.spec.js
TulevaEE/onboarding-client
import React from 'react'; import { shallow } from 'enzyme'; import Radio from './Radio'; describe('Radio', () => { let component; beforeEach(() => { component = shallow(<Radio name="test-radio" id="an-id" />); }); it('renders a hidden input that keeps and changes state', () => { const hiddenInput =...
frontend/src/components/dialog/dialog.js
desihub/qlf
import React from 'react'; import Button from '@material-ui/core/Button'; import Dialog from '@material-ui/core/Dialog'; import DialogActions from '@material-ui/core/DialogActions'; import DialogContent from '@material-ui/core/DialogContent'; import DialogContentText from '@material-ui/core/DialogContentText'; import D...
src/components/Board/index.js
codella/snake
import React from 'react'; import PropTypes from 'prop-types'; import Tile, { TILE_TYPES } from '../Tile'; import './index.css'; function makeMatrix(rows, cols, initialValue) { return [...Array(rows).keys()].map(() => Array(cols).fill(initialValue)); } export default function Board(props) { const tiles = makeMat...
src/components/withConnection.js
zaromev/react-native-connection-info
import React from 'react'; import { NetInfo } from 'react-native'; import { connectionShape } from '../shapes'; const withConnection = ComposedComponent => class extends React.Component { constructor() { super(); this.state = { isConnected: false, }; this.handleIsConnected = this.handleIsConnec...
src/Temperature.js
walles/weatherclock
import React from 'react' import PropTypes from 'prop-types' import './Temperature.css' import ClockCoordinates from './ClockCoordinates' const DISTANCE_FROM_CENTER = 39 class Temperature extends React.Component { render = () => { // Truncate decimals const temperature = this.props.degreesCelsius | 0 ...
src/components/Layout/Header/index.js
Apozhidaev/ergonode
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import cx from 'classnames'; import './styles.css'; import Archive from './Archive'; class Header extends Component { constructor(props) { super(props); this.state = { collapsed: tr...
src/parser/paladin/holy/modules/azeritetraits/GlimmerOfLight.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import SpellLink from 'common/SpellLink.js'; import { formatNumber } from 'common/format'; import { formatPercentage } from 'common/format'; import SPELLS from 'common/SPELLS'; import TraitStatisticBox, { STATISTIC_ORDER } fr...
node_modules/native-base/Components/Widgets/Tabs.js
mk007sg/threeSeaShells
/* @flow */ 'use strict'; import React from 'react'; import NativeBaseComponent from '../Base/NativeBaseComponent'; import computeProps from '../../Utils/computeProps'; import ScrollableTabView from './../vendor/react-native-scrollable-tab-view'; export default class TabNB extends NativeBaseComponent { propTypes...
scripts/apps/search/components/fields/slugline.js
ioanpocol/superdesk-client-core
import React from 'react'; import PropTypes from 'prop-types'; import {createMarkUp} from '../../helpers'; export function slugline(props) { if (props.item.slugline) { return React.createElement( 'span', {className: 'keyword', key: 'slugline', dangerouslySetInnerHTML...
docs/app/Examples/elements/Loader/Variations/index.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Message } from 'semantic-ui-react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const LoaderVariationsExamples = () => ( <ExampleSection title='Variations'> <Compon...
src/icons/FastRewindIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class FastRewindIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M22 36V12L5 24l17 12zm1-12l17 12V12L23 24z"/></svg>;} };
src/Stepper/StepLabel.spec.js
pomerantsev/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import StepLabel from './StepLabel'; import getMuiTheme from '../styles/getMuiTheme'; describe('<StepLabel />', () => { const muiTheme = getMuiTheme(); const shallowWithContext = (node, context = {}) => {...
components/Terminal.js
IsaacDurand/git-started
import React, { Component } from 'react'; const Term = require('term.js'); const ReactDOM = require('react-dom'); export default class Terminal extends Component { componentDidMount() { const mountTerm = ReactDOM.findDOMNode(this); this.renderTerm(mountTerm); } buildStyle(lessonVisible) { const sty...
modules/__tests__/isActive-test.js
bs1180/react-router
import expect from 'expect' import React from 'react' import { render, unmountComponentAtNode } from 'react-dom' import createHistory from 'history/lib/createMemoryHistory' import IndexRoute from '../IndexRoute' import Router from '../Router' import Route from '../Route' import qs from 'qs' describe('isActive', functi...
demo/js/index.js
rongierlach/react-web3-network-status
import 'tachyons' import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import App from './App' render(<App />, document.getElementById('root'))
src/components/common/admin/users/UserForm.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { injectIntl } from 'react-intl'; import { reduxForm } from 'redux-form'; import { Grid, Row, Col } from 'react-flexbox-grid/lib'; import withIntlForm from '../../hocs/IntlForm'; import AppButton from '../../AppButton'; import UserDetailsForm from '....
react/Logo/LogoText.js
seekinternational/seek-asia-style-guide
import React from 'react'; import PropTypes from 'prop-types'; const LogoText = ({ textClass }) => ( <g className={textClass}> <path d="M86.641,45.601c-3.697,0-7.037-0.408-10.012-3.385l3.834-3.833c1.942,1.938,4.467,2.208,6.269,2.208 c2.031,0,4.148-0.675,4.148-2.434c0-1.174-0.629-1.985-2.479-2.167l-3....
examples/add-progress-bar/index.js
americanexpress/react-albus
import React from 'react'; import { render } from 'react-dom'; import { BrowserRouter, Route } from 'react-router-dom'; import { TransitionGroup, CSSTransition } from 'react-transition-group'; import { Wizard, Steps, Step } from 'react-albus'; import { Line } from 'rc-progress'; import Navigation from './Navigation'; i...
actor-apps/app-web/src/app/components/Login.react.js
ONode/actor-platform
import _ from 'lodash'; import React from 'react'; import classNames from 'classnames'; import { Styles, RaisedButton, TextField } from 'material-ui'; import { AuthSteps } from 'constants/ActorAppConstants'; import Banner from 'components/common/Banner.react'; import LoginActionCreators from 'actions/LoginActionCre...
src/svg-icons/hardware/scanner.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareScanner = (props) => ( <SvgIcon {...props}> <path d="M19.8 10.7L4.2 5l-.7 1.9L17.6 12H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-5.5c0-.8-.5-1.6-1.2-1.8zM7 17H5v-2h2v2zm12 0H9v-2h10v2z"/> </...
src/components/Settings/Language/Language.component.js
amberleyromo/cboard
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import ISO6391 from 'iso-639-1'; import List, { ListItem, ListItemText } from 'material-ui/List'; import Paper from 'material-ui/Paper'; import CheckIcon from 'material-ui-icons/Check'; import FullScreenDialog...
src/app/component/tool-layout/tool-layout.story.js
all3dp/printing-engine-client
import React from 'react' import {storiesOf} from '@storybook/react' import {action} from '@storybook/addon-actions' import {withState} from '@dump247/storybook-state' import ToolLayout from '.' import Button from '../button' const lorem = ` Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod t...
frontend/app_v2/src/common/icons/Song.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' /** * @summary Song * @component * * @param {object} props * * @returns {node} jsx markup */ function Song({ styling }) { return ( <svg data-testid="Song" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" className={styling}> <path d="...
app/javascript/trading_app/lib/forms/SimpleInput.js
zooliet/Rekcle
import React from 'react'; import { observer } from 'mobx-react'; // import {action, observable} from 'mobx'; @observer class SimpleInput extends React.Component { constructor(props) { super(props) } render() { const { field, type, showLabel = true } = this.props return ( <div className={ fie...
src/svg-icons/action/card-giftcard.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCardGiftcard = (props) => ( <SvgIcon {...props}> <path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H...
code/frontend/src/components/ContractorInfo/EditContractor.js
CPSC319-2017w1/coast.the-terminal
import React from 'react'; import { connect } from 'react-redux'; import EditContractorComponent from './EditPage.jsx'; import { editContractor } from '../../actions/contractor-info-actions.js'; import { viewTableRows } from '../../actions/view-tables-actions.js'; import { switchView } from '../../actions/main-actions....
node_modules/react-slick/src/arrows.js
DaveSpivey/muttwhat
'use strict'; import React from 'react'; import classnames from 'classnames'; import Helpers from './mixins/helpers'; export var PrevArrow = React.createClass({ clickHandler: function (options, e) { if (e) { e.preventDefault(); } this.props.clickHandler(options, e); }, render: function () { var pre...
src/icons/Flash.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class Flash extends React.Component { render() { if(this.props.bare) { return <g> <polygon points="96,288 243,288 191.9,480 416,224 269,224 320,32 "></polygon> </g>; } return <IconBase> <polygon points="96,2...
packages/ringcentral-widgets-docs/src/app/pages/Components/DropdownNavigationView/index.js
ringcentral/ringcentral-js-widget
import React from 'react'; import { parse } from 'react-docgen'; import CodeExample from '../../../components/CodeExample'; import ComponentHeader from '../../../components/ComponentHeader'; import PropTypeDescription from '../../../components/PropTypeDescription'; import Demo from './Demo'; // eslint-disable-next-lin...
test/field-parser-spec.js
davidkpiano/react-redux-form
import { assert } from 'chai'; import React from 'react'; import TestUtils from 'react-dom/test-utils'; import { combineReducers, createStore } from 'redux'; import { Provider } from 'react-redux'; import { modelReducer, Field, formReducer } from '../src'; describe('<Field parser={...} />', () => { context('standar...
packages/ui/stories/components/contextPopup.stories.js
nukeop/nuclear
import React from 'react'; import { storiesOf } from '@storybook/react'; import { ContextPopup } from '../..'; import { PopupButton } from '../..'; storiesOf('Components/Context popup', module) .add('Basic', () => ( <div className='bg'> <ContextPopup trigger={<button>Test</button>} artist=...
ui/js/pages/event/EventFormContents.js
ericsoderberg/pbc-web
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import moment from 'moment-timezone'; import FormField from '../../components/FormField'; import DateTimeInput from '../../components/DateTimeInput'; import DateInput from '../../components/DateInput'; import SectionsFormContents from '../../...
app/javascript/mastodon/features/ui/components/focal_point_modal.js
mhffdq/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { connect } from 'react-redux'; import ImageLoader from './image_loader'; import classNames from 'classnames'; import { changeUploadCompose } from '../../../...
imports/ui/components/Orders/ViewOrderProducts/ViewOrderProducts.js
haraneesh/mydev
import React from 'react'; import PropTypes from 'prop-types'; import { Row, Col, Panel, PanelGroup, } from 'react-bootstrap'; import { formatMoney } from 'accounting-js'; import { accountSettings } from '../../../../modules/settings'; import { displayUnitOfSale } from '../../../../modules/helpers'; import Product fr...
src/Wicture.DbRESTFul.LMT/ClientApp/src/utils/http.js
dawsonliu/DbRESTFul
import React from 'react' import ReactDOM from 'react-dom' import LoadingBar from '../components/LoadingBar' import config from '../config' import axios from 'axios' function http (showProgress) { let progress = showProgress || false let httpOpt = { baseURL: config.BASEURL, timeout: 3000, withCredenti...
client/fragments/sign-in/main.js
yeoh-joer/synapse
/** * External Dependencies */ import React from 'react' import { connect } from 'react-redux' /** * Internal Dependencies */ import Button from 'client/components/button' import Card from 'client/components/card' import FormTextInput from 'client/components/forms/form-text-input' import FormPasswordInput from 'cl...
es/catalog/properties/property-toggle.js
vovance/3d-demo
import React from 'react'; import PropTypes from 'prop-types'; import FormLabel from '../../components/style/form-label'; import Button from '../../components/style/button'; var tableStyle = { width: "100%", borderSpacing: "2px 0", marginBottom: "2px" }; var firstTdStyle = { width: '6em' }; export default function Pr...
imports/ui/components/commentary/Commentary/Commentary.js
pletcher/cltk_frontend
import React from 'react'; import PropTypes from 'prop-types'; class Commentary extends React.Component { constructor(props) { super(props); this.state = { showMore: false, }; } toggleShowMore() { this.setState({ showMore: !this.state.showMore, }); } render() { const { showMore } = this.stat...
src/components/common/listView/EnhancedListView.js
guangqiang-liu/OneM
/** * Created by guangqiang on 2017/9/15. */ import React from 'react' import { StyleSheet, Text, View, Platform, TouchableHighlight, InteractionManager } from 'react-native' import Icon from 'react-native-vector-icons/FontAwesome' import {GiftedListView} from './CrazyListView' import {commonStyle} from '../../../uti...
step7-flux/node_modules/react-router/modules/IndexLink.js
jintoppy/react-training
import React from 'react' import Link from './Link' /** * An <IndexLink> is used to link to an <IndexRoute>. */ const IndexLink = React.createClass({ render() { return <Link {...this.props} onlyActiveOnIndex={true} /> } }) export default IndexLink
packages/web/src/components/screens/accounts/AccountDetail.js
hwaterke/inab
import {AccountResource, ResourceFormProvider} from '@inab/shared' import PropTypes from 'prop-types' import React from 'react' import {crudThunks} from '../../../thunks/crudThunks' import {Section} from '../../presentational/atoms/Section' import {Title} from '../../presentational/atoms/Title' import {Box} from '../.....
src/__tests__/components/ChatApp/Settings/TextToSpeechSettings.js
RMCoder198/chat.susi.ai
import React from 'react'; import TextToSpeechSettings from '../../../../components/ChatApp/Settings/TextToSpeechSettings.react'; import { shallow } from 'enzyme'; describe('<TextToSpeechSettings />', () => { it('render TextToSpeechSettings without crashing', () => { shallow(<TextToSpeechSettings />); }); });
step4.0/client/TalkList.js
colmarius/universal-react-workshop-app
import React from 'react' import Talk from './Talk' const TalkList = React.createClass({ render: function () { return ( <div className="list-group"> <Talk/> </div> ) } }) export default TalkList
docs/app/Examples/elements/Loader/Variations/LoaderInlineExample.js
jamiehill/stardust
import React from 'react' import { Loader } from 'stardust' const LoaderInlineExample = () => <Loader active inline /> export default LoaderInlineExample
components/Heading.js
feedreaderco/app
import React from 'react'; import { Text } from 'react-native'; export default ({ text }) => <Text style={{fontFamily: 'System', fontSize: 20}}>{text}</Text>;
client/js/containers/HeaderContainer.js
SqrAK/journal
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { logoutUser } from '../actions/users'; import Header from '../components/header.js'; function mapStateToProps(state) { return { authenticatedUser: state.user.status === 'authenticated' ? state.user.user : null, user: s...
src/layouts/BaseLayout/BaseLayout.js
danielriley06/react-redux-chat-example
import React from 'react' import log from 'middleware/logger' export const BaseLayout = ({ children }) => { log.debug('BaseLayout', children) return (<div className='BaseLayout'>{children}</div>) } BaseLayout.propTypes = { children : React.PropTypes.element.isRequired } export default BaseLayout
src/components/PhotoList.js
debiasej/react-native-learning
import React, { Component } from 'react'; import { View } from 'react-native'; import axios from 'axios'; import PhotoDetail from './PhotoDetail'; const NUM_PHOTOS_SHOW = 10; class PhotoList extends Component { constructor(props) { super(props); this.state = { photos: [] }; } componentWillMount() { ...
client/src/components/Donate.js
francoabaroa/happi
import React from 'react'; import { Link, withRouter } from 'react-router'; import $ from 'jquery'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import CircularProgress from 'material-ui/CircularProgress'; import LinearProgress from 'mater...
example/Customizable.js
nkbt/react-debounce-input
import React from 'react'; import {DebounceInput} from '../src'; export class Customizable extends React.Component { state = { value: '', minLength: 0, debounceTimeout: 500, infinite: false, forceNotifyByEnter: true, forceNotifyOnBlur: true }; render() { const { minLength, inf...
examples/js/cell-edit/blur-to-save-table.js
powerhome/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
src/js/components/profile/NaturalCategory/NaturalCategory.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import styles from './NaturalCategory.scss'; import RoundedIcon from "../../ui/RoundedIcon/RoundedIcon"; export default class NaturalCategory extends Component { static propTypes = { category: PropTypes.string, text :...
src/svg-icons/notification/power.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPower = (props) => ( <SvgIcon {...props}> <path d="M16.01 7L16 3h-2v4h-4V3H8v4h-.01C7 6.99 6 7.99 6 8.99v5.49L9.5 18v3h5v-3l3.5-3.51v-5.5c0-1-1-2-1.99-1.99z"/> </SvgIcon> ); NotificationPower = pu...
packages/mineral-ui-icons/src/IconFeaturedVideo.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconFeaturedVideo(props: IconProps) { const iconProps = { rtl: true, ...props }; return ( <Icon {...iconP...