path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/index.js | thomasthiebaud/lundalogik | import React from 'react'
import ReactDOM from 'react-dom'
import RedBox from 'redbox-react'
import { LocaleProvider } from 'antd'
import { AppContainer } from 'react-hot-loader'
import { Provider } from 'react-redux'
import enUS from 'antd/lib/locale-provider/en_US'
import state from 'state'
import './styles/global... |
src/containers/square.js | JAstbury/react-simple-game | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { selectSquare } from '../actions/index';
import { bindActionCreators } from 'redux';
class Square extends Component {
renderSquare() {
return (
<div className="square-content">
{this.props.number}
... |
node-life/build/build/react-native-life/ReactNativeLife/js/Components/View/ViewExample.js | CaMnter/front-end-life | /**
* @author CaMnter
*/
import React from 'react';
import {
StyleSheet,
Text,
View
} from 'react-native';
import TouchableWithoutFeedback from 'TouchableWithoutFeedback';
class ViewBorderStyleExample extends React.Component {
state = {
showBorder: true
};
render() {
return... |
src/app-client.js | salemdes/tinglado | /* global window document */
import React from 'react';
import { render } from 'react-dom';
import { BrowserRouter as Router } from 'react-router-dom';
import { App } from './components/App';
const AppClient = () => (
<Router>
<App />
</Router>
);
window.onload = () => {
render(<AppClient />, document.getE... |
app/containers/LandingContainer.js | oeb25/colio | import React from 'react';
import { connect } from 'redux/react';
import Landing from '../components/Landing';
import * as RoomActions from '../actions/RoomActions';
import { bindActionCreators } from 'redux';
@connect(state => ({
room: state.room
}))
export default class LandingContainer extends React.Component {
... |
src/svg-icons/maps/restaurant-menu.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsRestaurantMenu = (props) => (
<SvgIcon {...props}>
<path d="M8.1 13.34l2.83-2.83L3.91 3.5c-1.56 1.56-1.56 4.09 0 5.66l4.19 4.18zm6.78-1.81c1.53.71 3.68.21 5.27-1.38 1.91-1.91 2.28-4.65.81-6.12-1.46-1.46-4.2... |
client/scripts/components/ExploreFilters.js | ahoarfrost/metaseek | import React from 'react';
// Material Design imports
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import ColorPalette from './ColorPalette';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
... |
imports/client/ui/pages/Documents.js | mgscreativa/base | import React from 'react';
import { Link } from 'react-router-dom';
import { Row, Col, Button } from 'react-bootstrap';
import DocumentsList from '../components/DocumentsList';
const Documents = () => (
<div className="Documents">
<Row>
<Col xs={12}>
<div className="page-header clearfix">
... |
app/components/Home.js | Toreant/monster_web | /**
* Created by apache on 15-10-23.
*/
import React from 'react';
import HomeActions from '../actions/HomeActions';
import HomeStore from '../stores/HomeStore';
import Carousel from './Carousel';
import Loading from './Loading';
import Weather from './Weather';
import {Link} from 'react-router';
class Home extends ... |
node_modules/react-bootstrap/src/Col.js | gitoneman/react-soc | import React from 'react';
import classSet from 'classnames';
import constants from './constants';
const Col = React.createClass({
propTypes: {
xs: React.PropTypes.number,
sm: React.PropTypes.number,
md: React.PropTypes.number,
lg: React.PropTypes.number,
xsOffset: React.PropTypes.number,
smO... |
src/components/nav-icon/index.js | Adutchguy/portfolio | import './_nav-icon.scss';
import React from 'react';
import Icon from '../icon';
class Nav extends React.Component{
constructor(props) {
super(props);
this.state = {
};
}
render() {
return (
<nav onClick={this.props.handleNavIconClickEvent} className='nav'>
<Icon
icon='... |
chrome/extension/todoapp.js | adamburmister/pinterest-image-layout-chrome-ext | import React from 'react';
import ReactDOM from 'react-dom';
import Root from '../../app/containers/Root';
import './todoapp.css';
chrome.storage.local.get('state', obj => {
const { state } = obj;
const initialState = JSON.parse(state || '{}');
console.log('todoapp.js');
const createStore = require('../.... |
src/client/containers/ContactsPage/ContactsPage.js | sisforserrgio/sisforserrgio.github.io | import React from 'react';
import { Link } from 'react-router';
import MenuButton from '../../components/MenuButton/MenuButton.js';
import './ContactsPage.css';
export default class ContactsPage extends React.Component {
render() {
return (
<div className="contactsPage">
<Link to="menu">
... |
frontend/app_v2/src/components/DictionaryDetail/DictionaryDetailContainer.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
import DictionaryDetailData from 'components/DictionaryDetail/DictionaryDetailData'
import DictionaryDetailPresentation from 'components/DictionaryDetail/DictionaryDetailPresentation'
import DictionaryDetailPresentationDrawer from 'components/DictionaryDetail... |
src/components/Interviews/Create.js | jmichelin/interview-frontend | /**
* Created by jmichelin on 12/28/16.
*/
import React from 'react';
class CreateInterviews extends React.Component {
render() {
return (
<div>Create Interviews Here</div>
)
}
}
export default CreateInterviews |
client/components/BackToAlbumLink.js | RobinClowers/photo-album | import React from 'react'
import { withStyles } from '@material-ui/core/styles'
import Typography from '@material-ui/core/Typography'
import Icon from '@material-ui/core/Icon'
import { Link } from 'client/routes'
const styles = theme => ({
link: {
alignItems: 'center',
display: 'flex',
margin: theme.spac... |
src/containers/Asians/TabControls/PreliminaryRounds/CreateRooms/6_AdjudicatorsPreview/Navigation/index.js | westoncolemanl/tabbr-web | import React from 'react'
import Button from 'material-ui/Button'
export default ({
onBack,
onNext,
onNextDisabled
}) =>
<div
className={'flex flex-row justify-end mt3'}
>
<Button
onClick={onBack}
children={'BACK'}
/>
<Button
variant={'raised'}
color={'primary'}
... |
web/react/src/client/components/locs/GridContainer/Hero/HeroTextContainer/HeroText/HeroTextChars/HeroTextChars.js | JamesMillercus/Portfolio-Website | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { fetchCurrentChars, fetchScrolledItem } from './../../../../../../../actions';
import './assets/scss';
class HeroTextChars extends Component {
componentDidUpdate() {
// setTimeout(() => this.animateChars(), 2000);
if (!t... |
node_modules/antd/es/affix/index.js | prodigalyijun/demo-by-antd | import _extends from "babel-runtime/helpers/extends";
import _defineProperty from "babel-runtime/helpers/defineProperty";
import _classCallCheck from "babel-runtime/helpers/classCallCheck";
import _createClass from "babel-runtime/helpers/createClass";
import _possibleConstructorReturn from "babel-runtime/helpers/possib... |
src/svg-icons/maps/directions.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirections = (props) => (
<SvgIcon {...props}>
<path d="M21.71 11.29l-9-9c-.39-.39-1.02-.39-1.41 0l-9 9c-.39.39-.39 1.02 0 1.41l9 9c.39.39 1.02.39 1.41 0l9-9c.39-.38.39-1.01 0-1.41zM14 14.5V12h-4v3H8v-4c0-.... |
app/main.js | bullines/wwgs | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App.js';
ReactDOM.render(<App />, document.getElementById('app-container'));
|
src/svg-icons/action/find-in-page.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFindInPage = (props) => (
<SvgIcon {...props}>
<path d="M20 19.59V8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c.45 0 .85-.15 1.19-.4l-4.43-4.43c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5... |
src/server.js | lian1925/redux | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
// import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
import A... |
docs/app/Examples/elements/Label/Types/LabelExampleRibbonImage.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Grid, Image } from 'semantic-ui-react'
const LabelExampleRibbonImage = () => (
<Grid columns={2}>
<Grid.Column>
<Image
fluid
label={{ as: 'a', color: 'black', content: 'Hotel', icon: 'hotel', ribbon: true }}
src='http://semantic-ui.com/images/wiref... |
examples/todomvc/containers/TodoApp.js | pairyo/redux | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Header from '../components/Header';
import MainSection from '../components/MainSection';
import * as TodoActions from '../actions/todos';
class TodoApp extends Component {
render() {
... |
app/scripts/Community/pages/MailchimpPage.js | igr-santos/bonde-client | import React from 'react'
import { reduxForm } from 'redux-form'
import { edit } from '../actions'
import {
FormRedux,
SubmitButton,
FormGroup,
FormControl,
ControlLabel,
UploadImageField,
SuccessMessage
} from '../../Dashboard/Forms'
import { FloatLayout } from '../../Dashboard/Grids'
const MailchimpP... |
modules/RoutingContext.js | arusakov/react-router | import React from 'react'
import invariant from 'invariant'
import getRouteParams from './getRouteParams'
const { array, func, object } = React.PropTypes
/**
* A <RoutingContext> renders the component tree for a given router state
* and sets the history object and the current location in context.
*/
const RoutingC... |
src/components/Contact/Contact.js | lizlove/tender-buttons | import React from 'react';
const Contact = () => {
return (
<div>
<h1>Contact</h1>
<div>
<div className="field">
<p className="about">Elizabeth Lovero, Software Engineer + Digital Preservation</p>
<p className="about">Parker Fishel, Archivist and Audio Preserva... |
src/routes/dashboardPages/logs/index.js | happyboy171/Feeding-Fish-View- | import React from 'react';
import Logs from './Logs';
export default {
path: '/logs',
action() {
return <Logs />;
}
};
|
app/react-icons/fa/female.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaFemale extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m34.1 23.6q0 0.9-0.7 1.5t-1.5 0.6q-1.1 0-1.8-0.9l-5-7.7h-1v3l5.5 9.2q0.2 0.3 ... |
loggit-todomvc/loggit/renderers/precompute_react_renderer.js | kevinrobinson/loggit | import React from 'react';
import _ from 'lodash';
import ReactInterpreter from '../react_interpreter'
import Timer from '../timer';
// This batches with RAF, but also precomputes values for `compute`
// before calling `render` in the next animation frame.
// This way we can split the computation step from rendering,... |
src/icons/SocialGoogleplus.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class SocialGoogleplus extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M242.1,275.6l-18.2-13.7l-0.1-0.1c-5.8-4.6-10-8.3-10-14.7c0-7,5-11.8,10.9-17.4l0.5-0.4c20-15.2,44.7-34.3,44.... |
packages/material-ui-icons/src/SignalWifi3BarTwoTone.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7L12 21.5 23.64 7z" /><path d="M3.53 10.95L12 21.5l8.47-10.55C20.04 10.62 16.81 8 12 8s-8.04 2.62-8.47 2.95z" /></R... |
src/tag/map/index.js | artemdudkin/gtd | import React from 'react';
import autobind from 'autobind-decorator';
import Dimensions from 'react-dimensions';
import { YMaps, Map, Placemark } from 'react-yandex-maps';
import './styles.css';
@autobind
class MapTag extends React.Component {
constructor(props) {
super(props);
this.state = {
... |
src/component/searchTab/FiltersComponent.js | BristolPound/cyclos-mobile-3-TownPound | import React from 'react'
import { View, Image } from 'react-native'
import DefaultText from '../DefaultText'
import ProfileImage from '../profileImage/ProfileImage'
import FixedScrollableList from './FixedScrollableList'
import styles from './BusinessListStyle'
import searchTabStyle from './SearchTabStyle'
import Imag... |
src/neuralNetwork/networkModals/DigitModalChart.js | csenn/nn-visualizer | import _ from 'lodash';
import React from 'react';
import d3 from 'd3';
export default class extends React.Component {
componentDidMount() {
this._renderChart();
}
_renderChart() {
const { data } = this.props;
const width = 500;
const barHeight = 45;
const x = d3.scale.linear()
.range... |
src/index.js | dalewang1995/react_demo | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
src/server.js | SgtRock91/FantasyOptimizer | /**
* 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 path from 'path';
import express from 'express';... |
src/chat/InterestedInitialQuestion.js | VasilyShelkov/scikic-app | import React from 'react';
import Typist from 'react-typist';
const InterestedInitialQuestion = ({ onClick }) => {
let optionButtons;
return (
<div className="ui attached message">
<Typist className="header" startDelay={1000} avgTypingDelay={40}
onTypingDone={() => $(optionButtons).transition('sw... |
dev/js/Nav.js | prador/project-one | import React from 'react'
import '../scss/App.scss'
var Nav = React.createClass({
render() {
return (<div className='nav'>
<h3> Noteworthy</h3>
</div>)
}
})
export default Nav
|
rojak-ui-web/src/app/result/DefaultResult.js | rawgni/rojak | import React from 'react'
import ResultGateway from './ResultGateway'
import SearchEngine from '../utils/SearchEngine'
const DefaultResult = () => {
return (
<ResultGateway showIn={[/./]} hideIn={[/^(media)$/, /^(kandidat)$/, /^(pasangan)$/]}>
<SearchEngine />
</ResultGateway>
)
}
export default Def... |
src/ScrollView/utils/infiniteHelpers.js | SupremeTechnopriest/react-blueprint | import React from 'react';
import ConstantInfiniteComputer from '../computers/constantInfiniteComputer';
import ArrayInfiniteComputer from '../computers/arrayInfiniteComputer';
function createInfiniteComputer(data, children) {
let computer;
let numberOfChildren = React.Children.count(children);
// This should be ... |
src/components/historical-prices/historical-prices.js | SupasitC/Pricetrolley | import React from 'react'
import {Row, Col} from 'react-bootstrap'
import PriceList from './price-list'
export default class HistoricalPrices extends React.Component {
render() {
const style = require('./historical-prices.scss');
return (
<div className={style.historicalPrices}>
<h3>Historical... |
src/client/todos/todo.react.js | grabbou/este | import './todo.styl';
import * as actions from './actions';
import Component from '../components/component.react';
import Editable from '../components/editable.react';
import React from 'react';
import immutable from 'immutable';
class Todo extends Component {
render() {
const {disabled, editable, todo} = this.... |
src/routes/events/BigmarkerEvent.js | zuban/edhunter | import React from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './BigmarkerStyles.css';
import {
Container, Row, Col, Form, FormGroup, Label, Input, Button
} from 'reactstrap';
class BigmarkerEvent extends React.Component {
static propT... |
examples/official-storybook/stories/addon-cssresources.stories.js | storybooks/react-storybook | import React from 'react';
export default {
title: 'Addons/Cssresources',
};
export const PrimaryLargeButton = () => (
<button type="button" className="btn btn-lg btn-primary">
Primary Large Button
</button>
);
PrimaryLargeButton.story = {
name: 'Primary Large Button',
parameters: {
cssresources: [
... |
src/components/Uploads.js | kinseyost/immutable-redux | import React, { Component } from 'react';
import styles from './Uploads.css';
import Button from './Button.js';
export default class Uploads extends Component {
state = { fileInfo: [] };
handleUpload = (e) => {
const { files } = e.target;
const filesLength = files.length;
const fileInfo = [];
for ... |
web/src/templates/uses-post.js | ajmalafif/ajmalafif.com | import React from 'react'
import Helmet from 'react-helmet'
import { format, formatDistance, differenceInDays } from 'date-fns'
import { graphql } from 'gatsby'
import { MDXProvider } from '@mdx-js/react'
import { MDXRenderer } from 'gatsby-plugin-mdx'
import CodeBlock from '../components/CodeBlock'
import { Link } fro... |
ajax/libs/react-instantsearch/3.3.0/Dom.js | nolsherry/cdnjs | /*! ReactInstantSearch 3.3.0 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define ... |
packages/material-ui/src/Stepper/Step.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
export const styles = theme => ({
root: {},
horizontal: {
paddingLeft: theme.spacing.unit,
paddingRight: theme.spacing.unit,
'&:first-child': {
paddin... |
src/screens/LoginScreen/index.js | msmsmsmsms/redux-period | import React, { Component } from 'react';
import { connect } from 'react-redux';
import {
Alert,
View,
ActivityIndicator,
Button,
TextInput,
} from 'react-native';
import { emailChanged, passwordChanged, loginUser } from '../../actions';
import styles from './styles';
class Login extends Component {
rende... |
src/components/MainPage/Go/Go.js | cindyqian/BoardGames | import React, { Component } from 'react';
import {connect} from 'react-redux'
import cs from '../../../services/CommunicationService'
export default class Go extends Component {
render() {
return (
<div>
</div>
)
}
}
|
SingularityUI/SingularityTailer/example/index.js | hs-jenkins-bot/Singularity | import { AppContainer } from 'react-hot-loader';
import React from 'react';
import ReactDOM from 'react-dom';
import { createStore, combineReducers, applyMiddleware, compose } from 'redux';
import thunk from 'redux-thunk';
import logger from 'redux-logger';
import { Provider } from 'react-redux';
import { default as ... |
examples/todomvc/index.js | grahamlyus/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
import 'todomvc-app-css/index.css';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | falcontersama/chatbot | 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/components/Image/Image.js | arnef/ligatool-hamburg | import React from 'react';
import { Image as RNImage } from 'react-native';
import styles from './styles';
export default function Image(props) {
const source = props.url ? { uri: props.url } : props.source;
const imgStyle = [styles.image];
if (props.size) {
imgStyle.push({ height: props.size, width: props... |
docs/src/sections/CustomStylesSection.js | HPate-Riptide/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function CustomStylesSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<Anchor id="custom-styles">Custom S... |
js/jqwidgets/demos/react/app/grid/roweditwitheverpresentrow/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
class App extends React.Component {
render() {
let source =
{
localdata: generatedata(10),
datafields:
[
... |
src/components/common/NotFoundPage.js | Marsellus47/parking | import React from 'react';
const NotFoundPage = () => {
return (
<div>
<h3>Page not found</h3>
<p>We are sorry but the page you are looking for does not exist.</p>
</div>
);
};
export default NotFoundPage; |
packages/material-ui-icons/src/CropDin.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let CropDin = 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-2zm0 16H5V5h14v14z" />
</SvgIcon>;
CropDin = pure(CropDin);
CropDin.muiName = ... |
src/GoalDescriptionGeneral/index.js | christianalfoni/ducky-components | import Icon from '../Icon';
import Typography from '../Typography';
import GoalButtonPopOverMenuItem from '../GoalButtonPopOverMenuItem';
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import styles from './styles.css';
import moment from 'moment';
moment.locale('nb... |
src/svg-icons/notification/network-locked.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationNetworkLocked = (props) => (
<SvgIcon {...props}>
<path d="M19.5 10c.17 0 .33.03.5.05V1L1 20h13v-3c0-.89.39-1.68 1-2.23v-.27c0-2.48 2.02-4.5 4.5-4.5zm2.5 6v-1.5c0-1.38-1.12-2.5-2.5-2.5S17 13.12 17 1... |
app/javascript/mastodon/components/short_number.js | tri-star/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { toShortNumber, pluralReady, DECIMAL_UNITS } from '../utils/numbers';
import { FormattedMessage, FormattedNumber } from 'react-intl';
// @ts-check
/**
* @callback ShortNumberRenderer
* @param {JSX.Element} displayNumber Number to display
* @para... |
client-web/client-web/src/components/Documentation.js | ppsari/final | import React from 'react'
import MenuBar from '../components/MenuBar'
import Footer from '../components/Footer'
class MyDetailProperty extends React.Component {
constructor(props) {
super(props);
this.state = {
};
this.toggle = this.toggle.bind(this);
}
toggle() {
this.setState({
mo... |
src/react/get-children.js | nolimits4web/Swiper | import React from 'react';
function processChildren(c) {
const slides = [];
React.Children.toArray(c).forEach((child) => {
if (child.type && child.type.displayName === 'SwiperSlide') {
slides.push(child);
} else if (child.props && child.props.children) {
processChildren(child.props.children).fo... |
docs/app/Examples/elements/Loader/Types/index.js | clemensw/stardust | import React from 'react'
import { Message } from 'semantic-ui-react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const LoaderTypesExamples = () => (
<ExampleSection title='Types'>
<ComponentExample... |
src/routes.js | cheeselover/WCF2015 | import React from 'react';
import {IndexRoute, Route} from 'react-router';
import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth';
import {
About,
App,
CreateGame,
Game,
Games,
Home,
Login,
LoginSuccess,
NotFound,
Register,
} from 'containers';
export ... |
src/frontend/containers/user/admin/add.js | PiGarageDoor/garage-pi | import React from 'react';
import TextField from 'material-ui/lib/text-field';
import { Link, browserHistory } from 'react-router';
import RaisedButton from 'material-ui/lib/raised-button';
import Paper from 'material-ui/lib/paper';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
impo... |
components/Table/Holders/Card/Modifiers/Ato10.js | mattbajorek/blackJackReact | import React, { Component } from 'react';
import pos1 from './Positions/pos1';
import pos2 from './Positions/pos2';
import pos3 from './Positions/pos3';
import pos4 from './Positions/pos4';
import pos5 from './Positions/pos5';
import pos6 from './Positions/pos6';
import pos7 from './Positions/pos7';
import pos8 from '.... |
docs/src/app/components/pages/components/Chip/ExampleArray.js | andrejunges/material-ui | import React from 'react';
import Chip from 'material-ui/Chip';
/**
* An example of rendering multiple Chips from an array of values. Deleting a chip removes it from the array.
* Note that since no `onTouchTap` property is defined, the Chip can be focused, but does not gain depth
* while clicked or touched.
*/
exp... |
examples/huge-apps/components/GlobalNav.js | flocks/react-router | import React from 'react';
import { Link } from 'react-router';
const styles = {};
class GlobalNav extends React.Component {
static defaultProps = {
user: {
id: 1,
name: 'Ryan Florence'
}
};
constructor (props, context) {
super(props, context);
this.logOut = this.logOut.bind(this);... |
jekyll-strapi-tutorial/api/plugins/users-permissions/admin/src/containers/EditPage/index.js | strapi/strapi-examples | /**
*
* EditPage
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { bindActionCreators, compose } from 'redux';
import { FormattedMessage } from 'react-intl';
import { findIndex, get, isEmpty, isEq... |
src/svg-icons/hardware/desktop-windows.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareDesktopWindows = (props) => (
<SvgIcon {...props}>
<path d="M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v2H8v2h8v-2h-2v-2h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H3V4h18v12z"/>
</SvgIcon>
);
HardwareDesk... |
src/routes.js | terios/playMe | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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 Router from 'react-routi... |
src/components/Header/Header.js | DeloitteDigitalUK/react-redux-starter-app | import React from 'react';
import { IndexLink } from 'react-router';
import classes from './Header.scss';
export const Header = () => (
<div>
<h1>React Redux Starter App</h1>
<ul>
<li>
<IndexLink to="/" activeClassName={classes.activeRoute}>
Home
</IndexLink>
</li>
<... |
docs/src/components/navigation_item.js | Cadasta/django-skivvy | import React from 'react';
import PureRenderMixin from 'react-pure-render/mixin';
var NavigationItem = React.createClass({
mixins: [PureRenderMixin],
propTypes: {
sectionName: React.PropTypes.string.isRequired,
active: React.PropTypes.bool.isRequired,
onClick: React.PropTypes.func.isRequired,
href:... |
node_modules/react-bootstrap/es/TabContainer.js | hsavit1/gosofi_webpage | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'r... |
geonode/contrib/monitoring/frontend/src/components/organisms/geonode-analytics/index.js | MapStory/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import HoverPaper from '../../atoms/hover-paper';
import HR from '../../atoms/hr';
import ResponseTime from '../../cels/response-time';
import Throughput from '../../cels/throughput';
import ErrorsRate from '../../cels... |
app/containers/LanguageProvider/index.js | singaporesamara/SOAS-DASHBOARD | /*
*
* 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... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ObjectSpread.js | johnslay/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
function load(baseUser) {
return [
{ id: 1, name: '... |
src/utils/link.js | marg51/uto | import React from 'react'
import Icon from "./icon"
const wm = new Map()
function Link({link}) {
if(wm.has(link))
return wm.get(link)
const metadata = getMeta(link)
const template = (<span><Icon icon={metadata.icon}/><a href={link}>{metadata.human}</a></span>)
wm.set(link, template)
r... |
app/javascript/mastodon/features/ui/components/onboarding_modal.js | honpya/taketodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ReactSwipeableViews from 'react-swipeable-views';
import classNames from 'cl... |
src/@ui/Icon/icons/Check.js | NewSpring/Apollos | import React from 'react';
import PropTypes from 'prop-types';
import { Svg } from '../../Svg';
import makeIcon from './makeIcon';
const Icon = makeIcon(({ size = 32, fill, ...otherProps } = {}) => (
<Svg width={size} height={size} viewBox="0 0 24 24" {...otherProps}>
<Svg.Path
d="M19.18 6.32l-9.9 9.65-4.4... |
app/javascript/mastodon/components/column_header.js | kagucho/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { FormattedMessage } from 'react-intl';
export default class ColumnHeader extends React.PureComponent {
static contextTypes = {
router: PropTypes.object,
};
static propTypes = {
title: PropTypes.n... |
actor-apps/app-web/src/app/utils/require-auth.js | Jeremy-Meng/actor-platform | import React from 'react';
import LoginStore from 'stores/LoginStore';
export default (Component) => {
return class Authenticated extends React.Component {
static willTransitionTo(transition) {
if (!LoginStore.isLoggedIn()) {
transition.redirect('/auth', {}, {'nextPath': transition.path});
}... |
src/components/searchresults/searchresults.js | ebn646/react-moviesearch | import React from 'react'
class SearchResults extends React.Component{
render(){
return(
<h1>Search Results</h1>
)
}
}
export {SearchResults as default} |
assets/jqwidgets/demos/react/app/chart/gridlinesdashstyle/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxChart from '../../../jqwidgets-react/react_jqxchart.js';
class App extends React.Component {
render() {
let sampleData = [
{ Country: 'Switzerland', Inflation2012: -0.95, Inflation2011: -0.72 },
{ Country: 'USA'... |
generators/atom/templates/atom.js | cassioscabral/generator-atomic-reactor | 'use strict';
import React from 'react';
require('./stylesheets/<%= filename %>.scss');
class <%= component %> extends React.Component {
render() {
return (
<div className="<%= componentClass %>">
Please edit <%= filepath %> to update this component!
</div>
);
}
}
<%= component %>.di... |
src/Parser/Warlock/Destruction/CONFIG.js | hasseboulen/WoWAnalyzer | import React from 'react';
import { Chizu } from 'CONTRIBUTORS';
import SPECS from 'common/SPECS';
import Wrapper from 'common/Wrapper';
import Warning from 'common/Alert/Warning';
import SpellLink from 'common/SpellLink';
import SPELLS from 'common/SPELLS';
import CombatLogParser from './CombatLogParser';
import CHA... |
app/routes.js | bigappleinsider/auth-client-prod | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/app';
import Signin from './components/auth/signin';
import Signout from './components/auth/signout';
import Signup from './components/auth/signup';
import Feature from './components/feature';
import Welcome from... |
examples/FacebookTabsExample/ScrollableTabsExample.js | iancanderson/react-native-scrollable-tab-view | import React from 'react';
import {
Text,
View,
} from 'react-native';
import ScrollableTabView, { ScrollableTabBar, } from 'react-native-scrollable-tab-view';
export default React.createClass({
render() {
return <ScrollableTabView
style={{marginTop: 20, }}
initialPage={2}
renderTabBar={()... |
src/svg-icons/device/access-alarms.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceAccessAlarms = (props) => (
<SvgIcon {...props}>
<path d="M22 5.7l-4.6-3.9-1.3 1.5 4.6 3.9L22 5.7zM7.9 3.4L6.6 1.9 2 5.7l1.3 1.5 4.6-3.8zM12.5 8H11v6l4.7 2.9.8-1.2-4-2.4V8zM12 4c-5 0-9 4-9 9s4 9 9 9 9-4 9... |
src/routes.js | n1207n/react-like-or-not | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import AppContainer from './containers/AppContainer';
import HomePage from './components/HomePage';
import AboutPage from './components/AboutPage';
import MediaListContainer from './containers/MediaListContainer';
import NotFoundPage from './... |
src/components/Error.js | hannupekka/badgenator | // @flow
import styles from 'styles/components/Error';
import React from 'react';
import { pure } from 'recompose';
import type { Component } from 'recompose';
import CSSModules from 'react-css-modules';
type Props = {
message: string
}
const Error: Component<Props> = (props: Props): ElementType => {
return (
... |
shared/components/Main/IncomeTax/IncomeTax.js | KCPSoftware/KCPS-React-Starterkit | import React, { Component } from 'react';
import { logout } from '../../../actions/userActions';
import { changeTitle } from '../../../actions/pageActions';
import { connect } from 'react-redux';
@connect(store => ({
isLoggedIn: store.user.isLoggedIn,
isLoading: store.user.isLoading,
user: store.user.user,
pag... |
app/scenes/ChallengeDetail/Cover/index.js | fullstack-zmrdi/bounty-land-app | /* @flow */
import { H1, H2 } from 'native-base'
import { Image, StyleSheet, View } from 'react-native'
import I18n from 'react-native-i18n'
import LinearGradient from 'react-native-linear-gradient'
import Logo from '../../../components/Logo'
import React from 'react'
import colors from 'material-colors'
const Cover ... |
imports/components/TabUsers.js | tampham47/nau-jukebox | /* © 2017
* @author Tu Nguyen
*/
/* eslint-disable no-alert */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { withTracker } from 'meteor/react-meteor-data';
import { Container } from 'flux/utils';
import ReactGA from 'react-ga';
import { Users } from '../collections';
import... |
app/components/LocalizedLocation/LocalizedLocation.js | adrianocola/spyfall | import React from 'react';
import { DEFAULT_LOCATIONS } from 'consts';
import Localized from 'components/Localized/Localized';
const LocalizedLocation = ({ location, customLocations }) => {
if (DEFAULT_LOCATIONS[location]) {
return <Localized>{`location.${location}`}</Localized>;
}
return <span>{customLocat... |
src/parser/warlock/demonology/modules/talents/SoulConduit.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import StatisticListBoxItem from 'interface/others/StatisticListBoxItem';
import { binomialPMF, findMax } from 'pars... |
src/AppBundle/Resources/static/jsx/widget/invoiceSender.js | viszerale-therapie/simple-courses | import 'eonasdan-bootstrap-datetimepicker';
import $ from 'jquery';
import URL from 'js-handy-url';
import moment from 'moment';
import tl from '../util/translator';
import React from 'react';
import ReactDOM from 'react-dom';
import app from '../app/app';
import messaging from '../util/messaging';
import templateField... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.