path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/Crosswords/UI/MatrixSizeForm.js
minkiele/crosswords
import React from 'react'; import {toInt} from '../Utils'; import {DEFAULT_ROWS, DEFAULT_COLS} from '../Constants'; export default class MatrixSizeForm extends React.Component { constructor (props) { super(props); } updateMatrixRows (rows) { this.updateMatrixProp('rows', toInt(rows)); } updateMatr...
src/TocHeader.js
FredBoat/docs.fredboat.com
import React, { Component } from 'react'; import {Link} from 'react-router-dom' import "./css/TocHeader.css"; class TocHeader extends Component { render() { return ( <div className="TocHeader"> <Link to={"/" + this.props.page}> <h1 className={this.props.activ...
lib/codemod/src/transforms/__testfixtures__/csf-hoist-story-annotations/overrides.input.js
storybooks/storybook
import React from 'react'; import Button from './Button'; import { action } from '@storybook/addon-actions'; export default { title: 'Button', }; export const story1 = () => <Button label="Story 1" />; export const story2 = () => <Button label="Story 2" onClick={action('click')} />; story2.story = { name: 'second ...
src/components/forecasthourly.js
jstowers/ReduxWeatherApp
import React, { Component } from 'react'; export default class ForecastHourly extends Component { constructor(props) { super(props); } renderDetailedForecast = (item) => { // console.log('item =', item); // console.log('item.dt_txt = ', item.dt_txt); const temp = (item.main.temp * (9/5) - 459.67).toFix...
src/components/Base/TopNav/index.js
apedyashev/react-calendar-app
// libs import React from 'react'; // components import {Link} from 'react-router'; import TopNavItem from 'components/Base/TopNavItem'; import {Navbar, Nav} from 'react-bootstrap'; export default function TopNav() { return ( <Navbar collapseOnSelect> <Navbar.Header> <Navbar.Brand> <Link ...
src/domain/metric/component/TopPostActivity.js
hellowin/kanca
// @flow import React from 'react'; import Card from 'infra/component/Card'; import PostSummary from './PostSummary'; import type { TimeRangeMetric } from '../service/timeRangeMetric'; import { PostMetric } from '../service/postMetric'; import uuid from 'uuid'; import { timeRangeToString } from 'infra/service/util'; c...
index.ios.js
wbsking/doutianReact
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class doutianReact extends Component { render() { return ( <View style={styles.contai...
frontend/jqwidgets/jqwidgets-react/react_jqxtogglebutton.js
liamray/nexl-js
/* jQWidgets v5.7.2 (2018-Apr) Copyright (c) 2011-2018 jQWidgets. License: https://jqwidgets.com/license/ */ import React from 'react'; const JQXLite = window.JQXLite; export const jqx = window.jqx; export default class JqxToggleButton extends React.Component { componentDidMount() { let options = this.m...
src/views/HomeView/HomeView.js
samzhao/HR-Recruitment-Management-System
/* @flow */ import React from 'react' export class HomeView extends React.Component { render () { return ( <div> <h1>Your New Project</h1> </div> ) } } export default HomeView
app/javascript/mastodon/features/ui/components/boost_modal.js
unarist/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 '../../../components/button'; import StatusContent from '../../../components/status_content'; import Av...
src/components/theme-giraffe/twitter-button.js
MoveOnOrg/mop-frontend
import React from 'react' import PropTypes from 'prop-types' import { withTwitter } from '../../containers/hoc-twitter' import TwitterSvg from 'GiraffeUI/svgs/twitter.svg' const TwitterButton = ({ onClick }) => ( <a className='mo-btn petition-thanks__link' onClick={onClick}> <TwitterSvg /> Twitter </a> ) ...
desktop/apps/auction2/client.js
dblock/force
import AddToCalendar from '../../components/add_to_calendar/index.coffee' import Artist from '../../models/artist.coffee' import Auction from '../../models/auction.coffee' import Backbone from 'backbone' import ClockView from '../../components/clock/view.coffee' import CurrentUser from '../../models/current_user.coffee...
app/javascript/mastodon/components/missing_indicator.js
robotstart/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; const MissingIndicator = () => ( <div className='missing-indicator'> <div> <FormattedMessage id='missing_indicator.label' defaultMessage='Not found' /> </div> </div> ); export default MissingIndicator;
jekyll-strapi-tutorial/api/plugins/users-permissions/admin/src/containers/AuthPage/index.js
strapi/strapi-examples
/** * * AuthPage * */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators, compose } from 'redux'; import { Link } from 'react-router-dom'; import { FormattedMessage } from 'react-intl'; import { findIndex, get, isBoolean, isEmpty, map, ...
MobileApp/mstudentApp/components/messageViews/messageCard/MessageCard.js
FresnoState/mobilestudentintranet
import React, { Component } from 'react'; import { Text, View, Dimensions, Alert } from 'react-native'; import {Card} from 'native-base'; import MessageHeader from './MessageHeader'; import OverviewContent from './OverviewContent'; import DetailContent from './DetailContent'; import subscription from '....
app/components/ArtList.js
xiaoyaomaopp/BigData-WebArt
import React from 'react'; import { Link } from 'react-router'; import ArtListStore from '../stores/ArtListStore'; import ArtListActions from '../actions/ArtListActions'; class ArtList extends React.Component { constructor(props) { super(props); this.state = ArtListStore.getState(); th...
src/Icons/Twitter.js
enragednuke/WoWAnalyzer
import React from 'react'; const Icon = ({ ...other }) => ( <svg viewBox="0 0 300.00006 244.18703" version="1.1"> <g transform="translate(-539.18 -568.86)"> <path d="m633.9 812.04c112.46 0 173.96-93.168 173.96-173.96 0-2.6463-0.0539-5.2806-0.1726-7.903 11.938-8.6302 22.314-19.4 30.498-31.66-10.955 4.8694-2...
client/admin/settings/inputs/BooleanSettingInput.js
iiet/iiet-chat
import { Field, ToggleSwitch } from '@rocket.chat/fuselage'; import React from 'react'; import { ResetSettingButton } from '../ResetSettingButton'; export function BooleanSettingInput({ _id, label, disabled, readonly, value, hasResetButton, onChangeValue, onResetButtonClick, }) { const handleChange = (event)...
src/components/inputs/dropdown.js
awaseem/Jam
import React from 'react'; import styles from '../../css/skeleton.css'; function Dropdown(props) { const options = props.options.map((x, i) => <option key={i} value={x}>{x}</option>); return ( <div> <label className={styles.label}>{props.label}</label> <select onChange={(e) => props.change(...
TestDemos/examples/LessonExamples/IIID-News/Components/Message.js
AzenXu/ReactNativeTest
/** * Created by Azen on 16/9/4. */ import React, { Component } from 'react'; import { View, Image, Text, TabBarIOS, StyleSheet } from 'react-native' var Message = React.createClass({ render() { return( <View style={styles.container}> <Text>消息</Text> ...
exercise-06/src/components/AddPokemonCard.js
learnapollo/pokedex-react
import React from 'react' import { withRouter } from 'react-router' import { graphql } from 'react-apollo' import gql from 'graphql-tag' import styled from 'styled-components' const Button = styled.div` background-color: ${props => props.save ? '#2BC3A1' : ''}; color: ${props => props.save ? 'white' : '#A3A3A3'}; ...
docs/src/app/components/pages/components/RefreshIndicator/ExampleReady.js
barakmitz/material-ui
import React from 'react'; import RefreshIndicator from 'material-ui/RefreshIndicator'; const style = { container: { position: 'relative', }, refresh: { display: 'inline-block', position: 'relative', }, }; const RefreshIndicatorExampleSimple = () => ( <div style={style.container}> <RefreshIn...
src/mountif.js
gcedo/react-mountif
import React from 'react'; const ConditionalMountDecorator = ComposedComponent => class extends React.Component { render() { const props = this.props; if (props.mountIf === false || props.unmountIf === true) { return null; } else { return <ComposedComponent...
src/components/Pagination.js
ataylorme/hazels-heritage-frontend
import React from 'react'; import PaginationLink from './PaginationLink'; class Pagination extends React.Component { render() { let {pages, paged, changePage} = this.props; if (pages <= 1) { return null; } let pageCount = []; for (let i=1; i <= pages; i++) ...
src/Well.js
PeterDaveHello/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Well = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'well' }; }, render() { let classes = this.getBsClassSet(); return ( <di...
app/javascript/mastodon/components/dropdown_menu.js
kagucho/mastodon
import React from 'react'; import Dropdown, { DropdownTrigger, DropdownContent } from 'react-simple-dropdown'; import PropTypes from 'prop-types'; export default class DropdownMenu extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; static propTypes = { icon: PropTypes.st...
src/main.js
beewang/ccwang
import React from 'react' import { render } from 'react-dom' import { AppContainer } from 'react-hot-loader' import FastClick from 'fastclick' import injectTapEventPlugin from 'react-tap-event-plugin' import App from './App' import { configureStore } from './store' // Eliminates the 300ms delay between a physical tap...
stories/components/pages/host-list/index.js
one-love/storybook
import React from 'react'; import Host from '../../molecules/host'; import List from '../../layouts/list'; export default function HostList() { return ( <List title="Hosts" cluster="active"> <Host name="host_01" /> <Host name="host_02" /> <Host name="host_03" /> </List> ); }
node_modules/react-router/es6/RouteUtils.js
amybingzhao/savings-planner-web
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import React from 'react'; function isValidChild(object) { ...
app/pages/index.js
johnotander/tachyons-generator
import React from 'react' import isPresent from 'is-present' import commaSplit from 'comma-split' import conf from '../config' const config = conf() import Layout from '../components/layout' export default class extends React.Component { constructor () { super() this.state = { config } } ha...
src/containers/onboarding/BioPrompt.js
Hylozoic/hylo-redux
import React from 'react' import { connect } from 'react-redux' import { prefetch } from 'react-fetcher' import { compose } from 'redux' import CommunityHeader from '../../components/CommunityHeader' import Modal from '../../components/Modal' import ModalOnlyPage from '../../components/ModalOnlyPage' import { ModalInpu...
src/Input/ThemedInputErrorSuffix.js
skyiea/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import InputErrorSuffix from './InputErrorSuffix'; import Tooltip from '../Tooltip'; import Error from '../Icons/dist/components/Error'; import styles from './Input.scss'; const placementToMoveBy = { right: {x: 2,...
client/meta/components/landing-page.js
jmeas/finance-app
import React from 'react'; import {Link} from 'react-router'; export default function LandingPage() { return ( <div className="landingPage_heroTextContainer"> <div className="landingPage-heroText"> Personal finance has never <br/> been this easy. </div> <Link to="/join" ...
app/js/components/containers/usersList.js
pedromrb/react-babel-react-router-webpack-boilerplate
import React from 'react'; const UsersList = ({ users }) => { return ( <ul className='list'> { users.map(user => <li className='list-item' key={ user.id }> { user.name } </li>, )} </ul> ); }; export default UsersList;
src/client/me/index.react.js
jaeh/este
import Component from '../components/component.react'; import DocumentTitle from 'react-document-title'; import Logout from '../auth/logout.react'; import React from 'react'; import requireAuth from '../auth/requireauth.react'; import {format} from '../intl/store'; @requireAuth export default class Index extends Compo...
src/containers/Navigation.js
Cron-J/CSV-REE
import React from 'react'; import { Link } from 'react-router'; import { Navbar, Nav } from 'react-bootstrap'; import Header from '../views/Header.react'; export default class Navigation extends React.Component { constructor () { super(); } render () { return ( <Header /> ); } }
addons/actions/src/manager.js
jribeiro/storybook
import React from 'react'; import addons from '@storybook/addons'; import ActionLogger from './containers/ActionLogger'; import { ADDON_ID, PANEL_ID } from './'; export function register() { addons.register(ADDON_ID, () => { const channel = addons.getChannel(); addons.addPanel(PANEL_ID, { title: 'Actio...
app/containers/ProfileText/components/education/degree.js
ledminh/ledminh-home
import React from 'react'; import styled from 'styled-components'; import {createStructuredSelector} from 'reselect'; import {connect} from 'react-redux'; import {makeSelectCurrentProfile} from 'containers/HomePage/selectors'; import { PROFILE_NOW } from 'containers/HomePage/constants'; const Style = styled.div` ...
tp-react/src/AppMsg.js
detienne11/imie
import React, { Component } from 'react'; import Socketio from 'socket.io-client'; import logo from './logo.svg'; import './App.css'; import UserForm from './UserForm'; import UserList from './UserList'; import MessageForm from './MessageForm'; import MessageList from './MessageList'; const socket = Socketio('http...
client/src/components/Login.js
FlorianEdelmaier/ReduxAsyncDemo
import React from 'react'; import { connect } from 'react-redux'; import { login } from './../actions'; import UserName from './UserName'; class Login extends React.Component { constructor(props) { super(props); this.state = { userName: '', pwd: '', }; } onUs...
app/components/Home.js
vandosant/react-notetaker
import React from 'react'; class Home extends React.Component { render() { return ( <h2 className="text-center"> Search by GitHub username above </h2> ) } } export default Home;
client/components/NotFound.js
raymestalez/vertex
import React from 'react'; const NotFound = () => <div> <h3>404 page not found</h3> </div> export default NotFound;
geonode/contrib/monitoring/frontend/src/components/organisms/ws-layers-analytics/index.js
simod/geonode
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { getResponseData, getErrorCount } from '../../../utils'; import HoverPaper from '../../atoms/hover-paper'; import HR from '../../atoms/hr'; import ResponseTable from '../../cels/response-table'; import LayerSel...
docs/src/app/components/pages/components/DatePicker/ExampleDisableDates.js
andrejunges/material-ui
import React from 'react'; import DatePicker from 'material-ui/DatePicker'; function disableWeekends(date) { return date.getDay() === 0 || date.getDay() === 6; } function disableRandomDates() { return Math.random() > 0.7; } /** * `DatePicker` can disable specific dates based on the return value of a callback. *...
js/pages/tola_management_pages/country/components/country_history.js
mercycorps/TolaActivity
import React from 'react' import { observer } from 'mobx-react'; import ChangeLog from 'components/changelog' @observer export class CountryHistory extends React.Component { render() { const {history, store} = this.props; const changelog_expanded_rows = store.changelog_expanded_rows; const...
src/App.js
Jhen225/bookme
import React, { Component } from 'react'; import logo from './logo.svg'; import Home from './components/home/home'; import './App.css'; class App extends Component { render() { return ( <Home /> ); } } export default App;
src/native/app/App.js
sikhote/davidsinclair
// @flow import type { State } from '../../common/types'; import * as themes from '../themes'; import Menu from './Menu'; import Page from './Page'; import React from 'react'; import SideMenu from 'react-native-side-menu'; import common from '../../common/app/common'; import { Baseline } from '../components'; import { ...
react-ui/src/components/Admin/Dashboard.js
civicparty/legitometer
import React from 'react'; import { Link } from 'react-router-dom'; import axios from 'axios'; import { Header, Table } from 'semantic-ui-react'; import MissionListItem from './MissionListItem'; class AdminDashboard extends React.Component { constructor() { super(); this.handleRemove = this.handleRemove.bin...
src/components/common/ItemSlider.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { injectIntl } from 'react-intl'; import Slider from 'react-slick'; import PreviousIcon from '@material-ui/icons/NavigateBefore'; import NextIcon from '@material-ui/icons/NavigateNext'; const ItemSlider = (props) => { const { slides, settings } = ...
src/components/posters.js
sanoofp/fcc-res
import React, { Component } from 'react'; import {Card, CardTitle, CardText} from 'material-ui/Card'; class Posters extends Component{ render(){ return( <div className="container"> <div className="row"> <div className="col s12 m6"> <Ca...
public/js/components/NotificationBar.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 = { type: false, message: '', time: 0, ...
docs/src/app/components/pages/components/DropDownMenu/ExampleLabeled.js
hwo411/material-ui
import React from 'react'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem'; export default class DropDownMenuLabeledExample extends React.Component { constructor(props) { super(props); this.state = {value: 2}; } handleChange = (event, index, value) => th...
conference-management-system-front-end/src/containers/logIn.js
Kokosowys/conference-management-system
import React, { Component } from 'react'; import axios from 'axios'; import hash from 'object-hash'; class Home extends Component { state = { formHasErrors: false } handleSubmitLogginForm = (event) => { event.preventDefault(); if (!event.target.username.value && event.target.usernam...
packages/material-ui-icons/src/Headset.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Headset = props => <SvgIcon {...props}> <path d="M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h3c1.66 0 3-1.34 3-3v-7c0-4.97-4.03-9-9-9z" /> </SvgIcon>; Hea...
src/index.js
nsisodiya/react-json-viewer
import React, { Component } from 'react'; import { checkIfArrayIsAOB, checkIfObjectIsOOB, getFirstEle, getType, loopObject } from './util'; import PropTypes from 'prop-types'; import ValueViewer from './ValueViewer'; export default class JSONViewer extends Component { static propTypes = { json: PropTypes.any.is...
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/expected.js
horizon-z40/RN-homework
import _transformLib from 'transform-lib'; const _components = { Foo: { displayName: 'Foo' } }; const _transformLib2 = _transformLib({ filename: '%FIXTURE_PATH%', components: _components, locals: [], imports: [] }); function _wrapComponent(id) { return function (Component) { return _transformLib...
demo/index.js
gerhardsletten/react-pinch-zoom-pan
import React from 'react' import {render} from 'react-dom' import App from './App' import { AppContainer } from 'react-hot-loader' render((<AppContainer><App /></AppContainer>), document.getElementById('main')) if (module.hot) { module.hot.accept('./App', () => { const NextRoot = require('./App').default re...
app/javascript/mastodon/features/account/components/header.js
imomix/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import emojify from '../../../emoji'; import escapeTextContentForBrowser from 'escape-html'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import IconButton from '../.....
src/Parser/DeathKnight/Unholy/Modules/RunicPower/RunicPowerDetails.js
enragednuke/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Tab from 'Main/Tab'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import Icon from 'common/Icon'; import { formatPercentage } from 'common/format'; import RunicPowerBreakdown from './RunicPowerBreakdown'; import Runic...
src/svg-icons/content/clear.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentClear = (props) => ( <SvgIcon {...props}> <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/> </SvgIcon> ); ContentClear = pure(ContentClea...
src/components/Auth/signup.js
gperl27/liftr-v2
import React, { Component } from 'react'; import { reduxForm } from 'redux-form'; import * as actions from '../../actions'; class Signup extends Component { handleFormSubmit(formProps){ // call action creator to sign up the user // can assume redux form handles validation this.props.signupUser(formProps...
fields/types/geopoint/GeoPointFilter.js
everisARQ/keystone
import React from 'react'; import { FormField, FormInput, FormRow, SegmentedControl } from 'elemental'; const DISTANCE_OPTIONS = [ { label: 'Max distance (km)', value: 'max' }, { label: 'Min distance (km)', value: 'min' }, ]; function getDefaultValue () { return { lat: undefined, lon: undefined, distance: {...
app/routes.js
runandrew/memoriae
// @flow // Required libraries import React from 'react'; import { Router, Route, IndexRoute, hashHistory } from 'react-router'; import { connect } from 'react-redux'; // Required files import App from './containers/App'; import HomePage from './containers/HomePage'; import NewUser from './containers/NewUser'; import ...
client/src/javascript/components/general/SortableListItem.js
stephdewit/flood
import _ from 'lodash'; import classnames from 'classnames'; import {DragSource, DropTarget} from 'react-dnd'; import {getEmptyImage} from 'react-dnd-html5-backend'; import React from 'react'; import ReactDOM from 'react-dom'; import LockIcon from '../icons/LockIcon'; const itemSource = { beginDrag({id, index, isVi...
examples/InputSwitch.js
mattBlackDesign/react-materialize
import React from 'react'; import Input from '../src/Input'; import Row from '../src/Row'; export default <Row> <Input name='on' type='switch' value='1' /> </Row>;
boxroom/archive/js-surface-react-2018-08-27-important/src/main/internal/conversion/convertNode.js
js-works/js-surface
import convertNodes from './convertNodes'; import VirtualElement from '../element/VirtualElement'; import React from 'react'; export default function convertNode(node) { if (node && typeof node === 'object' && typeof node[Symbol.iterator] === 'function') { return convertNodes(node); } else if (!(node instance...
src/scene/Home/HomeMenuView.js
Cowboy1995/JZWXZ
/** * Copyright (c) 2017-present, Liu Jinyong * All rights reserved. * * https://github.com/huanxsd/MeiTuan * @flow */ //import liraries import React, { Component } from 'react'; import { View, Text, StyleSheet, ScrollView, } from 'react-native'; import { screen, system, tool } from '../../common' import { col...
examples/full-example/isomorphic/variations/bucket_A/components/button.js
stephanwlee/mendel
/* Copyright 2015, Yahoo Inc. Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms. */ import React from 'react'; var count = 0; class Button extends React.Component { render() { return ( <button {...this.props}> {this.props.children} A#...
docs/server.js
lo1tuma/react-bootstrap
import 'colors'; import React from 'react'; import express from 'express'; import path from 'path'; import Router from 'react-router'; import routes from './src/Routes'; import httpProxy from 'http-proxy'; import ip from 'ip'; const development = process.env.NODE_ENV !== 'production'; const port = process.env.PORT || ...
config/flow/definitions/react.js
yknx4/aleworld
/* @flow */ // Note: we already have the definitions from // https://github.com/facebook/flow/blob/master/lib/react.js // so the below are merely helpful extensions import React from 'react'; declare type $React$Element = React.Element<*>; declare type $React$Node = string | number | $React$Element | Array<$React$E...
app/javascript/mastodon/features/status/index.js
yukimochi/mastodon
import Immutable from 'immutable'; import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { createSelector } from 'reselect'; import { fetchStatus } from '../../actions/...
src/main/resources/public/js/components/header.js
SICTIAM/ozwillo-portal
import React from 'react'; import {connect} from 'react-redux'; import {Link} from 'react-router-dom'; import PropTypes from "prop-types"; import { i18n } from "../config/i18n-config" import { t } from "@lingui/macro" class Header extends React.Component { render() { const isLogged = !!this.props.userInfo...
packages/logos/src/scylladb.js
yldio/joyent-portal
import React from 'react'; import calcFill from './fill'; export default ({ fill = null, light = false, disabled = false, colors = {}, ...rest }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 42 42" {...rest}> <title>Artboard 1 copy 44</title> <path fill={calcFill({ fill, disabled...
stories/AboutMeCategory.stories.js
nekuno/client
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { linkTo } from '@storybook/addon-links' import AboutMeCategory from '../src/js/components/profile/AboutMeCategory/AboutMeCategory.js'; storiesOf('AboutMeCategory', module) .add('with ...
src/app/Navbar.js
cityofasheville/simplicity2
import React from 'react'; import { IndexLink, Link, browserHistory } from 'react-router'; import Icon from '../shared/Icon'; import { IM_SEARCH } from '../shared/iconConstants'; import AuthControl from '../utilities/auth/authControl'; import LangSwitcher from '../utilities/lang/LangSwitcher'; export default class Nav...
client/src/Routes.js
mikehug/happyApp
import React from 'react'; import { Router, Route, IndexRoute } from 'react-router'; import App from './App'; import Chat from './Chat'; import SignUp from './SignUp'; import SignIn from './SignIn'; import Dashboard from './Dashboard'; const Routes = (props) => ( <Router {...props}> <Route path="/" component={App}>...
pkg/ui/src/components/configuration-pane/GenericExpander.js
matt-deboer/kuill
import React from 'react' import Popover from 'material-ui/Popover' import Paper from 'material-ui/Paper' import Subheader from 'material-ui/Subheader' const styles = { popover: { border: '1px solid rgba(0,0,0,0.3)', backgroundColor: 'rgb(240,240,240)', margin: 20, }, popoverTitle: { color: 'rgb(...
src/client/logo.js
maxmechanic/byo-js
import React from 'react' import styles from './logo.css' const Logo = ({src = false}) => src ? ( <div className={styles.logo}> <div className={styles.logoImageWrapper}> <img className={styles.logoImage} src={src} /> </div> </div> ) : <div className={styles.logo} /> export default Logo
src/parser/shaman/restoration/modules/talents/FlashFlood.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SpellLink from 'common/SpellLink'; import SPELLS from 'common/SPELLS'; import { TooltipElement } from 'common/Tooltip'; import Analyzer from 'parser/core/Analyzer'; import GlobalCooldown from 'parser/shared/modules/GlobalCooldown'; import { STATISTIC_ORDER } from 'interface/others/St...
rest-ui-scripts/template/src/resources/Post/crud/edit/Edit.js
RestUI/create-rest-ui-app
import React from 'react'; import { BooleanInput, CheckboxGroupInput, Datagrid, DateField, DateInput, DisabledInput, Edit as CrudEdit, EditButton, FormTab, ImageField, ImageInput, LongTextInput, NumberInput, ReferenceManyField, TabbedForm, TextField, TextInput } from 'rest-ui/lib/mui'; import RichTextInput from 'aor-ri...
src/containers/photo.js
mrGGoodbye/react-redux-API-unsplash
// подключаем необходимые модули React и Unsplash import React from 'react'; import { connect } from 'react-redux' import { action_update_like } from '../actions'; import {unsplash} from '../../src/index.js'; import {Router, Route, hashHistory, Link} from 'react-router'; // эта функция будет лайкать фотографию const f...
public/js/foot.js
MelanistOnca/Pers
import React from 'react'; import { render } from 'react-dom'; import $ from 'jquery'; import IconAuthorAttrib from './subComponents/iconAuthorAttrib' import site_footer_switch from './helpers/site_footer_switch' export default class Foot extends React.Component { render(){ // console.log(this.props, 'was ...
src/components/Content/Content.js
Kalcode/Gatsby-Boilerplate
import React from 'react' import PropTypes from 'prop-types' import styles from './styles.module.scss' import Row from './Row' export default function Content({ children, relative, padding }) { const className = styles[padding] return ( <div className={className}> <Row relative={relative}> {chil...
src/components/App.js
SKing7/react-starter
import React from 'react' import { Router } from 'react-router' import { Provider } from 'react-redux' import PropTypes from 'prop-types' import { createHistory, useBasename } from 'history' const projectConfig = require('../../project.config') const browserHistory = useBasename(createHistory)({ basename: '/' + pr...
src/App.js
lmylr/lmylr.github.io
import React from 'react'; import ReactDOM from 'react-dom'; import injectTapEventPlugin from 'react-tap-event-plugin'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import darkBaseTheme from 'material-ui/styles/baseThemes/darkBaseTheme'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; i...
src/www/js/demos/index_chained_drop_down_stateless.js
training4developers/bootcamp_04112016
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; function ChainedDropDown(props) { const [ primaryItem, secondaryItem ] = props.value.split('|'); function _onSelectPrimary(e) { props.onChange({ target: { name: props.name, value: e.target.value + '|' }}); } function _onSelect...
src/svg-icons/alert/add-alert.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AlertAddAlert = (props) => ( <SvgIcon {...props}> <path d="M10.01 21.01c0 1.1.89 1.99 1.99 1.99s1.99-.89 1.99-1.99h-3.98zm8.87-4.19V11c0-3.25-2.25-5.97-5.29-6.69v-.72C13.59 2.71 12.88 2 12 2s-1.59.71-1.59 1.59v...
frontend/src/index.js
Svjard/flightpath
/*eslint-disable import/default*/ import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import Root from './containers/Root'; import configureStore from './store/configureStore'; import { loginUserSuccess } from './actions'; //require('./favicon.ico'); import './styles/s...
src/components/common/forms/QuantitySelector.js
ESTEBANMURUZABAL/my-ecommerce-template
/** * Imports */ import React from 'react'; // Instantiate logger let debug = require('debug')('tienda765'); /** * Component */ class QuantitySelector extends React.Component { //*** Initial State ***// state = { value: this.props.value || 0 }; //*** Component Lifecycle ***// compo...
frontend/pages/error/index.js
ecmadao/hacknical
import React from 'react' import ReactDOM from 'react-dom' import Error from 'PAGES/shared/components/Error' const renderApp = (domId, props = {}) => { const DOM = document.getElementById(domId) ReactDOM.render( <Error {...props} />, DOM ) } export default renderApp
lib/Containers/LaunchScreen.js
Ezeebube5/Nairasense
import React from 'react' import { ScrollView, Text, Image, View } from 'react-native' import { Images } from '../Themes' // Styles import styles from './Styles/LaunchScreenStyles' export default class LaunchScreen extends React.Component { render () { return ( <View style={styles.mainContainer}> ...
packages/material-ui-icons/src/ArrowUpward.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let ArrowUpward = props => <SvgIcon {...props}> <path d="M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z" /> </SvgIcon>; ArrowUpward = pure(ArrowUpward); ArrowUpward.muiName = 'SvgIcon'; expor...
app/components/Tangent/index.js
brainsandspace/ship
/** * * Tangent * */ import React from 'react'; import styled from 'styled-components'; import shortid from 'shortid'; import Chunk from 'components/Chunk'; const Wrapper = styled.span` display: inline; svg { position: absolute display: inline-block; // z-index: -1; text { transform: tran...
fields/components/Checkbox.js
joerter/keystone
import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; import Color from 'color'; import E from '../../admin/client/utils/constants'; var Checkbox = React.createClass({ displayName: 'Checkbox', propTypes: { checked: React.PropTypes.bool, component: React.PropTypes.node...
apps/marketplace/components/SellerAssessment/SellerAssessmentIntroductionStage.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' import PropTypes from 'prop-types' import { Form } from 'react-redux-form' import AUheadings from '@gov.au/headings/lib/js/react.js' import AUpageAlert from '@gov.au/page-alerts/lib/js/react.js' const SellerAssessmentIntroductionStage = props => ( <Form model={props.model} onSubmit={props.o...
src/svg-icons/content/filter-list.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentFilterList = (props) => ( <SvgIcon {...props}> <path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"/> </SvgIcon> ); ContentFilterList = pure(ContentFilterList); ContentFilterList.displayName = 'Con...
mobile/components/posts/Comment.js
MatthieuLemoine/open-image-feed
import React from 'react'; import { View, Text, StyleSheet } from 'react-native'; import { Icon } from 'react-native-material-design'; import { since } from '../../../common/utils/date'; const styles = StyleSheet.create({ container : { flex : 1, flexDirection : 'row', }, primary : { flex ...
src/svg-icons/navigation/unfold-less.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationUnfoldLess = (props) => ( <SvgIcon {...props}> <path d="M7.41 18.59L8.83 20 12 16.83 15.17 20l1.41-1.41L12 14l-4.59 4.59zm9.18-13.18L15.17 4 12 7.17 8.83 4 7.41 5.41 12 10l4.59-4.59z"/> </SvgIcon> )...
src/containers/articles/thank_you.js
b0ts/react-redux-sweetlightstudios-website
import React, { Component } from 'react'; import { articleMounting } from '../../actions/index.js'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { Image } from 'react-bootstrap'; import Confetti from 'react-dom-confetti'; class ThankYou extends Component { constructor(pro...
demo/App.js
fdt-component/rc-sticky
import React from 'react'; import times from 'lodash/times'; import uniqueId from 'lodash/uniqueId'; import Sticky from '../src/index'; const styles = { item: { height: 40, lineHeight: '40px', }, stickyItem: { height: 40, lineHeight: '40px', backgroundColor: 'red', }, }; class App extends ...