path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
client/js/utils/linkify.js
khlieng/name_pending
import Autolinker from 'autolinker'; import React from 'react'; const autolinker = new Autolinker({ stripPrefix: false, stripTrailingSlash: false }); export default function linkify(text) { if (!text) { return text; } let matches = autolinker.parseText(text); if (matches.length === 0) { return t...
public/js/cat_source/es6/components/review/QualityReportButton.js
matecat/MateCat
import React from 'react' import classnames from 'classnames' import {IconQR} from '../icons/IconQR' import CatToolStore from '../../stores/CatToolStore' import CattoolConstants from '../../constants/CatToolConstants' import CatToolActions from '../../actions/CatToolActions' /** * @NOTE because the state of this com...
src/svg-icons/av/sort-by-alpha.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSortByAlpha = (props) => ( <SvgIcon {...props}> <path d="M14.94 4.66h-4.72l2.36-2.36zm-4.69 14.71h4.66l-2.33 2.33zM6.1 6.27L1.6 17.73h1.84l.92-2.45h5.11l.92 2.45h1.84L7.74 6.27H6.1zm-1.13 7.37l1.94-5.18 1.94 ...
example/src/components/DataDrivenCircleColors.js
bsudekum/react-native-mapbox-gl
import React from 'react'; import MapboxGL from '@mapbox/react-native-mapbox-gl'; import sheet from '../styles/sheet'; import BaseExamplePropTypes from './common/BaseExamplePropTypes'; import Page from './common/Page'; const styles = MapboxGL.StyleSheet.create({ circles: { circleRadius: MapboxGL.StyleSheet.cam...
src/components/layout/Spinner.js
sPyOpenSource/personal-website
import React from 'react'; import spinner from './spinner.gif'; export default () => { return ( <div> <img src = {spinner} alt = "Loading..." style = {{ width: '200px', margin: ' 40px auto', display: 'block' }} /> </div> ); };
public/components/simplemap.js
mingderwang/kibana-react-d3-app
import React from 'react' import { Map, MarkerGroup } from 'react-d3-map' var data = { "type": "Feature", "properties": { "text": "this is a Point!!!" }, "geometry": { "type": "Point", "coordinates": [122, 23.5] } } var width = 700; var height = 700; // set your zoom scale va...
test/test_helper.js
jeremyvolla/ReduxBlog
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
src/svg-icons/image/flash-auto.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFlashAuto = (props) => ( <SvgIcon {...props}> <path d="M3 2v12h3v9l7-12H9l4-9H3zm16 0h-2l-3.2 9h1.9l.7-2h3.2l.7 2h1.9L19 2zm-2.15 5.65L18 4l1.15 3.65h-2.3z"/> </SvgIcon> ); ImageFlashAuto = pure(ImageFla...
src/index.js
mccorkle/SEWebFE
import React from 'react' import ReactDOM from 'react-dom' import App from "./components/App.js"; const rootEl = document.getElementById('app'); import { createStore } from 'redux' import main from './reducers' const store = createStore(main); const render = () => ReactDOM.render( <App/>, rootEl ); render(); s...
blueocean-material-icons/src/js/components/svg-icons/av/mic-off.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvMicOff = (props) => ( <SvgIcon {...props}> <path d="M19 11h-1.7c0 .74-.16 1.43-.43 2.05l1.23 1.23c.56-.98.9-2.09.9-3.28zm-4.02.17c0-.06.02-.11.02-.17V5c0-1.66-1.34-3-3-3S9 3.34 9 5v.18l5.98 5.99zM4.27 3L3 4.27l6.01 6.01V11c0 1.66 1.33 3 2.99...
client/containers/addNewWordForm/AddNewWordFormContainer.js
intanta/go-words
import React from 'react' import { connect } from 'react-redux' import * as actionCreators from '../../actions/words' import { bindActionCreators } from 'redux' import Loader from 'react-loader'; import AddNewWordForm from '../../components/addNewWordForm/AddNewWordForm'; class AddNewWordFormContainer extends React.C...
cheesecakes/plugins/settings-manager/admin/src/components/InputSelect/index.js
strapi/strapi-examples
/** * * InputSelect * */ import React from 'react'; import PropTypes from 'prop-types'; import { isEmpty, map } from 'lodash'; import { FormattedMessage } from 'react-intl'; import styles from './styles.scss'; /* eslint-disable react/require-default-props */ class InputSelect extends React.Component { // eslint-disa...
src/components/shop/Catalog.js
mangal49/HORECA
import React from 'react'; import { connect } from 'react-redux'; import * as actions from '../../actions'; import { Tabs, Tab } from 'material-ui/Tabs'; import ReactCSSTransitionGroup from "react-addons-css-transition-group"; import CustomerList from './CustomerList'; // import { // blue300, // indigo900, //...
_seraphim/src/elements/sphere/Core.js
goldbuick/src
import React from 'react'; import TWEEN from 'tween.js'; import * as THREE from 'three'; import tween from 'anim/tween'; import { inertiaRotation } from 'anim/quat'; import RenderObject from 'render/RenderObject'; import Mantle from './Mantle'; import Barrier from './Barrier'; import MantleGem from './MantleGem'; impo...
src/mobile/public/components/SectionContent/index.js
Perslu/rerebrace
import React from 'react'; import "./styles.css"; const SectionContent = (props) => ( <div className="SectionContent"> {props.children} </div> ); export default SectionContent
client/components/MultiplayerInfo.js
LinearAtWorst/cogile
import React, { Component } from 'react'; class MultiplayerInfo extends Component { constructor(props) { super(props); this.link = "http://nimblecode.io/#/multigame/" + this.props.gameId; } render() { return ( <div className="col-sm-12"> <h3 className="text-center no-top-margin">Multi...
vertex_ui/src/components/ColorPicker/Photoshop/PhotoshopButton.js
zapcoop/vertex
import React from 'react'; import reactCSS from 'reactcss'; export const PhotoshopBotton = ({ onClick, label, children, active }) => { const styles = reactCSS( { default: { button: { backgroundImage: 'linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)', border: '1px solid #87878...
src/components/App.js
Airse/react-minesweeper
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import GameBoard from './GameBoard'; import GameHeader from './GameHeader'; class App extends Component { constructor(props) { super(props); this.state = { difficulty: 'easy', }; this.onCreateGame = this.onCreateGa...
src/image/Controls/AddText.js
sanchesking9/image_builder
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Button from '../components/button'; @connect((state) => { const {image} = state; return {image}; }) export default class AddText extends Component { addText = () => { const {frame = {}} = this.props.image; const {left...
app/javascript/mastodon/features/community_timeline/index.js
masarakki/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader fro...
src/components/common/svg-icons/av/pause.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPause = (props) => ( <SvgIcon {...props}> <path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/> </SvgIcon> ); AvPause = pure(AvPause); AvPause.displayName = 'AvPause'; AvPause.muiName = 'SvgIcon'; export default AvP...
client/src/server/devtools.js
Pitzcarraldo/spring-react-redux-universal-example
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor defaultSize={1} toggleVisibilityKey='H' changePositionKey='P'> <LogMonitor /> </Doc...
src/js/Components/BlogPost.js
7sleepwalker/addicted-to-mnt
import React, { Component } from 'react'; import { Link } from 'react-router-dom' import GMap from '../Components/Map'; import Image from '../../img/cover1.png'; import { displayLocationElevation } from './Map/helpers/googleHandlers'; class BlogPost extends Component { constructor(props) { super(props); thi...
node_modules/rc-input-number/es/index.js
ZSMingNB/react-news
import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _extends from 'babel-runtime/helpers/extends'; import React from 'react'; import PropTypes from 'prop-types'; import createReactClass from 'create-react-class'; import classNames from 'classnames'; import mixin from './mixin'; import InputHandle...
imports/ui/RegisterForm/index.js
marcinwysocki/meteor-events
import React, { Component } from 'react'; import { withRouter } from 'react-router-dom'; import { Accounts } from 'meteor/accounts-base'; import RegisterForm from './RegisterForm'; const onSubmit = (username, password) => new Promise((resolve, reject) => { Accounts.createUser({ username, password }, (err, data) =...
src/routes/about/index.js
MarynaHapon/Data-root-react
/** * 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 Header from '../../co...
Lesson-11-Css_of_Project/jikexueyuanSass/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
wzj413718/Jikexueyuan
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/index.js
manu-garcia/react-pwa-from-scratch
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import App from './app'; import store from './store'; ReactDOM.render( <Provider store={store}> <App/> </Provider>, document.getElementById('application')); if ('serviceWorker' in navigator) { // Register ...
jenkins-design-language/src/js/components/material-ui/svg-icons/action/bookmark-border.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionBookmarkBorder = (props) => ( <SvgIcon {...props}> <path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"/> </SvgIcon> ); ActionBookmarkBorder.displayName = 'ActionBookmarkBorder'; ActionBookma...
src/components/RegistrationForm/RegistrationForm.js
dryzhkov/ps-react-dr
import React from 'react'; import PropTypes from 'prop-types'; import TextInput from '../TextInput'; import PasswordInput from '../PasswordInput'; /** Registration form with built-in validation. */ class RegistrationForm extends React.Component { constructor(props) { super(props); this.state = { user:...
app/components/Popover/PopOver.js
ivtpz/brancher
import React from 'react'; import * as styles from './PopOver.scss'; const PopOver = ({ order, text, xPos, yPos, totalLength, tutorialActive, currentlyDisplayedTutorial, viewNext, viewPrevious, closeTutorial }) => { const first = order === 1; const last = order === totalLength; const active =...
es/components/toolbar/toolbar.js
vovance/3d-demo
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; }; import React from 'react'; import PropTypes from 'prop-types'...
gifbox-ui/src/components/LoadingSpinner.js
timmygee/gifbox
import React from 'react'; import ProgressBar from 'react-toolbox/lib/progress_bar'; import styles from '/styles.scss'; const LoadingSpinner = () => ( <div className={ styles['loading-spinner-container'] }> <div className={ styles['loading-spinner'] }> <ProgressBar type='circular' multico...
src/components/AppSettingsMenu/ReleaseNotesPage.js
Charlie9830/pounder
import React, { Component } from 'react'; import { ListItem, ListItemText, List, withTheme, Typography } from '@material-ui/core'; import ReleaseNotes from '../../assets/release-notes'; import MarkdownViewer from '../MarkdownViewer'; let grid = { width: '100%', height: '100%', display: 'grid', gridTemp...
examples/macOs/components/checkbox.js
gabrielbull/react-desktop
import React, { Component } from 'react'; import { Checkbox } from 'react-desktop/macOs'; export default class extends Component { render() { return ( <Checkbox label="Check me!" onChange={(e) => console.log(e.target.value)} defaultValue="I got checked!" defaultChecked ...
src/svg-icons/av/explicit.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvExplicit = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-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 6h-4v2h4v2h-4v2h4v2H9V7h6v2z"/> </SvgIcon> ); AvExplicit = pure(AvExplic...
examples/async/index.js
doerme/redux
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import App from './containers/App' import configureStore from './store/configureStore' const store = configureStore() render( <Provider store={store}> <App /> </Provider>, document.get...
src/components/Logo/Logo.js
telemark/portalen-web
import React from 'react' import style from './style' import file from './logo.svg' const Logo = (props) => { let className = style.logo if (props.className) className += ` ${props.className}` return ( <img src={file} className={className} /> ) } Logo.propTypes = { className: React.PropTypes.string } ...
frontend/src/modules/otherlocales/components/OtherLocales.js
jotes/pontoon
/* @flow */ import React from 'react'; import { Localized } from '@fluent/react'; import './OtherLocales.css'; import Translation from './Translation'; import type { Entity, OtherLocaleTranslation } from 'core/api'; import type { NavigationParams } from 'core/navigation'; import type { UserState } from 'core/user';...
src/app.js
DenisIzmaylov/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel/polyfill'; import React from 'react'; import FastClick from 'fastclick'; import App from './components/App'; import Dispatcher from './core/Dispatcher'; import AppActions from './actions/AppActions'; import { ActionTypes } from './c...
src/client/createRoutes.js
AlesJiranek/este
import App from './app/App.react'; import Auth from './auth/Page.react'; import Home from './home/Page.react'; import Me from './me/Page.react'; import NotFound from './components/NotFound.react'; import React from 'react'; import Todos from './todos/Page.react'; import {IndexRoute, Route} from 'react-router'; export ...
src/svg-icons/action/settings-input-svideo.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsInputSvideo = (props) => ( <SvgIcon {...props}> <path d="M8 11.5c0-.83-.67-1.5-1.5-1.5S5 10.67 5 11.5 5.67 13 6.5 13 8 12.33 8 11.5zm7-5c0-.83-.67-1.5-1.5-1.5h-3C9.67 5 9 5.67 9 6.5S9.67 8 10.5 8h...
src/index.js
janrybka/lawendowe
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, IndexRedirect, hashHistory } from 'react-router' import App from './App'; import Gallery from './pages/Gallery'; import About from './pages/About'; import Contact from './pages/Contact'; import './index.css'; import 'dialog-polyfill/di...
ui/src/components/Input/Input.js
LearningLocker/learninglocker
import React from 'react'; import PropTypes from 'prop-types'; import { compose, setPropTypes, defaultProps } from 'recompose'; const enterKey = 13; const enhance = compose( setPropTypes({ id: PropTypes.string, value: PropTypes.string.isRequired, onChange: PropTypes.func.isRequired, onSubmit: PropTy...
actor-apps/app-web/src/app/components/sidebar/RecentSection.react.js
liuzwei/actor-platform
import _ from 'lodash'; import React from 'react'; import { Styles, RaisedButton } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import DialogActionCreators from 'actions/DialogActionCreators'; import DialogStore from 'stores/DialogStore'; import CreateGroupActionCreators from 'actions/CreateGro...
frontend/src/components/MessageSender.js
nepeat/chatforesnics
import React from 'react'; import { withRouter } from 'react-router'; import { connect } from 'react-redux'; import { getUser } from '../reducers/chatusers'; const MessageSender = ({ lastSender, chatuser }) => { return <p className='sender' key={'sender_' + lastSender}>{chatuser.name}</p>; }; const mapStateToProp...
examples/js/manipulation/multi-search-table.js
AllenFang/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; const fruits = [ 'banana', 'apple', 'orange', 'tomato', 'strawberries', 'cherries' ]; for (let i =...
examples/dynamic-segments/app.js
tmbtech/react-router
import React from 'react'; import { history } from 'react-router/lib/HashHistory'; import { Router, Route, Link, Redirect } from 'react-router'; var App = React.createClass({ render() { return ( <div> <ul> <li><Link to="/user/123">Bob</Link></li> <li><Link to="/user/abc">Sally</...
src/svg-icons/notification/airline-seat-recline-extra.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatReclineExtra = (props) => ( <SvgIcon {...props}> <path d="M5.35 5.64c-.9-.64-1.12-1.88-.49-2.79.63-.9 1.88-1.12 2.79-.49.9.64 1.12 1.88.49 2.79-.64.9-1.88 1.12-2.79.49zM16 19H8.93c-1.48 0...
src/js/components/_registerFields/AccessButtons.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { SOCIAL_NETWORKS_NAMES, FACEBOOK_SCOPE } from '../../constants/Constants'; import Button from '../ui/Button'; import translate from '../../i18n/Translate'; @translate('AccessButtons') export default class AccessButtons extends Compon...
actor-apps/app-web/src/app/components/Main.react.js
ruikong/actor-platform
import React from 'react'; import requireAuth from 'utils/require-auth'; import VisibilityActionCreators from '../actions/VisibilityActionCreators'; import FaviconActionCreators from 'actions/FaviconActionCreators'; import FaviconStore from 'stores/FaviconStore'; import ActivitySection from 'components/ActivitySecti...
examples/with-apollo-auth/pages/create-account.js
BlancheXu/test
import React from 'react' import Link from 'next/link' import { withApollo } from '../lib/apollo' import redirect from '../lib/redirect' import checkLoggedIn from '../lib/checkLoggedIn' import RegisterBox from '../components/RegisterBox' const CreateAccountPage = () => ( <> {/* RegisterBox handles all register l...
ajax/libs/react-instantsearch/4.0.0-beta.5/Dom.js
extend1994/cdnjs
/*! ReactInstantSearch 4.0.0-beta.5 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof def...
docs/app/Examples/collections/Menu/Variations/MenuExampleFixed.js
mohammed88/Semantic-UI-React
import React from 'react' import { Message } from 'semantic-ui-react' const MenuExampleFixed = () => { return ( <Message info> You can view examples of the <b>fixed</b> variation in the <a href='http://semantic-ui.com/collections/menu.html#fixed' target='_blank'> official documentation</a>. </Mes...
app/components/Score/index.js
theterra/newsb
import React from 'react'; export default class Score extends React.Component { //eslint-disable-line render() { const { score, subTitle } = this.props; return ( <div className="ink-flex vertical push-middle" style={{ padding: '0.4em' }}> <div className="main fw-700 extralarge">{score}</div> ...
app/src/routes/DeveloperTopStarredRepos.js
alpcanaydin/github-stats-for-turkey
import React from 'react'; import PropTypes from 'prop-types'; const DeveloperTopStarredRepos = ({ data }) => ( <div> <h1 className="title">En Çok Star Alan Repolar</h1> <h2 className="subtitle"> Bu geliştiricinin en çok start alan repoları </h2> <hr /> {data.length > 0 && <table cla...
docs/app/Examples/modules/Dropdown/States/DropdownExampleLoading.js
koenvg/Semantic-UI-React
import React from 'react' import { Dropdown } from 'semantic-ui-react' const options = [ { key: 1, text: 'Choice 1', value: 1 }, { key: 2, text: 'Choice 2', value: 2 }, ] const DropdownExampleLoading = () => ( <Dropdown text='Dropdown' options={options} loading /> ) export default DropdownExampleLoading
app/components/Header/index.js
acebusters/ab-web
import React from 'react'; import PropTypes from 'prop-types'; import Navbar from './Navbar'; import NavItem from './NavItem'; import { StyledHeader, StyledUser, StyledUserName, StyledUserImage, LogoWrapper, Balances, } from './styles'; import { Logo } from '../Logo'; import Link from '../Link'; import ...
src/svg-icons/editor/format-strikethrough.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatStrikethrough = (props) => ( <SvgIcon {...props}> <path d="M10 19h4v-3h-4v3zM5 4v3h5v3h4V7h5V4H5zM3 14h18v-2H3v2z"/> </SvgIcon> ); EditorFormatStrikethrough = pure(EditorFormatStrikethrough); Edit...
src/containers/NotFound/NotFound.js
TonyJen/react-redux-universal-hot-example
import React from 'react'; export default function NotFound() { return ( <div className="container"> <h1>Doh! 404!</h1> <p>These are <em>not</em> the droids you are looking for!</p> </div> ); }
src/components/lists/RecentBlockList.js
openvcash/vcash-electron
import React from 'react' import List from 'react-list' import { translate } from 'react-i18next' import { inject, observer } from 'mobx-react' /** Component */ import RecentBlockListItem from './RecentBlockListItem.js' @translate(['common']) @inject('gui', 'statistics') @observer class RecentBlockList extends React....
src/js/admin/photos/photo-group/photo-group-delete-div/photo-group-delete-div/photo-group-delete-div.js
ucev/blog
import React from 'react' import { connect } from 'react-redux' import PhotoGroupDeleteDialog from '../photo-group-delete-dialog' import OperationCancelButton from '$components/buttons/operation-cancel-button' import { pfobDeleteDialogVisible } from '$actions/photos' import './photo-group-delete-div.style.scss' con...
client/src/resources/honesty-policy.js
otavioarc/freeCodeCamp
import React from 'react'; const policy = [ <p> Before we issue our verified certification to a camper, he or she must accept our Academic Honesty Pledge, which reads: </p>, <p> "I understand that plagiarism means copying someone else’s work and presenting the work as if it were my own, without c...
public/scripts/main.js
Ohems/watodo
import React from 'react'; // eslint-disable-line no-unused-vars import { render } from 'react-dom'; import { BrowserRouter } from 'react-router-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { composeWithDevTools } from 'redux-devtools-extension/developmentOn...
TGMeituan/Components/Common/CommonCell.js
targetcloud/Meituan
/** * Created by targetcloud on 2016/12/21. */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Image, TouchableOpacity } from 'react-native'; var CommonCell = React.createClass({ getDefaultProps(){ return{ leftIcon: '', ...
docs/public/static/examples/v43.0.0/tutorial/image-picker-show.js
exponentjs/exponent
import React from 'react'; import { Image, StyleSheet, Text, TouchableOpacity, View } from 'react-native'; import * as ImagePicker from 'expo-image-picker'; export default function App() { let [selectedImage, setSelectedImage] = React.useState(null); let openImagePickerAsync = async () => { let permissionResu...
app/components/FileList.js
fatiherikli/fil
import _ from 'underscore'; import React from 'react'; import ReactDOM from 'react-dom'; import {connect} from 'react-redux'; import classNames from 'classnames'; import {createFile, deleteFile, renameFile, openFile} from 'actions/files'; import {buildPermalink} from 'helpers'; class FileRenameForm extends R...
src/views/components/HlsPlayer.js
physiii/open-automation
import React from 'react'; import PropTypes from 'prop-types'; import Hls from '../../lib/hls/hls.js'; import fscreen from 'fscreen'; import './VideoPlayer.css'; export class HlsPlayer extends React.Component { constructor (props) { super(props); // Copying props to state here because we specifically only care a...
src/components/TextInputCSSModules/TextInputCSSModules.js
chadacious/ps-react-chadacious
import React from 'react'; import PropTypes from 'prop-types'; import Label from '../Label'; import styles from './textInput.css'; /** Text input with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */ function TextInputCSSModules({htmlId, name, label...
app/javascript/mastodon/features/ui/components/column.js
TootCat/mastodon
import React from 'react'; import ColumnHeader from './column_header'; import PropTypes from 'prop-types'; import { debounce } from 'lodash'; const easingOutQuint = (x, t, b, c, d) => c*((t=t/d-1)*t*t*t*t + 1) + b; const scrollTop = (node) => { const startTime = Date.now(); const offset = node.scrollTop; con...
pages/loader-components.js
pagesource/fusion
import React from 'react'; import { ThemeProvider } from 'theming'; import { Loader, ProgressBar, ProgressCircle, Ripples, theme } from '../'; import Layout from './components/Layout'; const ContentComponent = () => ( <Layout> <ThemeProvider theme={theme}> <div> <h2>Progress & Activity</h2> ...
ui/src/views/gateways/UpdateGateway.js
jcampanell-cablelabs/lora-app-server
import React, { Component } from 'react'; import GatewayStore from "../../stores/GatewayStore"; import GatewayForm from "../../components/GatewayForm"; class UpdateGateway extends Component { static contextTypes = { router: React.PropTypes.object.isRequired }; constructor() { super(); this.state =...
packages/wix-style-react/src/TrendIndicator/TrendIndicator.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import SortByArrowUp from 'wix-ui-icons-common/system/SortByArrowUp'; import SortByArrowDown from 'wix-ui-icons-common/system/SortByArrowDown'; import { st, classes } from './TrendIndicator.st.css'; import { dataHooks } from './constants'; /** TrendIndicat...
src/routes/privacy/index.js
bobbybeckner/ha-catalyst-test
/** * 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/components/common/SourceTable.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import Link from 'react-router/lib/Link'; import { FormattedMessage, injectIntl, FormattedNumber, FormattedDate } from 'react-intl'; import FilledStarIcon from './icons/FilledStarIcon'; import messages from '../../resources/messages'; import { googleFavIcon...
src/components/Feedback/Feedback.js
pawsong/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback { render() { return ( <div className="Feedback"> <div className="Feedba...
src/components/topic/MediaTable.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { FormattedMessage, FormattedNumber, injectIntl } from 'react-intl'; import ArrowDropDownIcon from '@material-ui/icons/ArrowDropDown'; import messages from '../../resources/messages'; import LinkWithFilters from './LinkWithFilters'; import { googleFa...
src/components/component-loader.js
azz0r/wwe-draft-generator
import React from 'react' import PropTypes from 'prop-types' const ComponentLoader = ({ isLoading = true, error = null, pastDelay = null, }) => { if (isLoading) { return pastDelay ? <div>Loading...</div> : null } else if (error) { return <div>Error! Component failed to load</div> } return null } Comp...
src/components/navigation/AppDrawer.js
ayltai/fishing-club
// @flow 'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import { observer } from 'mobx-react'; import muiThemeable from 'material-ui/styles/muiThemeable'; import Divider from 'material-ui/Divider'; import Drawer from 'material-ui/Drawer'; import FontIcon from 'material-ui/FontIcon'; impor...
example/src/screens/transitions/sharedElementTransitions/Profiles/Profiles.js
luggit/react-native-navigation
import React, { Component } from 'react'; import { ScrollView, TouchableOpacity, StyleSheet, Image, Text, View, ScrolView } from 'react-native'; import { SharedElementTransition } from 'react-native-navigation'; import * as Animatable from 'react-native-animatable'; const FADE_DURATION = 50...
dv-website/src/OldChengDu.js
hchen13/bigdatarecruit
import React, { Component } from 'react'; import './ColorIt.css'; import { Icon, Row, Col, Card, Popover, Button} from 'antd'; import c1 from './media/oldCD/1.jpg'; import c2 from './media/oldCD/2.jpg'; import c3 from './media/oldCD/3.jpg'; import c4 from './media/oldCD/4.jpg'; import c5 from './media/oldCD/5.jpg'; im...
docs/src/app/AppRoutes.js
lawrence-yu/material-ui
import React from 'react'; import { Route, Redirect, IndexRoute, } from 'react-router'; // Here we define all our material-ui ReactComponents. import Master from './components/Master'; import Home from './components/pages/Home'; import RequiredKnowledge from './components/pages/get-started/RequiredKnowledge'; i...
src/svg-icons/action/supervisor-account.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSupervisorAccount = (props) => ( <SvgIcon {...props}> <path d="M16.5 12c1.38 0 2.49-1.12 2.49-2.5S17.88 7 16.5 7C15.12 7 14 8.12 14 9.5s1.12 2.5 2.5 2.5zM9 11c1.66 0 2.99-1.34 2.99-3S10.66 5 9 5C7.34 5 6 ...
src/profesor.js
zeljkoX/e-learning
require("babel/polyfill"); import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route , IndexRoute, Redirect} from 'react-router'; import createHistory from 'history/lib/createHashHistory'; var injectTapEventPlugin = require("react-tap-event-plugin"); injectTapEventPlugin(); import FullScreen...
client/components/Pagination.js
raymestalez/vertex
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchSettings } from '../actions/index'; import { Link } from 'react-router'; class Pagination extends Component { render() { var currentPage = parseInt(this.props.location.query.page ? this.props.location.query.page ...
js/components/log.js
codeocelot/yewno-client
import React from 'react' // import Logs from './logs' import config from '../config/config' import request from 'superagent' import LogTable from './logTable' export default class Log extends React.Component{ constructor(props){ super(props); this.props = props; this.state = {logset:[]} } getLogs = ...
src/bestResult.js
instantsearch/instantsearch-React-widget
import React from 'react'; import ReactDOM from 'react-dom'; import BestResult from './components/BestResult'; import NoResults from './components/NoResults'; // instantsearch.js custom widget with React function bestResult({container}) { // See more details in our documentation: // https://community.algolia.com/...
client/pages/control.js
quarterto/almanac
import React from 'react' import { compose, withHandlers, withProps } from 'recompact' import BlockLayout from '../collection/block-layout' import Icon from '../visual/icon' import { withCampaignData } from '../data/campaign' import { assertAmOwner } from '../data/owner' import { MenuLink } from '../visual/menu' import...
src/mobile/components/UsersDrawer/WaitlistPosition.js
welovekpop/uwave-web-welovekpop.club
import React from 'react'; import PropTypes from 'prop-types'; const WaitlistPosition = ({ position }) => ( <span className="UsersDrawer-position"> {position} </span> ); WaitlistPosition.propTypes = { position: PropTypes.number.isRequired, }; export default WaitlistPosition;
client/modules/App/components/DevTools.js
Gin-And-Tomic/tune-stream
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-w" > <LogMonitor /> ...
src/components/AddItemObject.js
allsportster023/imageViewer
/** * Created by bslaugh on 7/9/17. */ import React from 'react'; import '../styles/main.css'; import plusSign from '../images/green-plus-sign.png'; class AddItemObject extends React.Component { render() { return ( <div id="addItemDiv" className="noselect" onClick={this.props.addAction} > <spa...
src/svg-icons/places/ac-unit.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesAcUnit = (props) => ( <SvgIcon {...props}> <path d="M22 11h-4.17l3.24-3.24-1.41-1.42L15 11h-2V9l4.66-4.66-1.42-1.41L13 6.17V2h-2v4.17L7.76 2.93 6.34 4.34 11 9v2H9L4.34 6.34 2.93 7.76 6.17 11H2v2h4.17l-3.2...
components/PersonalInfomation.js
goominc/goommerce-seller-native
'use strict'; import React from 'react'; import { ScrollView, Text } from 'react-native'; export default React.createClass({ render() { return ( <ScrollView> <Text> {` 주식회사 에이프릴(이하 "회사")은 회사가 제공하는 인터넷사이트(www.linkshops.com)(이하 "몰")를 이용하는 회원의 개인정보를 보호하기 위하여 정보통신망 이용촉진 및 정보보호 등에 관한 법률, 개인정보 보...
src/HomePage/create-container-mock.js
helloncanella/finn
import React from 'react' export default function createContainerMock(propsFunction, Component) { return (additionalProps) => { let props = Object.assign({}, additionalProps, propsFunction()) , { reference } = additionalProps return <Component {...props} ref={reference}></Component> } }
app/utils/CommonUtils.js
yanbober/RNPolymerPo
/* * MIT License * * Copyright (c) 2016 yanbo * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, m...
src/client/components/list/menu/ListContextMenu.js
DBCDK/content-first
import React from 'react'; import {connect} from 'react-redux'; import T from '../../base/T'; import {withList} from '../../hoc/List'; import {OPEN_MODAL} from '../../../redux/modal.reducer'; import ContextMenu, {ContextMenuAction} from '../../base/ContextMenu'; import {HISTORY_REPLACE} from '../../../redux/middlewa...
src/parser/druid/feral/modules/bleeds/RakeUptime.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import Enemies from 'parser/shared/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...
node_modules/react-bootstrap/es/MediaLeft.js
yeshdev1/Everydays-project
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 ...
fields/types/text/TextFilter.js
lojack/keystone
import React from 'react'; import { FormField, FormInput, FormSelect, SegmentedControl } from 'elemental'; const TOGGLE_OPTIONS = [ { label: 'Matches', value: false }, { label: 'Does NOT Match', value: true } ]; const MODE_OPTIONS = [ { label: 'Contains', value: 'contains' }, { label: 'Exactly', value: 'exactly'...
src/svg-icons/social/poll.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPoll = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/> </SvgIcon> ); SocialPoll = ...