path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/maps/transfer-within-a-station.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsTransferWithinAStation = (props) => ( <SvgIcon {...props}> <path d="M16.49 15.5v-1.75L14 16.25l2.49 2.5V17H22v-1.5zm3.02 4.25H14v1.5h5.51V23L22 20.5 19.51 18zM9.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 ...
components/frontend/src/source/SourceEntityAttribute.js
ICTU/quality-time
import React from 'react'; import { StatusIcon } from '../measurement/StatusIcon'; import { HyperLink } from '../widgets/HyperLink'; import { TimeAgoWithDate } from '../widgets/TimeAgoWithDate'; export function SourceEntityAttribute({ entity, entity_attribute }) { let cell_contents = entity[entity_attribute.key] ?...
app/javascript/mastodon/components/relative_timestamp.js
gol-cha/mastodon
import React from 'react'; import { injectIntl, defineMessages } from 'react-intl'; import PropTypes from 'prop-types'; const messages = defineMessages({ today: { id: 'relative_time.today', defaultMessage: 'today' }, just_now: { id: 'relative_time.just_now', defaultMessage: 'now' }, just_now_full: { id: 'relativ...
src/TabPane.js
bvasko/react-bootstrap
import React from 'react'; import deprecationWarning from './utils/deprecationWarning'; import Tab from './Tab'; const TabPane = React.createClass({ componentWillMount() { deprecationWarning( 'TabPane', 'Tab', 'https://github.com/react-bootstrap/react-bootstrap/pull/1091' ); }, render() { ...
fields/types/embedly/EmbedlyField.js
mekanics/keystone
import React from 'react'; import Field from '../Field'; import { FormField, FormInput } from 'elemental'; module.exports = Field.create({ displayName: 'EmbedlyField', // always defers to renderValue; there is no form UI for this field renderField () { return this.renderValue(); }, renderValue (path, label, ...
examples/huge-apps/routes/Course/routes/Announcements/routes/Announcement/components/Announcement.js
stanleycyang/react-router
import React from 'react'; class Announcement extends React.Component { //static loadProps (params, cb) { //cb(null, { //announcement: COURSES[params.courseId].announcements[params.announcementId] //}); //} render () { //var { title, body } = this.props.announcement; var { courseId, annou...
src/svg-icons/action/flight-takeoff.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFlightTakeoff = (props) => ( <SvgIcon {...props}> <path d="M2.5 19h19v2h-19zm19.57-9.36c-.21-.8-1.04-1.28-1.84-1.06L14.92 10l-6.9-6.43-1.93.51 4.14 7.17-4.97 1.33-1.97-1.54-1.45.39 1.82 3.16.77 1.33 1.6-....
src/main/js/server.js
thanhiro/react-liferay-portlet
import './polyfill'; import React from 'react'; import { renderToString } from 'react-dom/server'; import StaticRouter from 'react-router-dom/StaticRouter'; import App from './app'; module.exports = function renderApp(path) { const html = renderToString( <StaticRouter basename="/ui" location={path} > <App ...
app/javascript/mastodon/components/animated_number.js
h3zjp/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedNumber } from 'react-intl'; import TransitionMotion from 'react-motion/lib/TransitionMotion'; import spring from 'react-motion/lib/spring'; import { reduceMotion } from 'mastodon/initial_state'; export default class AnimatedNumber extends...
src/svg-icons/image/blur-off.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBlurOff = (props) => ( <SvgIcon {...props}> <path d="M14 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm-.2 4.48l.2.02c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5l.02.2c.09.67.61 1.19 1.28 1.2...
src/js/containers/bondSystems/cyclopropane.js
nicksenger/JSchematic
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { createElement, saveState } from '../../actions/index'; import { calcRotation } from '../../utilities/sharedFunctions'; import BasicBond from '../basicBond'; require("../../../css...
src/index.js
ErikMediaMonks/react-native-native-navigation
import React from 'react'; import { Navigation } from './Navigation'; import SingleView, { SingleNode } from './components/single/SingleView'; import StackView, { StackNode } from './components/stack/StackView'; import TabView, { TabNode } from './components/tab/TabView'; import SplitView, { SplitNode } from './compone...
ui/src/pages/PeopleManagePage/PersonaView.js
LearningLocker/learninglocker
/* eslint-disable react/jsx-indent */ import React from 'react'; import PropTypes from 'prop-types'; import { compose, withProps, setPropTypes, defaultProps } from 'recompose'; import { Map } from 'immutable'; import Tabs from 'ui/components/Material/Tabs'; import { Tab } from 'react-toolbox/lib/tabs'; import { withMod...
src/client/todos/todo.react.js
MartinPavlik/este
import './todo.styl'; import Component from '../components/component.react'; // import Editable from '../components/editable.react'; import React from 'react'; export default class Todo extends Component { static propTypes = { actions: React.PropTypes.object.isRequired, todo: React.PropTypes.object.isRequir...
docs/src/app/components/pages/components/DropDownMenu/ExampleOpenImmediate.js
owencm/material-ui
import React from 'react'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem'; export default class DropDownMenuOpenImmediateExample extends React.Component { constructor(props) { super(props); this.state = {value: 2}; } handleChange = (event, index, value)...
app/containers/Root.js
YuHuaiChen/meteor-react-redux-starter-kit
import React from 'react' import { Provider } from 'react-redux' import { Router } from 'react-router' import getRoutes from '../routes' import DevTools from './DevTools' export default class Root extends React.Component { static propTypes = { history: React.PropTypes.object.isRequired, store: React.PropType...
app/Users.js
KoltunovOleg/Task-React-App
import React, { Component } from 'react'; import List from './List'; class Users extends Component { constructor() { super(...arguments); this.state = { data: [] }; } //new start componentDidMount() { console.log(this.state.data); $.ajax({ url: "https://jso...
src/index.js
jtmckay/TQL
import React from 'react' import ReactDOM from 'react-dom' import App from 'views/App' import registerServiceWorker from 'utils/registerServiceWorker' ReactDOM.render( <App />, document.getElementById('app') ) registerServiceWorker()
app/containers/Acasa/MainContainer/components/RightContainer/index.js
code4romania/monitorizare-vot-votanti-client
import React from 'react'; import styled from 'styled-components'; import * as _ from 'lodash'; import Loading from 'components/Loading'; import CallToAction from 'components/CallToAction'; import ItemIncident from 'components/ItemIncident'; import ArrowForward from 'material-ui/svg-icons/navigation/arrow-forward'; co...
ReactNativeLIFE/Pages/JYHomeFAQs.js
YotrolZ/React-Native-LIFE
/** * Sample React Native App * https://github.com/facebook/react-native * @flow * * 首页 - 问答 * */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, ListView, Dimensions, Image, TouchableOpacity } from 'react-native'; const { width, height } = Dimensions.get...
docs/src/app/components/pages/components/Slider/ExampleControlled.js
ngbrown/material-ui
import React from 'react'; import Slider from 'material-ui/Slider'; export default class SliderExampleControlled extends React.Component { state = { firstSlider: 0.5, secondSlider: 50, } handleFirstSlider(event, value) { this.setState({firstSlider: value}); } handleSecondSlider(event, value) {...
packages/zensroom/lib/components/static/HowTo.js
SachaG/Zensroom
/* How To page. */ import React from 'react'; import { Components, registerComponent } from 'meteor/vulcan:core'; const HowTo = () => <div> HowTo </div> registerComponent('HowTo', HowTo); export default HowTo;
src/DropdownButton.js
pivotal-cf/react-bootstrap
import React from 'react'; import BootstrapMixin from './BootstrapMixin'; import Dropdown from './Dropdown'; import NavDropdown from './NavDropdown'; import CustomPropTypes from './utils/CustomPropTypes'; import deprecationWarning from './utils/deprecationWarning'; import omit from 'lodash/object/omit'; class Dropdown...
src/components/Counter.js
prontodev/simple-react
import React from 'react' import './Counter.scss' const Counter = ({onClick, counterValue}) => ( <button className='button' onClick={onClick}>clicked {counterValue} times</button> ) export default Counter
test/integration/css-fixtures/bad-custom-configuration-arr-4/pages/_app.js
JeromeFitz/next.js
import React from 'react' import App from 'next/app' import '../styles/global.css' class MyApp extends App { render() { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
src/scripts/components/Timeline/AddEvent/index.js
AbrahamTewa/timeline
// ******************** Import Packages ******************** import React from 'react'; import PropTypes from 'prop-types'; // ******************** Import Components ******************** import AddButton from './AddButton'; import EventForm from '../EventForm'; // ******************** Component ******************** c...
actor-apps/app-web/src/app/components/SidebarSection.react.js
stonegithubs/actor-platform
import React from 'react'; //import { Styles, Tabs, Tab } from 'material-ui'; //import ActorTheme from 'constants/ActorTheme'; import HeaderSection from 'components/sidebar/HeaderSection.react'; import RecentSection from 'components/sidebar/RecentSection.react'; //import ContactsSection from 'components/sidebar/Conta...
src/icons/FunctionsIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class FunctionsIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M36 8H12v4l13 12-13 12v4h24v-6H22l10-10-10-10h14z"/></svg>;} };
app/javascript/components/conditions/ConditionSetFormField/ConditionFormField/ConditionValueField/CascadingSelect/component.js
thecartercenter/elmo
import React from 'react'; import PropTypes from 'prop-types'; import { observer } from 'mobx-react'; import FormSelect from '../../../../FormSelect/component'; @observer class CascadingSelect extends React.Component { static propTypes = { namePrefix: PropTypes.string, optionNodeId: PropTypes.string, op...
src/svg-icons/device/signal-cellular-1-bar.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellular1Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/><path d="M12 12L2 22h10z"/> </SvgIcon> ); DeviceSignalCellular1Bar = pure(DeviceSignalCellular1Bar); Device...
src/components/mediabox/mediabox_title.js
n7best/react-weui
import React from 'react'; import classNames from '../../utils/classnames'; /** * Title for MediaBox * */ export default class MediaBoxTitle extends React.Component { render() { const {children, className, ...others} = this.props; const cls = classNames({ 'weui-media-box__title': true...
docs/src/app/components/Carbon.js
hai-cea/material-ui
import React from 'react'; require('./Carbon.css'); class Carbon extends React.Component { componentDidMount() { if (process.env.NODE_ENV !== 'production') { return; } const script = document.createElement('script'); script.setAttribute('async', ''); script.src = '//cdn.carbonads.co...
components/ShareBtn.js
housinghq/react-share-button
import React from 'react' import Visibility from './visibility' import autoBind from 'react-auto-bind' class SharePopup extends React.Component { constructor (props) { super(props) autoBind(this) } copyClicked (e) { const t = e.currentTarget const c = t.dataset.copytarget const inp = (c ? do...
Libraries/Modal/Modal.js
cdlewis/react-native
/** * Copyright (c) 2015-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. * * @provides...
packages/core/upload/admin/src/components/EmptyAssets/index.js
wistityhq/strapi
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { Typography } from '@strapi/design-system/Typography'; import { Stack } from '@strapi/design-system/Stack'; import { Box } from '@strapi/design-system/Box'; import { Icon } from '@strapi/design-system/Icon'; i...
pages/api/dialog-content-text.js
cherniavskii/material-ui
import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './dialog-content-text.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRoot(Page);
ui/src/pages/PeopleManagePage/AttributesViewer/index.js
LearningLocker/learninglocker
import React from 'react'; import PropTypes from 'prop-types'; import { Map } from 'immutable'; import styled, { css } from 'styled-components'; import { compose, withProps, setPropTypes } from 'recompose'; import { withModels } from 'ui/utils/hocs'; const tableDataStyles = css` padding: 8px; border: solid rgb(238...
client/components/ui/impl/material/SimpleList.js
axax/lunuc
import React from 'react' import PropTypes from 'prop-types' import List from '@mui/material/List' import ListItemIcon from '@mui/material/ListItemIcon' import ListItem from '@mui/material/ListItem' import ListItemText from '@mui/material/ListItemText' import ListItemSecondaryAction from '@mui/material/ListItemSecondar...
components/Layout/Navigation.js
marcogazzola/ZtH
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; ...
src/svg-icons/image/picture-as-pdf.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePictureAsPdf = (props) => ( <SvgIcon {...props}> <path d="M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5v1zm5 ...
apps/marketplace/components/Opportunity/WithdrawnOpportunityMessage.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' import PropTypes from 'prop-types' import styles from '../../main.scss' const WithdrawnOpportunityMessageBody = props => { const { reason } = props // Match white space characters except for spaces const paragraphs = reason.split(/[^\S ]+/) return ( <React.Fragment> <p cl...
src/components/List/index.js
Amrmak/Movie-Search
import React, { Component } from 'react'; import $ from 'jquery'; import MovieCard from './MovieCard'; class Container extends Component { constructor() { super(); this.state = { movies: [] }; } componentDidMount() { $.ajax({ url: `https://api.themoviedb.org/3/search/movie?api_key=032...
client/src/features/account/login/utils.js
fmoliveira/scalable-stack
import React from 'react' export const FormField = ({ label, type, ...rest }) => ( <div className='field'> <label className='label'>{label}</label> <p className='control'> <input className='input' type={type} placeholder={label} {...rest} /> </p> </div> ) export const Button = ({ text, children,...
example/react-todo/components/todo-controller.js
justinjung04/treeful
import React, { Component } from 'react'; import Treeful from '../../../src/treeful'; export default class TodoController extends Component { addTodo() { Treeful.set('todos', (e) => { e.push({ name: this.refs.name.value, color: this.refs.color.value, id: e.length + 1 }); return e; }); // O...
packages/wix-style-react/src/AnnouncementModalLayout/docs/examples/HelpButtonExample.js
wix/wix-style-react
/* eslint-disable */ import React from 'react'; class BasicExample extends React.Component { render() { return ( <AnnouncementModalLayout illustration={'generic_post.svg'} title="Import Posts From WordPress" primaryButtonText="Start Now" linkText="Learn More" onClose...
src/PaginationButton.js
westonplatter/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import createSelectedEvent from './utils/createSelectedEvent'; import CustomPropTypes from './utils/CustomPropTypes'; const PaginationButton = React.createClass({ mixins: [BootstrapMixin], propTypes: { ...
fivecardpoker/src/components/CreateScore.js
victordahlin/minigames
import React, { Component } from 'react'; import Proptypes from 'prop-types'; class CreateScore extends Component { constructor(props) { super(props); } render() { return ( <div> <h3>Nytt resultat</h3> <form> <select> ...
src/components/Spinner/index.js
BusyginCode/chat
import React, { Component } from 'react'; import './spinner.scss'; export default class Spinner extends Component { render() { return ( <div className="sk-folding-cube"> <div className="sk-cube1 sk-cube"></div> <div className="sk-cube2 sk-cube"></div> <div className="sk-cube4 sk-cu...
src/svg-icons/av/surround-sound.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSurroundSound = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7.76 16.24l-1.41 1.41C4.78 16.1 4 14.05 4 12c0-2.05.78-4.1 2.34-5.66l1.4...
ee/client/audit/Tabs/ChannelTab.js
VoiSmart/Rocket.Chat
import { Field } from '@rocket.chat/fuselage'; import React from 'react'; import { useTranslation } from '../../../../client/contexts/TranslationContext'; import RoomAutoComplete from '../RoomAutoComplete'; const ChannelTab = ({ errors, rid, handleRid }) => { const t = useTranslation(); return ( <Field> <Fiel...
src/svg-icons/editor/format-textdirection-l-to-r.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatTextdirectionLToR = (props) => ( <SvgIcon {...props}> <path d="M9 10v5h2V4h2v11h2V4h2V2H9C6.79 2 5 3.79 5 6s1.79 4 4 4zm12 8l-4-4v3H5v2h12v3l4-4z"/> </SvgIcon> ); EditorFormatTextdirectionLToR = p...
src/components/Form/Reset.js
cantonjs/re-admin
import React, { Component } from 'react'; import { createRef } from 'utils/reactPolyfill'; import PropTypes from 'prop-types'; import { Form, Button } from 'antd'; import { DemonButton } from 'react-form-mobx'; const { Item } = Form; export default class Reset extends Component { static propTypes = { wrapperStyle:...
FrontEnd/atst-user/src/App.js
codelaborators-network/AllTheSmallThings
import React, { Component } from 'react'; import RouteWhenAuthorized from './RouteWhenAuthorised'; import Homepage from './Homepage/components/Homepage'; import Login from './Login/components/Login'; import { BrowserRouter, Route } from 'react-router-dom'; import firebase from 'firebase'; let config = { apiKey: "AI...
src/templates/tags.js
dnzhng/phlog
import React from 'react' import Layout from '../components/Layout' import SEO from '../components/Seo' import { styled } from '../styles/theme' const StyledLi = styled.li` text-transform: capitalize; ` const Tags = ({ pageContext: { tags } }) => ( <Layout collapsed={true}> <SEO title="tags" /> <h1>Tags<...
examples/universal/client/index.js
contolini/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import configureStore from '../common/store/configureStore'; import App from '../common/containers/App'; const initialState = window.__INITIAL_STATE__; const store = configureStore(initialState); const rootElement = do...
src/svg-icons/toggle/check-box-outline-blank.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleCheckBoxOutlineBlank = (props) => ( <SvgIcon {...props}> <path d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/> </SvgIcon> ); ToggleCheckBoxOutlineBlank =...
docs/src/app/components/MobileTearSheet.js
rscnt/material-ui
import React from 'react'; const MobileTearSheet = React.createClass({ propTypes: { children: React.PropTypes.node, height: React.PropTypes.number, }, contextTypes: { muiTheme: React.PropTypes.object, }, getDefaultProps() { return { height: 500, }; }, render() { const { ...
src/svg-icons/hardware/tv.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareTv = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12z"/> </SvgIcon> ); HardwareTv = pure(Hardwar...
src/parser/demonhunter/havoc/modules/spells/azeritetraits/EyesofRage.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import Events from 'parser/core/Events'; import ItemStatistic from 'interface/statistics/ItemStatistic'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import SpellUsable ...
src/js/dom-components/nav-bar.js
andrewfschorr/Schorr-Eats
import React from 'react'; const navBar = ({ toggleModal, isLoggedIn, user }) => ( <nav className="navbar navbar-expand navbar-dark bg-dark"> <svg className="pizzalogo" width="30px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 449.306 449.306"> ...
app/javascript/mastodon/components/column_back_button.js
kazh98/social.arnip.org
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import Icon from 'mastodon/components/icon'; import { createPortal } from 'react-dom'; export default class ColumnBackButton extends React.PureComponent { static contextTypes = { router: PropTypes.objec...
src/components/navBtn.js
JohnDHamm/nog-web
import React, { Component } from 'react'; class NavBtn extends Component { render() { const { btnHeight, btnLocation, btnType } = this.props; let btnWidthConverter; switch (btnType) { case 'startBtn': btnWidthConverter = 156; break; case 'endBtn': btnWidthConverter = 156; break; defaul...
lib/components/user/monitored-trip/trip-status-rendering-strategies/upcoming-trip-renderer.js
opentripplanner/otp-react-redux
import React from 'react' import { FormattedMessage } from 'react-intl' import FormattedDuration from '../../../util/formatted-duration' import { getMinutesUntilItineraryStart } from '../../../../util/itinerary' import { getTripStatus, REALTIME_STATUS } from '../../../../util/viewer' import baseRenderer from './base-...
packages/wix-style-react/src/Table/components/TableContent.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import defaultTo from 'lodash/defaultTo'; import DataTable from '../DataTable'; import { getDataTableProps, createColumns } from '../Table'; import { TableContext } from '../TableContext'; import { st, classes } from '../Table.st.css'; import { BulkSelecti...
common/routes/routes.js
sauleddy/HomePortal
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import Main from '../components/Main'; import HomePageContainer from '../containers/HomePageContainer'; import LoginPageContainer from '../containers/LoginPageContainer'; import PostPageContainer from '../containers/PostPageContainer'; //impor...
src/svg-icons/action/account-box.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccountBox = (props) => ( <SvgIcon {...props}> <path d="M3 5v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2zm12 4c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm-9 8c0-2 4-3...
app/components/About.js
lopezhansel/dani
import React from 'react'; class Home extends React.Component { render() { return ( <div id="about" className="about-page"> <div className="hero-pic"> <div className="overlay"></div> <div className="title-wrap"> <p className="title"> About</p> <div classN...
js/jqwidgets/demos/react/app/slider/righttoleft/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxSlider from '../../../jqwidgets-react/react_jqxslider.js'; import JqxPanel from '../../../jqwidgets-react/react_jqxpanel.js'; class App extends React.Component { componentDidMount() { let displayEvent = (event) => { var eve...
app/admin/components/AdminDashboardNavigate.js
in42/internship-portal
import React from 'react'; import { Route, Redirect } from 'react-router-dom'; import PropTypes from 'prop-types'; import HomeNavigate from '../dashboard/HomeNavigate'; import StudentList from '../dashboard/StudentList'; const styles = { root: { paddingTop: '6em', paddingBottom: '2em', }, }; const AdminDa...
index.android.js
typesettin/NativeCMS
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class NativeCMS extends Component { render() { return ( <View style={styles.container}> <Tex...
public/js/cat_source/es6/components/header/cattol/bulk_selection_bar/BulkSelectionBar.js
riccio82/MateCat
import React from 'react' import SegmentConstants from '../../../../constants/SegmentConstants' import SegmentStore from '../../../../stores/SegmentStore' class BulkSelectionBar extends React.Component { constructor(props) { super(props) this.state = { count: 0, segmentsArray: [], changingS...
src/views/Listpage.js
Cheffheid/ghibli-react
import React from 'react'; import FilmContainer from '../components/containers/FilmContainer'; import LocationContainer from '../components/containers/LocationContainer'; import PersonContainer from '../components/containers/PersonContainer'; import SpeciesContainer from '../components/containers/SpeciesContainer'; im...
universal_api_project_template/shared/lib/devtools.js
Mikeysax/mikey
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"> <LogMonitor /> </DockMonit...
src/components/grid/Container.js
ProAI/react-essentials
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import BaseView from '../../utils/rnw-compat/BaseView'; const propTypes = { children: PropTypes.node.isRequired, fluid: PropTypes.bool, }; const Container = React.forwardRef((props, ref) => { const { fluid = false, ...el...
jenkins-design-language/src/js/components/material-ui/svg-icons/notification/airline-seat-legroom-normal.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const NotificationAirlineSeatLegroomNormal = (props) => ( <SvgIcon {...props}> <path d="M5 12V3H3v9c0 2.76 2.24 5 5 5h6v-2H8c-1.66 0-3-1.34-3-3zm15.5 6H19v-7c0-1.1-.9-2-2-2h-5V3H6v8c0 1.65 1.35 3 3 3h7v7h4.5c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5z"/...
examples/official-storybook/stories/core/parameters.stories.js
storybooks/react-storybook
/* eslint-disable react/prop-types */ import React from 'react'; // We would need to add this in config.js idiomatically however that would make this file a bit confusing import { addParameters } from '@storybook/react'; import { addDecorator } from '@storybook/react/dist/client/preview'; addDecorator(fn => fn({ cust...
src/client/containers/DevTools.js
barretthafner/hafnerindustries
import React from 'react'; // Exported from redux-devtools import { createDevTools } from 'redux-devtools'; // Monitors are separate packages, and you can make a custom one import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; // createDevTools takes a monitor an...
lib/components/RemixTests/index.js
0mkara/etheratom
'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...
client/src/router.js
ZevenFang/react-meteor-todomvc
import React from 'react'; import { HashRouter, Route } from 'react-router-dom' import IndexPage from './routes/IndexPage'; import LoginPage from './routes/LoginPage'; import RegisterPage from './routes/RegisterPage'; import Header from './components/Header'; export default function() { return ( <HashRouter>...
app/app.js
Xanderhed/ReactReduxHotStarter
import css from './app.css'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import thunk from 'redux-thunk'; import createHistory from 'history/createBrowserHistory'; import { createStore, applyMiddleware } from 'redux'; import { ConnectedRouter, routerMiddleware }...
src/svg-icons/image/image-aspect-ratio.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageImageAspectRatio = (props) => ( <SvgIcon {...props}> <path d="M16 10h-2v2h2v-2zm0 4h-2v2h2v-2zm-8-4H6v2h2v-2zm4 0h-2v2h2v-2zm8-6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H...
src/components/Filters/Filters.js
wundery/wundery-ui-react
import React from 'react'; import classnames from 'classnames'; const Filters = props => ( <div className={classnames('ui-filters')}> {props.children} </div> ); Filters.propTypes = { children: React.PropTypes.node, }; export default Filters;
gravity/gravity-frontend/src/highlight.js
DataKind-BLR/analytics
import React, { Component } from 'react'; import HighlightPill from './pill.js'; import { store } from "./redux_store.js"; import { connect } from 'react-redux'; import 'leaflet/dist/leaflet.css'; import { Map, TileLayer, GeoJSON } from 'react-leaflet'; import { zeroPad } from "./utils.js" class HighlightsPanel extends...
app/components/shared/Autocomplete/Field/index.js
buildkite/frontend
import React from 'react'; import PropTypes from 'prop-types'; import SearchField from 'app/components/shared/SearchField'; import Suggestion from './suggestion'; import ErrorMessage from 'app/components/shared/Autocomplete/error-message'; const KEYCODE_UP = 38; const KEYCODE_DOWN = 40; const KEYCODE_ENTER = 13; cla...
src/containers/organizations/components/SimpleListGroup.js
kryptnostic/gallery
import React from 'react'; import Immutable from 'immutable'; import PropTypes from 'prop-types'; import StyledFlexContainerStacked from '../../../components/flex/StyledFlexContainerStacked'; import { AddButton, RemoveButton, StyledElement, StyledInput, StyledListItem } from './StyledListGroupComponents'; ...
Skins/VetoccitanT3/ReactSrc/node_modules/react-redux/es/components/Context.js
ENG-SYSTEMS/Kob-Eye
import React from 'react'; export var ReactReduxContext = /*#__PURE__*/React.createContext(null); if (process.env.NODE_ENV !== 'production') { ReactReduxContext.displayName = 'ReactRedux'; } export default ReactReduxContext;
packages/fyndiq-ui-test/stories/component-article.js
fyndiq/fyndiq-ui
import React from 'react' import { storiesOf } from '@storybook/react' import { Images, Tags, Price, LayoutDetails } from 'fyndiq-component-article' storiesOf('Article/Layouts/Details', module).addWithInfo('default', () => ( <LayoutDetails title="My Article Title" description="The description of my article. ...
src/containers/views/Pages.js
ashmaroli/jekyll-admin
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import _ from 'underscore'; import DocumentTitle from 'react-document-title'; import Breadcrumbs from '../../components/B...
src/assets/js/PlayerUI.js
lfsmoura/define
import React from 'react'; import { defineStore } from './DefineStore.js'; import Input from './Input.js'; export default class PlayerUI extends React.Component { constructor(props) { super(props); } submitAnswer(answer) { defineStore.dispatch({ type: 'SET-ANSWER', answer: { answer,...
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-bricks-modal-footer.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, ContentMixin} from '../common/common.js'; import './modal-footer.less'; export default React.createClass({ //@@viewOn:mixins mixins: [ BaseMixin, ElementaryMixin, ContentMixin ], //@@viewOff:mixins //@@viewOn:statics statics: { ...
src/components/CurrencyDropdown.js
laurids-reichardt/Currency-Exchange-Rates
import React from 'react'; import { Dropdown } from 'semantic-ui-react'; function icon(key) { return key.toLowerCase(); } const CurrencyDropdown = props => { return ( <Dropdown value={props.currency} onChange={props.onChange} fluid selection options={props.options} labeled ...
frontend/index.js
ryym/bukikurabe
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import store from './store'; import Bukikurabe from './views/Bukikurabe'; import weapons from './_weapons.json'; import { actions } from './actions'; const { FINISH_INITIAL_DATA_FETCH } = actions; require('./styles/...
src/views/ContactView.js
todvora/extrade
import React from 'react' import { Link } from 'react-router' export class AboutView extends React.Component { render () { return ( <div className='container text-center'> <h1>Contact page</h1> <hr /> <Link to='/'>Back To Home View</Link> </div> ) } } export default Abo...
src/components/ChatApp/Settings/Settings.react.js
isuruAb/chat.susi.ai
import './Settings.css'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem'; import PropTypes from 'prop-types'; import UserPreferencesStore from '../../../stores/UserPrefe...
src/routers.js
liuboshuo/react-native-food
/** * Created by liushuo on 17/7/6. */ import Home_Page from './containers/home_page' import Menu_Page from './containers/menu_page' import Profile_Page from './containers/profile_page' import Food_List_Page from './containers/food_list_page' import Like_Page from './containers/like_page' import Browser_page from './...
docs/app/Examples/elements/Segment/Groups/SegmentExamplePiledSegments.js
koenvg/Semantic-UI-React
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentExamplePiledSegments = () => ( <Segment.Group piled> <Segment>Top</Segment> <Segment>Middle</Segment> <Segment>Bottom</Segment> </Segment.Group> ) export default SegmentExamplePiledSegments
src/svg-icons/social/whatshot.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialWhatshot = (props) => ( <SvgIcon {...props}> <path d="M13.5.67s.74 2.65.74 4.8c0 2.06-1.35 3.73-3.41 3.73-2.07 0-3.63-1.67-3.63-3.73l.03-.36C5.21 7.51 4 10.62 4 14c0 4.42 3.58 8 8 8s8-3.58 8-8C20 8.61 17....
src/routes/about-us/index.js
LevelPlayingField/levelplayingfield
/* @flow */ /** * 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 About from '...
views/components/MainContentUi.js
gvaldambrini/madam
import React from 'react'; import SidebarUi from './SidebarUi'; import CustomerSheetPrinterUi from './CustomerSheetPrinterUi'; import PopoverTemplateUi from './PopoverTemplateUi'; // The main content presentational component which includes the sidebar and displays // the children. export default React.createClass({ ...
src/components/utilities/SearchAdvanced.js
jackson-/colorforcode
import React from 'react' import PropTypes from 'prop-types' import { FormGroup, FormControl, ControlLabel, HelpBlock, Checkbox, Button, Glyphicon, Row, Col } from 'react-bootstrap' import './SearchAdvanced.css' const SearchAdvanced = props => { return ( <form className='SearchAdvanced' onSubmit={props.filte...