path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
stories/types/result-field-token-type.js
smclab/react-faceted-token-input
import React from 'react'; const FIELDS = { "product": "Product", "description": "Description" }; export const RESULTS = [ { "product": "NPMP50000", "description": "", "status": "1-Compilazione-Richiesta", "createDate": "21/02/2015" }, { "product": "NPMP50078", "description": "MODIFI...
client/components/Main.js
gregmagdsick/learn-redux
import React from 'react'; import { Link } from 'react-router'; const Main = React.createClass({ render() { return ( <div> <h1> <Link to="/">Reduxtagram</Link> </h1> {React.cloneElement(this.props.children, this.props)} </div> ) } }); export default Main;
src/pages/yumarimel.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Yumarimel' /> )
src/Parser/Shaman/Restoration/Modules/Items/EonarsCompassion.js
hasseboulen/WoWAnalyzer
import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import React from 'react'; import ItemHealingDone from 'Main/ItemHealingDone'; import CoreEonarsCompassion from 'Parser/Core/Modules/Items/Legion/AntorusTheBurningThrone/EonarsCompassion'; import CooldownThroughputTracker from '../Features/CooldownTh...
src/apps/tabs/components/InfiniteScroll.react.js
producthunt/producthunt-chrome-extension
/** * Dependencies. */ import React from 'react'; import ReactDOM from 'react-dom'; /** * Utils. */ function topPosition(domElt) { if (!domElt) { return 0; } return domElt.offsetTop + topPosition(domElt.offsetParent); } /** * InfiniteScroll component. */ export default class InfiniteScroll extends ...
src/scenes/works/works-navigation.js
mattmischuk/m1x
// @flow import React from 'react' import styled from 'styled-components' import theme from 'styled-theming' import { Navigation, NavigationItem } from '../../components/navigation' import route from '../../data/routes' import { myTheme } from '../../styles' const { color, space } = myTheme const borderColor = the...
examples/huge-apps/routes/Calendar/components/Calendar.js
brandonlilly/react-router
import React from 'react'; class Calendar extends React.Component { render () { var events = [{ id: 0, title: 'essay due' }]; return ( <div> <h2>Calendar</h2> <ul> {events.map(event => ( <li key={event.id}>{event.title}</li> ))} </ul> ...
src/Survey/Complex/Moth/Edit/Main/components/SpeciesList/components/SubSample/index.js
NERC-CEH/irecord-app
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; import { observer } from 'mobx-react'; import { IonItemOption, IonItemOptions, IonItem, IonIcon, IonItemSliding, IonButton, } from '@ionic/react'; import { alert } from 'ionicons/icons'; import './styles.sc...
fields/types/cloudinaryimages/CloudinaryImagesColumn.js
alobodig/keystone
import React from 'react'; import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; const moreIndicatorStyle = { color: '#888', fontSize: '.8rem', }; var Cloudin...
admin/app/src/index.js
wjwu/blog
import React from 'react'; import ReactDOM from 'react-dom'; import { createStore, applyMiddleware } from 'redux'; import { Provider } from 'react-redux'; import { HashRouter, Switch, Route, Redirect } from 'react-router-dom'; import createSagaMiddleware from 'redux-saga'; import reducers from './reducers'; import saga...
components/chronicle/Chronicle.js
yudazilian/VisualJusticeTW
import React from 'react'; import ReactDom from 'react-dom'; import ChronicleHeader from './ChronicleHeader'; import ChronicleFooter from './ChronicleFooter'; import ChronicleBody from './ChronicleBody'; export default class Chronicle extends React.Component { render() { return ( <div id="Chronicle" classNam...
scripts/main.js
maratgaip/MusicApp
import 'babel-polyfill'; import 'fastclick'; import 'isomorphic-fetch'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import '../styles/main.scss'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStor...
admin/client/components/Lightbox.js
suryagh/keystone
import React from 'react'; import blacklist from 'blacklist'; import Portal from './Portal'; import Transition from 'react-addons-css-transition-group'; const BODY = document.getElementsByTagName('body')[0]; var Lightbox = React.createClass({ displayName: 'Lightbox', propTypes: { backdropClosesModal: React.PropTy...
actor-apps/app-web/src/app/components/sidebar/ContactsSectionItem.react.js
fhchina/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import DialogActionCreators from 'actions/DialogActionCreators'; import AvatarItem from 'components/common/AvatarItem.react'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class ...
packages/component/src/ScreenReaderText.js
billba/botchat
/* eslint react/forbid-dom-props: ["off"] */ import PropTypes from 'prop-types'; import React from 'react'; import useStyleToEmotionObject from './hooks/internal/useStyleToEmotionObject'; const ROOT_STYLE = { // .sr-only - This component is intended to be invisible to the visual Web Chat user, but read by the AT w...
src/pages/dashboard/components/user.js
zuiidea/antd-admin
import React from 'react' import PropTypes from 'prop-types' import { Button, Avatar } from 'antd' import CountUp from 'react-countup' import { Color } from 'utils' import styles from './user.less' const countUpProps = { start: 0, duration: 2.75, useEasing: true, useGrouping: true, separator: ',', } functio...
react/features/base/dialog/components/native/ConfirmDialog.js
gpolitis/jitsi-meet
// @flow import React from 'react'; import { View } from 'react-native'; import Dialog from 'react-native-dialog'; import { translate } from '../../../i18n'; import { connect } from '../../../redux'; import AbstractDialog from '../AbstractDialog'; import { renderHTML } from '../functions.native'; import styles from ...
src/neuralNetwork/infoButtons/InfoButtons.js
csenn/nn-visualizer
import React from 'react'; import RaisedButton from 'material-ui/lib/raised-button'; import * as graphConstants from '../networkGraph/graphConstants'; import InputLayerInfo from './InputLayerInfo'; import HiddenLayerInfo from './HiddenLayerInfo'; import BiasHistoryInfo from './BiasHistoryInfo'; import ActivationHistory...
src/svg-icons/action/view-carousel.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewCarousel = (props) => ( <SvgIcon {...props}> <path d="M7 19h10V4H7v15zm-5-2h4V6H2v11zM18 6v11h4V6h-4z"/> </SvgIcon> ); ActionViewCarousel = pure(ActionViewCarousel); ActionViewCarousel.displayName =...
src/Foo.js
ferrannp/enzyme-example-jest
import React from 'react'; const Foo = React.createClass({ render() { return ( <p>I am not a very smart component...</p> ); } }); export default Foo;
docs/src/app/components/pages/components/DropDownMenu/ExampleOpenImmediate.js
barakmitz/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)...
demo/src/index.js
Psykar/react-filtered-multiselect
import 'bootstrap/dist/css/bootstrap.min.css' import 'bootstrap/dist/css/bootstrap-theme.min.css' import React from 'react' import {render} from 'react-dom' import FilteredMultiSelect from '../../src/index' import CULTURE_SHIPS from './ships.json' const BOOTSTRAP_CLASSES = { filter: 'form-control', select: 'form...
packages/ringcentral-widgets/components/ActiveCallDialPad/index.js
u9520107/ringcentral-js-widget
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import DialPad from '../DialPad'; import CircleButton from '../CircleButton'; import BackHeader from '../BackHeader'; import audios from '../DialButton/audios'; import EndIcon from '../../assets/images/End.svg'; import styles from './styl...
src/components/UserCell.js
rollo-zhou/look
import React from 'react'; import { ActivityIndicator, Image, PixelRatio, StyleSheet, Text, TouchableOpacity, View, Dimensions, } from 'react-native'; import globalVariables from '../globalVariables.js'; import User from './User.js'; import moment from 'moment'; import Icon from 'react-native-vector-ic...
test/TagUncontroledGroupDemo.js
rsuite/rsuite-tag
import React, { Component } from 'react'; import { IconFont } from 'rsuite'; import Tag, { TagGroup } from '../src'; export default class TagUncontroledGroupDemo extends Component { constructor(props) { super(props); this.state = { tags: Object.keys(Tag.Color) }; } getColors = (color) => { ...
client/modules/App/components/Footer/Footer.js
msucorey/street-canvas
import React from 'react'; import { Link } from 'react-router'; // Import Style import styles from './Footer.css'; export function Footer() { return ( <div className={styles.footer}> <ul> <li className={styles.bottomNav}> <Link to="/" >MAP</Link></li> <li className={styles.bottomNav}><Link...
src/svg-icons/hardware/keyboard-arrow-up.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardArrowUp = (props) => ( <SvgIcon {...props}> <path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/> </SvgIcon> ); HardwareKeyboardArrowUp = pure(HardwareKeyboardArrowUp); HardwareKeyboardAr...
src/components/BrowserHeader/index.js
bkrall/react-portfolio
import React, { Component } from 'react'; /* component styles */ import { styles } from './browserHeader.scss'; export class BrowserHeader extends Component { render() { const { title, showBioPic, showPageDescription, pageDescription, headingClassString, titleClass } = this.props; return ( <section cl...
frontend/app/utils/async/injectReducer.js
briancappello/flask-react-spa
import React from 'react' import PropTypes from 'prop-types' import hoistNonReactStatics from 'hoist-non-react-statics' import get from 'lodash/get' import getInjectors from './reducerInjectors' /** * Dynamically injects a reducer * * @param {string} key A key of the reducer * @param {function} reducer A reducer...
lavalab/html/node_modules/react-bootstrap/es/Col.js
LavaLabUSC/usclavalab.org
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/Jumbotron.js
deerawan/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import CustomPropTypes from './utils/CustomPropTypes'; const Jumbotron = React.createClass({ propTypes: { /** * You can use a custom element for this component */ componentClass: CustomPropTypes.elementType }, getDefaultProps() { ...
packages/ringcentral-widgets-docs/src/app/pages/Components/ConversationPanel/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...
examples/src/main.js
prometheusresearch/react-forms
import React from 'react'; import ReactDOM from 'react-dom'; import Examples from './Examples'; import './styles/main.css'; ReactDOM.render(( <Examples /> ), document.getElementById('root'));
src/js/components/icons/base/Play.js
odedre/grommet-final
/** * @description Play SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @prope...
src/components/Column.js
gakimball/react-inky
import React from 'react'; import PropTypes from 'prop-types'; import containsRow from '../util/containsRow'; import getAttrs from '../util/getAttrs'; import getColumnClasses from '../util/getColumnClasses'; import ContainerContext from '../util/containerContext'; /** * Grid column. Place sections of email content in...
src/components/DevTools.js
yosiat/gc-flags-viz
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...
front/app/js/rh-components/rh-IconCircleText.js
nudoru/learning-map
import React from 'react'; const IconCircleText = ({label, style, center, className}) => { let cls = 'rh-icon-circle-text'; if (style) { cls += '-' + style; } if (center) { cls += ' margin-center'; } if (className) { cls += ' ' + className; } return (<div className={cls}> <span>{lab...
src/renderer/components/SyncView/SyncTarget.js
digidem/ecuador-map-editor
import React from 'react' import { makeStyles } from '@material-ui/core/styles' import PhoneIcon from '@material-ui/icons/PhoneAndroid' import LaptopIcon from '@material-ui/icons/Laptop' import FileIcon from '@material-ui/icons/Usb' import ErrorIcon from '@material-ui/icons/Error' import Paper from '@material-ui/core/P...
docs/app/Examples/elements/Icon/Variations/IconExampleFitted.js
mohammed88/Semantic-UI-React
import React from 'react' import { Icon } from 'semantic-ui-react' const IconExampleFitted = () => ( <div> <p>Tight spacing</p> <Icon fitted name='help' /> <p>Tight spacing</p> </div> ) export default IconExampleFitted
src/svg-icons/editor/border-clear.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderClear = (props) => ( <SvgIcon {...props}> <path d="M7 5h2V3H7v2zm0 8h2v-2H7v2zm0 8h2v-2H7v2zm4-4h2v-2h-2v2zm0 4h2v-2h-2v2zm-8 0h2v-2H3v2zm0-4h2v-2H3v2zm0-4h2v-2H3v2zm0-4h2V7H3v2zm0-4h2V3H3v2zm8 8h2v...
src/client/index.js
mitola/awesome-game
import React from 'react'; import ReactDOM from 'react-dom'; import './less/index.less'; import App from './App'; import registerServiceWorker from './utils/registerServiceWorker'; //TMP dependacy for material var injectTapEventPlugin = require("react-tap-event-plugin"); injectTapEventPlugin(); ReactDOM.render(<App ...
src/routes/app/routes/ui/routes/menus/components/Menus.js
ahthamrin/kbri-admin2
import React from 'react'; import QueueAnim from 'rc-queue-anim'; import Menu from './Menu'; import IconMenu from './IconMenu'; import DropdownMenu from './DropdownMenu'; const Menus = () => ( <section className="container-fluid with-maxwidth chapter"> <QueueAnim type="bottom" className="ui-animate"> <div ...
docs/app/Examples/elements/Divider/Variations/DividerExampleSection.js
shengnian/shengnian-ui-react
import React from 'react' import { Divider, Segment } from 'shengnian-ui-react' const DividerExampleSection = () => ( <Segment> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore... <Divider section /> Lorem ipsum dolor sit amet, consectetur adipiscing eli...
src/js/components/AccordionPanel.js
hadnazzar/ModernBusinessBootstrap-ReactComponent
import React from 'react'; export default class AccordionPanel extends React.Component { render() { return( <div class="container"> <div class="row"> <div class="col-lg-12"> <div class="panel-group" id="accordion"> <div class="panel panel-defaul...
app/comp/HorizontalProgressComp.js
iwgang/GankCamp-React-Native
import React, { Component } from 'react'; import { View, ProgressViewIOS, ProgressBarAndroid, Platform } from 'react-native'; class HorizontalProgressComp extends Component { render() { if (Platform.OS === 'android') { return ( <ProgressBarAndroid styleAttr="Horizontal" colo...
src/components/Submit.js
nickorsk2020/agave-react-UI
/* * This file is part of the "Agave react UI" package * * Copyright (c) 2016 Stepanov Nickolay <nickorsk2020@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. * */ import React from 'react'; import { Button } from 'react-b...
src/docs/layout/Footer.js
reactstrap/component-template
import React from 'react'; import { Container, Row, Col } from 'reactstrap'; const Footer = ({gh}) => { const [user, repo] = gh.split('/'); return ( <div className="footer mt-1"> <Container fluid> <Row> <Col className="text-center"> <p className="social"> <ifra...
src/common/components/DevTools/index.js
colinmeinke/universal-js
import DockMonitor from 'redux-devtools-dock-monitor' import LogMonitor from 'redux-devtools-log-monitor' import React from 'react' import { createDevTools } from 'redux-devtools' const DevTools = createDevTools( <DockMonitor changePositionKey='ctrl-q' toggleVisibilityKey='ctrl-h' > <LogMonitor /> </...
react/AndroidIcon/AndroidIcon.js
seekinternational/seek-asia-style-guide
import svgMarkup from './AndroidIcon.svg'; import React from 'react'; import Icon from '../private/Icon/Icon'; export default function AndroidIcon({ ...props }) { return <Icon markup={svgMarkup} {...props} />; } AndroidIcon.displayName = 'AndroidIcon';
src/svg-icons/image/filter-center-focus.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterCenterFocus = (props) => ( <SvgIcon {...props}> <path d="M5 15H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zM12 9...
app/components/ListItem/index.js
ddobby94/szakdoge_admin
import React from 'react'; import Item from './Item'; import Wrapper from './Wrapper'; function ListItem(props) { return ( <Wrapper> <Item> {props.item} </Item> </Wrapper> ); } ListItem.propTypes = { item: React.PropTypes.any, }; export default ListItem;
src/Row.js
roderickwang/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import CustomPropTypes from './utils/CustomPropTypes'; const Row = React.createClass({ propTypes: { /** * You can use a custom element for this component */ componentClass: CustomPropTypes.elementType }, getDefaultProps() { re...
app/components/Reusables/RefreshableListView.js
ethan605/react-native-zero
/** * @providesModule ZeroProj.Components.Reusables.RefreshableListView */ import React from 'react'; import { ListView, RefreshControl } from 'react-native'; import _ from 'lodash'; export default class RefreshableListView extends React.PureComponent { static propTypes = { onError: React.PropTypes.func, ...
app/assets/javascripts/libNmrSim/SampleDetailsTabName.js
ComPlat/nmr_sim
import React from 'react'; export default <div style={{ maxHeight: 25 }}>NMR</div>;
app/components/Sidebar/Sidebar.js
RichardLilja/BMC
// @flow import React, { Component } from 'react'; import styles from './Sidebar.scss'; export default class Sidebar extends Component { render() { return ( <section className={styles.container}> <header className={styles.header}> <h1 className={styles.headerHeading1}>Header</h1> ...
src/App.js
kosmologist/andromeda-web
import React from 'react'; import 'react-circular-progressbar/dist/styles.css' import Landing from "./components/Landing"; import {initFirebase} from "./firebase/fire"; import {store} from './store/DataStore' import Spinner from "./components/Spinner"; import Dashboard from "./components/Dashboard"; export default cla...
src/scenes/SettingsConfig/SettingsConfigContainer.js
jmlweb/paskman
import React, { Component } from 'react'; import PT from 'prop-types'; import { connect } from 'react-redux'; import { settingsFetchAction, settingsSaveAction, settingsChangeAction, } from '../../data/settings/duck'; import Loading from '../../components/Loading/Loading'; import SettingsConfig from './SettingsCon...
actor-apps/app-web/src/app/components/sidebar/ContactsSectionItem.react.js
xiaotaijun/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import DialogActionCreators from 'actions/DialogActionCreators'; import AvatarItem from 'components/common/AvatarItem.react'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class ...
packages/bonde-admin/src/components/dev-tools/index.js
ourcities/rebu-client
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 and pr...
es/mobile/components/RoomHistory/HistoryList.js
welovekpop/uwave-web-welovekpop.club
import _extends from "@babel/runtime/helpers/builtin/extends"; import React from 'react'; import ReactDOM from 'react-dom'; import withProps from 'recompose/withProps'; import List from "@material-ui/core/es/List"; import Base from '../../../components/MediaList/BaseMediaList'; import HistoryRow from './Row'; var Histo...
src/components/ListItem.js
dazhifu/react-touch-ui
import React from 'react'; import assign from 'object-assign' import classnames from 'classnames'; import { View } from "./View.js" import Utils from "./common/Utils.js" import './ListItem.scss' import ArrowRight from 'react-icons/lib/io/ios-arrow-forward'; export class ListItem extends React.Component { ...
test/integration/css-fixtures/bad-custom-configuration-arr-2/pages/_app.js
zeit/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
lib/cli/test/fixtures/react_scripts_v2/src/index.js
storybooks/react-storybook
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render(<App />, document.getElementById('root')); // If you want your app to work offline and load faster, you can change // unregister() to register()...
app/javascript/mastodon/features/ui/components/column_link.js
Craftodon/Craftodon
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; const ColumnLink = ({ icon, text, to, href, method }) => { if (href) { return ( <a href={href} className='column-link' data-method={method}> <i className={`fa fa-fw fa-${icon} column-link__icon`}...
src/svg-icons/action/receipt.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionReceipt = (props) => ( <SvgIcon {...props}> <path d="M18 17H6v-2h12v2zm0-4H6v-2h12v2zm0-4H6V7h12v2zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-...
react-router-demo/src/index.js
iosWorker/iosWorker.github.io
import React from 'react'; import ReactDOM from 'react-dom'; import Root from './Root'; ReactDOM.render( <Root />, document.getElementById('root') );
src/components/settings/password-form.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2016 Loki Education (Social Enterprise) This program 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, either version 3 of the License, o...
public/javascripts/pages/main.js
kenticny/CasualData
import React from 'react'; import { Menu, Breadcrumb, Icon } from 'antd'; const ReactRouter = require('react-router'); module.exports = React.createClass({ getInitialState: function() { return { current: 'dashboard' } }, handleClick: function(e) { this.setState({ ...
imports/ui/components/UploadPdfCopy/UploadPdfCopy.js
jamiebones/Journal_Publication
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { Table, Alert, Button , Row , Col } from 'react-bootstrap'; import { Bert } from 'meteor/themeteorchef:bert'; import { Capitalize } from '../../../modules/utilities'; import { SortReturnRecentOne, StripHtml ...
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store/source/src/app/components/Apis/Details/LifeCycle/TransitionStateButton.js
ChamNDeSilva/carbon-apimgt
import React from 'react' import {Radio} from 'antd' const Button = Radio.Button; const TransitionStateButton = (props) => { return ( <Button value={props.state.targetState}>{props.state.event}</Button> ); }; export default TransitionStateButton
packages/website/src/components/TypeDoc/ApiClass.js
mucsi96/w3c-webdriver
import React from 'react'; import ApiFunction from './ApiFunction'; import Heading from '../content/Heading'; import ApiDescription from './ApiDescription'; const ApiClass = ({ name, children, minLevel, comment }) => { const items = children.filter(item => item.kindString === 'Method' && item.flags.isPublic); ite...
source/components/_STATELESS.react.js
argaskins/ThinkReact-Jenkins
import React from 'react'; const <NAME> = (parameters) => ( <div>{parameters}</div> ); export default <NAME>;
examples/huge-apps/routes/Grades/components/Grades.js
moudy/react-router
import React from 'react'; class Grades extends React.Component { render () { return ( <div> <h2>Grades</h2> </div> ); } } export default Grades;
components/input/Input.js
KerenChandran/react-toolbox
import React from 'react'; import ClassNames from 'classnames'; import FontIcon from '../font_icon'; import style from './style'; class Input extends React.Component { static propTypes = { children: React.PropTypes.any, className: React.PropTypes.string, disabled: React.PropTypes.bool, error: React.P...
src/frame/rePCUI/tabs/base-tabs/InkTabBarMixin.js
gejialun8888/shop-react
import { setTransform, isTransformSupported } from './utils'; import React from 'react'; import classnames from 'classnames'; export function getScroll(w, top) { let ret = w[`page${top ? 'Y' : 'X'}Offset`]; const method = `scroll${top ? 'Top' : 'Left'}`; if (typeof ret !== 'number') { const d = w.document; ...
src/pages/tags.js
akilbekov/blog
import React from 'react'; import { Link } from 'gatsby'; import { Helmet } from 'react-helmet'; import kebabCase from 'lodash/kebabCase'; import Sidebar from '../components/Sidebar'; import { graphql } from 'gatsby'; class TagsRoute extends React.Component { render() { const { title } = this.props.data.site.sit...
docs/src/app/components/pages/discover-more/Community.js
ngbrown/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import communityText from './community.md'; const Community = () => ( <div> <Title render={(previousTitle) => `Community - ${previousTitle}`} /> <MarkdownElement text={communityText} />...
app/javascript/mastodon/features/account_timeline/components/header.js
Craftodon/Craftodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import InnerHeader from '../../account/components/header'; import ActionBar from '../../account/components/action_bar'; import MissingIndicator from '../../../components/missing_indicator'; import ...
src/icons/ColorLensIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class ColorLensIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M24 6C14.06 6 6 14.06 6 24s8.06 18 18 18c1.66 0 3-1.34 3-3 0-.78-.29-1.48-.78-2.01-.47-.53-.75-1.22-.75-...
src/js/components/icons/base/Checkmark.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/components/Tickets/AddProject.js
nadavspi/UnwiseConnect
import React, { Component } from 'react'; export default class AddProject extends Component { state = { projectId: '', }; submit = (e) => { e.preventDefault(); this.props.onAdd(this.state.projectId); } render() { return ( <form onSubmit={this.submit}> <div><label htmlFor="proj...
client/src/containers/NotFoundPage/index.js
steThera/react-mobx-koa
import React from 'react'; import ContentWrapper from 'components/ContentWrapper'; const NotFoundPage = () => ( <ContentWrapper> <section className="content"> Not found page </section> </ContentWrapper> ); export default NotFoundPage;
src/containers/Asians/TabControls/_components/TeamChip/index.js
westoncolemanl/tabbr-web
import React from 'react' import { connect } from 'react-redux' import Avatar from 'material-ui/Avatar' import Chip from 'material-ui/Chip' export default connect(mapStateToProps)(({ team, teamStandings, teamsById, institutionsById, round }) => { return ( <Chip avatar={ <Avatar> ...
app/features/landing/Form.js
Kaniwani/KW-Frontend
import React from 'react'; import PropTypes from 'prop-types'; import { compose, lifecycle } from 'recompose'; import { reduxForm, Field } from 'redux-form'; import { WK_API_KEY_URL } from 'common/constants'; import { requiredValid, emailValid, minLengthValid, confirmPasswordValid, } from 'common/validations';...
src/containers/Review/Content.js
pmg1989/lms_mobile
import React from 'react' import PropTypes from 'prop-types' import Immutable from 'immutable' import moment from 'moment' import styles from './Content.less' const Content = ({ info, comment, curLesson }) => { const commentText = comment.getIn(['suggestion', 'student']) const gradeTime = info.get('gradetime') r...
src/app/components/ProductDetail.js
akzuki/BoardgameAPI
import React from 'react'; import { Carousel } from './Carousel'; import { Link } from 'react-router'; import {Router, Route, browserHistory, IndexRoute} from 'react-router'; export class ProductDetail extends React.Component { constructor() { super(); this.state = { item: {}, store: {} }; } ...
index.js
asarode/react-pokemon
'use strict'; import React from 'react'; import cx from 'classname'; import axios from 'axios'; import Promise from 'bluebird'; import capitalize from 'capitalize'; import empty from 'is-empty'; class Pokemon extends React.Component { constructor(props) { super(props); this.state = { pokemon: {}, ...
packages/television/src/components/Tags/Documents.js
accosine/poltergeist
import React from 'react'; import { styled } from 'styletron-react'; import Link from '../Link'; import { withTheme } from '../../util/ThemeContext'; import formatDate from '../../util/formatDate'; const Article = withTheme( styled('div', ({ $theme, $collection }) => ({ display: 'flex', flexDirection: 'colu...
src/svg-icons/navigation/chevron-right.js
lawrence-yu/material-ui
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...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
CAIOFCP/telocoach
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
react-ui/src/components/Reviewer/Dashboard.js
civicparty/legitometer
import React from 'react'; import axios from 'axios'; import ReviewList from './ReviewList'; class StudentDashboard extends React.Component { constructor() { super(); this.state = { missions: [], } } componentWillMount() { axios.get('/api/missions') .then((res) => { this.set...
demos/demo/src/components/Client/Header.js
FWeinb/cerebral
import React from 'react' export default function ClientHeader ({item}) { return ( <div className='media'> <div className='media-left'> <figure className='image is-32x32'> {typeof item.$imageProgress !== 'undefined' ? <progress className='progress is-small' value={it...
src/components/fleet/locations/LocationContainer.js
fusionalliance/autorenter-react
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as LocationActions from '../../../actions/LocationGenerators'; import LocationList from './LocationList'; import AddNewButton from '../../common/AddNe...
example/src/screens/transitions/sharedElementTransitions/Masonry/Item.js
coteries/react-native-navigation
import React from 'react'; import {StyleSheet, View, Text, Image} from 'react-native'; import {SharedElementTransition} from 'react-native-navigation'; const SHOW_DURATION = 240; const HIDE_DURATION = 200; class Item extends React.Component { static navigatorStyle = { navBarHidden: true, drawUnderNavBar: t...
src/components/common/svg-icons/hardware/phonelink.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwarePhonelink = (props) => ( <SvgIcon {...props}> <path d="M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z"/> ...
docs/src/js/prettify.js
wuguanghai45/react-ui
'use strict' import React from 'react' export default function prettify (Component) { class Prettify extends React.Component { static displayName = 'Prettify' static propTypes = { children: React.PropTypes.array } componentDidMount () { window.prettyPrint(null, React.findDOMNode(this.r...
server/sonar-web/src/main/js/components/mixins/tooltips-mixin.js
joansmith/sonarqube
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
src/post/LikesList.js
Sekhmet/busy
import React, { Component } from 'react'; import { Link } from 'react-router'; import numeral from 'numeral'; import Avatar from '../widgets/Avatar'; import { ProfileTooltipOrigin } from '../widgets/tooltip/ProfileTooltip'; import { getUpvotes, getDownvotes, } from '../helpers/voteHelpers'; import './LikesList.scss...
src/Grid.js
victorzhang17/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import CustomPropTypes from './utils/CustomPropTypes'; const Grid = React.createClass({ propTypes: { /** * Turn any fixed-width grid layout into a full-width layout by this property. * * Adds `container-fluid` class. */ fluid...
packages/cf-component-input/example/basic/component.js
mdno/mdno.github.io
import React from 'react'; import { Input } from 'cf-component-input'; class InputComponent extends React.Component { constructor(props) { super(props); this.state = { inputValue: 'Hello World' }; this.handleChange = this.handleChange.bind(this); } handleChange(e) { const value = e.tar...