path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/components/VmDetails/cards/UtilizationCard/UtilizationCharts/DonutChart.js
oVirt/ovirt-web-ui
import React from 'react' import PropTypes from 'prop-types' import { ChartDonut, ChartLabel } from '@patternfly/react-charts' import style from '../style.css' const DonutChart = ({ data, title, subTitle, id }) => { return ( <div id={id} className={style['donut-container']}> <ChartDonut width={300...
src/images/SsSearchAvancedLiturgicalInitial.js
OCMC-Translation-Projects/ioc-liturgical-react
import React from 'react' import screenShot from './graphics/ScreenShotLiturgicalOptions.jpg' export default React.createClass({ render() { return <img role="presentation" src={screenShot} height="100%" width="100%"/> } })
src/components/GovernmentMember.js
wearespindle/quickly.press
import React, { Component } from 'react'; import { observer } from 'mobx-react'; class GovernmentMember extends Component { constructor(props) { super(props); const { member } = props this.state = { edit: false, name: member.get('name'), phone_number: member.get('phone_number') } ...
packages/my-package/lib/components/movies/MoviesItem.js
bshenk/projectIterate
import React from 'react' import { registerComponent, ModalTrigger } from 'meteor/vulcan:core' const MoviesItem = ({ movie, currentUser }) => <div style={{ paddingBottom: '15px', marginBottom: '15px', borderBottom: '1px solid #ccc' }}> <h4>{movie.name} ({movie.year})</h4> <p>{movie.review} – {movie.user &&...
src/DropdownLayout/DropdownLayout.driver.js
nirhart/wix-style-react
import React from 'react'; import ReactTestUtils from 'react-addons-test-utils'; import ReactDOM from 'react-dom'; import find from 'lodash.find'; const dropdownLayoutDriverFactory = ({element, wrapper, component}) => { const isClassExists = (element, className) => !!(element.className.match(new RegExp('\\b' + clas...
src/components/trail_steward.js
JohnDHamm/trail-tracker-react
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Avatar from 'material-ui/Avatar'; class TrailSteward extends Component { render () { const { stewardName, style, stewardImgUrl, values } = this.props; const styles = { root: { padding: '5px 10px 10px 10px', backgro...
examples/website/src/components/buttons/NewButton.js
w-y/ecma262-jison
import PropTypes from 'prop-types'; import React from 'react'; export default function SaveButton({saving, forking, onNew}) { return ( <button type="button" disabled={saving || forking} onClick={onNew}> <i className="fa fa-file-o fa-fw" />&nbsp;New </button> ); } SaveButton.propTyp...
app/react-icons/fa/arrows.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaArrows extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m40 20q0 0.6-0.4 1l-5.7 5.7q-0.5 0.4-1 0.4t-1-0.4-0.5-1v-2.8h-8.5v8.5h2.8q0.6...
webapp/src/Congratulation.js
mathieu-pousse/go-dart
import React from 'react'; const Congratulation = ({game, player}) => { if (game.Ongoing == 4) { return ( <div className="card horizontal"> <div className="card-stacked"> <div className="card-content"> Congratulations {player.Name} ...
examples/src/components/Contributors.js
paulmillr/react-select
import React from 'react'; import Select from 'react-select'; const CONTRIBUTORS = require('../data/contributors'); const MAX_CONTRIBUTORS = 6; const ASYNC_DELAY = 500; const Contributors = React.createClass({ displayName: 'Contributors', propTypes: { label: React.PropTypes.string, }, getInitialState () { ret...
Realization/frontend/czechidm-core/src/components/advanced/ScriptArea/ScriptArea.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; // import { withStyles } from '@material-ui/core/styles'; // import * as Basic from '../../basic'; import { ScriptArea } from '../../basic/ScriptArea/ScriptArea'; import ScriptOptionDecorator from './ScriptOptionDecorator'; import ScriptValueDecorator from ...
app/javascript/mastodon/components/intersection_observer_article.js
tootcafe/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import scheduleIdleTask from '../features/ui/util/schedule_idle_task'; import getRectFromEntry from '../features/ui/util/get_rect_from_entry'; // Diff these props in the "unrendered" state const updateOnPropsForUnrendered = ['id', 'index', 'listLength', 'c...
stories/checkBoxGroup.js
azl397985856/ltcrm-components
import React from 'react'; import { render } from 'react-dom' import {Table, Icon, Checkbox, Input, Row, Col, Form, Button, message, InputNumber } from 'antd'; import CheckboxGroup from '../components/CheckboxGroup/index' import { storiesOf, action } from '@kadira/storybook'; import R from 'ramda'; import mixin from '....
fields/types/Field.js
efernandesng/keystone
import classnames from 'classnames'; import evalDependsOn from '../utils/evalDependsOn.js'; import React from 'react'; import ReactDOM from 'react-dom'; import { Button, FormField, FormInput, FormNote } from 'elemental'; import blacklist from 'blacklist'; function isObject(arg) { return Object.prototype.toString.call...
example/WithMousePosition.js
wuct/react-dom-utils
import React from 'react' import throttle from 'raf-throttle' import withMousePosition from '../src/withMousePosition' const style = { width: 400, height: 400, backgroundColor: '#ECBDBB', } const component = ({ mousePosition }) => ( <div style={style}> {JSON.stringify(mousePosition)} </div> ) export de...
test/UserView.spec.js
react-materialize/react-materialize
import React from 'react'; // import { shallow } from 'enzyme'; import UserView from '../src/UserView'; describe.skip('<UserView />', () => { let wrapper; test('renders', () => { wrapper = shallow( <UserView> <p>hello</p> </UserView> ); expect(wrapper).toMatchSnapshot(); }); });...
src/components/FooterIcon.js
blwoosky/DigCSS-Theme-v4-Redesign
import React, { Component } from 'react'; export default class FooterIcon extends Component { render() { return ( <svg style={{display:'none'}} version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink"> <defs> ...
public/components/settings/api/api-is-down.js
wazuh/wazuh-kibana-app
/* * Wazuh app - React component for the adding an API entry form. * * Copyright (C) 2015-2022 Wazuh, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the Licens...
src/route/Home.js
rageboom/React_Study
import React, { Component } from 'react'; class Home extends Component { render() { return( <h1>HOME</h1> ); } } export default Home;
src/svg-icons/content/inbox.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentInbox = (props) => ( <SvgIcon {...props}> <path d="M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10z"/> <...
app/javascript/mastodon/components/avatar.js
Craftodon/Craftodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class Avatar extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, size: PropType...
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js
chf2/react-router
import React from 'react' class Assignments extends React.Component { render() { return ( <div> <h3>Assignments</h3> {this.props.children || <p>Choose an assignment from the sidebar.</p>} </div> ) } } export default Assignments
client/components/pageNotFound/PageNotFound.js
subesokun/Rocket.Chat
import { Box, Button, ButtonGroup, Flex, Margins } from '@rocket.chat/fuselage'; import React from 'react'; import { useRoute } from '../../contexts/RouterContext'; import { useWipeInitialPageLoading } from '../../hooks/useWipeInitialPageLoading'; import { ConnectionStatusAlert } from '../connectionStatus/ConnectionSt...
app/javascript/mastodon/components/check.js
cobodo/mastodon
import React from 'react'; const Check = () => ( <svg width='14' height='11' viewBox='0 0 14 11'> <path d='M11.264 0L5.26 6.004 2.103 2.847 0 4.95l5.26 5.26 8.108-8.107L11.264 0' fill='currentColor' fillRule='evenodd' /> </svg> ); export default Check;
frontend/src/Components/Form/EnhancedSelectInputOption.js
geogolem/Radarr
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Icon from 'Components/Icon'; import Link from 'Components/Link/Link'; import { icons } from 'Helpers/Props'; import CheckInput from './CheckInput'; import styles from './EnhancedSelectInputOption.cs...
docs/examples/RadioGroup/Example1.js
romagny13/react-form-validation
import React from 'react'; import { RadioGroup, Label } from 'romagny13-react-form-validation'; class Example1 extends React.Component { constructor(props) { super(props); this.state = { model: { likes: 'Cakes' }, touched: {} }; ...
src/components/DatePicker/Component.js
nickorsk2020/agave-react-UI
/* * This file is part of the "Agave react UI" package * * Copyright (c) 2016 Stepanov Nickolay <nickorsk2020@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * */ import React from 'react'; import ReactDOM from 'react-dom'...
fannie/batches/EndCapper/src/EndCap.js
CORE-POS/IS4C
import React, { Component } from 'react'; import Shelf from './Shelf.js'; class EndCap extends Component { render() { let all = this.props.shelves.map((s, i) => <Shelf items={s} pos={i} manageItem={this.props.manageItem} /> ); return (<p><div>{all}</div></p>); ...
src/helpers/__tests__/getDataDependencies-test.js
thomastanhb/ericras
import { expect } from 'chai'; import React from 'react'; import { div } from 'react-dom'; import getDataDependencies from '../getDataDependencies'; describe('getDataDependencies', () => { let getState; let dispatch; let location; let params; let CompWithFetchData; let CompWithNoData; let CompWithFetchDa...
Paths/React/05.Building Scalable React Apps/8-react-boilerplate-building-scalable-apps-m8-exercise-files/After/app/components/Link/index.js
phiratio/Pluralsight-materials
/** * * Link * */ import React from 'react'; import styles from './styles.css'; function Link({ link }) { return ( <div className={styles.link}> <div className={styles.votingContainer} > <div className={styles.votingCount} > {link.voteCount} </di...
lib/components/tab.js
ppot/hyper
import React from 'react'; export default class Tab extends React.PureComponent { constructor() { super(); this.handleHover = this.handleHover.bind(this); this.handleBlur = this.handleBlur.bind(this); this.handleClick = this.handleClick.bind(this); this.state = { hovered: false }; }...
src/svg-icons/action/tab.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTab = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h10v4h8v10z"/> </SvgIcon> ); ActionTab = pure(ActionTab); ActionTab....
app/containers/Production/SectionPotPlant.js
frascata/vivaifrappi
import React from 'react'; import styled from 'styled-components'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; import H1 from '../../components/H1/index'; import Text from '../../components/Text/index'; import PotPlantGallery from './PotPlantGallery'; const Div = styled.div` `;...
main.js
dmrd/org_squared
/** In order for logging to stream to XDE or the exp CLI you must import the * exponent module at some point in your app */ import React from 'react'; import Exponent from 'exponent'; import { AppRegistry, Platform, StatusBar, StyleSheet, View, } from 'react-native'; import { withNavigation, Navigation...
src/svg-icons/action/perm-scan-wifi.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermScanWifi = (props) => ( <SvgIcon {...props}> <path d="M12 3C6.95 3 3.15 4.85 0 7.23L12 22 24 7.25C20.85 4.87 17.05 3 12 3zm1 13h-2v-6h2v6zm-2-8V6h2v2h-2z"/> </SvgIcon> ); ActionPermScanWifi = pure(A...
src/client/components/Story/HiddenStoryPreviewMessage.js
busyorg/busy
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; const HiddenStoryPreviewMessage = ({ onClick }) => ( <div className="Story__warning__message"> <h4> <FormattedMessage id="post_preview_hidden_for_low_ratings" defaultMessage="This p...
src/index.js
kokengthecoder/github-user-search
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import ReduxPromise from 'redux-promise'; import { browserHistory, Router, Route, IndexRoute } from 'react-router'; import App from './containers/app'; import HomeS...
client/src/scenes/SignInPage/index.js
RudthMael/chatx
import React from 'react'; import './index.css'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import { login } from '../../actions'; import { getAuth } from '../../selectors'; class SignInPage extends React.Component { static propTypes = { auth: React.PropTypes.object }; cons...
app/components/default-settings/PlainContext.js
opensprints/opensprints-electron
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styles from './settings.css'; export default class PlainContext extends Component { static propTypes = { children: PropTypes.string }; static defaultProps = { children: '' }; render() { const { children } = thi...
server/sonar-web/src/main/js/apps/overview/gate/gate.js
vamsirajendra/sonarqube
import React from 'react'; import GateConditions from './gate-conditions'; import GateEmpty from './gate-empty'; export default React.createClass({ renderGateConditions () { return <GateConditions gate={this.props.gate} component={this.props.component}/>; }, renderGateText () { let text = ''; if (...
src/addons/Select/Select.js
mohammed88/Semantic-UI-React
import React from 'react' import { META } from '../../lib' import Dropdown from '../../modules/Dropdown' /** * A Select is sugar for <Dropdown selection />. * @see Dropdown * @see Form */ function Select(props) { return <Dropdown {...props} selection /> } Select._meta = { name: 'Select', type: META.TYPES.A...
app/components/SearchField/index.js
nathanhood/mmdb
import React from 'react'; import styled, { css } from 'styled-components'; import PropTypes from 'prop-types'; import { transitionOpacity } from '../../mixins'; import HeaderButton from '../HeaderButton'; import theme from 'theme'; import { LIBRARY_SEARCH_TYPE, STANDARD_SEARCH_TYPE } from 'containers/SearchResults/con...
packages/material-ui-icons/src/CardTravel.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let CardTravel = props => <SvgIcon {...props}> <path d="M20 6h-3V4c0-1.11-.89-2-2-2H9c-1.11 0-2 .89-2 2v2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zM9 4h6v2H9V4zm11 15H4v-2...
docs/app/Examples/modules/Rating/Types/RatingExampleRating.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Rating } from 'semantic-ui-react' const RatingExampleRating = () => ( <Rating /> ) export default RatingExampleRating
src/components/cid/Cid.stories.js
ipfs/webui
import React from 'react' import { storiesOf } from '@storybook/react' import { action } from '@storybook/addon-actions' import { checkA11y } from '@storybook/addon-a11y' import Cid from './Cid' storiesOf('CID', module) .addDecorator(checkA11y) .add('CID v0', () => ( <Cid className='db ma2 monospace' value={'Q...
actor-apps/app-web/src/app/components/ActivitySection.react.js
hzy87email/actor-platform
import React from 'react'; import classNames from 'classnames'; import { ActivityTypes } from 'constants/ActorAppConstants'; import ActivityStore from 'stores/ActivityStore'; import UserProfile from 'components/activity/UserProfile.react'; import GroupProfile from 'components/activity/GroupProfile.react'; const getS...
test/ProgressBarSpec.js
westonplatter/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ProgressBar from '../src/ProgressBar'; import {shouldWarn} from './helpers'; const getProgressBarNode = wrapper => { return React.findDOMNode(ReactTestUtils.findRenderedDOMComponentWithClass(wrapper, 'progress-bar')); }; descri...
src/components/wrapper/index.js
timludikar/component-library
import React from 'react'; import styles from './stylesheet/wrapper.styl'; const Wrapper = ({ children, className }) => { const cssClass = `${styles[className]} ${styles.wrapper}`; return ( <div className={cssClass} > {children} </div> ); }; Wrapper.propTypes = { className: React.Pro...
example/CountryAutocomplete.js
iegik/react-autocomplete
import React from 'react'; import AutocompleteSelect from '../src/Select'; import AutocompleteList from '../src/List'; import AutocompleteListItem from '../src/ListItem'; import AutocompleteInput from '../Input'; // FIXME: Returns Promise with object `{suggestions: [{value: String}]}` import {getCountrySuggestions} fr...
clients/packages/admin-client/src/components/forms/form-dropdown.spec.js
nossas/bonde-client
/* eslint-disable no-unused-expressions */ import React from 'react' import { expect } from 'chai' import { shallow } from 'enzyme' import { FormDropdown } from '../../components/forms' describe('client/components/forms/form-dropdown', () => { let wrapper beforeEach(() => { wrapper = shallow(<FormDropdown />...
frontend/src/components/partners/partnerProfileDetailItem.js
unicef/un-partner-portal
import R from 'ramda'; import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import ItemColumnCell from '../common/cell/itemColumnCell'; import GridColumn from '../common/grid/gridColumn'; import GridRow from '../common/grid/gridRow'; import ItemWorkingLanguages...
archimate-frontend/src/main/javascript/components/view/nodes/model_t/technologyProcess.js
zhuj/mentha-web-archimate
import React from 'react' import _ from 'lodash' import { ModelNodeWidget } from '../BaseNodeWidget' export const TYPE='technologyProcess'; export class TechnologyProcessWidget extends ModelNodeWidget { getClassName(node) { return 'a-node model_t technologyProcess'; } }
admin/client/App/shared/Popout/index.js
everisARQ/keystone
/** * A Popout component. * One can also add a Header (Popout/Header), a Footer * (Popout/Footer), a Body (Popout/Body) and a Pan (Popout/Pane). */ import React from 'react'; import Portal from '../Portal'; import Transition from 'react-addons-css-transition-group'; const sizes = { arrowHeight: 12, }; var Popou...
src/boot.js
andreypopp/sitegen
/** * @copyright 2016-present, Sitegen team * @flow */ declare var __DEBUG__: string; import type {Route} from 'react-router'; import debug from 'debug'; debug.enable(__DEBUG__); import invariant from 'invariant'; import React from 'react'; import {render} from 'react-dom'; import {browserHistory as history, mat...
modules/line-chart/index.js
rma-consulting/react-easy-chart
import React from 'react'; import ReactFauxDOM from 'react-faux-dom'; import { event as lastEvent, select, axisBottom, axisLeft, axisRight, line, timeFormat } from 'd3'; import { createUniqueID, reduce, calculateMargin, createValueGenerator, createDomainRangeGenerator, defaultColors, defaul...
src/svg-icons/notification/wifi.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationWifi = (props) => ( <SvgIcon {...props}> <path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9...
nativeExample/react/src/js/example/pwd.js
zhanglizhao/react-native-knowledge
/** * Created by Administrator on 2016/11/19 0019. */ import React from 'react'; import {render} from 'react-dom'; import {Nav,NavTitle,NavLeft} from '../../assets/components/nav/nav.js'; import Btn from '../../assets/components/btn/btn.js'; import Formsy,{Form,Mixin} from "react-cmos-formsy"; import { createStore, c...
docs/app/Examples/elements/Step/Groups/StepExampleGroups.js
aabustamante/Semantic-UI-React
import React from 'react' import { Icon, Step } from 'semantic-ui-react' const steps = [ { icon: 'truck', title: 'Shipping', description: 'Choose your shipping options' }, { active: true, icon: 'payment', title: 'Billing', description: 'Enter billing information' }, { disabled: true, icon: 'info', title: 'Confir...
imports/startup/client/components/Contact/ContactFormButtons.js
eiglikov/contacts-react-redux-meteor
import React from 'react' import PropTypes from 'prop-types' const ContactFormButtons = ({ onClear, hideSubmit }) => ( <div className='btn-toolbar pull-right'> <input type='button' className='btn btn-default' onClick={onClear} value='CANCEL' readOnly /> { hideSubmit ? '' ...
app/index.js
zedtux/grrn
import log from 'loglevel'; if (process.env.NODE_ENV !== 'production') { // Use require because imports can't be conditional. // In production, you should ensure process.env.NODE_ENV // is envified so that Uglify can eliminate this // module and its dependencies as dead code. // require('./createDevToolsWindo...
react-client/src/components/Lobby.js
lowtalkers/escape-reality
import AFRAME from 'aframe'; import 'aframe-animation-component'; import 'aframe-text-component'; import 'babel-polyfill'; import {Entity, Scene} from 'aframe-react'; import React from 'react'; import { Link, withRouter } from 'react-router'; import Camera from './Camera'; import Text from './Text'; import Sky from '...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DestructuringAndAwait.js
picter/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; async function load() { return { users: [ { i...
app/containers/NotFoundPage/index.js
prudhvisays/season
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
vacker/static/src/App.js
MatthewJohn/vacker
import React from 'react'; import { Router, Route, withRouter } from 'react-router-dom'; import { connect } from 'react-redux' import { createBrowserHistory } from 'history'; import {DataTable} from 'primereact/datatable'; import {Column} from 'primereact/column'; import {MultiSelect} from 'primereact/multiselect'; i...
client/app/scripts/charts/node-shape-square.js
dilgerma/scope
import React from 'react'; import classNames from 'classnames'; import {getMetricValue, getMetricColor, getClipPathDefinition} from '../utils/metric-utils.js'; import {CANVAS_METRIC_FONT_SIZE} from '../constants/styles.js'; export default function NodeShapeSquare({ id, highlighted, size, color, rx = 0, ry = 0, metr...
src/svg-icons/image/portrait.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePortrait = (props) => ( <SvgIcon {...props}> <path d="M12 12.25c1.24 0 2.25-1.01 2.25-2.25S13.24 7.75 12 7.75 9.75 8.76 9.75 10s1.01 2.25 2.25 2.25zm4.5 4c0-1.5-3-2.25-4.5-2.25s-4.5.75-4.5 2.25V17h9v-.75zM...
src/app.js
noomorph/quizzard2
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel/polyfill'; import React from 'react'; import FastClick from 'fastclick'; import App from './components/App'; import Dispatcher from './core/Dispatcher'; import AppActions from './actions/AppActions'; import ActionTypes from './const...
src/components/canvas/other_components/Description.js
nchathu2014/canvas-new
import React from 'react'; export default class Description extends React.Component{ constructor(props){ super(props); } render(){ return( <div> <div className="text-center"> <h4>Description&nbsp;<span className="glyphicon glyphicon-exclamation-sign"></span></h4> </div> <div> <text...
app/components/H3/index.js
mxstbr/react-boilerplate
import React from 'react'; function H3(props) { return <h3 {...props} />; } export default H3;
src/pages/NotFoundPage.js
ihenvyr/react-parse
import React from 'react'; import Helmet from 'react-helmet'; import { withRouter } from 'react-router'; const NotFoundPage = () => { return ( <div> <Helmet title="About" meta={[ { name: "description", content: "About" } ]} /> <h2>Page Not Found</h2> <p>W...
src/scenes/home/informationForm/formComponents/identifier.js
OperationCode/operationcode_frontend
import React, { Component } from 'react'; import Form from 'shared/components/form/form'; import PropTypes from 'prop-types'; import FormSelect from 'shared/components/form/formSelect/formSelect'; import { IDENTIFIERS } from 'shared/constants/status'; import styles from './formComponents.css'; class Identifier extends...
src/components/Common/ReservedTokensItem.js
15chrjef/ico-wizard
import React from 'react' import '../../assets/stylesheets/application.css'; import { defaultState } from '../../utils/constants' import { getOldState } from '../../utils/utils' export class ReservedTokensItem extends React.Component { constructor(props) { super(props); let oldState = getOldState(prop...
ee/client/omnichannel/cannedResponses/CannedResponseAdd.stories.js
VoiSmart/Rocket.Chat
import { Box } from '@rocket.chat/fuselage'; import React from 'react'; import CannedResponseAdd from './CannedResponseAdd'; export default { title: 'omnichannel/CannedResponse/CannedResponseAdd', component: CannedResponseAdd, }; export const Default = () => ( <Box maxWidth='x300' alignSelf='center' w='full'> <...
src/components/Footer/index.js
redsheep-io/redsheep.io
import React from 'react'; import PropTypes from 'prop-types'; import {SocialIcons} from 'react-social-icons'; import './styles.scss'; class Footer extends React.Component { static propTypes = { socialUrls: PropTypes.array }; render () { const {socialUrls} = this.props; return ( <div classNam...
src/client.js
harouf/react-redux-searchportal
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel/polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import createHistory from 'history/lib/createBrowserHistory'; import createStore from './redux/create'; import ApiClient from '....
pootle/static/js/admin/components/Project/ProjectForm.js
unho/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import FormElement from 'compo...
client/channel/Threads/ContextualBar/components/Message.stories.js
iiet/iiet-chat
import React from 'react'; import Message from './Message'; const message = { msg: 'hello world', ts: new Date(0), username: 'guilherme.gazzo', replies: 1, participants: 2, tlm: new Date(0).toISOString(), }; const largeText = { ...message, msg: 'Large text, Large text, Large text, Large text, Large text, Lar...
examples/src/components/CustomKeysField.js
oluckyman/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var CustomKeysField = React.createClass({ displayName: 'CustomKeysField', propTypes: { label: React.PropTypes.string },...
examples/optgroup.js
eternalsky/select
/* eslint no-console: 0 */ import React from 'react'; import Select, { Option, OptGroup } from 'rc-select'; import 'rc-select/assets/index.less'; import ReactDOM from 'react-dom'; function onChange(value) { console.log(`selected ${value}`); } const c1 = ( <div> <h2>Select OptGroup</h2> <div style={{ widt...
src/svg-icons/notification/phone-paused.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPhonePaused = (props) => ( <SvgIcon {...props}> <path d="M17 3h-2v7h2V3zm3 12.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C...
packages/wix-style-react/src/Animate/test/Animate.spec.js
wix/wix-style-react
import React from 'react'; import { createRendererWithUniDriver, cleanup } from '../../../test/utils/unit'; import { fireEvent } from '@testing-library/react'; import Animate from '../Animate'; import { animateDriverFactory } from '../Animate.uni.driver'; describe(Animate.displayName, () => { const render = createRe...
src/components/Proteome/EntryHierarchy/index.js
ProteinsWebTeam/interpro7-client
import React from 'react'; import T from 'prop-types'; import { dataPropType } from 'higherOrder/loadData/dataPropTypes'; import { createSelector } from 'reselect'; import { format } from 'url'; import loadData from 'higherOrder/loadData'; import descriptionToPath from 'utils/processDescription/descriptionToPath'; i...
src/primitives/other/labeled-item/index.js
mpigsley/sectors-without-number
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { FormattedMessage } from 'react-intl'; import FlexContainer from 'primitives/container/flex-container'; import Label from 'primitives/form/label'; import styles from './styles.module.scss'; export default func...
packages/react-ui-core/src/Form/__tests__/LabelHidingField-test.js
rentpath/react-ui
import React from 'react' import { shallow, mount } from 'enzyme' import theme from './mocks/theme' import Field from '../Field' import Password from '../Password' import ThemedLabelHidingField from '../LabelHidingField' const LabelHidingField = ThemedLabelHidingField.WrappedComponent describe('LabelHidingField', () ...
websites/svef.is/src/app/routes/Home/Home.js
svef/www
import React from 'react' import Helmet from 'react-helmet' import { Button, Section, H1 } from '@svef/components' const Home = () => ( <div className="row"> <Helmet> <title>Home</title> </Helmet> <div className="col"> <Section hero> <H1 color="svef">Samtök vefiðnaðarins</H1> </...
packages/material-ui-icons/src/AssignmentInd.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let AssignmentInd = props => <SvgIcon {...props}> <path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-....
src/components/Header/Header.js
dynamitechetan/susi_skill_wiki
import React from 'react'; import { Dropdown, Avatar, Icon, Menu } from 'antd'; export default class Header extends React.Component { render() { const menu = ( <Menu> <Menu.Item key="0"> <a href="#">Logout</a> </Menu.Item> </Menu>...
components/layout/Layout.js
jasonleibowitz/react-toolbox
import React from 'react'; import PropTypes from 'prop-types'; import { themr } from 'react-css-themr'; import classnames from 'classnames'; import { LAYOUT } from '../identifiers.js'; const Layout = ({ className, children, theme }) => ( <div data-react-toolbox='layout' className={classnames(theme.layout, className)...
ajax/libs/react-instantsearch/5.1.0/Connectors.js
seogi1004/cdnjs
/*! ReactInstantSearch 5.1.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :...
app/javascript/mastodon/features/standalone/compose/index.js
Craftodon/Craftodon
import React from 'react'; import ComposeFormContainer from '../../compose/containers/compose_form_container'; import NotificationsContainer from '../../ui/containers/notifications_container'; import LoadingBarContainer from '../../ui/containers/loading_bar_container'; import ModalContainer from '../../ui/containers/mo...
client/src/containers/NotFound/NotFound.js
jabelone/marvin
import React from 'react'; export default function NotFound() { return ( <div className="container"> <h1>Doh! 404!</h1> <p>These are <em>not</em> the droids you are looking for!</p> </div> ); }
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js
arbas/react-router
import React from 'react'; import { Link } from 'react-router'; export default class AnnouncementsSidebar extends React.Component { render () { var announcements = COURSES[this.props.params.courseId].announcements; return ( <div> <h3>Sidebar Assignments</h3> <ul> {announcemen...
app/javascript/mastodon/features/ui/components/boost_modal.js
SerCom-KC/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Button from '../../../components/button'; import StatusContent from '../../../components/status_content'; import Av...
src/app/js/game/card.js
TylerMcKenzie/Nertz
import React from 'react' class Card extends React.Component { constructor() { super() this.state = { isSelected: false } } handleClick(event) { let el = event.target.classList.contains('card') ? event.target : event.target.parentNode console.log(this.props) if(!this.props.isSelect...
src/svg-icons/image/camera-alt.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCameraAlt = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5...
fields/types/select/SelectField.js
xyzteam2016/keystone
import Field from '../Field'; import React from 'react'; import Select from 'react-select'; import { FormInput } from 'elemental'; /** * TODO: * - Custom path support */ module.exports = Field.create({ displayName: 'SelectField', statics: { type: 'Select', }, valueChanged (newValue) { // TODO: This shoul...
react-components/src/library/components/collections-page.js
concord-consortium/rigse
import React from 'react' import Component from '../helpers/component' import CollectionCards from './collection-cards' const CollectionsPage = Component({ render: function () { return ( <div> <div className={'cols'}> <div className={'portal-pages-collections-page-header col-12'}> ...
l1/__tests__/index.android.js
huang6349/rn
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 /> ); });
app/components/Footer/Footer.js
LabMDE/bungee-books-web
import React from 'react'; import style from './Footer.scss'; import classNames from 'classNames/bind'; const css = classNames.bind(style); const Footer = ({ children }) => { return ( <div className={ css('footer') }> <div>Telefono: 555-123-1212</div> </div> ); }; export default Footer;
src/components/Label.js
feedreaderco/web
import React from 'react'; export default ({ user, label }) => { const url = `/${user}/labels/${encodeURIComponent(label)}`; return <a href={url} className="pillbox">{label}</a>; };