path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/places/smoke-free.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesSmokeFree = (props) => ( <SvgIcon {...props}> <path d="M2 6l6.99 7H2v3h9.99l7 7 1.26-1.25-17-17zm18.5 7H22v3h-1.5zM18 13h1.5v3H18zm.85-8.12c.62-.61 1-1.45 1-2.38h-1.5c0 1.02-.83 1.85-1.85 1.85v1.5c2.24 0 ...
src/App.js
leeppolis/bookmarks
import React, { Component } from 'react'; import './App.css'; import Header from './Header.js'; import Body from './Body.js'; import Footer from './Footer.js'; class App extends Component { render() { return ( <div className="App"> <Header /> <Body /> <Footer /> </div> ); } } export default A...
src/svg-icons/image/filter-2.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter2 = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-4-4h-4v-2h2c1.1 0 2-.89 ...
src/tile/FeaturedTile.js
kosiakMD/react-native-elements
import PropTypes from 'prop-types'; import React from 'react'; import { TouchableOpacity, Text as NativeText, View, Image, StyleSheet, Dimensions, } from 'react-native'; import Text from '../text/Text'; import Icon from '../icons/Icon'; import ViewPropTypes from '../config/ViewPropTypes'; const FeaturedTil...
src/assets/scripts/containers/App.js
curlybracesco/pablo
import React, { Component } from 'react'; import Footer from './../components/Footer'; import Navbar from './../components/Navbar'; import Navigation from './../components/Navigation'; const __INITIAL_STATE__ = window.__INITIAL_STATE__; const THEME_URL_BASE = '/theme'; export default class App extends Component { ...
src/js/components/icons/base/Send.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/components/modal/Modal.js
sanjay1909/WeaveReact
import React from 'react'; import ComponentManager from "../../ComponentManager"; import ModalConfig from "./ModalConfig"; import ModalPanel from "./ModalPanel"; class Modal extends React.Component { constructor(props) { super(props); ComponentManager.initialize(this); this.openModal = t...
src/intl.js
Tarabyte/foodlr-web
import React from 'react' import { addLocaleData, IntlProvider } from 'react-intl' import ru from 'react-intl/locale-data/ru' addLocaleData(ru) export default (locale, messages, component) => ( <IntlProvider locale={locale} messages={messages} defaultLocale="ru-RU"> {component} </IntlProvider> )
src/UserGrid.js
niyue/react-github
import React, { Component } from 'react'; import User from './User'; import UserListCaption from './UserListCaption'; import $ from 'jquery'; module.exports = React.createClass({ shouldComponentUpdate: function (nextProps, nextState) { console.log('action=should_user_grid_component_update users=%s', this.props.u...
src/PlusSign.js
borisyankov/shapetastic
import React from 'react'; import Shapetastic from './Shapetastic'; import XPrimitive from './XPrimitive'; export default class PlusSign { render() { return ( <Shapetastic stroke="red"> <XPrimitive {...this.props} /> </Shapetastic> ); } }
app/javascript/mastodon/components/dropdown_menu.js
tootcafe/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import IconButton from './icon_button'; import Overlay from 'react-overlays/lib/Overlay'; import Motion from '../features/ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; imp...
app/components/modal/index.js
wfa207/portfolio-page
'use strict'; import React, { Component } from 'react'; import { arrayConcat } from '../../../utils'; export default class Modal extends Component { constructor(props) { super(props); } render() { let teamMembersProp = this.props.teamMembers; let teamNum = teamMembersProp ? teamMembersProp.length :...
webApp/src/Components/NavBarView.js
s-law/silent-disco
import React from 'react'; // MATERIAL DESIGN import AppBar from '../../node_modules/material-ui/lib/app-bar'; import LeftNav from '../../node_modules/material-ui/lib/left-nav'; import MenuItem from '../../node_modules/material-ui/lib/menus/menu-item'; import List from '../../node_modules/material-ui/lib/lists/list'; ...
libs/utils/react.js
zangxd/ui-react
import React from 'react' function firstChild(props) { const childrenArray = React.Children.toArray(props.children); return childrenArray[0] || null; } export {firstChild}
app/components/todolist/Link.js
flanamacca/react-learning-kit
import React from 'react' import PropTypes from 'prop-types'; // ES6 const Link = ({ active, children, onClick }) => { if (active) { return <span>{children}</span> } return ( <a href="#" onClick={e => { e.preventDefault() onClick() }} > {children} </a> ) ...
front_end/front_end_app/src/client/todos/tocheck.react.js
carlodicelico/horizon
import Component from '../components/component.react'; import React from 'react'; import {FormattedHTMLMessage} from 'react-intl'; import {Link} from 'react-router'; export default class ToCheck extends Component { static propTypes = { msg: React.PropTypes.object.isRequired } render() { const {msg} = t...
es/ExpansionPanel/ExpansionPanelSummary.js
uplevel-technology/material-ui-next
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
packages/neos-ui-validators/src/Float/index.js
dimaip/neos-ui
import React from 'react'; import I18n from '@neos-project/neos-ui-i18n'; /** * Checks if the given value is a valid floating point number */ const Float = value => { const number = parseFloat(value); if (value.length !== 0 && (isNaN(number) || value.toString().match(/.+\d$/) === null)) { return <I1...
src/components/ErrorBoundary.js
demisto/sane-reports
import React from 'react'; import PropTypes from 'prop-types'; class ErrorBoundary extends React.Component { static getDerivedStateFromError(error) { return { errorMessage: `"${error.message}"` }; } static propTypes = { children: PropTypes.any }; constructor(props) { super(props); this.stat...
server/sonar-web/src/main/js/apps/projectActivity/components/forms/AddCustomEventForm.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program 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 3 of the License, o...
examples/json-placeholder/src/app.js
taion/flux-resource-marty
import martyResource from 'flux-resource-marty'; import { Application, ApplicationContainer, createContainer, HttpStateSource } from 'marty'; import React from 'react'; HttpStateSource.removeHook('parseJSON'); const {PostActions, PostApi, PostStore} = martyResource({ name: 'post', urlFunc: id => `http://j...
server/sonar-web/src/main/js/apps/overview/meta/MetaOrganizationKey.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program 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 3 of the License...
app/components/BookList/index.js
ZhydraBook/zhydrabook
// @flow import React, { Component } from 'react'; import { Segment, Card } from 'semantic-ui-react'; import Book from './Book'; import SearchForm from './Form'; export default class BookList extends Component { render() { return ( <Segment> <SearchForm onSubmit={this.props.handleUpdate} /> ...
app/javascript/mastodon/features/status/components/card.js
verniy6462/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import punycode from 'punycode'; const IDNA_PREFIX = 'xn--'; const decodeIDNA = domain => { return domain .split('.') .map(part => part.indexOf(IDNA_PREFIX) === 0 ? punycode.decode(part.slice(IDNA_PREFIX.length)) : part) ...
lib/shared/screens/admin/screens/settings/screens/google/index.js
relax/relax
import Component from 'components/component'; import Content from 'components/content'; import React from 'react'; import SettingsForm from 'components/settings-form'; import mapSettingsIds from 'helpers/map-settings-ids'; import {googleAPI} from 'statics/settings-keys'; const options = [ { label: 'Google API ID...
src/svg-icons/maps/local-atm.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalAtm = (props) => ( <SvgIcon {...props}> <path d="M11 17h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4V8h-2V7h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2v1zm9-13H4c-1.11 0-1.99.89-1.99 2L2 1...
app/javascript/mastodon/features/compose/components/upload_progress.js
dwango/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import { FormattedMessage } from 'react-intl'; export default class UploadProgress extends React.PureComponent { static propTypes = { active: PropTypes...
app/javascript/mastodon/features/account/components/header.js
pinfort/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Button from 'mastodon/components/button'; import Area_header from '../../../components/area_header'; import Immutab...
views/main.js
smaty1/black-screen
import React from 'react'; import _ from 'lodash'; import Rx from 'rx'; import ApplicationView from './compiled/src/views/ApplicationView.js'; var keys = { goUp: event => (event.ctrlKey && event.keyCode === 80) || event.keyCode === 38, goDown: event => (event.ctrlKey && event.keyCode === 78) || event.keyCode ...
scaffold/templates/google-booking-project/template/frontend/src/app/index.js
binocarlos/templatestack
import React from 'react' import { render } from 'react-dom' import { routerForBrowser } from 'redux-little-router' import RootFactory from 'template-ui/lib/containers/Root' import configureStore from 'template-ui/lib/store/configureStore' import rootSaga from './sagas' import { routeConfig, routes } from './routes' im...
docs/src/components/Menu/index.js
michalko/draft-wyswig
/* @flow */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; import classNames from 'classnames'; import './styles.css'; export default class Menu extends Component { static propTypes = { pathname: PropTypes.string, }; state: any = { st...
src/index.js
jiangxy/react-antd-admin
/** * 程序的入口, 类似java中的main */ import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux' import {Router, Route, IndexRoute, hashHistory} from 'react-router'; import './utils/index.js'; // 引入各种prototype辅助方法 import store from 'redux/store.js'; // redux store // 开始引入各种自定义的组件 imp...
src/components/Subscribe.js
aengl/sector4-website
import React from 'react'; import './Subscribe.css'; export class Subscribe extends React.Component { constructor(props) { super(props); this.resetError = this.resetError.bind(this); this.subscribe = this.subscribe.bind(this); this.state = { error: null, loading: false }; } rende...
static/scripts/components/DayWelfareUserList.js
minhuaF/bcb-koa2
import React from 'react'; const UserList = React.createClass({ render: function(){ return ( <div> <p className="mrfl-text">今天又143位用户获得加息</p> <div className="prize-winner"> <ul> <li>让xx 刚刚领取了 +0.5%</li> ...
example/react-user/components/profile.js
jsful/treeful
import React, { Component } from 'react'; import Treeful from '../../../src/treeful'; export default class Profile extends Component { constructor() { super(); this.state = { username: Treeful.get('username'), isLoggedIn: Treeful.get('login') }; } componentDidMount() { this.unsubscribe = Treeful.subs...
views/decoration_toggle.js
Dangku/black-screen
import React from 'react'; export default React.createClass({ getInitialState() { return {enabled: this.props.invocation.state.decorate}; }, handleClick(event) { stopBubblingUp(event); var newState = !this.state.enabled; this.setState({enabled: newState}); this.prop...
assets/Admin/components/Navbar.js
janta-devs/nyumbani
import React, { Component } from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import Actions from '../../DataStore/Actions'; //material-ui elements that are essential for the pop-up menu import Popover from 'material-ui/Popover'; imp...
templates/rubix/rubix-bootstrap/src/DropdownButton.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import ReactDOM from 'react-dom'; import classNames from 'classnames'; import RDropdownButton from 'react-bootstrap/lib/DropdownButton'; import isBrowser from './isBrowser'; import isTouchDevice from './isTouchDevice'; var requestFrame = null, rAF = () => {}, cAF = () => {}; if (isBrowser(...
examples/with-overmind/pages/_app.js
azukaru/next.js
import React from 'react' import App from 'next/app' import { createOvermind, createOvermindSSR, rehydrate } from 'overmind' import { Provider } from 'overmind-react' import { config } from '../overmind' class MyApp extends App { // CLIENT: On initial route // SERVER: On initial route constructor(props) { su...
assets/jqwidgets/demos/react/app/calendar/rangeselection/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxCalendar from '../../../jqwidgets-react/react_jqxcalendar.js'; class App extends React.Component { componentDidMount() { this.refs.myCalendar.on('change', (event) => { let selection = event.args.range; let log =...
docs/src/app/components/pages/components/List/ExamplePhone.js
barakmitz/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import Divider from 'material-ui/Divider'; import CommunicationCall from 'material-ui/svg-icons/communication/call'; import CommunicationChatBubble from 'material-ui/svg-icons/communicatio...
src/components/tvshows/index.js
scholtzm/arnold
import React, { Component } from 'react'; import TvShowGrid from './grid.js'; import LibraryPage from '../library/page.js'; class TvShows extends Component { state = { showSeen: true }; _onShowSeenToggle() { this.setState({ showSeen: !this.state.showSeen }); } render() { return ( ...
docs/src/examples/collections/Menu/Types/index.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Link } from 'react-static' import { Message } from 'semantic-ui-react' import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection' import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample' import ShorthandExample from 'docs/src/components/Compo...
app/views/Rankings.js
upbit/pixivfan
'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, FlatList, RefreshControl, ActivityIndicator, Dimensions, AppRegistry } from 'react-native'; import Reactotron from 'reactotron-react-native'; import PixivAPI from '../pixiv_api'; import Illust from './Illust'; i...
src/templates/news-index.js
adrienlozano/stephaniewebsite
import React from 'react'; import PageSection from "~/components/page-section"; import Typography from '~/components/typography'; import Heading from '~/components/heading'; import LinkButton from '~/components/link-button'; import { Box } from 'rebass'; import format from 'date-fns/format'; import Pagination from '~/c...
src/app/modules/students/containers/list.js
Kikonejacob/nodeApp
/** * list grid: * react container for displaying a grid list of level fees: * schema: [fee_code,amount] * (c) 2016 kikone kiswendida */ import GridView,{LinkComponent,COLLECTION_SORT,COLLECTION_FETCH, COLLECTION_FILTER,COLLECTION_SET_PAGE, COLLECTION_SETPAGE_SIZE} from ...
Paths/React/06.Styling React Components/4-react-styling-components-m4-exercise-files/Before/src/nav.js
phiratio/Pluralsight-materials
import React from 'react' const { func, bool } = React.PropTypes function Nav(props) { return ( <div> <button onClick={props.onPrevious}>&#10094;</button> <button onClick={props.onNext}>&#10095;</button> </div> ) } Nav.propTypes = { onPrevious: func.isRequired, onNext: func.isRequired, ...
src/scripts/components/pages/favourites/favourites.js
jshack3r/ws-react-starter
import React from 'react'; import LinksComponent from '../../common/links/links'; // stateless component export default (props) => { return ( <div> <div className="container container--page-title"><h1>Favourite links</h1></div> <LinksComponent showFavourites={true} /> </div> ) };
examples/huge-apps/routes/Course/routes/Assignments/routes/Assignment/components/Assignment.js
bmathews/react-router
import React from 'react'; class Assignment extends React.Component { //static loadProps (params, cb) { //cb(null, { //assignment: COURSES[params.courseId].assignments[params.assignmentId] //}); //} render () { //var { title, body } = this.props.assignment; var { courseId, assignmentId } ...
modules/components/Admin/components/AddBook/index.js
hmltnbrn/classroom-library
import React from 'react'; import Paper from 'material-ui/Paper'; import TextField from 'material-ui/TextField'; import FlatButton from 'material-ui/FlatButton'; import Snackbar from 'material-ui/Snackbar'; import * as libraryService from './../../../../services/library-service'; class AddBook extends React.Component...
fields/types/datearray/DateArrayFilter.js
dvdcastro/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import moment from 'moment'; import DayPicker from 'react-day-picker'; import { FormField, FormInput, FormRow, FormSelect } from 'elemental'; const PRESENCE_OPTIONS = [ { label: 'At least one element', value: 'some' }, { label: 'No element', value:...
shared/components/HTML/index.js
thehink/equilab-web
/* eslint-disable react/no-danger */ /* eslint-disable jsx-a11y/html-has-lang */ import React from 'react'; import PropTypes from 'prop-types'; /** * The is the HTML shell for our React Application. */ function HTML(props) { const { htmlAttributes, headerElements, bodyElements, appBodyString } = props; return ...
app/containers/ViewProfiles/index.js
theClubhouse-Augusta/JobWeasel-FrontEnd
/* * * ViewProfiles * */ import React from 'react'; import Helmet from 'react-helmet'; import {Link} from 'react-router-dom'; import './style.css'; import './styleM.css'; import '../../global.css'; import LeftIcon from 'react-icons/lib/fa/chevron-left'; import RightIcon from 'react-icons/lib/fa/chevron-right'; ...
src/svg-icons/file/create-new-folder.js
jacklam718/react-svg-iconx
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/example/Pages/Introduction/Features.js
mappmechanic/codelab-book
import React, { Component } from 'react'; import ReactMarkdown from 'react-markdown'; class Features extends Component { render() { const markdown = `## Features I want this repo to be useful to many Developers/Trainers, so just go through the existing set of features which you can use now or suggest new ones. Cu...
src/pages/kitson.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Kitson' /> )
src/pages/layout.js
ShantanuShirpure/Portfolio
import React from 'react' import LeftNav from './../components/layout/leftNav' import ContentPane from './../components/layout/contentPane' export default class Layout extends React.Component { render() { // const { title } = this.props; return ( <div class="container-fluid"> <LeftNav/> <Cont...
packages/mineral-ui-icons/src/IconHttps.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconHttps(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps}> ...
src/app/containers/BaseContainer.js
djstein/modern-react
import React, { Component } from 'react'; import BaseComponent from '../components/BaseComponent'; import { connect } from 'react-redux'; class PreviewContainer extends Component { render() { return <BaseComponent /> } } function mapStateToProps(state, ownProps) { return {} } export default connect(mapSta...
react-flux-mui/js/material-ui/src/svg-icons/image/flash-off.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFlashOff = (props) => ( <SvgIcon {...props}> <path d="M3.27 3L2 4.27l5 5V13h3v9l3.58-6.14L17.73 20 19 18.73 3.27 3zM17 10h-4l4-8H7v2.18l8.46 8.46L17 10z"/> </SvgIcon> ); ImageFlashOff = pure(ImageFlashOf...
client/node_modules/react-error-overlay/lib/containers/StackTrace.js
bourdakos1/Visual-Recognition-Tool
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
src/svg-icons/communication/call.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCall = (props) => ( <SvgIcon {...props}> <path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-...
examples/src/components/Contributors.js
stephennyu/select-react
import React from 'react'; import Select from 'react-select'; const CONTRIBUTORS = require('../data/contributors'); const MAX_CONTRIBUTORS = 6; const ASYNC_DELAY = 500; const Contributors = React.createClass({ displayName: 'Contributors', propTypes: { label: React.PropTypes.string, }, getInitialState () { ret...
lib/clients/index.js
openstardrive/flight-director
import React from 'react' import { connect } from 'react-redux' import Client from './client' require('./index.css') class Clients extends React.Component { render() { let clients = [<div key='none'>Not connected to server.</div>] if (this.props.clients.length > 0) { clients = this.props.clients.map(x ...
app/javascript/mastodon/features/ui/components/column_header.js
honpya/taketodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class ColumnHeader extends React.PureComponent { static propTypes = { icon: PropTypes.string, type: PropTypes.string, active: PropTypes.bool, onClick: PropTypes.func, columnHeaderId...
src/react-ultimate-pagination-bootstrap-4.js
ultimate-pagination/react-ultimate-pagination-bootstrap-4
import React from 'react'; import {createUltimatePagination, ITEM_TYPES} from 'react-ultimate-pagination'; const WrapperComponent = ({children}) => ( <ul className="pagination">{children}</ul> ); const withPreventDefault = (fn) => (event) => { event.preventDefault(); fn(); } const Page = ({value, isActive, onC...
src/main/resources/public/js/components/rating.js
SICTIAM/ozwillo-portal
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; const Rating = require('react-rating'); export default class RatingWrapper extends React.PureComponent{ render() { const {rateable, rating} = this.props; let empty = React.createElement('img', { src: '/img/st...
client/components/Comments.js
profoundhub/FCC-Voting-App
import React from 'react'; const Comments = React.createClass({ renderComment(comment, i) { return ( <div className="comment" key={i}> <p> <strong>{comment.user}</strong> {comment.text} <button className="remove-comment">&times;</button> </p> </div> )...
app/components/CameraComponents/BigPicModal.js
MPDL/LabCam
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import { Platform, TouchableOpacity, Image, StatusBar, StyleSheet } from 'react-native'; import { isIphoneX } from '../iphoneXHelper'; class BigPicModal extends React.Component { render() { const { toggleBigPic...
packages/generator-react-server/generators/app/templates/pages/hello-world.js
doug-wade/react-server
import React from 'react'; import HelloWorld from '../components/hello-world'; export default class SimplePage { getElements() { return <HelloWorld/>; } getMetaTags() { return [ {charset: 'utf8'}, {'http-equiv': 'x-ua-compatible', 'content': 'ie=edge'}, {name: 'viewport', content: 'width=device-width,...
src/routes/Templates/components/Templates/Templates.js
prescottprue/devshare-site
import React from 'react' import classes from './Templates.scss' export const Templates = () => ( <div className={classes['Templates']}> <h4>Templates</h4> </div> ) export default Templates
app/components/IssueIcon/index.js
anhldbk/react-boilerplate
import React from 'react'; function IssueIcon(props) { return ( <svg height="1em" width="0.875em" className={props.className} > <path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v...
src/pages/Calendar/index.js
bogas04/SikhJS
import React from 'react'; import Toolbar from '../../components/Toolbar'; export default () => ( <div> <Toolbar title="Sikh Calendar" /> <div>Work in progress</div> </div> );
examples/confirming-navigation/app.js
nvartolomei/react-router
import React from 'react' import { render } from 'react-dom' import { browserHistory, Router, Route, Link, withRouter } from 'react-router' const App = React.createClass({ render() { return ( <div> <ul> <li><Link to="/dashboard" activeClassName="active">Dashboard</Link></li> <li...
node_modules/re-base/examples/github-notetaker/app/components/Main.js
react-beer/the-beer-store-jsday-facisa
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 col...
docs/src/components/Common.js
oyvindhermansen/easy-state
import React from 'react'; import styled from 'styled-components'; import Link from 'gatsby-link'; const Container = styled.div` max-width: 60rem; width: 100%; padding: 0 1rem; margin: 0 auto; `; const Marginer = styled.div` margin: 2rem 0; `; const GridContainer = styled.div` display: flex; flex-wrap:...
others/ant/antd/index1.js
fengnovo/diary
import React from 'react'; import ReactDOM from 'react-dom'; import { Form, Input, Tooltip, Icon, Cascader, Select, Row, Col, Checkbox, Button, AutoComplete } from 'antd'; const FormItem = Form.Item; const Option = Select.Option; const AutoCompleteOption = AutoComplete.Option; const residences = [{ value: 'zhejiang'...
app/javascript/components/provider-dashboard-charts/provider-dashboard-utilization-chart/utilizationDonutChart.js
ManageIQ/manageiq-ui-classic
import React from 'react'; import PropTypes from 'prop-types'; import { DonutChart, AreaChart } from '@carbon/charts-react'; import { getConvertedData } from '../helpers'; import EmptyChart from '../emptyChart'; const UtilizationDonutChart = ({ data, config }) => { const cpuData = data.cpu ? data.cpu : data.xy_data....
src/icons/ArrowGraphDownRight.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class ArrowGraphDownRight extends React.Component { render() { if(this.props.bare) { return <g> <polygon points="320,384 381.8,322.2 288.3,224 181.3,330.7 32,128 181.3,256 288.3,144 419.2,284.8 480,224 480,384 "></...
src/containers/settings/EditServiceScreen.js
meetfranz/franz
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { inject, observer } from 'mobx-react'; import { defineMessages, intlShape } from 'react-intl'; import UserStore from '../../stores/UserStore'; import RecipesStore from '../../stores/RecipesStore'; import ServicesStore from '../../sto...
js/jqwidgets/demos/react/app/passwordinput/customstrengthrendering/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxPasswordInput from '../../../jqwidgets-react/react_jqxpasswordinput.js'; class App extends React.Component { render() { // The passwordStrength enables you to override the built-in strength calculation. let passwordStrength = (passwo...
src/components/common/Separator.js
gongmingqm10/Dribbble-ReactNative
import React from 'react'; import {View, StyleSheet} from 'react-native'; import {Colors} from '../../utils/Theme'; const Separator = ({style}) => ( <View style={[styles.line, style]}/> ); const styles = StyleSheet.create({ line: { height: 1, backgroundColor: Colors.lightGray } }); export default Sepa...
frontend/Components/Header/Logo/index.js
shoumma/ReForum
import React, { Component } from 'react'; import styles from './styles'; const Logo = () => { return ( <div className={styles.logoContainer}> <div className={styles.logo}> <svg viewBox="0 0 100 100"xmlns="http://www.w3.org/2000/svg"> <g id="Group" stroke="none" strokeWidth="1" fill="none"...
ReduxReactToDo/app/containers/App/index.js
michaelgichia/TODO-List
/** * * 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/record/RecordEditor.js
RoyalIcing/gateau
import R from 'ramda' import React from 'react' import { Seed } from 'react-seeds' import Choice from '../ui/Choice' import Field from '../ui/Field' import { recordField } from '../stylers' const types = [ { value: 'string', title: 'Text' }, { value: 'boolean', title: 'Yes / No' }, { value: 'number', title...
examples/huge-apps/routes/Messages/components/Messages.js
RickyDan/react-router
import React from 'react'; class Messages extends React.Component { render () { return ( <div> <h2>Messages</h2> </div> ); } } export default Messages;
src/svg-icons/device/battery-alert.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryAlert = (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...
js/components/index.js
orionwei/mygit
/** * Created by orionwei on 2016/11/19. */ import React from 'react'; import Relay from 'react-relay'; import {IndexLink,Link} from 'react-router'; import resumeData from './../../public/resume'; import Resume from './resume'; import Header from './header'; class Index extends React.Component { render() { ...
node_modules/lite-server/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
jibadano/71mb4
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/List/List.js
kmees/react-fabric
import React from 'react' import elementType from 'react-prop-types/lib/elementType' // import ListItem from '../ListItem' import fabricComponent from '../fabricComponent' import style from './List.scss' const List = ({ children, componentClass: Component, selectable, ...props }) => ( <Component data-fabric="List"...
src/scenes/Layout/components/Representation/components/Week/components/DayOfWeek/DayOfWeek.js
czonios/schedule-maker-app
import React from 'react'; import { Header } from 'semantic-ui-react'; import './dayOfWeek.css'; import EditEvent from '../../../../services/EditEvent'; class DayOfWeek extends React.Component { constructor() { super(); this.state = { showModal: false }; this.setModal = ...
app/components/Home.js
sirgalleto/gearmanUI
// @flow import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './Home.css'; export default class Home extends Component { render() { return ( <div> <div className={styles.container} data-tid="container"> <h2>Home</h2> <Link to="/coun...
src/components/Modal/About.js
clhenrick/nyc-crash-mapper
import React from 'react'; import AboutCopy from '../AboutCopy'; export default () => ( <div className="modal-about"> <AboutCopy /> </div> );
boxroom/archive/backup-js-glow-2018-01-28/boxroom/archive/js-surface-2018-01-27/boxroom/archive/2018-01-11/src/main/js-surface-react.js
mcjazzyfunky/js-surface
import adaptReactLikeComponentSystem from './adaption/adaptReactLikeComponentSystem'; import React from 'react'; import ReactDOM from 'react-dom'; function reactMount(content, targetNode) { ReactDOM.render(content, targetNode); return () => ReactDOM.unmountComponentAtNode(targetNode); } const { createEl...
src/browser/auth/Email.js
TheoMer/Gyms-Of-The-World
// @flow import type { State } from '../../common/types'; import React from 'react'; import buttonsMessages from '../../common/app/buttonsMessages'; import emailMessages from '../../common/auth/emailMessages'; import { FormattedMessage, injectIntl } from 'react-intl'; import { compose } from 'ramda'; import { connect }...
src/layouts/CoreLayout.js
daviferreira/react-redux-starter-kit
import React from 'react'; import 'styles/core.scss'; export default class CoreLayout extends React.Component { static propTypes = { children : React.PropTypes.element } constructor () { super(); } render () { return ( <div className='page-container'> <div className='view-containe...
src/parser/shared/modules/spells/bfa/azeritetraits/EphemeralRecovery.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS/index'; import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox'; import ItemManaGained from 'interface/others/ItemManaGained'; /** Casting a healing spell restores 12 mana over 8 s...
web/client/configdev/src/config/HomeMenu.js
project-owner/Peppy
/* Copyright 2019-2022 Peppy Player peppy.player@gmail.com This file is part of Peppy Player. Peppy Player is free software: 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 (at your option) a...
src/Screens/Settings.js
saurabhj/helpline-app
'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, Image, TextInput, Button, TouchableHighlight, TouchableOpacity, AsyncStorage, Alert, Platform, ScrollView, Share, } from 'react-native'; import { StackNavigator } from 'react-n...
src/entypo/LocationPin.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--LocationPin'; let EntypoLocationPin = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M10,2.009c-2.762,0-5,2.229-5,4.99c0,4.774,5,11,5,11s5-6.227,5-11C15,4.239,12.762,2.009,10,2...