path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/Reset/Reset.js
Zoomdata/nhtsa-dashboard
import React, { Component } from 'react'; import Circle from '../Circle/Circle'; import Label from '../Label/Label'; export default class Reset extends Component { render() { return ( <button className="reset"> <Circle /> <Label /> </button> ); } }
src/common/Socket/Schedule.js
Syncano/syncano-dashboard
import React from 'react'; import { colors as Colors } from 'material-ui/styles/'; import SocketWrapper from './SocketWrapper'; export default React.createClass({ displayName: 'ScheduleSocket', getDefaultProps() { return { tooltip: 'Create a Schedule Socket' }; }, getStyles() { return { ...
src/App.js
wescleymatos/iRango
import React, { Component } from 'react'; import { BrowserRouter as Router, Route } from 'react-router-dom'; import Home from './components/Home'; import Restaurantes from './components/Restaurantes'; import Sobre from './components/Sobre'; import Login from './components/Login'; import NovoRestaurante from './compone...
client/src/app/components/forms/inputs/MaskedInput.js
zraees/sms-project
import React from 'react' import 'script-loader!jquery.maskedinput/src/jquery.maskedinput.js' export default class MaskedInput extends React.Component { componentDidMount() { var options = {}; if (this.props.maskPlaceholder) options.placeholder = this.props.maskPlaceholder; $(this.refs.input).mask(th...
actor-apps/app-web/src/app/components/common/MentionDropdown.react.js
WangCrystal/actor-platform
import React from 'react'; import classnames from 'classnames'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import { KeyCodes } from 'constants/ActorAppConstants'; import AvatarItem from 'components/common/AvatarItem.react'; const {addons: { PureRenderMixin }} = addons; const DROPDOWN_I...
src/pages/system/index.js
pprimm/ds-contest-material
import React from 'react' import {Divider} from 'material-ui' import AppWrapper from '../../components/AppWrapper' import SystemTitleBar from '../../components/SystemTitleBar' import StatusList from '../../components/StatusList' import StatusPanel from '../../components/StatusPanel' import SystemButtonPanel from '../.....
docs/app/Examples/collections/Table/States/TableExampleActive.js
clemensw/stardust
import React from 'react' import { Table } from 'semantic-ui-react' const TableExampleActive = () => { return ( <Table celled> <Table.Header> <Table.Row> <Table.HeaderCell>Name</Table.HeaderCell> <Table.HeaderCell>Status</Table.HeaderCell> <Table.HeaderCell>Notes</Tabl...
geonode/contrib/monitoring/frontend/src/components/organisms/error-list/index.js
kartoza/geonode
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import HoverPaper from '../../atoms/hover-paper'; import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn, } from 'material-ui/Table'; import styles from './styles'; import actio...
src/components/card.js
nfcortega89/nikkotoonaughty
import React from 'react'; export default function Card(props) { return ( <div className="card pic-card"> <div className="image"> <img src={props.image.images.standard_resolution.url} /> </div> <div className="card-details"> </div> </div> ) }
src/containers/organizations/components/IntegrationConfigGenerator.js
dataloom/gallery
import React from 'react'; import styled from 'styled-components'; import StyledInput from '../../../components/controls/StyledInput'; import StyledSelect from '../../../components/controls/StyledSelect'; import InfoButton from '../../../components/buttons/InfoButton'; import { DATA_SQL_TYPES, exportTemplate } from '...
src/index.js
easyCZ/react-2048
import React from 'react'; import { render } from 'react-dom'; import { App } from './App'; render(<App />, document.getElementById('root'));
packages/icons/src/md/image/CropPortrait.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdCropPortrait(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M34 6c2.21 0 4 1.79 4 4v28c0 2.21-1.79 4-4 4H14c-2.21 0-4-1.79-4-4V10c0-2.21 1.79-4 4-4h20zm0 32V10H14v28h20z" /> </IconBase> ); } export...
src/components/App.js
Tori1810/Task3
/** * 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-...
src/js/components/EndButton.js
BavoG/onesupportdocu
import React from 'react'; import Up from 'grommet/components/icons/base/Up'; import Button from 'grommet/components/Button'; import Box from 'grommet/components/Box'; const CLASS_ROOT = 'infographic__button'; export default function EndButton (props) { return ( <Button plain={true} className={`${CLASS_ROOT} ${...
packages/lore-hook-forms-material-ui/src/blueprints/update/Wizard/index.js
lore/lore-forms
import React from 'react'; import createReactClass from 'create-react-class'; import Wizard from './Wizard'; export default createReactClass({ render: function() { const { modelName } = this.props; const { model, schema, fieldMap, actionMap, steps, data, validators, ...
app/components/Common/PageLoader/index.js
VineRelay/VineRelayStore
import React from 'react'; import styled from 'styled-components'; const Wrapper = styled.div` `; const PageLoader = () => ( <Wrapper> Loading ... </Wrapper> ); PageLoader.propTypes = { }; export default PageLoader;
src/containers/Header/index.js
Guseff/services-on-map-demo
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import LoginMenu from '../../components/LoginMenu'; import { showLoginMenu, closeLoginMenu, } from '../../actions...
src/components/slider/slide/templates/video-overlay.js
adrienhobbs/redux-glow
import React from 'react'; import styles from './video-slide.css'; import {primaryColor} from 'constants/colors'; const VideoOverlay = () => { return ( <div id='video-home-overlay'> <div className={styles.video_intro}></div> <div className={styles.copy_wrap}> <div className={styles.featured_h...
Realization/frontend/czechidm-core/src/components/advanced/Icon/ContractGuaranteeRemoveIcon.js
bcvsolutions/CzechIdMng
import React from 'react'; import { faUserTie, faMinusSquare } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; // import AbstractIcon from './AbstractIcon'; import Icon from '../../basic/Icon/Icon'; /** * Remove assigned identity role. * * @author Ondrej H...
src/svg-icons/image/flash-off.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFlashOff = (props) => ( <SvgIcon {...props}> <path d="M3.27 3L2 4.27l5 5V13h3v9l3.58-6.14L17.73 20 19 18.73 3.27 3zM17 10h-4l4-8H7v2.18l8.46 8.46L17 10z"/> </SvgIcon> ); ImageFlashOff = pure(ImageFlashOf...
examples/real-world/routes.js
gajus/redux
import React from 'react' import { Route } from 'react-router' import App from './containers/App' import UserPage from './containers/UserPage' import RepoPage from './containers/RepoPage' export default ( <Route path="/" component={App}> <Route path="/:login/:name" component={RepoPage} /> <Route p...
information/blendle-frontend-react-source/app/modules/timeline/components/UpgradeBulletin/Message.js
BramscoChill/BlendleParser
import React from 'react'; import { string, number } from 'prop-types'; function Message({ name, daysLeft }) { // Last day, with name if (daysLeft === 0 && name) { return ( <div className={CSS.message}> <strong>{name}</strong>, let op! Dit is je <strong>laatste dag</strong> gratis Blendle ...
app/Resources/js/containers/home.js
ryota-murakami/daily-tweet
import React from 'react' import { connect } from 'react-redux' import ImportModal from '../components/import/importModal' import Timeline from '../components/timeline' import Header from '../components/header' import '../../sass/common/common.scss' import '../../sass/page/home.scss' class App extends React.Component...
packages/frint-react/src/components/getMountableComponent.js
Travix-International/frint
/* eslint-disable import/no-extraneous-dependencies */ import React from 'react'; import Provider from './Provider'; export default function getMountableComponent(app) { const Component = app.get('component'); const providerProps = { app }; const ComponentInProvider = (componentProps) => { return ( <P...
src/components/EmployeeList.js
amir5000/react-native-manager-app
import _ from 'lodash'; import React, { Component } from 'react'; import { ListView } from 'react-native'; import { connect } from 'react-redux'; import { employeeFetch } from '../actions'; import ListItem from './ListItem'; class EmployeeList extends Component { componentWillMount() { this.props.employeeF...
docs/src/app/components/pages/components/TimePicker/ExampleSimple.js
matthewoates/material-ui
import React from 'react'; import TimePicker from 'material-ui/TimePicker'; const TimePickerExampleSimple = () => ( <div> <TimePicker hintText="12hr Format" /> <TimePicker format="24hr" hintText="24hr Format" /> <TimePicker disabled={true} format="24hr" hintTex...
client/fragments/quizzes/debris/index.js
yeoh-joer/synapse
/** * External dependencies */ import React from 'react' import PropTypes from 'prop-types' import page from 'page' /** * Internal dependencies */ import './style.scss' import Button from 'client/components/button' import Card from 'client/components/card' export default class Debris extends React.Component { s...
src/main/js/builder/assets/containers/MediBotInput.js
Bernardo-MG/dreadball-toolkit-webpage
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { setMediBot } from 'builder/assets/actions'; import ObservableNumberInput from 'components/ObservableNumberInput'; import { selectMediBots } from 'builder/assets...
spec/javascripts/jsx/blueprint_courses/components/BlueprintModalSpec.js
djbender/canvas-lms
/* * Copyright (C) 2017 - 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...
packages/react/components/block.js
iamxiaoma/Framework7
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js'; import __reactComponentSlots from '../runtime-helpers/react-component-slots.js'; import __reactComponentSetProps from '.....
web/src/components/Button/Button.js
gianksp/warbots
import React from 'react' import PropTypes from 'prop-types' import 'bulma/css/bulma.css' export const Button = (props) => { var throwAlert = () => alert("Copy and paste is a design error") return ( <div> <div className="columns"> <div className="column is-half"> ...
src/views/discover/Feedback.js
airloy/objective
/** * Created by Layman(http://github.com/anysome) on 16/3/4. */ import React from 'react'; import {StyleSheet, ScrollView, View, Text, TouchableOpacity, ListView, LayoutAnimation} from 'react-native'; import Button from 'react-native-button'; import moment from 'moment'; import {styles, colors, airloy, api, L, toas...
es6/Radio/Radio.js
yurizhang/ishow
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
modules/components/Students/components/Student/index.js
hmltnbrn/classroom-library
import React from 'react'; import {Link} from 'react-router'; import DocumentTitle from 'react-document-title'; import Paper from 'material-ui/Paper'; import {Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table'; import Divider from 'material-ui/Divider'; import moment f...
actor-apps/app-web/src/app/components/common/State.react.js
fengshao0907/actor-platform
import React from 'react'; import { MessageContentTypes } from 'constants/ActorAppConstants'; class State extends React.Component { static propTypes = { message: React.PropTypes.object.isRequired }; render() { const { message } = this.props; if (message.content.content === MessageContentTypes.SERVI...
actor-apps/app-web/src/app/components/dialog/messages/Document.react.js
dut3062796s/actor-platform
import React from 'react'; import classnames from 'classnames'; class Document extends React.Component { static propTypes = { content: React.PropTypes.object.isRequired, className: React.PropTypes.string }; constructor(props) { super(props); } render() { const { content, className } = this....
app/components/about_page.js
laynemcnish/personal-site
import React from 'react'; import PureComponent from 'react-pure-render/component'; import ShapeTween from './shape_tween'; export default class AboutPage extends PureComponent { render () { return ( <div className="row"> <div className="col-md-4 shape-container"> <div id="shape-tween">...
node_modules/react-native/Libraries/Text/Text.js
Ten-Wang/hackfoldr-android
/** * 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...
src/containers/toputilizers/containers/TopUtilizersSelectionRowContainer.js
kryptnostic/gallery
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import Immutable from 'immutable'; import * as actionFactory from '../TopUtilizersActionFactory'; import TopUtilizersSelectionRow from '../components/TopUtilizersSelectionRo...
app/javascript/mastodon/features/ui/components/drawer_loading.js
imas/mastodon
import React from 'react'; const DrawerLoading = () => ( <div className='drawer'> <div className='drawer__pager'> <div className='drawer__inner' /> </div> </div> ); export default DrawerLoading;
client/src/components/HistoricElementView/HistoricElementView.js
dnadesign/silverstripe-elemental
import React from 'react'; import i18n from 'i18n'; import classnames from 'classnames'; const ElementalAreaHistoryFactory = (FieldGroup) => class HistoricElementView extends FieldGroup { getClassName() { const classlist = [super.getClassName()]; if (this.props.data.ElementID) { classlist.uns...
src/svg-icons/maps/local-play.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalPlay = (props) => ( <SvgIcon {...props}> <path d="M20 12c0-1.1.9-2 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2zm-4....
src/components/Hero/Hero.js
webpack/analyse-tool
import React from 'react'; import styles from './Hero.scss'; import classNames from 'classnames'; export default class Hero extends React.Component { static displayName = 'Hero'; static propTypes = { children: React.PropTypes.node, displayUnderNavbar: React.PropTypes.bool, small: React.PropTypes.bool, ...
src/svg-icons/maps/local-gas-station.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalGasStation = (props) => ( <SvgIcon {...props}> <path d="M19.77 7.23l.01-.01-3.72-3.72L15 4.56l2.11 2.11c-.94.36-1.61 1.26-1.61 2.33 0 1.38 1.12 2.5 2.5 2.5.36 0 .69-.08 1-.21v7.21c0 .55-.45 1-1 1s-1-.4...
packages/react/components/messagebar-attachment.js
AdrianV/Framework7
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js'; import __reactComponentSlots from '../runtime-helpers/react-component-slots.js'; import __reactComponentSetProps from '.....
techCurriculum/ui/solutions/6.1/src/components/Title.js
jennybkim/engineeringessentials
/** * Copyright 2017 Goldman Sachs. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
folktale-react/src/index.js
Muzietto/react-playground
import React from 'react'; import ReactDOM from 'react-dom'; import Maybe from 'folktale/maybe'; import compose from 'folktale/core/lambda/compose'; ReactDOM.render(<App />, document.getElementById('root')); function App() { const inc = x => x + 1; const double = x => x * 2; const theMaybe = Maybe.Just(1).map...
components/Tools/AvailableHours.js
juhojo/WLO
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { Card, CardActions, CardHeader, CardText } from 'material-ui/Card'; import Slider from 'material-ui/Slider'; export default class AvailableHours extends Component { constructor(props) { super(props); this.state = { e...
techCurriculum/ui/solutions/3.3/src/components/Message.js
jennybkim/engineeringessentials
/** * Copyright 2017 Goldman Sachs. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
src/components/Columns.js
kdesterik/koendirkvanesterik.com
import React from 'react'; export default class Columns extends React.Component { render() { let columns = ''; switch( this.props.width ){ case 'full': columns = ( <div className="col-lg-12 col-md-12 col-sm-12 col-xs-12" dangerouslySetInnerHTM...
src/Main/ReportHistory.js
hasseboulen/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { getReportHistory } from 'selectors/reportHistory'; import { makePlainUrl } from 'Main/makeAnalyzerUrl'; import { title as AboutArticleTitle } from 'Main/News/Articles/...
client/index.js
forkful/forkful
import React from 'react'; import ReactDOM from 'react-dom'; import { createStore, applyMiddleware } from 'redux'; import { Provider } from 'react-redux'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import { syncHistoryWithStore, routerMiddleware } from 'react-router-redux'; import App fr...
docs/app/Examples/elements/Loader/Variations/LoaderExampleInline.js
shengnian/shengnian-ui-react
import React from 'react' import { Loader } from 'shengnian-ui-react' const LoaderExampleInline = () => ( <Loader active inline /> ) export default LoaderExampleInline
client/src/components/streamsList/listOfStreams.js
AuggieH/GigRTC
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { getActivePerformances } from '../../actions'; import { Link } from 'react-router'; import List from 'material-ui/lib/lists/list'; import ListItem from 'material-ui/lib/lists/list-item'; import Divider from 'material-ui/lib/divide...
src/components/TouchableWithoutFeedback.js
lelandrichardson/react-native-mock
/** * https://github.com/facebook/react-native/blob/master/Libraries/Components/Touchable/TouchableWithoutFeedback.js */ import React from 'react'; import EdgeInsetsPropType from '../propTypes/EdgeInsetsPropType'; import View from './View'; const TouchableWithoutFeedback = React.createClass({ propTypes: { acce...
app/components/Home.js
pyreta/songrider
// @flow import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './Home.css'; export default class Home extends Component { render() { return ( <div> <div className={styles.container}> <h2>Homerr</h2> <Link to="/counter">to Counter</Li...
src/index.js
RedZulu/ReduxArt
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import App from './components/app'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware()(createStore); ReactDOM.render( <Provi...
admin/src/components/AltText.js
ligson/keystone
import React from 'react'; import blacklist from 'blacklist'; import vkey from 'vkey'; var AltText = React.createClass({ getDefaultProps () { return { component: 'span', modifier: '<alt>', normal: '', modified: '' }; }, getInitialState () { return { modified: false }; }, componentDidMount (...
src/timelines/components/card/TootAge.js
algernon/mad-tooter
// @flow /* The Mad Tooter -- A Mastodon client * Copyright (C) 2017 Gergely Nagy * * 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, or (at your o...
src/components/MenuBar.js
Journey316/resume
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; class MenuBar extends React.Component { constructor(props){ super(props); this.state = { selected : props.selected || 0 }; this.callHistory = this.callHistory.bind(this); } renderOverlay() { console.log(...
server/sonar-web/src/main/js/apps/permission-templates/permission-template.js
vamsirajendra/sonarqube
import _ from 'underscore'; import Backbone from 'backbone'; import React from 'react'; import Defaults from './permission-template-defaults'; import SetDefaults from './permission-template-set-defaults'; import UsersView from './users-view'; import GroupsView from './groups-view'; import UpdateView from './update-view...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/DefaultPropsInferred.js
MichaelDeBoey/flow
// @flow import React from 'react'; class MyComponent extends React.Component { static defaultProps = {}; props: Props; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component { static defaultProps = {}; ...
jenkins-design-language/src/js/components/material-ui/svg-icons/device/screen-rotation.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const DeviceScreenRotation = (props) => ( <SvgIcon {...props}> <path d="M16.48 2.52c3.27 1.55 5.61 4.72 5.97 8.48h1.5C23.44 4.84 18.29 0 12 0l-.66.03 3.81 3.81 1.33-1.32zm-6.25-.77c-.59-.59-1.54-.59-2.12 0L1.75 8.11c-.59.59-.59 1.54 0 2.12l12.02 12....
src/index.js
JimFung/interval
import React from 'react' import ReactDOM from 'react-dom' import { createStore, applyMiddleware } from 'redux' import { Provider } from 'react-redux' import { Router, Route, browserHistory, IndexRoute } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import promiseMiddleware from 'redux-...
src/svg-icons/action/shop.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionShop = (props) => ( <SvgIcon {...props}> <path d="M16 6V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H2v13c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6h-6zm-6-2h4v2h-4V4zM9 18V9l7.5 4L9 18z"/> </SvgIcon> ); Action...
system/src/layouts/containers/HeaderDropdownContainer/index.js
axmatthew/react
/* eslint react/prefer-stateless-function: 0 */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import { List, Map } from 'immutable'; import enquiryModule from '../../../modules/enquiries'; import HeaderDropdown from '../../components/HeaderDropdown'; class HeaderDropdownContainer ext...
examples/real-world/containers/Root.js
xiamidaxia/redux
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import { Router, Route } from 'react-router'; import configureStore from '../store/configureStore'; import App from './App'; import UserPage from './UserPage'; import RepoPage from './RepoPage'; const store = configureStore(); export de...
src/components/layout/Aside.js
dhruv-kumar-jha/productivity-frontend
'use strict'; import React from 'react'; const AsideLayout = (props) => { return ( <aside className="default"> { props.children } </aside> ); } export default AsideLayout;
src/components/ShowHeader.js
kiyoshitaro/Instagram-
import React from 'react'; class ShowHeader extends React.Component { constructor(props) { super(props); this.state = { value: 1 }; } render() { return ( <div> {/*<div className="section section-cards section-gold">*/} {/*<header className="codrops-header">*/} ...
lib/codemod/src/transforms/__testfixtures__/storiesof-to-csf/export-destructuring.input.js
kadirahq/react-storybook
/* eslint-disable import/no-extraneous-dependencies */ import React from 'react'; import { storiesOf } from '@storybook/react'; import ComponentRow from './ComponentRow'; import * as SpecRowStories from './SpecRow.stories'; export const { actions } = SpecRowStories; storiesOf('ComponentRow', module).add('pending', ()...
nlyyAPP/component/图片管理模块/模块上传/MLMoKuaiNewUpdateList.js
a497500306/nlyy_APP
/** * Created by Rolle on 2017/5/25. */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, ListView, TouchableOpacity, Platform } from 'react-native'; var MLNavigatorBar = require('../../MLNavigatorBar/MLNavigatorBar'); var MLTableCell = require('../../...
examples/src/components/CustomOption.js
pdrko/react-select
import React from 'react'; import Gravatar from 'react-gravatar'; var Option = React.createClass({ propTypes: { addLabelText: React.PropTypes.string, className: React.PropTypes.string, mouseDown: React.PropTypes.func, mouseEnter: React.PropTypes.func, mouseLeave: React.PropTypes.func, option: React.PropTy...
fields/types/location/LocationColumn.js
riyadhalnur/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/client/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTableValue'; const SUB_FIELDS = ['street1', 'suburb', 'state', 'postcode', 'country']; var LocationColumn = React.createClass({ displayName: 'Loc...
public/components/Login.js
supportivesantas/project-ipsum
import React from 'react'; import actions from '../actions/ipsumActions.js'; import { connect } from 'react-redux'; import maps from '../mappingFunctions.js'; import NavigationBarLogin from './NavigationBarLogin.js'; import { Grid, Panel, Col, Row, Jumbotron } from 'react-bootstrap'; import { LinkContainer } from 'reac...
src/js/components/success/Success.component.js
katie-day/we_do
import React from 'react'; import Header from '../common/header/Header.component'; import { getWindowHeight } from '../../utils'; const Success = () => { const windowHeight = getWindowHeight(); const guest = {}; const style = { minHeight: windowHeight - 50, }; return ( <div> ...
app/javascript/mastodon/features/home_timeline/index.js
robotstart/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../ui/components/column'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ColumnSettingsCo...
App/containers/DayThreeScreen/MeScreen.js
carney520/30-days-of-react-native
// @flow import React from 'react' import {Text} from 'react-native' import TabbarIcon from './components/TabbarIcon' export default class MeScreen extends React.Component { static navigationOptions = { tabBar: { label: 'Me', icon: ({tintColor}) => <TabbarIcon name="user" color={tintColor} /> } ...
node_modules/react-bootstrap/es/Form.js
caughtclean/but-thats-wrong-blog
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 ...
example/js/main.js
shirou/goagen_js
import React from 'react'; import * as api from "./api_request.js"; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import {createStore, combineReducers} from 'redux'; import {reducer as reduxFormReducer} from 'redux-form'; import { Values } from 'redux-form-website-template'; const dest = docu...
src/app/components/Layout.js
Dynamit/healthcare-microsite
/** * Master layout * @description Layout wrapper. Used only in prerender. Client-side app renders on `document.body` */ import React from 'react'; class Layout extends React.Component { constructor(props) { super(props); // improved async Typekit loading https://goo.gl/t1jDL8 let kitId = 'omf4gip'; t...
src/components/ResourceGroup/index.js
DeveloperLaPoste/protagonist-react
import PropTypes from 'prop-types'; import React from 'react'; import { ResourceGroupTitle, Description, Resources } from '../'; export default function ResourceGroup({ resourceGroup }) { const resources = resourceGroup.resources ? ( <div className="ResourceGroup-content"> <Resources resources={resourceGro...
examples/todomvc/index.js
chrisege/redux
import React from 'react'; import App from './containers/App'; import 'todomvc-app-css/index.css'; React.render( <App />, document.getElementById('root') );
src/index.js
shonmacray/Showcase
import React from 'react'; import ReactDOM from 'react-dom'; import Mainlayout from './Showcase/index'; import registerServiceWorker from './registerServiceWorker'; import './index.css'; import './abc.css'; ReactDOM.render(<Mainlayout />, document.getElementById('root')); registerServiceWorker();
packages/es-components/src/components/controls/buttons/OutlineButton.js
jrios/es-components
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { useTheme } from '../../util/useTheme'; const StyledButton = styled.button` background-color: ${props => props.variant.bgColor}; border: 2px solid ${props => props.variant.borderColor}; border-radius: ...
_deprecated/src/components/Home.js
paigekehoe/paigekehoe.github.io
import React from 'react'; import Interactive from 'react-interactive'; import { Link } from 'react-router-dom'; import { Code } from '../styles/style'; import s from '../styles/home.style'; export default function Home() { const repoReadmeLink = text => ( <Interactive as="a" {...s.link} href="...
src/components/UsernameForm/TimeMessage/index.js
jenkoian/hacktoberfest-checker
import React from 'react'; import getTimeMessage from './getTimeMessage'; const TimeMessage = () => ( <p className="text-center light-mode:text-hack-dark-title pb-2"> {getTimeMessage()} </p> ); export default TimeMessage;
client/scripts/components/config/disclosure-requirements/disclosure-requirements/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. 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, or (at your ...
week02-rest-basics/client/src/App.js
kajayr/isit322-leosinani-2017
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; import 'whatwg-fetch'; class App extends Component { constructor() { super(); this.state = { file: 'Get Nine Result will be placed here.', foo: 'waiting for express server' }...
src/svg-icons/device/devices.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceDevices = (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"/> </Sv...
blueprints/view/files/__root__/views/__name__View/__name__View.js
availabs/kauffman-atlas
import React from 'react' type Props = { }; export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } export default <%= pascalEntityName %>
src/components/NotFoundPage/NotFoundPage.js
phoenixbox/vesty-fe
/* * React.js Starter Kit * Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ 'use strict'; //require('./NotFoundPage.less'); import React from 'react'; export defa...
client/node_modules/react-router/es6/IndexLink.js
Discounty/Discounty
'use strict'; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _classCallCheck(instance, Constructor...
app/javascript/mastodon/features/compose/components/compose_form.js
esetomo/mastodon
import React from 'react'; import CharacterCounter from './character_counter'; import Button from '../../../components/button'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ReplyIndicatorContainer from '../containers/reply_indicator_container'; import Autosugges...
components/Entry.js
nikhilsaraf/react-native-todo-app
/** * @flow */ import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import PropTypes from 'prop-types'; import { Icon } from 'react-native-elements'; import Box from './Box'; class Entry extends React.Component { render() { return ( <Box style={styles.box} ...
src/components/Login/Login.js
nambawan/g-old
/* eslint-disable react/destructuring-assignment */ import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { defineMessages, FormattedMessage } from 'react-intl'; import { login } from '../../actions/session'; import { getAccountUpdates } from '../../reducers'; impo...
src/components/Seo.js
rhostem/blog
import React from 'react' import PropTypes from 'prop-types' import Helmet from 'react-helmet' import { StaticQuery, graphql } from 'gatsby' import { concat, not, isEmpty, filter, includes, isNil, compose } from 'ramda' import { PROFILE_IMAGE } from 'src/constants' export const DEFAULT_KEYWORDS = ['웹 개발', 'Front-end',...
fields/components/DateInput.js
lastjune/keystone
import moment from 'moment'; import DayPicker from 'react-day-picker'; import React from 'react'; import Popout from '../../admin/src/components/Popout'; import { FormInput } from 'elemental'; function isSameDay(d1, d2) { d1.setHours(0, 0, 0, 0); d2.setHours(0, 0, 0, 0); return d1.getTime() === d2.getTime(); } m...
q-a11y-training-demo/src/components/person/achievements/Achievements.js
AlmeroSteyn/Q-A11y-Training
import React from 'react'; const Achievements = () => <div>Achievements page</div>; export default Achievements;
node_modules/react-error-overlay/lib/index.js
lujinming1/hejicaoye
/** * 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. */ import Rea...
src/ThreadView.js
drop-table-ryhmatyo/tekislauta-front
import React, { Component } from 'react'; import Helmet from 'react-helmet'; import Post, { OriginalPost } from './Post'; import SubmitForm from './SubmitForm'; import Endpoints from './Endpoints'; var self; class ThreadView extends Component { constructor(props) { super(props); this.state...