path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/image/timer-off.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTimerOff = (props) => ( <SvgIcon {...props}> <path d="M19.04 4.55l-1.42 1.42C16.07 4.74 14.12 4 12 4c-1.83 0-3.53.55-4.95 1.48l1.46 1.46C9.53 6.35 10.73 6 12 6c3.87 0 7 3.13 7 7 0 1.27-.35 2.47-.94 3.49l1....
stories/ui/Badge.js
aviarypl/mozilla-l10n-addons-frontend
/* @flow */ import React from 'react'; import { storiesOf } from '@storybook/react'; import { withInfo } from '@storybook/addon-info'; import Badge from 'ui/components/Badge'; import type { Props as BadgeProps } from 'ui/components/Badge'; import { createChapters } from '../utils'; const label = 'Hello Badge'; cons...
docs/src/app/components/pages/components/RadioButton/Page.js
ichiohta/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import radioButtonReadmeText from './README'; import RadioButtonExampleSimple fr...
docs/src/editors/utils/Box.js
gocreating/redux-draft
import React, { Component } from 'react'; class Box extends Component { render() { let { as, children, ...rest } = this.props; return React.createElement( as, rest, children ); } } Box.defaultProps = { as: 'span', }; export default Box;
src/modules/dashboard/DashboardLayout.js
burakince/d3js-react-examples
import React, { Component } from 'react'; import {Grid, Row, Col} from 'react-bootstrap'; import SearchBar from './components/SearchBar'; import FunnelChart from './components/FunnelChart'; import PieChart from './components/PieChart'; import PositiveAndNegativeBarChart from './components/PositiveAndNegativeBarChart';...
src/shared/privateRoute.js
bschneier/credit-cards-front-end
import React from 'react'; import PropTypes from 'prop-types'; import { Route, Redirect } from 'react-router-dom'; import { connect } from 'react-redux'; import { login } from '../login/actions'; import localforage from 'localforage'; import CONSTANTS from './constants'; import Spinner from './spinner'; class PrivateR...
examples/SmallButton.js
react-materialize/react-materialize
import React from 'react'; import Button from '../src/Button'; import Icon from '../src/Icon'; export default <div> <Button node='a' waves='light' small>Button</Button> <Button node='a' waves='light' small>Button<Icon left>cloud</Icon></Button> <Button node='a' waves='light' small>Button<Icon right>cloud</...
src/main.js
k2data/react-redux-starter-kit
// @flow import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import { AppContainer as HotContainer } from 'react-hot-loader' import AppContainer from './containers/AppContainer' import 'isomorphic-fetch' // ======================================================== //...
src/svg-icons/notification/airline-seat-legroom-normal.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let 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....
packages/react/examples/create-react-app/src/App.js
carbon-design-system/carbon-components
import 'carbon-components/scss/globals/scss/styles.scss'; import React, { Component } from 'react'; import { Accordion, AccordionItem } from 'carbon-components-react'; import logo from './logo.svg'; import './App.scss'; class App extends Component { render() { return ( <div> <div className="App"> ...
alarm/js/AlarmNav.js
leglars/wakeup
/** * Created by leglars on 2017/5/2. */ import React from 'react'; import { NativeRouter, Route } from 'react-router-native'; import Alarm from './Alarm'; import AddAlarm from './AddAlarm'; import { View, StyleSheet, StatusBar } from 'react-native'; class AlarmNav extends React.Component{ render(){ retu...
ajax/libs/react-instantsearch/5.2.0/Connectors.js
jonobr1/cdnjs
/*! React InstantSearch 5.2.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports',...
src/app/components/index/Index.js
cherishstand/OA-react
import React, { Component } from 'react'; import Header from '../public/Header'; import {Link} from 'react-router'; class Index extends Component { render(){ return( <div className='warp'> <Header path={this.props.location.pathname}/> <nav> <ul className="menu"> ...
src/svg-icons/editor/vertical-align-bottom.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorVerticalAlignBottom = (props) => ( <SvgIcon {...props}> <path d="M16 13h-3V3h-2v10H8l4 4 4-4zM4 19v2h16v-2H4z"/> </SvgIcon> ); EditorVerticalAlignBottom = pure(EditorVerticalAlignBottom); EditorVertical...
example/src/App.js
Ajackster/react-native-global-props
import React from 'react'; import { View, TextInput, Text, Image, TouchableOpacity } from 'react-native'; const images = { whosThatCoolCat: require('./img/MyNormPic.jpeg') }; class App extends React.Component { constructor(props) { super(props); this.state = { inputValue: '', hiddenT...
app/javascript/mastodon/features/status/components/action_bar.js
h-izumi/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import IconButton from '../../../components/icon_button'; import ImmutablePropTypes from 'react-immutable-proptypes'; import DropdownMenu from '../../../components/dropdown_menu'; import { defineMessages, injectIntl } from 'react-intl'; const messages = de...
src/parser/warlock/demonology/modules/talents/SummonVilefiend.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import { formatThousands } from 'common/format'; import SpellLink from 'common/SpellLink'; import StatisticListBoxItem from 'interface/others/StatisticListBoxItem'; import PETS from '../pets/PETS'; import Dem...
src/svg-icons/image/straighten.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageStraighten = (props) => ( <SvgIcon {...props}> <path d="M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H3V8h2v4h2V8h2v4h2V8h2v4h2V8h2v4h2V8h2v8z"/> </SvgIcon> ); ImageStr...
src/components/common/forms/Button.js
seyade/loggent
import React from 'react'; const Button = ({type, onSave, text}) => { return ( <div className="control"> <button className="control__button" type={type} onClick={onSave}> {text} </button> </div> ); }; export default Button;
shared/components/SubComponents/Question/Question.js
KCPSoftware/KCPS-React-Starterkit
import React, { Component } from 'react'; import 'react-datepicker/dist/react-datepicker.css'; import { questionCategory } from '../../../utils/enums/questionCategory'; import Checkbox from '../Question/Checkbox'; import Radio from '../Question/Radio'; import Country from '../Question/Country'; import Textfield from '....
src/svg-icons/image/remove-red-eye.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageRemoveRedEye = (props) => ( <SvgIcon {...props}> <path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5...
blueocean-dashboard/src/main/js/components/stories/RunDetailsHeaderStories.js
jenkinsci/blueocean-plugin
/* eslint-disable */ import React from 'react'; import {storiesOf, action} from '@kadira/storybook'; import { ModalView, ModalBody, ModalHeader, PageTabs, Progress, TabLink, } from '@jenkins-cd/design-language'; import WithContext from '@jenkins-cd/design-language/dist/js/stories/WithContext'; i...
src/utils/childUtils.js
nathanmarks/material-ui
import React from 'react'; import createFragment from 'react-addons-create-fragment'; export function createChildFragment(fragments) { const newFragments = {}; let validChildrenCount = 0; let firstKey; // Only create non-empty key fragments for (const key in fragments) { const currentChild = fragments[k...
node_modules/_rc-slider@8.3.1@rc-slider/es/common/Marks.js
ligangwolai/blog
import _extends from 'babel-runtime/helpers/extends'; import _typeof from 'babel-runtime/helpers/typeof'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import React from 'react'; import classNames from 'classnames'; var Marks = function Marks(_ref) { var className = _ref.className, vertic...
src/svg-icons/notification/phone-in-talk.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPhoneInTalk = (props) => ( <SvgIcon {...props}> <path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C8.7 6.45 8.5 5...
blueprints/view/files/__root__/views/__name__View/__name__View.js
ecocitybuilders/urbinsight
import React from 'react' type Props = { }; export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } export default <%= pascalEntityName %>
src/icons/AndroidArrowDropright.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class AndroidArrowDropright extends React.Component { render() { if(this.props.bare) { return <g> <g> <polygon points="192,128 320,256 192,384 "></polygon> </g> </g>; } return <IconBase> <g> <polygon poin...
packages/ringcentral-widgets-docs/src/app/pages/Components/LinkLine/Demo.js
ringcentral/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import LinkLine from 'ringcentral-widgets/components/LinkLine'; /** * A example of `LinkLine` */ const LinkLineDemo = () => ( <LinkLine to="test string" onClick={() => null}> <span>Line</span> </LinkLine> ); export default LinkLineDemo;
src/components/CommonComponent/Carousel/carousel.js
sourabh-garg/react-starter-kit
import React from 'react'; import { IndexLink, Link } from "react-router"; import './carousel.scss'; import ArrowButtom from '../../../images/Icons/arrow-right'; const Images = [ {url : "http://thecsrjournal.in/wp-content/uploads/2017/04/Sports-I.jpg"}, {url :"http://www.dessosports.com/sites/all/themes/desso_t...
src/App.js
ransanjeev/react-hot-boilerplate
require("./style.less"); import React, { Component } from 'react'; import Navbar from "./navbar.jsx"; import Item from "./item"; import _ from "underscore"; import {DragDropContext} from "react-dnd"; import HTML5Backend from 'react-dnd/modules/backends/HTML5'; import Immutable from "immutable"; import update from 'reac...
src/components/pagination/Pagination/Pagination.js
CtrHellenicStudies/Commentary
import React from 'react'; // import PropTypes from 'prop-types'; import _ from 'underscore'; import { connect } from 'react-redux'; import PaginationButton from '../PaginationButton'; import './Pagination.css'; const Pagination = ({ limit, total, location, page }) => { let numPages = Math.ceil(total / limit); let...
docs/app/Examples/elements/Button/Variations/index.js
shengnian/shengnian-ui-react
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const ButtonVariationsExamples = () => ( <ExampleSection title='Variations'> <ComponentExample title='Social' descrip...
react/features/filmstrip/components/Filmstrip.web.js
KalinduDN/kalindudn.github.io
/* @flow */ import React, { Component } from 'react'; import { Toolbox } from '../../toolbox'; /** * Implements a React {@link Component} which represents the filmstrip on * Web/React. * * @extends Component */ export default class Filmstrip extends Component { static propTypes = { /** * Wh...
app/addons/fauxton/notifications/components/NotificationCenterPanel.js
apache/couchdb-fauxton
// Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
src/components/Deposit.js
mingjiezhang/REACT-ATM
import React from 'react'; import { IndexLink } from 'react-router'; import { Radio } from 'antd'; import { Input,Button,Alert } from 'antd'; import styles from '../style/Choice.css'; import Show from '../style/Show.css'; const RadioGroup = Radio.Group; class Deposit extends React.Component { constructor(props) { ...
src/index.js
insin/react-maskedinput
import React from 'react' import PropTypes from 'prop-types' import InputMask from 'inputmask-core' let KEYCODE_Z = 90 let KEYCODE_Y = 89 function isUndo(e) { return (e.ctrlKey || e.metaKey) && e.keyCode === (e.shiftKey ? KEYCODE_Y : KEYCODE_Z) } function isRedo(e) { return (e.ctrlKey || e.metaKey) && e.keyCode ...
react/App.js
fraserxu/react-data-visualization
'use strict'; import React from 'react'; import ChartistGraph from 'react-chartist'; import Barchart from './Barchart'; class App extends React.Component { displayName: 'App' constructor() { super(); this.state = { data: [] }; } render() { let data = { labels: ['W1', 'W2', 'W3...
local-cli/templates/HelloWorld/index.ios.js
charlesvinette/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 HelloWorld extends Component { render() { return ( <View style={styles.containe...
spec/components/progress.js
jasonleibowitz/react-toolbox
import React from 'react'; import ProgressBar from '../../components/progress_bar'; import style from '../style'; const initialState = { progress: 0, buffer: 10 }; class ProgressBarTest extends React.Component { state = initialState; componentWillMount () { this.simulateProgress(); } simulateProgres...
app/javascript/components/TypesDeChampEditor/index.js
sgmap/tps
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { library } from '@fortawesome/fontawesome-svg-core'; import { faArrowCircleDown } from '@fortawesome/free-solid-svg-icons/faArrowCircleDown'; import { faArrowDown } from '@fortawesome/free-solid-svg-icons/faArrowDown'; import { faArr...
forms/UserForm.js
caTUstrophy/frontend
import React, { Component } from 'react'; import { reduxForm } from 'redux-form'; import { browserHistory } from 'react-router'; import autobind from 'autobind-decorator'; import TextField from 'material-ui/TextField'; import FlatButton from 'material-ui/FlatButton'; import IconButton from 'material-ui/IconButton'; i...
src/@ui/Hero/Hero.stories.js
NewSpring/Apollos
import React from 'react'; import { StyleSheet } from 'react-native'; import { storiesOf } from '@storybook/react-native'; import { H1 } from '@ui/typography'; import FlexedView from '@ui/FlexedView'; import Video from '@ui/VideoPlayer'; import Hero, { BackgroundImage } from './'; const BackgroundVideo = () => ( <V...
src/index.js
shadidchowdhury/virtServerNG
import React from 'react' import ReactDOM from 'react-dom' import Container from './components/container' const App = () => { return (<div> <h2>VirtServer NG</h2> <Container></Container> </div>); } ReactDOM.render(<App />, document.querySelector('.container'));
src/client/activity/Activity.js
busyorg/busy
import React from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import { injectIntl } from 'react-intl'; import Affix from '../components/Utils/Affix'; import LeftSidebar from '../app/Sidebar/LeftSidebar'; import UserActivity from './UserActivity'; import RightSidebar from '../app/Side...
src/parser/monk/mistweaver/modules/talents/RenewingMistDuringManaTea.js
fyruna/WoWAnalyzer
// Modified from Original Code by Blazyb and his Innervate module. import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import A...
examples/official-storybook/stories/addon-a11y/base-button.stories.js
kadirahq/react-storybook
import React from 'react'; import BaseButton from '../../components/BaseButton'; import DelayedRender from '../../components/DelayedRender'; const text = 'Testing the a11y addon'; export default { title: 'Addons/A11y/BaseButton', component: BaseButton, parameters: { options: { selectedPanel: 'storybook/a11y...
src/client/assets/js/components/NotFound/NotFound.js
me-box/databox-sdk
import React, { Component } from 'react'; import { Link } from 'react-router'; export default class NotFound extends React.Component { render() { return ( <div className="container text-center"> <h1>Hmm - sorry can't find the link!</h1> <hr /> <Link to="/">Back To Home View</Link> ...
artificial-intelligence/lab1/src/components/KnowledgeBase.js
Drapegnik/bsu
import React from 'react'; import PropTypes from 'prop-types'; import { rules as initialRules } from 'data'; const Keyword = ({ label }) => ( <div className="control"> <div className="tags"> <strong>{label}</strong> </div> </div> ); Keyword.propTypes = { label: PropTypes.string.isRequired }; const ...
envkey-react/src/components/forms/auth/verify_email_code_form.js
envkey/envkey-app
import React from 'react' import h from "lib/ui/hyperscript_with_helpers" import Spinner from 'components/shared/spinner' export default class VerifyEmailCodeForm extends React.Component { componentDidMount(){ this.refs.emailVerificationCode.focus() } render(){ return h.div(".verify-email-code", [ ...
packages/bonde-styleguide/src/cards/Panel/Panel.js
ourcities/rebu-client
import React from 'react' import styled, { keyframes } from 'styled-components' import PropTypes from 'prop-types' import { Card } from '../../' import Flexbox from '../../layout/Flexbox2/Flexbox2' import IconColorful from '../../content/IconColorful/IconColorful' import Image from '../../content/Image/Image' import Sp...
examples/huge-apps/app.js
Nedomas/react-router
/*eslint-disable no-unused-vars */ import React from 'react' import { createHistory, useBasename } from 'history' import { Router } from 'react-router' import stubbedCourses from './stubs/COURSES' const history = useBasename(createHistory)({ basename: '/huge-apps' }) const rootRoute = { component: 'div', childR...
app/components/team/Pipelines/access-level.js
buildkite/frontend
import React from 'react'; import PropTypes from 'prop-types'; import Chooser from 'app/components/shared/Chooser'; import Dropdown from 'app/components/shared/Dropdown'; import PermissionSelectOptionDescriptions from 'app/components/shared/PermissionSelectOptionDescriptions'; import PermissionDescription from 'app/co...
Ethereum-based-Roll4Win/node_modules/react-bootstrap/es/ModalTitle.js
brett-harvey/Smart-Contracts
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose"; import classNames from 'classnames'; import React from 'react'; import divWithClassName f...
packages/components/src/Datalist/Datalist.stories.js
Talend/ui
import React from 'react'; import { action } from '@storybook/addon-actions'; import Datalist from './Datalist.component'; const defaultProps = { onChange: action('onChange'), disabled: false, readOnly: false, placeholder: 'search for something...', titleMap: [ { name: 'My foo', value: 'foo', description: 'foo...
examples/bootstrap/src/index.js
tannerlinsley/react-table
import React from 'react' import ReactDOM from 'react-dom' import './index.css' import App from './App' ReactDOM.render(<App />, document.getElementById('root'))
packages/ringcentral-widgets-docs/src/app/pages/Components/RegionSettingsAlert/index.js
ringcentral/ringcentral-js-widget
import React from 'react'; import { parse } from 'react-docgen'; import CodeExample from '../../../components/CodeExample'; import ComponentHeader from '../../../components/ComponentHeader'; import PropTypeDescription from '../../../components/PropTypeDescription'; import Demo from './Demo'; // eslint-disable-next-lin...
src/server.js
deepakshrma/save-the-internet
/** * 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 'babel-core/polyfill'; import path from 'path'; imp...
modules/gui/src/widget/buttons.js
openforis/sepal
import {Button} from 'widget/button' import {ButtonGroup} from 'widget/buttonGroup' import {Widget} from 'widget/widget' import PropTypes from 'prop-types' import React from 'react' import _ from 'lodash' import styles from './buttons.module.css' export class Buttons extends React.Component { isSelected(value) { ...
example_components/PasswordField.react.js
blueberryapps/react-bluekit
import Component from '../src/app/PureRenderComponent.react'; import ErrorMessage from './ErrorMessage.react'; import Icon from '../src/app/atoms/Icon.react'; import Radium, {Style} from 'radium'; import React from 'react'; import RPT from 'prop-types'; @Radium export default class PasswordField extends Component { ...
src/encoded/static/components/static-pages/placeholders/MdSortableTable.js
hms-dbmi/fourfront
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import _ from 'underscore'; import Markdown from 'markdown-to-jsx'; import Draggable from 'react-draggable'; import { ajax, console, logger } from '@hms-dbmi-bgm/shared-portal-components/es/components/util'; export class MdSortableTable ext...
app/containers/AppHub/Header/index.js
vollmerr/app-hub
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { compose } from 'redux'; import toJS from '../../../hocs/toJS'; import theme from '../../../utils/theme'; import me...
src/svg-icons/places/room-service.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesRoomService = (props) => ( <SvgIcon {...props}> <path d="M2 17h20v2H2zm11.84-9.21c.1-.24.16-.51.16-.79 0-1.1-.9-2-2-2s-2 .9-2 2c0 .28.06.55.16.79C6.25 8.6 3.27 11.93 3 16h18c-.27-4.07-3.25-7.4-7.16-8.21z"...
components/base/TopNavigation/SignInButton.js
CarbonStack/carbonstack
import React from 'react' import { Github as GithubIcon } from '../../shared/octicons' const SignInButton = ({ onClick, isSigningIn }) => ( <div> <button className='primary' onClick={onClick} > <GithubIcon /> {isSigningIn ? 'Signing In...' : 'Sign in' } </button> ...
examples/sidebar/app.js
kevinsimper/react-router
import React from 'react'; import { history } from 'react-router/lib/HashHistory'; import { Router, Route, Link } from 'react-router'; import data from './data'; var Category = React.createClass({ render() { var category = data.lookupCategory(this.props.params.category); return ( <div> <h1>{cat...
client/src/components/NotFoundPage/NotFoundPage.js
anvk/TweetGeoViz
import React, { Component } from 'react'; import { T__ } from '../../reducers/language.js'; class NotFoundPage extends Component { render() { return ( <div> <h1>{T__('notFoundPage.header')}</h1> <p>{T__('notFoundPage.body')}</p> </div> ); } } export default NotFoundPage;
app/components/List/index.js
7ruth/PadStats2
import React from 'react'; import Ul from './Ul'; import Wrapper from './Wrapper'; function List(props) { const ComponentToRender = props.component; let content = (<div></div>); // If we have items, render them if (props.items) { content = props.items.map((item, index) => ( <ComponentToRender key={...
frontend/src/components/menu.js
hai5nguy/akaamo_app
import React from 'react'; import { push as Menu } from 'react-burger-menu'; import '../styles/menu.scss'; class NavMenu extends React.Component { render () { return (<Menu pageWrapId={'content'} isOpen={this.props.isMenuOpen}> <div onClick={this.props.setContent} id="home-menu" className="menu-item" data="home...
features/toolbar/components/AbstractToolbar.js
jitsi/jitsi-meet-react
import React, { Component } from 'react'; import { appNavigate } from '../../app'; import { toggleAudioMuted, toggleVideoMuted } from '../../base/media'; import { ColorPalette } from '../../base/styles'; import { styles } from './styles'; /** * Abstract (base) class for the conference toolbar. * * @abstra...
app/assets/scripts/components/selection-panel.js
worldbank-cdrp/disaster-risk-explorer
import React from 'react' import { hashHistory } from 'react-router' import c from 'classnames' import _ from 'lodash' import { getLanguage, t } from '../utils/i18n' import { availableRPs } from '../constants' import DataSelection from '../utils/data-selection' import Dropdown from './dropdown' const Selection = Reac...
src/web/forms/fields/AutoCalc/__mocks__/index.js
asha-nepal/AshaFusionCross
/** * Copyright 2017 Yuichiro Tsuchiya * * 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 agr...
src/svg-icons/social/share.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialShare = (props) => ( <SvgIcon {...props}> <path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0...
packages/core/src/HeaderRow.js
iCHEF/gypcrete
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import './styles/HeaderRow.scss'; import prefixClass from './utils/prefixClass'; import icBEM from './utils/icBEM'; export const COMPONENT_NAME = prefixClass('header-row'); const ROOT_BEM = icBEM(COMPONENT_NAME); expor...
fields/types/url/UrlColumn.js
efernandesng/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/client/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTableValue'; var UrlColumn = React.createClass({ displayName: 'UrlColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.ob...
ui/src/plugins/epl-dashboard/components/SystemInfo.js
Baransu/erlangpl
// @flow import React from 'react'; import { connect } from 'react-redux'; import { Row, Col, ListGroup, ListGroupItem } from 'react-bootstrap'; import './SystemInfo.css'; const SystemInfo = ({ info }) => { const systemInfo = [ ['OTP release', info.otpRelease], ['ERTS version', info.version], ['node PID...
src/js/pages/FullWidthPage.js
hadnazzar/ModernBusinessBootstrap-ReactComponent
import React from 'react'; import Subheading from '../components/Subheading'; export default class Layout extends React.Component { constructor() { super(); this.state = { title:"Welcome to Momoware!", }; } changeTitle(title){ this.setState({title}); } navigate() { ...
fields/types/url/UrlColumn.js
michaelerobertsjr/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var UrlColumn = React.createClass({ displayName: 'UrlColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue () { va...
packages/rex-intl-translator/src/test/tester.js
linear-bits/linear-bits
import React from 'react' import {FormattedMessage} from 'react-intl' const Tester = () => ( <div> <FormattedMessage id='title' description='Title' defaultMessage='TITLE'/> <p> <FormattedMessage id='body' description='Body' defaultMessage='BODY {val, number}' values={{ ...
IQApp/src/components/screens/HomeScreen.js
victorditadi/IQApp
import React, { Component } from 'react'; import { View, Image, Text } from 'react-native'; class HomeScreen extends Component { render(){ return( <View style={{flex: 1, backgroundColor: '#e6e6e6'}}> <View style = {styles.fundoLogo}> <Image style={{width: 300, height: 300}} source={requ...
src/App/App.js
UTNianos/frontend
/* eslint-disable react/no-children-prop */ import React from 'react'; import MediaQuery from 'react-responsive'; import LayoutDesktop from './LayoutDesktop'; import LayoutMobile from './LayoutMobile'; const App = ({ children }) => ( <div> <MediaQuery minDeviceWidth={1224}> <LayoutDesktop children={childre...
components/steps/demo/index.js
TDFE/td-ui
import React from 'react'; import ReactDOM from 'react-dom'; /* eslint-disable no-unused-vars */ import Button from '../../button'; /* eslint-disable no-unused-vars */ import Icon from '../../icon'; /* eslint-disable no-unused-vars */ import Steps from '../index'; const MOUNT_NODE = document.getElementById('app'); co...
public/javascripts/routers/clueManage.js
helloworldzxy/CarDetection
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, IndexRoute, hashHistory } from 'react-router'; import Clue from '../components/container/clue.js'; import { HeaderBanner } from '../components/display/headerBanner.js'; import Navigation from '../components/display/nav...
webpack/components/pf3Table/components/CollapseSubscriptionGroupButton.js
Katello/katello
import React from 'react'; import PropTypes from 'prop-types'; import { noop } from 'foremanReact/common/helpers'; import { Icon } from 'patternfly-react'; const CollapseSubscriptionGroupButton = ({ collapsed, onClick, ...props }) => { const iconName = collapsed ? 'angle-right' : 'angle-down'; return ( <Ico...
fluxible-router/components/Nav.js
sensduo/flux-examples
/** * Copyright 2014, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ import React from 'react'; import {NavLink} from 'fluxible-router'; function Nav () { return ( <ul className="pure-menu pure-menu-open pure-menu-horizontal"> <li...
node_modules/react-scripts/template/src/index.js
jkahrs595/website
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
demos/function-tree-demos/src/mobx/components/AddAssignment/index.js
FWeinb/cerebral
import React from 'react' import {observer} from 'mobx-react' import run from '../../run' import './styles.css' import newAssignmentTitleChanged from '../../events/newAssignmentTitleChanged' import newAssignmentAssigneeChanged from '../../events/newAssignmentAssigneeChanged' import newAssigmentAssigneAdded from '../.....
docs/src/app/components/pages/components/List/ExamplePhone.js
manchesergit/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import Divider from 'material-ui/Divider'; import CommunicationCall from 'material-ui/svg-icons/communication/call'; import CommunicationChatBubble from 'material-ui/svg-icons/communicatio...
app/javascript/flavours/glitch/features/local_settings/navigation/index.js
vahnj/mastodon
// Package imports import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, defineMessages } from 'react-intl'; // Our imports import LocalSettingsNavigationItem from './item'; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * const messages = defineMessages({ gen...
src/scripts/components/toaster/Toaster.component.story.js
kodokojo/kodokojo-ui-commons
/** * Kodo Kojo - Software factory done right * Copyright © 2017 Kodo Kojo (infos@kodokojo.io) * * This program 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 ...
CoreCRM/ClientApp/src/views/Home/Dashboard.js
holmescn/CoreCRM
import React from 'react'; import { connect } from 'dva'; // import styles from './Index.css'; function Dashboard() { return ( <div>Home/Index</div> ); } Dashboard.propTypes = { }; export default connect()(Dashboard);
app/jsx/gradebook/SISGradePassback/PostGradesApp.js
djbender/canvas-lms
/* * Copyright (C) 2014 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
src/components/BookShelves.js
ralmidani/react-my-reads
import React from 'react'; import BookShelf from './BookShelf'; import {Link} from 'react-router-dom'; class BookShelves extends React.Component { render() { const books = this.props.books; return ( <div className="list-books"> <div className="list-books-title"> <h1>MyReads</h1> ...
actor-apps/app-web/src/app/components/modals/MyProfile.react.js
ketoo/actor-platform
//import _ from 'lodash'; import React from 'react'; import { KeyCodes } from 'constants/ActorAppConstants'; import MyProfileActions from 'actions/MyProfileActions'; import MyProfileStore from 'stores/MyProfileStore'; import AvatarItem from 'components/common/AvatarItem.react'; import Modal from 'react-modal'; //i...
src/routes/contact/Contact.js
zsu13579/whatsgoinontonight
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
app/javascript/mastodon/components/short_number.js
ashfurrow/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { toShortNumber, pluralReady, DECIMAL_UNITS } from '../utils/numbers'; import { FormattedMessage, FormattedNumber } from 'react-intl'; // @ts-check /** * @callback ShortNumberRenderer * @param {JSX.Element} displayNumber Number to display * @para...
src/svg-icons/image/panorama.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePanorama = (props) => ( <SvgIcon {...props}> <path d="M23 18V6c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zM8.5 12.5l2.5 3.01L14.5 11l4.5 6H5l3.5-4.5z"/> </SvgIcon> ); ImagePanora...
examples/react-native/components/CustomNavBar2.js
aksonov/react-native-router-flux
import { Image, Platform, StyleSheet, Text, TouchableOpacity, View, } from 'react-native'; import React from 'react'; import {Actions} from 'react-native-router-flux'; const styles = StyleSheet.create({ container: { height: Platform.OS === 'ios' ? 64 : 54, flexDirection: 'row', paddingTop: 20...
web/static/js/components/RecentGames.js
josephyi/anivia
import React from 'react' import { Panel, Table, Label } from 'react-bootstrap' import champ_icons from '../css/StaticChampionSprites.css' import champions from '../data/champ_id_to_name.json' import championIcon from '../css/ChampionIcon.css' import TimeAgo from 'react-timeago' const RecentGames = props => { retu...
example/App.js
abdurrahmanekr/react-chat-elements
import React, { Component } from 'react'; import { MessageBox, ChatItem, ChatList, SystemMessage, MessageList, Input, Button, Avatar, Navbar, SideBar, Dropdown, Popup, } from '../src'; import FaSearch from 'react-icons/lib/fa/search'; import FaComments from 'react-icons/...
packages/material-ui-icons/src/Toys.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Toys = props => <SvgIcon {...props}> <path d="M12 12c0-3 2.5-5.5 5.5-5.5S23 9 23 12H12zm0 0c0 3-2.5 5.5-5.5 5.5S1 15 1 12h11zm0 0c-3 0-5.5-2.5-5.5-5.5S9 1 12 1v11zm0 0c3 0 5.5 2.5 5.5 5.5S15 23 12 23V12z"...
app/imports/ui/components/NewsFeedList.js
mondrus/meteor-starter
/** * @Author: philip * @Date: 2017-05-27T22:21:05+00:00 * @Filename: NewsFeedList.js * @Last modified by: philip * @Last modified time: 2017-05-28T07:33:25+00:00 */ import React, { Component } from 'react'; import ArticleList from '../containers/ArticleList'; class NewsFeedList extends Component { const...