path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
jenkins-design-language/src/js/components/material-ui/svg-icons/hardware/desktop-mac.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const HardwareDesktopMac = (props) => ( <SvgIcon {...props}> <path d="M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7l-2 3v1h8v-1l-2-3h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 12H3V4h18v10z"/> </SvgIcon> ); HardwareDesktopMac.displayName = 'HardwareDesktop...
opentech/static_src/src/app/src/containers/Note.js
OpenTechFund/WebApp
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { getNoteOfID } from '@selectors/notes'; import NoteListingItem from '@components/NoteListingItem'; class Note extends React.Component { static propTypes = { note: PropTypes.shape({ use...
app/javascript/mastodon/features/compose/components/upload.js
increments/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { defineMessages, injec...
src/components/common/icons/Comment2.js
chejen/GoodJobShare
import React from 'react'; /* eslint-disable */ const Comment2 = (props) => ( <svg {...props} width="148" height="148" viewBox="0 0 148 148"> <g transform="translate(0 6)"> <path d="M13.5463199,136.724864 C14.8088582,138.042797 16.5145543,138.767545 18.3425804,138.767545 C20.6922403,138.767545 23.0372839,1...
src/components/FavoriteStops/FaveList.js
mark4carter/react-hrtbus
import 'babel-core/polyfill' import React from 'react' import Radium from 'radium' import Stop from '../Stop/Stop' import { connect } from 'react-redux' import { removeLocalStops, fetchFaveStop, toggleFaveStop } from '../../redux/modules/favorites/fave-stop-actions' class FaveList extends React.Component { co...
packages/xo-web/src/common/combobox.js
vatesfr/xo-web
import React from 'react' import PropTypes from 'prop-types' import uncontrollableInput from 'uncontrollable-input' import { isEmpty, map } from 'lodash' import { DropdownButton, MenuItem } from 'react-bootstrap-4/lib' import Component from './base-component' @uncontrollableInput({ defaultValue: '', }) export defau...
app/javascript/mastodon/components/media_gallery.js
increments/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { is } from 'immutable'; import IconButton from './icon_button'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { isIOS } from '../is_mobile'; import class...
app/components/OrderError.js
jaekwangseo/rad
import React from 'react'; import {Link} from 'react-router'; export default function OrderError(){ return ( <div id="OrderError" className="order-error-box col-md-offset-3 col-md-6 col-sm-6 col-sm-offset-3 col-xs-12"> <h1 className='first-form-input col-md-offset-3 col-md-6 col-sm-6 col-sm-offset-3 col-xs-12'>E...
common/components/App.js
maxruby/stayfriends_test
/* eslint-disable */ import React from 'react' import Helmet from 'react-helmet' import { StyleSheet, css } from 'aphrodite' import BundeslandList from './BundeslandList' import PersonIndexCountList from './PersonIndexCountList' import DataApi from '../../data/DataAPI' const App = ({children}) => { return( ...
src/components/edge.js
juttle/juttle-flowgraph-viz
import React, { Component } from 'react'; function createLineElement(x, y, length, angle) { var styles = { border: '1px solid lightgrey', width: length, height: 0, MozTransform: `rotate(${angle}rad)`, WebkitTransform: `rotate(${angle}rad)`, OTransform: `rotate(${angl...
src/components/OverflowMenuItem/OverflowMenuItem.js
jzhang300/carbon-components-react
import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; const OverflowMenuItem = ({ className, itemText, hasDivider, isDelete, closeMenu, onClick, ...other }) => { const overflowMenuBtnClasses = classNames( ([className]: className), 'bx--overflow-menu...
src/parser/warrior/fury/modules/spells/Recklessness.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import SPELLS from 'common/SPELLS'; import RESOURCE_TYPES from 'game/RESOURCE_TYPES'; import { SELECTED_PLAYER } from 'parser/core/EventFilter'; import StatisticBox from 'interface/others/StatisticBox'; i...
screens/WelcomeScreen/index.js
nattatorn-dev/expo-with-realworld
import React from 'react' import { View } from 'react-native' import Welcome from './WelcomeContainer' const HomesScreen = () => <View> <Welcome /> </View> export default HomesScreen
vendor/assets/components/react-autosuggest/examples/src/MultipleSections/MultipleSections.js
UMNLibraries/ikidowinan
import React, { Component } from 'react'; import utils from '../utils'; import Autosuggest from '../../../src/Autosuggest'; import SourceCodeLink from '../SourceCodeLink/SourceCodeLink'; import suburbs from 'json!../suburbs.json'; function randomInt(min, max) { return min + Math.floor(Math.random() * (max - min + 1)...
src/svg-icons/device/data-usage.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceDataUsage = (props) => ( <SvgIcon {...props}> <path d="M13 2.05v3.03c3.39.49 6 3.39 6 6.92 0 .9-.18 1.75-.48 2.54l2.6 1.53c.56-1.24.88-2.62.88-4.07 0-5.18-3.95-9.45-9-9.95zM12 19c-3.87 0-7-3.13-7-7 0-3.53...
src/common/components/Footer.js
strekmann/samklang
import React from 'react'; import { Grid, Row, Col } from 'react-bootstrap'; import { Link } from 'react-router'; class Footer extends React.Component { render() { return ( <footer> <hr /> <Grid> <Row> <Col xs={4}> ...
app/javascript/mastodon/features/notifications/components/setting_toggle.js
kazh98/social.arnip.org
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Toggle from 'react-toggle'; export default class SettingToggle extends React.PureComponent { static propTypes = { prefix: PropTypes.string, settings: ImmutablePropTypes.map.isReq...
frontend/src/Settings/Profiles/Profiles.js
Radarr/Radarr
import React, { Component } from 'react'; import { DndProvider } from 'react-dnd'; import { HTML5Backend } from 'react-dnd-html5-backend'; import Link from 'Components/Link/Link'; import PageContent from 'Components/Page/PageContent'; import PageContentBody from 'Components/Page/PageContentBody'; import SettingsToolbar...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/antd/es/upload/Upload.js
bhathiya/test
import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
src/v2/components/FullBlock/components/FullBlockModalDialog/index.js
aredotna/ervell
import React from 'react' import Box from 'v2/components/UI/Box' export default ({ children, ...rest }) => ( <Box position="relative" width="100%" height="100%" bg="background" {...rest}> {children} </Box> )
src/Parser/Druid/Feral/Modules/Talents/MoonfireUptime.js
enragednuke/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Enemies from 'Parser/Core/Modules/Enemies'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import StatisticBox, { ST...
docs/src/app/components/pages/components/IconButton/ExampleSize.js
barakmitz/material-ui
import React from 'react'; import IconButton from 'material-ui/IconButton'; import ActionHome from 'material-ui/svg-icons/action/home'; const styles = { smallIcon: { width: 36, height: 36, }, mediumIcon: { width: 48, height: 48, }, largeIcon: { width: 60, height: 60, }, small: { ...
myaccount/src/components/LoadingScreen/index.js
Neil-Ni/v2
import React from 'react'; import { Spinner } from 'react-mdl'; require('./loading-screen.scss'); const imgUrl = require( '../../../../frontend_resources/images/staffjoy.png' ); function LoadingScreen() { return ( <div className="loading-container"> <img role="presentation" alt="Staffjoy logo" src={imgU...
app/src/App.js
brendanmckeown/srw_hub
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <div className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h2>KEVN</h2> </div> ...
fields/types/html/HtmlField.js
creynders/keystone
import _ from 'lodash'; import Field from '../Field'; import React from 'react'; import tinymce from 'tinymce'; import { FormInput } from 'elemental'; /** * TODO: * - Remove dependency on underscore */ var lastId = 0; function getId () { return 'keystone-html-' + lastId++; } // Workaround for #2834 found here h...
src/containers/About/container/About.js
WCCrazyCoder/react-redux-web-application
import React from 'react'; export default class About extends React.Component { render() { return ( <div> <h3>This is the about dreampack ...</h3> <h1>{this.props.match.params.user}</h1> </div> ) } }
src/components/Resume/ResumeContainer.js
angeloocana/angeloocana
import React from 'react'; import PropTypes from 'prop-types'; import Link from '../Link'; import styled from 'styled-components'; import { FormattedMessage, injectIntl } from 'react-intl'; import BreadCrumb from '../BreadCrumb'; import ResumeDownloadPDF from './ResumeDownloadPDF'; const Li = styled.li` a { disp...
fluxArchitecture/src/js/components/catalog/app-catalogitem.js
wandarkaf/React-Bible
import React from 'react'; import AppActions from '../../actions/app-actions'; import CartButton from '../cart/app-cart-button'; import { Link } from 'react-router'; export default (props) => { let itemStyle = { borderBottom: '1px solid #ccc', paddingBottom: 15 } return ( <div className="col-xs-6 c...
src/js/components/item.js
cheriejiajia/react-seed
import React from 'react'; import { Link } from 'react-router'; export default class Item extends React.Component{ render() { return ( <li><Link to={'/item/' + this.props.data.id}>{this.props.data.name}</Link></li> ); } }
examples/react-router-redux/src/components/Main.js
stylesuxx/generator-react-webpack-redux
require('normalize.css/normalize.css'); require('styles/App.css'); import React from 'react'; import { Link } from 'react-router'; let yeomanImage = require('../images/yeoman.png'); class AppComponent extends React.Component { render() { return ( <div className="index"> <img src={yeomanImage} alt...
app/components/AboutPageComponents/OurProcess.js
rapicastillo/beautifulrising-client
/** * * AboutPageComponents * */ import React from 'react'; import styled, { ThemeProvider } from 'styled-components'; import { injectIntl, FormattedMessage } from 'react-intl'; import VisibilitySensor from 'react-visibility-sensor'; import Markdown from 'react-remarkable'; import LanguageThemeProvider from 'componen...
src/stories/2016-10-08-pisa-afterglow.js
danpersa/remindmetolive-react
import React from 'react'; import PostImageResp from '../components/story/PostImageResp'; import TwoPostImageResp from '../components/story/TwoPostImageResp'; import FullImageResp from '../components/story/FullImageResp'; import StoryPage from '../components/story/StoryPage'; import StoryTextBlock from '../components/s...
src/Segment.js
gocreating/react-tocas
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Box from './Box'; class Segment extends Component { render() { let { raised, loading, clearing, fluid, flatted, borderless, basic, className, ...
src/components/Main.js
MaxMooc/react-gallery
require('normalize.css/normalize.css'); require('styles/App.css'); import React from 'react'; class Comment extends React.Component{ render(){ return ; } } export default Comment;
packages/material-ui-icons/src/PictureInPicture.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let PictureInPicture = props => <SvgIcon {...props}> <path d="M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98V5c0-1.1-.9-2-2-2zm0 16.01H3V4.98h18v14.03z" /> </SvgIcon>; P...
shared/app/Tms/components/ContentRow/ContentRowNav/ContentRowNav.js
pebie/react-universally-node-config
import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; import CarouselArrow from '../../Icons/CarouselArrow'; import styles from './ContentRowNav.scss'; /** * ContentRowNav * * Render a particular button (previous or next) for `contentRow` template * * @param {string} ...
docs/app/Examples/modules/Dropdown/Variations/index.js
shengnian/shengnian-ui-react
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ContributionPrompt from 'docs/app/Components/ComponentDoc/ContributionPrompt' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const DropdownVariationsExamples = () => ( <Exa...
fields/components/ItemsTableCell.js
danielmahon/keystone
import React from 'react'; import classnames from 'classnames'; function ItemsTableCell ({ className, ...props }) { props.className = classnames('ItemList__col', className); return <td {...props} />; }; module.exports = ItemsTableCell;
examples/huge-apps/routes/Course/components/Nav.js
barretts/react-router
import React from 'react'; import { Link } from 'react-router'; import AnnouncementsRoute from '../routes/Announcements'; import AssignmentsRoute from '../routes/Assignments'; import GradesRoute from '../routes/Grades'; const styles = {}; styles.nav = { borderBottom: '1px solid #aaa' }; styles.link = { display: ...
src/routes.js
eNkru/react-realtimeboard
import React from 'react'; import {Route, IndexRoute} from 'react-router'; import App from './components/App'; import Home from './components/Home'; import About from './components/About'; import Agency from './components/Agency'; import CustomerService from './components/CustomerService'; import LoginPage from "./comp...
shared/components/Common/Typeahead.js
kizzlebot/music_dev
import React from 'react' import DebounceInput from 'react-debounce-input'; export default class Typeahead extends React.Component { render() { return ( <div className="search"> <div className="bootstrap-typeahead open" style={{position: 'relative'}}> <div className="bootstrap-typeahead...
app/javascript/mastodon/features/compose/components/poll_form.js
ashfurrow/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import IconButton from 'mastodon/components/icon_butt...
src/day2/4.suggest.js
zhufengnodejs/201705react
/** * 1.react如何跟后台进行数据交互 * 1.给input框绑定事件 * 2.当事件发生的时候,取得input框的值,然后调用百度的接口取得搜索结果.然后渲染到ul里面 **/ import React from 'react'; import ReactDOM from 'react-dom'; import 'bootstrap/dist/css/bootstrap.css'; import $ from 'jquery'; class Suggest extends React.Component { constructor() { super(); //定义一个默认的状态index=-...
src/components/secrets/SecretList.js
secretin/secretin-app
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import HTML5Backend from 'react-dnd-html5-backend'; import { DragDropContext, DragLayer } from 'react-dnd'; import Secret from 'models/Secret'; import SecretListContent from 'components/secrets/SecretListContent'; import SecretListBreadcrum...
react-router-training/src/modules/NotFound.js
wefine/reactjs-guide
import React from 'react'; const notfound = () => { return ( <div>Not Found</div> ) }; export default notfound;
packages/vx-legend/src/legends/LegendShape.js
Flaque/vx
import React from 'react'; import PropTypes from 'prop-types'; import ShapeRect from '../shapes/Rect'; import renderShape from '../util/renderShape'; export default function LegendShape({ shape = ShapeRect, width, height, margin, label, fill, size, shapeStyle, }) { return ( <div className="...
src/user.js
jyasskin/cxxpoll.bak
// Copyright 2015 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-bricks-touch-icon.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, ContentMixin, ColorSchemaMixin, Tools} from './../common/common.js'; import Link from './link.js'; import Glyphicon from './glyphicon.js'; import './touch-icon.less'; export const TouchIcon = React.createClass({ //@@viewOn:mixins mixins: [ BaseMi...
src/svg-icons/communication/comment.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationComment = (props) => ( <SvgIcon {...props}> <path d="M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM18 14H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/> </SvgIcon> ); Co...
client/components/Cleanup/index.js
deanslamajr/trakta.co
import React from 'react' import { compose } from 'redux' import { connect } from 'react-redux' import withStyles from 'isomorphic-style-loader/lib/withStyles' import ReactSlider from 'react-slider' import classnames from 'classnames' import * as selectors from '../../../shared/reducers' import { updateDimensionsWithA...
pages/api/form-control-label.js
AndriusBil/material-ui
// @flow import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './form-control-label.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRoot(Page);
packages/mineral-ui-icons/src/IconBurstMode.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconBurstMode(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProp...
pages/decal/lesson-7/index.js
jubearsun/innovative-design
import React from 'react'; import DocumentTitle from 'react-document-title'; import { prefixLink } from 'gatsby-helpers'; import $ from 'jquery'; import _ from 'lodash'; export default class Index extends React.Component { constructor(props) { super(props); } componentDidMount() {} render () { retur...
src/App.js
sonaak/react-components
import React, { Component } from 'react'; import './App.css'; import {Password} from './form/Input.jsx'; class Checkbox extends Component { render() { return (<div className="sonaak-multiselect-checkbox" />); } } class App extends Component { render() { return ( <div> <Password l...
ajax/libs/react-instantsearch/4.1.3/Connectors.js
froala/cdnjs
/*! ReactInstantSearch 4.1.3 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define....
docs/src/app/components/pages/discover-more/Community.js
ichiohta/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} /> ...
examples/js/selection/custom-multi-select-table.js
AllenFang/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import ReactDOM from 'react-dom'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; require('../../customMultiSelect.css'); const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantit...
app/javascript/mastodon/components/media_gallery.js
cobodo/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { is } from 'immutable'; import IconButton from './icon_button'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { isIOS } from '../is_mobile'; import class...
examples/js/selection/single-select-table.js
powerhome/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
js/jqwidgets/demos/react/app/chart/lineseriesmarkers/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxChart from '../../../jqwidgets-react/react_jqxchart.js'; class App extends React.Component { render() { let sampleData = [ { Day: 'Monday', Running: 30, Swimming: 10, Cycling: 25, Goal: 40 }, { Day: 'Tuesday', R...
examples/huge-apps/routes/Profile/components/Profile.js
kelsadita/react-router
import React from 'react'; class Profile extends React.Component { render () { return ( <div> <h2>Profile</h2> </div> ); } } export default Profile;
lens-ui/app/components/QueryDetailResultComponent.js
sushilmohanty/incubator-lens
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not...
app/components/Footer/index.js
houlematt/matt-site
import React from 'react'; import { FormattedMessage } from 'react-intl'; import A from 'components/A'; import LocaleToggle from 'containers/LocaleToggle'; import Wrapper from './Wrapper'; import messages from './messages'; function Footer() { return ( <Wrapper> <section> <FormattedMessage {...mes...
Realization/frontend/czechidm-core/src/content/notification/NotificationContent.js
bcvsolutions/CzechIdMng
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; // import * as Basic from '../../components/basic'; import { NotificationManager } from '../../redux'; import NotificationDetail from './NotificationDetail'; const notificationManage...
app/components/Navbar/ExportGeschaefteNav.js
barbalex/kapla3
/* eslint-disable no-param-reassign */ import React from 'react' import PropTypes from 'prop-types' import { NavDropdown, MenuItem, } from 'react-bootstrap' import moment from 'moment' import _ from 'lodash' import { observer, inject } from 'mobx-react' import compose from 'recompose/compose' import exportGeschae...
app/javascript/mastodon/containers/compose_container.js
Kirishima21/mastodon
import React from 'react'; import { Provider } from 'react-redux'; import PropTypes from 'prop-types'; import configureStore from '../store/configureStore'; import { hydrateStore } from '../actions/store'; import { IntlProvider, addLocaleData } from 'react-intl'; import { getLocale } from '../locales'; import Compose f...
frontend/src/Components/Menu/Menu.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { Manager, Popper, Reference } from 'react-popper'; import Portal from 'Components/Portal'; import { align } from 'Helpers/Props'; import getUniqueElememtId from 'Utilities/getUniqueElementId'; import styles from './Menu.css'; const s...
src/components/UpdateComponentDemo/index.js
jiangxy/react-antd-admin
import React from 'react'; import {Slider, InputNumber, Row, Col, Rate} from 'antd'; /** * demo, 自定义组件实现单条数据更新 */ class UpdateGPA1 extends React.PureComponent { state = { inputValue: 0, }; componentWillMount() { // 当前选中的那条记录, 会以props.record的形式传进来 this.state.inputValue = this.props.record.gpa; } ...
circleci-demo-javascript-express-master/client/modules/Post/__tests__/components/PostList.spec.js
RTHMaK/RPGOne
import React from 'react'; import test from 'ava'; import { shallow } from 'enzyme'; import PostList from '../../components/PostList'; const posts = [ { name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: 'f34gb2bh24b24b2', content: "All cats meow 'mern!'" }, { name: 'Mayank', title: 'Hi Mern', slug: ...
extensions/vtk/src/withCommandsManager.js
OHIF/Viewers
import React from 'react'; export default function withCommandsManager(Component, commandsManager = {}) { return class WithCommandsManager extends React.Component { render() { return ( <Component {...this.props} onScroll={viewportIndex => commandsManager.runCommand('...
src/sections/App/App.js
jmsaulnier/jmsaulnier.works
import React, { Component } from 'react'; import PropTypes from 'proptypes'; import Background from 'src/sections/Background'; import HomeView from 'src/sections/HomeView'; import styles from './App.css'; /** * App component */ class App extends Component { constructor(props) { super(props); } /** *...
client/src/components/SolutionViewer/SolutionViewer.js
raisedadead/FreeCodeCamp
import { Panel } from '@freecodecamp/react-bootstrap'; import Prism from 'prismjs'; import PropTypes from 'prop-types'; import React from 'react'; const prismLang = { css: 'css', js: 'javascript', jsx: 'javascript', html: 'markup' }; const SolutionViewer = ({ challengeFiles, solution = '// The solution is...
plugins/Logs/js/components/filtercontrols.js
NebulousLabs/New-Sia-UI
import PropTypes from 'prop-types' import React from 'react' import { Set } from 'immutable' import FilterControl from './filtercontrol' import { filters } from '../filters.js' const filterControlsStyle = { width: '100%', position: 'absolute', top: '0', margin: '0', padding: '0', backgroundColor: '#ECECEC'...
app/static/src/diagnostic/EquipmentForm_modules/AditionalEqupmentParameters_modules/AirBreakerParams.js
SnowBeaver/Vision
import React from 'react'; import FormControl from 'react-bootstrap/lib/FormControl'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import Checkbox from 'react-bootstrap/lib/Checkbox'; import ControlLabel from 'react-bootstrap/lib/ControlLabel'; import {findDOMNode} from 'react-dom'; import {hashHistory} from ...
src/containers/search_bar.js
scottmc526/weatherProject
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { fetchWeather } from '../actions/index'; class SearchBar extends Component { constructor(props) { super(props); this.state = { term: '' }; this.onInputChange = this.onInp...
examples/todomvc/index.js
knowbody/redux
import 'babel/polyfill'; import React from 'react'; import Root from './containers/Root'; import 'todomvc-app-css/index.css'; React.render( <Root />, document.getElementById('root') );
ui/src/pages/PeopleManagePage/IdentifiersViewer/index.js
LearningLocker/learninglocker
import React from 'react'; import PropTypes from 'prop-types'; import { Map } from 'immutable'; import { compose, withProps, setPropTypes } from 'recompose'; import styled from 'styled-components'; import { withModels } from 'ui/utils/hocs'; import createPersonaIdentFilter from '../createPersonaIdentFilter'; import Sav...
app/javascript/flavours/glitch/containers/account_container.js
im-in-space/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { makeGetAccount } from 'flavours/glitch/selectors'; import Account from 'flavours/glitch/components/account'; import { followAccount, unfollowAccount, blockAccount, ...
src/svg-icons/editor/money-off.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorMoneyOff = (props) => ( <SvgIcon {...props}> <path d="M12.5 6.9c1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-.53.12-1.03.3-1.48.54l1.47 1.47c.41-.17.91-.27 1.51-.27zM5.33 4.06L4.06 ...
src/routes/suivi/index.js
ziedAb/PVMourakiboun
/** * 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 Layout from '../../co...
src/index.js
aldhsu/missile-command
import React from 'react'; import { render } from 'react-dom'; import { App } from './App'; render(<App />, document.getElementById('root'));
node_modules/react-media-context/demo/entry.js
HasanSa/hackathon
import React from 'react' import ReactDOM from 'react-dom' import MediaContext from '../src/MediaContext' import readme from 'html!markdown!../README.md' const div = document.getElementById('app') const Header = ({}, { media }) => { let fontSize = 32 if (media.indexOf('large') > -1) { fontSize = 96 } else...
clients/packages/admin-client/src/components/navigation/tabs/tab-border.js
nossas/bonde-client
import PropTypes from 'prop-types' import React from 'react' import classnames from 'classnames' if (require('exenv').canUseDOM) { require('./tab-border.scss') } const TabBorder = ({ children, Component, path, className, isActive, style }) => { const optionalProps = {} if (path) optionalProps.to = path retu...
src/packages/recompose/__tests__/types/test_withContext.js
acdlite/recompose
/* eslint-disable no-unused-vars, no-unused-expressions, arrow-body-style */ /* @flow */ import React from 'react' import { compose, withProps, withContext } from '../..' import type { HOC } from '../..' type EnhancedCompProps = { eA: 1 } const Comp = ({ eA }) => <div> {(eA: number)} { // $ExpectErro...
modules/gui/src/widget/button.js
openforis/sepal
import {EMPTY, combineLatest, distinctUntilChanged, fromEvent, switchMap, take, takeUntil, timer} from 'rxjs' import {Link} from 'route' import {compose} from 'compose' import {download} from 'widget/download' import {withButtonGroupContext} from './buttonGroup' import Icon from 'widget/icon' import Keybinding from './...
src/svg-icons/notification/phone-missed.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPhoneMissed = (props) => ( <SvgIcon {...props}> <path d="M6.5 5.5L12 11l7-7-1-1-6 6-4.5-4.5H11V3H5v6h1.5V5.5zm17.21 11.17C20.66 13.78 16.54 12 12 12 7.46 12 3.34 13.78.29 16.67c-.18.18-.29.43-.29.71...
webpack/ForemanTasks/Components/TaskDetails/Components/Errors.js
theforeman/foreman-tasks
import React from 'react'; import PropTypes from 'prop-types'; import { Alert } from 'patternfly-react'; import { translate as __ } from 'foremanReact/common/I18n'; const Errors = ({ ...props }) => { const { failedSteps, executionPlan } = props; if (!executionPlan) return ( <Alert type="error">{__('Execu...
fields/types/boolean/BooleanColumn.js
jacargentina/keystone
import React from 'react'; import Checkbox from '../../components/Checkbox'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var BooleanColumn = React.createClass({ displayName: 'BooleanColumn', propTypes: { col: React.PropTypes.object, ...
test/helpers.js
zanjs/react-bootstrap
import React from 'react'; import { cloneElement } from 'react'; export function shouldWarn(about) { console.warn.called.should.be.true; console.warn.calledWithMatch(about).should.be.true; console.warn.reset(); } /** * Helper for rendering and updating props for plain class Components * since `setProps` is de...
node_modules/case-sensitive-paths-webpack-plugin/demo/src/AppRoot.component.js
okristian1/react-info
import React, { Component } from 'react'; export default class AppRoot extends Component { // we can't use `connect` in this component, so must do naiively: constructor(props) { super(props); this.state = { }; } render() { return ( <div> <h1>This is just an empty demo</h1> ...
web/components/pages/Error/__fixtures__/component-error.js
skidding/flatris
// @flow import React from 'react'; import Error from '..'; export default ( <Error error={{ message: `ReferenceError: xxx is not defined`, stack: ` in NewGame (created by Connect(NewGame)) in Connect(NewGame) (at new.js?entry:25) in SocketProvider (at new.js?entry:24) in div (at Layout.js:1...
src/Badge/Badge.component.js
Talend/react-talend-components
import React from 'react'; import classNames from 'classnames'; import Action from '../Actions/Action'; import theme from './Badge.scss'; const badgeClasses = (tcStyle, onDelete) => classNames({ [theme['tc-badge']]: true, 'tc-badge': true, [theme['tc-badge-outline']]: tcStyle === 'outline', 'tc-badge-outline': tcS...
src/index.js
benjaminboruff/CityWeather
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import ReduxPromise from 'redux-promise'; import App from './components/app'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware(...
src/svg-icons/navigation/arrow-drop-up.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowDropUp = (props) => ( <SvgIcon {...props}> <path d="M7 14l5-5 5 5z"/> </SvgIcon> ); NavigationArrowDropUp = pure(NavigationArrowDropUp); NavigationArrowDropUp.displayName = 'NavigationArrowDrop...
packages/starter-scripts/fixtures/kitchensink/src/features/webpack/CssModulesInclusion.js
chungchiehlun/create-starter-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import styles from './assets/style.module.css'; import indexStyles from './assets/index.module.css'; export ...
src/index.js
puan0601/dronetube
import _ from 'lodash'; import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import YTSearch from 'youtube-api-search'; import SearchBar from './components/search_bar'; import VideoList from './components/video_list'; import VideoDetail from './components/video_detail'; const API_KEY = 'AIzaSy...
client/components/admin-lte/WS-Notification.js
zhakkarn/Mail-for-Good
import React from 'react'; import PropTypes from 'prop-types'; import ReactTooltip from 'react-tooltip'; import { Link } from 'react-router'; const WSNotification = props => { // eslint-disable-line no-unused-vars const { message, icon, iconColour, consumeNotification, index, url } = props; return ( <li onClic...
src/app/component/lightbox/lightbox.story.js
all3dp/printing-engine-client
import React from 'react' import {storiesOf} from '@storybook/react' import {action} from '@storybook/addon-actions' import Lightbox from '.' storiesOf('Lightbox', module).add('default', () => ( <Lightbox onClose={action('onClose')}> <div>Lightbox content</div> </Lightbox> ))
client/pages/_document.js
RobinClowers/photo-album
import React from 'react' import PropTypes from 'prop-types' import Document, { Head, Main, NextScript } from 'next/document' import flush from 'styled-jsx/server' class MyDocument extends Document { render() { const { pageContext } = this.props return ( <html lang="en" dir="ltr"> <Head> ...
react/features/authentication/components/native/LoginDialog.js
gpolitis/jitsi-meet
/* @flow */ import React, { Component } from 'react'; import { Text, View } from 'react-native'; import Dialog from 'react-native-dialog'; import { connect as reduxConnect } from 'react-redux'; import type { Dispatch } from 'redux'; import { ColorSchemeRegistry } from '../../../base/color-scheme'; import { toJid } fr...