path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
pathfinder/architecturestack/src/MissingDataAlert.js | leanix/leanix-custom-reports | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ModalDialog from './ModalDialog';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
import TableUtilities from './common/TableUtilities';
class MissingDataAlert extends Component {
constructor(props) {
sup... |
test/test_helper.js | warniel08/React-MockTubeTut | 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/docs/patterns/SubPageDoc.js | karatechops/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Anchor from 'grommet/components/Anchor';
import Box from 'grommet/components/Box';
import Header from 'grommet/components/Header';
import Heading from 'grommet/components/Heading';
import Label from 'g... |
.client/containers/DevToolsWindow.js | okmttdhr/meteor-react-redux-boilerplate | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
export default createDevTools(
<LogMonitor />
);
|
examples/shopping-cart/src/components/ProductsContainer.js | optimizely/nuclear-js | import React from 'react'
import ProductItem from '../../common/components/ProductItem'
import ProductsList from '../../common/components/ProductsList'
import reactor from '../reactor'
import getters from '../getters'
import actions from '../actions'
const ProductItemContainer = React.createClass({
onAddToCartCli... |
docs/src/sections/PaginationSection.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 PaginationSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
... |
src/components/GroupBySelect.js | todvora/extrade | import React from 'react'
export default class GroupBySelect extends React.Component {
constructor (props) {
super()
this.getOptions = this.getOptions.bind(this)
this.handleChange = this.handleChange.bind(this)
}
getOptions () {
return [
{code: 'A', label: 'Po letech'},
{code: 'Q', ... |
src/containers/App/app.js | zhangsichu/HybridAppReduxVsIonic | import React from 'react'
import { connect } from 'react-redux'
import Header from './header'
import Footer from './footer'
import 'normalize.css/normalize.css'
class App extends React.Component {
render () {
return (
<div className='app'>
<Header/>
{this.props.children}
... |
node_modules/laravel-elixir/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | romero1989/suge-project | 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/components/weather_radar.js | JohnDHamm/trail-tracker-react | import React, { Component } from 'react';
import { connect } from 'react-redux';
class WeatherRadar extends Component {
render () {
const { style, radarUrl } = this.props;
const styles = {
root: {
marginTop: 10,
},
img: {
width: '100%',
borderRadius: 2
}
};
if (!radarUrl) {
return... |
src/svg-icons/file/cloud-done.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudDone = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96... |
src/components/d3components/ToolTip.js | nbuechler/ample-affect-exhibit | import React from 'react';
import d3 from 'd3';
import _ from 'underscore';
export default class ToolTip extends React.Component {
constructor (props) {
super(props);
this.state = { };
}
render () {
var ttRectWidth = this.props.ttRectWidth,
ttRectHeight = this.props.ttRectHeight,
scal... |
examples/pinterest/app.js | albertolacework/react-router | import React from 'react';
import { Router, Route, IndexRoute, Link } from 'react-router';
var PICTURES = [
{ id: 0, src: 'http://placekitten.com/601/601' },
{ id: 1, src: 'http://placekitten.com/610/610' },
{ id: 2, src: 'http://placekitten.com/620/620' }
];
var Modal = React.createClass({
styles: {
posi... |
src/containers/ChangePasswdContainer.js | wind85/waterandboards | import React from 'react'
import ReactDOM from 'react-dom'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import ChangePasswd from '../components/ChangePasswd.js'
import * as Actions from '../actions'
const ChangePasswdContainer = ({ actions }) => ... |
src/svg-icons/device/battery-alert.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryAlert = (props) => (
<SvgIcon {...props}>
<path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4zM13 18h-2v-2h2v2zm0... |
src/config/routes.js | TalentedEurope/te-app | import React from 'react';
import { DrawerNavigator, StackNavigator } from 'react-navigation';
import Icon from 'react-native-vector-icons/Ionicons';
import Login from '../components/Login/Login';
import Register from '../components/Register/Register';
import About from '../components/About/About';
import SearchScreenN... |
tp-4/sebareverso/src/pages/posts/PostsPage.js | jpgonzalezquinteros/sovos-reactivo-2017 | import React from 'react';
import { Switch, Route } from 'react-router-dom';
import {Formulario, Listado} from './reduxContainer';
class PostsPage extends React.Component {
render() {
return (
<div>
<Switch>
<Route exact path={`${this.props.match.path}/`} component={Listado} />
... |
src/components/Modal/ModalContainer.js | jmlweb/paskman | import React, { Component } from 'react';
import PT from 'prop-types';
import { connect } from 'react-redux';
import {
modalClose,
} from './duck';
import Modal from './Modal';
class ModalContainer extends Component {
constructor(props) {
super(props);
this.handleClose = this.handleClose.bind(this);
}
... |
src/components/App.js | lakdred/Campanella-worldlinepack | import React, { Component } from 'react';
export default class App extends Component {
render () {
return (
<h1>Hello Camapanella!</h1>
);
}
}
|
examples/templates/components/header/index.js | jeffhandley/react-composite-pages | import React from 'react';
import url from 'url';
import Header from './containers/Header';
import reducers from './reducers';
import actionCreators from './actionCreators';
import { bindActionCreators, createStore } from 'redux';
import { Container } from 'react-composite-pages';
import ReactCreateClass from 'create-r... |
tests/react/default_props_any.js | TiddoLangerak/flow | // @flow
import React from 'react';
class Foo extends React.Component<{required: number}> {
static defaultProps: Object;
}
class Bar extends React.Component<{required: number}> {
static defaultProps: any;
}
<Foo/>;
<Bar/>;
|
assets/jqwidgets/demos/react/app/chart/lineseriewithmissingpoints/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxChart from '../../../jqwidgets-react/react_jqxchart.js';
import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js';
class App extends React.Component {
componentDidMount() {
let chart = this.refs.myChart.getInstan... |
src/app.js | djyaron/react5 | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import 'babel/polyfill';
import React from 'react';
import FastClick from 'fastclick';
import emptyFunction from 'react/lib/emptyFunction';
import App from './components/App';
import Dispatcher from './core/Dispatcher';
import AppActions from './... |
client/src/App.js | Daan-Grashoff/Motion-detection-node-opencv | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { socketConnect } from 'socket.io-react';
import './App.css';
import SocketPlayer from './components/SocketPlayer';
class App extends Component {
constructor(props, context) {
super(props, context);
this.socket = props.socket... |
src/client/index.js | gkosharov/simple-rx-chat | /**
* Client Entry File
*/
import React from 'react'
import ReactDOM from 'react-dom'
import App from './components/app'
ReactDOM.render(
<App/>,
document.getElementById('root')
)
|
src/components/About.js | paulhoughton/react-pwa | import React from 'react';
import { Card, CardTitle, CardText, CardActions, Button } from 'react-mdl';
import { Link } from 'react-router-dom';
export default () => (
<Card shadow={0} style={{ textAlign: 'center' }}>
<CardTitle style={{ margin: 'auto' }}>PWA</CardTitle>
<CardText>
About this Ap... |
src/containers/search/ResultsContainer.js | PocketOfWeird/MediaGarden | import React from 'react'
import { connect } from 'react-redux'
import { setSearch, clearSearch, setUpdateData, setCurrentView } from '../../actions'
import { filterResults, isLoggedIn } from '../../selectors'
import { setE, download } from '../../helpers'
import Results from '../../components/Results'
const mapState... |
src/components/common/progress.js | 7022Andre/kitti | import React, { Component } from 'react';
import PropTypes from 'prop-types';
export default class Progress extends Component {
static propTypes = {
completed: ((props, propName) => {
if (typeof props[propName] !== 'number') {
return Progress.throwError('Invalid Props:');
}
}),
color:... |
app/routes/post/messages/PostMessage.js | phoenixmusical/web-client | import React, { Component } from 'react';
import Relay from 'react-relay';
import querystring from 'querystring';
import LinkifyIt from 'linkify-it';
import tlds from 'tlds';
import MessageCard from '../../../components/MessageCard';
const linkify = new LinkifyIt();
linkify.tlds(tlds);
class PostMessage extends Compo... |
src/parser/paladin/holy/modules/beacons/FailedBeaconTransfers.js | fyruna/WoWAnalyzer | import React from 'react';
import { Trans } from '@lingui/macro';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import BeaconTransferFactor f... |
lib/SAlertContent.js | PascalGiessler/react-s-alert | import React from 'react';
import ReactDOM from 'react-dom';
import sAlertTools from './s-alert-parts/s-alert-tools';
import sAlertStore from './s-alert-parts/s-alert-store';
import SAlertContentTmpl from './SAlertContentTmpl';
class SAlertContent extends React.Component {
constructor(props) {
super(props)... |
actor-apps/app-web/src/app/components/sidebar/RecentSection.react.js | fengchenlianlian/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... |
react/TriangleArrowDownIcon/TriangleArrowDownIcon.js | seekinternational/seek-asia-style-guide | import svgMarkup from './TriangleArrowDownIcon.svg';
import React from 'react';
import Icon from '../private/Icon/Icon';
export default function TriangleArrowDownIcon(props) {
return <Icon markup={svgMarkup} {...props} />;
}
TriangleArrowDownIcon.displayName = 'TriangleArrowDownIcon';
|
packages/xo-web/src/xo-app/backup/restore/metadata.js | vatesfr/xo-web | import _ from 'intl'
import addSubscriptions from 'add-subscriptions'
import ButtonLink from 'button-link'
import Copiable from 'copiable'
import decorate from 'apply-decorators'
import Icon from 'icon'
import NoObjects from 'no-objects'
import React from 'react'
import SortedTable from 'sorted-table'
import Upgrade fr... |
js/components/MainSection.react.js | noodleswww/flux-todoMVC-es6 | import React from 'react';
import TodoActions from '../actions/TodoActions';
import TodoItem from './TodoItem.react';
const ReactPropTypes = React.PropTypes;
class MainSection extends React.Component {
constructor() {
super();
}
static propTypes = {
allTodos : ReactPropTypes.object.isRequ... |
src/routes/News/index.js | weedz/reactcms | import React from 'react';
import { Route } from 'react-router-dom';
import Archive from './routes/Archive';
import Article from './routes/Article';
/*
TODO: client side cache to prevent refetch of already fetched data
*/
export default class Handler extends React.Component {
constructor(props) {
super... |
examples/virtualized-rows/src/App.js | tannerlinsley/react-table | import React from 'react'
import styled from 'styled-components'
import { useTable, useBlockLayout } from 'react-table'
import { FixedSizeList } from 'react-window'
import scrollbarWidth from './scrollbarWidth'
import makeData from './makeData'
const Styles = styled.div`
padding: 1rem;
.table {
display: inli... |
src/pages/404.js | HorusGoul/horuslugo.com | import React from 'react'
import { rhythm } from '../utils/typography'
const NotFoundPage = () => (
<div style={{ margin: rhythm(2) }}>
<h1>Not found</h1>
<p>You just hit a route that doesn't exist...</p>
<a href="#" onClick={() => history.go(-1)}>Go back</a>
</div>
)
export default NotFoundPage
|
website/src/layouts/documentation.js | plouc/mozaik | import React from 'react'
import PropTypes from 'prop-types'
import Global from '../components/Global'
import Header from '../components/Header'
import Footer from '../components/Footer'
const Layout = ({ children, data }) => (
<Global siteTitle={data.site.siteMetadata.title}>
<Header siteTitle={data.site.... |
services/ui/src/components/BillingModifiers/AddBillingModifier.js | amazeeio/lagoon | import * as R from 'ramda';
import React from 'react';
import css from 'styled-jsx/css';
import { color } from 'lib/variables';
import BillingModifierForm from "./BillingModifierForm";
const AddBillingModifier = ({ group, month, editBillingModifier, editHandler }) => {
return(
<div className="addBillingModifi... |
src/components/Header/Header.js | jenyckee/react-redux-midi-rtc | import React from 'react'
import { IndexLink, Link } from 'react-router'
import classes from './Header.scss'
export const Header = (props) => (
<div>
</div>
)
export default Header
|
docs/src/examples/collections/Menu/Content/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
// TODO: Add example with <Popup> after it will be added
// TODO: Add example with <Search> after it will be added
const Content = ()... |
app/javascript/mastodon/features/report/components/status_check_box.js | musashino205/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import StatusContent from 'mastodon/components/status_content';
import Avatar from 'mastodon/components/avatar';
import DisplayName from 'mastodon/components/display_name';
import RelativeTimestamp... |
client/src/components/HtmlReadonlyField/tests/HtmlReadonlyField-story.js | silverstripe/silverstripe-admin | import React from 'react';
// eslint-disable-next-line import/no-extraneous-dependencies
import { storiesOf } from '@storybook/react';
import HtmlReadonlyField from 'components/HtmlReadonlyField/HtmlReadonlyField';
const htmlValue = `<div>Some <strong>HTML</strong>
<span style="font-style: italic">Content</span><br ... |
client/src/components/SocialButtonList.js | esausilva/profile-updater | import React from 'react';
import PropTypes from 'prop-types';
import { Button, Icon } from 'semantic-ui-react';
import { withRouter } from 'react-router-dom';
import update from 'immutability-helper';
import {
SOCIAL_BUTTON_SIZE_BIG,
SOCIAL_BUTTON_SIZE_SMALL,
HORIZONTAL,
VERTICAL
} from '../library/constants'... |
app/components/ContentLayout/index.js | balintsoos/app.rezsi.io | /* eslint-disable space-infix-ops */
import React from 'react';
import PropTypes from 'prop-types';
import { Box } from 'grid-styled';
const ContentLayout = ({ children }) => (
<Box width={[1, 5/6, 4/6, 3/6]} m={'auto'}>
{children}
</Box>
);
ContentLayout.propTypes = {
children: PropTypes.node,
};
export d... |
src/components/planeditor/listeditoritem.js | jamjar919/bork | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Name from '../namelist/name';
import Cell from './cell';
const $ = require('jquery');
class ListEditorItem extends React.Component {
constructor() {
super();
this.state = {
ope... |
examples/real-world/routes.js | ipluser/redux-saga | import React from 'react'
import { Route } from 'react-router'
import App from './containers/App'
import UserPage from './containers/UserPage'
import RepoPage from './containers/RepoPage'
export default (
<Route path="/" component={App}>
<Route path="/:login"
component={UserPage} />
<Route path="/... |
public/js/cat_source/es6/components/header/cattol/bulk_selection_bar/BulkSelectionBar.js | matecat/MateCat | import React from 'react'
import SegmentActions from '../../../../actions/SegmentActions'
import SegmentConstants from '../../../../constants/SegmentConstants'
import SegmentStore from '../../../../stores/SegmentStore'
class BulkSelectionBar extends React.Component {
constructor(props) {
super(props)
this.s... |
client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/index.js | Automattic/woocommerce-services | /** @format */
/**
* External dependencies
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { localize } from 'i18n-calypso';
import { Modal } from '@wordpress/components';
/**
* Internal dependencies
*/
imp... |
src/components/course-thumb/course-thumb.js | freecodecamp-spb/web-dev-cources | import React, { Component } from 'react';
import { Link } from 'react-router';
import './course-thumb.css';
export class CourseThumb extends Component {
render() {
let card = this.props.card;
let tags = card.tags.map(tag => {
return (
<li
className="list-group-item coursethumb... |
internals/templates/containers/LanguageProvider/index.js | josh-butler/react-bp-demo | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
React Native/Demos/redux_demo/index.android.js | AngryLi/note | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class redux_demo extends Component {
render() {
return (
<View style={styles.containe... |
20200300-js-spa-react-node-sql/client/src/components/NewsFeed.js | DamienFremont/blog | import React from 'react';
import { Button } from 'reactstrap';
import { FormattedMessage } from 'react-intl';
import { faExternalLinkAlt } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { ListGroup, ListGroupItem } from 'reactstrap';
const NewsFeed =... |
components/MovieListItem.js | flyerq/movie-list | import React from 'react';
import {
Text,
View,
Image,
StyleSheet,
Dimensions,
NativeModules,
LayoutAnimation,
TouchableOpacity,
} from 'react-native';
import Rating from './Rating';
import Favorite from './Favorite';
const { UIManager } = NativeModules;
UIManager.setLayoutAnimationEnabledExperimental
... |
src/routes/broadcast/list.js | ykx456654/hr_admin | import React from 'react'
import PropTypes from 'prop-types'
import { Link,router } from 'dva/router'
import { connect } from 'dva'
import {
Button,
Pagination,
Table,
Icon,
Modal
} from 'antd'
import style from './index.less'
function broadcast ({ broadcast,dispatch }) {
let { table } = bro... |
frontend/node_modules/recharts/es6/cartesian/Bar.js | justdotJS/rowboat | import _isEqual from 'lodash/isEqual';
import _isFunction from 'lodash/isFunction';
import _isArray from 'lodash/isArray';
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(sourc... |
src/svg-icons/editor/insert-photo.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorInsertPhoto = (props) => (
<SvgIcon {...props}>
<path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/>
</SvgIcon>
);
EditorI... |
src/components/Site/HomeContainer.js | efiliba/bcc | import React from 'react';
import {connect} from 'react-redux';
import Home from './Home';
import {staticFiles} from '../../../config';
class HomeContainer extends React.Component {
render() {
return <Home/>;
}
componentDidMount() {
// Set src of all img's to it's data-src value (deferred... |
src/index.js | LeBenLeBen/quotes | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
import './styles/index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
app/components/shared/pagination.js | nypl-registry/browse | import React from 'react'
import { Link } from 'react-router'
import { stringify } from 'qs'
const Pagination = React.createClass({
propTypes () {
return {
total: React.PropTypes.int.isRequired,
query: React.PropTypes.object.isRequired,
basePath: React.PropTypes.string.isRequired,
result... |
lib/src/editor.js | SerendpityZOEY/Fixr-RelevantCodeSearch | import React from 'react';
import CodeMirror from 'react-codemirror';
require('codemirror/mode/clike/clike');
import {Grid, Row, Col} from 'react-flexbox-grid/lib/index';
import IconButton from 'material-ui/IconButton';
class Editor extends React.Component{
constructor(props){
super(props);
this.s... |
src/components/about/AboutPage.js | kunwardeep/react-redux-store | import React from 'react';
class AboutPage extends React.Component{
render(){
return (
<div>
<h1>About</h1>
<p>This application uses react</p>
</div>
);
}
}
export default AboutPage;
|
src/svg-icons/maps/map.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsMap = (props) => (
<SvgIcon {...props}>
<path d="M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM15 ... |
stories/icon/index.js | JerryBerton/dh-component | import React from 'react';
import { Icon } from '../../src';
import IconList from './icon_list';
import { storiesOf, action, linkTo } from '@kadira/storybook';
const options = {
inline: true,
propTables: false,
source: false
}
storiesOf('图标库', module)
.addWithInfo(
'图标库列表',
() => (
<IconList />
)... |
docs/src/app/components/pages/components/Menu/ExampleIcons.js | manchesergit/material-ui | import React from 'react';
import Paper from 'material-ui/Paper';
import Menu from 'material-ui/Menu';
import MenuItem from 'material-ui/MenuItem';
import RemoveRedEye from 'material-ui/svg-icons/image/remove-red-eye';
import PersonAdd from 'material-ui/svg-icons/social/person-add';
import ContentLink from 'material-ui... |
front-end/src/component/home-photo/photo-change.js | axelmichael11/website | import './_home-photo.scss'
import React from 'react'
import {connect} from 'react-redux'
import PhotoTitle from './photo_title.js'
import FontAwesome from 'react-fontawesome'
import Scroll from 'react-scroll'
import PhotoForm from './photo-form.js'
import { Parallax } from 'react-scroll-parallax'
const Link = Scroll... |
test/test-cases/seek-style-guide/app/src/client.js | seek-oss/sku | import React from 'react';
import { hydrate } from 'react-dom';
import App from './App';
export default () => {
hydrate(<App />, document.getElementById('app'));
};
|
app/app.js | interra/data-generate | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
impor... |
packages/cxx/src/head.js | wangzuo/cxx | import React, { Component } from 'react';
import { Helmet } from 'react-helmet';
class Head extends Component {
static set canUseDOM(canUseDOM) {
Helmet.canUseDOM = canUseDOM;
}
handleChange = newState => {
// console.log('handleChange', newState);
};
render() {
return <Helmet {...this.props} o... |
assets/jqwidgets/demos/react/app/datatable/paging/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxDataTable from '../../../jqwidgets-react/react_jqxdatatable.js';
class App extends React.Component {
render() {
let source =
{
localData: generatedata(200),
dataType: 'array',
... |
src/navbar/framework-inspector-modal.component.js | joeldenning/single-spa-examples | import React from 'react';
export default class FrameworkInspectorModal extends React.Component {
componentDidMount() {
$(this.el).modal({
dismissible: true,
complete: () => {
this.props.hideModal();
},
});
$(this.el).modal('open');
}
render() {
/* We're using a materia... |
src/components/IndexPage/IndexTitle.js | alexeiaccio/moscowriver | import React from 'react'
import { TitleWrapper, StyledLink, Row} from 'Styled'
import { WavedBack, Title, ResultLinks } from 'Components'
export const IndexTitle = ({data, results}) => {
return (
<TitleWrapper>
<WavedBack />
<Row>
<StyledLink to='/about/'>О проекте</StyledLink>
<Title color='w... |
js/src/dapps/tokenreg.js | immartian/musicoin | // Copyright 2015, 2016 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity 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... |
src/app/views/savedRecipes.js | benigeri/soapee-ui | import _ from 'lodash';
import React from 'react';
import Reflux from 'reflux';
import { Link } from 'react-router';
import meStore from 'stores/me';
import meActions from 'actions/me';
import RecipeListItem from 'components/recipeListItem';
import Spinner from 'components/spinner';
export default React.createClas... |
src/svg-icons/action/lock.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLock = (props) => (
<SvgIcon {...props}>
<path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.... |
src/svg-icons/action/autorenew.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAutorenew = (props) => (
<SvgIcon {...props}>
<path d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 ... |
client/src/routes/Shell.js | BDiuguid/fantasy-fifa | import React from 'react';
import Header from '../components/Header';
import Footer from '../components/Footer';
const Shell = props => (
<div style={{ display: 'flex', flexDirection: 'column', height: '100%' }}>
<Header />
<main style={{ paddingLeft: '15px', paddingRight: '15px', flex: 1 }}>
{props.c... |
src/main.js | agualbbus/fibmaps | require('./content/index.html');
// Vendor
import 'bootstrap/dist/css/bootstrap.min';
import 'font-awesome/css/font-awesome.min';
import 'style/index';
// ready to go
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
clients/packages/admin-client/src/mobilizations/widgets/__plugins__/form/components/button.js | nossas/bonde-client | import PropTypes from 'prop-types'
import React from 'react'
const Button = ({
success,
buttonText,
loading,
handleClick,
mobilization: { body_font: bodyFont }
}) => (
<div style={{ fontFamily: bodyFont }}>
<button
disabled={loading}
className='caps btn bg-darken-4 p2 col-12 mt1 mb2 rounded... |
src/parser/monk/windwalker/modules/spells/azeritetraits/FuryOfXuen.js | fyruna/WoWAnalyzer | import React from 'react';
import Events from 'parser/core/Events';
import Analyzer, { SELECTED_PLAYER_PET, SELECTED_PLAYER } from 'parser/core/Analyzer';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import {calculateAzeriteEffects} from 'common/stats';
import SPELLS from 'common/SPELLS';
import ... |
src/modules/Components/Views/NoMatch_404.js | rtellez700/MESA_Connect_2.0 | import React, { Component } from 'react';
class NoMatch_404 extends Component {
render() {
return (
<div className="container well text-center">
<div className="row">
<div className="col-md-12">
<h3>Something went wrong!</h3>
<h1>404</h1>
<p>Page not Found!</p>
</div>
... |
src/routes/discussion/DiscussionContainer.js | nambawan/g-old | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { findDOMNode } from 'react-dom';
import withStyles from 'isomorphic-style-loader/withStyles';
import WorkteamHeader from '../../components/WorkteamHeader';
import Notification from '../../components/Notificatio... |
src/index.js | picchietti/picchietti.io | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/app';
import setupFontAwesome from './scripts/font-awesome';
import './index.css';
setupFontAwesome();
ReactDOM.render(
<App />,
document.getElementById('app')
);
|
ajax/libs/react-redux/7.1.0-alpha.0/react-redux.js | extend1994/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('redux'), require('react-dom')) :
typeof define === 'function' && define.amd ? define(['exports', 'react', 'redux', 'react-dom'], factory) :
(global = global || self, factory(glo... |
public/client/routes/addUser/containers/addUser.js | nearform/concorda-dashboard | 'use strict'
import React from 'react'
import {connect} from 'react-redux'
import {reduxForm} from 'redux-form'
import Select2 from 'react-select2-wrapper'
import _ from 'lodash'
import {upsertUser} from '../../../modules/user/actions/index'
import {getClients} from '../../../modules/client/actions/index'
import {get... |
react-native/WeatherProject/Forecast.js | tiagofumo/react-sample-projects | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
TextInput,
Text,
View
} from 'react-native';
class Forecast extends Component {
render() {
return (
<View>
<Text style={styles.bigText}>
{this.props.main}
</Text>
<Text style={styles.main... |
addons/knobs/src/components/types/Boolean.js | bigassdragon/storybook | import PropTypes from 'prop-types';
import React from 'react';
const styles = {
display: 'table-cell',
boxSizing: 'border-box',
verticalAlign: 'top',
height: 21,
outline: 'none',
border: '1px solid #ececec',
fontSize: '12px',
color: '#555',
};
class BooleanType extends React.Component {
render() {
... |
src/components/BigItemView - Copy.js | longyarnz/WelFurnish-E-Commerce | import React, { Component } from 'react';
import Image from './Image';
import Cycle from '../files/cycle.png';
import Repair from '../files/repair.png';
import Sales from '../files/sales.png';
export default class BigItemView extends Component {
constructor(props) {
super(props);
this._click = this._click.bin... |
react-client/src/components/Home.js | lowtalkers/escape-reality | import AFRAME from 'aframe';
import 'aframe-animation-component';
import 'aframe-text-component';
import 'babel-polyfill';
import {Entity, Scene} from 'aframe-react';
import React from 'react';
import { Link, withRouter } from 'react-router';
import Camera from './Camera';
import Text from './Text';
import Sky from '.... |
src/svg-icons/action/lightbulb-outline.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLightbulbOutline = (props) => (
<SvgIcon {...props}>
<path d="M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1... |
src/pages/404.js | eyeccc/eyeccc.github.io | import React from 'react';
import Layout from '../components/layout';
import SEO from '../components/seo';
import style from '../styles/notFound.module.css';
const imgSource =
'https://images.unsplash.com/photo-1498857127156-d2943a73f456' +
'?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1500&q... |
src/components/DataDisplay/List/components/List.js | Aus0049/react-component | /**
* Created by Aus on 2017/4/1.
*/
import React from 'react'
import Item from './Item'
import classNames from 'classnames'
import '../style/list.scss'
// 用于包裹item的外层组件
const List = (props) => {
const { prefixCls, className, renderHeader, renderFooter, children, ...restProps } = props;
const wrapClass = cla... |
4-routing/src/App.js | pirosikick/react-hands-on-20171023 | import React, { Component } from 'react';
import { HashRouter, Route, Redirect, Switch } from 'react-router-dom';
import './App.css';
import Login from './pages/Login';
import RoomList from './pages/RoomList';
import Room from './pages/Room';
class App extends Component {
render() {
return (
<HashRouter>
... |
src/templates/post-template.js | nicklanasa/nicklanasa.github.io | // @flow strict
import React from 'react';
import { graphql } from 'gatsby';
import Layout from '../components/Layout';
import Post from '../components/Post';
import { useSiteMetadata } from '../hooks';
import type { MarkdownRemark } from '../types';
type Props = {
data: {
markdownRemark: MarkdownRemark
}
};
... |
frontend/src/DiscoverMovie/Posters/DiscoverMoviePoster.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import CheckInput from 'Components/Form/CheckInput';
import Icon from 'Components/Icon';
import Label from 'Components/Label';
import IconButton from 'Components/Link/IconButton';
import Link from 'Components/Link/Link';
import Popover from '... |
src/components/NotFoundPage.js | luanatsainsburys/road-runner | import React from 'react';
import { Link } from 'react-router';
const NotFoundPage = () => {
return (
<div>
<h4>
404 Page Not Found
</h4>
<Link to="/"> Go back to homepage </Link>
</div>
);
};
export default NotFoundPage;
|
node_modules/lite-server/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | esmitley/Ang2my-proj | 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/scripts/components/user/UserAddButton.component.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/createApp.js | anibali/showoff | import path from 'path';
import express from 'express';
import bodyParser from 'body-parser';
import compression from 'compression';
import { matchPath } from 'react-router-dom';
import DocumentTitle from 'react-document-title';
import fs from 'fs-extra';
import mime from 'mime';
import React from 'react';
import react... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.