path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/entry/SelectWallet.js | safex/safex_wallet | import React from 'react';
import {Link} from 'react-router';
import {
decryptWalletData,
DEFAULT_WALLET_PATH,
downloadWallet,
loadWalletFromFile,
flashField,
} from '../../utils/wallet';
import {
walletResetModal,
walletResetModalStep
} from '../../utils/modals';
import packageJson from... |
app/javascript/mastodon/containers/timeline_container.js | verniy6462/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 PublicTim... |
assets/jqwidgets/demos/react/app/ribbon/verticalribbon/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxRibbon from '../../../jqwidgets-react/react_jqxribbon.js';
import JqxCheckBox from '../../../jqwidgets-react/react_jqxcheckbox.js';
class App extends React.Component {
componentDidMount() {
this.refs.megaMenuMode.on('change', (event) =... |
docs/app/Examples/modules/Dropdown/Content/index.js | clemensw/stardust | 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 DropdownContentExamples = () => (
<Example... |
node_modules/react-bootstrap/es/Table.js | nikhil-ahuja/Express-React | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/Pagination.js | jesenko/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import bootstrapUtils, { bsClass } from './utils/bootstrapUtils';
import PaginationButton from './PaginationButton';
import elementType from 'react-prop-types/lib/elementType';
import SafeAnchor from './SafeAnchor';
const Pagination = React.createClass({
... |
src/src/Components/CustomSelect.js | ioBroker/ioBroker.web | import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { FormControl, FormHelperText, Input, MenuItem, Select, withStyles } from '@material-ui/core';
import I18n from '@iobroker/adapter-react/i18n';
import Icon from '@iobroker/adapter-react/Components/Icon';
import Utils from '... |
src/index.js | nimibahar/newReduxBlog | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import promise from 'redux-promise';
import reducers from './reducers';
import PostsIndex from "./... |
pages/index/index.js | CarlRosell/glamorous-website | import React from 'react'
import glamorous from 'glamorous'
import {LiveProvider, LiveEditor, LiveError} from 'react-live'
import {LiveContextTypes} from 'react-live/lib/components/Live/LiveProvider'
import stripIndent from '../../components/utils/strip-indent'
import {withContent} from '../../components/locale'
import... |
src/pages/Home.js | jo12bar/blag | import React from 'react';
import deline from 'deline';
import styles from '../css/Home';
const ArticleLink = ({ href, children }) => (
<a
className={styles.articleLinks}
target='_blank'
href={href}
rel='noopener noreferrer'
>
{children}
</a>
);
const Home = () => (
<div className={styles.... |
src/svg-icons/action/event.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionEvent = (props) => (
<SvgIcon {...props}>
<path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"/>
</SvgIcon>
... |
src/components/Forms/Signup.js | txwkx/book-room | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { withRouter } from 'react-router';
import axios from 'axios';
import FormInput from './FormInput';
import Success from './Success';
class Signup extends Component {
state = {
success: false
}
handleSignup = (e) => {
... |
src/containers/jupyterlab-integration/instructions.js | OpenChemistry/mongochemclient | import React, { Component } from 'react';
import { connect } from 'react-redux';
import GirderClient from '@openchemistry/girder-client';
import { auth } from '@openchemistry/girder-redux';
import { selectors, jupyterlab } from '@openchemistry/redux';
import InstructionsComponent from '../../components/jupyterlab-integ... |
src/components/controls/Buttons/MaterialButton.js | TTCErembodegem/TTC-React-Front | import React from 'react';
import Button from '@material-ui/core/Button';
import PropTypes from '../../PropTypes.js';
// This transforms the material-ui Button from v0.x to the new API
export class MaterialButton extends React.Component {
static propTypes = {
label: PropTypes.string.isRequired,
primary: Pro... |
src/client.js | anshul2209/Chatter | import React from 'react';
import ReactDOM from 'react-dom';
import ChatApp from './components/ChatApp';
ReactDOM.render(<ChatApp />, document.getElementById('content'));
|
src/javascript/wizard/orient.js | apertus-open-source-cinema/elmyra | import React from 'react';
import {
AmbientLight,
AxesHelper,
Color,
DoubleSide,
Geometry,
Mesh,
PerspectiveCamera,
PointLight,
Quaternion,
Scene,
Vector3,
WebGLRenderer
} from 'three';
import { OBJLoader } from 'three/examples/jsm/loaders/OBJLoader.js';
import MediaType from './media_type.js';... |
app/addons/replication/components/newreplication.js | michellephung/couchdb-fauxton | // 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 writing, software
// distributed un... |
src/index.js | SayonaraJS/Adios | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
actor-apps/app-web/src/app/components/common/Favicon.react.js | jamesbond12/actor-platform | import React from 'react';
import FaviconStore from 'stores/FaviconStore';
export default class Fav extends React.Component {
constructor(props) {
super(props);
FaviconStore.addChangeListener(this.update)
}
componentWillUnmount() {
FaviconStore.removeChangeListener(this.update);
}
update() {
... |
src/components/dom3d.js | DarklyLabs/LaserWeb4 | // Copyright 2016 Todd Fleming
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is dist... |
src/GreenNav.js | jrios6/GreenNav | import React, { Component } from 'react';
import ol from 'openlayers';
import { Toolbar, ToolbarGroup, ToolbarSeparator, ToolbarTitle } from 'material-ui/Toolbar';
import FlatButton from 'material-ui/FlatButton';
import { green50 } from 'material-ui/styles/colors';
import FontIcon from 'material-ui/FontIcon';
import Di... |
src/components/Header.js | jasongforbes/dorian-js | import React from 'react';
const Header = function render(props) {
return (
<div className="header">
<img className="avatar" src={props.avatar} alt={props.avatarAlt} />
<h1>{props.title}</h1>
<p>{props.description}</p>
</div>
);
};
Header.propTypes = {
avatar: React.PropTypes.string.i... |
html.js | minseokim/blog | import React from 'react';
import Helmet from 'react-helmet';
import { prefixLink } from 'gatsby-helpers';
const BUILD_TIME = new Date().getTime();
module.exports = React.createClass({
displayName: 'HTML',
propTypes: {
body: React.PropTypes.string,
},
render() {
const { body } = this.props;
const ... |
app/js/home/index.js | DawChihLiou/ci-boilerplate | import React from 'react'
import Test from '../common/Test'
const Home = () => (
<div className="text-center">
<h1>This is Home View.</h1>
<Test />
</div>
)
export default Home
|
src/components/StoriesComponent.js | jimmymintzer/reacter-news | import React from 'react';
import { Link } from 'react-router';
import StoryComponent from './StoryComponent';
import LoaderComponent from './LoaderComponent';
const StoriesComponent = ({ loading, stories, page, linkTo, userId }) => {
document.title = 'Reacter News';
const storiesComponents = stories.map((story)... |
js/App/Components/TabViews/SubViews/Jobs/NowRow.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... |
fields/types/Field.js | ONode/keystone | import classnames from 'classnames';
import evalDependsOn from '../utils/evalDependsOn.js';
import React from 'react';
import { findDOMNode } from 'react-dom';
import { FormField, FormInput, FormNote } from '../../admin/client/App/elemental';
import blacklist from 'blacklist';
import CollapsedFieldLabel from '../compon... |
spec/coffeescripts/react_files/components/UsageRightsSelectBoxSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2015 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/index.js | hongkheng/hdb-resale | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, Redirect, IndexRedirect, browserHistory } from 'react-router';
import App from './components/App';
import Charts from './components/Charts';
import Maps from './components/Maps';
import About from './components/About';
import {ChartSe... |
src/modules/Components/User/Sidebar.js | rtellez700/MESA_Connect_2.0 | import React, { Component } from 'react';
class Sidebar extends Component {
_onClick(e){
e.preventDefault();
$('#RT_Sidebar').toggleClass('open');
console.log(e.target)
}
render() {
return (
<div id="RT_Sidebar" className="RT_Sidebar">
<div className="selector-toggle">
<a hre... |
src/containers/PreviewPetition.js | iris-dni/iris-frontend | import React from 'react';
import Helmet from 'react-helmet';
import { connect } from 'react-redux';
import { fetchPetition, publishPetition } from 'actions/PetitionActions';
import settings from 'settings';
import PreviewPetition from 'components/PreviewPetition';
import getPetitionForm from 'selectors/petitionForm';
... |
src/app/routes/forms/components/layouts/OrderForm.js | backpackcoder/world-in-flames | import React from 'react'
import UiValidate from '../../../../components/forms/validation/UiValidate'
import MaskedInput from '../../../../components/forms/inputs/MaskedInput'
import UiDatepicker from '../../../../components/forms/inputs/UiDatepicker'
const validationOptions = {
// Rules for form validation
rule... |
src/components/wallet/AddressGet.js | whphhg/vcash-electron | import React from 'react'
import { translate } from 'react-i18next'
import { inject, observer } from 'mobx-react'
import { action, computed, extendObservable, reaction } from 'mobx'
/** Ant Design */
import AutoComplete from 'antd/lib/auto-complete'
import Button from 'antd/lib/button'
import Input from 'antd/lib/inpu... |
app/client/components/creationForm/Leaderboard.js | breakfast-mimes/cyber-mimes | import React from 'react';
import { Link } from 'react-router';
import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table';
const Leaderboard = React.createClass({
// {results.map((char,i)=>
// <li key={i}>{"character name: " + char.charactername + " level " + char.level}</li>)}
componentWillMount(... |
docs/src/app/components/pages/components/SelectField/ExampleMultiple.js | spiermar/material-ui | import React from 'react';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
const style = {
overflow: 'hidden',
whiteSpace: 'nowrap',
};
export default class SelectFieldExampleMultiple extends React.Component {
constructor(props) {
super(props);
this.state... |
EventEmitter.Client/src/routes/Calendar/components/CalendarView.js | Stelmashenko-A/EventEmitter | import React from 'react'
import { Button } from 'react-mdl'
import BigCalendar from 'react-big-calendar'
import moment from 'moment'
import events from './events'
import './CalendarView.scss'
import 'react-big-calendar/lib/css/react-big-calendar.css'
BigCalendar.setLocalizer(
BigCalendar.momentLocalizer(moment)
)
e... |
App/db/entities/content/Events/Theatre.js | nathb2b/mamasound.fr | /*
* Copyright (c) 2017. Caipi Labs. All rights reserved.
*
* This File is part of Caipi. You can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
... |
src/containers/hoc-messenger.js | MoveOnOrg/mop-frontend | import React from 'react'
import PropTypes from 'prop-types'
import { petitionShortCode } from '../lib'
import Config from '../config'
function getMobileMessengerLink(encodedValue) {
// testing messenger link on mobile only first
return `fb-messenger://share?link=${encodedValue}&app_id=${encodeURIComponent(Config.... |
src/client/scenes/User/UserInfo/index.js | kettui/webcord-web-app | import React, { Component } from 'react';
import { observer, inject } from 'mobx-react';
import { autobind } from 'core-decorators';
import classNames from 'classnames/bind';
import { Image, Item } from 'semantic-ui-react';
import { ActivityChart, Avatar, Loading } from 'components/';
import * as date from 'utils/date... |
src/components/containers/sidebar-layout-container.js | HuangXingBin/goldenEast | import React from 'react';
import { connect } from 'react-redux';
import store from '../../store';
import styles from '../../app.less';
import { Link } from 'react-router';
import { sidebarCollapse } from '../../actions/app-interaction-actions';
import imgSrc from '../../appConstants/assets/images/logo_white.png';
impo... |
src/components/Inspector/Trackers/index.js | Secretmapper/react-transmission | import React from 'react';
import CSSModules from 'react-css-modules';
import TrackerGroup from './TrackerGroup';
import styles from './styles/index.css';
function Trackers({ info }) {
return (
<div>
{info.trackers.map(({ name, trackers }, index) => (
<div key={index}>
{info.trackers.le... |
docs/src/pages/index.js | evanlucas/node-tap | import React from 'react';
import Navbar from '../components/navbar';
import Hero from '../components/home/hero';
import Features from '../components/home/features';
import WhyTap from '../components/home/whyTap';
import Credits from '../components/home/credits';
import {ThemeProvider} from 'styled-components';
import ... |
admin/client/App/shared/AlertMessages.js | creynders/keystone | import React from 'react';
import { Alert } from 'elemental';
import { upcase } from '../../utils/string';
/**
* This renders alerts for API success and error responses.
* Error format: {
* error: 'validation errors' // The unique error type identifier
* detail: { ... } // Optional details specific to t... |
src/components/results/result/Result.js | jahuk/bet-platform-react | import React from 'react';
import {Link} from 'react-router';
const Result = ({id, home, away, result}) => (
<tr>
<td>{home}</td>
<td>{result}</td>
<td>{away}</td>
<td><Link className="badge" to={{pathname: `/match/${id}`}}>GO</Link></td>
</tr>
);
Result.propTypes = {
id: React.PropTypes.number,... |
src/views/App.js | isaaguilar/pumpkin-basket | import React from 'react'
import { hashHistory } from 'react-router'
import { Link, withRouter } from 'react-router'
import { connect } from 'react-redux'
import AppBar from 'material-ui/AppBar'
import IconButton from 'material-ui/IconButton';
import IconMenu from 'material-ui/IconMenu';
import MenuItem from 'material-... |
src/components/login-register/Login.js | ariroseonline/bargame | import React from 'react';
var Login = React.createClass({
contextTypes: {
router: React.PropTypes.object.isRequired
},
getInitialState: function(){
return {
error: false
}
},
handleGoogle: function() {
var provider = new firebase.auth.GoogleAuthProvide... |
spec/coffeescripts/react_files/components/RestrictedDialogFormSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2014 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | alejandro-panos/AngularHeroes | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
es/components/toolbar/toolbar-load-button.js | dearkaran/react-planner | import React from 'react';
import PropTypes from 'prop-types';
import IconLoad from 'react-icons/lib/fa/folder-open-o';
import ToolbarButton from './toolbar-button';
import { browserUpload } from '../../utils/browser';
export default function ToolbarLoadButton(_ref, _ref2) {
var state = _ref.state;
var translator ... |
src/app/component/offer-card/offer-card.js | all3dp/printing-engine-client | import PropTypes from 'prop-types'
import React from 'react'
import propTypes from '../../prop-types'
import buildClassName from '../../lib/class-names'
const OfferCard = ({
classNames,
label,
value,
recommendation,
sublineLeft,
sublineRight,
children,
action
}) => (
<div className={buildClassName('... |
src/Main.js | bcgodfrey91/tier-2 | import React, { Component } from 'react';
import { Router, IndexRoute, Route, browserHistory } from 'react-router';
import Nav from './NavBar';
class Main extends Component {
render(){
return(
<div>
<Nav />
<div>
{this.props.children}
</div>
</div>
)
}
}
ex... |
js/components/card/basic.js | LetsBuildSomething/vmag_mobile |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Icon, Card, CardItem, Text, Body, Left, Right } from 'native-base';
import { Actions } from 'react-native-router-flux';
... |
components/pages/Layout.js | freyconner24/Quizzly | "use strict";
import React from 'react'
import {browserHistory} from 'react-router'
import {Sidebar} from '../partials/Sidebar.js'
import {Header} from '../partials/Header.js'
import {ProfileModal} from '../partials/ProfileModal.js'
import {UrbanAirshipPush} from 'urban-airship-push'
export default class Layout exte... |
pages/api/popover.js | cherniavskii/material-ui | import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from './popover.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default withRoot(Page);
|
client/components/FriendsPref.js | carlbernardo/gut | import React from 'react';
import { Button } from 'react-bootstrap';
//Components
import FriendsList from './FriendsList';
import SelectedFriends from './SelectedFriends';
class FriendsPref extends React.Component {
constructor(){
super();
this.displayRestaurantResults = this.displayRestaurantResults.bind(t... |
app/components/pages/About.js | shalomvolchok/isomorphic-react-base-app | /**
* Copyright 2015, Digital Optimization Group, LLC.
* Copyrights licensed under the APACHE 2 License. See the accompanying LICENSE file for terms.
*/
import React from 'react';
class About extends React.Component {
render() {
return (
<div className="container">
<h1>{this.props.aboutMsg}</h1>
</di... |
packages/material-ui-icons/src/SpaceBar.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M18 9v4H6V9H4v6h16V9z" /></g>
, 'SpaceBar');
|
modules/RouterContext.js | taion/rrtr | import invariant from 'invariant'
import React from 'react'
import deprecateObjectProperties from './deprecateObjectProperties'
import getRouteParams from './getRouteParams'
import { isReactChildren } from './RouteUtils'
import warning from './routerWarning'
const { array, func, object } = React.PropTypes
/**
* A <... |
actor-apps/app-web/src/app/components/modals/Preferences.react.js | changjiashuai/actor-platform | import React from 'react';
import Modal from 'react-modal';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import { Styles, FlatButton, RadioButtonGroup, RadioButton, DropDownMenu } from 'material-ui';
import { KeyCodes } from 'constants/ActorAppConstants';
import Actor... |
src/components/pages/roomA/index.js | kcliu/chatroom-frontend | import React, { Component } from 'react';
import loremIpsum from 'lorem-ipsum';
import moment from 'moment';
import MessageBox from '../../common/MessageBox/index.js';
import MessageInput from '../../common/MessageInput/index.js';
import Message from '../..//common/Message/index.js';
import MembersBox from '../../comm... |
src/Field.js | bradwestfall/informative | import React from 'react'
import PropTypes from 'prop-types'
import { InputField, CheckboxField, RadioField, SelectField, TextareaField } from './FieldTypes'
class Field extends React.Component {
constructor() {
super()
this.onChange = this.onChange.bind(this)
this.setupFieldState = this.setupFieldState... |
src/slides/iterators.js | philpl/talk-observe-the-future | import React from 'react'
import { Slide, Text, CodePane } from 'spectacle'
import { codeBackground } from '../constants/colors'
import iterator from '~/assets/iterator.example'
export default (
<Slide transition={[ 'slide' ]}>
<Text
textColor='tertiary'
textSize='1.8em'
margin='30px'>
... |
src/pages/Admin/Assets/Assets.js | muhammadsayuti/releasify-server | import React from 'react'
import moment from 'moment'
import PropTypes from 'prop-types'
import Table from '@material-ui/core/Table'
import TableRow from '@material-ui/core/TableRow'
import TableBody from '@material-ui/core/TableBody'
import TableCell from '@material-ui/core/TableCell'
import TableHead from '@material-... |
apps/marketplace/components/Alerts/ErrorAlert.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react'
import PropTypes from 'prop-types'
import { Errors } from 'react-redux-form'
import PageAlertError from './PageAlertError'
const ErrorAlert = props => {
const { messages, model } = props
return (
<Errors
model={model}
show={field => field.touched && !field.focus}
m... |
app/javascript/mastodon/features/ui/components/focal_point_modal.js | pixiv/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { connect } from 'react-redux';
import ImageLoader from './image_loader';
import classNames from 'classnames';
import { changeUploadCompose } from '../../../... |
lib/components/ContractExecution/index.js | gmtcreators/atom-solidity | 'use babel'
// Copyright 2018 Etheratom Authors
// This file is part of Etheratom.
// Etheratom is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any la... |
node_modules/react-router/es6/withRouter.js | MichaelWiss/React_E | 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 invariant from 'invariant';
import React from 'react';... |
app/javascript/mastodon/features/ui/components/focal_point_modal.js | vahnj/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { connect } from 'react-redux';
import ImageLoader from './image_loader';
import classNames from 'classnames';
import { changeUploadCompose } from '../../../... |
app/containers/RepoListItem/index.js | KyleAWang/react-boilerplate | /**
* RepoListItem
*
* Lists the name and the issue count of a repository
*/
import React from 'react';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { FormattedNumber } from 'react-intl';
import { makeSelectCurrentUser } from 'containers/App/selectors';
import... |
src/svg-icons/device/screen-lock-landscape.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceScreenLockLandscape = (props) => (
<SvgIcon {...props}>
<path d="M21 5H3c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-2 12H5V7h14v10zm-9-1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1v-1c... |
springboot/GReact/node_modules/react-bootstrap/es/Col.js | ezsimple/java | 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 ... |
web_client/dev/components/header/Header.js | crazy-valseeker/carzyfish | /**
* Created by valseek on 17-2-6.
*/
import React from 'react';
import {Component} from 'react-dom'
import './Header.less'
class Header extends Component{
render(){
return(
<div className="cf-header">
</div>
);
}
}
module.exports=Header; |
code/schritte/3-remote/src/GreetingMaster.js | st-he/react-workshop | import React from 'react';
const GreetingMaster = (props) => {
const {greetings, onAdd} = props;
const body = greetings.map(greeting => <tr key={greeting.id}><td>{greeting.name}</td><td>{greeting.greeting}</td></tr>);
return (
<div>
<table>
<thead>
<tr><t... |
src/components/IconButton/IconButton.js | rajeshpillai/zs-react-pattern-lib | import React from 'react';
import PropTypes from 'prop-types';
import './iconbutton.css';
function IconButton({icon, location, onClick, children }) {
return (
<button className="button" onClick= {onClick}>
{location === "left" && <i className={icon} aria-hidden="true"/>}
{children} ... |
jrt/src/routes/home/index.js | wizzardo/jrtorrent | import React from 'react';
import './style.css';
import {DiskUsage} from "../../components/DiskUsage";
import {TorrentsList} from "../../components/TorrentsList";
import AddButton from "../../components/AddButton";
const Home = () => (
<div className='home'>
<DiskUsage />
<TorrentsList/>
<AddButton/>
</div>
);... |
src/pages/vintage.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Vintage' />
)
|
src/js/PaginationContainer.js | Pearson-Higher-Ed/pagination | import React from 'react';
import Pagination from './Pagination';
export default class PaginationContainer extends React.Component {
constructor(props) {
super(props);
this.state = {
activePage: props.activePage,
compactText: props.compactText };
}
setActive = (eventKey) => {
this.setSt... |
src/svg-icons/hardware/tv.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareTv = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.1-.9-2-2-2zm0 14H3V5h18v12z"/>
</SvgIcon>
);
HardwareTv = pure(Hardwar... |
React/React-ruan/demo13/src/app.js | duolew/project-zhp | import React from 'react';
export default class App extends React.Component{
constructor(props) {
super(props);
this.render = this.render.bind(this);
this.state = {
items: this.props.items,
disabled: true
};
}
componentDidMount() {
this.setState({
disabled: false
})
... |
src/routes/register/index.js | jhlav/mpn-web-app | /**
* 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... |
CompositeUi/src/views/component/CardExtended.js | kreta-io/kreta | /*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <benatespina@gmail.com>
* (c) Gorka Laucirica <gorka.lauzirika@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import './../../scss/components/_card-ext... |
packages/vx-text/src/text/TextWrap.js | Flaque/vx | import React from 'react';
import cx from 'classnames';
const svgNS = "http://www.w3.org/2000/svg";
/**
* TODO: this is horrible and doesn't work. figure this out.
*/
export default class TextWrap extends React.Component {
componentDidMount() {
const { text, width, y = 1, x = 1, dy = 0, lineHeight } = this.... |
src/components/control/controlTemp.js | gordongordon/hom | import React from 'react'
import { List,TabBar, Tabs, Card, Stepper, Picker, SwipeAction, DatePicker, Badge, Flex, InputItem, Button, WhiteSpace, SegmentedControl } from 'antd-mobile';
import { createForm } from 'rc-form';
import { Fb } from 'firebase-store';
import { observer } from 'mobx-react';
import { DISTRICK }... |
lavalab/html/node_modules/react-bootstrap/es/Tab.js | LavaLabUSC/usclavalab.org | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from 'babel-runtime/helpers/extends';
import React from 'react';
import PropTypes from 'pr... |
examples/huge-apps/routes/Course/routes/Grades/components/Grades.js | dmitrigrabov/react-router | /*globals COURSES:true */
import React from 'react'
class Grades extends React.Component {
render() {
let { assignments } = COURSES[this.props.params.courseId]
return (
<div>
<h3>Grades</h3>
<ul>
{assignments.map(assignment => (
<li key={assignment.id}>{assignment... |
YEAR 3/SEM 1/MOBILE/non-native/PhotoReact/components/EmailTextInput.js | Zephyrrus/ubb |
import React from 'react';
import { TextInput } from 'react-native';
export default class EmailTextInput extends React.Component {
render() {
return <TextInput {...this.props}
keyboardType="email-address"
autoCapitalize="none"
autoCorrect={false}
/>;
}
} |
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js | Jastrzebowski/react-router | import React from 'react';
import { Link } from 'react-router';
export default class AnnouncementsSidebar extends React.Component {
static loadProps (params, cb) {
console.log('AnnouncementsSidebar', 'loadProps');
cb(null, {
announcements: COURSES[params.courseId].announcements
});
}
render (... |
src/ace.js | eccenca/react-ace-wrapper | /* eslint max-statements: [1, 18] */
/* eslint complexity: [1, 10] */
import React from 'react';
import ace from 'brace';
const AceEditor = React.createClass({
propTypes: {
mode: React.PropTypes.string,
theme: React.PropTypes.string,
name: React.PropTypes.string,
height: React.PropT... |
Tutorial/js/project/2.MeiTuan/Component/More/XMGCommonCell.js | onezens/react-native-repo | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Image,
TouchableOpacity,
Platform,
Switch
} from 'react-native';
var CommonCell = React.createClass({
get... |
docs/public/static/examples/v34.0.0/lottie.js | exponent/exponent | import React from 'react';
import { Button, StyleSheet, View } from 'react-native';
import LottieView from 'lottie-react-native';
export default class App extends React.Component {
componentDidMount() {
this.animation.play();
// Or set a specific startFrame and endFrame with:
// this.animation.play(30, 1... |
src/components/Contact.js | sivael/simpleBlogThingie | import React from 'react'
export default class Footer extends React.Component {
render() {
return(
<div className="jumbotron">
<h1>Contact</h1>
<p className="lead">Contact us because we're awesome</p>
</div>
);
}
}
|
blueocean-material-icons/src/js/components/svg-icons/social/sentiment-satisfied.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const SocialSentimentSatisfied = (props) => (
<SvgIcon {...props}>
<circle cx="15.5" cy="9.5" r="1.5"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3... |
client/app/components/Play/Playbar/Playing.js | dring1/gopheringdj | import React from 'react';
import YouTube from 'react-youtube';
import { youtubeId } from '../../../util/youtube';
class Playing extends React . Component {
constructor( props ) {
super( props );
this.state = {
key: '',
metadata: {},
};
}
static propTypes = {
metadata: React.PropType... |
src/components/app.js | MdShuaib/ReactRouterReduxForm | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<div>
{this.props.children}
</div>
);
}
}
|
docs/src/modules/components/AppFooter.js | lgollut/material-ui | /* eslint-disable material-ui/no-hardcoded-labels */
import React from 'react';
import PropTypes from 'prop-types';
import { useSelector } from 'react-redux';
import Interpolate from '@trendmicro/react-interpolate';
import { withStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typogra... |
src/ImageViewer/ImageViewer.driver.js | skyiea/wix-style-react | import React from 'react';
import ReactDOM from 'react-dom';
import ReactTestUtils from 'react-dom/test-utils';
const imageViewerDriverFactory = ({component, wrapper, element}) => {
const image = () => element.querySelector('[data-hook="image-viewer-image"]');
const addImageButton = () => element.querySelector('[... |
src/svg-icons/places/hot-tub.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesHotTub = (props) => (
<SvgIcon {...props}>
<circle cx="7" cy="6" r="2"/><path d="M11.15 12c-.31-.22-.59-.46-.82-.72l-1.4-1.55c-.19-.21-.43-.38-.69-.5-.29-.14-.62-.23-.96-.23h-.03C6.01 9 5 10.01 5 11.25V12... |
app/main.js | christianalfoni/webpack-bin | import React from 'react';
import ReactDOM from 'react-dom';
import Controller from 'cerebral';
import Model from 'cerebral-model-baobab';
import {Container} from 'cerebral-view-react';
import Devtools from 'cerebral-module-devtools';
import Router from 'cerebral-module-router';
import Http from 'cerebral-module-http';... |
entry_types/scrolled/package/src/frontend/PlayerControls/TextTracksMenu.js | tf/pageflow | import React from 'react';
import PropTypes from 'prop-types';
import {MenuBarButton} from './MenuBarButton';
import {useI18n} from '../i18n';
import TextTracksIcon from './images/textTracks.svg';
export function TextTracksMenu(props) {
const {t} = useI18n();
if (props.items.length < 2) {
return null;
}
... |
node_modules/rc-util/es/Children/mapSelf.js | ZSMingNB/react-news | import React from 'react';
function mirror(o) {
return o;
}
export default function mapSelf(children) {
// return ReactFragment
return React.Children.map(children, mirror);
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.