path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/scripts/views/RoleSubRolesModal.react.js
darbio/auth0-roles-permissions-dashboard-sample
import _ from 'lodash'; import React from 'react'; import Router from 'react-router'; import BS from 'react-bootstrap'; import { CheckboxSimple } from '../partials/Forms.react'; export default class RoleSubRolesModal extends React.Component { constructor(props) { super(props); this.state = { title: 'Add Role...
src/entypo/Folder.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Folder'; let EntypoFolder = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M18.405,4.799C18.294,4.359,17.75,4,17.195,4h-6.814C9.827,4,9.051,3.682,8.659,3.293L8.063,2.705C7.671,...
Magistrate/client/components/permissions/permissionSelector.js
Pondidum/Magistrate
import React from 'react' import SelectorDialog from '../SelectorDialog' var PermissionSelector = React.createClass({ open() { this.refs.dialog.open(); }, render() { return ( <SelectorDialog name="Permissions" collectionUrl="/api/permissions/all" ref="dialog" {...t...
src/index.js
dgladkov/arcomage.js
import React from 'react'; import { render } from 'react-dom'; import { createStore, applyMiddleware } from 'redux'; import { Provider } from 'react-redux'; import logger from 'redux-logger'; import thunk from 'redux-thunk'; import { setupGame } from './actions'; import App from './containers/App'; import reducer fro...
src/React/Widgets/LayoutsWidget/OneByTwo.js
Kitware/paraviewweb
import React from 'react'; import PropTypes from 'prop-types'; import style from 'PVWStyle/ReactWidgets/LayoutsWidget.mcss'; export default function render(props) { return ( <table className={props.active === '1x2' ? style.activeTable : style.table} name="1x2" onClick={props.onClick} > ...
webui/pages/account/index.js
stiftungswo/izivi_relaunch
import React from 'react'; import { Segment, Container } from 'semantic-ui-react'; import App from '../../components/AppContainer'; import FormChangePassword from '../../components/account/FormChangePasswordContainer'; import FormChangeEmail from '../../components/account/FormChangeEmailContainer'; export default ({ ....
src/react/form/field/index.js
luxui/lux-core
import React from 'react'; // `React` must be in scope when using JSX import registry from '../../../lib/componentRegistry'; import './wrapper'; import { getType } from './types'; // import './types/checkbox'; // import './types/color'; // import './types/date'; // import './types/datetime'; // import './types/date...
packages/icons/src/md/communication/Email.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdEmail(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M40 8c2.21 0 4 1.79 4 4v24c0 2.21-1.79 4-4 4H8c-2.21 0-4-1.79-4-4l.02-24c0-2.21 1.77-4 3.98-4h32zm0 8v-4L24 22 8 12v4l16 10 16-10z" /> </IconBase> ...
src/components/BottomSection/BottomSection.js
goldylucks/adamgoldman.me
import React from 'react' import FbComments from '../FbComments' const BottomSection = () => ( <div style={{ background: '#fafafa', paddingTop: 20, paddingBottom: 20 }}> <div className='container'> <div className='row'> <div className='col-md-8 offset-md-2 col-xs-12'> <FbComments /> ...
javascript/src/containers/SelectionButtonContainer.js
unclecheese/silverstripe-kickassets
import React from 'react'; import Reflux from 'reflux'; import {Button} from 'react-bootstrap'; import SelectedItemsStore from '../stores/SelectedItemsStore'; import Actions from '../actions/Actions'; import Config from '../stores/Config'; import {Glyphicon, Popover} from 'react-bootstrap'; import cx from 'classnames';...
js/jqwidgets/demos/react/app/chart/lineseriewithmissingpoints/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxChart from '../../../jqwidgets-react/react_jqxchart.js'; import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js'; class App extends React.Component { componentDidMount() { let chart = this.refs.myChart.getInstan...
shared/fee/free.js
RalphSleigh/bookings
import React from 'react' import { Item } from "react-html-email"; //this represents a free event whereby no fees are expected/managed by the system. export const name = "free"; export const selection = "Free Event (don't manage fees)"; export const Config = () => <p>Nothing to decide3</p>; export const BookingForm ...
lib/components/split-pane.js
reslaurentii/hyper
/* eslint-disable quote-props */ import React from 'react'; import Component from '../component'; export default class SplitPane extends Component { constructor(props) { super(props); this.handleDragStart = this.handleDragStart.bind(this); this.onDrag = this.onDrag.bind(this); this.onDragEnd = this....
app/react-icons/fa/openid.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaOpenid extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m24.2 0v34.3l-6 2.8q-5.1-0.4-9.3-2.2t-6.5-4.7-2.4-6.1q0-3.1 2.2-5.9t6.2-4.5 8...
frontend/src/index.js
andora2/AgendaCabinet
import 'framework7/dist/css/framework7.ios.min.css'; import 'framework7/dist/css/framework7.ios.colors.min.css'; /* OR for Material Theme: import 'framework7/dist/css/framework7.material.min.css' import 'framework7/dist/css/framework7.material.colors.min.css' */ import './css/app.css'; import React from 'react'; imp...
node_modules/react-native-form-generator/src/fields/DatePickerField.android.js
paulunits/tiptap
'use strict'; import React from 'react'; import ReactNative from 'react-native'; let { View, StyleSheet, TextInput, Text, PickerIOS} = ReactNative; import {DatePickerComponent} from '../lib/DatePickerComponent'; export class DatePickerField extends React.Component{ setDate(date){ this.refs.datePickerComponent...
packages/editor/src/components/Icons/Icon.js
strues/boldr
import React from 'react'; const reduceProps = (props, reducers) => Object.keys(reducers).reduce( (o, k) => { if (o[k]) { const reducer = reducers[k]; const value = typeof reducer === 'function' ? reducer(o) : reducer; delete o[k]; return { ...o, ...value...
examples/js/column-filter/regex-filter-programmatically.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, ...
src/containers/DevTools.js
findinstore/instore-webapp
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-q" > <LogMonitor /> ...
demos/tooltips/demos/multiLine.js
isogon/styled-mdl-website
import React from 'react' import { Tooltip, Button, Icon } from 'styled-mdl' const demo = () => ( <Tooltip message={ <span> Share content on <br /> social media </span> } > <Button icon> <Icon name="share" /> </Button> </Tooltip> ) const caption = 'Multiple Line Toolti...
src/components/ReversiPiece.js
kjirou/reversi-tactics
import React from 'react'; import { REVERSI_PIECE_TYPES } from '../consts'; const ReversiPiece = ({ radius, reversiPieceType }) => { const width = radius * 2; const height = radius * 2; const fill = { [REVERSI_PIECE_TYPES.BLACK]: '#000000', [REVERSI_PIECE_TYPES.WHITE]: '#ffffff', }[reversiPieceType];...
index.android.js
drahmel/youhavetimer
import React, { Component } from 'react'; import { AppRegistry, Image, StyleSheet, Text, TouchableHighlight, View } from 'react-native'; var formatTime = require('minutes-seconds-milliseconds'); var StopWatch = React.createClass({ getInitialState: function () { return { timeElapsed: null, ...
app/containers/ShopsContainer.js
stratigos/stormsreach
import React from 'react'; import { connect } from 'react-redux'; import ShopList from '../components/ShopList'; const mapStateToProps = (state) => ({ shops: state.shops }); const ShopsContainer = connect(mapStateToProps)(ShopList); export default ShopsContainer;
app/javascript/mastodon/features/keyboard_shortcuts/index.js
Arukas/mastodon
import React from 'react'; import Column from '../ui/components/column'; import ColumnBackButtonSlim from '../../components/column_back_button_slim'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-co...
src/svg-icons/av/not-interested.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvNotInterested = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12...
src/components/ViewLayer.js
numb86/image-editor
// @flow import React from 'react'; type Props = { imageData: ImageData, isShow: boolean, }; export default class ViewLayer extends React.Component<Props> { constructor(props: Props) { super(props); this.canvas = null; this.ctx = null; } componentDidMount() { const {imageData} = this.props; ...
src/containers/HighlightShareContainer.js
mrozilla/mrozilla.cz
// ───────────────────────────────────────────────────────────────────────────── // import // ───────────────────────────────────────────────────────────────────────────── import React from 'react'; import { Aside, Icon, Button, Ul, Li } from '~components'; import { useSocialShare, useSelection, animation } from '~ut...
src/components/FacebookButton/FacebookButton.js
rogeriopvl/http.cat
import React from 'react' import facebookIcon from '../../assets/images/facebook.svg' import styles from './FacebookButton.module.css' const FacebookButton = ({ width, height}) => ( <div className={styles.container}> <a href="https://www.facebook.com/httpcats" target="_blank" rel="noopener nor...
src/js/components/Distribution.js
odedre/grommet-final
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import classnames from 'classnames'; import KeyboardAccelerators from '../utils/KeyboardAccelerators'; import Intl from '../utils/Intl'; i...
src/js/routes.js
peterbsmith2/pillars_react
import React from 'react' import { Route, IndexRedirect } from 'react-router' import App from './components/App' import DailyDonut from './components/DailyDonut' import Dashboard from './components/Dashboard' export default ( <Route path="/(:day)" component={App}> </Route> ) // <IndexRedirect to="dashboard" /> //...
app/containers/App.js
pamler/electron-mario
// @flow import React, { Component } from 'react'; import type { Children } from 'react'; export default class App extends Component { props: { children: Children }; render() { return ( <div> {this.props.children} </div> ); } }
packages/classic/src/ui/ElementView.js
netceteragroup/girders-elements
'use strict' import * as R from 'ramda' import I from 'immutable' import React from 'react' import PropTypes from 'prop-types' import { data } from '@skele/core' import memoizeOne from '../impl/memoize-one' export default R.curry((kind, Component, runtime) => { const { uiFor: globalUIFor, system } = runtime co...
src/AsyncCreatable.js
realestate-com-au/react-select
import React from 'react'; import Select from './Select'; const AsyncCreatable = React.createClass({ displayName: 'AsyncCreatableSelect', render () { return ( <Select.Async {...this.props}> {(asyncProps) => ( <Select.Creatable {...this.props}> {(creatableProps) => ( <Select {...as...
src/svg-icons/image/hdr-strong.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageHdrStrong = (props) => ( <SvgIcon {...props}> <path d="M17 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zM5 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 ...
frontend/inventory-web-ui/src/index.js
whitestryder-labs/simple-inventory-app
import React from 'react' import ReactDOM from 'react-dom' import { Router, Route, hashHistory, IndexRoute } from 'react-router' import App from './components/app/App' import './index.css' import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider' import injectTapEventPlugin from 'react-tap-event-plugin' import...
packages/core/src/components/Animate/GraphOrnament.js
appearhere/bloom
// @flow import React, { Component } from 'react'; import uniqueId from 'lodash/fp/uniqueId'; import cx from 'classnames'; import css from './GraphOrnament.css'; const line = 'M0,296 L27.9829272,287.949051 L64.0587374,283 L90.7790963,275.53125 ' + 'L113.184701,273.308594 L138.97667,268.863281 L158.953903,261.1953...
src/svg-icons/social/domain.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialDomain = (props) => ( <SvgIcon {...props}> <path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v...
src/Input.js
buildo/react-semantic-datepicker
import React from 'react'; import cx from 'classnames'; import { props } from 'tcomb-react'; import t from 'tcomb'; import View from 'react-flexview'; import skinnable from './utils/skinnable'; import pure from './utils/pure'; @pure @skinnable() @props({ value: t.maybe(t.String), onInputChange: t.Function, iconC...
node_modules/react-native/Libraries/Image/Image.ios.js
odapplications/WebView-with-Lower-Tab-Menu
/** * 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...
docs/app/Examples/collections/Message/Variations/index.js
Rohanhacker/Semantic-UI-React
import React from 'react' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' const MessageVariationsExamples = () => ( <ExampleSection title='Variations'> <ComponentExample title='Floating' desc...
fields/types/html/HtmlField.js
linhanyang/keystone
import Field from '../Field'; import React from 'react'; import tinymce from 'tinymce'; import { FormInput } from '../../../admin/client/App/elemental'; import evalDependsOn from '../../utils/evalDependsOn'; /** * TODO: * - Remove dependency on underscore */ var lastId = 0; function getId () { return 'keystone-h...
Origami/src/ui/src/containers/DefaultLayout/DefaultLayout.js
batra-mlp-lab/CloudCVfy-Frontend
import React, { Component } from 'react'; import { Redirect, Route, Switch } from 'react-router-dom'; import { Container } from 'reactstrap'; import { AppAside, AppBreadcrumb, AppFooter, AppHeader, AppSidebar, AppSidebarFooter, AppSidebarForm, AppSidebarHeader, AppSidebarMinimizer, AppSidebarNav, }...
src/components/button.js
nordsoftware/react-foundation
import React from 'react'; import PropTypes from 'prop-types'; import { ButtonSizes, ButtonColors } from '../enums'; import { GeneralPropTypes, FlexboxPropTypes, createClassName, generalClassNames, removeProps, objectKeys, objectValues } from '../utils'; /** * Button property types. * * @type {Object} */ const But...
vendor/htmlburger/carbon-fields/assets/js/fields/components/textarea/index.js
Apiki/gb-plugin-api
/** * The external dependencies. */ import React from 'react'; import PropTypes from 'prop-types'; import { compose, withHandlers, setStatic } from 'recompose'; /** * The internal dependencies. */ import Field from 'fields/components/field'; import withStore from 'fields/decorators/with-store'; import withSetup fr...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
carlosocarvalho/angular-two-template
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'));
src/Drawer/DrawerHeaderContent.js
kradio3/react-mdc-web
import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; const propTypes = { className: PropTypes.string, children: PropTypes.node, }; const DrawerHeaderContent = ({ className, children, ...otherProps }) => ( <div className={classnames( 'mdc-temporary-drawer_...
src/svg-icons/image/timer-3.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTimer3 = (props) => ( <SvgIcon {...props}> <path d="M11.61 12.97c-.16-.24-.36-.46-.62-.65-.25-.19-.56-.35-.93-.48.3-.14.57-.3.8-.5.23-.2.42-.41.57-.64.15-.23.27-.46.34-.71.08-.24.11-.49.11-.73 0-.55-.09-1....
examples/counter/index.js
pombredanne/redux
import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} </Provider>, document.getElementById('root') );
src/common/components/Compare.js
adamarthurryan/dubdiff
import React from 'react' import {connect} from 'react-redux' import {Segment, Grid} from 'semantic-ui-react' import * as Selectors from '../selectors' import {Format} from '../constants' import Header from './Header' import Footer from './Footer' import CompareControls from './CompareControls' import ShowPlaintex...
public/bundle.js
meankraken/Nightlife-app
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ retu...
actor-apps/app-web/src/app/components/sidebar/ContactsSectionItem.react.js
darioajr/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import DialogActionCreators from 'actions/DialogActionCreators'; import AvatarItem from 'components/common/AvatarItem.react'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class ...
geonode/contrib/monitoring/frontend/src/components/cels/memory/index.js
ingenieroariel/geonode
import React from 'react'; import PropTypes from 'prop-types'; import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend } from 'recharts'; import styles from './styles'; class Memory extends React.Component { static propTypes = { data: PropTypes.array.isRequired, } render() { return ( ...
website/src/components/landing.js
spacy-io/spaCy
import React from 'react' import classNames from 'classnames' import patternDefault from '../images/pattern_blue.jpg' import patternNightly from '../images/pattern_nightly.jpg' import patternLegacy from '../images/pattern_legacy.jpg' import overlayDefault from '../images/pattern_landing.jpg' import overlayNightly from...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/AsyncAwait.js
ro-savage/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 [ { id: 1, name: '1'...
frontend/containers/search/LoadMore.js
datoszs/czech-lawyers
import React from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import {Alert, Button} from 'react-bootstrap'; import {Msg} from '..'; const LoadMoreComponent = ({count, loadMore}) => ( <Alert bsStyle="success"> <Msg msg="search.load.more.text" count={count} /> &...
examples/using-inferno/pages/about.js
nelak/next.js
import React from 'react' export default () => ( <div>About us</div> )
frontend/src/components/ImagePicker.js
carlosascari/opencollective-website
import React, { Component } from 'react'; import ImageUpload from './ImageUpload'; import _ from 'lodash'; const REG_VALID_URL = /^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/; const REG_VALID_TWITTER_USERNAME = /^@?([a-zA-Z0-9_]{1,15})$/; const PRESET_AVATARS = [ '/static/images/users/icon-avatar-...
source/client/components/user/UserProfile.js
worminer/React.js-Financial-News
import React from 'react' import UserStore from '../../stores/UserStore' import UserInfo from './UserInfo' export default class UserProfile extends React.Component { constructor (props) { super(props) this.state = UserStore.getState() this.onChange = this.onChange.bind(this) } onChange (state) { ...
DEM_MVC_UI/src/scripts/components/Organisms/Footer/index.js
AndreyShpilevoy/DemProject
import React from 'react'; import {Container, Row, Column, Hidden} from 'dem-ui-grid'; import SocialMediaLinkArray from 'containers/SocialMediaLinkArray'; import commonStyles from 'commonScss/common.scss'; import styles from './index.scss'; class Footer extends React.Component { render() { return( <Conta...
index.js
thorsteinson/commitstory
import React from 'react' import { render } from 'react-dom' // CSS import './style/normalize.css' import './style/skeleton.css' import './style/main.css' // Redux / React configuration import Root from './src/containers/root' import configureStore from './src/store/configure-store' const store = configureStore() r...
client/components/BaseComponent.js
phoenixmusical/membres
import React from 'react'; export default class BaseComponent extends React.Component { static get contextTypes () { return { currentUser: React.PropTypes.object }; } constructor (props) { super(props); this.unmountListeners = []; } onUnmount (listener) {...
frontend/src/Settings/Notifications/Notifications/AddNotificationItem.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Button from 'Components/Link/Button'; import Link from 'Components/Link/Link'; import Menu from 'Components/Menu/Menu'; import MenuContent from 'Components/Menu/MenuContent'; import { sizes } from 'Helpers/Props'; import AddNotificatio...
src/svg-icons/action/bookmark-border.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionBookmarkBorder = (props) => ( <SvgIcon {...props}> <path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"/> </SvgIcon> ); ActionBookmarkBorder = pure(ActionBook...
examples/with-react-i18next/pages/page2.js
giacomorebonato/next.js
import React from 'react' import Link from 'next/link' import { translate } from 'react-i18next' import i18n from '../i18n' import PureComponent from '../components/PureComponent' import ExtendedComponent from '../components/ExtendedComponent' function Page2 ({ t, initialI18nStore }) { return ( <div> {t('...
docs/src/app/components/pages/components/TextField/ExampleCustomize.js
kasra-co/material-ui
import React from 'react'; import TextField from 'material-ui/TextField'; import {orange500, blue500} from 'material-ui/styles/colors'; const styles = { errorStyle: { color: orange500, }, underlineStyle: { borderColor: orange500, }, floatingLabelStyle: { color: orange500, }, floatingLabelFocu...
src/components/Icon/Icon.js
thinkingboxmedia/React-boilerplate
import React from 'react'; import PropTypes from 'prop-types'; /** * Icon component */ const Icon = ({ type, size, color }) => ( <svg width={size} height={size} viewBox="0 0 1024 1024" > <path fill={color} d={type} /> </svg> ); Icon.propTypes = { type: PropTypes.string.isRequ...
docs/src/FormsPage.js
15lyfromsaturn/react-materialize
import React from 'react'; import Row from '../../src/Row'; import Col from '../../src/Col'; import ReactPlayground from './ReactPlayground'; import PropTable from './PropTable'; import store from './store'; import Samples from './Samples'; import iconPrefixesInput from '../../examples/IconPrefixesInput'; import inputR...
client/ui/atoms/litter.js
LestaD/InstaClone
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' export const Litter = styled.div` position: fixed; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; background-color: rgba(0, 0, 0, 0.75); z-index:...
src/OverviewComponent.js
taskcluster/migration
import React from 'react'; import Row from 'react-bootstrap/lib/Row'; import Col from 'react-bootstrap/lib/Col'; import ProgressBar from 'react-bootstrap/lib/ProgressBar'; import OverlayTrigger from 'react-bootstrap/lib/OverlayTrigger'; import Tooltip from 'react-bootstrap/lib/Tooltip'; import moment from 'moment'; imp...
app/pages/patient/patientsettings.js
hichameyessou/blip
/** * Copyright (c) 2017, Tidepool Project * * This program is free software; you can redistribute it and/or modify it under * the terms of the associated License, which is identical to the BSD 2-Clause * License as published by the Open Source Initiative at opensource.org. * * This program is distributed in th...
example/_src/jsx/app.js
glennflanagan/react-responsive-accordion
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; ReactDOM.render( <App />, document.getElementById('App') );
collect-webapp/frontend/src/surveydesigner/newSurvey/components/NewSurveyParametersForm.js
openforis/collect
import React from 'react' import { compose } from "redux" import { connect } from 'react-redux' import { withFormik } from 'formik' import { Form, Row, Col } from 'reactstrap' import User from 'model/User' import { TextFormItem, SelectFormItem, SubmitButton, normalizeInternalName, asyncValidate } from 'common/compone...
src/components/Tags.js
rachsmithcodes/rachsmith.com
import React from 'react'; import { Link, useStaticQuery } from 'gatsby'; import { graphql } from 'gatsby'; const Tags = () => { const { allMdx: { group }, } = useStaticQuery(graphql` query { allMdx(limit: 2000) { group(field: frontmatter___tags) { fieldValue totalCount ...
app/viewtree/frontend/ParentNode.js
Dragonis/my-own-react-treeview-component
import React from 'react'; import { connect } from 'react-redux'; import store from '../../redux/store'; import {observer} from 'mobx-react'; import { setValue, setTotal, setFullTotal, getFullTotal } from '../../redux/actions'; import InlineEdit from '../../../node_modules/react-edit-inline/index'; @connect((store) =...
react-flux-mui/js/material-ui/src/svg-icons/action/perm-scan-wifi.js
pbogdan/react-flux-mui
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...
t1_client_react/src/components/app/employee/employeeRouting.js
tomjal/TicketOne
import React from 'react'; import { Route, Router } from 'react-router-dom'; import { history } from './../../../store/createHistory'; import EmployeeRoomsPage from './../../rooms/employeeRoomsPage'; const EmployeeRouting = () => ( <Router history={history}> <Route path='/' component={EmployeeRoomsPage} /> </...
client/node_modules/uu5g03/dist-node/common/base-mixin.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import ReactDOM from 'react-dom'; import Tools from './tools.js'; import Environment from '../environment/environment.js'; import $ from 'jquery'; export const BaseMixin = { //@@viewOn:statics statics: { UU5_Common_BaseMixin: { warnings: { containerStyleNotUsed: 'Prope...
src/index.js
krajvy/nearest-coordinates
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import * as serviceWorker from './serviceWorker'; import './grid.css'; import { Provider } from 'react-redux'; import store from './state/store'; window.store = store; ReactDOM.render( <Provider store={store}> <React.StrictM...
scripts/app/router.js
rek/grammar-notes
import React from 'react'; import {Router, Route, IndexRoute, browserHistory} from 'react-router'; import {Provider} from 'react-redux'; import Layout from './layout'; import Home from './home'; import ItemList from '../items/components/list'; import ItemCreate from '../items/components/create'; import ItemEdit from ...
src/frontend/main.js
Ivan-Korolenko/react-puzzle-15
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import css from './style.css'; import FlipMove from 'react-flip-move'; //Lang arrays const langRu = { appAuthor: <div className="app-author">Создатель: <a target="_blank" href="https://ivankorolenko.com" className="app-author__link"...
app/react-icons/fa/rss-square.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaRssSquare extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m14.4 28.6q0-1.2-0.8-2t-2-0.9-2 0.9-0.9 2 0.9 2 2 0.8 2-0.8 0.8-2z m7.9 2....
src/icons/WbSunnyIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class WbSunnyIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M13.51 9.69L9.93 6.1 7.1 8.93l3.59 3.59 2.82-2.83zM8 21H2v4h6v-4zM26 1.1h-4V7h4V1.1zm14.9 7.83L38.07 6.1l-...
app/javascript/flavours/glitch/components/loading_indicator.js
vahnj/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; const LoadingIndicator = () => ( <div className='loading-indicator'> <div className='loading-indicator__figure' /> <FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' /> </div> ); export default LoadingIndicat...
src/routes/notFound/index.js
jayzabs/mediashakertest
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../compo...
src/Table/Table.js
itsolutions-dev/react-tablify
// @flow import React from 'react'; import { toArray, flatten, cloneWithProps /* , toLowerCase */ } from '../utils'; type TableProps = { containerComponent: string | Function, component: string | Function, pageIndex: number, pageSize: number, pagination: Function, onPageChange: Function, search: string,...
main.js
Helena-High/school-app
import Exponent from 'exponent'; import React from 'react'; import { AppRegistry, Platform, StatusBar, StyleSheet, View, } from 'react-native'; import { NavigationProvider, StackNavigation, } from '@exponent/ex-navigation'; import { FontAwesome, } from '@exponent/vector-icons'; import Router from './na...
cdap-ui/app/cdap/components/CaskWizards/AddNamespace/PreferencesStep/index.js
caskdata/cdap
/* * Copyright © 2016 Cask Data, 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 t...
examples/with-pretty-url-routing/pages/greeting.js
kevmannn/next.js
import React from 'react' import PropTypes from 'prop-types' import {Link} from 'next-url-prettifier' import {Router} from '../routes' export default class GreetingPage extends React.Component { static getInitialProps ({query: {lang, name}}) { return {lang, name} } renderSwitchLangageLink () { const {la...
client/src/pages/accept-privacy-terms.js
otavioarc/freeCodeCamp
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { Grid, Row, Col, Button, FormGroup, ControlLabel, Checkbox } from '@freecodecamp/react-bootstrap'; import Helmet from 'react-helmet'; im...
apps/marketplace/components/SellerEdit/NewMasterAgreement.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' import PropTypes from 'prop-types' import format from 'date-fns/format' import parse from 'date-fns/parse' import AUheading from '@gov.au/headings/lib/js/react.js' import AgreementLinks from './AgreementLinks' const NewMasterAgreement = props => ( <React.Fragment> <AUheading level="1" s...
client/src/components/dashboard/Profile/Preferences/common/RibbonHeader.js
no-stack-dub-sack/alumni-network
import propTypes from 'prop-types'; import React from 'react'; import styled from 'styled-components'; const Container = styled.div` margin-top: 8px !important; margin-bottom: 8px !important; cursor: pointer; display: table; `; const RibbonHeader = ({ content, id, onClick, saveSection, showPopUp, ...
docs/src/app/components/pages/components/TextField/ExampleError.js
pradel/material-ui
import React from 'react'; import TextField from 'material-ui/TextField'; const TextFieldExampleError = () => ( <div> <TextField hintText="Hint Text" errorText="This field is required" /><br /> <TextField hintText="Hint Text" errorText="The error text can be as long as you want, i...
src/containers/DevTools.js
Kelvinmijaya/reactlite-starter-kit
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-w"> <LogMonitor /...
app/components/layouts/warningLayout.js
allecsro/dynotool
import React from 'react'; const WarningLayout = () => ( <div className="empty"> <div className="empty-icon"> <i className="icon icon-people" /> </div> <p className="empty-title h5">Your browser is not supported.</p> <p className="empty-subtitle">Chrome is recommended to be used for DynamoDB UI...
src/collections/Form/FormInput.js
ben174/Semantic-UI-React
import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' import Input from '../../elements/Input' import FormField from './FormField' /** * Sugar for <Form.Field control={Input} /> * @see Form * @see Input */ function FormInput(props) { const { con...
src/components/UI/loader/Loader.js
dopry/netlify-cms
import React from 'react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import styles from './Loader.css'; export default class Loader extends React.Component { state = { currentItem: 0, }; componentWillUnmount() { if (this.interval) { clearInterval(this.interval); ...
packages/mcs-lite-landing-web/src/components/Footer/Footer.js
MCS-Lite/mcs-lite
import React from 'react'; import PropTypes from 'prop-types'; import { Page, Row } from 'hedron'; import Loadable from 'react-loadable'; import P from 'mcs-lite-ui/lib/P'; import A from 'mcs-lite-ui/lib/A'; import LazyloadOnce from 'mcs-lite-ui/lib/LazyloadOnce'; import getCurrentYear from 'mcs-lite-ui/lib/utils/getCu...
src/utils/prop-types.js
ntgn81/material-ui
import React from 'react'; const horizontal = React.PropTypes.oneOf(['left', 'middle', 'right']); const vertical = React.PropTypes.oneOf(['top', 'center', 'bottom']); export default { corners: React.PropTypes.oneOf([ 'bottom-left', 'bottom-right', 'top-left', 'top-right', ]), horizontal: horiz...
webapp/components/nodeStats.js
schabluk/elastic-dc
import React from 'react' import _ from 'underscore' import UsagePie from './charts/usagepie' import AreaChart from './charts/area' import BulletChart from './charts/bullet' import './node.css' class NodeStats extends React.Component { constructor(props) { super(props) this.state = { beatRate: this....
src/collections/BootLayout/BootRow.js
shengnian/shengnian-ui-react
import React from 'react' import PropTypes from 'prop-types' import cx from 'classnames' import { mapToCssModules } from '../../lib/' const propTypes = { tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]), noGutters: PropTypes.bool, className: PropTypes.string, cssModule: PropTypes.object, } const d...