path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/App.js
ServerChef/serverchef-ui
import React, { Component } from 'react'; import { Route } from 'react-router-dom'; import { Layout } from 'antd'; const { Header, Sider, Content, Footer } = Layout; import './App.css'; import TopMenu from './components/ui/TopMenu'; import SideMenu from './components/ui/SideMenu'; import Overview from './Overview'; i...
src/modules/users/components/ProfilePage/ProfilePage.js
CtrHellenicStudies/Commentary
import React from 'react'; import PropTypes from 'prop-types'; import { Tabs, Tab } from 'material-ui/Tabs'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import autoBind from 'react-autobind'; // components import AvatarEditor from '../Av...
src/core/components/TapSettings.js
getfilament/Distil
import React from 'react'; import { TextField, SelectField } from 'material-ui'; export default React.createClass({ propTypes: { tap: React.PropTypes.object }, getValues() { return [].reduce.call( React.findDOMNode(this).querySelectorAll('[name]'), (obj, field) => { obj[field.getAttr...
pollard/components/AddedSongsDisplay.js
freeformpdx/pollard
import React, { Component } from 'react'; import DraggableSong from './DraggableSong'; export default class AddedSongsDisplay extends Component { getCurrentlyPlayingSongIdx(songs) { for (var idx = 0; idx < songs.size; idx++) { if (songs.getIn([idx, 'played'])) { return idx; } } retu...
src/svg-icons/places/business-center.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesBusinessCenter = (props) => ( <SvgIcon {...props}> <path d="M10 16v-1H3.01L3 19c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2v-4h-7v1h-4zm10-9h-4.01V5l-2-2h-4l-2 2v2H4c-1.1 0-2 .9-2 2v3c0 1.11.89 2 2 2h6v-2h4v2h6c1...
public/app/components/ui-project-tab/image-selector.js
vincent-tr/mylife-home-studio
'use strict'; import React from 'react'; import * as mui from 'material-ui'; import DataImage from './data-image'; class ImageSelector extends React.Component { constructor(props, context) { super(props, context); this.state = { open: false }; } handleTouchTap(event) { event.stopPropag...
docs/client/components/pages/Home/index.js
dagopert/draft-js-plugins
/* eslint-disable react/no-unknown-property */ import React, { Component } from 'react'; import UnicornEditor from './UnicornEditor'; import Heading from '../../shared/Heading'; import Separator from '../../shared/Separator'; import styles from './styles.css'; import ContainerBox from '../../shared/ContainerBox'; impor...
app/frontend/javascripts/containers/message-input.js
czyzykowski/chatroom
import {split, slice, compose} from 'ramda'; import React from 'react'; import ReactDOM from 'react-dom'; import {connect} from 'react-redux'; import * as Actions from '../actions'; const specialCommand = line => line.match(/^\//); const parseSpecialCommand = compose(split(' '), slice(1, Infinity)); class MessageInpu...
src/Accordion.js
gianpaj/react-bootstrap
import React from 'react'; import PanelGroup from './PanelGroup'; const Accordion = React.createClass({ render() { return ( <PanelGroup {...this.props} accordion> {this.props.children} </PanelGroup> ); } }); export default Accordion;
src/components/common/Icon.js
PsychoLlama/luminary
import { FontAwesome } from '@expo/vector-icons'; import styled from 'styled-components/native'; import React from 'react'; import R from 'ramda'; import PropTypes from 'prop-types'; const OFFSET = '16px'; const OFFSETS = { RIGHT: 'right', LEFT: 'left', BOTH: 'both', NONE: 'none', }; export const Container =...
src/components/PostContainer.js
evenchange4/michaelhsu.tw
/* global window */ import React from 'react'; import * as R from 'ramda'; import styled from 'styled-components'; import format from 'date-fns/format'; import { createApolloFetch } from 'apollo-fetch'; import getFetchURL from '../utils/getFetchURL'; import A from '../components/A'; import B from '../components/B'; im...
src/components/Login/Main.js
yangdongMC/kaola
import React from 'react' import { routerRedux } from 'dva/router' import { connect } from 'dva' import PropTypes from 'prop-types' import { Form, Input, Button, Row, Col, Icon } from 'antd' import styles from './Login.css' import Particles from 'react-particles-js' import LoginComponent from './Login' import Register...
packages/vx-demo/pages/areas.js
Flaque/vx
import React from 'react'; import Show from '../components/show'; import Areas from '../components/tiles/area'; export default () => { return ( <Show component={Areas} title="Areas" margin={{ top: 0, left: 0, right: 0, bottom: 0, }} > {`import Rea...
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js
jwaltonmedia/react-router
/*globals COURSES:true */ import React from 'react' import { Link } from 'react-router' class AnnouncementsSidebar extends React.Component { render() { let { announcements } = COURSES[this.props.params.courseId] return ( <div> <h3>Sidebar Assignments</h3> <ul> {announcements....
geonode/contrib/monitoring/frontend/src/pages/alerts-settings/index.js
timlinux/geonode
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Header from '../../components/organisms/header'; import AlertSetting from '../../components/organisms/alert-setting'; import HoverPaper from '../../components/atoms/hover-paper'; import actions from './actions';...
blueocean-material-icons/src/js/components/svg-icons/maps/directions-run.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const MapsDirectionsRun = (props) => ( <SvgIcon {...props}> <path d="M13.49 5.48c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-3.6 13.9l1-4.4 2.1 2v6h2v-7.5l-2.1-2 .6-3c1.3 1.5 3.3 2.5 5.5 2.5v-2c-1.9 0-3.5-1-4.3-2.4l-1-1.6c-.4-.6-1-1-1.7-1-.3 0-.5.1...
compare/src/components/atoms/ImagePreview.js
garris/BackstopJS
import React from 'react'; import { connect } from 'react-redux'; import VisibilitySensor from 'react-visibility-sensor'; import styled from 'styled-components'; import { colors, fonts } from '../../styles'; const BASE64_PNG_STUB = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7'; co...
mockTrello/src/components/editCardModal.js
balaSpyrus/code
import React from 'react'; import { Scrollbars } from 'react-custom-scrollbars'; import Modal from 'react-modal'; import './editCardModal.css'; const customStyles = { content: { top: '50%', left: '50%', right: 'auto', bottom: 'auto', marginRight: '-50%', transform: ...
src/common/components/forms/DemoForm.js
gocreating/express-react-hmr-boilerplate
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import { Field, reduxForm } from 'redux-form'; import Alert from 'react-bootstrap/lib/Alert'; import Button from 'react-bootstrap/lib/Button'; import FormNames from '../../constants/FormNames'; import {...
packages/react-scripts/fixtures/kitchensink/src/features/env/ShellEnvVariables.js
digitalorigin/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; export default () => ( <span id="feature-shell-env-variables"> {process.env.REACT_APP_SHELL_ENV_MESSAG...
web-server/v0.4/src/pages/Summary/index.js
atheurer/pbench
import React from 'react'; import { connect } from 'dva'; import { Spin, Tag, Card, List, Typography, Divider } from 'antd'; import { filterIterations } from '../../utils/parse'; import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import Table from '@/components/Table'; import TableFilterSelection from '@/c...
src/components/Feedback/Feedback.js
jshultz/secret_project
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback { render() { return ( <div className="Feedback"> <div className="Feedba...
app/modules/publishes/utils/list/createCriteria.js
theseushu/funong-web
import React from 'react'; import Criteria from 'modules/common/criteria'; export default ({ ...props }) => <Criteria {...props} />;
src/components/monthly.js
wcastand/okami
import React from 'react' import PropTypes from 'prop-types' import {compose} from 'recompose' import startOfMonth from 'date-fns/fp/startOfMonthWithOptions' import startOfWeek from 'date-fns/fp/startOfWeekWithOptions' import startOfDay from 'date-fns/fp/startOfDay' import subMonths from 'date-fns/fp/subMonths' import...
src/components/LedgerTable.js
chatch/stellarexplorer
import React from 'react' import Table from 'react-bootstrap/lib/Table' import {Link} from 'react-router-dom' import {FormattedMessage} from 'react-intl' import PropTypes from 'prop-types' import {withSpinner} from './shared/Spinner' import TimeSynchronisedFormattedRelative from './shared/TimeSynchronizedFormattedRelat...
app/javascript/flavours/glitch/features/list_timeline/index.js
vahnj/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import StatusListContainer from 'flavours/glitch/features/ui/containers/status_list_container'; import Column from 'flavours/glitch/components/column'; import...
app/javascript/mastodon/features/favourites/index.js
pixiv/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchFavourites } from '../../actions/interactions'; import { ScrollContainer } fr...
src/app/components/elements/Link.js
TimCliff/steemit.com
import PropTypes from 'prop-types'; import React from 'react'; import links from 'app/utils/Links'; import { browserHistory } from 'react-router'; import shouldComponentUpdate from 'app/utils/shouldComponentUpdate'; export default class Link extends React.Component { static propTypes = { // HTML properties...
src/containers/Asians/Published/PreliminaryRounds/index.js
westoncolemanl/tabbr-web
import React from 'react' import { connect } from 'react-redux' import ViewLockedRound from 'containers/Asians/_components/ViewLockedRound' import ViewMatchUps from './ViewMatchUps' import NoMatchUps from './NoMatchUps' import * as utils from 'utils' export default connect(mapStateToProps)(({ rounds, rooms, ma...
src/components/Pages/PageTitleBar.js
ndlib/beehive
import React from 'react' import PropTypes from 'prop-types' import { Toolbar, Typography } from '@material-ui/core' import { makeStyles } from '@material-ui/core/styles' import CloseButton from 'other/CloseButton' const useStyles = makeStyles({ bar: { minHeight: props => `${props.height}px`, height: props =...
src/App.js
jckfa/jackf.me
import React from 'react' import {BrowserRouter as Router, Route, Switch} from "react-router-dom"; import GlobalStyle from './components/config/global' import About from './components/pages/About' import NotFound from './components/pages/NotFound' const App = () => ( <Router> <GlobalStyle/> <Switch> <R...
app/component/CoverImage/CoverImage.js
vitorbal/travel
import React from 'react'; import styles from './CoverImage.css'; // TODO: lazy-load const CoverImage = (props) => { return ( <img className={ styles.wrapper } src={ props.src } /> ); }; CoverImage.propTypes = { src: React.PropTypes.string.isRequired }; export default CoverImage;
packages/ringcentral-widgets/components/ConnectivityAlert/index.js
u9520107/ringcentral-js-widget
import React from 'react'; import PropTypes from 'prop-types'; import connectivityMonitorMessages from 'ringcentral-integration/modules/ConnectivityMonitor/connectivityMonitorMessages'; import i18n from './i18n'; export default function ConnectivityAlert({ message: { message, }, currentLocale, }) { retur...
Agenda/src/components/agenda_home.js
interlegis/agenda-evento
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import BigCalendar from 'react-big-calendar'; import moment from 'moment'; import 'moment/locale/pt-br'; import _ from 'lodash'; import { getAgendaPedidos } from '../actions/pedido-evento/pedido'; import { connect } from 'react-redux'; momen...
templates/rubix/rubix-bootstrap/src/Tag.js
jeffthemaximum/jeffline
import React from 'react'; import classNames from 'classnames'; export default class Tag extends React.Component { static propTypes = { href: React.PropTypes.string, color: React.PropTypes.string, }; render() { let { color, className } = this.props; color = color || "darkgreen45"; let props ...
src/server.js
johnloy/wat-namegame
import Express from 'express' import React from 'react' import config from '../config' import favicon from 'serve-favicon' import compression from 'compression' import httpProxy from 'http-proxy' import path from 'path' import ApiClient from '../lib/api-client' // import Location from 'react-router/lib/Location' // imp...
src/components/drug_concept_list.js
mbestwick/medication-search
import React from 'react'; import DrugConceptItem from './drug_concept_item'; const DrugConceptList = (props) => { if (!props.validConcept) { return ( <div> <h3>Concepts:</h3> <div>No results found.</div> </div> ); } const drugs = props.drugConcepts.map((drug, index) => { ...
frontend/app/components/Category/states/successCreate.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' import NavigationHelpers from 'common/NavigationHelpers' // REDUX import { connect } from 'react-redux' import { pushWindowPath } from 'reducers/windowPath' const { string, object, func } = PropTypes const categoryType = { title: { plural: 'Categories', ...
docs/app/Examples/modules/Progress/Variations/InvertedColor.js
jamiehill/stardust
import React from 'react' import { Progress, Segment } from 'stardust' const ProgressInvertedColorExample = () => ( <Segment className='inverted'> <Progress percent={32} inverted color='red' label /> <Progress percent={59} inverted color='orange' label /> <Progress percent={13} inverted color='yellow' la...
client/modules/home/components/feature.js
gotrecillo/daw-euskalvideo
import React from 'react'; import { Card, CardTitle, CardText } from 'material-ui/Card'; import FontIcon from 'material-ui/FontIcon'; import { styles } from './styles'; const Feature = ({ feature }) => ( <Card zDepth={2} style={styles.feature.item}> <CardTitle title={feature.title} titleStyle={styles.feature.tit...
admin/src/components/ListColumnsForm.js
kwangkim/keystone
import classnames from 'classnames'; import React from 'react'; var Transition = React.addons.CSSTransitionGroup; var CurrentListStore = require('../stores/CurrentListStore'); var Popout = require('./Popout'); var PopoutList = require('./PopoutList'); var { Button, Checkbox, InputGroup, SegmentedControl } = require('e...
src/components/misc/basic-container.js
scholtzm/arnold
import React from 'react'; import { Container } from 'semantic-ui-react'; const BasicContainer = (props) => ( <Container fluid style={{ padding: '0 15px' }}> {props.children} </Container> ); export default BasicContainer;
src/components/footer/index.js
hechoendrupal/drupalconsole.com
import React from 'react'; // import PropTypes from 'prop-types'; import { Link } from "gatsby" import { FaLifeRing, FaGithub, FaTwitter } from "react-icons/fa"; import './style.css'; const footer = props => { return ( <footer className="footer"> <div className="container"> <div className="row just...
app/routes.js
Rinkana190/restfaker
// @flow import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './containers/App'; import HomePage from './containers/HomePage'; import CounterPage from './containers/CounterPage'; export default ( <Route path="/" component={App}> <IndexRoute component={HomePage} /> <R...
src/components/views/landing/Landing.js
LiskHunt/LiskHunt
import React, { Component } from 'react'; import AnimationsWrapper from '../../animations-wrapper/AnimationsWrapper'; import { goResourcesList, goBuildSomething, goNewToLisk, goHome, } from '../../router/routes'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import { bindAc...
src/components/topic/TopicStoryTableContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import TopicStoryTable from './TopicStoryTable'; import { isUrlSharingFocalSet, hasAUrlSharingFocalSet } from '../../lib/topicVersionUtil'; /** * Simple wrapper around TopicStoryTable to pull in some stuff from state ...
mobile/js/features/goods/index.js
lovelypig5/mock-server
import React from 'react'; import { AsyncStorage, TabBarIOS, Text, ListView, View, TextInput, TouchableOpacity } from 'react-native'; import DICT from '../../config/dict'; import API from '../../config/api'; import styles from '../../styles'; const Goods = React.createClass({ getInitia...
src/components/Overview/index.js
fooey/gw2w2w-cra
import React, { Component } from 'react'; import { graphql } from 'react-apollo'; import _ from 'lodash'; import Matches from './Matches/index'; import Worlds from './Worlds/index'; import { Loading } from 'src/components/Util'; import OverviewQuery from 'src/gql/overview'; class Overview extends Component { shoul...
Examples/UIExplorer/js/ActivityIndicatorExample.js
imDangerous/react-native
/** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * The examp...
src/routes/Games/components/HowToPlay.js
colindcampbell/word-weaver
import React from 'react' export const HowToPlay = ({hideHowTo}) => ( <div className="posf df jcc aic" style={{top:0,left:0,right:0,bottom:0,zIndex:10,background:"rgba(68, 85, 102,.75)"}}> <div className="posr" style={{background:"#fff",width:"70%",height:"80%",maxWidth:640,minWidth:360,padding:20,borderRadius:...
src/containers/DevTools.js
leidenglai/react-ops
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="ctrl-h" changePositionKey="ctrl-w" d...
src/svg-icons/action/delete.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDelete = (props) => ( <SvgIcon {...props}> <path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"/> </SvgIcon> ); ActionDelete = pure(ActionDelete); ActionDelete.display...
admin/client/App/shared/Popout/PopoutPane.js
naustudio/keystone
/** * Render a popout pane, calls props.onLayout when the component mounts */ import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; var PopoutPane = React.createClass({ displayName: 'PopoutPane', propTypes: { children: React.PropTypes.node.isRequired, className: Re...
docs/client/components/pages/Emoji/index.js
dagopert/draft-js-plugins
/* eslint-disable no-template-curly-in-string */ import React, { Component } from 'react'; // eslint-disable-next-line import/no-unresolved import gettingStarted from '!!../../../loaders/prism-loader?language=javascript!./gettingStarted'; // eslint-disable-next-line import/no-unresolved import simpleExampleCode from '...
src/icons/DirectionsSubwayIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class DirectionsSubwayIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M24 4C15.16 4 8 5 8 12v19c0 3.87 3.14 7 7 7l-3 3v1h24v-1l-3-3c3.87 0 7-3.13 7-7V12c0-7-7.16-8-16-...
examples/js/column-filter/date-filter-with-default-value.js
rolandsusans/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; const startDate = new Date(2015, 0, 1); const endDate = new Date(); ...
node_modules/react-router/es/Router.js
Kgiberson/welp
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 = {...
src/components/ThumbnailGrid/ThumbnailGrid.js
rogeriopvl/http.cat
import React from 'react' import styles from './ThumbnailGrid.module.css' const ThumbnailGrid = ({ children }) => { return ( <ul className={styles.container}> {children.map((el, idx) => ( <li className={styles.thumbnail} key={idx}>{el}</li> ))} </ul> ) } export default ThumbnailGrid
client/src/components/Login.js
jeffersonsteelflex69/mytv
import React, { Component } from 'react'; import { Link } from 'react-router'; class Login extends Component { loginUser(e){ e.preventDefault(); let userPool = this.props.app.aws.cognito.userPool; let userPoolId = this.props.app.aws.cognito.userPoolId; let userPoolURL = this.props.app.aws.cognito.userPoolURL;...
static/js/components/PlayerVolume.js
wolendranh/movie_radio
import {render} from 'react-dom' import React from 'react' import $ from 'jquery'; import 'jquery-ui/ui/widgets/slider'; import 'jquery-ui/ui/widgets/draggable'; class Volume extends React.Component { setInitialVolume(){ "use strict"; var liquid= document.querySelector('.liquid'); liquid.setAt...
app/components/FadeAnimedImage.js
yanbober/RNPolymerPo
/* * MIT License * * Copyright (c) 2016 yanbo * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, m...
src/components/ui/TouchableIcon.js
yaswanthsvist/openCexTrade
import React from 'react'; import { TouchableHighlight , StyleSheet, Text , View , Image } from 'react-native'; import {icons} from './../../styles' import lodash from 'lodash'; export default class TouchableIcon extends React.Component{ constructor(props){ super(props) this.state={}; this.prioritizeRecie...
src/components/OverlayDescription/OverlayDescription.js
Zoomdata/nhtsa-dashboard-2.2
import styles from './OverlayDescription.css'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { VelocityComponent } from 'velocity-react'; const mapStateToProps = (state) => { return { hideOverlay: state.hideOverlay } }; class OverlayDescription extends Compon...
src/App.js
kidylee/Front-end-boilerplate
import React, { Component } from 'react'; import AutoLayout from './components/AutoLayout'; export class App extends Component { render() { return ( <AutoLayout/> ); } }
app/javascript/mastodon/features/ui/components/drawer_loading.js
SerCom-KC/mastodon
import React from 'react'; const DrawerLoading = () => ( <div className='drawer'> <div className='drawer__pager'> <div className='drawer__inner' /> </div> </div> ); export default DrawerLoading;
react-router-es6-example/node_modules/react-router/es6/RoutingContext.js
akhilaantony/React-Stylisted
import React from 'react'; import RouterContext from './RouterContext'; import warning from './routerWarning'; var RoutingContext = React.createClass({ displayName: 'RoutingContext', componentWillMount: function componentWillMount() { process.env.NODE_ENV !== 'production' ? warning(false, '`RoutingContext` has...
demo/components/form/Example2.js
f0zze/rosemary-ui
import React from 'react'; import {connect} from 'react-redux'; import { reduxForm } from 'redux-form'; import {Input, Select, DateRangePicker, Button, FormField} from '../../../src'; class Example2 extends React.Component { constructor(props) { super(props); } render() { const { ...
src/example/plot/width-height-margin.js
jameskraus/react-vis
// Copyright (c) 2016 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
techCurriculum/ui/solutions/6.2/src/index.js
AnxChow/EngineeringEssentials-group
/** * Copyright 2017 Goldman Sachs. * 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 writ...
Platforms/react-native/IoTLabs/Page/Page6.js
iot-labs/dashboard
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Image, Dimensions, AsyncStorage, Platform, AppState, ScrollView } from 'react-native'; import * as Ani...
src/svg-icons/image/camera-front.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCameraFront = (props) => ( <SvgIcon {...props}> <path d="M10 20H5v2h5v2l3-3-3-3v2zm4 0v2h5v-2h-5zM12 8c1.1 0 2-.9 2-2s-.9-2-2-2-1.99.9-1.99 2S10.9 8 12 8zm5-8H7C5.9 0 5 .9 5 2v14c0 1.1.9 2 2 2h10c1.1 0 2-....
src/svg-icons/device/gps-not-fixed.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceGpsNotFixed = (props) => ( <SvgIcon {...props}> <path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-3.77 7...
local-cli/generator/templates/index.android.js
jaggs6/react-native
/** * 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 <%= name %> extends Component { render() { return ( <View style={styles.contain...
new-lamassu-admin/src/pages/AuthRegister.js
naconner/lamassu-server
import useAxios from '@use-hooks/axios' import React from 'react' import { useLocation, useHistory } from 'react-router-dom' const useQuery = () => new URLSearchParams(useLocation().search) const url = process.env.NODE_ENV === 'development' ? 'https://localhost:8070' : '' const AuthRegister = () => { const histor...
app/components/Store/Main/Paper/index.js
VineRelay/VineRelayStore
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; const Wrapper = styled.div` max-width: ${(props) => props.theme.maxWidth}px; margin: 0 auto; ${(props) => props.paddings.indexOf('left') > -1 && 'padding-left: 16px;'} ${(props) => props.paddings.indexOf('rig...
app/boards/mercedes-amg-gt3/components/delta.js
fermio/motorsport-display
import React from 'react'; const Delta = React.createClass({ propTypes: { id: React.PropTypes.string.isRequired, legend: React.PropTypes.string.isRequired, delta: React.PropTypes.number }, getDefaultProps: function() { return { delta: 0 }; }, sh...
src/app/components/navLink.js
nazar/soapee-ui
import React from 'react'; import cx from 'classnames'; import {Link, State} from 'react-router'; export default React.createClass( { mixins: [ State ], activeClassForTo( to ) { return cx( { active: this.isActive( to ) } ); }, render() { return ( <li className=...
examples/todomvc/components/Header.js
yonatanmn/Cartiv
import React, { Component } from 'react'; import TodoTextInput from './TodoTextInput'; import API from '../stores/Api'; class Header extends Component { render() { return ( <header className="header"> <h1>todos</h1> <TodoTextInput newTodo placeholder="What needs to be done?"...
client/src/components/export/selectionButtons/ExportAsImageButton.js
alecortega/palettable
// @flow import React from 'react'; import UISelectableButton from '../../shared/button/UISelectableButton'; import FaImage from 'react-icons/lib/fa/image'; import { connect } from 'react-redux'; import likedColorsSelector from '../../../redux/selectors/likedColorsSelector'; import type { ColorType } from '../../../con...
cra-client/src/index.js
DanielBaird/hdrp-test
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/components/stores/stores-list.js
Xabadu/VendOS
import React, { Component } from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; import { getStoresFullList, deleteStore } from '../../actions/stores'; class StoresList extends Component { constructor(pro...
src/svg-icons/editor/border-style.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderStyle = (props) => ( <SvgIcon {...props}> <path d="M15 21h2v-2h-2v2zm4 0h2v-2h-2v2zM7 21h2v-2H7v2zm4 0h2v-2h-2v2zm8-4h2v-2h-2v2zm0-4h2v-2h-2v2zM3 3v18h2V5h16V3H3zm16 6h2V7h-2v2z"/> </SvgIcon> ); E...
src/parser/druid/restoration/modules/features/Ironbark.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import LazyLoadStatisticBox, { STATISTIC_ORDER } from 'interface/others/LazyLoadStatisticBox'; import { formatNumber, formatPercentage } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import SPELLS from 'common/SPELLS'; import fetchWcl from 'common/fetchWclApi'; import Analy...
src/svg-icons/image/filter-6.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter6 = (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-8-2h2c1.1 0 2-.89 2-2v-2...
modules/BaseLink.js
router5/react-router5
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class BaseLink extends Component { constructor(props, context) { super(props, context); this.router = context.router; if (!this.router.hasPlugin('BROWSER_PLUGIN')) { console.error('[react-router5][Ba...
src/components/Keyword/index.js
andywillis/uws
// Dependencies import React from 'react'; import PropTypes from 'prop-types'; // Style import './style.css'; /** * @function Keyword * @param {object} props Component properties * @return {jsx} Component */ const Keyword = ({ keyword }) => ( <li className="Keyword">{keyword}</li> ); export default Keyword; ...
components/JRConf/JRConfLanding.js
yudazilian/VisualJusticeTW
import React from 'react'; import ReactDOM from 'react-dom'; import ReactRouter from 'react-router'; import JRConfHeader from './JRConfLandingHeader'; import JRConfFooter from './JRConfFooter'; import Timer from './JRConfTimer'; import { RedRibbon } from '../common/githubRibbon'; import FacebookLikeButton from '../com...
modules/gui/src/app/home/body/process/recipe/ccdcSlice/panels/chartPixel.js
openforis/sepal
import {CCDCGraph} from '../../ccdc/ccdcGraph' import {Form, form} from 'widget/form/form' import {Panel} from 'widget/panel/panel' import {RecipeActions, loadCCDCSegments$} from '../ccdcSliceRecipe' import {Subject, takeUntil} from 'rxjs' import {compose} from 'compose' import {msg} from 'translate' import {selectFrom...
app/javascript/containers/ManagementDatasetAliases.js
Vizzuality/forest-atlas-landscape-cms
import React from 'react'; import PropTypes from 'prop-types'; import ManagementContainer from 'containers/shared/ManagementContainer'; const renderAliasesColumn = (column, index, defaultLanguage) => ( <div key={column.name} className="row"> <div className="column column-3"> <label htmlFor={`dataset-metad...
client/src/react/checklists/CompleteChecklist.js
charlesj/Apollo
import React from 'react' import { connect, } from 'react-redux' import ClassNames from 'classnames' import PropTypes from 'prop-types' import { checklistSelectors, } from '../../redux/selectors' import { checklistActions, } from '../../redux/actions' import { NotifySuccess, } from '../../services/notifier' import { ...
src/svg-icons/action/card-travel.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCardTravel = (props) => ( <SvgIcon {...props}> <path d="M20 6h-3V4c0-1.11-.89-2-2-2H9c-1.11 0-2 .89-2 2v2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zM9 4h6v2H9V4zm11 15H...
app/components/chart/bgLog.js
hichameyessou/blip
/* * == BSD2 LICENSE == * Copyright (c) 2014, Tidepool Project * * This program is free software; you can redistribute it and/or modify it under * the terms of the associated License, which is identical to the BSD 2-Clause * License as published by the Open Source Initiative at opensource.org. * * This program...
src/icons/SignalCellular3BarIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class SignalCellular3BarIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path fillOpacity=".3" d="M4 44h40V4z"/><path d="M34 14L4 44h30z"/></svg>;} };
src/components/GridView/GridViewItem.js
Digitova/reactova-framework
import React, { Component } from 'react'; import { Text, View, Image } from 'react-native'; export default class extends Component { render() { if(this.props.item == null){ return ( <View style={[Styles.item,{margin: this.props.itemMargin, alignItems: this.props.alignItems}]}/> ) } else { return ( ...
website/src/MDPage.js
kkamperschroer/react-navigation
import React from 'react'; const Markdown = require('react-markdown'); const DocsMD = require('../docs-dist.json'); import Link from './Link'; import PhoneGraphic from './PhoneGraphic'; const slugify = require('slugify'); import CodeBlock from './CodeBlock'; const safeString = s => slugify(s).replace(/\)/g, '-').repl...
src/svg-icons/notification/power.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPower = (props) => ( <SvgIcon {...props}> <path d="M16.01 7L16 3h-2v4h-4V3H8v4h-.01C7 6.99 6 7.99 6 8.99v5.49L9.5 18v3h5v-3l3.5-3.51v-5.5c0-1-1-2-1.99-1.99z"/> </SvgIcon> ); NotificationPower = pu...
src/components/post_new.js
khayyamj/thunderbirds_troop51
/* @flow */ import React, { Component } from 'react'; import RichTextEditor, { createEmptyValue } from 'react-rte'; import { convertToRaw } from 'draft-js'; import autobind from 'class-autobind'; import type { EditorValue } from './RichTextEditor'; import { createPost, fetchTags, createTags, mergeBlogTags, fetchRoster,...
src/svg-icons/communication/textsms.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationTextsms = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/> </SvgIcon> ); Communica...
site/IndexPage.js
nickknw/react-dnd
import './base.less'; import Constants, { APIPages, ExamplePages, Pages } from './Constants'; import HomePage from './pages/HomePage'; import APIPage from './pages/APIPage'; import ExamplePage from './pages/ExamplePage'; import React, { Component } from 'react'; const APIDocs = { OVERVIEW: require('../docs/00 Quick ...
nlyyAPP/component/MLHome/MLHome.js
a497500306/nlyy_APP
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, TouchableOpacity, Navigator, ListView, Image, TouchableHighlight, Alert } from 'react-native'; var Dim...