path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/svg-icons/content/report.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentReport = (props) => (
<SvgIcon {...props}>
<path d="M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM12 17.3c-.72 0-1.3-.58-1.3-1.3 0-.72.58-1.3 1.3-1.3.72 0 1.3.58 1.3 1.3 0 .72-.58 1.3-1.3... |
app/javascript/mastodon/features/notifications/components/notification.js | MitarashiDango/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { injectIntl, FormattedMessage, defineMessages } from 'react-intl';
import { HotKeys } from 'react-hotkeys';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { me ... |
src/parser/rogue/assassination/modules/spells/RuptureUptime.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import Enemies from 'parser/shared/modules/Enemies';
import StatisticBox fro... |
example/Application.js | npbee/react-gateway | import React from 'react';
import {
Gateway,
GatewayDest,
GatewayProvider
} from '../src/index';
class Application extends React.Component {
state = {
open: true
};
handleClick() {
this.setState({
open: false
});
}
render() {
return (
<div>
<h1>React Gateway Univer... |
examples/real-world/index.js | chentsulin/redux | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { browserHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import Root from './containers/Root'
import configureStore from './store/configureStore'
const store = configureStore()
const hist... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | juntrinh/juntrinh.github.io | 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'));
|
app/app.js | theClubhouse-Augusta/React-Boilerplate | import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import '!file-loader?name=[name].[ext]!./favicon.ico';
import '!file-loader?name=[name].[ext]!./manifest.json';
import App from 'containers/App';
ReactDOM.render((
<BrowserRouter>
<App/>
</BrowserRo... |
web-app/src/pages/home/Home.js | Charterhouse/NextBuild2017 | import React from 'react'
import Button from 'react-bootstrap-button-loader'
const Home = ({ history }) =>
<div>
<p>Welcome to the Ðecentralized version of 500 Questions!</p>
<Button
bsStyle='primary'
className='btn-block'
onClick={() => history.push('/new')}>Start New Question</Button>
<... |
jsx/todo.js | BizShuk/test | import React from 'react';
import $ from 'jquery';
class TodoItem extends React.Component {
render(){
return (<div><span>{this.props.iname}</span><button onClick={this.props.deleteItem}>X</button></div>);
}
}
class AddItem extends React.Component {
render(){
return (
<div... |
app/src/index.js | WoundedPixels/us-population | 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();
|
webapp/src/NewGame.js | erwannT/go-dart | import React, { Component } from 'react';
import NewGameButton from './NewGameButton'
import logo from './logo.svg';
class NewGame extends Component {
constructor(props) {
super(props)
this.state = {
flavors: []
}
}
componentDidMount() {
console.log("fetching flavors")
fetch('/api/sty... |
js/messages/Messages.js | andrej-kolic/A1terEg0 | import React from 'react';
import Relay from 'react-relay';
import createLogger from '../logger';
import CreateMessageMutation from './CreateMessageMutation';
import UpdateMessageMutation from './UpdateMessageMutation';
import RemoveMessageMutation from './RemoveMessageMutation';
import MessageList from './MessageList'... |
examples/async/containers/Root.js | dsimmons/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import configureStore from '../store/configureStore';
import AsyncApp from './AsyncApp';
const store = configureStore();
export default class Root extends Component {
render() {
return (
<Provider store={store}>
{() ... |
actor-apps/app-web/src/app/components/sidebar/RecentSection.react.js | fengshao0907/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... |
src/client/user/User.js | ThomasBrekelmans/stratego | import React from 'react';
import localUser from '../user/localUser';
class User extends React.Component {
constructor (props) {
super(props);
}
sendGameInvite () {
localUser.send('send-game-invite', { invitee: this.props.user });
}
render () {
return (
<li>
<span>{ `name: ${this.props.user.name} ... |
components/Popout.js | dawnlabs/carbon | import React from 'react'
import enhanceWithClickOutside from 'react-click-outside'
import WindowPointer from './WindowPointer'
import { COLORS } from '../lib/constants'
import { toggle } from '../lib/util'
export const managePopout = WrappedComponent => {
class PopoutManager extends React.Component {
state = {... |
server/sonar-web/src/main/js/apps/account/components/UserCard.js | Builders-SonarSource/sonarqube-bis | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
app/javascript/flavours/glitch/features/generic_not_found/index.js | vahnj/mastodon | import React from 'react';
import Column from 'flavours/glitch/features/ui/components/column';
import MissingIndicator from 'flavours/glitch/components/missing_indicator';
const GenericNotFound = () => (
<Column>
<MissingIndicator />
</Column>
);
export default GenericNotFound;
|
js/jqwidgets/demos/react/app/knob/knobwithcustomshape/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxKnob from '../../../jqwidgets-react/react_jqxknob.js';
class App extends React.Component {
componentDidMount() {
}
render() {
let marks = {
colorRemaining: '#333',
colorProgress: '#17a25d',
... |
Paths/React/05.Building Scalable React Apps/2-react-boilerplate-building-scalable-apps-m2-exercise-files/Before/app/containers/App/index.js | phiratio/Pluralsight-materials | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
client/containers/DataVisContainer.js | shivg/HireOrbit | import React, { Component } from 'react';
import { connect } from 'react-redux';
import dataVisual from '../reducers/index';
import d3 from 'd3';
import _ from 'lodash';
// Styles
const filler = {
fill: 'white',
textAnchor: 'middle'
}
const alt = {
fill : 'steelblue',
textAnchor: 'middle'
}
... |
node_modules/antd/es/radio/radioButton.js | ZSMingNB/react-news | 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/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/i... |
src/esm/components/structure/cards/vertical-card/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["imageProps", "title", "titleTag", "description", "descriptionTag", "withTitleStroke", "textAlign"],
_excluded2 = ["style"];
import React from 'rea... |
app/javascript/mastodon/features/follow_requests/components/account_authorize.js | mstdn-jp/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Permalink from '../../../components/permalink';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import IconButton from '../../../... |
app/components/shared/timelineHistogramNav.js | nypl-registry/browse | import React from 'react'
const TimelineHistogramNav = React.createClass({
propTypes () {
return {
baseQuery: React.PropTypes.object.isRequired,
basePath: React.PropTypes.string.isRequired,
aggregations: React.PropTypes.array.isRequired
}
},
getDefaultProps () {
return {
}
}... |
js/jqwidgets/demos/react/app/toolbar/cascadingcomboboxesintoolbar/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxToolBar from '../../../jqwidgets-react/react_jqxtoolbar.js';
class App extends React.Component {
render () {
let countries = ['Japan', 'UK', 'USA'];
let JapaneseCities = ['Kobe', 'Kyoto', 'Tokyo'];
let UKCities = ['Brig... |
app/javascript/mastodon/features/ui/components/video_modal.js | primenumber/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Video from 'mastodon/features/video';
import ImmutablePureComponent from 'react-immutable-pure-component';
import Footer from 'mastodon/features/picture_in_picture/components/footer';
import... |
src/views/NotFoundView/NotFoundView.js | daimagine/gh-milestone | import React from 'react'
import { Link } from 'react-router'
import { defineMessages, FormattedMessage } from 'react-intl'
const messages = defineMessages({
welcome: {
id: 'notFound.welcome',
description: 'page message',
defaultMessage: 'This is a demo 404 page!'
},
linkHomeView: {
id: 'notFound... |
Client/js/React Components/Project.js | dgibb/dgibb.github.io | import React from 'react';
import { Link } from 'react-router-dom';
import PropTypes from 'prop-types';
export class Project extends React.Component {
render() {
return (
<div className="col-lg-4 col-md-4 col-sm-6 col-xs-6 project">
<div className="project-container">
<Link to={thi... |
frontend/src/app/components/Footer.js | mozilla/testpilot | import React from 'react';
export default class Footer extends React.Component {
render() {
return (
<footer id="main-footer" className="responsive-content-wrapper">
<div id="footer-links">
<div className="legal-links">
<a href="https://www.mozilla.org" className="mozilla-log... |
app/containers/LocaleToggle/index.js | blockfs/frontend-react | /*
*
* LanguageToggle
*
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import Toggle from 'components/Toggle';
import Wrapper from './Wrapper';
import messages from './messages';
import { appLocales } from '../../i18n';
import { changeLocale } from ... |
client/client.js | pandaben7890/react-panda-style-level-1 | import React from 'react';
import { render } from 'react-dom';
import routes from './routes'
import 'theme/elements.scss';
render(routes(), document.getElementById('react-app')) |
src/svg-icons/device/signal-cellular-null.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularNull = (props) => (
<SvgIcon {...props}>
<path d="M20 6.83V20H6.83L20 6.83M22 2L2 22h20V2z"/>
</SvgIcon>
);
DeviceSignalCellularNull = pure(DeviceSignalCellularNull);
DeviceSignalCellularN... |
resources/assets/js/components/stats/InteractiveChartLegend.js | jrm2k6/i-heart-reading | import React from 'react';
export default class InteractiveChartLegend extends React.Component {
getBooksFinishedRow() {
if (this.props.timeView === 'yearly') {
return (
<div className='legend-row'>
<div className='legend-square num-books-read'>
</div>
<span className=... |
templates/frontOffice/modern/components/React/MiniCart/index.js | thelia/thelia | import { hideCart, toggleCart } from '@js/redux/modules/visibility';
import messages, { locale } from '../intl';
import { IntlProvider } from 'react-intl';
import MiniCart from './MiniCart';
import { Provider } from 'react-redux';
import { QueryClientProvider } from 'react-query';
import React from 'react';
import { q... |
src/scripts/app.js | ModuloM/kodokojo-ui | /**
* Kodo Kojo - Software factory done right
* Copyright © 2016 Kodo Kojo (infos@kodokojo.io)
*
* This program 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 ... |
src/svg-icons/maps/local-grocery-store.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalGroceryStore = (props) => (
<SvgIcon {...props}>
<path d="M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-... |
dist/lib/carbon-fields/assets/js/fields/components/media-gallery/list.js | ArtFever911/statrer-kit | /**
* The external dependencies.
*/
import $ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import {
compose,
withState,
withHandlers,
} from 'recompose';
import { isUndefined } from 'lodash';
/**
* The internal dependencies.
*/
import withSetup f... |
app/components/DayCard/DayCard.js | sunnymis/Swoleciety | import React from 'react';
import { Link } from 'react-router-dom';
import PropTypes from 'prop-types';
require('./daycard.scss');
DayCard.defaultProps = {
};
DayCard.propTypes = {
day: PropTypes.string.isRequired,
title: PropTypes.string.isRequired,
date: PropTypes.object.isRequired,
formattedDate: PropType... |
YEAR 3/SEM 1/MOBILE/non-native/PhotoReact/screens/auth/ForgotPasswordScreen.js | Zephyrrus/ubb | import React from 'react';
import { StyleSheet, View, Text, TextInput, Button, Alert } from 'react-native';
import { NavigationActions } from 'react-navigation';
import * as firebase from 'firebase';
export default class ForgotPasswordScreen extends React.Component {
constructor(props) {
super(props);
... |
app/component/header/index.js | michelia-alba/music-player | import React from 'react'
import logo from '../../images/logo.jpg'
import './styles.less'
export default class Header extends React.Component {
render() {
return (
<div className="header">
<div className="header-logo">
<img src={logo} alt="header-logo"/>
</div>
<h1 className="caption">{this.prop... |
src/containers/addVideo/urlParser.js | motion123/mbookmakerUI | /**
* Created by tomihei on 17/03/22.
*/
import React from 'react'
import { connect } from 'react-redux'
import UrlParser from '../../components/addVideo/urlParser';
import * as UrlParserAction from '../../actions/urlParser'
function mapStateToProps(state) {
return {
isFething: state.urlParser.isFething,
o... |
app/javascript/mastodon/features/direct_timeline/index.js | NS-Kazuki/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import { mountConversations, unmountConversations, expandConversations } from '../../actions/conversations';
impo... |
examples/huge-apps/routes/Course/routes/Announcements/routes/Announcement/components/Announcement.js | trotzig/react-router | import React from 'react';
class Announcement extends React.Component {
render () {
var { courseId, announcementId } = this.props.params;
var { title, body } = COURSES[courseId].announcements[announcementId];
return (
<div>
<h4>{title}</h4>
<p>{body}</p>
</div>
);
}
}
... |
common/routes/Main/components/Track.js | kuguarpwnz/musix | import React, { Component } from 'react';
import { ListItem } from 'material-ui/List';
import { fullBlack } from 'material-ui/styles/colors';
const style = {
color: fullBlack
};
const Track = ({
onClick,
track
}) => (
<ListItem onClick={() => onClick(track)}
style={style}
primaryText=... |
src/components/content/about.js | awebfactory/state-shape-designer | import React from 'react';
class About extends React.Component {
render(){
return (
<div className = "container rp-page">
<div className="awf-header">
<h1>About Redux state shape template designer</h1>
</div>
<p>Design actions, reducers, the store and a... |
examples/todomvc/src/index.js | lifeiscontent/redux | import React from 'react'
import { render } from 'react-dom'
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import App from './containers/App'
import reducer from './reducers'
import 'todomvc-app-css/index.css'
const store = createStore(reducer)
render(
<Provider store={store}>
<App ... |
examples/counter/containers/CounterApp.js | noscripter/redux | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'redux/react';
import Counter from '../components/Counter';
import * as CounterActions from '../actions/CounterActions';
@connect(state => ({
counter: state.counter
}))
export default class CounterApp extend... |
frontend/src/Calendar/Calendar.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import LoadingIndicator from 'Components/Loading/LoadingIndicator';
import translate from 'Utilities/String/translate';
import AgendaConnector from './Agenda/AgendaConnector';
import * as calendarViews from './calendarViews';
import CalendarD... |
pages/privacy-policy.js | turntwogg/final-round | import React from 'react';
import Page from '../components/Page';
import PageContent from '../components/PageContent';
import PageHeader from '../components/PageHeader';
const PrivacyPolicy = () => {
const title = 'Privacy Policy';
return (
<Page title={title}>
<PageHeader title={title} />
<PageCo... |
docs/src/NavMain.js | mxc/react-bootstrap | import React from 'react';
import { Link } from 'react-router';
import Navbar from '../../src/Navbar';
import Nav from '../../src/Nav';
const NAV_LINKS = {
'introduction': {
link: 'introduction',
title: 'Introduction'
},
'getting-started': {
link: 'getting-started',
title: 'Getting started'
},
... |
pages/error/index.js | knaufk/ultidate-frontend | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-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';
... |
src/media/js/addon/containers/versionListing.js | diox/marketplace-content-tools | /*
Version listing as a smart component since it involves binding a lot of
actions.
*/
import classnames from 'classnames';
import React from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import {fetchVersions} from '../actions/addon';
import {del as deleteVersion} from '.... |
docs/Documentation/SnackbarPage.js | reactivers/react-mcw | /**
* Created by muratguney on 29/03/2017.
*/
import React from 'react';
import {Card, CardHeader,Snackbar,Button,Table, TableRow, TableHeaderColumn, TableHeader, TableRowColumn, TableBody} from '../../lib';
import HighLight from 'react-highlight.js'
export default class CardPage extends React.Component {
state... |
client/src/components/Header.js | taewo/joy-together | import React, { Component } from 'react';
import ReactModal from 'react-modal';
import { Link, browserHistory } from 'react-router';
import { connect } from 'react-redux';
import * as getDataAction from '../action/getDataAction';
import * as deleteDataAction from '../action/deleteDataAction';
import * as addDataAction ... |
src/component/ChinaAreaSelectorPC/demo.js | lzsheng/react-ChinaAreaSelector | import React, { Component } from 'react';
import ChinaAreaSelector from './index'
class Demo extends Component {
constructor(props) {
super(props);
this.state = {
ChinaAreaSelectorDefaultValue: ["440000", "440100", "440105"],
ChinaAreaSelectorValue: undefined,
}
}
componentDidMount() {
... |
src/svg-icons/navigation/unfold-less.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationUnfoldLess = (props) => (
<SvgIcon {...props}>
<path d="M7.41 18.59L8.83 20 12 16.83 15.17 20l1.41-1.41L12 14l-4.59 4.59zm9.18-13.18L15.17 4 12 7.17 8.83 4 7.41 5.41 12 10l4.59-4.59z"/>
</SvgIcon>
)... |
packages/clairvoyance/src/components/FrontMatter/FrontMatterTextfield.js | accosine/poltergeist | import React from 'react';
import { makeStyles } from '@material-ui/styles';
import TextField from '@material-ui/core/TextField';
const useStyles = makeStyles(theme => ({
textField: {
marginLeft: theme.spacing(1),
marginRight: theme.spacing(1),
},
}));
const FrontMatterTextfield = ({
id,
onChange,
i... |
src/svg-icons/maps/local-taxi.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalTaxi = (props) => (
<SvgIcon {...props}>
<path d="M18.92 6.01C18.72 5.42 18.16 5 17.5 5H15V3H9v2H6.5c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.4... |
src/svg-icons/maps/restaurant.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsRestaurant = (props) => (
<SvgIcon {...props}>
<path d="M11 9H9V2H7v7H5V2H3v7c0 2.12 1.66 3.84 3.75 3.97V22h2.5v-9.03C11.34 12.84 13 11.12 13 9V2h-2v7zm5-3v8h2.5v8H21V2c-2.76 0-5 2.24-5 4z"/>
</SvgIcon>
)... |
src/components/header.js | kesjien/tictactoe_reactnative | import React, { Component } from 'react';
import {
StyleSheet,
Text,
TextInput,
View,
Image
} from 'react-native';
export default class Header extends Component {
render() {
return (
<View style={styles.container}>
<View style={styles.textContainer}>
<Text... |
docs/app/Examples/elements/Icon/Groups/IconExampleLoadingGroup.js | koenvg/Semantic-UI-React | import React from 'react'
import { Icon } from 'semantic-ui-react'
const IconExampleLoadingGroup = () => (
<div>
<Icon.Group size='huge'>
<Icon size='big' color='red' name='dont' />
<Icon color='black' name='user' />
</Icon.Group>
<Icon.Group size='huge'>
<Icon loading size='big' name='... |
resources/assets/js/components/responses/YoutubeEmbedPlayer.js | jrm2k6/i-heart-reading | import React from 'react';
class YoutubeEmberPlayer extends React.Component {
render() {
const srcVideo = `https://www.youtube.com/embed/${this.props.videoId}?autoplay=1&origin=http://iheartreading.co`;
return (
<div className='youtube-ember-player-container'>
<iframe
className=... |
src/svg-icons/action/settings-phone.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsPhone = (props) => (
<SvgIcon {...props}>
<path d="M13 9h-2v2h2V9zm4 0h-2v2h2V9zm3 6.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-... |
src/components/elements/windmill.js | PolideaPlayground/WebVRExperience | import React from 'react';
import {Entity} from "aframe-react";
export default class Windmill extends React.Component {
render() {
return <Entity {...this.props}>
<Entity position={{x: -0.48, y: 0.55, z: 0.6}} collada-model="#propeller">
<a-animation attribute="rotation"
... |
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch03/03_07/finish/src/index.js | yevheniyc/C | import React from 'react'
import { render } from 'react-dom'
import { SkiDayCount } from './components/SkiDayCount'
window.React = React
render(
<SkiDayCount total={50}
powder={20}
backcountry={10}
goal={100}/>,
document.getElementById('react-container')
) |
webpack/components/response_sets/ResponseSetEdit.js | CDCgov/SDP-Vocabulary-Service | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router';
import { Row, Col, Button} from 'react-bootstrap';
import TagsInput from 'react-tagsinput';
import { responseSetProps } from '../../prop-types/response_set_props';
import Errors from '../Errors';
import M... |
src/Parser/DeathKnight/Unholy/Modules/Features/Abilities.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import SpellLink from 'common/SpellLink';
import ItemLink from 'common/ItemLink';
import CoreAbilities from 'Parser/Core/Modules/Abilities';
class Abilities extends CoreAbilities {
spellbook() {
const combatant = t... |
src/index.js | juan-pinzon/pseudogram | import React from 'react';
import ReactDOM from 'react-dom';
import firebase from 'firebase';
import App from './App';
import './index.css';
firebase.initializeApp({
apiKey: "AIzaSyDaVN5Zqf0La5C4YOw31Z2_dy9DZJ-Igk0",
authDomain: "pseudogram-4a109.firebaseapp.com",
databaseURL: "https://pseudogram-4a109.firebasei... |
mdbreact/components/BreadcrumbItem.js | ryanwashburne/react-skeleton | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
class BreadcrumbItem extends React.Component {
render() {
const {
className,
active,
...attributes
} = this.props;
const classes = classNames(
active ? 'active' : false,
... |
docs/src/app/components/pages/components/Dialog/Page.js | rscnt/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import dialogReadmeText from './README';
import DialogExampleSimple from './Exam... |
app/components/Molecules/Meta/Meta.js | shibe97/worc | import React from 'react';
import Name from '../../Atoms/Name/Name';
import ScreenName from '../../Atoms/ScreenName/ScreenName';
import CreatedAt from '../../Atoms/CreatedAt/CreatedAt';
import styles from './meta.css';
function userNameWithLinkIfNeeded(tweet, setUser) {
if (setUser) {
return (
<a href="jav... |
fields/types/password/PasswordField.js | davibe/keystone | import React from 'react';
import Field from '../Field';
import { Button, FormInput, InputGroup } from 'elemental';
module.exports = Field.create({
displayName: 'PasswordField',
getInitialState () {
return {
passwordIsSet: this.props.value ? true : false,
showChangeUI: this.props.mode === 'create' ? true :... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | tgoettel9401/Homepage-Schachclub-Niedermohr | 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/scenes/home/footer/footer.js | tskuse/operationcode_frontend | import React from 'react';
import { Link } from 'react-router-dom';
import ScrollUpButton from 'react-scroll-up-button';
import SocialMedia from 'shared/components/socialMedia/socialMedia';
import centerLogo from 'images/icons/Medal-Icon.svg';
import styles from './footer.css';
const Footer = () => (
<div className=... |
src/behaviours/withBounds.js | codaco/Network-Canvas | /* eslint-disable react/no-find-dom-node */
import React, { Component } from 'react';
import { findDOMNode } from 'react-dom';
import { throttle, isEqual } from 'lodash';
import getAbsoluteBoundingRect from '../utils/getAbsoluteBoundingRect';
const maxUpdatesPerSecond = 6;
const initialState = {
width: 0,
height... |
src/js/pages/ChatThreadsPage.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import TopNavBar from '../components/TopNavBar/TopNavBar.js';
import LastMessage from '../components/ui/LastMessage/LastMessage.js';
import BottomNavBar from '../components/BottomNavBar/BottomNavBar.js';
import AuthenticatedComponent from '..... |
app/components/H3/index.js | jesus9ias/solar_system | import React from 'react';
function H3(props) {
return (
<h3 {...props} />
);
}
export default H3;
|
app/javascript/mastodon/features/account_timeline/components/moved_note.js | Chronister/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import AvatarOverlay from '../../../components/avatar_overlay';
import DisplayNam... |
test/test_helper.js | immunity20/Youtube-Search-App | 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... |
docs/client/components/pages/Counter/index.js | dagopert/draft-js-plugins | import React, { Component } from 'react';
import gettingStarted from '!!../../../loaders/prism-loader?language=javascript!./gettingStarted'; // eslint-disable-line import/no-unresolved
import simpleExampleCode from '!!../../../loaders/prism-loader?language=javascript!./SimpleCounterEditor'; // eslint-disable-line impo... |
src/containers/abilitiesPage/AbilitiesPage.js | DaveOrDead/react-dnd-character-generator | import React from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import * as charActions from '../../actions/charGenActions';
import * as apiActions from '../../actions/apiActions';
import Button from '../../components/button';
import Stat from '../stat';
class AbilitiesPage ... |
dist/src/components/Productpage/Productpage.js | jdhanesh/ftdpwa | import React from 'react'
import styles from './Productpage.css'
const Productpage = (product) => (
<div>
{console.log(product)}
<div className={styles.productdiv}>
<div className={styles.productimgdiv}>
<img className={styles.productimg} src={'https://liveordering.ftdimg.com/pics/produ... |
lens-ui/app/components/RequireAuthenticationComponent.js | sriksun/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/jsx/external_apps/components/ConfigurationFormXml.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... |
src/interface/icons/GitHubMarkLarge.js | anom0ly/WoWAnalyzer | import React from 'react';
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 250" className="icon" {...other}>
<path d="M128.00106,0 C57.3172926,0 0,57.3066942 0,128.00106 C0,184.555281 36.6761997,232.535542 87.534937,249.460899 C93.9320223,250.645779 96.280588,246.684165 ... |
frontend/src/components/threads/moderation/move.js | 1905410/Misago | import React from 'react'; // jshint ignore:line
import Form from 'misago/components/form';
import FormGroup from 'misago/components/form-group'; // jshint ignore:line
import CategorySelect from 'misago/components/category-select'; // jshint ignore:line
import * as select from 'misago/reducers/selection'; // jshint ign... |
app/components/Navbar.js | sahat/newedenfaces-react | import React from 'react';
import {Link} from 'react-router';
import NavbarStore from '../stores/NavbarStore';
import NavbarActions from '../actions/NavbarActions';
class Navbar extends React.Component {
constructor(props) {
super(props);
this.state = NavbarStore.getState();
this.onChange = this.onChange... |
client/app/scripts/components/node-details/node-details-image-status.js | alban/scope | import React from 'react';
import { connect } from 'react-redux';
import find from 'lodash/find';
import map from 'lodash/map';
import { CircularProgress } from 'weaveworks-ui-components';
import { getImagesForService } from '../../actions/app-actions';
const topologyWhitelist = ['kube-controllers'];
function newIma... |
src/svg-icons/image/assistant.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageAssistant = (props) => (
<SvgIcon {...props}>
<path d="M19 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5.12 10.88L12 17l-1.88-4.12L6 11l4.12-1.88L12 5l1.88 4.12L18 11... |
src/Popup/examples.js | narqo/react-islands | import React from 'react';
import ReactDOM from 'react-dom';
import Button from '../Button';
import Link from '../Link';
import Popup from '../Popup';
class PopupExampleSimple extends React.Component {
constructor(props) {
super(props);
this.state = {
visible: false,
};
}
... |
pootle/static/js/auth/components/SocialAuthError.js | fabada/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
'use strict';
import React from 'react';
import { PureRen... |
fields/explorer/components/FieldSpec.js | matthewstyers/keystone | import Domify from 'react-domify';
import React from 'react';
import { Form } from '../../../admin/client/App/elemental';
import Col from './Col';
import Row from './Row';
const ExplorerFieldType = React.createClass({
getInitialState () {
return {
filter: this.props.FilterComponent.getDefaultValue(),
value: ... |
src/components/ForecastView.js | viruschidai/ReactNativeWeather | 'use strict';
import React, { Component } from 'react';
import {
Text,
View
} from 'react-native';
import styles from './ForecastView-styles';
class ForecastView extends Component {
render() {
if (!this.props.forecast) {
return <View/>;
}
return (
<View style={styles.container}>
... |
src/components/edit-post.js | Lokiedu/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2016 Loki Education (Social Enterprise)
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, o... |
src/views/Card/CardGroup.js | shengnian/shengnian-ui-react | import cx from 'classnames'
import _ from 'lodash'
import PropTypes from 'prop-types'
import React from 'react'
import {
childrenUtils,
customPropTypes,
getElementType,
getUnhandledProps,
META,
SUI,
useKeyOnly,
useTextAlignProp,
useWidthProp,
} from '../../lib'
import Card from './Card'
/**
* A gro... |
src/components/cog.js | drifterz28/sprinkler | import React from 'react';
export default () => (
<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg">
<path d="M14 0 H18 L19 6 L20.707 6.707 L26 3.293 L28.707 6 L25.293 11.293 L26 13 L32 14 V18 L26 19 L25.293 20.707 L28.707 26 L26 28.707 L20.707 25.293 L19 26 L18 32 L14 32 L13 26 L11.293 25.293 L6 28.70... |
client/src/components/Upload/index.js | bottleneckco/highlights | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Dropzone from 'react-dropzone';
import bindAll from 'lodash.bindall';
import TextInput from '../TextInput';
import styles from './styles.scss';
class Upload extends Component {
constructor(props) {
super(props);
this.state... |
src/app/components/layouts/search-layout.js | ishaan-puniani/moopy-server | import React from 'react';
import SearchFormContainer from '../containers/search-form-container';
// Using "Stateless Functional Components"
export default function (props) {
return (
<div className="search">
<header className="search-header pageHeader background">
{props.title}... |
src/index.js | nayed/hanews | import React from 'react'
import ReactDOM from 'react-dom'
import App from './components/App'
import './index.sass'
import 'normalize.css/normalize.css'
import 'bootstrap/dist/css/bootstrap.css'
import 'bootswatch/flatly/bootstrap.css'
ReactDOM.render(
<App />,
document.getElementById('root')
)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.