path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
cpat-client/src/components/target-types/person/forms/form-arrays/PersonPhoneNumbersFormArray.js
meddlin/CPAT
import React from 'react'; import { withFormik, Form, FieldArray } from 'formik'; import { Button, TextInput, Heading } from 'evergreen-ui'; import { validations } from '../../../../../data/form-helpers/formArray-property-validation'; import styled from 'styled-components'; export const PersonPhoneNumbersFormArray = (...
examples/with-mobx/pages/index.js
nahue/next.js
import React from 'react' import { Provider } from 'mobx-react' import { initStore } from '../store' import Page from '../components/Page' export default class Counter extends React.Component { static getInitialProps ({ req }) { const isServer = !!req const store = initStore(isServer) return { lastUpdate...
src/svg-icons/av/mic.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvMic = (props) => ( <SvgIcon {...props}> <path d="M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-...
actor-apps/app-web/src/app/components/activity/GroupProfileMembers.react.js
ONode/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import DialogActionCreators from 'actions/DialogActionCreators'; import LoginStore from 'stores/LoginStore'; import AvatarItem from 'components/common/AvatarItem.react'; const {addons: { Pure...
frontend/component/ResetPassword.js
wangmuming/node-forum
import React from 'react'; import jQuery from 'jquery'; import {Link} from 'react-router'; import {login, requestResetPassword, resetPassword} from '../lib/client'; import {redirectURL} from '../lib/utils'; export default class Login extends React.Component{ constructor(pros){ super(pros); this.state = {}; ...
node_modules/react-native/Libraries/Image/Image.ios.js
nauman-ahmad-qureshi/adsManagement
/** * 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...
app/javascript/mastodon/features/account_timeline/index.js
SerCom-KC/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { fetchAccount } from '../../actions/accounts'; import { expandAccountFeaturedTimeline, expandAccountTimeline } from '../../actions/timelines'; import ...
resource/js/components/PageHistory/Revision.js
crow-misia/crowi
import React from 'react'; import UserDate from '../Common/UserDate'; import Icon from '../Common/Icon'; import UserPicture from '../User/UserPicture'; export default class Revision extends React.Component { constructor(props) { super(props); this._onDiffOpenClicked = this._onDiffOpenClicked....
src/routes.js
karatechops/grommet-charts
import React from 'react'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import Ivenues from './Ivenues'; import Home from './components/Home'; const rootPath = '/'; const onRouteUpdate = function () { let docElements = document.querySelectorAll('.article'); if (docElements.length > 0 ...
src/routes/register/Register.js
utage2002/mm
/** * 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/sources/GalleryApp.js
liyangda/gallery-by-react
/** * Created by lyd on 2016/12/2. */ // require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; import ReactDOM from 'react-dom' import ImgFigure from './ImgFigure'; import ControllerUnit from './ControllerUnit'; // 获取图片相关的数据 let imageDatas = require('../data/imageDatas.json'...
src/components/head.js
mding5692/mding5692.github.io
import React from 'react'; import PropTypes from 'prop-types'; import { Helmet } from 'react-helmet'; import { useLocation } from '@reach/router'; import { useStaticQuery, graphql } from 'gatsby'; // https://www.gatsbyjs.com/docs/add-seo-component/ const Head = ({ title, description, image }) => { const { pathname ...
src/components/IndexProductsItem.js
BinaryCool/LaceShop
require('styles/index/IndexProductsItem.scss'); import React from 'react'; import Pic from './Pic.js'; import { URL_LOAD_CLIENTPIC, URL_LOAD_VNEDERPIC } from '../utils/URLs.js'; import { ajaxRequest } from '../actions' import { connect } from 'react-redux'; export default class IndexProductsItem extends React.Compone...
src/icons/HelpOutlineIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class HelpOutlineIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M11 18h2v-2h-2v2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.5...
app/components/ListContainer.js
peterjmag/reading-list
import React from 'react'; import Reflux from 'reflux'; import LinkActions from '../actions/LinkActions'; import LinkStore from '../stores/LinkStore'; import ListRow from './ListRow'; export default React.createClass({ mixins: [ Reflux.connect(LinkStore, 'list') ], componentDidMount: function () { ...
frontend/src/components/dialog/edit-repo-commit-labels.js
miurahr/seahub
import React from 'react'; import PropTypes from 'prop-types'; import { Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap'; import CreatableSelect from 'react-select/lib/Creatable'; import { gettext } from '../../utils/constants'; import { seafileAPI } from '../../utils/seafile-api'; import { Utils } from '...
tests/react_children/issue-4648.js
gabelevi/flow
// @flow import React from 'react'; import type {ChildrenArray, Element} from 'react'; class Child extends React.Component<{ value1: string }> {} class Parent extends React.Component<{ children: ChildrenArray<Element<typeof Child>> }> { render() { React.Children.map(this.props.children, (child) => { ...
fields/types/boolean/BooleanColumn.js
codevlabs/keystone
import React from 'react'; import classnames from 'classnames'; import Checkbox from '../../../admin/client/components/Checkbox'; import ItemsTableCell from '../../../admin/client/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTableValue'; var BooleanColumn = React.creat...
src/components/Me/ShareBlockElement/index.js
goodjoblife/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; import { Link } from 'react-router-dom'; import { Bookmark } from 'common/icons'; import { Heading, P } from 'common/base'; import Modal from 'common/Modal'; import styles from './ShareBlockElement.module.css'; const ShareBloc...
src/index.js
srackham/flux-backbone-todo
/* Simple Todo app written using Flux, Backbone and React. https://github.com/srackham/flux-backbone-todo */ 'use strict' import React from 'react' import Flux from 'flux' import Backbone from 'backbone' import getLocalStorageSync from 'backbone-localstorage-sync' /* Dispatcher actions. */ const ADD_TODO = 'ADD_...
src/components/Hello.js
scruffian/javascripture-webpack
import React from 'react'; export default function Hello() { return ( <div>Hello !!</div> ); }
client/extensions/woocommerce/woocommerce-services/components/text/index.js
Automattic/woocommerce-services
/** @format */ /* eslint-disable react/no-danger */ /** * External dependencies */ import React from 'react'; import PropTypes from 'prop-types'; /** * Internal dependencies */ import FormFieldset from 'components/forms/form-fieldset'; import FormLegend from 'components/forms/form-legend'; import sanitizeHTML fro...
_course_exercises/react_router/index.js
David-Castelli/react-testing
import React, { Component } from 'react'; import { BrowserRouter as Router, Link, Route} from 'react-router-dom' class App extends Component { /* state = { gists: null } */ componentDidMount() { fetch('https://api.github.com/gists') .then(res => res.json()) .then(g...
src/scenes/dashboard/itemDetail/index.js
PowerlineApp/powerline-rn
//This is the Item Detail Screen. It appears when a user opens an item from the newsfeed. //Currently it only supports posts and petitions, but it will need to be expnded to support polls, fundraisers, events, and discussions //GH19, GH20, GH21, GH22, GH23, GH24, GH25, GH26, GH27 //Should probably use https://api-dev.p...
src/svg-icons/image/image-aspect-ratio.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageImageAspectRatio = (props) => ( <SvgIcon {...props}> <path d="M16 10h-2v2h2v-2zm0 4h-2v2h2v-2zm-8-4H6v2h2v-2zm4 0h-2v2h2v-2zm8-6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H...
docs/src/app/components/pages/components/Badge/ExampleSimple.js
pradel/material-ui
import React from 'react'; import Badge from 'material-ui/Badge'; import IconButton from 'material-ui/IconButton'; import NotificationsIcon from 'material-ui/svg-icons/social/notifications'; const BadgeExampleSimple = () => ( <div> <Badge badgeContent={4} primary={true} > <NotificationsIcon...
src/utils/createContextWrapper.js
xuorig/react-bootstrap
import React from 'react'; /** * Creates new trigger class that injects context into overlay. */ export default function createContextWrapper(Trigger, propName) { return function(contextTypes) { class ContextWrapper extends React.Component { getChildContext() { return this.props.context; } ...
src/Chapter3BadEnd.js
stegben/novel-example
import React from 'react'; import cn from 'classnames'; import Paragraph from './components/Paragraph'; import FixedImage from './components/FixedImage'; import part1 from './content/1-1'; import part2 from './content/2-1'; import oceanStar from './images/ocean-star.jpg'; import libai from './images/libai.jpg'; co...
src/pagination/SizePerPageDropDown.js
AllenFang/react-bootstrap-table
import React, { Component } from 'react'; import PropTypes from 'prop-types'; const sizePerPageDefaultClass = 'react-bs-table-sizePerPage-dropdown'; class SizePerPageDropDown extends Component { render() { const { open, hidden, onClick, onBlur, options, className, varia...
app/javascript/mastodon/features/status/index.js
kirakiratter/mastodon
import Immutable from 'immutable'; import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { createSelector } from 'reselect'; import { fetchStatus } from '../../actions/...
frontend/src/Components/Form/DeviceInput.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Icon from 'Components/Icon'; import { icons } from 'Helpers/Props'; import tagShape from 'Helpers/Props/Shapes/tagShape'; import FormInputButton from './FormInputButton'; import TagInput from './TagInput'; import styles from './DeviceI...
src/parser/druid/feral/modules/azeritetraits/IronJaws.js
fyruna/WoWAnalyzer
import React from 'react'; import { formatNumber } from 'common/format'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { calculateAzeriteEffects } from 'common/stats'; import RESOURCE_TYPES from 'game/RESOURCE_TYPES'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyze...
client/src/components/dashboard/profile/utils/trash-look-four.js
mikelearning91/seeme-starter
import React, { Component } from 'react'; import Modal from 'react-modal'; import MdDelete from 'react-icons/lib/md/delete'; const cookie = require('react-cookie') const axios = require('axios'); class TrashLookFour extends React.Component { constructor(props) { super(props); this.trashLook = thi...
admin/client/App/components/Navigation/Secondary/NavItem.js
cermati/keystone
/** * A navigation item of the secondary navigation */ import React from 'react'; import { Link } from 'react-router'; const SecondaryNavItem = React.createClass({ displayName: 'SecondaryNavItem', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, href: React.PropType...
src/svg-icons/notification/power.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPower = (props) => ( <SvgIcon {...props}> <path d="M16.01 7L16 3h-2v4h-4V3H8v4h-.01C7 6.99 6 7.99 6 8.99v5.49L9.5 18v3h5v-3l3.5-3.51v-5.5c0-1-1-2-1.99-1.99z"/> </SvgIcon> ); NotificationPower = pu...
src/svg-icons/device/battery-90.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBattery90 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V8h10V5.33z"/><path d="M7 8v12.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1...
node_modules/react-error-overlay/lib/containers/RuntimeError.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...
docs/app/Examples/views/Feed/Content/FeedExampleExtraText.js
vageeshb/Semantic-UI-React
import React from 'react' import { Feed } from 'semantic-ui-react' const FeedExampleExtraText = () => ( <Feed> <Feed.Event> <Feed.Label image='http://semantic-ui.com/images/avatar/small/laura.jpg' /> <Feed.Content> <Feed.Date>3 days ago</Feed.Date> <Feed.Summary> <a>Laura Fa...
src/components/GuestProfileComponent.js
kiyoshitaro/Instagram-
import React from 'react'; import NavbarComponent from './NavbarComponent'; import {NavLink} from 'react-router-dom'; export default class ProfileComponent extends React.Component { constructor(props, context) { super(props, context); } render() { return ( <div> <NavbarComponent/> ...
assets/js/landing/component/org-create-form.js
ueokande/teamdone
import React, { Component } from 'react'; import Dialog from 'material-ui/Dialog'; import MenuItem from 'material-ui/MenuItem'; import PropTypes from 'prop-types'; import SelectField from 'material-ui/SelectField'; import TextField from 'material-ui/TextField'; import FlatButton from 'material-ui/FlatButton'; export d...
src/tests/ComponentC.js
flipace/react-themeit
import React from 'react'; import PropTypes from 'prop-types'; import ComponentB from './ComponentB'; import { themeit } from '../index.js'; const themeOptions = { mergeContext: false, }; const ComponentC = props => ( <div className={props.styles.test1}> <label className={props.styles.test2}>ComponentC label...
src/components/Main.js
EcutDavid/webgl-workshop
import React from 'react'; import 'styles/main.scss'; import CodeMirror from 'codemirror/lib/codemirror'; import Header from './Header'; import NavigationBar from './NavigationBar'; import { GET_STARTED, DRAW_TRIANGLES, GET_CANVAS_ES6, GL_CONFIGURATION_ES6, ADD_RESOLUTION, CONFIG_RESOLUTION_UNIFORM, SET_...
src/DatePicker2.js
yyssc/ssc-grid
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { default as ReactDatePicker } from 'react-datepicker'; import moment from 'moment'; /** * DatePicker2控件 */ export default class DatePicker2 extends Component { static displayName = 'DatePicker2' static defaultProps = { dat...
ReportSystem/src/main/webapp/resources/js/components/user/user-mgt.js
LittleLazyCat/TXEY
import React from 'react' import Reflux from 'reflux' import ReactMixin from 'react-mixin' import ToolsBar from './tools-bar' import AddUserModal from './add-user-modal' import User from './user' import store from '../../stores/user/user-store' import actions from '../../actions/user/user-actions' import $ from 'jquery...
src/svg-icons/action/accessibility.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccessibility = (props) => ( <SvgIcon {...props}> <path d="M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2z"/> </SvgIcon> ); ActionAccessibility = pure(ActionAccessib...
src/styles/theme-decorator.js
yongxu/material-ui
import React from 'react'; export default (customTheme) => { return function(Component) { return React.createClass({ childContextTypes: { muiTheme: React.PropTypes.object, }, getChildContext() { return { muiTheme: customTheme, }; }, render() { ...
src/svg-icons/action/zoom-in.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionZoomIn = (props) => ( <SvgIcon {...props}> <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 1...
examples/src/components/CustomRender.js
dmatteo/react-select
import React from 'react'; import Select from 'react-select'; import Highlighter from 'react-highlight-words'; var DisabledUpsellOptions = React.createClass({ displayName: 'DisabledUpsellOptions', propTypes: { label: React.PropTypes.string, }, getInitialState () { return {}; }, setValue (value) { this.setS...
node_modules/antd/es/locale-provider/index.js
prodigalyijun/demo-by-antd
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import PropTypes ...
src/svg-icons/image/looks-3.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooks3 = (props) => ( <SvgIcon {...props}> <path d="M19.01 3h-14c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 7.5c0 .83-.67 1.5-1.5 1.5.83 0 1.5.67 1.5 1.5V15c0 1.11-.9 2-2 2h-4v...
webpack/components/DualList/ListPane.js
theforeman/foreman_ansible
import React from 'react'; import { DndProvider } from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; import PropTypes from 'prop-types'; import { orderable, orderDragged, } from 'foremanReact/components/common/forms/OrderableSelect/helpers'; import ListItem from './ListItem'; import ListHeader ...
src/svg-icons/av/volume-mute.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVolumeMute = (props) => ( <SvgIcon {...props}> <path d="M7 9v6h4l5 5V4l-5 5H7z"/> </SvgIcon> ); AvVolumeMute = pure(AvVolumeMute); AvVolumeMute.displayName = 'AvVolumeMute'; AvVolumeMute.muiName = 'SvgIcon'...
packages/veritone-widgets/src/widgets/EngineOutputExport/EngineCategoryConfig.js
veritone/veritone-sdk
import React, { Component } from 'react'; import { forEach, get, includes, find, kebabCase } from 'lodash'; import { string, bool, shape, func, arrayOf, number, any } from 'prop-types'; import { connect } from 'react-redux'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; ...
samples/randommove-area.js
aratakokubun/cursor-hijack
import React from 'react'; import PropTypes from 'prop-types'; import ReactDom from 'react-dom'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import cjk from '../index'; class RandomeMoveDistorter extends cjk.Distorter { constructor(key, priority, getRangeFunc) { super(key, ...
docs/app/Examples/elements/Header/Content/HeaderExamplePlugIcon.js
vageeshb/Semantic-UI-React
import React from 'react' import { Header, Icon } from 'semantic-ui-react' const HeaderExamplePlugIcon = () => ( <Header as='h2'> <Icon name='plug' /> <Header.Content> Uptime Guarantee </Header.Content> </Header> ) export default HeaderExamplePlugIcon
assets/jqwidgets/demos/react/app/grid/computedcolumn/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; class App extends React.Component { render() { let source = { localdata: generatedata(200), datatype: 'array', updaterow...
src/components/TeslaNotice/TeslaNotice.js
shihlinlu/tesla-range-calculator
import React from 'react'; import './TeslaNotice.css'; const TeslaNotice = () => ( <div className="tesla-battery__notice"> <p> The actual amount of range that you may experience will vary based on your particular driving conditions. See how particular use conditions may affect your range in the simulation model....
js/jqwidgets/demos/react/app/scheduler/hidetimeruler/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxScheduler from '../../../jqwidgets-react/react_jqxscheduler.js'; class App extends React.Component { componentDidMount() { // gets scrollbable height. let scrollHeight = this.refs.myScheduler.scrollHeight(); // scroll 7...
actor-apps/app-web/src/app/components/ActivitySection.react.js
damoguyan8844/actor-platform
import React from 'react'; import classNames from 'classnames'; import { ActivityTypes } from 'constants/ActorAppConstants'; import ActivityStore from 'stores/ActivityStore'; import UserProfile from 'components/activity/UserProfile.react'; import GroupProfile from 'components/activity/GroupProfile.react'; const getS...
Realization/frontend/czechidm-core/src/content/form/FormProjections.js
bcvsolutions/CzechIdMng
import React from 'react'; import Helmet from 'react-helmet'; // import * as Basic from '../../components/basic'; import FormProjectionTable from './FormProjectionTable'; /** * Form projections. * * @author Radek Tomiška * @since 10.2.0 */ export default class FormProjections extends Basic.AbstractContent { ge...
src/svg-icons/communication/forum.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationForum = (props) => ( <SvgIcon {...props}> <path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"/> </SvgIcon> ); Co...
react-css-builder/button.js
kwangkim/css-in-js
import React from 'react'; import ReactCSSBuilder from 'react-css-builder'; let styles = ReactCSSBuilder.create({ container: { textAlign: 'center' }, button: { backgroundColor: '#ff0000', width: '320px', padding: '20px', borderRadius: '5px', border: 'none', outline: 'none' } }); le...
react/features/welcome/components/TabIcon.js
gpolitis/jitsi-meet
// @flow import React from 'react'; import { Icon } from '../../base/icons'; import BaseTheme from '../../base/ui/components/BaseTheme'; import { INACTIVE_TAB_COLOR } from '../constants'; type Props = { /** * Is the tab focused? */ focused?: boolean, /** * The ImageSource to be rendered ...
react-router-es6-example/src/home.js
akhilaantony/React-Stylisted
import React, { Component } from 'react'; // import CalendarDay from './CalendarDay.js'; class Home extends Component { constructor(props) { super(props); this.state = { }; // this.calendar = this.calendar.bind(this); } // calendar(){ // <CalendarDate/> // } render() { ...
test/templates/app.sass.js
freshpack/freshpack
// @flow /* eslint no-unused-vars: 0 react/no-multi-comp: 0 */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import type { CounterType } from './types'; import './style.scss'; import { increase, decrease, double } from './state'; export class App extends R...
fields/components/DateInput.js
jstockwin/keystone
import moment from 'moment'; import DayPicker from 'react-day-picker'; import React from 'react'; import { findDOMNode } from 'react-dom'; import Popout from '../../admin/client/App/shared/Popout'; import { FormInput } from 'elemental'; let lastId = 0; module.exports = React.createClass({ displayName: 'DateInput', ...
client/analytics/components/pages/analytics/assetAnalytics/measuredDataCharts/WshlSecondchart.js
Haaarp/geo
import React from 'react'; import {ListGroup, ListGroupItem} from 'react-bootstrap'; import FormWrap from 'konux/common/components/FormWrap'; import Label from 'konux/common/components/Label'; import Title from 'konux/common/components/Title'; class WshlSecondChart extends React.Component{ render(){ retur...
src/svg-icons/maps/local-movies.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalMovies = (props) => ( <SvgIcon {...props}> <path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"/> </Svg...
new-lamassu-admin/src/components/DeleteDialog.js
lamassu/lamassu-server
import { Dialog, DialogActions, DialogContent, makeStyles } from '@material-ui/core' import React from 'react' import { Button, IconButton } from 'src/components/buttons' import { H4, P } from 'src/components/typography' import { ReactComponent as CloseIcon } from 'src/styling/icons/action/close/zodi...
app/src/components/MartinRulz/index.js
udacityalumni/udacity-alumni-fe
import React from 'react'; import styles from './index.module.scss'; import cssModules from 'react-css-modules'; import Box from 'grommet-udacity/components/Box'; import Heading from 'grommet-udacity/components/Heading'; import Button from 'grommet-udacity/components/Button'; import Section from 'grommet-udacity/compon...
Server/app/assets/javascripts/main.js
codemeow5/InstFlow
import 'babel-polyfill'; import 'whatwg-fetch'; import 'jquery-ujs'; import React from 'react'; import ReactDOM from 'react-dom'; import {Router, Route, hashHistory} from 'react-router'; import {createStore, applyMiddleware} from 'redux'; import {Provider} from 'react-redux'; import thunkMiddleware from 'redu...
docs/src/app/components/pages/components/DatePicker/Page.js
andrejunges/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 datePickerReadmeText from './README'; import DatePickerExampleSimple from...
src/svg-icons/action/account-balance-wallet.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccountBalanceWallet = (props) => ( <SvgIcon {...props}> <path d="M21 18v1c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2V5c0-1.1.89-2 2-2h14c1.1 0 2 .9 2 2v1h-9c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2h9zm-9-2h10V8H12v8zm4-...
app/static/src/diagnostic/Norm_modules/NewNormFuranForm.js
SnowBeaver/Vision
import React from 'react'; import Checkbox from 'react-bootstrap/lib/Checkbox'; import {findDOMNode} from 'react-dom'; import {hashHistory} from 'react-router'; import {Link} from 'react-router'; import {NotificationContainer, NotificationManager} from 'react-notifications'; import TextField from './TextField'; import...
Libraries/CustomComponents/Navigator/Navigator.js
tarkus/react-native-appletv
/** * Copyright (c) 2013-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. * * Facebook,...
examples/real-world/src/root/Root.dev.js
ioof-holdings/redux-subspace
import React from 'react' import PropTypes from 'prop-types' import { Provider } from 'react-redux' import Routes from './Routes' import DevTools from './containers/DevTools' import { ConnectedRouter } from 'connected-react-router' const Root = ({ store, history }) => ( <Provider store={store}> <div> <Conn...
src/components/Navbar/NavItem/Dropdown/index.js
calpa/blog
import React from 'react'; import PropTypes from 'prop-types'; const Dropdown = ({ title, list }) => ( <li className="nav-item dropdown"> <button type="button" className="nav-link dropdown-toggle btn-link" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" >{title...
envkey-react/src/containers/home_menu_container.js
envkey/envkey-app
import React from 'react' import h from "lib/ui/hyperscript_with_helpers" import { connect } from 'react-redux' import { getAccounts } from 'selectors' import {resetSession } from 'actions' import HomeMenu from 'components/shared/home_menu' class Home extends React.Component { render(){ return h(HomeMenu, this....
docs/app/Examples/elements/Container/Variations/ContainerExampleFluid.js
Rohanhacker/Semantic-UI-React
/* eslint-disable max-len */ import React from 'react' import { Container, Header } from 'semantic-ui-react' const ContainerExampleFluid = () => ( <div> <Container fluid> <Header as='h2'>Dogs Roles with Humans</Header> <p>Domestic dogs inherited complex behaviors, such as bite inhibition, from their...
packages/vulcan-core/lib/modules/containers/withEdit.js
rtluu/immersive
/* Generic mutation wrapper to edit a document in a collection. Sample mutation: mutation moviesEdit($documentId: String, $set: MoviesInput, $unset: MoviesUnset) { moviesEdit(documentId: $documentId, set: $set, unset: $unset) { ...MoviesEditFormFragment } } Arguments: - documentId: the id of...
src/js/pages/Contacts/index.js
trazyn/weweChat
import React, { Component } from 'react'; import { observer, inject } from 'mobx-react'; import clazz from 'classname'; import randomColor from 'randomcolor'; import classes from './style.css'; @inject(stores => ({ filter: stores.contacts.filter, filtered: stores.contacts.filtered, getContats: stores.con...
app/client/src/components/Link/Link.js
uprisecampaigns/uprise-app
import PropTypes from 'prop-types'; import React from 'react'; import history from 'lib/history'; import s from 'styles/Link.scss'; function isTouchTap(event) { return (typeof event.nativeEvent === 'object' && event.type === 'touchend'); } function isLeftClickEvent(event) { return isTouchTap(event) || event.butt...
src/svg-icons/action/timeline.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTimeline = (props) => ( <SvgIcon {...props}> <path d="M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07...
client/components/FormComponent.js
foxichu/reactgur
import React from 'react'; import {Input, Alert} from 'react-bootstrap'; import xhttp from 'xhttp'; import EventEmitter from 'events'; export default class FormComponent extends React.Component { constructor(props) { super(props) this.state = { errors: null }; this.ee = new EventEmitter();...
tests/lib/rules/indent.js
Jxck/eslint
/** * @fileoverview This option sets a specific tab width for your code * @author Dmitriy Shekhovtsov * @author Gyandeep Singh * @copyright 2014 Dmitriy Shekhovtsov. All rights reserved. * @copyright 2015 Gyandeep Singh. All rights reserved. */ "use strict"; //----------------------------------------------------...
src/svg-icons/content/reply-all.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentReplyAll = (props) => ( <SvgIcon {...props}> <path d="M7 8V5l-7 7 7 7v-3l-4-4 4-4zm6 1V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z"/> </SvgIcon> ); ContentReplyAll = pure(ContentReplyAll); Conte...
client/admin/settings/inputs/GenericSettingInput.stories.js
iiet/iiet-chat
import { Field } from '@rocket.chat/fuselage'; import { action } from '@storybook/addon-actions'; import React from 'react'; import { GenericSettingInput } from './GenericSettingInput'; export default { title: 'admin/settings/inputs/GenericSettingInput', component: GenericSettingInput, decorators: [ (storyFn) =>...
example/src/pages/HamburgerTouch.js
ethanselzer/react-lazy-tree
import React, { Component } from 'react'; import Helmet from 'react-helmet'; import Hamburger from '../components/Hamburger'; class HamburgerTouchPage extends Component { render() { return ( <div style={{ position: 'fixed', top: '0px', right: '0...
ios/versioned-react-native/ABI9_0_0/Libraries/Image/Image.ios.js
jolicloud/exponent
/** * 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/app/components/GreetingCard/index.js
mahimaag/react-web-boilerplate
import React from 'react'; import style from './style.scss'; export default class Greeting extends React.Component{ render () { return ( <div className="card"> <h3 className="title bold"> <strong>Welcome</strong> </h3> <div cla...
src/day2-2/components/SliderItems.js
zhufengnodejs/201705react
import React from 'react'; export default class SliderItems extends React.Component{ render(){ let style = { left: this.props.index * -300,//left值 width:this.props.images.length*300,//宽度 transitionDuration:this.props.speed+'s'//转换的时间 } return ( <ul className="sliders" style={style}...
src/routes/Duck/components/DuckView.js
JThanat/student-management-system
import React from 'react' import DuckImage from '../assets/Duck.jpg' import './DuckView.scss' export const HomeView = () => ( <div> <h4>This is a duck!</h4> <img alt='This is a duck, because Redux!' className='duck' src={DuckImage} /> </div> ) export default HomeView
src/components/navItem/navItem.js
darcyclarke/react-insta-feed
import React from 'react' import styles from './navItem.styles' import r from 'r-dom' class NavItem extends React.Component { constructor (props) { super(props) } render () { return ( r.div({ className: 'navItem' }, []) ) } } export default NavItem
admin/client/App/screens/Item/components/EditFormHeader.js
concoursbyappointment/keystoneRedux
import React from 'react'; import { findDOMNode } from 'react-dom'; import { connect } from 'react-redux'; import Toolbar from './Toolbar'; import ToolbarSection from './Toolbar/ToolbarSection'; import EditFormHeaderSearch from './EditFormHeaderSearch'; import { Link } from 'react-router'; import Drilldown from './Dr...
actor-apps/app-web/src/app/components/common/MessageItem.react.js
ketoo/actor-platform
import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import memoize from 'memoizee'; import classNames from 'classnames'; import emojify from 'emojify.js'; import hljs from 'highlight.js'; import marked from 'marked'; import emojiCharacters from 'emoji-named-characters'; ...
src/component/ToDoListWithFlux/TodoItem.react.js
lyc-chengzi/reactProject
/** * Created by liuyc14 on 2016/9/23. */ import React from 'react'; import TodoAction from '../../flux/actions/TodoAction'; import TodoTextInput from './TodoTextInput.react'; export default class TodoItem extends React.Component{ constructor(props){ super(props); this.state = { isEd...
src/components/DataGridPage.js
luanatsainsburys/road-runner
import React from 'react'; import CustomerDataGrid from './CustomerDataGrid'; const DataGridPage = () => { return (<CustomerDataGrid/>); }; export default DataGridPage;
src/components/ArticleTags.js
jumpalottahigh/blog.georgi-yanev.com
import React from 'react' import { navigate } from 'gatsby' const ArticleTags = ({ tags }) => ( <div style={{ display: 'flex', flexFlow: 'row wrap', marginBottom: '1rem' }}> {tags.map(tag => ( <span key={tag} data-filter={tag} className="post-preview-tag" style={{ ...
src/views/Posters.js
scarescrow/react-resource-center
import React, { Component } from 'react'; class Posters extends Component { state = {} render () { return <h1>Posters</h1> } } export default Posters;
actor-apps/app-web/src/app/components/activity/ActivityHeader.react.js
boneyao/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class ActivityHeader extends React.Component { static propTypes = { close: React.PropTypes.func, title: React.PropTypes.stri...