path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/Header/Header.js
ds160607/pwa_boilerplate
import React from 'react' import { Link } from 'react-router' import { Header as MDLHeader, Navigation } from 'react-mdl' import './Header.scss' export const Header = () => ( <MDLHeader title='Title' scroll> <Navigation> <Link to='/'>main</Link> <Link to='/counter'>counter</Link> </Navigation> ...
lib/index.js
davidbecker6081/ConnectME
import React from 'react'; import ReactDOM from 'react-dom'; import RoutesContainer from './containers/RoutesContainer'; import Routes from './Routes'; import { Provider } from 'react-redux'; import configureStore from './configureStore'; import createHistory from '../node_modules/history/createBrowserHistory'; import ...
src/renderer/components/MapFilter/internal/FormattedValue.stories.js
digidem/ecuador-map-editor
// @flow import React from 'react' import withPropsCombinations from 'react-storybook-addon-props-combinations' // import { action } from '@storybook/addon-actions' import FormattedValue from './FormattedValue' import * as fieldTypes from '../constants/field_types' export default { title: 'internal/FormattedValue'...
client/modules/App/components/DevTools.js
yagneshmodh/QuizeApp
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 /> ...
docs/app/Examples/collections/Form/Variations/index.js
aabustamante/Semantic-UI-React
import React from 'react' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' const FormFormVariationsExamples = () => ( <ExampleSection title='Form Variations'> <ComponentExample title='Size' de...
app/admin/dashboard/HomeTab.js
in42/internship-portal
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Divider, Header, Container, Button } from 'semantic-ui-react'; import axios from 'axios'; // import SubmitPost from '../post/SubmitPost'; import PostList from '../post/PostList'; // import PostItem from '../post/PostItem'; // import ...
new-lamassu-admin/src/pages/Wizard/components/OperatorInfo.js
lamassu/lamassu-server
import { makeStyles } from '@material-ui/core' import React from 'react' // import OperatorInfo from 'src/pages/OperatorInfo' import styles from 'src/pages/AddMachine/styles' const useStyles = makeStyles(styles) function WizardOperatorInfo() { const classes = useStyles() return ( <div className={classes.wra...
BUILD/js/components_js/product-detail.js
kevincaicedo/MyStore-Front-end
import React from 'react' import Caruosel from './carousel.js' import ProductContent from './product-details/product-detail-content.js' import ProductFoot from './product-details/product-detail-foot.js' export default class ProductDetail extends React.Component { render(){ return <div className="thumbnail"...
client-app-php/js/components/LanguageSelector/index.js
wangwii/i18n-demo
import style from './style.css'; import React, { Component } from 'react'; import Translater from '../../helper/translater' @Translater class LanguageSelector extends Component { render(){ const { lang, setLang, t } = this.props; return ( <ul className={style.main}> { lang.available_l...
app/javascript/mastodon/features/account_timeline/index.js
RobertRence/Mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { fetchAccount } from '../../actions/accounts'; import { refreshAccountTimeline, expandAccountTimeline } from '../../actions/timelines'; import StatusL...
src/js/components/icons/base/PlatformReactjs.js
odedre/grommet-final
/** * @description PlatformReactjs SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor...
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js
jenyckee/midi-redux
import React from 'react' import { reduxForm } from 'redux-form' export const fields = [] const validate = (values) => { const errors = {} return errors } type Props = { handleSubmit: Function, fields: Object, } export class <%= pascalEntityName %> extends React.Component { props: Props; defaultProps = ...
app/js/components/oauth.js
mattiaslundberg/typer
import React from 'react' import {get} from '../utils/net' export default class OAuth extends React.Component { constructor(props) { super(props) this.state = {} get("/api/oauth/").then( response => this.handleResponse(response), error => this.setState({error: "Failed to get login url"}) ...
src/js/components/Parents.js
mudrenok/bookmarks
import React from 'react'; import PropTypes from 'prop-types'; const Parents = ({ parents, folderClick }) => { return ( <div className="parents"> {parents.map((item, id) => { return ( <div className="parents__item" onClick={() => {folderClick(item.id)}} ...
examples/query-params/app.js
jamiehill/react-router
import React from 'react'; import { Router, Route, Link } from 'react-router'; var User = React.createClass({ render() { var { query } = this.props.location; var age = query && query.showAge ? '33' : ''; var { userID } = this.props.params; return ( <div className="User"> <h1>User id: {u...
app/components/PostDate/index.js
brainsandspace/ship
/** * * PostDate * */ import React from 'react'; import styled from 'styled-components'; const Wrapper = styled.p` // font-style: italic; color: #bbb; margin: 0; text-align: right; `; function PostDate(props) { return ( <Wrapper className="date"> {props.children} </Wrapper> ); } PostDate.propTypes...
information/blendle-frontend-react-source/app/components/forms/EmailSuggestion.js
BramscoChill/BlendleParser
import React from 'react'; import PropTypes from 'prop-types'; import i18n from 'instances/i18n'; import EmailAddress from 'managers/emailaddress'; export default class extends React.Component { static propTypes = { email: PropTypes.string.isRequired, onClick: PropTypes.func.isRequired, delay: PropTypes....
src/components/Contact.react.js
Acehaidrey/addrbook
'use strict'; import React from 'react'; import {Link} from 'react-router'; /** * Styled button component. */ export default class Contact extends React.Component { constructor(props) { super(props); } render() { var contact = this.props.contactObj; return ( <div> <h5> This is m...
node_modules/react-icons/fa/file-audio-o.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const FaFileAudioO = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m35.8 8.5q0.6 0.6 1 1.7t0.5 1.9v25.8q0 0.8-0.6 1.5t-1.6 0.6h-30q-0.9 0-1.5-0.6t-0.6-1.5v-35.8q0-0.8 0.6-1.5t1.5-0.6h20q0.9 0 2 0.4t1.7 1.1z m-9.9-5.5v8.4h8.4q-0.3-...
src/components/Search/SearchPage.js
stevefabian/React-Movies
import React, { Component } from 'react'; import SearchResults from './SearchResultsComponent'; import './Search.css'; import $ from 'jquery'; class SearchPage extends Component { constructor(props) { super(props); this.state = { movie: { title: '', tota...
app/javascript/components/provider-dashboard-charts/emptyChart.js
ManageIQ/manageiq-ui-classic
import React from 'react'; const EmptyChart = () => ( <div className="empty-chart-content"> <span className="pficon pficon-info" /> <span>{__('No data available')}</span> </div> ); export default EmptyChart;
components/animals/leskoptevTribarva.adult.js
marxsk/zobro
import React, { Component } from 'react'; import { Text } from 'react-native'; import styles from '../../styles/styles'; import InPageImage from '../inPageImage'; import AnimalText from '../animalText'; import AnimalTemplate from '../animalTemplate'; const IMAGES = [ require('../../images/animals/leskoptevTribarva/...
demo/src/index.js
kedromelon/mdlr
import React, { Component } from 'react'; import { render } from 'react-dom'; import ntof from 'note-to-frequency'; import { AudioContext, Modulation, Oscillator, Output } from '../../src'; class App extends Component { state = { input: 'C4', note: 'C4' }; handleChange = e => this.setState({ input: e.t...
app/components/Main.js
vandosant/react-notetaker
import React from 'react'; import { RouteHandler } from 'react-router'; import SearchGithub from './SearchGithub'; class Main extends React.Component { render() { return ( <div className="main-container"> <nav className="navbar navbar-default" role="navigation"> <div className="col-sm-7 c...
app/src/Frontend/components/icon/ico.js
ptphp/ptphp
/** * Created by jf on 15/11/3. */ import React from 'react'; import classNames from 'classnames'; class Ico extends React.Component { static propTypes = { value: React.PropTypes.string, size: React.PropTypes.string }; static defaultProps = { value: 'success', size: 'sm...
src/components/CarerRegister/AvatarUpload.js
efiliba/bcc
import React from 'react'; import Dropzone from 'react-dropzone'; const activeStyle = { borderStyle: 'solid', borderColor: 'green', backgroundColor: '#eee' }; const rejectStyle = { borderStyle: 'solid', borderColor: 'red', backgroundColor: '#ffdddd' }; const AvatarUpload = ({preview, handleA...
docs/src/pages/style/icons/SvgMaterialIcons.js
cherniavskii/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import AccessAlarmIcon from '@material-ui/icons/AccessAlarm'; import ThreeDRotation from '@material-ui/icons/ThreeDRotation'; import { withStyles } from 'material-ui/styles'; const styles = theme => ({ icon: { margin: theme.spacing.unit, }, }); fu...
docs/src/app/components/pages/components/DatePicker/ExampleDisableDates.js
hai-cea/material-ui
import React from 'react'; import DatePicker from 'material-ui/DatePicker'; function disableWeekends(date) { return date.getDay() === 0 || date.getDay() === 6; } function disableRandomDates() { return Math.random() > 0.7; } /** * `DatePicker` can disable specific dates based on the return value of a callback. *...
src/app/components/list/User.js
cherishstand/OA-react
import React from 'react'; import Avatar from 'material-ui/Avatar'; import FileFolder from 'material-ui/svg-icons/file/folder'; import FontIcon from 'material-ui/FontIcon'; import List from 'material-ui/List/List'; import ListItem from 'material-ui/List/ListItem'; import DownIcon from 'material-ui/svg-icons/Hardware/ke...
pootle/static/js/auth/components/EmailConfirmation.js
r-o-b-b-i-e/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import { PureRenderMixin } from...
vertex_ui/src/components/ColorPicker/Photoshop/PhotoshopFields.js
zapcoop/vertex
import React from 'react'; import reactCSS from 'reactcss'; import color from 'react-color/lib/helpers/color'; import { EditableInput } from 'react-color/lib/components/common'; export const PhotoshopPicker = ({ onChange, rgb, hsv, hex }) => { const styles = reactCSS({ default: { fields: { padding...
public/js/components/chat/ChatCC.react.js
IsuruDilhan/Coupley
import React from 'react'; import Paper from 'material-ui/lib/paper'; import TextField from 'material-ui/lib/text-field'; import FlatButton from 'material-ui/lib/flat-button'; import ThreadStore from '../../stores/ThreadStore'; import LoginStore from '../../stores/LoginStore'; import Emojis from './emojis'; var socket ...
definitions/npm/grommet_v1.1.0/test_grommet_v1.1.0.js
mkscrg/flow-typed
// @flow import React, { Component } from 'react'; import Accordion from 'grommet/components/Accordion'; import AccordionPanel from 'grommet/components/AccordionPanel'; import Anchor from 'grommet/components/Anchor'; import Animate from 'grommet/components/Animate'; import App from 'grommet/components/App'; import Arti...
modules/dqt/jsx/react.navigationStepper.js
driusan/Loris
import React from 'react'; import PropTypes from 'prop-types'; import {Stepper} from './components/stepper'; const NavigationStepper = (props) => { const mySteps = ['Info', 'DefineFields', 'DefineFilters', 'ViewData']; const steps = [ { title: 'Create or Load', onClick: (e) => { e.preventD...
Lumino/js/components/GatewaysList/GatewayView.js
evonove/lumino
import React from 'react'; import PropTypes from 'prop-types'; import { Text, TouchableOpacity } from 'react-native'; import styles from './style'; /** * View of a single gateway. * @param {string} [name]. The gateway's name. * @param {string} [status]. The status of the gateway's connection. */ const GatewayVi...
vam-client/src/views/widgets/writeback/allergy/AllergenSearchResultsView.js
vistadataproject/nodeVISTAClients
import React from 'react'; import isNil from 'lodash/isNil'; import View from '~/react-views/View'; import OutlineView from '~/react-views/OutlineView'; import './writeAllergy.css'; class AllergenSearchResultsView extends View { constructor(props) { super(props); this.state = { lo...
node_modules/react-native/local-cli/templates/HelloWorld/index.android.js
jasonlarue/react-native-flashcards
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class HelloWorld extends Component { render() { return ( <View style={styles.containe...
src/svg-icons/notification/disc-full.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationDiscFull = (props) => ( <SvgIcon {...props}> <path d="M20 16h2v-2h-2v2zm0-9v5h2V7h-2zM10 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 10c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/> ...
src/client/assets/js/features/repos/components/RepoManager.js
me-box/databox-sdk
import React, { Component } from 'react'; import {connect} from 'react-redux'; import { bindActionCreators } from 'redux'; import Textfield from 'components/form/Textfield'; import Textarea from 'components/form/Textarea'; import Cell from 'components/Cell'; import Cells from 'components/Cells'; import Dialogue from '...
client/modules/Post/__tests__/components/PostListItem.spec.js
mygithub1216/MERN_SelfCar_Dashboard
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import PostListItem from '../../components/PostListItem/PostListItem'; import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper'; const post = { name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: ...
lib/views/machine-row.js
koding/kd-atom
'use babel' import React from 'react' import cx from 'classnames' import formatDate from '../utils/format-date' import { MachineStatusText, MachineStatus } from '../constants' const MachineRow = ({ machine, index, hasPowerProgress, hasMountProgress, onTurnOn, onTurnOff, onTerminal, onMount, onAlway...
src/Image.js
bbc/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const Image = React.createClass({ propTypes: { /** * Sets image as responsive image */ responsive: React.PropTypes.bool, /** * Sets image shape as rounded */ rounded: React.PropTypes.bool, /** * Sets imag...
lesson-2/idea-journal/solution/src/components/Footer.js
msd-code-academy/lessons
import React from 'react' import '../styles/Footer.css' class Footer extends React.Component { render() { return ( <div className="Footer"> <b>MSD Code Academy 2017</b> </div> ) } } export default Footer
packages/material-ui-icons/src/BatteryAlert.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let BatteryAlert = props => <SvgIcon {...props}> <path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4zM13 18h-2v-2h2v2zm0-4h-...
tasks/prerender.js
Dynamit/healthcare-microsite
/** * Interrogate routes and generate static HTML files */ import fs from 'fs'; import mkdirp from 'mkdirp'; import path from 'path'; import React from 'react'; import Router from 'react-router'; import routes from '../src/app/Routes'; import Layout from '../src/app/components/Layout'; import Helmet from 'react-helm...
src/components/calculators/show/CalculatorCompressedShow.js
getguesstimate/guesstimate-app
import React from 'react' import {connect} from 'react-redux' import {CalculatorShow} from './CalculatorShow' import {calculatorSpaceSelector} from './calculator-space-selector' export const CalculatorCompressedShow = connect(calculatorSpaceSelector)( props => !!props.calculator ? <CalculatorShow {...props} classe...
src/lessons/RenderStates/solution.js
garretttaco/learning-recompose
//////////////////////////////////////////////////////////////////////////////// // Exercise: // // Showing feedback in the UI is very important for user experience. However, this can lead to messy render functions. // Let's utilize HoCs to better organize our code to handle these different states. // Convert the class...
app/components/App.js
Cu7ious/Twitch-App
import React from 'react'; import { connect } from 'react-redux'; import { fetchData, searchChannels, filterAll, filterOnline, filterOffline, filterByQuery } from '../actions' import Tabs from '../components/Tabs'; import SearchBar from '../components/SearchBar'; import ChannelsList from '../components/ChannelsList'; ...
js/jqwidgets/demos/react/app/dropdownlist/loaddatafromselect/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js'; class App extends React.Component { componentDidMount() { let updating = false; let select = document.getElementById('select'); this.refs.myDropDo...
plugins/Hosting/js/components/warningbar.js
NebulousLabs/Sia-UI
import React from 'react' const WarningBarModal = ({ title, message }) => ( <div className={'warning-bar'}> <div className='warning-bar-modal-message'> <h3>{title}</h3> <p>{message}</p> </div> </div> ) export default WarningBarModal
docs/app/index.js
rubenmoya/react-toolbox
import 'react-toolbox/commons.css'; import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, useRouterHistory } from 'react-router'; import createHashHistory from 'history/lib/createHashHistory'; import Home from './components/layout/home'; import Install from './components/layout/install'; ...
packages/core/admin/admin/src/components/Theme/index.js
wistityhq/strapi
import React from 'react'; import { ThemeProvider } from '@strapi/design-system/ThemeProvider'; import PropTypes from 'prop-types'; import { lightTheme } from '@strapi/design-system/themes'; import GlobalStyle from '../GlobalStyle'; const Theme = ({ children, theme }) => ( <ThemeProvider theme={theme}> {children...
webpack/scenes/RedHatRepositories/components/EnabledRepository.js
stbenjam/katello
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { ListView, Spinner, OverlayTrigger, Tooltip } from 'patternfly-react'; import { connect } from 'react-redux'; import { getTypeIcon } from '../../../services/index'; import { setRepositoryDisabled } from '...
react-flux-mui/js/material-ui/src/svg-icons/social/sentiment-very-dissatisfied.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSentimentVeryDissatisfied = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.47 2 12s4.47 10 9.99 10S22 17.53 22 12 17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8...
src/svg-icons/action/favorite.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFavorite = (props) => ( <SvgIcon {...props}> <path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6...
geonode/contrib/monitoring/frontend/src/components/cels/geonode-status/index.js
MapStory/geonode
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; import AverageCPU from '../../molecules/average-cpu'; import AverageMemory from '../../molecules/average-memory'; import s...
client/src/containers/ThumbnailView/ThumbnailView.js
silverstripe/silverstripe-asset-admin
import i18n from 'i18n'; import React, { Component } from 'react'; import { inject } from 'lib/Injector'; import { galleryViewPropTypes, galleryViewDefaultProps } from 'containers/Gallery/Gallery'; import Griddle from 'griddle-react'; import PropTypes from 'prop-types'; class ThumbnailView extends Component { constr...
stories/ui/list.js
rcaferati/react-awesome-button
import React from 'react'; import PropTypes from 'prop-types'; import styles from './list.scss'; const List = ({ children }) => { console.log(children); return ( <ul className={styles.container}> { (children.length && children.map(child => <li>{child}</li>)) || (<li>{children}</li>) ...
src/app/components/Footer.js
paulawasylow/e-commerce-react-app
import React from 'react'; export default function Footer() { return ( <div className="footer"> <p>Web App in React by <span className="paw">Paula Andżelika Wasylów</span></p> </div> ); }
src/svg-icons/image/wb-incandescent.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageWbIncandescent = (props) => ( <SvgIcon {...props}> <path d="M3.55 18.54l1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8zM11 22.45h2V19.5h-2v2.95zM4 10.5H1v2h3v-2zm11-4.19V1.5H9v4.81C7.21 7.35 6 9.28 6 11.5c0 3.31 2....
src/icons/AndroidCalendar.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class AndroidCalendar extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M368.005,272h-96v96h96V272z M336.005,64v32h-160V64h-48v32h-24.01c-22.002,0-40,17.998-40,40v272 c0,22.002,1...
sms_sponsorship/webapp/src/index.js
eicher31/compassion-modules
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; import { I18nextProvider } from 'react-i18next'; import i18n from './i18n'; ReactDOM.render( <I18nextProvider i18n={ i18n }> <App /> <...
ui/src/js/common/footer/pages/TreeService.js
Dica-Developer/weplantaforest
import axios from 'axios'; import counterpart from 'counterpart'; import React, { Component } from 'react'; require('./treeService.less'); export default class treeService extends Component { constructor() { super(); this.state = { treeService: [] }; } componentDidMount() { var that = thi...
src/components/modal/Modal.js
ipfs/webui
import React from 'react' import PropTypes from 'prop-types' import CancelIcon from '../../icons/GlyphSmallCancel' export const ModalActions = ({ justify, className, children, ...props }) => ( <div className={`flex justify-${justify} pa2 ${className}`} style={{ backgroundColor: '#f4f6f8' }} {...props}> { childre...
docs/src/pages/ChipsPage.js
chris-gooley/react-materialize
import React from 'react'; import Row from 'Row'; import Col from 'Col'; import ReactPlayground from './ReactPlayground'; import PropTable from './PropTable'; import Samples from './Samples'; import chips from '../../../examples/Chips'; import Code from '!raw-loader!Chip'; const ChipsPage = () => ( <Row> <Col m=...
src/modules/Context/Context/Context.js
kendallroth/project_hub
//File: /src/modules/App/Context/Context.js //Purpose: App Header presentational component import React from 'react'; import { ContextActions } from 'modules/Context'; import './Context.css'; const Context = ({ project }) => { return ( <section className='app__context'> <ContextActions project={project} /...
src/components/SiteDBRow.js
wrleskovec/thoughtcrime
import React from 'react'; import moment from 'moment'; import 'moment-duration-format'; export default function SiteDBRow(props) { // utilize id that corresponds to index of element in state const { id, record, openModal, offset } = props; const onClickEdit = record => e => { $('#myModal').modal('show'); ...
lib/client.js
mysterycommand/rx-uncontext
import React from 'react'; import App from './components/App'; let element = React.createElement(App); let container = document.getElementById('app-container'); React.render(element, container);
src/svg-icons/notification/sync-problem.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSyncProblem = (props) => ( <SvgIcon {...props}> <path d="M3 12c0 2.21.91 4.2 2.36 5.64L3 20h6v-6l-2.24 2.24C5.68 15.15 5 13.66 5 12c0-2.61 1.67-4.83 4-5.65V4.26C5.55 5.15 3 8.27 3 12zm8 5h2v-2h-2v2z...
src/components/admin/reports/campaignStatusReport.js
EncontrAR/backoffice
import React from 'react'; import Table from '../../uielements/table'; import Pagination from '../../uielements/pagination'; import Button from '../../uielements/button'; import renderTitle from '../../../helpers/text/filter'; import { Row, Col, DatePicker } from 'antd' import Moment from 'react-moment'; import moment ...
packages/lore-hook-forms-material-ui/src/blueprints/destroy/Optimistic/index.js
lore/lore-forms
import React from 'react'; import createReactClass from 'create-react-class'; import Optimistic from './Optimistic'; export default createReactClass({ render: function() { const { modelName } = this.props; const { model, schema, fieldMap, actionMap, data, validators, ...
app/components/review/Review.js
jendela/jendela
import Parse from 'parse' import ParseReact from 'parse-react'; import React from 'react' import { Link } from 'react-router' import ReviewFilter from './ReviewFilter'; import ReviewContent from './ReviewContent'; import ReviewLocation from './ReviewLocation'; import ReviewPagination from './ReviewPagination'; import...
V2-Node/esquenta.v2/UI/src/views/Buttons/Buttons/Buttons.js
leandrocristovao/esquenta
import React, { Component } from 'react'; import { Button, Card, CardBody, CardHeader, Col, Row } from 'reactstrap'; class Buttons extends Component { render() { return ( <div className="animated fadeIn"> <Card> <CardHeader> <strong>Standard Buttons</strong> </CardHe...
src/components/atoms/Button/index.js
ygoto3/artwork-manager
// @flow import React from 'react'; import styles from './styles.css'; export type ButtonProps = { children: React$Element<any>; className?: string, onClick?: () => void; xxs?: boolean; xs?: boolean; s?: boolean; m?: boolean; l?: boolean; xl?: boolean; xxl?: boolean; }; function props2style(prop...
lib/site/topic-layout/topic-article/comments/list/comment/replies/component.js
DemocracyOS/democracyos
import React from 'react' import RepliesForm from './form/component' import RepliesList from './list/component' export default function CommentReplies (props) { if (!props.repliesVisibility) return null return ( <div className='comments-replies-container'> <RepliesList onDeleteReply={props.onDel...
src/containers/pages/create-deck/after-class-selection/right-container/topbar-assets/import-deck.js
vFujin/HearthLounge
import React from 'react'; import PropTypes from 'prop-types'; import Button from '../../../../../../components/buttons/button'; const DeckstringInput = ({importedDeckstring, handleInputChange, handleDeckImport}) =>{ return ( <div className="deck-import"> <input id="deckstring-popover" placeholder="Pas...
packages/vx-legend/src/legends/LegendItem.js
Flaque/vx
import React from 'react'; import PropTypes from 'prop-types'; export default function LegendItem({ children, flexDirection, margin, }) { return ( <div className='vx-legend-item' style={{ display: 'flex', alignItems: 'center', flexDirection, margin, }} ...
client/src/components/Dashboard/Dashboard.js
agsh/broviki
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { withStyles } from '@material-ui/core/styles'; import CssBaseline from '@material-ui/core/CssBaseline'; import Drawer from '@material-ui/core/Drawer'; import AppBar from '@material-ui/core/AppBar'; import Toolbar...
node_modules/react-icons/md/format-color-reset.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const MdFormatColorReset = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m8.8 8.8l24.3 24.3-2.1 2.1-4.4-4.3q-2.9 2.5-6.6 2.5-4.1 0-7.1-3t-2.9-7q0-2.7 2.2-6.9l-5.6-5.6z m21.2 14.6q0 1.1-0.2 2.1l-14.3-14.3 4.5-5.9q1.1 1.3 2.8 3.4t4....
src/basic/Drawer/index.js
sampsasaarela/NativeBase
import React, { Component } from 'react'; import RNDrawer from 'react-native-drawer'; export default class Drawer extends Component { constructor(props) { super(props); } render() { return ( <RNDrawer ref={c => this._root = c} {...this.props}/> ); } } Drawer.defaultProps = { type: 'overla...
stories/Welcome.js
miaket/operationcode_frontend
import React from 'react'; const styles = { main: { margin: 15, maxWidth: 600, lineHeight: 1.4, fontFamily: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif', }, logo: { width: 200, }, link: { color: '#1474f3', textDecoration: 'none', borderBottom: '1px ...
client/src/client-only-routes/ShowSettings.js
pahosler/freecodecamp
import React from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { Grid, Button } from '@freecodecamp/react-bootstrap'; import Helmet from 'react-helmet'; import { signInLoadingSelector,...
docs/src/examples/collections/Message/Types/index.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Icon } from 'semantic-ui-react' import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection' import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample' const MessageTypesExamples = () => ( <ExampleSection title='Types'> <ComponentExample ...
packages/es-components/src/components/navigation/sidenav/SideNav.js
jrios/es-components
import React from 'react'; import { useNavigation } from '../useNavigation'; import { useNavigationItem } from '../useNavigationItem'; const Navigation = useNavigation('vertical'); function SideNav(props) { return <Navigation {...props} />; } SideNav.Item = useNavigationItem('vertical'); export default SideNav;
public/js/cat_source/es6/components/modals/ModalContainer.js
riccio82/MateCat
import React from 'react' import $ from 'jquery' export const ModalContainer = ({title, styleContainer, children, onClose}) => { const handleClose = (event) => { event.stopPropagation() if ( $(event.target).closest('.matecat-modal-content').length == 0 || $(event.target).hasClass('close-matecat-...
src/components/newPhoto/NewPhotoView.js
timLoewel/sites
/** * Created by tim on 10/03/17. */ import {connect} from 'react-redux'; import React from 'react'; import { AppRegistry, AsyncStorage, Button, StyleSheet, Text, View, } from 'react-native'; class NewPhotoView extends React.Component { static navigationOptions = { tabBar: { label: 'NewPhoto', // vi...
fields/types/markdown/MarkdownField.js
creynders/keystone
import Field from '../Field'; import React from 'react'; import { FormInput } from 'elemental'; /** * TODO: * - Remove dependency on jQuery */ // Scope jQuery and the bootstrap-markdown editor so it will mount var $ = require('jquery'); require('./lib/bootstrap-markdown'); // Append/remove ### surround the select...
src/svg-icons/file/create-new-folder.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileCreateNewFolder = (props) => ( <SvgIcon {...props}> <path d="M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3v2z"/> </Svg...
src/components/error/e404/views/e404.js
vshao/webapp
import React from 'react' export default () => { return <div>非常抱歉,您迷路了!</div> }
src/main/js/builder/assets/containers/CheerleadersInput.js
Bernardo-MG/dreadball-toolkit-webpage
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { setCheerleaders } from 'builder/assets/actions'; import ObservableNumberInput from 'components/ObservableNumberInput'; import { selectCheerleaders } from 'build...
ee/client/audit/AuditPage.stories.js
VoiSmart/Rocket.Chat
import React from 'react'; import AuditPage from './AuditPage'; export default { title: 'ee/Audit', component: AuditPage, }; export const Default = () => <AuditPage />;
boilerplates/app/src/components/DataTable/AnimTableBody.js
hexagonframework/antd-admin-cli
import React from 'react' import PropTypes from 'prop-types' import { TweenOneGroup } from 'rc-tween-one' const enterAnim = [ { opacity: 0, x: 30, backgroundColor: '#fffeee', duration: 0, }, { height: 0, duration: 200, type: 'from', delay: 250, ease: 'easeOutQuad', onComplet...
src/components/Header/Header.js
tonimoeckel/lap-counter-react
/** * 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 React from 'react'; import Navigation from '../N...
test/test_helper.js
maorefaeli/BookList
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...
src/routes/home/index.js
sjackson212/A6DotCom
/** * 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 React from 'react'; import Home from './Home'; i...
app/javascript/mastodon/features/following/index.js
corzntin/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchAccount, fetchFollowing, expandFollowing, } from '../../actions/account...
vendor/htmlburger/carbon-fields/assets/js/fields/components/hidden/index.js
FolsomCreative/storynav
/** * The external dependencies. */ import React from 'react'; import PropTypes from 'prop-types'; import { setStatic } from 'recompose'; /** * The internal dependencies. */ import Field from 'fields/components/field'; import { enhance } from 'fields/components/text'; import { TYPE_HIDDEN } from 'fields/constants'...
src/layout/index.js
eujc21/sc-hackathon-pi-pong
import React from 'react' import Canvas from '../canvas.js' const DefaultLayout = (props) => { return ( <div> <Canvas/> </div> ) } export default DefaultLayout
src/components/Modal/index.js
fhelwanger/bayesjs-editor
import PropTypes from 'prop-types'; import React from 'react'; import ReactModal from 'react-modal'; import classNames from 'classnames'; import fontAwesome from 'font-awesome/css/font-awesome.css'; import { getComponentTestId } from 'utils/test-utils'; import styles from './styles.css'; const style = { overlay: { ...
cm19/ReactJS/your-first-react-app-exercises-master/exercise-10/complete/App.js
Brandon-J-Campbell/codemash
import React, { Component } from 'react'; import './App.css'; import Exercise from './Exercise'; class App extends Component { render() { return ( <div className="App"> <header className="App-header"> <h1 className="App-title">Exercise 10</h1> <h2 className="sub-title">Component...