path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
ui/js/pages/domain/Domains.js
ericsoderberg/pbc-web
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import List from '../../components/List'; const Item = (props) => { const { className, item: domain } = props; const classNames = ['item__container', className]; return ( <Link className={classNames.join('...
app/common/components/header/index.js
jaketrent/photo-surf
import React from 'react' import styleable from 'react-styleable' import css from './index.css' function Header(props) { return ( <div className={props.css.root}> <h1 className={props.css.title}>photosurf</h1> </div> ) } export default styleable(css)(Header)
src/app/routes.js
tuxsudo/react-starter
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './containers/app.js'; import Home from './containers/home.js'; import NotFound from './containers/not-found.js'; import {APP_WEB_BASE_PATH} from './env.js'; const routes = ( <Route path={`${APP_WEB_BASE_PATH||'/'}`} compo...
src/svg-icons/editor/format-bold.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatBold = (props) => ( <SvgIcon {...props}> <path d="M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1...
templates/frontOffice/modern/components/React/Address/AddressForm.js
thelia/thelia
import Checkbox from '../Checkbox'; import Input from '../Input'; import React from 'react'; import Select from '../Select'; import SubmitButton from '../SubmitButton'; import { useForm } from 'react-hook-form'; import { useIntl } from 'react-intl'; export default function AddressForm({ address = {}, onSubmit = () => ...
client/views/omnichannel/directory/contacts/contextualBar/ContactEditWithData.js
VoiSmart/Rocket.Chat
import { Box } from '@rocket.chat/fuselage'; import React from 'react'; import { useTranslation } from '../../../../../contexts/TranslationContext'; import { AsyncStatePhase } from '../../../../../hooks/useAsyncState'; import { useEndpointData } from '../../../../../hooks/useEndpointData'; import { FormSkeleton } from...
app/javascript/mastodon/features/ui/components/bundle_modal_error.js
pfm-eyesightjp/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import IconButton from '../../../components/icon_button'; const messages = defineMessages({ error: { id: 'bundle_modal_error.message', defaultMessage: 'Something went wrong while loading this comp...
node_modules/react-bootstrap/es/NavDropdown.js
geng890518/editor-ui
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from...
client/components/transmitter.js
akileh/fermtempctrl
import React from 'react' import RaisedButton from 'material-ui/RaisedButton' import { browserHistory, Link } from 'react-router' import AppBarContainer from './appbarContainer' import Content from './content' import Error from './error' import Loading from './loading' class Transmitter extends React.Component { con...
packages/ringcentral-widgets/components/SlideoutBar/index.js
ringcentral/ringcentral-js-widget
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CloseIcon from '../../assets/images/CloseIcon.svg'; import styles from './styles.scss'; export default class SlideoutBar extends React.Component { _onClose = (evt) => { evt.stopPropagation(); this.props...
actor-apps/app-web/src/app/components/modals/CreateGroup.react.js
webwlsong/actor-platform
import React from 'react'; import CreateGroupActionCreators from 'actions/CreateGroupActionCreators'; import CreateGroupStore from 'stores/CreateGroupStore'; import CreateGroupForm from './create-group/Form.react'; import Modal from 'react-modal'; import { KeyCodes } from 'constants/ActorAppConstants'; const appEl...
src/svg-icons/places/child-friendly.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesChildFriendly = (props) => ( <SvgIcon {...props}> <path d="M13 2v8h8c0-4.42-3.58-8-8-8zm6.32 13.89C20.37 14.54 21 12.84 21 11H6.44l-.95-2H2v2h2.22s1.89 4.07 2.12 4.42c-1.1.59-1.84 1.75-1.84 3.08C4.5 20.43...
src/components/Total/index.js
jackp/finance-tracker
/** * <Total /> */ import React from 'react'; import { connect } from 'react-redux'; const Total = ({ total }) => ( <div className="ui statistic"> <div className="label">Total</div> <div className="value">${total}</div> </div> ); export default connect(state => ({ total: state.app.total }))(Total);
src/icons/CloudOffIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class CloudOffIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M38.71 20.07C37.35 13.19 31.28 8 24 8c-2.95 0-5.7.87-8.02 2.34l2.92 2.92C20.43 12.47 22.16 12 24 12c6.08 ...
app/views/settings/elements/stock-cell.js
7kfpun/FinanceReactNative
import React from 'react'; import PropTypes from 'prop-types'; import { StyleSheet, Text, View, } from 'react-native'; // 3rd party libraries import Icon from 'react-native-vector-icons/MaterialIcons'; // Flux import StockActions from '../../../actions/stock-action'; const styles = StyleSheet.create({ contai...
docs/app/Examples/elements/Icon/Variations/IconExampleInvertedColored.js
aabustamante/Semantic-UI-React
import React from 'react' import { Segment, Icon } from 'semantic-ui-react' const IconExampleInvertedColored = () => ( <Segment inverted> <Icon inverted color='red' name='users' /> <Icon inverted color='orange' name='users' /> <Icon inverted color='yellow' name='users' /> <Icon inverted color='olive'...
src/optionspage/OptionsApp.js
emfmesquita/beyondhelp
import { Form, ListGroup, Row, Col, Tab, Nav, NavItem } from 'react-bootstrap'; import React, { Component } from 'react'; import C from "../Constants"; import CheckBoxField from "../forms/CheckBoxField"; import ConfigStorageService from "../services/storage/ConfigStorageService"; import Configuration from "../da...
lens-ui/app/components/LoaderComponent.js
archanah24/lens
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not...
App.js
phelipemaia/marvelous-app
import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import Header from './src/components/common/Header'; import ComicList from './src/components/comic/ComicList'; import SeriesList from './src/components/series/SeriesList'; import EventList from './src/components/event/EventList'; export ...
src/messages/MessageDateGroup.js
Sekhmet/busy
import React, { Component } from 'react'; import { FormattedDate, FormattedRelative } from 'react-intl'; import './MessageList.scss'; import MessageGroup from './MessageGroup'; import { diffDays } from '../helpers/dateHelpers'; import { propMessageDateGroup } from './messageGroupHelpers'; export default class Message...
pages/index.js
subvisual/2017.mirrorconf.com
import React from 'react'; import About from '../Components/About'; import Hero from '../Components/Hero'; import Feedback from '../Components/Feedback'; import Footer from '../Components/Footer'; import Speakers from '../Components/Speakers'; import Workshops from '../Components/Workshops'; import Sponsors from '../C...
src/plugin/BoobsPost/UserDisplayName.js
BoomBoobs/chrome-extension
import React from 'react'; import { props, pure, t, skinnable } from 'revenge'; import moment from 'moment'; @props({ boobs: t.Obj }) @pure @skinnable() export default class UserDisplayName extends React.Component { getLocals() { const { boobs } = this.props; return { createdAt: moment(boobs.get('...
archimate-frontend/src/main/javascript/components/view/nodes/model_t/artifact.js
zhuj/mentha-web-archimate
import React from 'react' import _ from 'lodash' import { ModelNodeWidget } from '../BaseNodeWidget' export const TYPE='artifact'; export class ArtifactWidget extends ModelNodeWidget { getClassName(node) { return 'a-node model_t artifact'; } }
js/App/Components/TabViews/SubViews/DashboardRow.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 *...
app/routes/index.js
voicebase/voicebase-end-user-experience
import React from 'react' import { Route, IndexRoute, Redirect } from 'react-router' import CoreLayout from '../views/CoreLayout' import AppLayout from '../views/AppLayout' import LoginView from '../views/LoginView' import ConfirmView from '../views/ConfirmView' import AllView from '../views/AllView' import UploadView...
docs/src/app/components/pages/components/Tabs/Page.js
kittyjumbalaya/material-components-web
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import tabsReadmeText from './README'; import tabsExampleSimpleCode from '!raw!....
src/pages/Jobs.js
dunika/job-admin
import React, { Component } from 'react'; import { actions as jobActions, Jobs } from 'client/modules/jobs'; import { withReduxSaga } from 'client/store'; import { Main } from './layout'; class App extends Component { static async getInitialProps({ store: { dispatch } }) { dispatch(jobActions.getJobs()); re...
client/src/app/parts/profile/components/profileForm.js
Einsteinish/DumbNode
import _ from 'lodash'; import React from 'react'; import Checkit from 'checkit'; import TextField from 'material-ui/TextField'; import TextArea from 'react-textarea-autosize'; import LaddaButton from 'react-ladda'; //import SelectLangage from 'components/selectLanguage'; import ValidateProfileForm from 'services/valid...
src/components/AboutModal/AboutModal.js
dialogs/dialog-web-components
/* * Copyright 2019 dialog LLC <info@dlg.im> * @flow */ import type { Field } from '@dlghq/dialog-types'; import React, { Component } from 'react'; import classNames from 'classnames'; import { Text } from '@dlghq/react-l10n'; import Modal from '../Modal/Modal'; import Icon from '../Icon/Icon'; import ModalBody fro...
examples/js/basic/hover-striped-table.js
neelvadgama-hailo/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
src/components/ProductForm/index.js
supromikali/my-app
import React from 'react'; import { Field, reduxForm } from 'redux-form' import InputField from '../InputField' import { connect } from 'react-redux'; import validate from '../../vendor/validation/validateProduct' const renderSelect = ({ input, label, type, categories, meta: { touched, error, warning } }) => ( <se...
src/index.js
jpchip/css-modules-demo
import React from 'react'; import {render} from 'react-dom'; import "normalize.css"; import App from './App'; render(<App/>, document.querySelector('#app'))
src/common/components/forms/user/ChangePasswordForm.js
gocreating/express-react-hmr-boilerplate
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Field, reduxForm, SubmissionError } from 'redux-form'; import Alert from 'react-bootstrap/lib/Alert'; import Button from 'react-bootstrap/lib/Button'; import FormNames from '../../../constants/FormNames'; import userAPI from '../....
src/components/layout/page.js
AlbinOS/book-keeper-ui
import React from 'react'; import { Container, Navbar, NavbarBrand, Nav, NavItem, NavLink } from 'reactstrap'; class Page extends React.Component { render() { const {pageContent} = this.props; return ( <div id> <Navbar className="navbar-fixed-top navbar-dark bg-inverse"> ...
src/components/Markdown/Strong.js
jonahjoughin/blog.jough.in
import React from 'react'; const Strong = ({children}) => ( <strong> {children} </strong> ); export default Strong;
src/MultiSelect/MultiSelect.driver.js
skyiea/wix-style-react
import React from 'react'; import ReactTestUtils from 'react-dom/test-utils'; import inputWithOptionsDriverFactory from '../InputWithOptions/InputWithOptions.driver'; import tagDriverFactory from '../Tag/Tag.driver'; import ReactDOM from 'react-dom'; import initial from 'lodash/initial'; const multiSelectDriverFactory...
api/app/components/activities/tagedit.js
cmilfont/zonaextrema
import React from 'react'; export default class TagEdit extends React.Component { state = { editable: false, tag: '' }; edit(editable, description, event) { let value = event.target.value; if(value) { this.props.editHandler( value ); } else { value = this.state.tag; } this.setSt...
src/containers/Register.js
snsavage/timer-react
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import * as actions from '../actions/sessionActions'; import { Message, Button, Grid, Form, Header } from 'semantic-ui-react'; class Register ext...
src/components/Torrent/StatusDetails/Checking.js
fcsonline/react-transmission
import React from 'react'; import { FormattedMessage, injectIntl } from 'react-intl'; function Checking({ torrent, intl }) { const { recheckProgress } = torrent; return ( <FormattedMessage id='torrent.full.checking' defaultMessage={`Verifying local data ({recheckProgress} tested)`} values={{...
src/parser/druid/balance/modules/talents/TwinMoons.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; class TwinMoons extends Analyzer { ...
actor-apps/app-web/src/app/components/sidebar/RecentSection.react.js
it33/actor-platform
import _ from 'lodash'; import React from 'react'; import { Styles, RaisedButton } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import DialogActionCreators from 'actions/DialogActionCreators'; import DialogStore from 'stores/DialogStore'; import CreateGroupActionCreators from 'actions/CreateGro...
client/src/modules/App.js
showmethewei/tuna-io
import React from 'react'; import Home from './Home'; import Rebass from 'rebass'; import { Grid, Row, Col } from 'react-flexgrid'; export default class App extends React.Component { constructor(props) { super(props); this.state = { loggedIn: '', }; this.authenticateUser = this.authenticateUs...
admin/src/Users.js
gotthardp/lorawan-server
import React from 'react'; import { List, Show, Create, Edit, Datagrid, SimpleShowLayout, SimpleForm, TextField, ChipField, TextInput, DisabledInput, ReferenceArrayInput, AutocompleteArrayInput } from 'react-admin'; export const UserList = (props) => ( <List {...props}> <Datagrid rowClick="edit"> ...
fields/types/geopoint/GeoPointColumn.js
geminiyellow/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var GeoPointColumn = React.createClass({ displayName: 'GeoPointColumn', propTypes: { col: React.PropTypes.object, data: React.PropType...
app/containers/NotFoundPage/index.js
iPhaeton/Selectors-study
/** * 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> ...
src/routes/gallery/index.js
dervos/react-starter-kit
import React from 'react'; import fetch from '../../core/fetch'; import Gallery from './Gallery'; export const path = '/gallery'; export const action = async (state) => { const title = 'Gallery'; state.context.onSetTitle(title); const url = 'http://localhost:3001/services/rest/?method=flickr.photosets.getPhoto...
react-app/src/App.js
memoriaal/memoriaal
import React from 'react'; const App = () => <h1>iiiff</h1> export default App
client/scripts/components/notifications/request.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Lic...
src/routes/user/sysuhiker/index.js
DiroKate/SysuhikerCC
import React from 'react'; import { connect } from 'dva'; import { browserHistory } from 'dva/router'; import { Card, Row, Col, Tabs, Icon } from 'antd'; import Avatar from 'react-avatar'; import createG2 from 'g2-react'; import { Stat } from 'g2'; import { LocalIcon } from '../../../components'; import ShowForm from '...
www/components/leaderboards.js
capaj/postuj-hovna
import React from 'react' import {user} from '../services/moonridge' import {liveQueryComponent} from 'capaj/moonridge-react-utils' import FbProfilePicture from './fb-profile-picture' import ProfileStore from '../stores/profile-store' export default class Leaderboards extends React.Component { constructor (...props)...
src/pages/page-2.js
aditirajagopal/TanglesHairExtensionsAndMore
import React from 'react' import Link from 'gatsby-link' const SecondPage = () => <div> <h1>Hi people</h1> <p>Welcome to page 2</p> <Link to="/">Go back to the homepage</Link> </div> export default SecondPage
examples/index.js
pashaigood/react-component-redux
import './index.scss'; import React from 'react'; import ReactDOM from 'react-dom'; import Hello from './components/Hello'; import TodoList from './components/TodoList'; import MultiInstance from './components/MultiInstance'; import PureComponent from './components/Pure/Component'; import PureFunction from './component...
node_modules/react-dnd/examples/_drag-around-custom/index.js
asm-products/notello
'use strict'; import React from 'react'; import LinkedStateMixin from 'react/lib/LinkedStateMixin'; import Container from './Container'; import DragLayer from './DragLayer'; const DragAroundCustom = React.createClass({ mixins: [LinkedStateMixin], getInitialState() { return { snapToGridAfterDrop: false,...
node_modules/react-bootstrap/es/Modal.js
superKaigon/TheCave
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from...
src/app/routes/forms/containers/FormPlugins.js
backpackcoder/world-in-flames
import React from 'react' import {Stats, BigBreadcrumbs, WidgetGrid, JarvisWidget} from '../../../components' import IonSlider from '../../../components/forms/inputs/IonSlider' import NoUiSlider from '../../../components/forms/inputs/NoUiSlider' import UiSlider from '../../../components/forms/inputs/UiSlider' import...
src/core/display/App/Feature/Display.js
JulienPradet/pigment-store
import React from 'react' import {compose} from 'recompose' import {getConfig} from '../util/ConfigProvider' import {getDisplayOptions} from '../DisplayOptions/ContextProvider' const makeWrapperStyle = ({size, zoom}) => ({ width: size.width === 'auto' ? '100%' : `${size.width * zoom / 100}px`, height: size.height ...
newclient/scripts/components/editor/editor-link/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your ...
src/stories/Button.js
raavanan/jukebox
import React from 'react'; const buttonStyles = { border: '1px solid #eee', borderRadius: 3, backgroundColor: '#FFFFFF', cursor: 'pointer', fontSize: 15, padding: '3px 10px', margin: 10, }; const Button = ({ children, onClick }) => ( <button style={buttonStyles} onClick={onClick} > {chil...
src/components/project-card/index.js
TOVS/tovs_website_2017
import React from 'react'; import classNames from 'classnames/bind'; export default function ProjectCard(props) { const Styles = { relativeContainer: { position: 'relative', width: '1440px', height: '405px' }, cardImage: { width: '1440px', height: '405px' }, textCont...
ceephax/components/navigation/index.js
mrceephax/ceephax.com.frontend
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { NAVIGATION_ITEMS } from 'ceephax/config'; class Navigation extends React.Component { render() { const nav = NAVIGATION_ITEMS.map((value, index) => ( <li key={index}> ...
backend/modules/content/src/main/browser/views/Event/Item/View.js
savantly-net/sprout-platform
import React from 'react'; import { Component } from 'react'; import { connect } from 'react-redux' import {selectRoot, resetSubmissions, saveSubmission, Form, selectError, Errors} from 'react-formio'; import {push} from 'connected-react-router'; import Loading from '../../../containers/Loading' const View = class ext...
staticfiles/js/components/CulpritsPage/CulpritsPage.86b8d1f27e85.js
alemneh/negativity-purger
import React, { Component } from 'react'; import axios from 'axios'; import CulpritsList from '../CulpritsList/CulpritsList'; import Loading from '../LoadingPage/LoadingPage'; import styles from './CulpritsPage.css'; const data = [ { name: 'Mike Tyson', number_of_tweets: 5, polarity: -0.733, pic_url:...
internals/templates/containers/LanguageProvider/index.js
Ennovar/clock_it
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
src/App.js
cannap/learning-react-client
import './styles/app.scss' import React from 'react'; import {Header} from './components/Layout' export class App extends React.Component { render() { return ( <div> <Header/> {this.props.children} </div> ); } }
pages/api/slide.js
AndriusBil/material-ui
// @flow import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './slide.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRoot(Page);
packages/material-ui-icons/src/SignalWifi2BarLock.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5 1.5-1.5s1.5.7 1.5 1.5V16z" /><path d="M15.5 14.5c0-2.8 2...
app/components/CollectData/CoilControl.js
TheCbac/MICA-Desktop
/* @flow */ /* eslint no-bitwise: 0 */ /* ********************************************************** * File: components/CollectData/CoilControl.js * * Brief: Component for interacting with a spring-mass coil * * Authors: Craig Cheney * * 2017.09.30 CC - Document created * ***********************************************...
app/javascript/mastodon/components/icon_button.js
mimumemo/mastodon
import React from 'react'; import Motion from '../features/ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class IconButton extends React.PureComponent { static propTypes = { className: PropTypes.stri...
src/other/HoneycombImage.js
ndlib/beehive
import React from 'react' import PropTypes from 'prop-types' import createReactClass from 'create-react-class' import DefaultIntroImage from 'assets/images/intro.jpg' const $ = require('jquery') const HoneycombImage = createReactClass({ propTypes: { image: PropTypes.object, size: PropTypes.string, style:...
src/constants.js
planttheidea/react-windowed-list
// external dependencies import React from 'react'; /** * @constant {boolean} ADD_EVENT_LISTENER_OPTIONS * @default */ export const ADD_EVENT_LISTENER_OPTIONS = (() => { if (typeof window === 'undefined') { return false; } let hasSupport = false; try { document.createElement('div').addEventListene...
imports/ui/components/SearchResult/SearchResult.js
hwillson/meteor-solr-demo
/* eslint-disable react/prefer-es6-class */ import React from 'react'; import SearchLogger from '../../../utility/search_logger'; import DateFormatter from '../../../utility/date_formatter'; import SearchFacetUtils from '../../../api/search/search_facet_utils'; const SearchResult = React.createClass({ propTypes: ...
js/fw/components/list/index.js
linh918/react-native-starter-kit-demo-
import React, { Component } from 'react'; import { Container, Header, Title, Content, Button, Icon, Text, Left, Right, Body, List, ListItem } from 'native-base'; import styles from './styles'; const datas = [ { route: 'NHBasicList', text: 'Basic List', }, { route: 'NHListDivider', text: 'List Divider', }...
example/pages/[name].js
Wildhoney/ReactShadow
import React from 'react'; import Layout from '../components/Layout'; import * as api from '../api'; import * as utils from '../utils'; export default function City(props) { return <Layout {...props} />; } City.getInitialProps = async ({ query }) => { const place = api.places.find( ({ city }) => utils...
src/svg-icons/action/trending-down.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTrendingDown = (props) => ( <SvgIcon {...props}> <path d="M16 18l2.29-2.29-4.88-4.88-4 4L2 7.41 3.41 6l6 6 4-4 6.3 6.29L22 12v6z"/> </SvgIcon> ); ActionTrendingDown = pure(ActionTrendingDown); ActionTre...
src/svg-icons/communication/invert-colors-off.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationInvertColorsOff = (props) => ( <SvgIcon {...props}> <path d="M20.65 20.87l-2.35-2.35-6.3-6.29-3.56-3.57-1.42-1.41L4.27 4.5 3 5.77l2.78 2.78c-2.55 3.14-2.36 7.76.56 10.69C7.9 20.8 9.95 21.58 12 21.5...
src/app/routes/ui/containers/JQueryUi.js
backpackcoder/world-in-flames
import React from 'react' import ReactDOM from 'react-dom' import {Stats, BigBreadcrumbs, WidgetGrid, JarvisWidget} from '../../../components' import UiDialogLauncher from '../../../components/ui/UiDialogLauncher' import UiTabs from '../../../components/ui/UiTabs' import UiMenu from '../../../components/ui/UiMenu' i...
redux-saga-jaysoo/src/main/index.js
slorber/scalable-frontend-with-elm-or-redux
import React from 'react' import { combineReducers } from 'redux' import { fork, take, race, put } from 'redux-saga/effects' import * as counter from '../counter' import * as randomGif from '../randomGif' import * as randomGifPair from '../randomGifPair' import * as randomGifPairOfPair from '../randomGifPairOfPair' imp...
examples/react-router-3/components/Home.js
mjrussell/redux-auth-wrapper
import React from 'react' export default function Home() { return ( <div> <h4>{"Welcome! Why dont you login and check out Foo? Or log in as an admin and click Admin"}</h4> <h4>{"Or just try to navigate there and you will be redirected"}</h4> <h4>{"Dont forget to try logging out on any page!"}</...
src/components/header/app-cart-summary.js
RamEduard/admin-lte-express
/** * Created by Ramon Serrano <ramon.calle.88@gmail.com> * Date: 5/24/16 * Time: 1:59 PM */ import React from 'react'; import { Link } from 'react-router'; import AppStore from '../../stores/app-store'; import StoreWatchMixin from '../../mixins/StoreWatchMixin'; const CartSummary = ( props ) => { return ( <d...
app/ui/board.js
vnovick/RNSpacePong
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, ScrollView, View } from 'react-native'; import BackgroundScreen from './widgets/background'; import PlayerPanel from './widgets/playerPanel...
src/components/form_wizard/WizardFormThirdPage.js
ashutosh-singh-rawat/react-redux-starter
import React from 'react'; import { Field, reduxForm } from 'redux-form'; import validate from './validate'; const colors = ['Red', 'Orange', 'Yellow', 'Green', 'Blue', 'Indigo', 'Violet']; const renderColorSelector = ({ input, meta: { touched, error } }) => ( <div> <select {...input}> <option value="">Sel...
public/js/components/goodbye.js
lalitkapoor/isomorphic-react-boilerplate
import React from 'react' import {Link} from 'react-router' export default React.createClass({ displayName: 'Goodbye' , render: function () { return ( <div> <div>Goodbye</div> <Link to="home">home</Link> </div> ) } })
src/modules/components/PowerSwitch/index.js
ruebel/synth-react-redux
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import H3 from '../typography/H3'; const size = 28; const borderSize = '2px'; const transTime = '200ms'; const Inner = styled.div` background: ${p => (p.on ? p.theme.color.controlSuccess : 'transparent')}; borde...
src/js/components/Meter/stories/SemiCircle.js
grommet/grommet
import React from 'react'; import { Box, Meter } from 'grommet'; export const SemiCircle = () => ( // Uncomment <Grommet> lines when using outside of storybook // <Grommet theme={grommet}> <Box align="center" pad="large"> <Meter size="medium" type="semicircle" background="light-2" value={60} /> </Box> /...
src/routes/contact/Contact.js
zuban/edhunter
/** * 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 PropTypes from 'prop-...
src/svg-icons/device/battery-charging-60.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryCharging60 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V11h3.87L13 7v4h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9l1...
test/helpers/shallowRenderHelper.js
jwmock/karoak
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
screens/RicohTouchDetailScreen/Touch.js
nattatorn-dev/expo-with-realworld
import React from 'react' import { WebView } from 'react-native' import PropTypes from 'prop-types' const Touch = ( { url } ) => ( <WebView source={{ uri: url, }} javaScriptEnabled={true} style={{ flex: 1 }} /> ) Touch.propTypes = { url: PropTypes.string.isRequired, } export default Touch...
examples/huge-apps/routes/Calendar/components/Calendar.js
dyzhu12/react-router
import React from 'react'; class Calendar extends React.Component { static loadProps(params, cb) { setTimeout(() => { cb(null, { events: [{ id: 0, title: 'essay due' }] }) }, 1000); } render () { var { events } = this.props; return ( <div> <h2...
docs/src/GettingStartedPage.js
herojobs/react-bootstrap
import React from 'react'; import CodeExample from './CodeExample'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; import Anchor from './Anchor'; export default class Page extends React.Component { render() { return ( <div> <NavMa...
docs/app/Examples/views/Item/Types/ItemExampleProps.js
vageeshb/Semantic-UI-React
import React from 'react' import { Item } from 'semantic-ui-react' const items = [ { childKey: 0, image: 'http://semantic-ui.com/images/wireframe/image.png', header: 'Header', description: 'Description', meta: 'Metadata', extra: 'Extra', }, { childKey: 1, image: 'http://semantic-u...
docs/app/Examples/modules/Checkbox/States/CheckboxExampleIndeterminate.js
aabustamante/Semantic-UI-React
import React from 'react' import { Checkbox } from 'semantic-ui-react' const CheckboxExampleIndeterminate = () => ( <Checkbox label='This checkbox is indeterminate' defaultIndeterminate /> ) export default CheckboxExampleIndeterminate
app/test.js
ersinerdal/react-redux-immutable-ddd
import chai from 'chai'; import sinonChai from 'sinon-chai'; import chaiImmutable from 'chai-immutable'; import configureMockStore from 'redux-mock-store' import thunk from 'redux-thunk' import Config from './config' import axios from 'axios'; import MockAdapter from 'axios-mock-adapter'; import sinon from 'sinon'; imp...
src/components/DynamicDropdown.js
noamr/volunteers
import {observer} from "mobx-react"; import {DropdownButton, MenuItem} from "react-bootstrap" import React from 'react'; const DynamicDropdown = observer(({label, model, collectionName, current, placeholder = "All", onSelect, title=""}) => ( <div> <DropdownButton title={label} id={`select_${collectionName}`} o...
actor-apps/app-web/src/app/components/modals/MyProfile.react.js
alihalabyah/actor-platform
//import _ from 'lodash'; import React from 'react'; import { KeyCodes } from 'constants/ActorAppConstants'; import MyProfileActions from 'actions/MyProfileActions'; import MyProfileStore from 'stores/MyProfileStore'; import AvatarItem from 'components/common/AvatarItem.react'; import Modal from 'react-modal'; //i...
src/App.js
hcc1512/shop-components
// @flow import React, { Component } from 'react'; import Navigation from './components/Navigation' import 'tachyons/css/tachyons.min.css' import './App.css'; class App extends Component { render() { return ( <div className="App"> <Navigation /> </div> ); } } export default App;
src/components/DataListOption.js
asbjornenge/react-datalist
import React from 'react' export default class DatalistOption extends React.Component { render() { var classes = 'react-datalist-option' if (this.props.selected) classes += ' react-datalist-option-selected' if (this.props.useNative) return ( <option value={this.props.option} /> ...
kitchensink/ios/index.js
allanfish/f8
import { hashHistory } from 'react-router' import getRoutes from './routes' import Root from './Root' import React from 'react' import ReactDOM from 'react-dom' const routes = getRoutes() ReactDOM.render( <Root history={hashHistory} routes={routes} />, document.getElementById('root') )
node_modules/react-bootstrap/es/SplitToggle.js
vietvd88/developer-crawler
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import DropdownToggle fr...
src/Components/Toggle/Toggle.js
apiaryio/attributes-kit
import React from 'react'; import PropTypes from 'prop-types'; import Radium from 'radium'; import merge from 'lodash/merge'; @Radium class Toggle extends React.Component { static propTypes = { isExpanded: PropTypes.bool, onClick: PropTypes.func, style: PropTypes.object, }; get style() { const ...