path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
monkey/monkey_island/cc/ui/src/components/attack/techniques/T1087.js
guardicore/monkey
import React from 'react'; import ReactTable from 'react-table'; import {renderMachineFromSystemData, ScanStatus} from './Helpers'; import MitigationsComponent from './MitigationsComponent'; class T1087 extends React.Component { constructor(props) { super(props); } static getColumns() { return ([{ ...
ajax/libs/react-instantsearch/4.1.3/Connectors.js
him2him2/cdnjs
/*! ReactInstantSearch 4.1.3 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define....
templates/react/components/foo/Form.js
api-platform/generate-crud
import React, { Component } from 'react'; import { Field, reduxForm } from 'redux-form'; import PropTypes from 'prop-types'; class Form extends Component { static propTypes = { handleSubmit: PropTypes.func.isRequired, error: PropTypes.string }; renderField = data => { data.input.className = 'form-co...
src/components/books/edit-page/BookCopies.js
great-design-and-systems/cataloguing-app
import { DatePicker, FormGroup, Selector, TextInput } from '../../common/'; import { LABEL_BARCODE, LABEL_CALL_NUMBER, LABEL_COST, LABEL_CURRENCY, LABEL_DATE_OF_PURCHASED, LABEL_FUND, LABEL_LOCATION, LABEL_VENDOR } from '../../../labels/'; import { currenciesForDropdown, fundsForDropdown } from '../../....
src/components/player.js
josebigio/PodCast
import React, { Component } from 'react'; import FontAwesome from 'react-fontawesome'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { initializeAudio, playAudio, pauseAudio, setAudioPosition } from '../actions' import Timer from './timer'; import ProgressBar from './progress...
src/components/SearchInputAnimated.story.js
creditornot/wolt-web-common
import React from 'react'; import { storiesOf } from '@storybook/react'; import { decorateAction } from '@storybook/addon-actions'; import { withKnobs, text, number, object, boolean, select } from '@storybook/addon-knobs'; import SearchInputAnimated from './SearchInputAnimated'; /** * Action decorator that transforms...
src/common/app/start.js
redcom/doctori-romani-in-berlin
// @flow import type { State } from '../../common/types'; import React from 'react'; import { IntlProvider } from 'react-intl'; import { connect } from 'react-redux'; import { appStart, appStop } from './actions'; const start = (WrappedComponent: Function) => { class Start extends React.Component { static propT...
src/svg-icons/av/fiber-new.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFiberNew = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zM8.5 15H7.3l-2.55-3.5V15H3.5V9h1.25l2.5 3.5V9H8.5v6zm5-4.74H11v...
Console/app/src/components/dashboard/dashboard.js
RisenEsports/RisenEsports.github.io
//-------------------------------------------------- // Components //-------------------------------------------------- import React from 'react'; //-------------------------------------------------- // CSS //-------------------------------------------------- import './dashboard.css'; //--------------------------...
src/svg-icons/action/view-day.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewDay = (props) => ( <SvgIcon {...props}> <path d="M2 21h19v-3H2v3zM20 8H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zM2 3v3h19V3H2z"/> </SvgIcon> ); ActionViewDay = pure(A...
examples/macOs/components/link.js
gabrielbull/react-desktop
import React, { Component } from 'react'; import { View, Link } from 'react-desktop/macOs'; export default class extends Component { render() { return ( <View background="#efefef" padding="20px" width="300px" direction="row"> <Link color="red"> This is a link </Link> <Link...
src/interface/icons/Intellect.js
anom0ly/WoWAnalyzer
import React from 'react'; const icon = (props) => ( <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="16 17 32 32" className="icon" {...props} > <path d="M28.832,44.802h6.559v-1.101h-6.559V44.802z M29.91,47.004h4.402v-1.101H29.91V47.004z M32.156,18.379c-0.012,0-0.031,0-0.045,0...
assets/Caixa.js
luandro/intro-web-app
import React, { Component } from 'react'; export default class Caixa extends Component { constructor(props) { super(props); this.state = { likes: 0, name: 'Luandro Vieira' } this.curtir = this.curtir.bind(this); } render() { return ( <div style={{border: '1px solid blue', padding: '15px 10px'}}> ...
app/javascript/mastodon/features/ui/components/column_link.js
Ryanaka/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import Icon from 'mastodon/components/icon'; const ColumnLink = ({ icon, text, to, href, method, badge }) => { const badgeElement = typeof badge !== 'undefined' ? <span className='column-link__badge'>{badge}</span...
src/server.js
kinshuk-jain/TB-Dfront
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present 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 path from 'path'; import express from 'express';...
src/ModalFooter.js
leozdgao/react-bootstrap
import React from 'react'; import classnames from 'classnames'; class ModalFooter extends React.Component { render() { return ( <div {...this.props} className={classnames(this.props.className, this.props.modalClassName)}> {this.props.children} </div> ); } } ModalFooter.propTypes = { ...
src/components/Menu/Menu.js
propertybase/react-lds
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import omit from 'lodash-es/omit'; import ControlledMenu from './ControlledMenu'; import { ClickOutside } from '../ClickOutside'; // https://github.com/oliviertassinari/babel-plugin-transform-react-remove-prop-types#is-it-safe const propTyp...
test/test_helper.js
pippo111/react-dnd-chess
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...
react-app/src/containers/CareNeedFormContainer.js
floodfx/gma-village
import React, { Component } from 'react'; import CareNeedForm from '../components/CareNeedForm'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import LoadingIndicator from '../components/LoadingIndicator'; import Alert from '../components/Alert'; import { ActionCreators } from '../a...
index/components/ProteinImage.js
JDRomano2/VenomKB
import React, { Component } from 'react'; import { Image } from 'react-bootstrap'; import PropTypes from 'prop-types'; import ReactTooltip from 'react-tooltip'; class ProteinImage extends Component { constructor(props) { super(props); } render() { return ( <div className="jdr-box"> {(this....
src/routes/homePage/components/postsNew.js
LawynnJana/weneedanidea
import React, { Component } from 'react'; import { Field, reduxForm } from 'redux-form'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { createPost } from '../actions'; class PostsNew extends Component { renderField(field) { const { meta: { touched, error } } = field; ...
app/components/game/spectator.js
erisalke/react-playground
import React from 'react'; import { connect } from 'react-redux'; import store from '../../store'; import TicTacToeScore from './tictactoe-score'; import SpectatorBoard from './spectatorBoard'; const Spectator = React.createClass({ render: function() { return ( <div className = 'main-containerX'> <Tic...
client/src/components/Header/index.js
otavioarc/freeCodeCamp
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'gatsby'; import FCCSearch from 'react-freecodecamp-search'; import NavLogo from './components/NavLogo'; import UserState from './components/UserState'; import './header.css'; function Header({ disableSettings }) { return ( <he...
Js/Ui/Components/Filters/TimeAgo.js
Webiny/Webiny
import React from 'react'; import Webiny from 'webiny'; class TimeAgo extends Webiny.Ui.Component { } TimeAgo.defaultProps = { value: null, invalidMessage: 'invalid date format', renderer() { const {moment} = this.props; const timeAgo = moment(this.props.value, moment.ISO_8601); ...
src/svg-icons/action/cached.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCached = (props) => ( <SvgIcon {...props}> <path d="M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97....
client/src/index.js
hah-nan/papabear2
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { createStore, applyMiddleware } from 'redux' import { Router, browserHistory } from 'react-router' import reduxThunk from 'redux-thunk' import cookie from 'react-cookie' import routes from './routes' import reducer...
webapp/app/components/Users/Filters/TypeUser/index.js
EIP-SAM/SAM-Solution-Node-js
// // Radio button type user filters page user // import React from 'react'; import { ControlLabel, FormGroup, Col } from 'react-bootstrap'; import RadioGroup from 'components/RadioGroup'; import styles from 'components/Users/Filters/styles.css'; /* eslint-disable react/prefer-stateless-function */ export default cla...
src/svg-icons/maps/subway.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsSubway = (props) => ( <SvgIcon {...props}> <circle cx="15.5" cy="16" r="1"/><circle cx="8.5" cy="16" r="1"/><path d="M7.01 9h10v5h-10zM17.8 2.8C16 2.09 13.86 2 12 2c-1.86 0-4 .09-5.8.8C3.53 3.84 2 6.05 2 8....
fields/components/Checkbox.js
naustudio/keystone
import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; import { darken, fade } from '../../admin/client/utils/color'; import E from '../../admin/client/constants'; var Checkbox = React.createClass({ displayName: 'Checkbox', propTypes: { checked: React.PropTypes.bool, c...
app/containers/NotFoundPage/index.js
ninjaref/ninjaref
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route */ import React from 'react'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; import messages from './messages'; export default function NotFound() { return ( <article> ...
packages/components/src/GridLayout/Grid.component.js
Talend/ui
import React from 'react'; import PropTypes from 'prop-types'; import 'react-grid-layout/css/styles.css'; import { Responsive, WidthProvider } from 'react-grid-layout'; import Tile from './Tile'; import { SKELETON_TILE_CONF } from './Tile/Skeleton/SkeletonTile.component'; import css from './Grid.scss'; import { getTh...
src/scripts/containers/Summary.js
scyclow/fire-sale
import React, { Component } from 'react'; import { connect } from 'react-redux'; import _ from 'lodash'; import BidSummary from '../components/BidSummary'; const select = (state) => { const bids = state.bids.size && state.bids.map(bid => bid.set( 'item', state.items.get( bid.get('itemId') ) )).to...
components/Layout/Header.js
sunilbandla/caniuse-inmyapp
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-present 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'; ...
src/components/Cover.js
amaralflavio/cmovies
import React from 'react'; import styled from 'styled-components'; import CoverInfo from './CoverInfo'; const Cover = (props) => { return ( <div className={props.className}> <div className="img-cover"> <CoverInfo data={props.data}/> <div className="filter">&nbsp...
frontend/routes.js
Yelp/beans
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import MetricsList from './containers/MetricsList'; import MeetingRequest from './containers/MeetingRequest'; import User from './containers/User'; import App from './App'; export default ( <Route path="/" component={App}> <IndexRoute...
src/routes.js
robertkirsz/mtg-counter
import React from 'react' import { Route } from 'react-router' import { App } from './components' export default ( <Route path="/" component={App}> <Route path="*" component={App} /> </Route> )
src/resources/assets/react-app/components/HomePage.js
z5internet/ruf
import React, { Component } from 'react'; class HomePage extends Component { render() { return ( <div> This is where your homepage content goes. </div> ) } } export default HomePage;
src/svg-icons/image/looks-one.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooksOne = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-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-5 14h-2V9h-2V7h4v10z"/> </SvgIcon> ); ImageLooksOne = pure(ImageLooksOn...
webpack/components/MultiSelect/index.js
stbenjam/katello
import React from 'react'; import PropTypes from 'prop-types'; import { FormGroup, ControlLabel } from 'react-bootstrap'; import BootstrapSelect from '../react-bootstrap-select'; function MultiSelect(props) { const options = props.options.map(option => ( <option key={`option-${option.value}`} value={option.valu...
src/client/index.js
JBostelaar/JS-Boilerplates
import store from 'app/store'; import getRoutes from 'app/utils/getRoutes'; import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; window.store = store; render(( <Provider store={store}> <Router children={getRout...
extensions/cms/components/DataResolverEditor.js
axax/lunuc
import React from 'react' import {BuildIcon} from 'ui/admin' import {jsonPropertyTemplates, jsonTemplates} from './templates/dataResolver' import Async from '../../../client/components/Async' const CodeEditor = (props) => <Async {...props} load={import(/* webpackChunkName: "codeeditor" */ '../../../client/components/C...
docs/src/examples/views/Advertisement/Types/AdvertisementExampleCommonUnits.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Advertisement } from 'semantic-ui-react' const AdvertisementExampleCommonUnits = () => ( <div> <Advertisement unit='medium rectangle' test='Medium Rectangle' /> <Advertisement unit='banner' test='Banner' /> <Advertisement unit='leaderboard' test='Leaderboard' /> <Ad...
docs/src/app/components/pages/components/TextField/ExampleError.js
kasra-co/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...
app/javascript/mastodon/components/icon.js
Nyoho/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class Icon extends React.PureComponent { static propTypes = { id: PropTypes.string.isRequired, className: PropTypes.string, fixedWidth: PropTypes.bool, }; render () { const { id, c...
src/Parser/HolyPaladin/Modules/Items/Ilterendi.js
Yuyz0112/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import ItemLink from 'common/ItemLink'; import { formatPercentage } from 'common/format'; import Module from 'Parser/Core/Module'; import calculateEffectiveHealing from 'Parser/Co...
src/server.js
materliu/web-cache-speech-auxiliary-program
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel-core/polyfill'; import path from 'path'; import express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import Router from './routes'; import Html from './components/Html'; const server = global....
packages/mcs-lite-ui/src/MobileFixedFooter/MobileDeviceCard.example.js
MCS-Lite/mcs-lite
import React from 'react'; import styled from 'styled-components'; import { storiesOf } from '@storybook/react'; import { withInfo } from '@storybook/addon-info'; import MobileFixedFooter from '.'; import Button from '../Button'; const ButtonWrapper = styled.div` display: flex; padding: 8px; > * { flex: 1; ...
app/components/paginationIndicator.js
andry-baka/dapur-ngebul-app
import React from 'react'; import { StyleSheet, View } from 'react-native'; import {RkStyleSheet} from 'react-native-ui-kitten'; export class PaginationIndicator extends React.Component { constructor(props) { super(props); } _renderItem(index, selected) { let style = [styles.base]; if (selected)...
app/javascript/mastodon/features/public_timeline/components/column_settings.js
gol-cha/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage } from 'react-intl'; import SettingToggle from '../../notifications/components/setting_toggle'; export default @injectIntl class ColumnSettings extends React....
examples/full-width-table/src/index.js
react-tools/react-table
import React from 'react' import ReactDOM from 'react-dom' import './index.css' import App from './App' ReactDOM.render(<App />, document.getElementById('root'))
src/components/ui/UserNavigation.js
davewallace/astaria
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import './UserNavigation.css'; // dead function for undefined event handlers function noop () { return; } class UserNavigation extends React.Component { // define allowed props across all instances of this type ...
examples/sliders/index.js
lukebarlow/omniscience
import React from 'react' import { render } from 'react-dom' import Tracks from './components/Tracks' import Mixer from './components/Mixer' import tracks from './tracks' import { watch } from '../../src/index' window.init = function(){ window.tracks = watch(tracks) function draw(){ render( ...
node_modules/react-router/es6/IndexLink.js
narmeen12/ecan
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import React from 'react'; import Link from './Link'; /** *...
app/javascript/mastodon/features/compose/index.js
mecab/mastodon
import React from 'react'; import ComposeFormContainer from './containers/compose_form_container'; import UploadFormContainer from './containers/upload_form_container'; import NavigationContainer from './containers/navigation_container'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import ...
app/react-icons/fa/yelp.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaYelp extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m20.3 29.4v2.9q-0.1 6.5-0.2 6.8-0.2 0.7-1.1 0.9-1.2 0.2-4.1-0.9t-3.6-2q-0.3-0.3...
admin/client/App/elemental/Modal/body.js
benkroeger/keystone
import React from 'react'; import { css } from 'glamor'; import theme from '../../../theme'; function ModalBody ({ className, ...props }) { return ( <div className={css(classes.body, className)} {...props} /> ); }; const classes = { body: { paddingBottom: theme.modal.padding.body.vertical, paddingL...
src/js/index.js
Gradient-kaist/Gradient
import '../scss/index.scss'; import React from 'react'; import ReactDOM from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import Main from './Main'; const body = ( <AppContainer> <Main /> </AppContainer> ); let element = document.getElementById('content'); ReactDOM.render(body, element); d...
src/editors/MultiSelectEditor.js
diogofcunha/react-data-grid-extensions
import React from 'react'; import PropTypes from 'prop-types'; import Select from 'react-select'; import editorWrapper from './editorWrapper'; import 'react-select/dist/react-select.css'; const MultiSelectEditor = ({ editorValue, onValueChanged, ...selectProps }) => { return ( <div className="editor-main edit...
js/setup.js
CoulDracula/carrying
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import App from './App'; import configureStore from './configureStore'; function setup():React.Component { class Root extends Component { constructor() { super(); this.state = { isLoading: false, stor...
src/svg-icons/navigation/arrow-forward.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowForward = (props) => ( <SvgIcon {...props}> <path d="M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"/> </SvgIcon> ); NavigationArrowForward = pure(NavigationArrowForward); Navigation...
react-flux-mui/js/material-ui/src/svg-icons/action/thumbs-up-down.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionThumbsUpDown = (props) => ( <SvgIcon {...props}> <path d="M12 6c0-.55-.45-1-1-1H5.82l.66-3.18.02-.23c0-.31-.13-.59-.33-.8L5.38 0 .44 4.94C.17 5.21 0 5.59 0 6v6.5c0 .83.67 1.5 1.5 1.5h6.75c.62 0 1.15-.38 1...
node_modules/@material-ui/core/esm/ListItemIcon/ListItemIcon.js
pcclarke/civ-techs
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties"; import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import withStyles from '../styles/withStyles'; export var styles = function styles(theme) ...
app/javascript/mastodon/components/status.js
codl/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Avatar from './avatar'; import AvatarOverlay from './avatar_overlay'; import RelativeTimestamp from './relative_timestamp'; import DisplayName from './display_name'; import StatusContent fro...
src/App.js
mpeinado/react-starter
import React, { Component } from 'react'; import { BrowserRouter, Route, Switch } from 'react-router-dom'; //import logo from './logo.svg'; import Navbar from './components/Navbar'; import TodosPage from './components/todo/TodosPage'; import Todo from './components/todo/Todo'; import AboutPage from './components/AboutP...
src/components/common/Radio.js
nbkhope/componentes-controlados
import React from 'react'; const Radio = (props) => { const { name, value, checked, onChange, label } = props; return ( <div> <label style={{ color: 'red' }}> <input type="radio" name={name} value={value} checked={checked} onChange={onChange} ...
src/containers/Header/Header.js
docunext/minimalist-react-component
import React from 'react'; import { connect } from 'react-redux' import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Header.css'; import Link from '../Link'; import SetName from '../../components/setName'; const Header = () => ( <div className={s.header}> <ul> <li> ...
frontend/src/DiscoverMovie/Overview/DiscoverMovieOverviews.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { Grid, WindowScroller } from 'react-virtualized'; import Measure from 'Components/Measure'; import DiscoverMovieItemConnector from 'DiscoverMovie/DiscoverMovieItemConnector'; import dimensions from 'Styles/Variables/dimensions'; impor...
client/tagsModal.js
BillZito/greenfield
import React, { Component } from 'react'; import { StyleSheet, Text, View, AsyncStorage, Modal } from 'react-native'; import { Font } from 'exponent'; import { Container, Content, Button } from 'native-base'; import { Ionicons } from '@exponent/vector-icons'; export default class ModalView extends React.Comp...
src/decorators/withViewport.js
amit242/antyka
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'events'; import { canUseDOM } from '../../node_modules/react/lib/ExecutionEnvironment'; let eventEmitter; let viewport = {width: 1366, heig...
admin/client/App/screens/Item/components/EditForm.js
jstockwin/keystone
import React from 'react'; import moment from 'moment'; import assign from 'object-assign'; import { Col, Form, FormField, FormInput, ResponsiveText, Row, } from 'elemental'; // import { css, StyleSheet } from 'aphrodite/no-important'; import { Fields } from 'FieldTypes'; import { fade } from '../../../../utils/c...
src/uBlog/src/index.js
patrickfly/uBlog
import 'babel-polyfill'; import React from 'react'; import {render} from 'react-dom'; import {Router, browserHistory} from 'react-router'; import routes from './routes'; import './styles/styles.css'; import '../node_modules/bootstrap/dist/css/bootstrap.min.css'; import configureStore from './store/configureStore'; impo...
src/icons/Arrow.js
ericyd/surfplot-ui
/** * Icon uses a 100x100 grid for layout */ import React from 'react'; import Icon from './Icon'; const Arrow = props => ( <Icon className={props.className}> <path d='M0 10 L40 50 L0 90 L0 10'/> </Icon> ); Arrow.propTypes = { className: React.PropTypes.string }; export default Arrow;
js/jqwidgets/demos/react/app/fileupload/selectedfilesrendering/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxFileUpload from '../../../jqwidgets-react/react_jqxfileupload.js'; class App extends React.Component { render() { let imageTypes = ['.gif', '.jpg', '.png']; let videoTypes = ['.wmv', '.mov', '.avi', '.divx', '.mpeg', '.mpg', '....
src/components/sections/Testimonial.js
eddiesmithjr/eddiesmithjr.github.io
import React from 'react'; import classNames from 'classnames'; import { SectionTilesProps } from '../../utils/SectionProps'; import SectionHeader from './partials/SectionHeader'; const propTypes = { ...SectionTilesProps.types } const defaultProps = { ...SectionTilesProps.defaults } const Testimonial = ({ clas...
src/Parser/Mage/Shared/Modules/Features/CancelledCasts.js
enragednuke/WoWAnalyzer
import React from 'react'; import CoreCancelledCasts from 'Parser/Core/Modules/CancelledCasts'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import { STATISTIC_ORDER } from 'Main/StatisticBox'; class CancelledCasts extends CoreCancelledCasts { static IGNORED_ABILITIES = [ ...
examples/04 Sortable/Stress Test/Container.js
wagonhq/react-dnd
import React, { Component } from 'react'; import update from 'react/lib/update'; import { name } from 'faker'; import Card from './Card'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd/modules/backends/HTML5'; const style = { width: 400 }; @DragDropContext(HTML5Backend) export defa...
src/containers/AccountChangeEmailModal.js
alphasp/pxview
import React, { Component } from 'react'; import { View, Keyboard } from 'react-native'; import { connect } from 'react-redux'; import { withFormik, Field } from 'formik'; import { connectLocalization } from '../components/Localization'; import ModalForm from '../components/ModalForm'; import PXFormInput from '../compo...
admin/client/Signin/components/Alert.js
creynders/keystone
/** * Renders an Alert. Pass either an isInvalid and invalidMessage prop, or set * the signedOut prop to true to show the standard signed out message */ import React from 'react'; import { Alert } from 'elemental'; const AlertView = function (props) { if (props.isInvalid) { return <Alert key="error" type="dange...
src/components/Home.js
LenaKari/happy-days
import React from 'react'; import { Link } from 'react-router-dom'; // MaterialUI import {Card, CardHeader, CardText} from 'material-ui/Card'; import RaisedButton from 'material-ui/RaisedButton'; // Styling/icons import '../styles/css/home.css'; const styles = { card: { margin: '1.5rem 1rem' }, header: { fontWeigh...
packages/react/src/components/molecules/SortResults/SortResults.stories.js
massgov/mayflower
import React from 'react'; import { StoryPage } from 'StorybookConfig/preview'; import SortResults from './index'; import SortResultsDocs from './SortResults.md'; import sortResultsOptions from './SortResults.knobs.options'; export const SortResultsExample = (args) => <SortResults {...args} />; SortResultsExample.st...
turismo_client/src/components/logout.js
leiverandres/turismo-risaralda
import React from 'react' import {Redirect} from 'react-router-dom' import Auth from '../utils/auth' const Logout = (props) => { Auth.logout() return ( <Redirect to='login' /> ) } export default Logout
docs/src/app/components/pages/components/DatePicker/ExampleToggle.js
mmrtnz/material-ui
import React from 'react'; import DatePicker from 'material-ui/DatePicker'; import Toggle from 'material-ui/Toggle'; const optionsStyle = { maxWidth: 255, marginRight: 'auto', }; /** * This example allows you to set a date range, and to toggle `autoOk`, and `disableYearSelection`. */ export default class DatePi...
app/javascript/mastodon/features/account/components/action_bar.js
mstdn-jp/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import DropdownMenuContainer from '../../../containers/dropdown_menu_container'; import { Link } from 'react-router-dom'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; ...
src/components/navigation/Navigation.js
ummahusla/Hacker-Reader
import React from 'react'; import { Navbar, Nav, NavItem, MenuItem, NavDropdown } from 'react-bootstrap'; import { LinkContainer } from 'react-router-bootstrap'; import './Navigation.css'; const Navigation = () => ( <div className="container"> <Navbar fluid fixedTop> <Navbar.Header> <Navbar.Brand> ...
src/documentation/Page.js
wfp/ui
import PropTypes from 'prop-types'; import React from 'react'; import Wrapper from '../components/Wrapper'; const Page = ({ children, pageWidth, subTitle, title }) => { return ( <Wrapper style={{ margin: '4rem auto' }} className="wfp--story" pageWidth={pageWidth ? pageWidth : 'sm'}> <h2 c...
src/features/delayApp/Component.js
meetfranz/franz
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { inject, observer } from 'mobx-react'; import { defineMessages, intlShape } from 'react-intl'; import injectSheet from 'react-jss'; import { Button } from '@meetfranz/forms'; import { Icon } from '@meetfranz/ui'; import { mdiArrowRig...
client/components/infoCell.js
vidi-insights/vidi-dashboard
'use strict' import React from 'react' export default React.createClass({ render () { const {title, value} = this.props return ( <div className="col-xs-12 col-sm-6 col-md-3 col-lg-3 process-stats-container process-stats-floated"> <ul className="list-unstyled list-inline cf"> <li><h4...
docs/src/app/components/pages/components/AutoComplete/Page.js
ichiohta/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import autoCompleteReadmeText from './README'; import autoCompleteCode from '!ra...
app/plugins/core/version/index.js
KELiON/cerebro
import React from 'react' import { search } from 'cerebro-tools' import icon from '../icon.png' import { version } from '../../../../package.json' // Settings plugin name const NAME = 'Cerebro Version' // Settings plugins in the end of list const order = 9 // Phrases that used to find settings plugins const KEYWORDS...
examples/RTLSubMenu.js
codeart1st/react-contextmenu
import React, { Component } from 'react'; import ContextMenuTrigger from 'src/ContextMenuTrigger'; import ContextMenu from 'src/ContextMenu'; import MenuItem from 'src/MenuItem'; import SubMenu from 'src/SubMenu'; const MENU_TYPE = 'RTL'; export default class RTLSubMenu extends Component { constructor(props) { ...
src/views/inlet/Frame.android.js
anysome/objective
/** * Created by Layman(http://github.com/anysome) on 16/2/19. */ import React from 'react'; import {StyleSheet, Navigator, TouchableOpacity, AppState, BackAndroid, Image, LayoutAnimation, Keyboard} from 'react-native'; import TabNavigator from 'react-native-tab-navigator'; import NavigatorWithBar from '../../widge...
packages/material-ui-icons/src/Vignette.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><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-2zm-9 15c-4.42 0-8-2.69-8-6s3.58-6 8-6 8 2.69 8 6-3.58 6-8 6z" /></g> , 'Vignette');
client/src/components/SkillsList.js
serban-petrescu/candidate-management
/** * Created by blajv on 22.06.2017. */ import React from 'react'; import SkillItem from "./SkillItem"; import {fetchCandidateSkills} from "../actions/CandidateActions"; /** * Component used to display all the skills of the selected candidate * by accessing the Skills tab. Skills List is built from a a list of Sk...
examples/complete-todo-app/src/index.js
mgmarlow/Redux-Samples
import React from 'react'; import ReactDOM from 'react-dom'; import { createStore } from 'redux'; import { Provider } from 'react-redux'; import todoApp from './reducer'; import VisibleTodoList from './components/container/VisibleTodoList'; import AddTodo from './components/container/AddTodo'; import Footer from './c...
src/components/Feedback/Feedback.js
fishkel-truelogic/react-model
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback extends Component { render() { return ( <div className="Feedback...
client/src/components/Draftail/blocks/ImageBlock.js
torchbox/wagtail
import PropTypes from 'prop-types'; import React from 'react'; import { gettext } from '../../../utils/gettext'; import MediaBlock from '../blocks/MediaBlock'; /** * Editor block to preview and edit images. */ const ImageBlock = (props) => { const { blockProps } = props; const { entity, onEditEntity, onRemoveEn...
docs/src/app/components/pages/components/AutoComplete/ExampleFilters.js
barakmitz/material-ui
import React from 'react'; import AutoComplete from 'material-ui/AutoComplete'; const colors = [ 'Red', 'Orange', 'Yellow', 'Green', 'Blue', 'Purple', 'Black', 'White', ]; const fruit = [ 'Apple', 'Apricot', 'Avocado', 'Banana', 'Bilberry', 'Blackberry', 'Blackcurrant', 'Blueberry', 'Boysenberry...
src/views/HomeView.js
SBP07/frontend
import React from 'react'; export default class HomeView extends React.Component { render() { return ( <div className="container" style={{ 'textAlign': 'center' }}> <img src={require('../images/speellogo.png')} width="auto" height="50px" style={{ 'margin': '10px' }} ...
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch05/05_03/start/src/index.js
yevheniyc/C
import React from 'react' import { render } from 'react-dom' import './stylesheets/ui.scss' import { App } from './components/App' import { Whoops404 } from './components/Whoops404' import { Router, Route, hashHistory } from 'react-router' window.React = React render( <Router history={hashHistory}> <Route path="/"...
app/react-icons/fa/eye-slash.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaEyeSlash extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m12.4 29.8l1.7-3.1q-1.9-1.5-3-3.6t-1.1-4.5q0-2.7 1.4-5-5.2 2.6-8.5 7.8 3.7 ...