path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
springboot/GReact/src/main/resources/static/app/routes/tables/containers/NormalTables.js | ezsimple/java | import React from 'react'
import {Alert} from 'react-bootstrap'
import {Stats, BigBreadcrumbs, WidgetGrid, JarvisWidget} from '../../../components'
export default class NormalTables extends React.Component {
render() {
return (
<div id="content">
<div className="row">
<BigBreadcrumbs i... |
docs/app/Examples/views/Feed/Content/AdditionalInformation.js | jcarbo/stardust | import _ from 'lodash'
import React from 'react'
import { Feed } from 'stardust'
const { Content, Event, Extra, Label, Summary } = Feed
const images = _.times(2, () => 'http://semantic-ui.com/images/wireframe/image.png')
const AdditionalInformation = () => {
return (
<Feed>
<Event>
<Label image='h... |
web/components/Layout.js | skidding/flatris | // @flow
import classNames from 'classnames';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import Head from 'next/head';
import Error from './pages/Error';
import { logError } from '../utils/rollbar-client';
import type { Node } from 'react';
import type { State } from 'shared/type... |
src/index.js | MdShuaib/ReactRouterReduxForm | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { Router, browserHistory } from 'react-router';
// browserHistory, hashHistory, memoryHistory
import reducers from './reducers';
import routes from './routes'... |
generators/app/templates/src/index.js | delvallejonatan/generator-create-redux-app | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import store from './store'
import Routes from './routes'
import './styles/globalStyles.css'
import * as serviceWorker from './utils/serviceWorker'
render(
<Provider store={store}>
<Routes />
</Provider>,
docu... |
js/jqwidgets/demos/react/app/gauge/gaugesettings/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGauge from '../../../jqwidgets-react/react_jqxgauge.js';
import JqxExpander from '../../../jqwidgets-react/react_jqxexpander.js';
import JqxCheckBox from '../../../jqwidgets-react/react_jqxcheckbox.js';
import JqxRadioButton from '../../../jqwidget... |
src/views/News.js | chrisweilun/lavidioNewSite | import React, { Component } from 'react';
class News extends Component {
state= {}
render () {
return <h1>News View</h1>
}
}
export default News
|
src/components/card/djinncard.component.js | ordjinnization/djinn-ui | /**
*
*/
'use strict';
import React from 'react';
import Paper from 'material-ui/Paper';
const paperParentStyle = {
paddingLeft: 20,
paddingRight: 20
};
const paperStyle = {
paddingLeft: 20,
paddingRight: 20,
paddingBottom: 20,
height: '800px'
};
const DjinnCard = ({children}) => {
return (<div style... |
src/routes/register/index.js | AaronHartigan/DudeTruck | /**
* 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... |
cheesecakes/plugins/settings-manager/admin/src/components/PluginLeftMenu/index.js | strapi/strapi-examples | /**
*
* PluginLeftMenu
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { map } from 'lodash';
import PluginLeftMenuSection from 'components/PluginLeftMenuSection';
import styles from './styles.scss';
class PluginLeftMenu extends React.Component { // eslint-disable-line react/prefer-stateles... |
blueocean-material-icons/src/js/components/svg-icons/av/play-arrow.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvPlayArrow = (props) => (
<SvgIcon {...props}>
<path d="M8 5v14l11-7z"/>
</SvgIcon>
);
AvPlayArrow.displayName = 'AvPlayArrow';
AvPlayArrow.muiName = 'SvgIcon';
export default AvPlayArrow;
|
AwesomeProject/components/Counter.js | victorditadi/IQApp | import React, { Component } from 'react';
import {
AppRegistry,
Text,
Button,
View,
AlertIOS,
StyleSheet
} from 'react-native';
import STYLES from '../components/Counter.styles.js';
export default class CounterComponent extends Component{
constructor(){
super();
this.state = {
counter: 0,... |
src/packages/@ncigdc/components/Header/AWG.js | NCI-GDC/portal-ui | // @flow
import React from 'react';
import {
compose,
lifecycle,
pure,
setDisplayName,
withHandlers,
withState,
} from 'recompose';
import { connect } from 'react-redux';
import ResizeObserver from 'resize-observer-polyfill';
import HomeLink from '@ncigdc/components/Links/HomeLink';
import RepositoryLink f... |
packages/ringcentral-widgets-docs/src/app/pages/Components/MeetingPanel/index.js | ringcentral/ringcentral-js-widget | import React from 'react';
import { parse } from 'react-docgen';
import CodeExample from '../../../components/CodeExample';
import ComponentHeader from '../../../components/ComponentHeader';
import PropTypeDescription from '../../../components/PropTypeDescription';
import Demo from './Demo';
// eslint-disable-next-lin... |
react_textInput/index.android.js | devSC/react-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
} from 'react-native';
import setup from './setup'
AppRegistry.registerComponent('react_textInput', () => setup);
|
src/utils/createContextWrapper.js | bvasko/react-bootstrap | import React from 'react';
/**
* Creates new trigger class that injects context into overlay.
*/
export default function createContextWrapper(Trigger, propName) {
return contextTypes => {
class ContextWrapper extends React.Component {
getChildContext() {
return this.props.context;
}
... |
plugins/Files/js/index.js | NebulousLabs/New-Sia-UI | import React from 'react'
import ReactDOM from 'react-dom'
import createSagaMiddleware from 'redux-saga'
import { createStore, applyMiddleware } from 'redux'
import { Provider } from 'react-redux'
import rootReducer from './reducers/index.js'
import rootSaga from './sagas/index.js'
import App from './containers/app.js'... |
app/containers/TodoPage/components/LinkList/index.js | mclxly/react-study | /**
*
* LinkList
*
*/
import React from 'react';
import styles from './styles.css';
function LinkList() {
return (
<div className={ styles.linkList }>
</div>
);
}
export default LinkList;
|
react-youtube-search/test/test_helper.js | majalcmaj/ReactJSCourse | 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/common/linter/index.js | stylelint/stylelint-demo | import PropTypes from 'prop-types';
import React from 'react';
import Editor from '../editor';
import SyntaxSelect from '../syntax-select';
import WarningList from '../warning-list';
import styles from './index.css';
const Linter = ({
onCodeChange,
onConfigChange,
onSyntaxChange,
code,
config,
syntax,
invalid... |
packages/react-scripts/fixtures/kitchensink/src/features/env/FileEnvVariables.js | appier/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 from 'react';
export default () => (
<span>
<span id="feature-file-env-original-1">
{process.env.REACT_APP_ORI... |
app/jsx/new_user_tutorial/trays/FilesTray.js | venturehive/canvas-lms | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
js/SecondTitle.js | aurimas-darguzis/react-intro | import React from 'react'
const div = React.DOM.div
const h1 = React.DOM.h1
const MyTitle = React.createClass({
render: function () {
const style = {color: this.props.color}
return (
<div>
<h1 style={ style }>
{this.props.title}
</h1>
</div>
)
}
})
export default ... |
src/components/AppCart.js | wqzwh/react-phone | import React from 'react';
class AppCart extends React.Component{
constructor(props) {
super(props);
this.state = {
count:this.props.CartCount,
// price:0,
date:this.props.CartDate,
disabled:'disabled',
flag:false
};
}
componentWillReceiveProps(nextProps){
this... |
app/javascript/mastodon/components/column_back_button.js | sylph-sin-tyaku/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import Icon from 'mastodon/components/icon';
import { createPortal } from 'react-dom';
export default class ColumnBackButton extends React.PureComponent {
static contextTypes = {
router: PropTypes.objec... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/LinkedModules.js | ConnectedHomes/create-react-web-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 from 'react';
import './assets/style.css';
import { test, version } from 'test-integrity';
export default () => {
const ... |
src/svg-icons/notification/live-tv.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationLiveTv = (props) => (
<SvgIcon {...props}>
<path d="M21 6h-7.59l3.29-3.29L16 2l-4 4-4-4-.71.71L10.59 6H3c-1.1 0-2 .89-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.11-.9-2-2-2zm0 14H3V8h18v12zM9 10v8... |
src/pages/NewGame/index.js | alimek/scrum-poker-react | import React from 'react';
import PropTypes from 'prop-types';
import { withRouter } from 'react-router-dom';
import { connect } from 'react-redux';
import {
NewGameContainer,
HomeTitle,
} from './styles';
import { Version, PageHeader, CenterContainer } from '../../components';
import NewGameForm from '../../conta... |
src/svg-icons/image/filter-hdr.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterHdr = (props) => (
<SvgIcon {...props}>
<path d="M14 6l-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22L14 6z"/>
</SvgIcon>
);
ImageFilterHdr = pure(ImageFilterHdr);
ImageFilterHdr.displayName... |
src/index.js | nabylb/UltraWeatherWebApp | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
examples/js/basic/hover-striped-table.js | pvoznyuk/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
src/src/components/DealCard/DealCard.js | alexberriman/local-deals | import React from 'react'
import { Card, CardTitle, CardText } from 'material-ui/Card'
import { IconPlace } from 'components/Icons'
import classes from './DealCard.scss'
export default class DealCard extends React.Component {
/**
* Sets up the component.
*
* @param props
*/
constructor(props) {
... |
stories/Loader/ExampleWithText.js | skyiea/wix-style-react | import React from 'react';
import Loader from 'wix-style-react/Loader';
export default () =>
<div>
<div>
<p>Large</p>
<Loader size="large" text="Loading..."/>
</div>
</div>;
|
docs/src/components/NavLinks.js | tapjs/node-tap | import React from 'react';
import {Link, NavLink} from './links';
const NavLinks = (props) => {
return(
<>
{props.desktop &&
<NavLink
to="/docs/"
activeClassName="active-navlink"
partiallyActive={true}
>
Docs
</NavLink>
}
<NavLink... |
src/components/common/svg-icons/communication/swap-calls.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationSwapCalls = (props) => (
<SvgIcon {...props}>
<path d="M18 4l-4 4h3v7c0 1.1-.9 2-2 2s-2-.9-2-2V8c0-2.21-1.79-4-4-4S5 5.79 5 8v7H2l4 4 4-4H7V8c0-1.1.9-2 2-2s2 .9 2 2v7c0 2.21 1.79 4 4 4s4-1.79 4-4V8... |
src/containers/auth/Forms/FormView.js | BrownEPTech/brown-ep-startup-ideas-app | /**
* Login/Sign Up/Forgot Password Screen
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
View,
AsyncStorage,
TouchableOpacity,
} from 'react-native';
import FormValidation from 'tcom... |
app/components/LatinThemeProvider/index.js | rapicastillo/beautifulrising-client | /**
*
* LanguageThemeProvider
* - Make Arabic and Latin Language a main stay on theming
*/
import React from 'react';
import styled, { ThemeProvider } from 'styled-components';
const Container = styled.div`
height: inherit;
width: 100%;
`;
class LatinThemeProvider extends React.PureComponent { // eslint-disable-... |
node_modules/react-virtualized/dist/es/FlexTable/defaultRowRenderer.js | Alex-Shilman/Drupal8Node |
import React from 'react';
/**
* Default row renderer for FlexTable.
*/
export default function defaultRowRenderer(_ref) {
var className = _ref.className;
var columns = _ref.columns;
var index = _ref.index;
var isScrolling = _ref.isScrolling;
var onRowClick = _ref.onRowClick;
var onRowDoubleClick = _re... |
webpack/move_to_foreman/components/common/Dialog/Dialog.js | jlsherrill/katello | import React from 'react';
import PropTypes from 'prop-types';
import { Button, Modal, Icon } from 'patternfly-react';
const Dialog = (props) => {
const buttons = (props.buttons)
? props.buttons
: (
<Button
key="cancel"
bsStyle="default"
className="btn-cancel"
onClick={p... |
src/react/index.js | wbuchwalter/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';
|
src/js/sections/LargerCohert.js | BavoG/onesupportdocu | import React, { Component } from 'react';
import Box from 'grommet/components/Box';
import Heading from 'grommet/components/Heading';
import Chart,
{ Layers, Base, Area, HotSpots, Axis, Marker }
from 'grommet/components/chart/Chart';
import { LARGER_COHERT } from '../constants';
export default class LargerCohert e... |
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/store_new/source/src/app/components/Apis/Listing/ApiProgress.js | lakmali/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... |
examples/shopping-cart/src/components/App.js | ridixcr/nuclear-js | 'use strict';
import React from 'react'
import CartContainer from './CartContainer'
import ProductsContainer from './ProductsContainer'
export default React.createClass({
render() {
return (
<div>
<ProductsContainer />
<CartContainer />
</div>
);
}
});
|
client/gatsby-ssr.js | jonathanihm/freeCodeCamp | import React from 'react';
import PropTypes from 'prop-types';
import { Provider } from 'react-redux';
import headComponents from './src/head';
import { createStore } from './src/redux/createStore';
import layoutSelector from './utils/gatsby/layoutSelector';
const store = createStore();
export const wrapRootElement... |
information/blendle-frontend-react-source/app/components/icons/Heart.js | BramscoChill/BlendleParser | import React from 'react';
import PropTypes from 'prop-types';
import { pure } from 'recompose';
const Heart = ({ fill = 'currentColor', ...props }) => (
<svg viewBox="0 0 15 14" xmlns="http://www.w3.org/2000/svg" {...props}>
<path
fill={fill}
d="M7.24 13.774C1.543 8.813 0 7.066 0 4.23 0 1.897 1.775 ... |
src/app/components/Header/Header.js | kresimircoko/empathy | import React, { Component } from 'react';
import {BrowserRouter, Link } from 'react-router-dom';
import './header.scss';
const Header = () => {
return (
<header id="site-header">
<div className="container">
<Link id="home-link" to="/"><img src="includes/logo.png" alt=""/></Link>
<nav id="site-nav">
... |
js/components/App.js | SKrishnan602/funnas1.0 | import React from 'react';
import Relay from 'react-relay';
class App extends React.Component {
onReload() {
this.props.relay.forceFetch();
}
render() {
return (
<div>
<h1>Fun Deals to Buy</h1>
</div>
);
}
}
export default Relay.createContainer(App, {
... |
js/src/Signer/PendingItem/pendingItem.js | destenson/ethcore--parity | // Copyright 2015-2017 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 lat... |
client/acp/view/widget/dashboard.js | NicolasSiver/nodebb-plugin-ns-points | import React from 'react';
import {Provider} from 'react-redux';
import * as Actions from '../../controller/actions';
import loadCalculationProperties from '../../actions/load-calculation-properties';
import loadSettings from '../../actions/load-settings';
import ReduxStore from '../../model/redux-store';
import TabHo... |
src/pages/App.js | janimattiellonen/fgr | import React from 'react';
import styles from './App.pcss';
import Helmet from 'react-helmet';
const App = props => {
const { children } = props;
return (
<div className={styles.root}>
<Helmet
htmlAttributes={{ "lang": "fi" }}
titleTemplate="%s - Hardcore React Training"
default... |
client/src/components/Register.js | rantav/reversim-summit-2017 | import React from 'react';
import Section from "./Section";
import registerImg from '../images/register-bg.png';
import { Button } from 'reactstrap';
import {Link} from "react-router-dom";
const Register = () => (
<Section title="Register" bg={registerImg} isFullWidth={true}>
<div className="py-5 text-center">
... |
src/client/app/views/index.js | boris91/hype | import React, { Component } from 'react';
//import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import 'app/styles/index.less';
class AppLayout extends Component {
render() {
return <div id='app' class='app'>
<div id='header' class='header'>
... |
app/components/Main.js | devacto/notetaker | import React from 'react';
import SearchGithub from './SearchGithub';
const Main = ({history, children}) => {
return (
<div className="main-container">
<nav className="navbar navbar-default" role="navigation">
<div className="col-sm-7 col-sm-offset-2" style={{marginTop: 15}}>
<SearchGithu... |
yycomponent/tag/CheckableTag.js | 77ircloud/yycomponent | import React from 'react';
import { Tag } from 'antd';
class CheckableTag extends React.Component{
constructor(props){
super(props);
}
render(){
return (<Tag.CheckableTag {...this.props}/>);
}
}
export default CheckableTag
|
src/components/Book/Main/index.js | LifeSourceUA/lifesource.ua | /**
* [IL]
* Library Import
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
/**
* [IV]
* View Import
*/
import Common from './Views/Common';
/**
* [IRDX]
* Redux connect (optional)
*/
@connect((state) => {
return {
mediaType:... |
src/components/Errors/Errors.js | 77bo/frontbands | import React from 'react';
const NotFound = ({location}) => (
<div>
<h3>Not found anything for <code>{location.pathname}</code></h3>
</div>
);
const Forbidden = ({location}) => (
<div>
<h3>This resource is Forbidden</h3>
</div>
);
const Unauthorized = ({location}) => (
<div>
<h3>You are unautho... |
src/parser/warlock/destruction/modules/talents/Shadowburn.js | FaideWW/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import Events from 'parser/core/Events';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatThousands } from 'common... |
src/routes.js | Selvio/jose-name-react | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import NotFoundPage from './components/NotFoundPage';
import App from './components/App';
import Biography from './components/Biography';
import Contact from './components/Contact';
import LegislativeActivityContainer from './containers/Legisl... |
docs/app/Examples/elements/Icon/States/IconExampleLoading.js | clemensw/stardust | import React from 'react'
import { Icon } from 'semantic-ui-react'
const IconExampleLoading = () => (
<div>
<Icon loading name='spinner' />
<Icon loading name='certificate' />
<Icon loading name='asterisk' />
</div>
)
export default IconExampleLoading
|
app/components/GridView.js | MomentoApp/momento | import React, { Component } from 'react';
import {
View,
Text,
Image,
StatusBar,
StyleSheet,
TouchableOpacity,
} from 'react-native';
import VideoList from './VideoList';
import coverImage from '../assets/images/momento.jpg';
import redHeart from '../assets/images/btnRedHeart.png';
import Icon from 'react-... |
auth/src/components/common/Card.js | carlosnavarro25/calculadora | import React from 'react';
import { View } from 'react-native';
const Card = (props) => {
return (
<View style={styles.containerStyle}>
{props.children}
</View>
);
};
const styles = {
containerStyle: {
borderWidth: 1,
borderRadius: 2,
borderColor: '#ddd',
borderBottomWidth: 0,
shadowRadius: 2,
eleva... |
components/playerlist/PlayerImage.js | nvbf/pepper | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import Animated from 'animated/lib/targets/react-dom';
import SmallBar from './SmallBar';
const Container = styled.div`
display: flex;
flex-direction: column;
width: 300px;
`;
const ImageContainer = styled.div... |
imports/ui/pages/Miscellaneous/RecoverPassword/RecoverPassword.js | haraneesh/mydev | import React from 'react';
import {
Row, Col, Alert, FormGroup, ControlLabel, Button,
} from 'react-bootstrap';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { Accounts } from 'meteor/accounts-base';
import { toast } from 'react-toastify';
import AccountPageFooter from '../../../... |
docs/src/app/components/pages/components/Chip/ExampleSimple.js | kasra-co/material-ui | import React from 'react';
import Avatar from 'material-ui/Avatar';
import Chip from 'material-ui/Chip';
import FontIcon from 'material-ui/FontIcon';
import SvgIconFace from 'material-ui/svg-icons/action/face';
import {blue300, indigo900} from 'material-ui/styles/colors';
const styles = {
chip: {
margin: 4,
},... |
app/static/scripts/layout/main.js | joshleeb/TobioPreRelease | import Header from './header/main.js';
import Footer from './footer/main.js';
import React from 'react';
export default class Layout extends React.Component {
constructor() {
super();
}
render() {
return (
<div>
<Header />
{this.props.children}
<Footer />
</div>
... |
docs/src/IntroductionPage.js | natlownes/react-bootstrap | import React from 'react';
import CodeExample from './CodeExample';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
const IntroductionPage = React.createClass({
render() {
return (
<div>
<NavMain activePage="introduction" />
<... |
app/index.js | tonygambone/howlonguntil |
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { App } from './components/app';
import reducer from './reducers';
import Actions from './actions';
import dataService from './services/data';
import event... |
web/src/main/webapp_source/src/components/NotFound.js | mschvarc/PB138-Inventory-Management | import React, { Component } from 'react';
import {Link} from 'react-router';
class NotFound extends Component {
render() {
return <div className="page-not-found row">
<div className="small-12 columns">
<h2>Page not found!</h2>
<p>Page you requested cannot be found in this application! What will you... |
fields/types/cloudinaryimages/CloudinaryImagesColumn.js | ligson/keystone | import React from 'react';
import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
const moreIndicatorStyle = {
color: '#888',
fontSize... |
src/shared/components/App/App.js | AlekseyWW/shop-react-ssr | import React from 'react';
import Route from 'react-router-dom/Route';
import Helmet from 'react-helmet';
import Switch from 'react-router-dom/Switch';
import Layout from 'containers/Layout';
import AuthenticatedComponent from 'containers/AuthenticatedComponent';
import uuid from 'uuid';
// internal
import slideMenu ... |
fixtures/dom/src/components/fixtures/input-change-events/RangeKeyboardFixture.js | AlmeroSteyn/react | import React from 'react';
import Fixture from '../../Fixture';
class RangeKeyboardFixture extends React.Component {
constructor(props, context) {
super(props, context);
this.state = {
keydownCount: 0,
changeCount: 0,
};
}
componentDidMount() {
this.input.addEventListener('keydown... |
docs/app/Examples/elements/Reveal/Types/RevealExampleMoveDown.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Image, Reveal } from 'semantic-ui-react'
const RevealExampleMoveDown = () => (
<Reveal animated='move down'>
<Reveal.Content visible>
<Image src='http://semantic-ui.com/images/wireframe/square-image.png' size='small' />
</Reveal.Content>
<Reveal.Content hidden>
... |
packages/core/tocco-ui/src/SignalBox/SignalBox.js | tocco/tocco-client | import PropTypes from 'prop-types'
import React from 'react'
import Typography from '../Typography'
import {design} from '../utilStyles'
import StyledSignalBox, {ALLOWED_CONDITIONS} from './StyledSignalBox'
/**
* Emphasize important information by context. Group them by utilizing several instances of <SignalBox/>.
... |
app/components/production/port/POReqTransButton.js | robogroves/ebp | import ProgressButton from 'react-progress-button'
import React, { Component } from 'react';
const POReqTransButton = React.createClass({
getInitialState () {
return {
buttonState: ''
}
},
render () {
if ('development'==process.env.NODE_ENV) {
console.log('button render =' + this.props.P... |
src/svg-icons/device/gps-not-fixed.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceGpsNotFixed = (props) => (
<SvgIcon {...props}>
<path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-3.77 7... |
src/scene/Home/HomeMenuItem.js | dudongge/DDGMeiTuan | /**
* Copyright (c) 2017-present, dudongge
* All rights reserved.
*
* https://github.com/dudongge/DDGMeiTuan
* copyright by dudodongge
*/
//import liraries
import React, { Component } from 'react';
import { View, Text, StyleSheet, Image, TouchableOpacity } from 'react-native';
import { Heading2 } from '../../wi... |
docs/app/Examples/elements/Segment/Types/SegmentExampleVerticalSegment.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExampleVerticalSegment = () => (
<div>
<Segment vertical>Te eum doming eirmod, nominati pertinacia argumentum ad his.</Segment>
<Segment vertical>Pellentesque habitant morbi tristique senectus.</Segment>
<Segment vertical>... |
step03_state/src/index.js | panacloud/learn-react | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App name="Mike" />,
document.getElementById('root')
);
|
src/components/menu.js | FranckCo/Operation-Explorer | import React from 'react'
import { Link, withRouter } from 'react-router-dom'
import D from 'i18n'
import LangPicker from './lang-picker'
function Menu({ lang, location }) {
return (
<header>
<nav className="navbar navbar-default">
<div className="container-fluid">
<div className="navbar-... |
src/components/book/BookDetail.js | vlcik/booky | import React from 'react';
const bookDetail = ({ match }) => {
return (
<div>
{ match.params.id}
</div>
);
}
export default bookDetail; |
src/SplitButton.js | apisandipas/react-bootstrap | import React from 'react';
import BootstrapMixin from './BootstrapMixin';
import Button from './Button';
import Dropdown from './Dropdown';
import SplitToggle from './SplitToggle';
class SplitButton extends React.Component {
render() {
let {
children,
title,
onClick,
target,
href,
... |
src/components/utility/buttons/close/index.js | getguesstimate/guesstimate-app | import React from 'react'
import {Button} from '../button.js'
export const ButtonClose = ({onClick}) => (
<a className='button-close' onClick={onClick}>
<i className={`ion-md-close`}/>
</a>
)
export const ButtonCloseText = ({onClick}) => (
<Button onClick={onClick}>
<i className={`ion-md-close`}/>
... |
examples/with-loadable-components/src/BodyPart.js | jaredpalmer/react-production-starter | import React from 'react';
const BodyPart = () => <span>This is an inner BodyPart</span>;
export default BodyPart;
|
app/javascript/mastodon/main.js | pinfort/mastodon | import * as registerPushNotifications from './actions/push_notifications';
import { setupBrowserNotifications } from './actions/notifications';
import { default as Mastodon, store } from './containers/mastodon';
import React from 'react';
import ReactDOM from 'react-dom';
import ready from './ready';
const perf = requ... |
src/lib/components/HeaderContainer.js | constantoduol/Sprd | import React from 'react';
import PropTypes from 'prop-types';
import Header from './Header';
import {toExcelColName} from '../Util';
import {DEFAULT_HEADER_WIDTH, DEFAULT_NUM_HEADER_WIDTH} from '../Constants';
export default class HeaderContainer extends React.Component {
static propTypes = {
showHeaderLetter... |
src/components/List/Booth.js | codeformuenster/weihnachtsmarkt | // @format
import React from 'react'
import PropTypes from 'prop-types'
import { Link } from 'gatsby'
import './Booth.css'
import Logo from './Logo'
class Booth extends React.Component {
static propTypes = {
id: PropTypes.string,
name: PropTypes.string,
market: PropTypes.string,
image: PropTypes.st... |
components/Calendar/DayRange/DayRange.story.js | rdjpalmer/bloom | import React from 'react';
import { storiesOf } from '@storybook/react';
import { withKnobs, number, select } from '@storybook/addon-knobs';
import moment from 'moment';
import DayRange from './DayRange';
const stories = storiesOf('DayRange', module);
stories.addDecorator(withKnobs);
stories.add('Default day range',... |
app/components/MapAssessments/ShowInstitutions.js | klpdotorg/tada-frontend | import React from 'react';
import PropTypes from 'prop-types';
import capitalize from 'lodash.capitalize';
import includes from 'lodash.includes';
import isEqual from 'lodash.isequal';
import { Loading } from '../common';
const ShowInstitutionsView = (props) => {
const { institutions, selectedInstitutions, loading ... |
tutorial/01-react/00-intro.js | runtastic/flow-guide | /* @flow */
import React from 'react';
import { fetchRunSessions } from './util/fetchMocks';
/**
* To start things off, we will start writing a React component &
* a stateful container and see what's happening...
*
* Initial Note:
* -------------------
*
* Flow is not a complete replacement for React.PropTypes... |
react-flux-mui/js/material-ui/src/svg-icons/action/view-quilt.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewQuilt = (props) => (
<SvgIcon {...props}>
<path d="M10 18h5v-6h-5v6zm-6 0h5V5H4v13zm12 0h5v-6h-5v6zM10 5v6h11V5H10z"/>
</SvgIcon>
);
ActionViewQuilt = pure(ActionViewQuilt);
ActionViewQuilt.displayN... |
react/src/components/dashboard/walletsInfo/walletsInfo.render.js | pbca26/EasyDEX-GUI | import React from 'react';
import translate from '../../../translate/translate';
import { secondsToString } from 'agama-wallet-lib/src/time';
import {
formatBytes,
fromSats,
} from 'agama-wallet-lib/src/utils';
import fees from 'agama-wallet-lib/src/fees';
import erc20ContractId from 'agama-wallet-lib/src/eth-erc20... |
packages/material-ui-icons/src/Collections.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Collections = props =>
<SvgIcon {...props}>
<path d="M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z" />
... |
src/containers/About/index.js | allyrippley/7ds | import React from 'react'
import {connect} from 'react-redux'
import {bindActionCreators} from 'redux'
import * as actions from '../../actions/heroActions'
const Contact = (props) => {
window.console.log('MainContactProps: ', props)
return (
<div style={{width: '100%', paddingTop: '55px'}}>
<h2 classNam... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/ImageInclusion.js | Bogala/create-react-app-awesome-ts | /**
* 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 from 'react';
import tiniestCat from './assets/tiniest-cat.jpg';
export default () => (
<img id="feature-image-inclusion... |
src/components/Edit/index.js | Apozhidaev/ergonode.com | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { update } from 'store/app/book/model/actions';
import currentSlot from '../wrappers/currentSlot';
import EditForm from '../EditForm';
class Edit extends Component {
constructor(props) {
super(props);
this.handleSave = t... |
react-fundamentals-es6/lessons/11-higher-order/App.js | wandarkaf/React-Bible | // https://jsbin.com/boxoso/edit?js,output
import React from 'react';
let Mixin = InnerComponent => class extends React.Component {
constructor(){
super();
this.update = this.update.bind(this);
this.state = {val: 0}
}
update(){
this.setState({val: this.state.val + 1})
}
componentWillMount(){... |
src/client/components/Story/StoryDeleted.js | busyorg/busy | import React from 'react';
import { FormattedMessage } from 'react-intl';
import './StoryDeleted.less';
const StoryDeleted = () => (
<div className="StoryDeleted">
<h3>
<FormattedMessage id="post_deleted" defaultMessage="This post has been deleted" />
</h3>
</div>
);
export default StoryDeleted;
|
src/app/users/client/login.js | Robert-W/docker-mongoose | import Login from 'users/components/Login';
import {render} from 'react-dom';
import React from 'react';
render(<Login />, document.getElementById('mount'));
|
src/components/loading-indicators/loading-container.component.js | Antoine38660/git-point | import React from 'react';
import { StyleSheet, View, ActivityIndicator, Text } from 'react-native';
import { colors, fonts } from 'config';
type Props = {
animating: boolean,
text: string,
center: boolean,
};
const styles = StyleSheet.create({
loadingContainer: {
backgroundColor: colors.white,
flex:... |
src/index.js | RamonGebben/pr-overview | import React from 'react';
import { render } from 'react-dom';
import Root from './containers/Root';
import { createHistory } from 'history';
const history = createHistory();
render(
<Root history={history} />,
document.getElementById('root')
);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.