path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
dispatch/static/manager/src/js/components/EventEditor/EventPendingTag.js | ubyssey/dispatch | import React from 'react'
import { connect } from 'react-redux'
import { Link } from 'react-router'
import eventsActions from '../../actions/EventsActions'
require('../../../styles/components/event_audit.scss')
class EventPendingTagComponent extends React.Component {
componentDidMount() {
this.props.countPend... |
docs/src/sections/FormSection.js | SSLcom/Bootsharp | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function FormSection() {
return (
<div className="bs-docs-section">
<h1 className="page-header">
<Anch... |
examples/01 Dustbin/Multiple Targets/Container.js | srajko/react-dnd | import React, { Component } from 'react';
import { DragDropContext } from 'react-dnd';
import HTML5Backend, { NativeTypes } from 'react-dnd/modules/backends/HTML5';
import Dustbin from './Dustbin';
import Box from './Box';
import ItemTypes from './ItemTypes';
import update from 'react/lib/update';
@DragDropContext(HTM... |
old-or-not-typescript/learn-redux/counter/index.js | janaagaard75/framework-investigations | import React from 'react'
import ReactDOM from 'react-dom'
import { createStore } from 'redux'
import Counter from './components/Counter'
import counter from './reducers'
const store = createStore(counter)
const rootEl = document.getElementById('root')
function render() {
ReactDOM.render(
<Counter
value={... |
packages/login-ui/components/UserRow/UserRow.js | ChronoBank/ChronoMint | /**
* Copyright 2017–2019, LaborX PTY
* Licensed under the AGPL Version 3 license.
*/
import React from 'react'
import PropTypes from 'prop-types'
import classnames from 'classnames'
import { Link } from 'react-router'
import actionIcon from 'assets/img/icons/list.svg'
import './UserRow.scss'
export default class ... |
src/routes/Home/HomeComponent.js | TriPSs/react-esc-example | import React from 'react'
import Helmet from 'react-helmet'
import DuckImage from 'styles/assets/Duck.jpg'
import classes from './Home.scss'
export const Home = () => (
<div>
<Helmet title={'Home'} />
<h4>Welcome!</h4>
<img
alt="This is a duck, because Redux!"
className={classes.duck}
s... |
src/Parser/DemonHunter/Havoc/Modules/Items/DelusionsOfGrandeur.js | hasseboulen/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 { formatNumber, formatPercentage, formatDuration } from 'common/format';
import SUGGESTION_IMPORTANCE from 'Parser/Core/ISSUE_IMPORTA... |
local-cli/templates/HelloNavigation/views/chat/ChatScreen.js | orenklein/react-native | 'use strict';
import React, { Component } from 'react';
import {
ActivityIndicator,
Button,
ListView,
StyleSheet,
Text,
TextInput,
View,
} from 'react-native';
import KeyboardSpacer from '../../components/KeyboardSpacer';
import Backend from '../../lib/Backend';
export default class ChatScreen extends C... |
src/components/ErrorBox/index.js | trebor/tsomi | // @flow
import React from 'react'
import { type Element } from 'react'
import config from '../../config'
require('./main.css')
type ErrorProps = {
msg: string,
}
const ErrorBox = (props: ErrorProps): Element<'div'> =>
React.createElement(
'div',
{ className: 'error-box' },
React.createElement(
... |
client/index.dev.js | BitTigerInst/ElasticSearch | import React from 'react';
import routes from '../shared/routes';
import DevTools from '../shared/container/DevTools/DevTools';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import { configureStore } from '../shared/redux/store/configu... |
src/modules/AppRouter.js | yogakurniawan/phoney-mobile | /*eslint-disable react/prop-types*/
import React from 'react';
import CounterViewContainer from './counter/CounterViewContainer';
import ColorViewContainer from './colors/ColorViewContainer';
/**
* AppRouter is responsible for mapping a navigator scene to a view
*/
export default function AppRouter(props) {
const... |
packages/es-components/src/components/util/DropIn.js | jrios/es-components | import React from 'react';
import PropTypes from 'prop-types';
import Transition from 'react-transition-group/Transition';
const DropIn = ({ children, duration, ...otherProps }) => {
const transitionStyles = {
opacity: 0,
transform: `translate(0, -25%)`,
transition: `transform ${duration}ms ease-out, opa... |
src/components/pages/homePage.js | AngeliaGong/AngeliaGong.github.io | import React, { Component } from 'react';
// components
// includes
class Homepage extends Component {
render() {
return (
<div className='container-fluid homepage'>
<img className='profile' src={require('../pics/profile.png')} />
<h1>
Angelia Gong
</... |
src/renderer/components/requests/headers.js | niklasi/halland-proxy | import React from 'react'
const transformHeaders = (headers) => {
return Object.keys(headers).map(header => {
return {key: header, value: headers[header]}
})
}
const headerMapper = (header, index) => <li key={`${header.key}-${index}`}>{`${header.key}: ${header.value}`}</li>
export default ({ headers }) => <u... |
js/BaseComponents/FloatingButton.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
*... |
src/components/common/logo.js | liuyuanquan/kankan | import React from 'react';
class Logo extends React.Component {
render() {
return (
<a className='logobox' href={this.props.href} target='_blank' title={this.props.title}>
<i className='logo'></i>
</a>
);
}
}
Logo.defaultProps = {
href: 'http://starzone.kankan.com/act/kankan/index.html',
title: '响巢看看... |
src/react/index.js | sapegin/redux-devtools | import React from 'react';
import createDevTools from '../createDevTools';
export const DevTools = createDevTools(React);
export { default as LogMonitor } from './LogMonitor';
export { default as DebugPanel } from './DebugPanel';
|
examples/browserify-gulp-example/src/app/app.js | skarnecki/material-ui | import React from 'react';
import ReactDOM from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import Main from './Main'; // Our custom react component
//Needed for onTouchTap
//Can go away when react 1.0 release
//Check this repo:
//https://github.com/zilverline/react-tap-event-plugin
injectT... |
examples/todomvc/index.js | mattybow/redux | import React from 'react';
import App from './containers/App';
import 'todomvc-app-css/index.css';
React.render(
<App />,
document.getElementById('root')
);
|
src/containers/Home/Home.js | harouf/react-redux-searchportal | import React, { Component } from 'react';
// import { Link } from 'react-router';
export default class Home extends Component {
render() {
const styles = require('./Home.scss');
// require the logo image both from client and server
const logoImage = require('./logo.png');
return (
<div classNam... |
docs/src/pages/components/slider/VerticalSlider.js | lgollut/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Typography from '@material-ui/core/Typography';
import Slider from '@material-ui/core/Slider';
const useStyles = makeStyles({
root: {
height: 300,
},
});
function valuetext(value) {
return `${value}°C`;
}
const marks =... |
src/interface/report/Results/Timeline/Component.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { EventType } from 'parser/core/Events';
import { formatDuration } from 'common/format';
import DragScroll from 'interface/common/DragScroll';
import CASTS_THAT_ARENT_CASTS from 'parser/core/CASTS_THAT_ARENT_CASTS';
import Abilities from 'parser/co... |
docs/src/app/components/pages/components/Card/ExampleControlled.js | ruifortes/material-ui | import React from 'react';
import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card';
import FlatButton from 'material-ui/FlatButton';
import Toggle from 'material-ui/Toggle';
export default class CardExampleControlled extends React.Component {
constructor(props) {
super(pro... |
src/js/components/ui/Frame/Frame.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import styles from './Frame.scss';
export default class Frame extends Component {
static propTypes = {
title : PropTypes.string,
onClickHandler: PropTypes.func
};
handleClick() {
if (this.props.o... |
client/src/Navbar.js | roxroy/codeploy | import React, { Component } from 'react';
import './App.css';
const Menu = require('./Menu');
const Search = require('./Search');
class Navbar extends Component {
constructor(props) {
super(props);
this.state = {
loggedIn: this.props.loggedIn
}
}
render() {
return (
<div className="n... |
src/views/components/user-card/index.js | zerubeus/sawt | import React from 'react';
import { NavLink } from 'react-router-dom';
import { User } from '../../../core/users';
import FormattedInteger from '../formatted-integer';
import PropTypes from 'prop-types';
function UserCard({user}) {
return (
<article className="user-card">
<div className="g-row g-cont">
... |
src/AppBundle/Resources/static/jsx/util/DataTable.js | viszerale-therapie/simple-courses | import $ from 'jquery';
import URL from 'js-handy-url';
import moment from 'moment';
import React from 'react';
import tl from './translator';
import actions from './actions';
import app from '../app/app';
import DynForm from './DynForm';
import messaging from './messaging';
import DataTableView from '../view/DataTabl... |
client/src/components/dashboard/profile/utils/trash-look-five.js | mikelearning91/seeme-starter | import React, { Component } from 'react';
import Modal from 'react-modal';
import MdDelete from 'react-icons/lib/md/delete';
const cookie = require('react-cookie')
const axios = require('axios');
class TrashLookFive extends React.Component {
constructor(props) {
super(props);
this.trashLook = thi... |
app/javascript/mastodon/features/ui/components/embed_modal.js | tootcafe/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { defineMessages, FormattedMessage, injectIntl } from 'react-intl';
import api from 'mastodon/api';
import IconButton from 'mastodon/components/icon_button';
const messages = defin... |
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/es/CardColumns.js | GoogleCloudPlatform/prometheus-engine | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
var _excluded = ["className", "cssModule", "tag"];
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { ... |
app/components/Info.js | chehitskenniexd/Archiver | import React, { Component } from 'react';
import { Link, hashHistory } from 'react-router';
import { connect } from 'react-redux';
import styles from './Info.css';
import MainHome from './MainHome';
import Add from './Add';
import Collaborator from './Collaborator';
import PageRender from './PageRender';
export class... |
test/FormGroupSpec.js | asiniy/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import FormGroup from '../src/FormGroup';
import {shouldWarn} from './helpers';
describe('FormGroup', function() {
it('renders children', function() {
let instance = ReactTestUtils.renderIntoDocument(
<FormGroup>
<spa... |
packages/node_modules/@webex/react-component-activity-share-thumbnail/src/index.js | ciscospark/react-ciscospark | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import {bytesToSize, getFileIcon} from '@webex/react-component-utils';
import ShareFile from '@webex/react-component-activity-share-file';
import {
Button,
ContentItem,
Icon
} from '@momentum-ui/react';
import st... |
app/components/ellipsis.js | it-surya/hack-jeninvest | import React from 'react';
import {View, StyleSheet} from 'react-native';
import {RkStyleSheet} from 'react-native-ui-kitten';
export class Ellipsis extends React.Component {
render() {
return (
<View style={styles.container}>
<View style={styles.dot}/>
<View style={styles.dot}/>
<V... |
client/src/components/TransactionTable.js | Nauktis/inab | import React from 'react';
import { connect } from 'react-redux';
import Transaction from './Transaction';
import EditableTransaction from './EditableTransaction';
import * as actions from '../actions';
import {getTransactions} from '../selectors/transactions';
import {getCategoriesById} from '../selectors/categories';... |
app/src/extension/views/consult/index.js | get-focus/focus-help-center | import React from 'react';
import '../../style';
import ArticleConsult from '../../../common/components/article-consult';
import {IconButton} from 'material-ui';
import {browserHistory} from 'react-router';
import {backOfficeUrl} from '../../../common/server/config';
function renderLeftContent() {
return (
... |
src/pages/newBet.js | delta-plus/andsquare | 'use strict';
import React, { Component } from 'react';
import {
AppRegistry,
Text,
TextInput,
View,
dismissKeyboard,
BackAndroid,
AsyncStorage
} from 'react-native';
import DismissKeyboard from 'dismissKeyboard';
import Toast from 'react-native-smart-toast';
import Button from '../components/button';
im... |
shared/components/NavButton.js | jchappypig/tickets-app-react-redux-node | import React, { Component } from 'react';
import {Button} from 'react-bootstrap';
class NavButton extends Component {
handleClick(e) {
let {url, action} = this.props;
action && action(e);
this.context.router.push(url);
}
render() {
let {text} = this.props;
return (
<Button onClick={t... |
src/main.js | joyvuu-dave/comeals-ui-react | /* @flow */
import React from 'react'
import ReactDOM from 'react-dom'
import createBrowserHistory from 'history/lib/createBrowserHistory'
import { useRouterHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import makeRoutes from './routes'
import Root from './containers/Root'
impo... |
webpack/move_to_pf/react-bootstrap-select/index.js | johnpmitsch/katello | // This component should be replaced with a react version
/* eslint-disable */
import React from 'react';
import ReactDOM from 'react-dom';
import { FormControl } from 'react-bootstrap';
import PropTypes from 'prop-types';
require('jquery');
require('bootstrap-select');
class BootstrapSelect extends React.Component {... |
src/index.js | bobrown101/phi-tau | /* eslint-disable import/default */
import React from 'react';
import {render} from 'react-dom';
import { Provider } from 'react-redux';
// import thunk from 'redux-thunk';
import { Router, browserHistory } from 'react-router';
import { syncHistoryWithStore} from 'react-router-redux';
import routes from './routes';
im... |
src/components/TimerForm/index.js | Nargonath/getshitdone | import React, { Component } from 'react';
import { func } from 'prop-types';
import Input from './Input';
import Submit from './Submit';
class TimerForm extends Component {
constructor(props) {
super(props);
this.state = { name: '', duration: '00:00' };
}
handleChange = event => {
this.setState({ ... |
imports/ui/layouts/AuthorizedLayout/AuthorizedLayout.js | jamiebones/Journal_Publication |
import React from 'react';
import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
import { Grid, Alert, Button , Row , Col } from 'react-bootstrap';
import { Meteor } from 'meteor/meteor';
import PageEmailBuilder from '../../pages/PageEmailBuilder/PageEmailBuilder';
import Authorized from '../../c... |
app/javascript/flavours/glitch/features/notifications/components/setting_toggle.js | glitch-soc/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Toggle from 'react-toggle';
export default class SettingToggle extends React.PureComponent {
static propTypes = {
prefix: PropTypes.string,
settings: ImmutablePropTypes.map.isReq... |
node_modules/react-router/es/Redirect.js | swapnilabnave/swapnilabnave.github.io | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
imports/ui/views/change-password.js | dklisiaris/boomabu | import React from 'react';
import { Link } from 'react-router';
import { browserHistory } from 'react-router';
import { Meteor } from 'meteor/meteor';
import { renderErrorsFor } from '../../modules/utils';
export class ChangePassword extends React.Component {
constructor(props) {
super(props);
this.state = {... |
examples/js/advance/insert-type-table.js | rolandsusans/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const jobs = [];
const jobTypes = [ 'A', 'B', 'C', 'D' ];
function addJobs(quantity) {
const startId = jobs.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
jo... |
src/components/Accordion/__tests__/Accordion.spec.js | propertybase/react-lds | import React from 'react';
import { render, mount } from 'enzyme';
import Accordion from '../Accordion';
import AccordionSection from '../AccordionSection';
describe('<Accordion />', () => {
it('renders the first section initially open by default', () => {
const mounted = render(
<Accordion>
<Acco... |
src/containers/Home/Home.js | MarkPhillips7/happy-holidays | import React, { Component } from 'react';
import { Link } from 'react-router';
import { CounterButton, GithubButton } from 'components';
import config from '../../config';
export default class Home extends Component {
render() {
const styles = require('./Home.scss');
// require the logo image both from clien... |
src/components/Avatar/Avatar.js | ortonomy/flingapp-frontend | import React, { Component } from 'react';
import styles from './Avatar.module.css';
import { connect } from 'react-redux';
import md5 from 'md5';
@connect(
state => ({
state: state
}),
null
)
class Avatar extends Component {
constructor(props) {
super(props);
this.getUserName = this.getUserName.bin... |
src/routes/not-found/index.js | bharathbhsp/refactored-funicular | /**
* 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/utils/connectToNodes.js | ysaaron/react-collapse-tree | import React, { Component } from 'react';
import { DragSource, DropTarget } from 'react-dnd';
export default (DecoratedComponent) => {
class Wrapper extends Component {
constructor(props) {
super(props);
this.isMouseDown = false;
this.isMouseMoving = false;
this.getTranslate = this.getTr... |
admin/client/App/shared/InvalidFieldType.js | concoursbyappointment/keystoneRedux | /**
* Renders an "Invalid Field Type" error
*/
import React from 'react';
const InvalidFieldType = function (props) {
return (
<div className="alert alert-danger">
Invalid field type <strong>{props.type}</strong> at path <strong>{props.path}</strong>
</div>
);
};
InvalidFieldType.propTypes = {
path: Reac... |
src/components/Chat/Input/UserSuggestion.js | welovekpop/uwave-web-welovekpop.club | import React from 'react';
import PropTypes from 'prop-types';
import ListItemAvatar from '@material-ui/core/ListItemAvatar';
import ListItemText from '@material-ui/core/ListItemText';
import Avatar from '../../Avatar';
import Suggestion from './Suggestion';
const UserSuggestion = ({
value: user,
...props
}) => (
... |
packages/demo/src/components/ContentAddRemove.js | marnusw/react-css-transition-replace | import React from 'react'
import Button from 'react-bootstrap/es/Button'
import ReactCSSTransitionReplace from 'react-css-transition-replace'
class ContentAddRemove extends React.Component {
state = { added: false }
handleClick = () => {
this.setState({ added: !this.state.added })
}
render() {
const ... |
src/routes/Post/components/Post.js | YoEight/corecursion-react-redux | import React from 'react'
import './Post.scss'
class Post extends React.Component {
componentDidMount() {
this.props.loadPost(this.props.params.postName)
}
render () {
if (this.props.post.notLoaded) {
return (
<div>
Loading…
</div>
)
} else if (this.props.post.... |
pootle/static/js/shared/components/FormSelectInput.js | pavels/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.
*/
import React from 'react';
import Select from 'react-selec... |
app/pages/HomePage/index.js | sekkithub/wg | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*/
import React from 'react';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import shouldPureComponentUpdate from 'react-pure-render/function';
import Container from 'Container';
import Wrapper fro... |
video_browser/src/components/search_bar.js | titusjin/reduxExp | <<<<<<< HEAD
import React, { Component } from 'react';
=======
import React, { Component } from "react";
>>>>>>> upstream/master
class SearchBar extends Component {
constructor(props) {
super(props);
<<<<<<< HEAD
this.state = { term: '' };
=======
this.state = { term: "" };
>>>>>>> upstream/master
}
... |
examples/src/components/StatesField.js | benchrise/react-select | import React from 'react';
import Select from 'react-select';
const STATES = require('../data/states');
var id = 0;
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var StatesField = React.createClass({
displayName: 'StatesField',
p... |
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 ... |
src/MeetingList/__tests__/MeetList.js | Detaysoft/react-chat-elements | import React, { Component } from 'react';
import { shallow } from 'enzyme';
import toJson from 'enzyme-to-json';
import MeetingList from '../MeetingList';
describe('MeetingList component', () => {
it('should render without issues', () => {
const component = shallow(<MeetingList />);
expect(component.length)... |
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... |
packages/ui-toolkit/src/tooltip/__tests__/tooltip.spec.js | geek/joyent-portal | import React from 'react';
import renderer from 'react-test-renderer';
import 'jest-styled-components';
import Tooltip, { Container, Target } from '../';
import { Theme } from '../../mocks';
describe('Tooltip', () => {
test('Tooltip', () => {
const tree = renderer
.create(
<Theme>
<Conta... |
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
}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.