path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
new-lamassu-admin/src/components/Uptime.js
lamassu/lamassu-server
import { makeStyles } from '@material-ui/core' import Chip from '@material-ui/core/Chip' import * as R from 'ramda' import React from 'react' import { secondaryColorLighter, secondaryColorDarker, offErrorColor, errorColor, offColor, inputFontWeight, smallestFontSize, inputFontFamily, spacer } from 's...
src/svg-icons/action/face.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFace = (props) => ( <SvgIcon {...props}> <path d="M9 11.75c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zm6 0c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-...
docs/src/app/components/pages/components/Snackbar/ExampleTwice.js
igorbt/material-ui
import React from 'react'; import Snackbar from 'material-ui/Snackbar'; import RaisedButton from 'material-ui/RaisedButton'; export default class SnackbarExampleTwice extends React.Component { constructor(props) { super(props); this.state = { message: 'Event 1 added to your calendar', open: fals...
src/components/PollInput/PollSettings.js
nambawan/g-old
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, FormattedMessage } from 'react-intl'; import CheckBox from '../CheckBox'; import FormField from '../FormField'; import Select from '../Select'; const messages = defineMessages({ type: { id: 'poll.type', defaultMessage: 'P...
client/src/components/ProductTable.js
wojjas/mega-store
import React from 'react'; import ProductRow from './ProductRow'; import ProductCategoryRow from './ProductCategoryRow'; class ProductTable extends React.Component { render() { const filterText = this.props.filterText; const inStockOnly = this.props.inStockOnly; let lastCategory = null; ...
src/components/RoutineFormGroups.js
snsavage/timer-react
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import NumberField from '../components/NumberField'; import Button from '../components/Button'; import RoutineFormIntervals from './RoutineFormIntervals'; import { Form, Segment, List } from 'semantic-ui-react'; export default class Routi...
local-cli/templates/HelloNavigation/views/chat/ChatListScreen.js
peterp/react-native
'use strict'; import React, { Component } from 'react'; import { ActivityIndicator, Image, ListView, Platform, StyleSheet, View, } from 'react-native'; import ListItem from '../../components/ListItem'; import Backend from '../../lib/Backend'; export default class ChatListScreen extends Component { stat...
components/com_sppagebuilder/assets/reactjs/src/helpers/PageListModal.js
hoangyen201201/TrienLamOnline
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import LinkWithTooltip from './tooltip'; import { Modal, ModalManager } from './index' class PageListModal extends Component { constructor(props) { super(props); this.state = { status: false, data: '' }; } compo...
app/screens/loginPrivateKey.js
ixje/neon-wallet-react-native
import React from 'react' import { View, TextInput, StyleSheet } from 'react-native' import Button from '../components/Button' import { DropDownHolder } from '../utils/DropDownHolder' // redux import { bindActionCreatorsExt } from '../utils/bindActionCreatorsExt' import { connect } from 'react-redux' import { ActionCr...
demo/src/components/App/components/ForkMeOnGitHub/ForkMeOnGitHub.js
moroshko/react-autowhatever
import styles from './ForkMeOnGitHub.less'; import React from 'react'; import PropTypes from 'prop-types'; export default function ForkMeOnGitHub(props) { const { user, repo } = props; return ( <a href={`//github.com/${user}/${repo}`} target="_blank" rel="noopener noreferrer"> <img className={s...
generators/react-component/templates/component.js
gzgogo/generator-react-web-app
import './<%= componentName %>.<%= stylesheetExtension %>'; import React from 'react'; class <%= componentName %> extends React.Component { render() { return ( <div className="<%= componentName.toLowerCase() %>"> <h1> <%= componentName %> </h1> </div> ); } } export default <%= compone...
example/App.js
FaridSafi/react-native-gifted-messenger
import React from 'react'; import { Platform, StyleSheet, Text, View, } from 'react-native'; import {GiftedChat, Actions, Bubble, SystemMessage} from 'react-native-gifted-chat'; import CustomActions from './CustomActions'; import CustomView from './CustomView'; export default class Example extends React.Compo...
app/javascript/components/RoundMap/CompetitorsList/List.js
skyderby/skyderby
import React from 'react' import styled from 'styled-components' import PropTypes from 'prop-types' const List = ({ className, children }) => { return <div className={className}>{children}</div> } List.propTypes = { className: PropTypes.string.isRequired, children: PropTypes.node } export default styled(List)`...
L/my-app/src/components/bangumi/Week.js
imuntil/React
import React from 'react' import PropTypes from 'prop-types' import cssModules from 'react-css-modules' import TweenOne from 'rc-tween-one' import styles from './Week.module.scss' import Day from './Day' import { weeks } from '@/utils' function Week({ week, x = 0, duration = 450 }) { return ( <div styleName="hea...
src/pages/resume/index.bundle.js
picchietti/picchietti.io
import React from 'react'; import { Link } from 'react-router-dom'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { IconSlider } from '@picchietti/components'; import GrowthGraph from '../../components/graphs/growth'; import Picture from '../../components/picture'; import Projects from './co...
test/app.js
zuozhuo/dip-webpack-config
/** * Created by zuozhuo on 2017/5/10. */ // app.scss import import './app.scss'; import React from 'react'; import {moduleAConstName, getModuleBName} from './components' import cssModuleClassNames from './app.module.scss'; window.LOGIN_USER = {firstName: 'foo', lastName: 'bar', age: 21, role: 'client'}; window.ADM...
docs/app/Examples/collections/Message/States/MessageExampleHidden.js
aabustamante/Semantic-UI-React
import React from 'react' import { Message } from 'semantic-ui-react' const MessageExampleHidden = () => ( <Message hidden> You can't see me </Message> ) export default MessageExampleHidden
src/Parser/Paladin/Retribution/Modules/Items/LiadrinsFuryUnleashed.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Wrapper from 'common/Wrapper'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import ItemLink from 'common/ItemLink'; import { formatNumber, formatPercentage } from 'common/format'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Cor...
geonode/contrib/monitoring/frontend/src/pages/error-details/index.js
timlinux/geonode
import React from 'react'; import PropTypes from 'prop-types'; import Header from '../../components/organisms/header'; import ErrorDetails from '../../components/organisms/error-detail'; import styles from './styles'; class Error extends React.Component { static propTypes = { params: PropTypes.object.isRequired...
react-native-life/ReactNativeLife/js/Components/Text/Text.js
CaMnter/front-end-life
/** * @author CaMnter */ import React from 'react'; import { Image, StyleSheet, Text, View } from 'react-native'; class Entity extends React.Component { render() { return ( <Text style={{fontWeight: 'bold', color: '#527fe4'}}> {this.props.children} ...
src/components/video_detail.js
Bentopi/React_Youtube_UI
import React from 'react'; const VideoDetail = ({video}) => { if (!video) { return <div>Loading...</div>; } const videoId = video.id.videoId; const url = `https://www.youtube.com/embed/${videoId}`; return ( <div className="video-detail col-md-8"> <div className="embed-responsive embed-resp...
src/index.js
renvrant/renvrant.github.io
import React from 'react'; import { render } from 'react-dom'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; // Components import App from './containers/app'; import Home from './containers/home'; import PageNotFound from './containers/page-not-found'; // Styles import './styles/index.css'...
src/components/video_list.js
huynhtastic/ReduxSimpleStarter
import React from 'react'; import VideoListItem from './video_list_item'; const VideoList = (props) => { const videoItems = props.videos.map((video) => { return ( <VideoListItem onVideoSelect={props.onVideoSelect} key={video.etag} video={video} /> ) }); return ( <ul cla...
src/components/TouchableNativeFeedback.js
RealOrangeOne/react-native-mock
import React from 'react'; import TouchableWithoutFeedback from './TouchableWithoutFeedback'; const TouchableNativeFeedback = React.createClass({ propTypes: { ...TouchableWithoutFeedback.propTypes, background: React.PropTypes.object }, statics: { SelectableBackground() {}, SelectableBackground...
src/svg-icons/device/brightness-low.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBrightnessLow = (props) => ( <SvgIcon {...props}> <path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 ...
app/javascript/mastodon/features/directory/index.js
gol-cha/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl } from 'react-intl'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Column from 'mastodon/components/column'; import ColumnHeader from 'mastodon/components/column...
examples/global/app.js
valzav/react-foundation-components
/* eslint-disable import/no-unresolved */ import React from 'react'; import ReactDOM from 'react-dom'; import './app.scss'; import { Button } from '../../lib/global/button'; import { ButtonGroup } from '../../lib/global/button-group'; const App = () => ( <div> <h1>Welcome to Global CSS example!</h1> <p> ...
src/Parser/Shaman/Elemental/Modules/Talents/TotemMastery.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import StatisticBo...
examples/src/components/CustomRenderField.js
bhstahl/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var CustomRenderField = React.createClass({ displayName: 'CustomRenderField', propTypes: { delimiter: React.PropTypes.st...
src/svg-icons/device/signal-cellular-connected-no-internet-4-bar.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularConnectedNoInternet4Bar = (props) => ( <SvgIcon {...props}> <path d="M20 18h2v-8h-2v8zm0 4h2v-2h-2v2zM2 22h16V8h4V2L2 22z"/> </SvgIcon> ); DeviceSignalCellularConnectedNoInternet4Bar = pur...
examples/example4/target.js
gabrielbull/react-tether2
import React, { Component } from 'react'; const style = { background: 'green', padding: '20px', height: '200px' }; class Target extends Component { render() { return ( <div style={style}> Tether Target </div> ); } } export default Target;
src/renderer/components/MapFilter/DataExportDialog/NoData.js
digidem/ecuador-map-editor
import React from 'react' import Button from '@material-ui/core/Button' import DialogContentText from '@material-ui/core/DialogContentText' import { defineMessages, FormattedMessage } from 'react-intl' import { Template } from './Template' const msgs = defineMessages({ close: 'Close', noData: "You don't yet have ...
packages/js-app-template-universal/src/server/index.js
michalkvasnicak/create-js-app
/* @flow */ import convert from 'koa-convert'; import Koa from 'koa'; import React from 'react'; import staticCache from 'koa-static-cache'; import App from '../shared/App'; import renderHtml from './renderHtml'; import { ASSETS_DIR, PUBLIC_DIR, SERVER_PORT } from './config'; const app = new Koa(); // serve static f...
packages/wix-style-react/src/StyledNestableList/docs/index.story.js
wix/wix-style-react
import React from 'react'; import { api, description, divider, example, header, importExample, playground, tab, tabs, testkit, title, } from 'wix-storybook-utils/Sections'; import { storySettings } from '../test/storySettings'; import StyledNestableList from '..'; import { getCollapsedExampleSou...
src/frontend/src/components/Logo.js
open-austin/influence-texas
import React from 'react' import { Typography } from '@material-ui/core' import styled from 'styled-components' import { Link } from 'react-router-dom' const LogoWrapper = styled.header` text-transform: uppercase; && { color: black; } &&, p { font-size: 2rem !important; display: inline-block; ...
src/containers/DevTools.js
cape-io/med-synergies
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' export default createDevTools( <DockMonitor toggleVisibilityKey="H" changePositionKey="W" defaultIsVisible={false} > <L...
src/App.js
yuchaoqian/BarPlot
import React, { Component } from 'react'; import './App.css'; import Barchart from './BarPlot/BarPlot.js'; class App extends Component { constructor(){ super(); this.handleDataUrl = this.handleDataUrl.bind(this); this.handleDataUrlInSearch = this.handleDataUrlInSearch.bind(this); } componentDidMount()...
src/Auth.js
neontribe/gbptm
import React from 'react'; import auth0 from 'auth0-js'; const CLIENT_ID = 'sUts4RKy04JcyZ2IVFgMAC0rhPARCQYg'; const permissionsKey = 'https://toiletmap.org.uk/permissions'; export const AuthContext = React.createContext(); export const useAuth = () => React.useContext(AuthContext); export const isAuthenticated = ()...
packages/Modal/shared/Base/index.js
ancestorcloud/trace-ui
import React from 'react' import ReactModal from 'react-modal' import { css } from 'glamor' import { pxToEm, opacity } from '../../../style/utils' const BaseModal = ( { width, height, maxWidth, maxHeight = '100%', minWidth, minHeight, overlayBackgroundColor = 'rgba(255, 255, 255, .75)', ...
packages/interfaces/web-app/src/components/organisms/DetailItem/DetailItem.container.js
assistant-os/assistant-os
import React from 'react' import { connect } from 'react-redux' import { getMemory, setValue } from 'redux/os' import component from './DetailItem' const mapStateToProps = (state, { actions, id }) => { let values = {} actions.forEach(action => { values[action.id] = getMemory(state, `${action.id}.${id}`) }...
frontend/src/components/options/sign-in-credentials/change-email.js
1905410/Misago
import React from 'react'; // jshint ignore:line import Button from 'misago/components/button'; // jshint ignore:line import Form from 'misago/components/form'; import FormGroup from 'misago/components/form-group'; // jshint ignore:line import ajax from 'misago/services/ajax'; import snackbar from 'misago/services/snac...
docs/src/app/components/pages/components/Avatar/Page.js
owencm/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import avatarReadmeText from './README'; import AvatarExampleSimple from './Exam...
react/features/base/react/components/web/Switch.js
bgrozev/jitsi-meet
/* @flow */ import { ToggleStateless } from '@atlaskit/toggle'; import React, { Component } from 'react'; type Props = { /** * CSS class name. */ className: string, /** * Indicates whether the switch is disabled or not. */ disabled: boolean, /** * Handler called when th...
src/svg-icons/social/person.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPerson = (props) => ( <SvgIcon {...props}> <path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/> </SvgIcon> ); SocialPerson = pure(Soc...
app/containers/LinkFormContainer/index.js
kathydoody/scalable-react-demo
/* * * LinkFormContainer * */ import React from 'react'; import { connect } from 'react-redux'; import selectLinkFormContainer from './selectors'; import LinkForm from '../../components/LinkForm'; import { addLink , addLinkCancelled } from './actions'; export class LinkFormContainer extends React.Component { // e...
app/components/NotiModal/index.js
pauleonardo/demo-trans
/** * * NotiModal * */ import React from 'react'; import PropTypes from 'prop-types'; import { Modal, ModalBackground, ModalContent, Notification, ModalClose, } from 'bloomer'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; function NotiModal({ active, close, type,...
stories/FieldEnum.stories.js
maputnik/editor
import React from 'react'; import {useActionState} from './helper'; import FieldEnum from '../src/components/FieldEnum'; import {Wrapper} from './ui'; import {withA11y} from '@storybook/addon-a11y'; export default { title: 'FieldEnum', component: FieldEnum, decorators: [withA11y], }; export const BasicFew = ()...
src/js/components/icons/base/Pin.js
kylebyerly-hp/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/containers/app/settings/account_set/create.js
w280561543/financial
import React from 'react'; import Form from 'antd/lib/form'; import Modal from 'antd/lib/modal'; import Input from 'antd/lib/input'; import Radio from 'antd/lib/radio'; import Button from 'antd/lib/button'; import Message from 'antd/lib/message'; import Cascader from 'antd/lib/cascader'; import { MonthPicker } ...
src/components/search/SearchForm.js
hui-w/events-vanilla
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import '../../styles/search-form.css'; class SearchForm extends Component { constructor(props, context) { super(props, context); this.handleSubmit = this.handleSubmit.bind(this); this.handleChange = this.handleChange.bind(this...
src/index.js
zhso/wanted
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.querySelector('.container-fluid'), );
src/svg-icons/action/trending-flat.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTrendingFlat = (props) => ( <SvgIcon {...props}> <path d="M22 12l-4-4v3H3v2h15v3z"/> </SvgIcon> ); ActionTrendingFlat = pure(ActionTrendingFlat); ActionTrendingFlat.displayName = 'ActionTrendingFlat'; A...
JS Web/ReactJS/Event and Forms/src/components/form/validationComponents/Invalid.js
mitaka00/SoftUni
import React from 'react' let Valid = prop => { return ( <span role='img' aria-label='valid' style={{ display: prop.display ? 'none' : '', marginLeft: '-23px' }} > ❌ </span> ) } export default Valid
app/src/client/components/project/ProjectSettings.js
TeamLambda/DockDev
import React from 'react'; const ProjectSettings = () => <div>settings for project</div>; export default ProjectSettings;
src/parser/warrior/arms/modules/spells/azeritetraits/LordOfWar.js
fyruna/WoWAnalyzer
import { calculateAzeriteEffects } from 'common/stats'; import SPELLS from 'common/SPELLS'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox'; import React from 'react'; import Events from 'parser/core/Events'; impor...
src/components/draggable/drag.js
BryceHQ/form-designer
import React from 'react'; import _ from 'lodash'; import $ from 'jquery'; import classnames from 'classnames'; import Colors from 'material-ui/lib/styles/colors'; import Actions from '../../actions/actions'; import Store from '../../stores/store'; import {Mode} from '../../constants/constants'; const Drag = React....
examples/pinterest/app.js
okcoker/react-router
import React from 'react'; import { Router, Route, IndexRoute, Link } from 'react-router'; var PICTURES = [ { id: 0, src: 'http://placekitten.com/601/601' }, { id: 1, src: 'http://placekitten.com/610/610' }, { id: 2, src: 'http://placekitten.com/620/620' } ]; var Modal = React.createClass({ styles: { posi...
app/src/routes/UserLogin.js
grantrules/bikeindustryjobs
import React from 'react'; import { withRouter, Route, Link } from 'react-router-dom'; import { Login, Logout, RecoverPassword, Register } from '../components/User'; import SVGLogo from '../components/SVGLogo'; const HistoryLink = withRouter(({history, ...props}) => { var domain = `${window.location.protocol}//${win...
jspm_packages/npm/react-router@2.6.1/es6/IndexRedirect.js
Imms/imms.github.io
/* */ "format cjs"; import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import Redirect from './Redirect'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var object = _React$PropTypes.object; ...
zql-frontend/components/Chips.js
Zubdano/zql
import React, { Component } from 'react'; import update from 'react-addons-update'; import { connect } from 'react-redux' import { fromJS, List, Map } from 'immutable'; import { Table } from 'react-materialize'; import './Chips.scss'; class Chips extends Component { defaultProps = { placeholder: 'Add a chip....
src/components/Discussion.js
bryaneaton13/discussion-comments
import React, { Component } from 'react'; import { connect } from 'react-redux'; import FlipMove from 'react-flip-move'; import Card from 'material-ui/lib/card/card'; import CardHeader from 'material-ui/lib/card/card-header'; import Avatar from 'material-ui/lib/avatar'; import CardTitle from 'material-ui/lib/card/card-...
app/containers/LanguageProvider/index.js
dreamdojo/converter
/* * * 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...
client/modules/App/__tests__/Components/Header.spec.js
mraq1234/mod11
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import { shallow } from 'enzyme'; import { FormattedMessage } from 'react-intl'; import { Header } from '../../components/Header/Header'; import { intl } from '../../../../util/react-intl-test-helper'; const intlProp = { ...intl, enabledLang...
src/parser/shaman/restoration/modules/features/checklist/Component.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import ResourceLink from 'common/ResourceLink'; import RESOURCE_TYPES from 'game/RESOURCE_TYPES'; import { TooltipElement } from 'common/Tooltip'; import Checklist from 'parser/s...
frontend/src/Components/Table/Cells/TableSelectCell.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import CheckInput from 'Components/Form/CheckInput'; import TableRowCell from './TableRowCell'; import styles from './TableSelectCell.css'; class TableSelectCell extends Component { // // Lifecycle componentDidMount() { const { ...
example/examples/CustomMarkers.js
carleryd/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, TouchableOpacity, } from 'react-native'; import MapView from 'react-native-maps'; import flagPinkImg from './assets/flag-pink.png'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE...
lib/components/transit-mode-selector.js
conveyal/analysis-ui
import {FormControl, FormLabel, FormHelperText, Select} from '@chakra-ui/react' import startCase from 'lodash/startCase' import React from 'react' import {ALL_TRANSIT_MODES} from '../constants' const toStartCase = (o) => startCase(o.toLowerCase()) const r5Warning = 'Note: routing engine versions prior to v4.6.0 wi...
src/mui/input/DisabledInput.js
RestUI/rest-ui
import React from 'react'; import PropTypes from 'prop-types'; import TextField from 'material-ui/TextField'; import get from 'lodash.get'; import FieldTitle from '../../util/FieldTitle'; const DisabledInput = ({ label, record, resource, source }) => <TextField value={get(record, source)} floatingLabelText={<F...
src/component/x.js
instructure-react/react-toggle
import React from 'react' export default () => ( <svg width='10' height='10' viewBox='0 0 10 10'> <path d='M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.95 7.07 7.78 9.9 9.9 7.776 7.072 4.95 9.9 2.12' fill='#fff' fillRule='evenodd' /> </svg> )
src/icons/font/LastPageIcon.js
skystebnicki/chamel
import React from 'react'; import PropTypes from 'prop-types'; import FontIcon from '../../FontIcon'; import ThemeService from '../../styles/ChamelThemeService'; const LastPageIcon = (props, context) => { let theme = context.chamelTheme && context.chamelTheme.fontIcon ? context.chamelTheme.fontIcon :...
packages/wix-style-react/src/StatisticsWidget/docs/examples/InvertedTrends.js
wix/wix-style-react
/* eslint-disable no-undef */ import React from 'react'; import { StatisticsWidget } from 'wix-style-react'; render( <div style={{ background: '#fff' }}> <StatisticsWidget items={[ { value: '500', description: 'Customers', percentage: 21, }, { ...
test/fixtures/transpile-css-prop-add-require/code.js
styled-components/babel-plugin-styled-components
// @flow import React from 'react' export default () => ( <div css={` width: 35em; `} /> )
app/components/ReposList/index.js
kaizen7-nz/gold-star-chart
import React from 'react'; import PropTypes from 'prop-types'; import List from 'components/List'; import ListItem from 'components/ListItem'; import LoadingIndicator from 'components/LoadingIndicator'; import RepoListItem from 'containers/RepoListItem'; function ReposList({ loading, error, repos }) { if (loading) ...
src/layouts/PageLayout/PageLayout.js
sdurighello/react-github-issues
import React from 'react' import { IndexLink, Link } from 'react-router' import PropTypes from 'prop-types' import './PageLayout.scss' export const PageLayout = ({ children }) => ( <div className='container text-center'> <h1>GitHub API Assignment</h1> <IndexLink to='/' activeClassName='page-layout__nav-item-...
examples/src/components/CustomOption.js
vomchik/react-select
import React from 'react'; import Gravatar from 'react-gravatar'; var Option = React.createClass({ propTypes: { addLabelText: React.PropTypes.string, className: React.PropTypes.string, mouseDown: React.PropTypes.func, mouseEnter: React.PropTypes.func, mouseLeave: React.PropTypes.func, option: React.PropTy...
src/components/views/globals/MatrixToolbar.js
aperezdc/matrix-react-sdk
/* Copyright 2015, 2016 OpenMarket Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, sof...
docs/src/app/components/pages/components/RaisedButton/ExampleSimple.js
mmrtnz/material-ui
import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; const style = { margin: 12, }; const RaisedButtonExampleSimple = () => ( <div> <RaisedButton label="Default" style={style} /> <RaisedButton label="Primary" primary={true} style={style} /> <RaisedButton label="Secondary" se...
gatsby-strapi-tutorial/cms/plugins/content-manager/admin/src/containers/App/index.js
strapi/strapi-examples
/** * * 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) * */ import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators, compose } from 'redux'; import { createStructuredSelector } fro...
node_modules/react-native/local-cli/templates/HelloNavigation/views/MainNavigator.js
TrungSpy/React-Native-SampleProject
'use strict'; /** * This is an example React Native app demonstrates ListViews, text input and * navigation between a few screens. * https://github.com/facebook/react-native */ import React, { Component } from 'react'; import { StackNavigator } from 'react-navigation'; import HomeScreenTabNavigator from './HomeS...
v0.2/src/ui/pages/_todo.js
sakulstra/firebase-web-todo
import React from 'react'; import { Link } from 'react-router'; const Todo = () => ( <div> <Link to="/">Back to home</Link> <p>At some point in this tutorial i'll render the todos!</p> </div> ); export default Todo;
src/components/Pagination/Pagination.js
cityofsurrey/polltal-app
import React from 'react' import PropTypes from 'prop-types' import Radium from 'radium' import theme from 'theme' const styles = { root: { display: 'flex', }, indicator: { height: 12, width: 12, margin: '0 0 0 15px', borderRadius: '50%', backgroundColor: theme.color.grey.cleanSock, },...
src/svg-icons/av/closed-caption.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvClosedCaption = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 7H9.5v-.5h-2v3h2V13H11v1c0 .55-.45 1-1 1H7c-.55 0-1-.45-1-1v-4c0-.5...
examples/huge-apps/routes/Profile/components/Profile.js
malte-wessel/react-router
import React from 'react' class Profile extends React.Component { render() { return ( <div> <h2>Profile</h2> </div> ) } } module.exports = Profile
src/svg-icons/av/hd.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvHd = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-...
lib/components/TabView/index.js
gmtcreators/atom-solidity
'use babel' // Copyright 2018 Etheratom Authors // This file is part of Etheratom. // Etheratom 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) any la...
app/components/BlockModal/index.js
blockfs/frontend-react
import React from 'react'; import ReactDOM from 'react-dom'; import Modal from 'react-modal'; import MdHelpOutline from 'react-icons/lib/md/help-outline'; import Wrapper from './Wrapper' const modalStyles = { overlay : { position : 'fixed', top : 0, left : 0, right...
node_modules/react-error-overlay/lib/containers/StackFrame.js
oiricaud/horizon-education
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/components/Footer/Footer.js
mauphes/own-git-project
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import withStyles from 'isomorp...
src/containers/auth/SetupAssistantScreen.js
meetfranz/franz
/* eslint-disable no-await-in-loop */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { inject, observer } from 'mobx-react'; import { sleep } from '../../helpers/async-helpers'; import SetupAssistant from '../../components/auth/SetupAssistant'; import ServicesStore from '../../sto...
src/app/component/image/image.story.js
all3dp/printing-engine-client
import React from 'react' import {storiesOf} from '@storybook/react' import Image from '.' storiesOf('Image', module) .add('default', () => <Image src="http://placehold.it/200x200" alt="placeholder image" />) .add('inline', () => <Image src="http://placehold.it/200x200" inline alt="placeholder image" />) .add('...
src/client.js
bmatthews/haze-lea
/** * 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 'whatwg-fetch'; import React from 'react'; impor...
src/SearchUrl.js
bbokorney/hold-my-beer
import React from 'react'; import './SearchUrl.css'; function SearchUrl(props) { const searchUrl = decodeURI(props.searchUrl.substring(59)); return ( <div className="SearchUrl"> <code>{searchUrl}</code> </div> ); } export default SearchUrl;
src/containers/weather_list.js
wongjenn/redux-weather-app
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Chart from '../components/chart'; import GoogleMap from '../components/google_map'; class WeatherList extends Component { renderWeather(cityData) { const name = cityData.city.name; const temps = _.map(cityData.list.map( ...
src/components/Footer/index.js
AnhHT/my-first-reactjs
import React from 'react' const Footer = (props) => { return ( <footer> <p> AnhHT © 2015 </p> </footer> ) } export default Footer
examples/with-styled-components/pages/_app.js
BlancheXu/test
import App from 'next/app' import React from 'react' import { ThemeProvider } from 'styled-components' const theme = { colors: { primary: '#0070f3' } } export default class MyApp extends App { render () { const { Component, pageProps } = this.props return ( <ThemeProvider theme={theme}> ...
packages/demos/todomvc/src/components/Footer/index.js
fopsdev/cerebral
import React from 'react' import { connect } from '@cerebral/react' import { state, signal } from 'cerebral/tags' import counts from '../../computed/counts' import classnames from 'classnames' const filters = ['All', 'Active', 'Completed'] export default connect( { filter: state`filter`, counts, filterC...
tests/acceptance/src/springs.js
andrewkshim/react-animatronics
import React from 'react' import PropTypes from 'prop-types' import Circle from './internal/components/Circle' import Example from './internal/components/Example' import { COLOR_A, COLOR_B, COLOR_C } from './internal/styles' import { withAnimatronics, withControl } from '../../../src' const START_SCALE = 'scale(0.8)'...
src/packages/@ncigdc/modern_components/SsmsTable/SsmsTable.relay.js
NCI-GDC/portal-ui
/* @flow */ /* eslint fp/no-class:0 */ import React from 'react'; import { graphql } from 'react-relay'; import { compose, withPropsOnChange } from 'recompose'; import { withRouter } from 'react-router-dom'; import { parse } from 'query-string'; import { parseIntParam, parseFilterParam, parseJSONParam, } from '@...
frontend/src/Settings/ImportLists/ImportLists/AddImportListPresetMenuItem.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import MenuItem from 'Components/Menu/MenuItem'; class AddImportListPresetMenuItem extends Component { // // Listeners onPress = () => { const { name, implementation } = this.props; this.props.onPress({ ...
app/javascript/mastodon/features/standalone/public_timeline/index.js
hugogameiro/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../../ui/containers/status_list_container'; import { expandPublicTimeline } from '../../../actions/timelines'; import Column from '../../../components/column'; import ColumnHeader from ...