path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/action/card-membership.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCardMembership = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h4v5l4-2 4 2v-5h4c1.11 0 2-.89 2-2V4c0-1.11-.89-2-2-2zm0 13H4v-2h16v2zm0-5H4V4h16v6z"/> </SvgIcon>...
lib/ui/components/common/MethodLabel.js
500tech/mimic
import React from 'react'; import styled from 'styled-components'; import { Div } from 'ui/components/common/base'; const Label = styled(Div)` font-size: 10px; font-weight: 600; min-width: 37px; width: 37px; user-select: none; text-transform: uppercase; ${(props) => props.failed ? 'color: ' + props.theme...
components/Modes/TriviaGame.js
whatever555/countries
import React, { Component } from 'react'; import TopIcon from '../TopIcon'; import { translate } from '../../helpers/translate'; import { ResultBox, ContentHolder, NoScriptLink, FlagHolder, ListButton, ListItem, List, QuestionBox, } from '../../common/styles'; import styled from 'styled-components'; imp...
src/routes/content/media/detail/index.js
muidea/magicSite
import React from 'react' import PropTypes from 'prop-types' import { Link } from 'dva/router' import { connect } from 'dva' import { Button } from 'antd' import styles from './index.less' import { EditableTagGroup } from '../../../../components' const Detail = ({ mediaDetail }) => { const { name, fileUrl, expiratio...
src/components/Footer/Footer.js
foxleigh81/foxweb
/** * 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 withStyles from 'isom...
website/src/components/explorables/season1/episode1/index.js
jwngr/notreda.me
import _ from 'lodash'; import React from 'react'; import {Helmet} from 'react-helmet'; import Table from '../../../charts/Table'; import BarChart from '../../../charts/BarChart'; import InternalLink from '../../../common/InternalLink'; import NewsletterSignupForm from '../../../common/NewsletterSignupForm'; import {...
imports/ui/pages/Documents.js
themeteorchef/base
import React from 'react'; import { Link } from 'react-router'; import { Row, Col, Button } from 'react-bootstrap'; import DocumentsList from '../components/DocumentsList'; const Documents = () => ( <div className="Documents"> <Row> <Col xs={ 12 }> <div className="page-header clearfix"> <...
src/core/display/App/Navigation/Horizontal/CategoryNavigation.js
JulienPradet/pigment-store
import React from 'react' import {Match, Miss, Link} from 'react-router' import {Container, Item} from '../../util/View/HorizontalList' import ComponentNavigation from './ComponentNavigation' import ChildrenLinks from './ChildrenLinks' const extractCategoryChildren = (prefix, category) => [ ...category.categories.ma...
src/components/items_and_income_screen/items_and_income_screen.js
amybingzhao/savings-planner-web
import React, { Component } from 'react'; import Greeting from '../greeting'; import InfoTable from './info_table'; class ItemsAndIncomeScreen extends Component { constructor(props) { super(props); } render() { return ( <div> <Greeting text="Here's your current info:" /> <div class...
js/jqwidgets/demos/react/app/treegrid/virtualmodewithajax/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTreeGrid from '../../../jqwidgets-react/react_jqxtreegrid.js'; class App extends React.Component { render() { let source = { dataType: 'json', dataFields: [ { name: 'Emplo...
src/containers/editor/RepoEditor/SearchMan.js
mydearxym/mastani
import React from 'react' import { ISSUE_ADDR } from '@/config' import { buildLog } from '@/utils/logger' import SearchInputer from './SearchInputer' import TokenSetter from './TokenSetter' import { Wrapper, SearchTitle, FormWrapper, Letter, Footer, SetTokenWrapper, SetTokenIssue, } from './styles/sear...
node_modules/react-bootstrap/es/Jumbotron.js
vietvd88/developer-crawler
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
example/src/pages/ActivationByTap.js
ethanselzer/react-cursor-position
import React, { Component } from 'react'; import { Link } from 'react-router'; import { Col, Grid, Jumbotron, Row } from 'react-bootstrap'; import Helmet from 'react-helmet'; import Header from '../components/Header'; import ActivationByTap from '../components/ActivationByTap'; import 'bootstrap/dist/...
examples/react-pokedex/src/index.js
dawee/dispersive
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
Js/Ui/Components/ClickSuccess/index.js
Webiny/Webiny
import React from 'react'; import _ from 'lodash'; import Webiny from 'webiny'; class ClickSuccess extends Webiny.Ui.Component { constructor(props) { super(props); this.state = {data: {}}; this.bindMethods('getContent,onClick,hide'); } hide() { return this.dialog.hide(); ...
examples/shared-root/app.js
cojennin/react-router
import React from 'react'; import { Router, Route, Link } from 'react-router'; var App = React.createClass({ render() { return ( <div> <p> This illustrates how routes can share UI w/o sharing the URL. When routes have no path, they never match themselves but their chil...
src/routes.js
kpuno/survey-app
import React from 'react'; import { Route } from 'react-router'; import App from './components/App'; import HomePage from './components/HomePage'; import NotFoundPage from './components/NotFoundPage'; import SignIn from './components/auth/SignIn'; import SignUp from './components/auth/SignUp'; import EditProfile from ...
examples/auth-flow/app.js
rubengrill/react-router
import React from 'react' import { render } from 'react-dom' import { Router, Route, Link, History } from 'react-router' import { createHistory, useBasename } from 'history' import auth from './auth' const history = useBasename(createHistory)({ basename: '/auth-flow' }) const App = React.createClass({ getInitialS...
stories/examples/BadgeVariations.js
reactstrap/reactstrap
import React from 'react'; import { Badge } from 'reactstrap'; const Example = (props) => { return ( <div> <Badge color="primary">Primary</Badge> <Badge color="secondary">Secondary</Badge> <Badge color="success">Success</Badge> <Badge color="danger">Danger</Badge> <Badge color="warn...
packages/material-ui-icons/src/Train.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Train = props => <SvgIcon {...props}> <path d="M12 2c-4 0-8 .5-8 4v9.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h2.23l2-2H14l2 2h2v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V6c0-3.5-3.58-4-8-4zM7.5 17c-.83 0-1.5-.67-1.5-...
public/js/components/SubmitButton.js
davejtoews/cfl-power-rankings
import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; module.exports = class extends React.Component { static contextTypes = { feathersApp: PropTypes.object, login: PropTypes.bool }; state = { submission: { user: this.props.userId, ...
client/src/components/PollChart.js
juandaco/voting-app
import React from 'react'; import { CardTitle } from 'react-mdl'; import { Doughnut } from 'react-chartjs-2'; const PollChart = ({ pollTitle, chartData }) => { return ( <CardTitle expand style={{ color: '#000', marginTop: -40, }} > <div style={{ margi...
src/components/theme-giraffe/signature-list-pagination.js
MoveOnOrg/mop-frontend
import React from 'react' import PropTypes from 'prop-types' import cx from 'classnames' export const PreviousButton = ({ onClick, visible }) => ( <button onClick={onClick} className={cx('mo-btn', { hidden: !visible })} > Previous </button> ) PreviousButton.propTypes = { onClick: PropTypes.func, visi...
modules/TransitionHook.js
dashed/react-router
import React from 'react'; import warning from 'warning'; var { object } = React.PropTypes; var TransitionHook = { contextTypes: { router: object.isRequired }, componentDidMount() { warning( typeof this.routerWillLeave === 'function', 'Components that mixin TransitionHook should have a rou...
src/mui/field/ReferenceManyField.js
azureReact/AzureReact
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import LinearProgress from 'material-ui/LinearProgress'; import { crudGetManyReference as crudGetManyReferenceAction } from '../../actions/dataActions'; import { getIds, getReferences, nameRe...
src/main/js/element/ConsoleSelect.js
MannanM/corporate-game-share
import React, { Component } from 'react'; import { FormControl } from 'react-bootstrap'; import { GetConsoles } from '../Client'; class ConsoleSelect extends Component { componentDidMount() { GetConsoles().then((result) => { this.setState({ consoles: result.data }); }); } render() { let options...
src/components/calendar/content/layout/days.js
vFujin/HearthLounge
import React from 'react'; import dateFns from "date-fns"; import PropTypes from 'prop-types'; const CalendarDays = ({currentMonth, mobileBreakpoint}) => { const dateFormat = window.innerWidth <= mobileBreakpoint ? "ddd" : "dddd"; const days = []; let startDate = dateFns.startOfWeek(currentMonth); for (let i ...
src/components/Header.js
Morrisai/cppeiCalculator
import React from 'react'; import Typography from '@material-ui/core/Typography'; import { withStyles } from '@material-ui/core/styles'; import { Button, Paper } from '@material-ui/core'; import Model from '../model/model'; const styles = theme => ({ root: { background: theme.palette.primary.main, pa...
src/components/metadata/statics/StaticMetaArray.js
jekyll/jekyll-admin
import React from 'react'; import PropTypes from 'prop-types'; import StaticMetaArrayItem from './StaticMetaArrayItem'; import { computeFieldType } from '../../../utils/metadata'; export default function StaticMetaArray({ fieldValue }) { const items = fieldValue.map((item, i) => { const type = computeFieldType(i...
pkg/users/password-dialogs.js
moraleslazaro/cockpit
/* * This file is part of Cockpit. * * Copyright (C) 2020 Red Hat, Inc. * * Cockpit is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any l...
src/svg-icons/image/add-a-photo.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageAddAPhoto = (props) => ( <SvgIcon {...props}> <path d="M3 4V1h2v3h3v2H5v3H3V6H0V4h3zm3 6V7h3V4h7l1.83 2H21c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V10h3zm7 9c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-...
public/javascripts/components/banks.js
AlaskanHusky/currency-exchange
import React, { Component } from 'react'; import Menu from './menu'; class Banks extends Component { constructor() { super(); this.state = { banks: [] } } componentDidMount() { const xmlHttp = new XMLHttpRequest(); const vm = this; xmlHttp.onread...
js/App/Components/Events/EventsNavigator.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or *...
examples/example-1/CustomElementChoose.js
ezypeeze/react-mozer
import React from 'react'; import PropTypes from 'prop-types'; import {ElementHOC} from '../../src'; class CustomElementChoose extends React.Component { static propTypes = { items: PropTypes.arrayOf(String) }; static defaultProps = { items: [] }; render() { return ( ...
app/components/DetailHeader.js
arixse/ReactNeteaseCloudMusic
import React from 'react'; const DetailHeader = (props) => { return ( <div> <div className="detail-header" style={props.cla}> <span className="iconfont prev" onTouchTap={() => { props.history.goBack(); }}>&#xe622;</span> {props.title} </div> </...
test/focus-first-suggestion-clear-on-enter/AutosuggestApp.js
JacksonKearl/react-autosuggest-ie11-compatible
import React, { Component } from 'react'; import sinon from 'sinon'; import Autosuggest from '../../src/Autosuggest'; import languages from '../plain-list/languages'; import { escapeRegexCharacters } from '../../demo/src/components/utils/utils.js'; import { addEvent } from '../helpers'; const getMatchingLanguages = va...
actor-apps/app-web/src/app/components/activity/UserProfile.react.js
TimurTarasenko/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import ContactActionCreators from 'actions/ContactActionCreators'; import DialogActionCreators from 'actions/DialogActionCreators'; import PeerStore from 'stores/PeerStore'; import DialogStore from 'stores/DialogStore'; import AvatarItem from...
frontend/src/components/profile/navs.js
1905410/Misago
import React from 'react'; import { Link } from 'react-router'; // jshint ignore:line import Li from 'misago/components/li'; //jshint ignore:line import FollowButton from 'misago/components/profile/follow-button'; // jshint ignore:line import misago from 'misago/index'; //jshint ignore:line export class SideNav extend...
src/Option.js
matroid/react-select
import React from 'react'; import classNames from 'classnames'; const Option = React.createClass({ propTypes: { children: React.PropTypes.node, className: React.PropTypes.string, // className (based on mouse position) instancePrefix: React.PropTypes.string.isRequired, // unique prefix for the ids (...
client/routes.js
vilix13/SimpleMapApp
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './App/App'; import About from './App/About'; import Map from './Map/Map'; import Auth from './Auth/Auth'; import requireAuth from './utils/requireAuth'; export default ( <Route path="/" component={App}> <IndexRoute co...
src/index.js
superyorklin/gallery-by-react
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
src/svg-icons/social/person-add.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPersonAdd = (props) => ( <SvgIcon {...props}> <path d="M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/> </...
packages/icons/src/md/hardware/LaptopMac.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdLaptopMac(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M40 37h8c0 2.21-1.79 4-4 4H4c-2.21 0-4-1.79-4-4h8c-2.21 0-4-1.79-4-4V11c0-2.21 1.79-4 4-4h32c2.21 0 4 1.79 4 4l-.02 22c0 2.21-1.77 4-3.98 4zM8 11v2...
WasteApp/js/App.js
airien/workbits
import React, { Component } from 'react'; import { StyleSheet, AppState } from 'react-native'; import { Container, Content, Text, View } from 'native-base'; import Modal from 'react-native-modalbox'; import AppNavigator from './AppNavigator'; import ProgressBar from './components/loaders/ProgressBar'; import theme ...
src/components/PageInnerContent.js
branch-bookkeeper/pina
import React from 'react'; import PropTypes from 'prop-types'; import Grid from '@material-ui/core/Grid'; const propTypes = { className: PropTypes.string, children: PropTypes.node, }; const defaultProps = { className: null, children: null, } const PageInnerContent = ({ className, children }) => ( ...
components/GoogleAnalytics/GoogleAnalytics.js
websiddu/reactable
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; import { googleAnalyticsId } from '../../config'; const trackingCode = { __html: `(function(b,o,i,l,e,r){b.GoogleAnalyticsO...
src/svg-icons/notification/airline-seat-legroom-normal.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatLegroomNormal = (props) => ( <SvgIcon {...props}> <path d="M5 12V3H3v9c0 2.76 2.24 5 5 5h6v-2H8c-1.66 0-3-1.34-3-3zm15.5 6H19v-7c0-1.1-.9-2-2-2h-5V3H6v8c0 1.65 1.35 3 3 3h7v7h4.5c.83 0 1....
src/svg-icons/notification/sd-card.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSdCard = (props) => ( <SvgIcon {...props}> <path d="M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 6h-2V4h2v4zm3 0h-2V4h2v4zm3 0h-2V4h2v4z"/> </SvgIcon> ); NotificationS...
examples/query-params/app.js
tylermcginnis/react-router
import React from 'react' import { render } from 'react-dom' import { browserHistory, Router, Route, Link } from 'react-router' import withExampleBasename from '../withExampleBasename' const User = ({ params: { userID }, location: { query } }) => { let age = query && query.showAge ? '33' : '' return ( <div c...
client/src/modules/User/View.js
rikukissa/sql-exercises
import React, { Component } from 'react'; import { connect } from 'react-redux'; import styled from 'styled-components'; import { round, sum, uniq, keys, values, groupBy, range, sortBy } from 'lodash'; import differenceInSeconds from 'date-fns/difference_in_seconds'; import format from 'date-fns/format'; import { get...
ui/node_modules/react-bootstrap/src/ButtonGroup.js
bpatters/eservice
import React from 'react'; import classSet from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const ButtonGroup = React.createClass({ mixins: [BootstrapMixin], propTypes: { vertical: React.PropTypes.bool, justified: React.PropTypes.bool }, getDefaultProps() { return { bsClas...
docs/src/examples/modules/Modal/index.js
Semantic-Org/Semantic-UI-React
import React from 'react' import Content from './Content' import Types from './Types' import Variations from './Variations' import Usage from './Usage' const ModalExamples = () => ( <div> <Types /> <Content /> <Variations /> <Usage /> </div> ) export default ModalExamples
frontend/app/js/components/service/details/modal.js
serverboards/serverboards
import React from 'react' import Details from 'app/containers/service/details' import Modal from 'app/components/modal' import {goto} from 'app/utils/store' function ModalDetails(props){ let handleClose = undefined if (props.project) handleClose = () => goto(`/project/${props.project.shortname}/services`) re...
eventkit_cloud/ui/static/ui/app/components/MapTools/InvalidDrawWarning.js
terranodo/eventkit-cloud
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { withTheme } from '@material-ui/core/styles'; export class InvalidDrawWarning extends Component { render() { const { colors } = this.props.theme.eventkit; const style = { display: this.props.show ? 'i...
examples/Toast.js
15lyfromsaturn/react-materialize
import React from 'react'; import Toast from '../src/Toast'; export default <Toast toast="here you go!"> Toast </Toast>;
src/svg-icons/device/battery-50.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBattery50 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V13h10V5.33z"/><path d="M7 13v7.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 ...
src/Help.js
networknt/react-schema-form
// @flow /** * Created by steve on 20/09/15. */ import React from 'react' import Typography from '@mui/material/Typography' type Props = { form: any } const Help = ({ form: { description, variant, align, color, noWrap, paragraph, otherProps } }: Props) => ( <Typography variant={variant} align={align} ...
src/components/Layout.js
hyyfrank/webpack_teach
import React from 'react'; import { Header, LeftMenu, Footer } from './comlayout'; import appstyle from './layout.less'; export default class LayoutComponent extends React.Component { render(){ return ( <div className={appstyle.main}> <div className={appstyle.left}> <LeftMenu /> </...
docs/src/app/components/pages/components/Stepper/HorizontalLinearStepper.js
hai-cea/material-ui
import React from 'react'; import { Step, Stepper, StepLabel, } from 'material-ui/Stepper'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; /** * Horizontal steppers are ideal when the contents of one step depend on an earlier step. * Avoid using long step ...
docs/app/Examples/collections/Form/States/FormExampleLoading.js
koenvg/Semantic-UI-React
import React from 'react' import { Button, Form, Input } from 'semantic-ui-react' const FormExampleLoading = () => ( <Form loading> <Form.Input label='Email' placeholder='joe@schmoe.com' /> <Button>Submit</Button> </Form> ) export default FormExampleLoading
packages/wix-style-react/src/CustomModalLayout/docs/examples/NoHeaderExample.js
wix/wix-style-react
/* eslint-disable */ import React from 'react'; import { Box, Checkbox } from 'wix-style-react'; class NoHeaderExample extends React.Component { render() { return ( <Box> <CustomModalLayout onCloseButtonClick={() => {}} primaryButtonText="Save" secondaryButtonText="Can...
app/javascript/mastodon/components/column_back_button.js
pixiv/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; export default class ColumnBackButton extends React.PureComponent { static contextTypes = { router: PropTypes.object, pawooPopHistory: PropTypes.func, }; handleClick = () => { this.context....
webpack/move_to_pf/react-bootstrap-select/index.js
adamruzicka/katello
// This component should be replaced with a react version /* eslint-disable */ import React from 'react'; import ReactDOM from 'react-dom'; import { FormControl } from 'react-bootstrap'; import PropTypes from 'prop-types'; require('jquery'); require('bootstrap-select'); class BootstrapSelect extends React.Component {...
public/components/management/cluster/cluster-visualization.js
wazuh/wazuh-kibana-app
import React from 'react'; import KibanaVis from '../../../kibana-integrations/kibana-vis'; import { withErrorBoundary, withReduxProvider } from '../../../components/common/hocs'; import { compose } from 'redux'; export const KibanaVisWrapper = compose( withErrorBoundary, withReduxProvider )((props) => { return ...
packages/netlify-cms-core/src/components/MediaLibrary/MediaLibraryHeader.js
netlify/netlify-cms
import React from 'react'; import PropTypes from 'prop-types'; import styled from '@emotion/styled'; import { Icon, shadows, colors, buttons } from 'netlify-cms-ui-default'; const CloseButton = styled.button` ${buttons.button}; ${shadows.dropMiddle}; position: absolute; margin-right: -40px; left: -40px; to...
pootle/static/js/admin/components/ItemTable.js
iafan/zing
/* * 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 ItemTableRow from './It...
docs/src/examples/addons/Radio/Types/RadioExampleRadio.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Radio } from 'semantic-ui-react' const RadioExampleRadio = () => <Radio label='Make my profile visible' /> export default RadioExampleRadio
boilerplate/App/Services/ExamplesRegistry.js
nonameolsson/ignite-ir-boilerplate
import React from 'react' import { Text, View } from 'react-native' import R from 'ramda' import { ApplicationStyles } from '../Themes' import DebugConfig from '../Config/DebugConfig' let globalComponentExamplesRegistry = [] let globalPluginExamplesRegistry = [] export const addComponentExample = (title, usage = () =>...
docs/src/PageFooter.js
15lyfromsaturn/react-materialize
import React from 'react'; import Footer from '../../src/Footer'; class PageFooter extends React.Component { render() { let links = ( <ul> <li> <a className="grey-text text-lighten-3" href='https://github.com/react-materialize/react-materialize'>GitHub</a> </li> </ul> );...
docs/src/hero_example.js
mberneti/react-datepicker2
import React from 'react'; import momentJalaali from 'moment-jalaali'; import DatePicker from '../../src/index.dev.js'; import Switch from 'react-switch'; const buttonContainerStyle = { marginTop: 20 }; const labelStyle = { float: 'left' }; const switchStyle = { float: 'right' }; export default class ReactClas...
src/main.js
fxghqc/walk
import React from 'react' import ReactDOM from 'react-dom' import createBrowserHistory from 'history/lib/createBrowserHistory' import { Router, useRouterHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import createStore from './store/createStore' import { Provider } from 'react-r...
src/svg-icons/image/edit.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageEdit = (props) => ( <SvgIcon {...props}> <path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/> ...
src/client/components/PageSpinner.js
eliasmeire/hz-pictionary
import React from 'react'; import Spinning from 'grommet/components/icons/Spinning'; const PageSpinner = ({ size } = { size: 'huge' }) => ( <div className="app-wrapper"> <div className="main-content"> <Spinning size={size} /> </div> </div> ); export default PageSpinner;
mobile/App/Containers/ListviewExample.js
JasonQSong/SoulDistance
// @flow import React from 'react' import { View, Text, ListView } from 'react-native' import { connect } from 'react-redux' // For empty lists import AlertMessage from '../Components/AlertMessage' // Styles import styles from './Styles/ListviewExampleStyle' class ListviewExample extends React.Component { state: ...
src/svg-icons/device/screen-lock-rotation.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceScreenLockRotation = (props) => ( <SvgIcon {...props}> <path d="M23.25 12.77l-2.57-2.57-1.41 1.41 2.22 2.22-5.66 5.66L4.51 8.17l5.66-5.66 2.1 2.1 1.41-1.41L11.23.75c-.59-.59-1.54-.59-2.12 0L2.75 7.11c-.59...
src/views/components/kb/LearnerQuestionsOverview.js
Domiii/project-empire
import { LearnerQuestionTypes } from 'src/core/scaffolding/LearnerKBModel'; import size from 'lodash/size'; import map from 'lodash/map'; import { hrefLearnerStatusList } from 'src/views/href'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { dataBind } from 'dbdi/react'; impo...
examples/async/index.js
csaden/redux
import 'babel-core/polyfill'; 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.getElementByI...
tests/GeoDistanceSlider/GeoDistanceSlider.js
appbaseio/reactive-maps
import React from 'react'; import { ReactiveBase, GeoDistanceSlider, ReactiveMap } from '../../app/app.js'; import {config} from './config'; import { mount } from 'enzyme'; var GoogleMapsLoader = require('google-maps'); GoogleMapsLoader.KEY = 'AIzaSyC-v0oz7Pay_ltypZbKasABXGiY9NlpCIY'; GoogleMapsLoader.VERSION = 3.14; G...
src/ModalHeader.js
brynjagr/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalHeader extends React.Component { render() { return ( <div {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> { this.props.closeButton && <button cla...
src/components/UnitView/instructions/InputText.js
fkn/ndo
import _ from 'lodash'; import React from 'react'; import Base from './Base'; /** * <input name="" type="text|color"> */ export default class InputText extends Base { constructor(root) { super(root, 'input', { name: { $exists: true }, type: 'text' }); } processNode(node, children, index) { const name ...
App/db/entities/content/FocusedItems.js
nthbr/mamasound.fr
/* * Copyright (c) 2017. Caipi Labs. All rights reserved. * * This File is part of Caipi. You can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. ...
examples/01 Dustbin/Stress Test/Container.js
globexdesigns/react-dnd
import React, { Component } from 'react'; import { DragDropContext } from 'react-dnd'; import HTML5Backend, { NativeTypes } from 'react-dnd-html5-backend'; import Dustbin from './Dustbin'; import Box from './Box'; import ItemTypes from './ItemTypes'; import shuffle from 'lodash/shuffle'; import update from 'react/lib/u...
app/javascript/mastodon/components/avatar_composite.js
pso2club/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class AvatarComposite extends React.PureComponent { static propTypes = { accounts: ImmutablePropTypes.list.isRequired, ani...
app/components/presentation/HostelForm.js
PHPiotr/phpiotr4
import React from 'react'; import Button from 'material-ui/Button'; import {FormControl} from 'material-ui/Form'; import {EDIT_HOSTEL, NEW_HOSTEL} from '../../constants'; import Booking from '../containers/Booking'; import Input, {InputLabel} from 'material-ui/Input'; import {withStyles} from 'material-ui/styles'; impo...
public/js/pages/WorkshopPage.js
JasonShin/HELP-yo
/** * Created by Shin on 1/10/2016. */ import React from 'react'; import WorkshopsStore from '../stores/WorkshopsStore'; import animationConstants from '../constants/animationConstants'; const ReactCSSTransitionGroup = require('react-addons-css-transition-group'); import Single from '../components/Single'; export ...
js/jqwidgets/demos/react/app/rangeselector/righttoleftlayout/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxRangeSelector from '../../../jqwidgets-react/react_jqxrangeselector.js'; class App extends React.Component { componentDidMount() { this.refs.myRangeSelector.setRange(30, 60); } render() { return ( <JqxRangeS...
client/src/component/common/item-form.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import * as UU5 from 'uu5g03'; import {browserHistory} from 'react-router'; import Utils from '../../utils'; import ItemWizard from './item-wizard.js'; import PropertyNewModal from './property-new-modal.js'; import PropertyEditModal from './property-edit-modal.js'; import PropertyRemoveModal ...
src/components/MySunburst.js
nordicbikes/nordicbikes.github.io
import React from 'react'; import SunBurst from 'grommet/components/SunBurst'; import Box from 'grommet/components/Box'; import Legend from 'grommet/components/Legend'; import Value from 'grommet/components/Value'; class MySunburst extends React.Component { render() { return ( <Box direction="row" ...
src/index.js
connameng/router-survey-project
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import '../public/assets/css/main.css' ReactDOM.render( <App />, document.getElementById('root') ); ReactDOM.render(<App/>, document.getElementById('root'));
app/static/js/src.react/components/Profile.js
jhia/fundayacucho-social
import React from 'react'; import Post from './Post'; import Paper from 'material-ui/Paper'; import Avatar from 'material-ui/Avatar'; const Profile = React.createClass({ avatar () { return this.props.user.profile_photo ? <Avatar src={this.props.user.profile_photo} size={80} /> : <Avatar size={80}>{this.props.user.n...
js/Details.js
mcqnyc/complete-intro-to-react
import React from 'react' import { connect } from 'react-redux' import { getOMDBDetails } from './actionCreators' import Header from './Header' const { shape, string, func } = React.PropTypes const Details = React.createClass({ propTypes: { show: shape({ title: string, year: string, poster: str...
src/components/Tabs.js
chiefwhitecloud/running-man-frontend
import React from 'react'; import TabHeader from './TabHeader'; export default class extends React.Component { constructor(props) { super(props); this.handleClick = this.handleClick.bind(this); this.state = { selected: this.props.selected }; } handleClick(index) { this.setState({ ...
app/containers/App/index.js
rahsheen/scalable-react-app
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
src/components/shared/PageExt/PageExt.native.js
mutualmobile/Brazos
import React, { Component } from 'react'; import { StyleSheet, Image, View, Text } from 'react-native'; import ActiveLink from '../../theme/ActiveLink'; export default platform = { render: function({navigation}) { return ( <View> <Text>Native Page View</Text> <ActiveLink navigation={navigation} to='home...
src/components/auth/signout.js
SRosenshein/react-auth-client
import React, { Component } from 'react'; import { connect } from 'react-redux'; import * as actions from '../../actions'; class Signout extends Component { componentWillMount() { this.props.signoutUser(); } render() { return ( <div> Sorry to see you go </div> ); } } export default connect(null, ...
test/test_helper.js
ajdeleon/weather
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...
lib/carbon-fields/vendor/htmlburger/carbon-fields/assets/js/containers/components/container/index.js
boquiabierto/wherever-content
/** * The external dependencies. */ import React from 'react'; import { branch, renderComponent } from 'recompose'; import { isObject } from 'lodash'; /** * The internal dependencies. */ import ContainerTabbed from 'containers/components/container/tabbed'; import ContainerPlain from 'containers/components/containe...
example/src/index.js
conorhastings/react-tooltip
'use strict' import React from 'react' import ReactTooltip from '../../src/index' const Test = React.createClass({ getInitialState () { return { place: 'top', type: 'dark', effect: 'float', condition: false } }, changePlace (place) { this.setState({ place: place }...
modules/react-documentation/src/components/Docs.js
casesandberg/reactcss
'use strict'; import React from 'react' import reactCSS from 'reactcss' import map from 'lodash/map' import throttle from 'lodash/throttle' import markdown from '../helpers/markdown' import { Grid } from '../../../react-basic-layout' import MarkdownTitle from './MarkdownTitle' import Markdown from './Markdown' import...
1-appYoutube/src/components/video_detail.js
OscarDeDios/cursoUdemyReact
import React from 'react'; const VideoDetail = ({video}) => { if (!video) { return <div>Loading...</div>; } const videoId = video.id.videoId; const url = `https://www.youtube.com/embed/${videoId}`; return ( <div className="video-detail col-md-8"> <div className="embed-...