path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
example/App/VariableHeight.js
nkbt/react-collapse
import React from 'react'; import {Collapse} from '../../src'; export class VariableHeight extends React.PureComponent { constructor(props) { super(props); this.state = {isOpened: false, height: 100}; } render() { const {isOpened, height} = this.state; return ( <div {...this.props}> ...
stories/examples/CardImageCaps.js
reactstrap/reactstrap
import React from 'react'; import { Card, CardBody, Button, CardTitle, CardText, CardImg } from 'reactstrap'; const Example = (props) => { return ( <div> <Card> <CardImg top width="100%" src="https://picsum.photos/318/180" alt="Card image cap" /> <CardBody> <CardTitle tag="h5">Car...
src/esm/components/structure/cards/summary-card/components/title-tag.js
KissKissBankBank/kitten
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["text", "icon", "className"]; import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { Tag } from '...
src/compontent/summary.js
PangPangPangPangPang/react-blog
/** * Created by wangyefeng on 03/03/2017. */ import React from 'react' import { hashHistory } from 'react-router' import './summary.css' const Summary = (props) => { const clickDetail = () => { hashHistory.push(`list/${props.id}`) } const renderTag = () => { const arr = [] for (let i = 0; i < prop...
src/parser/paladin/holy/modules/azeritetraits/RadiantIncandescence.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import { formatNumber, formatPercentage } from 'common/format'; import SPELLS from 'common/SPELLS/index'; import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox'; import ItemHealingDone from 'int...
src/svg-icons/communication/stop-screen-share.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStopScreenShare = (props) => ( <SvgIcon {...props}> <path d="M21.22 18.02l2 2H24v-2h-2.78zm.77-2l.01-10c0-1.11-.9-2-2-2H7.22l5.23 5.23c.18-.04.36-.07.55-.1V7.02l4 3.73-1.58 1.47 5.54 5.54c.61-.33 1...
src/components/Account/Courses/CourseList/index.js
ndlib/usurper
import React from 'react' import PropTypes from 'prop-types' import CourseCard from './CourseCard' import styles from './style.module.css' const CourseList = (props) => { if (!props.courses || !props.courses.length) { return null } return ( <div className={styles.courseSection}> <h3 className={sty...
docs/app/Examples/views/Comment/Variations/CommentExampleMinimal.js
koenvg/Semantic-UI-React
import React from 'react' import { Button, Comment, Form, Header } from 'semantic-ui-react' const CommentExampleMinimal = () => ( <Comment.Group minimal> <Header as='h3' dividing>Comments</Header> <Comment> <Comment.Avatar as='a' src='http://semantic-ui.com/images/avatar/small/matt.jpg' /> <Comm...
client/admin/server.js
kirinami/portfolio
// Import dependencies import React from 'react'; import { renderToString } from 'react-dom/server'; import { StaticRouter, Route } from 'react-router-dom'; import { Provider } from 'mobx-react'; // Export markup /* eslint-disable global-require */ module.exports = (initialStates, url) => { // define initial state...
src/svg-icons/image/collections.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCollections = (props) => ( <SvgIcon {...props}> <path d="M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"/> ...
examples/self_mounting_components/mount.js
abdelouahabb/python-react
import React from 'react'; // During the build process webpack aliases this import to the desired component import Component from '__react_mount_component__'; // During the build process webpack will replace these variable with // the names passed from the python process const props = __react_mount_props_variable__; ...
react-flux-mui/js/material-ui/src/svg-icons/maps/streetview.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsStreetview = (props) => ( <SvgIcon {...props}> <path d="M12.56 14.33c-.34.27-.56.7-.56 1.17V21h7c1.1 0 2-.9 2-2v-5.98c-.94-.33-1.95-.52-3-.52-2.03 0-3.93.7-5.44 1.83z"/><circle cx="18" cy="6" r="5"/><path d...
src/components/PhotoList.js
edwinwright/react-project
import React from 'react'; import PhotoThumb from './PhotoThumb'; const PhotoList = ({ photos }) => ( <div> <h1>PhotoList</h1> <ul> {photos.map(photo => ( <li key={photo.id}> <PhotoThumb photo={photo} /> </li> ))} </ul> </div> ); // TODO: Add propTypes // TODO: Do...
app/components/Files.js
christianalfoni/TeachKidsCode
import React from 'react'; import {Mixin} from 'cerebral-react-immutable-store'; import MTRC from 'markdown-to-react-components'; import { Row, Col, ListGroup, ListGroupItem, Button } from 'react-bootstrap'; var Files = React.createClass({ mixins: [Mixin], getStatePaths() { return { files: ['fi...
generators/js-framework/modules/react/components/Account/Reset.js
sahat/boilerplate
import React from 'react'; import { connect } from 'react-redux' import { resetPassword } from '../../actions/auth'; import Messages from '../Messages'; class Reset extends React.Component { constructor(props) { super(props); this.state = { password: '', confirm: '' }; } handleChange(event) { this.s...
src/components/SignIn/index.js
Apozhidaev/ergonode
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { signIn } from 'store/app/actions'; import { Link } from 'react-router-dom'; import 'github-fork-ribbon-css/gh-fork-ribbon.css'; import './styles.css'; import ProgressBar from '../ProgressBar'; class SignIn extends Component { ...
src/modules/todo/components/TodoList.js
scubism/react_todo_web
import React from 'react'; import { provideHooks } from 'redial'; import { connect } from 'react-redux'; import { Link } from 'react-router' import autobind from 'autobind-decorator' import Loader from 'react-loaders' import { listTodos, createTodo, updateTodo, deleteTodo, moveTodo } from '../actions'; import { TodoInl...
src/RootComponent.js
jerryshew/react-uikits
import React, { Component } from 'react'; import { HashRouter as Router, Route, NavLink, Switch } from 'react-router-dom'; import { version } from '../package.json'; import { BasicPage, ButtonPage, CalendarPage, CarouselPage, CheckBoxPage, CheckBoxGroupPage, ConfirmBoxPage, CardPage, CommentPage, CrumbPage, ...
cloudapp/src/app/WaterChart.js
jbrichau/PoolBuddy
import React from 'react'; import { Badge } from 'reactstrap'; import { LineChart, XAxis, YAxis, Legend, Tooltip, CartesianGrid, Line, ReferenceLine } from 'recharts'; class CustomizedAxisTick extends React.Component { render() { const { x, y, stroke, payload } = this.props; return ( <g transform={`tr...
src/client/assets/javascripts/features/mapper/components/Mapper/Mapper.js
tlodge/uibuilder
import React, { Component } from 'react'; import CSSTransitionGroup from 'react-addons-css-transition-group'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { actionCreators as mapperActions, viewConstants, selector } from '../..'; import { actionCreators as shapeActions } fro...
examples/sections/src/ThemeContext.js
styleguidist/react-styleguidist
import React from 'react'; /** * Context that stores selected application theme: 'light' | 'dark' */ export default React.createContext('light');
examples/with-webpack-bundle-size-analyzer/pages/index.js
BlancheXu/test
import React from 'react' import Link from 'next/link' export default class Index extends React.Component { static getInitialProps ({ req }) { if (req) { // Runs only in the server const faker = require('faker') const name = faker.name.findName() return { name } } // Runs only in...
src/assets/js/react/components/Template/TemplateUploader.js
blueliquiddesigns/gravity-forms-pdf-extended
import PropTypes from 'prop-types' import React from 'react' import { connect } from 'react-redux' import { addTemplate, updateTemplateParam, postTemplateUploadProcessing, clearTemplateUploadProcessing } from '../../actions/templates' import classNames from 'classnames' import Dropzone from 'react-dropzone' imp...
src/main/js/my-app/src/index.js
myapos/ClientManagerSpringBoot
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import configureStore from './store/configureStore'; import App from './containers/App'; import './index.css'; import * as utils from './utils'; const init = async () => { const placeholder = document.getElementById(...
front/app/js/rh-components/rh-Spinner.js
nudoru/learning-map
import React from 'react'; const Spinner = ({type}) => { let cls = ['spinner']; if(type) { cls.push(type); } return (<div className={cls.join(' ')}></div>) }; export default Spinner;
src/lexer.js
MrCheater/text-resize-and-word-wrap-provider
import React from 'react'; let index = 0; export function lexer(jsxText, props, results, init) { if(init) { index = 0; } if(!Array.isArray(jsxText)) { jsxText = [jsxText]; } const countChildren = jsxText.length; for(let childIndex = 0; childIndex < countChildren; childIndex++) ...
src/components/table_headers.js
mdkalish/json_selector
import React from 'react'; var SocialMediumHeaderRow = React.createClass({ render: function() { return ( <tr style={{backgroundColor: '#fa6900'}}> <th colSpan="4"> {this.props.type} </th> </tr> ); } }); var ColumnHeadersRow = React.createClass({ getInitialState: fun...
src/SudokuBoard.js
itsjustdanger/sudoku-solver
import React from 'react'; import PropTypes from 'prop-types'; import Square from './Square.js'; /* Display component for the sudoku board */ export default class SudokuBoard extends React.Component { render() { const board = this.props.board; const squares = []; for (const box in board) { if (box...
analysis/paladinholy/src/modules/spells/DevotionAuraDamageReduction.js
yajinni/WoWAnalyzer
import React from 'react'; import { Trans } from '@lingui/macro'; import SPELLS from 'common/SPELLS'; import fetchWcl from 'common/fetchWclApi'; import { SpellIcon } from 'interface'; import { formatThousands, formatNumber } from 'common/format'; import LazyLoadStatisticBox, { STATISTIC_ORDER } from 'parser/ui/LazyLo...
src/routes/hardware/index.js
bigearth/www.clone.earth
import React from 'react'; import Layout from '../../components/Layout'; import Hardware from './Hardware'; const title = 'Hardware'; export default { path: '/hardware', action() { return { title, component: <Layout><Hardware title={title} /></Layout>, }; }, };
app/cards/blog-card.js
gon250/personal-web
import React from 'react'; export default React.createClass({ render: function (){ let postDate = this.props.blogDate.toString().substring(0,10); return ( <div className="mdl-grid mdl-cell mdl-cell--12-col mdl-cell--4-col-tablet mdl-card mdl-shadow--4dp"> <div className="mdl-card__title"> ...
src/svg-icons/navigation/chevron-right.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationChevronRight = (props) => ( <SvgIcon {...props}> <path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/> </SvgIcon> ); NavigationChevronRight = pure(NavigationChevronRight); NavigationChevronRigh...
apps/marketplace/components/Opportunity/EvaluationCriteria.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' import PropTypes from 'prop-types' import AUheading from '@gov.au/headings/lib/js/react.js' import styles from './EvaluationCriteria.scss' const EvaluationCriteria = props => ( <div className={styles.container}> <div className="row"> <div role="columnheader" id="he...
backend/dynamic-web-apps/voting-app/client/src/components/Signup.js
mkermani144/freecodecamp-projects
import React, { Component } from 'react'; import { Redirect } from 'react-router'; import Paper from 'material-ui/Paper'; import { Step, Stepper, StepLabel, StepContent } from 'material-ui/Stepper'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton fro...
src/components/manage/ManageForm.js
oraclesorg/ico-wizard
import React from 'react' import { Link } from 'react-router-dom' import { FormSpy } from 'react-final-form' import { FieldArray } from 'react-final-form-arrays' import { ManageTierBlock } from './ManageTierBlock' import classNames from 'classnames' export const ManageForm = ({ handleSubmit, invalid, pristine, ...
src/Spring.js
wilfreddenton/react-motion
import React from 'react'; import components from './components'; module.exports = components(React);
src/Label/Label.driver.js
skyiea/wix-style-react
import React from 'react'; import ReactDOM from 'react-dom'; const labelDriverFactory = ({element, wrapper, component}) => { return { exists: () => !!element, getTagName: () => element.tagName.toLowerCase(), getLabelText: () => element.textContent, getClassList: () => element.className, getAttr: ...
cm19/ReactJS/your-first-react-app-exercises-master/exercise-13/complete/friend-detail/FriendFlipper.js
Brandon-J-Campbell/codemash
import React from 'react'; import styles from './FriendFlipper.css'; export default class FriendFlipper extends React.Component { state = { flipped: false, }; handleFlipped = () => { this.setState(prevProps => { return { flipped: !prevProps.flipped, }; }); }; render() { ...
node_modules/react-bootstrap/es/Tab.js
rblin081/drafting-client
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from 'babel-runtime/helpers/extends'; import React from 'react'; import PropTypes from 'pr...
src/index.js
attilad/console-room
import React from 'react'; import {render} from 'react-dom'; import HomePage from './containers/HomePage'; render( <HomePage helloWorld="Hello, Universe!" />, document.getElementById('app') );
blueocean-material-icons/src/js/components/svg-icons/hardware/keyboard-hide.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const HardwareKeyboardHide = (props) => ( <SvgIcon {...props}> <path d="M20 3H4c-1.1 0-1.99.9-1.99 2L2 15c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 3h2v2h-2V6zm0 3h2v2h-2V9zM8 6h2v2H8V6zm0 3h2v2H8V9zm-1 2H5V9h2v2zm0-3H5V6h2v2zm9 7H8v-2h8v...
admin/src/components/ListHeader.js
lastjune/keystone
import classNames from 'classnames'; import React from 'react'; import utils from '../utils.js'; import { Button, Container, Dropdown, FormInput, InputGroup, Pagination } from 'elemental'; import CreateForm from './CreateForm'; import ListColumnsForm from './ListColumnsForm'; import ListDownloadForm from './ListDownlo...
cerberus-dashboard/src/components/SecureDataVersionsBrowser/SecureDataVersionsBrowser.js
Nike-Inc/cerberus
/* * Copyright (c) 2020 Nike, inc. * * 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 ...
actor-apps/app-web/src/app/components/sidebar/HeaderSection.react.js
boneyao/actor-platform
import React from 'react'; import mixpanel from 'utils/Mixpanel'; import MyProfileActions from 'actions/MyProfileActions'; import LoginActionCreators from 'actions/LoginActionCreators'; import AvatarItem from 'components/common/AvatarItem.react'; import MyProfileModal from 'components/modals/MyProfile.react'; import ...
src/ModalBody.js
andrew-d/react-bootstrap
import React from 'react'; import classnames from 'classnames'; class ModalBody extends React.Component { render() { return ( <div {...this.props} className={classnames(this.props.className, this.props.modalClassName)}> {this.props.children} </div> ); } } ModalBody.propTypes = { /** ...
wrappers/json.js
lukevance/personal_site
import React from 'react' module.exports = React.createClass({ propTypes () { return { route: React.PropTypes.object, } }, render () { const data = this.props.route.page.data return ( <div> <h1>{data.title}</h1> <p>Raw view of json file</p> <pre dangerouslySetI...
lib/ui/components/BottomBar/SearchInput.js
500tech/mimic
import React from 'react'; import styled from 'styled-components'; import Icon from 'ui/components/common/Icon'; import ActionIcon from 'ui/components/common/ActionIcon'; import IconDropdown from 'ui/components/common/IconDropdown'; import { Div } from 'ui/components/common/base'; import InputControl from 'ui/component...
sample/components/text-area.js
LINKIWI/react-elemental
import React from 'react'; import { Label, Spacing, Text, TextArea } from 'react-elemental'; const SampleTextArea = () => ( <div> <Spacing size="huge" bottom> <Text size="gamma" color="primary" uppercase> Text areas </Text> <Text> Allow the user to enter an arbitrary-length text...
src/svg-icons/maps/beenhere.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsBeenhere = (props) => ( <SvgIcon {...props}> <path d="M19 1H5c-1.1 0-1.99.9-1.99 2L3 15.93c0 .69.35 1.3.88 1.66L12 23l8.11-5.41c.53-.36.88-.97.88-1.66L21 3c0-1.1-.9-2-2-2zm-9 15l-5-5 1.41-1.41L10 13.17l7.59...
src/routes/courses/index.js
fkn/ndo
import React from 'react'; import Layout from '../../components/Layout'; import Courses from './Courses'; import { fetchCourses } from '../../actions/courses'; const title = 'Courses'; async function action({ store }) { const { user } = store.getState(); if (user) { await store.dispatch(fetchCourses(user.id))...
src/svg-icons/communication/stay-primary-landscape.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStayPrimaryLandscape = (props) => ( <SvgIcon {...props}> <path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/> </SvgIcon> ); Communicat...
WasteApp/js/components/picker/index.js
airien/workbits
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Platform } from 'react-native'; import { Container, Header, Title, Content, Button, Icon, Picker, Text } from 'native-base'; import { openDrawer } from '../../actions/drawer'; import styles from './styles'; const Item = Picker....
src/svg-icons/av/album.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvAlbum = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 14.5c-2.49 0-4.5-2.01-4.5-4.5S9.51 7.5 12 7.5s4.5 2.01 4.5 4.5-2.01 4.5-4.5 4.5zm0-5.5c-...
src/svg-icons/places/hot-tub.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesHotTub = (props) => ( <SvgIcon {...props}> <circle cx="7" cy="6" r="2"/><path d="M11.15 12c-.31-.22-.59-.46-.82-.72l-1.4-1.55c-.19-.21-.43-.38-.69-.5-.29-.14-.62-.23-.96-.23h-.03C6.01 9 5 10.01 5 11.25V12...
app/screens/settings/theme/theme_tile.js
mattermost/mattermost-mobile
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import PropTypes from 'prop-types'; import React from 'react'; import { Dimensions, TouchableOpacity, View, } from 'react-native'; import CompassIcon from '@components/compass_icon'; import {cha...
src/components/Portfolio/Portfolio.js
karim88/karim88.github.io
import React, { Component } from 'react'; import './Portfolio.css'; class Portfolio extends Component { constructor (props) { super(props); this.portfolio = props.portfolio.map((project) => { return <div key={project.id} className="col-md-3 col-lg-4"> <div className="card...
src/app.js
beaudavenport/regex-cafe
import React from 'react'; import ReactDOM from 'react-dom'; import lessons from './lessons'; import Lesson from './Lesson'; import Navbar from './Navbar'; import Introduction from './Introduction'; import Faq from './Faq'; class App extends React.Component { render() { let lessonsOutput = this.props.lessons.map...
src/svg-icons/device/battery-charging-60.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryCharging60 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V11h3.87L13 7v4h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9l1...
src/components/button/button.js
thinktopography/reframe
import React from 'react' import PropTypes from 'prop-types' class Button extends React.Component { static contextTypes = { confirm: PropTypes.object, drawer: PropTypes.object, flash: PropTypes.object, modal: PropTypes.object, router: PropTypes.object } static propTypes = { basic: PropT...
src/app/components/forms/inputs/UiSlider.js
backpackcoder/world-in-flames
import React from 'react' import 'script-loader!bootstrap-slider/dist/bootstrap-slider.min.js' export default class UiSlider extends React.Component { componentDidMount() { $(this.refs.slider).bootstrapSlider(); } render() { return <input type="text" ref="slider" {...this.props} /> } }
src/modules/components/WaveShapeSelector/index.js
ruebel/synth-react-redux
import React from 'react'; import PropTypes from 'prop-types'; import Select from '../Select'; import { waveShapes } from '../../../utils/audio'; const WaveShapeSelector = ({ value, change }) => { const options = waveShapes.map(s => ({ id: s, name: s })); return ( <div> <Select labelKey="name" ...
docs/src/pages/StartPage.js
gocreating/react-tocas
import React from 'react'; import PageLayout from '../utils/PageLayout'; import CodeBlock from '../utils/CodeBlock'; import { Segment, Header, } from '../../../lib'; import 'codemirror/mode/htmlmixed/htmlmixed'; import 'codemirror/mode/jsx/jsx'; import 'codemirror/theme/solarized.css'; let JSX_DEMO = `import Butto...
scr-app/src/redux/devtools/showDevTools.js
tlatoza/SeeCodeRun
import React from 'react'; import {render} from 'react-dom'; import DevTools from './DevTools'; /** * Renders Redux Dev tools * @param {Object} store - the Redux store to be debugged. * @return {number} - The timeout id in case of cancellation. */ export default function showDevTools(store) { return setTimeout((...
src/components/containers/article-container.js
mberneti/ReactAdmin
import React from 'react'; import { connect } from 'react-redux'; import Article from '../views/article'; import store from '../../store'; import { loadDashboardCompleted } from '../../actions/dashboard-actions'; import { resetArticleModel } from '../../actions/article-actions'; import * as articleApi from '../../api/a...
webapp/src/App.js
gcallah/Indra
import React from 'react'; import { HashRouter, Route, Switch } from 'react-router-dom'; import styled, { withTheme } from 'styled-components'; import Layout from './components/Layout'; import Home from './components/Home'; import WIP from './components/WIP'; import ModelDetail from './components/ModelDetail'; import A...
src/svg-icons/notification/wc.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationWc = (props) => ( <SvgIcon {...props}> <path d="M5.5 22v-7.5H4V9c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5.5H9.5V22h-4zM18 22v-6h3l-2.54-7.63C18.18 7.55 17.42 7 16.56 7h-.12c-.86 0-1.63.55-1.9 1.37L12 16h3v6...
src/components/footer.js
jennywin/donate-for-good
import React, { Component } from 'react'; export default class Footer extends Component { render() { return ( <footer className="footer"> </footer> ); } }
app/components/TabContainer/index.js
JSSolutions/Perfi
import React from 'react'; import T from 'prop-types'; import { StyleSheet, View } from 'react-native'; const s = StyleSheet.create({ container: { position: 'absolute', top: 0, bottom: 0, }, show: { left: 0, right: 0, }, hide: { left: 90000, // over the screen, right: -90000, // o...
app/main.js
wvicioso/dapr
import React, { Component } from 'react'; import { Navigator, StyleSheet, Text, TextInput, ScrollView, TouchableOpacity, View, Image, ListView, LayoutAnimation } from 'react-native'; const Carousel = require('react-native-carousel'); const SideMenu = require('react-native-side-menu'); import Day fr...
client/src/containers/CategoryPage/CategoryDetail/index.js
steThera/react-mobx-koa
import React, { Component } from 'react'; import { observer, inject } from 'mobx-react'; import { SlideLeftTransition } from 'components/RouteTransition'; import { mode } from 'components/FormMobx/utils'; import { getCategory, updateCategory } from '../DetailForm/actions'; import DetailForm from '../DetailForm'; cla...
src/icons/BlurOffIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class BlurOffIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M28 14c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-.4 8.96c.13.02.26.04.4.04 1.66 0 3-1.34 3-3s-1.34-3-3-...
src/svg-icons/image/crop-7-5.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCrop75 = (props) => ( <SvgIcon {...props}> <path d="M19 7H5c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zm0 8H5V9h14v6z"/> </SvgIcon> ); ImageCrop75 = pure(ImageCrop75); ImageCrop75...
js/components/loaders/ProgressBar.android.js
phamngoclinh/PetOnline_vs2
/* @flow */ import React from 'react'; import ProgressBarAndroid from 'react-native'; import NativeBaseComponent from 'native-base/Components/Base/NativeBaseComponent'; import computeProps from 'native-base/Utils/computeProps'; export default class SpinnerNB extends NativeBaseComponent { prepareRootProps() { ...
code/workspaces/web-app/src/components/common/ConfirmDialog.js
NERC-CEH/datalab
import React from 'react'; import PropTypes from 'prop-types'; import Dialog from '@material-ui/core/Dialog'; import DialogTitle from '@material-ui/core/DialogTitle'; import DialogContent from '@material-ui/core/DialogContent'; import DialogActions from '@material-ui/core/DialogActions'; import DialogContentText from '...
src/main.js
idealgardens/codeword
import React from 'react' import ReactDOM from 'react-dom' import createBrowserHistory from 'history/lib/createBrowserHistory' import { useRouterHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import createStore from './store/createStore' import AppContainer from './containers/Ap...
src/data-table/DataTable.js
Synchro-TEC/apollo-11
import React from 'react'; import PropTypes from 'prop-types'; import DataTableBody from './data-table-body/DataTableBody'; import DataTableHeader from './data-table-header/DataTableHeader'; class DataTable extends React.Component { constructor(props) { super(props); this.keys = React.Children.map(props.chil...
cuttlebelle/code/listPosts.js
staystatic/staystatic
import PropTypes from 'prop-types'; import React from 'react'; /** * The listing posts component */ const ListPosts = ({ title, _pages, _relativeURL, _ID }) => ( <div> <b>{ title }</b> <ul className="news"> { Object.keys( _pages ) .filter( page => _pages[ page ]._url.startsWith('/posts/') ) .s...
resources/assets/javascript/components/plantsViewPage.js
colinjeanne/garden
import PlantList from './plantList'; import PlantListAddBox from './plantListAddBox'; import PlantView from './plantView'; import React from 'react'; const plantsViewPage = props => { let plantView; if (props.selectedPlant) { plantView = ( <PlantView plant={props.selectedPla...
examples/with-jsxstyle/src/Home.js
jaredpalmer/razzle
import { Block, InlineBlock } from 'jsxstyle'; import React, { Component } from 'react'; class Home extends Component { render() { return ( <Block textAlign="center"> <Block backgroundColor="#222"> <Block fontSize="3rem" color="#fff" padding="6rem 0" fontWeight="800"> Razzle x...
code/web/node_modules/react-bootstrap/es/FormControlStatic.js
zyxcambridge/RecordExistence
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/index.js
koden-km/sc-react-redux
import SC from 'soundcloud'; import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { Provider } from 'react-redux'; import configureStore from './stores/configureStore'; imp...
src/ui/Item.js
touchstonejs/touchstonejs
import blacklist from 'blacklist'; import classnames from 'classnames'; import React from 'react'; module.exports = React.createClass({ displayName: 'Item', propTypes: { children: React.PropTypes.node.isRequired, component: React.PropTypes.any, className: React.PropTypes.string, showDisclosureArrow: React.P...
node_modules/semantic-ui-react/dist/es/elements/Label/LabelDetail.js
mowbell/clickdelivery-fed-test
import _extends from 'babel-runtime/helpers/extends'; import _isNil from 'lodash/isNil'; import cx from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { customPropTypes, getElementType, getUnhandledProps, META } from '../../lib'; function LabelDetail(props) { var children = pro...
src/components/home/Home.js
uxlayouts/spidermonkey
import React from 'react' const Home = () => ( <div className="container-fluid padding-top-3 padding-bottom-3"> <h2>Home</h2> </div> ) export default Home
dist/frontend/app.js
angeloocana/freecomclub
import React from 'react'; import ReactDOM from 'react-dom'; import Relay from 'react-relay'; import UserReport from './users/components/UserReport'; console.log('Hello app.tsx'); class HomeRoute extends Relay.Route { } HomeRoute.routeName = 'Home'; HomeRoute.queries = { store: (Component) => Relay.QL ` ...
src/components/result.js
ShaneFairweather/React-iTunes
import React, { Component } from 'react'; const Result = (props) => { function parseTime(milliseconds) { var minutes = Math.floor(milliseconds / 60000); var seconds = ((milliseconds % 60000) / 1000).toFixed(0); return minutes + ":" + (seconds < 10 ? '0' : '') + seconds; } return (...
src/parser/shared/modules/features/BaseHealerStatValues.js
FaideWW/WoWAnalyzer
import React from 'react'; import InformationIcon from 'interface/icons/Information'; import SPELLS from 'common/SPELLS/index'; import { formatNumber } from 'common/format'; import { calculatePrimaryStat, calculateSecondaryStatDefault } from 'common/stats'; import Analyzer from 'parser/core/Analyzer'; import HIT_TYPE...
node_modules/react-router/es/RouterContext.js
NickingMeSpace/questionnaire
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; }; var _typeof = typeof Symbol === "function" && typeof Symbol.i...
src/components/couchdb/plain/CouchdbPlain.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './CouchdbPlain.svg' /** CouchdbPlain */ function CouchdbPlain({ width, height, className }) { return ( <SVGDeviconInline className={'CouchdbPlain' + ' ' + className...
Libraries/Components/WebView/WebView.ios.js
Andreyco/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...
node_modules/react-bootstrap/es/Jumbotron.js
okristian1/react-info
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
node/webpack/react/es6/es6.js
wushi27/nodejs201606
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; class HelloWorld extends React.Component{ render(){ return ( <p> hello,you aaa! It is {this.props.date.toTimeString()} </p> ); } } var sampleNameSpace = { myDi...
node_modules/react-bootstrap/es/SplitToggle.js
cmccandless/SolRFrontEnd
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import DropdownToggle fr...
app/components/TransferSelect/index.js
bruceli1986/react-qdp
/** * * TransferSelect * */ import React from 'react'; import _ from 'lodash'; import { Modal, Button, Input, Transfer } from 'antd'; import classNames from 'classnames'; import { FormattedMessage } from 'react-intl'; import styles from './styles.css'; const InputGroup = Input.Group; class TransferSelect extends Re...
src/components/book_display_component.js
allenyin55/reading_with_Annie
import React from 'react'; import { Link } from 'react-router'; import moment from 'moment-timezone'; const BookDisplay = ({book, isInList}) => { if(isInList){ // for teh sake of the book that doesn't have bookinfo or volumeinfo if(book.bookinfo === null || book.bookinfo.volumeInfo === undefined) return <L...
app/javascript/flavours/glitch/components/status_list.js
glitch-soc/mastodon
import { debounce } from 'lodash'; import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import StatusContainer from 'flavours/glitch/containers/status_container'; import ImmutablePureComponent from 'react-immutable-pure-component'; import LoadGap fro...
examples/basic/components/Input.js
babotech/redux-uniform
import React from 'react' const Input = (props) => { const style = { ...defaultStyle, borderColor: !props.dirty ? `none` : !props.valid ? `#ff0000` : `#363636` } return ( <input style={style} {...props} /> ) } export default Input const defaultStyle = { display: `block`,...
app/components/TimelineEvent/index.js
samtgarson/MyFirstReactNativeApp
/* * * TimelineEvent * */ import ReactNative from 'react-native'; import React, { Component } from 'react'; import styles from './styles'; const { Animated, View, Text, ScrollView } = ReactNative; const FINAL_HEIGHT = 120 const RELEASE_OFFSET = 80 class TimelineEvent extends Component { constructor (props) { ...
packages/showcase/plot/labeled-stacked-vertical-bar-chart.js
uber-common/react-vis
// Copyright (c) 2016 - 2017 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...
examples/src/components/StatesField.js
namuol/react-select-seamstress
import React from 'react'; import Select from 'react-select'; const STATES = require('../data/states'); var id = 0; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var StatesField = React.createClass({ displayName: 'StatesField', p...