path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/js/components/input-ssn.js
training4developers/react_redux_12122016
import React from 'react'; export class InputSSN extends React.Component { static propTypes = { onChange: React.PropTypes.func, value: React.PropTypes.string, name: React.PropTypes.string }; onChange = (e) => { e.target.value = e.target.value.replace('-', ''); e.target.value = e.target.value.replace('-...
src/components/migration/Migrate2.js
safex/safex_wallet
import React from 'react'; import {createSafexAddress, verify_safex_address, structureSafexKeys} from '../../utils/migration'; import {openMigrationAlert, closeMigrationAlert} from '../../utils/modals'; const fs = window.require('fs'); import {encrypt} from "../../utils/utils"; import MigrationAlert from "../migratio...
app/routes.js
ideal-life-generator/react-full-stack-starter
import React from 'react'; import { IndexRoute, Route } from 'react-router'; import { routerActions } from 'react-router-redux'; import { UserAuthWrapper } from 'redux-auth-wrapper'; import Root from './containers/Root'; import Home from './containers/Home'; import Users from './containers/Users'; import Login from './...
lib/components/ErrorPage.js
hanford/filepizza
import ErrorStore from '../stores/ErrorStore' import React from 'react' import Spinner from './Spinner' export default class ErrorPage extends React.Component { constructor() { super() this.state = ErrorStore.getState() this._onChange = () => { this.setState(ErrorStore.getState()) } } co...
imports/ui/components/resident-details/accounts/private-account/edit-pa-bill/continuation.js
gagpmr/app-met
import React from 'react'; import ReactDOM from 'react-dom'; import { browserHistory } from 'react-router'; import * as Styles from '/imports/modules/styles.js'; import { UpdateResident } from '/imports/api/residents/methods.js'; var DatePicker = require('react-datepicker'); var moment = require('moment'); require('/i...
public/js/components/user_instructor.js
AC287/wdi_final_arrowlense2.0_FE
import React from 'react' import {Link} from 'react-router' import Firebase from 'firebase' import EditImgUrl from './user_img_edit.js' import CreateClass from './class_new.js' export default React.createClass({ contextTypes: { user: React.PropTypes.string, userid: React.PropTypes.string, userinfo: Reac...
test/test_helper.js
Eleutherado/ReactBasicBlog
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
packages/mineral-ui-icons/src/IconVerticalAlignTop.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 IconVerticalAlignTop(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...i...
example/app/src/index.js
aurbano/react-ds
import React from 'react'; import ReactDOM from 'react-dom'; import './example.css'; import './react-ds.css'; import Examples from './Examples'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<Examples />, document.getElementById('root')); registerServiceWorker();
src/components/photoshop/spec.js
casesandberg/react-color
/* global test, jest, expect */ import React from 'react' import renderer from 'react-test-renderer' import { red } from '../../helpers/color' import Photoshop from './Photoshop' import PhotoshopButton from './PhotoshopButton' import PhotoshopFields from './PhotoshopFields' import PhotoshopPointer from './PhotoshopPo...
src/components/Main1.js
chris-deng/gallery-by-react
/** * Created by dengbingyu on 2016/10/28. */ require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; import ReactDOM from 'react-dom'; //获取图片相关的数据 let imageDatas = require('json!../data/imageDatas.json'); imageDatas = ((imageDatasArr)=>{ // 将图片的url加入的图片object数组...
src/javascript/index.js
knowbody/redux-react-router-example-app
import 'babel/polyfill'; import React from 'react'; import { render } from 'react-dom'; import injectTapEventPlugin from 'react-tap-event-plugin'; import createHashHistory from 'history/lib/createHashHistory'; import Root from './Root'; /* Needed for onTouchTap Can go away when react 1.0 release Check this repo:...
src/index.js
tavofigse/flip-the-reactomster
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { Router, browserHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import routes from './routes' import configureStore from './store/configureStore' import './styles/app.scss' ...
src/js/components/icons/base/Sync.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/LoginForm/LoginForm.js
TackleboxBeta/betabox-seed
import React, { Component } from 'react'; import { reduxForm, Field, propTypes } from 'redux-form'; import loginValidation from './loginValidation'; import ValidationInput from '../ValidationInput/ValidationInput'; @reduxForm({ form: 'login', validate: loginValidation }) export default class LoginForm extends Comp...
test/FadeSpec.js
collinwu/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Fade from '../src/Fade'; describe('Fade', function () { let Component, instance; beforeEach(function(){ Component = React.createClass({ render(){ let { children, ...props } = this.props; return ( ...
js/react/catch-of-the-day/node_modules/re-base/examples/github-notetaker/app/components/Notes/Notes.js
austinjalexander/sandbox
import React from 'react'; import NotesList from './NotesList'; import AddNote from './AddNote'; class Notes extends React.Component{ render(){ return ( <div> <h3> Notes for {this.props.username} </h3> <AddNote username={this.props.username} addNote={this.props.addNote} /> <NotesLis...
src/components/app.js
fab1o/YouTube-Viewer
import React, { Component } from 'react'; export default class App extends Component { render() { return ( <div>React simple starter</div> ); } }
src/containers/CSM/CSM.js
UncleYee/crm-ui
import React from 'react'; import ReduxTableSelect from 'components/Form/NoLabel/ReduxTableSelect'; import MonthRangePicker from 'components/DatePicker/MonthRangePicker'; import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table'; import moment from 'moment'; import Modal from 'react-bootstrap/lib/Modal'; ...
app/components/FormMessages/index.js
acebusters/ab-web
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { baseColor, black, } from '../../variables'; const FormError = styled.span` margin: 0; padding: 0.5em 1em; font-size: 0.8em; font-family: $text-font-stack; float: left; color: ${baseColor}; ...
test/components/icon-spec.js
nordsoftware/react-foundation
import React from 'react'; import { render } from 'enzyme'; import { expect } from 'chai'; import { Icon } from '../../src/components/icon'; describe('Icon component', () => { it('sets tag name', () => { const component = render(<Icon name="ok"/>); expect(component).to.have.tagName('i'); }); it('sets i...
todo/src/index.js
iamwangxupeng/react-reflux-webpack-es6
import React from 'react'; import ReactDOM from 'react-dom'; import Todo from './components/todo'; import csss from './style/main.css'; ReactDOM.render( <Todo> </Todo>, document.querySelector('#app') );
src/svg-icons/notification/more.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationMore = (props) => ( <SvgIcon {...props}> <path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.97.89 1.66.89H22c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 13.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5...
src/views/PointerEventsContainer.js
half-shell/react-navigation
/* @flow */ import React from 'react'; import invariant from 'fbjs/lib/invariant'; import AnimatedValueSubscription from './AnimatedValueSubscription'; import type { NavigationSceneRendererProps, } from '../TypeDefinition'; type Props = NavigationSceneRendererProps; const MIN_POSITION_OFFSET = 0.01; /** * Cre...
src/components/Schedule.js
MathMesquita/conf
import React from 'react'; import { css } from 'glamor'; import Text from './Text'; const styles = { container: css({ background: '#fff', width: '100vw', paddingBottom: '2em', alignItems: 'center', '@media(max-width: 720px)': { alignSelf: 'auto', }, }), list: css({ listStyle: 'n...
app/containers/HomePage/Loadable.js
mxstbr/react-boilerplate
/** * Asynchronously loads the component for HomePage */ import React from 'react'; import loadable from 'utils/loadable'; import LoadingIndicator from 'components/LoadingIndicator'; export default loadable(() => import('./index'), { fallback: <LoadingIndicator />, });
src/layouts/CoreLayout/CoreLayout.js
joris77/admin-web
import React from 'react' import { Layout, Panel } from 'react-toolbox' import Header from '../../components/Header' import './CoreLayout.scss' import '../../styles/core.scss' import GlobalMessage from 'components/GlobalMessage' export const CoreLayout = ({ children }) => ( <Layout> <Panel> <Header /> ...
src/scenes/SearchScreen/components/RepoSearchBar/index.js
msanatan/GitHubProjects
import React, { Component } from 'react'; import { SearchBar, } from 'react-native-elements'; export default class RepoSearchBar extends Component { constructor(props) { super(props) this.handleChangeText = this.handleChangeText.bind(this); } render() { return ( <SearchBar lightThem...
docs/src/app/pages/components/RadioGroup/ExampleRadioGroupDescription.js
GetAmbassador/react-ions
import React from 'react' import RadioGroup from 'react-ions/lib/components/Radio/RadioGroup' import Radio from 'react-ions/lib/components/Radio/Radio' import Input from 'react-ions/lib/components/Input' import style from './style.scss' const radioOptions = [ { value: 'welcome_email', label: 'Send welcome em...
src/calendar/header/index.js
eals/react-native-calender-pn-wix-extended
import React, { Component } from 'react'; import { ActivityIndicator } from 'react-native'; import { View, Text, TouchableOpacity, Image } from 'react-native'; import XDate from 'xdate'; import PropTypes from 'prop-types'; import styleConstructor from './style'; import { weekDayNames } from '../../dateutils'; import Ic...
classic/src/scenes/mailboxes/src/Scenes/AppScene/ServiceTab/ServiceInfoDrawer/ServiceInstallInfo.js
wavebox/waveboxapp
import PropTypes from 'prop-types' import React from 'react' import { accountActions, accountStore } from 'stores/account' import { withStyles } from '@material-ui/core/styles' import shallowCompare from 'react-addons-shallow-compare' import DoneIcon from '@material-ui/icons/Done' import ServiceInfoPanelActionButton fr...
MobileApp/node_modules/react-native-elements/src/badge/badge.js
VowelWeb/CoinTradePros.com
import PropTypes from 'prop-types'; import React from 'react'; import { Text, View, StyleSheet, TouchableOpacity } from 'react-native'; import colors from '../config/colors'; const Badge = props => { const { containerStyle, textStyle, wrapperStyle, onPress, component, value, children, ...
src/svg-icons/action/highlight-off.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHighlightOff = (props) => ( <SvgIcon {...props}> <path d="M14.59 8L12 10.59 9.41 8 8 9.41 10.59 12 8 14.59 9.41 16 12 13.41 14.59 16 16 14.59 13.41 12 16 9.41 14.59 8zM12 2C6.47 2 2 6.47 2 12s4.47 10 10 1...
js/jqwidgets/demos/react/app/kanban/disablecollapse/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxKanban from '../../../jqwidgets-react/react_jqxkanban.js'; class App extends React.Component { render() { let fields = [ { name: 'id', type: 'string' }, { name: 'status', map: 'state', type: 'string' }, ...
docs/src/app/components/pages/components/DatePicker/ExampleInline.js
IsenrichO/mui-with-arrows
import React from 'react'; import DatePicker from 'material-ui/DatePicker'; /** * Inline Date Pickers are displayed below the input, rather than as a modal dialog. */ const DatePickerExampleInline = () => ( <div> <DatePicker hintText="Portrait Inline Dialog" container="inline" /> <DatePicker hintText="Land...
app/components/Item/Background/Background.js
TriPSs/popcorn-time-desktop
// @flow import React from 'react' import classNames from 'classnames' import type { Props } from './BackgroundTypes' import classes from './Background.scss' export const Background = ({ backgroundImage }: Props) => ( <div className={classes.background__container}> <div className={classNames(classes.b...
blueprints/view/files/__root__/views/__name__View/__name__View.js
llukasxx/school-organizer-front
import React from 'react' type Props = { }; export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } export default <%= pascalEntityName %>
actor-apps/app-web/src/app/components/modals/create-group/ContactItem.react.js
Johnnywang1221/actor-platform
import React from 'react'; import AvatarItem from 'components/common/AvatarItem.react'; class ContactItem extends React.Component { static propTypes = { contact: React.PropTypes.object, onToggle: React.PropTypes.func } constructor(props) { super(props); this.onToggle = this.onToggle.bind(this)...
blueocean-material-icons/src/js/components/svg-icons/communication/vpn-key.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const CommunicationVpnKey = (props) => ( <SvgIcon {...props}> <path d="M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/> </SvgIcon> ); Co...
frontend/capitolwords-spa/src/components/HomePage/HomePage.js
propublica/Capitol-Words
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { routeToPhraseSearch } from '../../actions/search-actions'; import SearchInput from '../SearchInput/SearchInput'; import './HomePage.css'; import { isSearching, isSearchFailure, isSearc...
packages/cf-component-dropdown/src/Dropdown.js
koddsson/cf-ui
import React from 'react'; import PropTypes from 'prop-types'; import { canUseDOM } from 'exenv'; import { createComponent } from 'cf-style-container'; import DropdownRegistry from './DropdownRegistry'; const styles = ({ theme, align }) => ({ position: 'absolute', zIndex: 1, minWidth: '10.66667rem', margin: '...
app/stories/index.js
atralice/reactDockerizeBoilerplate
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { linkTo } from '@storybook/addon-links'; import { Button, Welcome } from '@storybook/react/demo'; storiesOf('Welcome', module).add('to Storybook', () => <Welcome showApp={linkTo('Button...
packages/mineral-ui-icons/src/IconImageAspectRatio.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 IconImageAspectRatio(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...i...
Libraries/Utilities/throwOnWrongReactAPI.js
esauter5/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/components/Footer.js
SaKKo/react-redux-todo-boilerplate
import React from 'react'; import { connect } from 'react-redux'; import { setVisibilityFilter } from '../actions/actions'; import { SHOW_ALL,SHOW_ACTIVE,SHOW_COMPLETED } from '../constants/ActionTypes'; import Link from './Link'; const mapStateProps = ( state, ownProps ) => { return { active: ownProp...
src/index.js
Warm-men/Investment-by-react
import React from 'react' import { render } from 'react-dom' import { hashHistory } from 'react-router' import RouteMap from './router/routeMap' render( <RouteMap history={hashHistory}/>, document.getElementById('app') );
src/views/components/notification/notification.js
connorbanderson/CoinREXX
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import './notification.css'; class Notification extends Component { static propTypes = { action: PropTypes.func.isRequired, actionLabel: PropTypes.string.isRequired, dismiss: PropTypes.func.isRequired, display: PropTypes....
src/Well.js
JimiHFord/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Well = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'well' }; }, render() { let classes = this.getBsClassSet(); return ( <di...
src/js/Pickers/__tests__/Year.js
lwhitlock/grow-tracker
/* eslint-env jest*/ jest.unmock('../Year'); import React from 'react'; import { findDOMNode } from 'react-dom'; import { Simulate, renderIntoDocument, } from 'react-dom/test-utils'; import Year from '../Year'; describe('Year', () => { it('calls the onClick function when clicked', () => { const onClick = j...
test/reveal.spec.js
negomi/react-burger-menu
'use strict'; import React from 'react'; import TestUtils from 'react-dom/test-utils'; import { expect } from 'chai'; import createShallowComponent from './utils/createShallowComponent'; import renderIntoDocument from './utils/renderIntoDocument'; import BurgerMenu from '../src/BurgerMenu'; const Menu = BurgerMenu.rev...
src/js/components/icons/base/Book.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...
app/containers/CardForm.js
wenwuwu/redux-restful-example
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import CardForm from '../components/CardForm' import * as ActionCreators from '../actions' import _ from 'underscore' function mapStateToProps (state, ownProps) { const card = _.find(state.cards, {id: ownPro...
packages/linter-ui-default/lib/tooltip/message.js
luizpicolo/.atom
/* @flow */ import * as url from 'url' import React from 'react' import marked from 'marked' import { visitMessage, openExternally, openFile, applySolution, getActiveTextEditor, sortSolutions } from '../helpers' import type TooltipDelegate from './delegate' import type { Message, LinterMessage } from '../types' impor...
client/index.js
LinearAtWorst/cogile
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import ReactRoutes from './routes/routes.js'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware()(createStore); ...
examples/js/selection/externally-managed-selection.js
echaouchna/react-bootstrap-tab
/* 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, ...
examples/huge-apps/routes/Profile/components/Profile.js
dmitrigrabov/react-router
import React from 'react' class Profile extends React.Component { render() { return ( <div> <h2>Profile</h2> </div> ) } } export default Profile
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
kaizensauce/campari-app
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
js/components/tab/configTab.js
ChiragHindocha/stay_fit
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Container, Header, Title, Button, Icon, Tabs, Tab, Text, Right, Left, Body, TabHeading } from 'native-base'; import { Actions } from 'react-native-router-flux'; import { actions } from 'react-native-navigation-redux-helpers'; im...
app/javascript/mastodon/features/standalone/public_timeline/index.js
musashino205/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { expandPublicTimeline, expandCommunityTimeline } from 'mastodon/actions/timelines'; import Masonry from 'react-masonry-infinite'; import { List as Imm...
source/components/SectionPanel/Body.js
mikey1384/twin-kle
import React from 'react'; import PropTypes from 'prop-types'; import { stringIsEmpty } from 'helpers/stringHelpers'; Body.propTypes = { emptyMessage: PropTypes.string, searchQuery: PropTypes.string, isSearching: PropTypes.bool, isEmpty: PropTypes.bool, loadMoreButtonShown: PropTypes.bool, statusMsgStyle: ...
src/svg-icons/navigation/close.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationClose = (props) => ( <SvgIcon {...props}> <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/> </SvgIcon> ); NavigationClose = pure(Navig...
src/svg-icons/av/note.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvNote = (props) => ( <SvgIcon {...props}> <path d="M22 10l-6-6H4c-1.1 0-2 .9-2 2v12.01c0 1.1.9 1.99 2 1.99l16-.01c1.1 0 2-.89 2-1.99v-8zm-7-4.5l5.5 5.5H15V5.5z"/> </SvgIcon> ); AvNote = pure(AvNote); AvNote....
Header.js
srserx/react-native-ui-common
import React from 'react'; import { View, Text } from 'react-native'; const Header = (props) => { const { viewStyle, textStyle } = styles; return ( <View style={viewStyle}> <Text style={textStyle}>{props.headerText}</Text> </View> ); }; const styles = { viewStyle: { backgroundColor: '#F8F8F8...
test/ApiProvider.js
sborrazas/redux-apimap
import test from 'ava'; import React from 'react'; import TestUtils from 'react-addons-test-utils'; import spy from 'spy'; import './setupDom'; import createApi from '../src/createApi'; import ApiProvider from '../src/ApiProvider'; const api = createApi({}, {}); test('Enforce rendering a single child', (t) => { co...
src/js/containers/Dashboard/DashboardAssetsLayer/index.js
grommet/grommet-cms-boilerplate
/* @flow */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import Box from 'grommet/components/Box'; import Button from 'grommet/components/Button'; import Layer from 'grommet/components/Layer'; import { AssetTile } from 'grommet-cms/components/Dashboard'; import { getAssets } from 'gr...
app/Calendar/__tests__/DayPicker.spec.js
sgrepo/react-calendar-multiday
// import React from 'react' // import Enzyme, {mount} from 'enzyme' // import Adapter from 'enzyme-adapter-react-16' // import Calendar from '../Calendar' // import DayWrapper from '../DayWrapper' // import toJson from 'enzyme-to-json' // import {equals, range, inc} from 'ramda' // import jsdom from 'jsdom' // Enzyme...
native/components/speechBubble/SpeechBubble.js
miukimiu/react-kawaii
import React from 'react'; import PropTypes from 'prop-types'; import paths from './paths'; import Face from '../common/face/Face'; import getUniqueId from '../../utils/getUniqueId'; import Wrapper from '../common/wrapper/Wrapper'; import Svg, { G, Path, Use, Defs, Mask } from 'react-native-svg'; const SpeechBubble =...
src/app/development/DevelopmentTable.js
cityofasheville/simplicity2
import React from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import AccessibleReactTable, { CellFocusWrapper } from 'accessible-react-table'; import expandingRows from '../../shared/react_table_hoc/ExpandingRows'; import DevelopmentDetail from './DevelopmentDetail'; import Icon from '../....
src/pages/client/listpage.js
vgarcia692/wutmi_frontend
import React from 'react'; import { Link } from 'react-router'; import { Table, Button, Row, Col } from 'react-bootstrap'; import styles from './style.css'; import CustomAxios from '../../common/components/CustomAxios'; import NewClientForm from '../../common/components/NewClientForm'; import LoadingGifModal from '../....
components/menu/__test__/index.spec.js
showings/react-toolbox
import React from 'react'; import { shallow } from 'enzyme'; import { Menu } from '../Menu'; import { MenuItem } from '../MenuItem'; describe('MenuItem', () => { describe('#onClick', () => { it('passes to listener the event', () => { const onClick = jest.fn(); const wrapper = shallow( <Menu> ...
src/svg-icons/device/add-alarm.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceAddAlarm = (props) => ( <SvgIcon {...props}> <path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4....
app/components/events/comments/CommentList.js
alexko13/block-and-frame
import React from 'react'; import Comment from './CommentItem'; import moment from 'moment'; const CommentList = (props) => { return ( <div className="ui segment"> <div className="ui comments"> <h3 className="ui dividing header">Comments</h3> { props.commentData.map((comment) => {...
app/javascript/plugins/email_pension/SelectTarget.js
SumOfUs/Champaign
import React, { Component } from 'react'; import { FormattedMessage } from 'react-intl'; import Input from '../../components/SweetInput/SweetInput'; import FormGroup from '../../components/Form/FormGroup'; class SelectTarget extends Component { constructor(props) { super(props); this.state = { searchi...
packages/icons/src/md/action/SettingsBluetooth.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdSettingsBluetooth(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M23 48h4v-4h-4v4zm-8 0h4v-4h-4v4zm16 0h4v-4h-4v4zm5.41-36.59L27.83 20l8.58 8.59L25 40h-2V24.83L13.83 34 11 31.17 22.17 20 11 8.83 13.83 6 2...
src/js/components/icons/base/Diamond.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/select/multiselect/OptionGroupRenderer.js
sthomas1618/react-crane
import React from 'react' import PropTypes from 'prop-types' import { isValueEqual } from '../utils' function OptionGroupRenderer(props) { const { groupTitleKey, groupValueKey, option, optionDisabledKey, value, valueKey } = props const checked = value && value.length && value.some( (val) => ...
lib/ui/src/modules/ui/routes.js
jribeiro/storybook
import React from 'react'; import ReactDOM from 'react-dom'; import Layout from './containers/layout'; import LeftPanel from './containers/left_panel'; import DownPanel from './containers/down_panel'; import ShortcutsHelp from './containers/shortcuts_help'; import SearchBox from './containers/search_box'; export defau...
src/Parser/HolyPaladin/Modules/Talents/AuraOfMercy.js
Yuyz0112/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatNumber } from 'common/format'; import Module from 'Parser/Core/Module'; import AbilityTracker from 'Parser/Core/Modules/AbilityTracker'; import StatisticBo...
packages/core/admin/admin/src/content-manager/pages/EditSettingsView/components/ComponentFieldList.js
wistityhq/strapi
import React from 'react'; import PropTypes from 'prop-types'; import { Box } from '@strapi/design-system/Box'; import { Flex } from '@strapi/design-system/Flex'; import { Link } from '@strapi/design-system/Link'; import { Typography } from '@strapi/design-system/Typography'; import Cog from '@strapi/icons/Cog'; import...
pollard/components/SongInput.js
spencerliechty/pollard
import React, { Component } from 'react'; import classNames from 'classnames'; import mergeStyles from '../lib/mergeStyles'; export default class SongInput extends Component { handleChange(event) { this.props.updateSong({ idx: this.props.songIdx, key: this.props.label, val: event.target.value...
src/svg-icons/file/file-download.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileFileDownload = (props) => ( <SvgIcon {...props}> <path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"/> </SvgIcon> ); FileFileDownload = pure(FileFileDownload); FileFileDownload.displayName = 'FileFileDown...
src/components/Separator/Separator.js
jmoguelruiz/react-common-components
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class Separator extends Component{ getStyle(){ return { color : "#f4f5f8", margin: "20px -10px", width : "100%" }; } render(){ const { style } = this.props; ...
docs/src/app/components/pages/components/TimePicker/ExampleSimple.js
barakmitz/material-ui
import React from 'react'; import TimePicker from 'material-ui/TimePicker'; const TimePickerExampleSimple = () => ( <div> <TimePicker hintText="12hr Format" /> <TimePicker format="24hr" hintText="24hr Format" /> <TimePicker disabled={true} format="24hr" hintTex...
src/Alert.js
erictherobot/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Alert = React.createClass({ mixins: [BootstrapMixin], propTypes: { onDismiss: React.PropTypes.func, dismissAfter: React.PropTypes.number, closeLabel: React.PropTypes.string }, getD...
src/js/components/nodes/registerNodes/driverFields/DriverFields.js
knowncitizen/tripleo-ui
/** * Copyright 2017 Red Hat Inc. * * 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...
assets/javascripts/kitten/components/interaction/stepper/test.js
KissKissBankBank/kitten
import renderer from 'react-test-renderer' import React from 'react' import { Stepper } from './index' describe('NEXT // <Stepper />', () => { it('default item matches with snapshot', () => { const component = renderer .create( <Stepper> <Stepper.Item>Default Item</Stepper.Item> <...
client/src/components/role/RoleUpdate.js
FlevianK/cp2-document-management-system
import React from 'react'; import { connect } from 'react-redux'; import { Link, browserHistory } from 'react-router'; import { bindActionCreators } from 'redux'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; import MuiThem...
app/main.js
mapbox/osm-comments-frontend
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Application'; import ContentContainer from './containers/Content'; import NotesList from './components/NotesList'; import ChangesetsList from './components/ChangesetsList'; import { Router, Route, IndexRoute, Redirect } from 'rea...
examples/with-yarn-workspaces/packages/bar/index.js
BlancheXu/test
import React from 'react' const Bar = () => <strong>bar</strong> export default Bar
docs/client/components/pages/Image/gettingStarted.js
koaninc/draft-js-plugins
// It is important to import the Editor which accepts plugins. // eslint-disable-next-line import/no-unresolved import Editor from 'draft-js-plugins-editor'; // eslint-disable-next-line import/no-unresolved import createImagePlugin from 'draft-js-image-plugin'; import React from 'react'; const imagePlugin = createImag...
lib/FocusTrap.js
danauclair/react-hotkeys
import React from 'react'; const FocusTrap = React.createClass({ propTypes: { onFocus: React.PropTypes.func, onBlur: React.PropTypes.func, focusName: React.PropTypes.string, // Currently unused component: React.PropTypes.any }, getDefaultProps() { return { component: 'div' } }, ...
src/components/NotFoundPage.js
mgavaudan/react-hack
import React from 'react'; import { Link } from 'react-router'; const NotFoundPage = () => { return ( <div> <h4> 404 Page Not Found </h4> <Link to='/'> Go back to homepage </Link> </div> ); }; export default NotFoundPage;
src/PageHeader.js
blue68/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const PageHeader = React.createClass({ render() { return ( <div {...this.props} className={classNames(this.props.className, 'page-header')}> <h1>{this.props.children}</h1> </div> ); } }); export default PageHeader;
webpack/withProtectedView.js
theforeman/foreman_templates
import React from 'react'; // TODO: extract to core const withProtectedView = ( ProtectedComponent, ProtectionComponent, protectionFn, extraProtectionProps = {} ) => props => protectionFn(props) ? ( <ProtectedComponent {...props} /> ) : ( <ProtectionComponent {...props} {...extraProtectionProps} />...
app/jsx/assignments_2/student/components/Context.js
djbender/canvas-lms
/* * Copyright (C) 2019 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ClassProperties.js
liamhu/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'; export default class extends Component { static propTyp...
front/components/navbar/navbar.js
bigkangtheory/wanderly
import React, { Component } from 'react'; import { Link } from 'react-router'; import '../../styles/navbar.css'; class Navbar extends Component { constructor(props) { super(props); } handleClick = () => { this.props.action() } render() { const { pathname } = this.props.routing if(pathname === '...
src/components/artboard/ArtBoardTabs.js
justinyueh/express-react
import { Router, Route, IndexRoute, Redirect, Link, browserHistory } from 'react-router' import React from 'react' import SysTpl from './artboardtabs/SysTpl' export default class ArtBoardTabs extends React.Component { constructor() { super(); this.addTpl = this.addTpl.bind(this); this.state = { a...
frontend/src/Components/Table/VirtualTableHeader.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React from 'react'; import styles from './VirtualTableHeader.css'; function VirtualTableHeader({ children }) { return ( <div className={styles.header}> {children} </div> ); } VirtualTableHeader.propTypes = { children: PropTypes.node }; export default Vir...
src/app/tabela.js
hugotacito/tabelaebtt
import React from 'react'; import {Navbar, Grid, Row, Col} from 'react-bootstrap'; import {Formulario} from './form'; import {Resultado} from './resultado'; export class Tabela extends React.Component { constructor(props) { super(props); this.state = { formData: {} }; this.handleUserInput = this...