path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/FullPage.js | cintiamh/ReduxPortfolio | import React from 'react';
const FullPage = () => (
<div className="full-page">
<div className="landing">
<h1>Cintia Higashi</h1>
<h2>Front End Software Engineer</h2>
<button>Check out my work!</button>
</div>
</div>
);
export default FullPage;
|
src/media/js/addon/containers/dashboard.js | mozilla/marketplace-submission | import React from 'react';
import {connect} from 'react-redux';
import {ReverseLink} from 'react-router-reverse';
import {bindActionCreators} from 'redux';
import urlJoin from 'url-join';
import {fetch} from '../actions/dashboard';
import {AddonListingForDashboard} from '../components/listing';
import AddonSubnav from... |
src/ButtonToolbar.js | yickli/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const ButtonToolbar = React.createClass({
mixins: [BootstrapMixin],
getDefaultProps() {
return {
bsClass: 'button-toolbar'
};
},
render() {
let classes = this.getBsClassSet();
... |
docs/src/app/components/pages/components/Divider/Page.js | ArcanisCz/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import dividerReadmeText from './README';
import DividerExampleForm from './Exam... |
example/components/ConnectionStatus.js | aiham/opentok-react | import React, { Component } from 'react';
export default class ConnectionStatus extends Component {
render() {
let status = this.props.connected ? 'Connected' : 'Disconnected';
return (
<div>
<strong>Status:</strong> {status}
</div>
);
}
}
|
client/Tasks/TaskNew.js | AnnotatedJS/meteor-react-start-app |
import React from 'react';
export default class TaskNew extends React.Component {
constructor(props) {
super(props);
}
/***************************************/
/* RENDER
/***************************************/
render() {
var p = this.props;
return (
<div>
<... |
src/shared/components/login/signUpSection.js | tal87/operationcode_frontend | import React from 'react';
import Section from '../../../shared/components/section/section';
import LinkButton from '../../../shared/components/linkButton/linkButton';
const SignUpSection = () => (
<Section title="New user?" theme="white">
<p>
Are you ready to deploy your future? Join Operation Code today ... |
packages/reactor-kitchensink/src/examples/Charts/Area/BasicArea/BasicArea.js | dbuhrman/extjs-reactor | import React, { Component } from 'react';
import { Container } from '@extjs/ext-react';
import { Cartesian } from '@extjs/ext-react-charts';
import ChartToolbar from '../../ChartToolbar';
import createData from './createData';
Ext.require([
'Ext.chart.series.Area',
'Ext.chart.axis.Numeric',
'Ext.chart.axis... |
frontend/src/components/RegisterView.js | Pseudonick47/sherlock | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Paper from 'material-ui/Paper';
import RadioButton from 'material-ui/Checkbox';
import RaisedButton from 'material-ui/RaisedButton';
import TextField from 'material-ui/TextField';
import * as actionCr... |
src/App.js | hozefaj/project-helena | import React, { Component } from 'react';
import {
BrowserRouter as Router,
Route,
} from 'react-router-dom'
import './App.css';
import Organization from './components/Organization';
import Repo from './components/Repo';
class App extends Component {
render() {
return (
<Router>
<div>
... |
frontend/app/components/Login/Login.js | sabbir044/AutoRepair | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import LoginForm from './LoginForm';
class Login extends Component {
constructor(props) {
super(props);
this.state = {
username: '',
password: '',
buttonText: 'Login',
disabledInput: false,
disabledBu... |
app/react-icons/fa/viadeo-square.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaViadeoSquare extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m26.4 23.2q0-1.7-0.6-3.2-0.9 0.5-1.9 0.7 0.5 1.1 0.5 2.6 0 2.6-1.7 4.4t... |
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | jakey-wan-kenobi/angular-sass-uirouter-browsersync-seed | 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'));
|
app/containers/Dashboard/sagas/errorModalSaga.js | acebusters/ab-web | import React from 'react';
import { FormattedMessage } from 'react-intl';
import { take, put } from 'redux-saga/effects';
import { CONFIRM_DIALOG } from '../../Modal/constants';
import { CONTRACT_TX_ERROR } from '../../AccountProvider/actions';
import { modalAdd, modalDismiss } from '../../App/actions';
import message... |
src/components/App.js | NagsCodehub/React_NodeApp | import React from 'react';
import Header from './Header';
//import SchedulePreview from './SchedulePreview';
import ContestList from './ContestList';
import Contest from './Contest';
import axios from 'axios';
import * as api from '../api';
import data from '../testdata';
const pushState=(obj,url) =>
window.hist... |
src/components/LogicalDeviceLink.js | KozlovDmitriy/Pos.Hierarchy.Net |
import React from 'react'
import PropTypes from 'prop-types'
import config from 'config'
const LogicalDeviceLink = ({ deviceId, name }) =>
<a href={`${config.webappurl}/LogicalDevices/Details/${deviceId}`} target='_blank' >{name}</a>
LogicalDeviceLink.propTypes = {
deviceId: PropTypes.number.isRequired,
name: ... |
src/components/Form/TextField.js | welovekpop/uwave-web-welovekpop.club | import cx from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
export default class TextField extends React.Component {
static propTypes = {
className: PropTypes.string,
type: PropTypes.string,
icon: PropTypes.element,
};
static defaultProps = {
type: 'text',
};
... |
src/image/Controls/ChangeColorForSelected.js | sanchesking9/image_builder | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Button from '../components/button';
@connect((state) => {
const {image} = state;
return {image};
})
export default class ChangeColorForSelected extends Component {
changeColorForSelected = () => {
const canvas = this.prop... |
app/containers/Root.js | hadzimme/Crutta | import React from 'react'
import { Provider } from 'react-redux'
import configureStore from '../configureStore'
import App from './App'
const store = configureStore()
const Root = () => (
<Provider store={store}>
<App />
</Provider>
)
export default Root
|
src/CarouselItem.js | roderickwang/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import TransitionEvents from './utils/TransitionEvents';
const CarouselItem = React.createClass({
propTypes: {
direction: React.PropTypes.oneOf(['prev', 'next']),
onAnimateOutEnd: React.PropTypes.func,
active: React.PropTypes.bool,
anima... |
gatsby-strapi-tutorial/cms/plugins/content-manager/admin/src/components/AddFilterCTA/index.js | strapi/strapi-examples | /**
*
* AddFilterCTA
*
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
// Design
import Logo from '../../assets/images/icon_filter.png';
import Button from '../CustomButton';
import styles from './styles.scss';
class AddFilterCTA extends React.Co... |
src/components/Effect.js | rcbdev/crit-cards | import React from 'react';
import {Card, CardHeader, CardText} from 'material-ui/Card';
const cardStyle = {
margin: 12
};
export default function Effect({effect}){
return (
<Card style={cardStyle}>
<CardHeader title={effect.name}/>
<CardText>{effect.effect}</CardText>
<... |
frontend/app/js/containers/updaters.js | serverboards/serverboards | import React from 'react'
import { unwrap } from 'app/utils'
import PropTypes from 'prop-types'
class Updaters extends React.Component{
componentDidMount(){
const updates = unwrap(this.props.store_enter, this.context.store.getState(), this.props)
updates.map( (u) => this.context.store.dispatch(u()) )
}
c... |
src/components/common/SplashScreen.js | mdicarlo3/cautious-disco | import React, { Component } from 'react';
import { getRandomInt } from '../../helpers/helpers';
import classNames from 'classnames';
class SplashScreen extends Component {
constructor(props){
super(props);
this.state = {
displayNumber: this.props.content,
interval: null,
timout: null
}
... |
src/svg-icons/device/signal-cellular-4-bar.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellular4Bar = (props) => (
<SvgIcon {...props}>
<path d="M2 22h20V2z"/>
</SvgIcon>
);
DeviceSignalCellular4Bar = pure(DeviceSignalCellular4Bar);
DeviceSignalCellular4Bar.displayName = 'DeviceSign... |
src/svg-icons/editor/highlight.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorHighlight = (props) => (
<SvgIcon {...props}>
<path d="M6 14l3 3v5h6v-5l3-3V9H6zm5-12h2v3h-2zM3.5 5.875L4.914 4.46l2.12 2.122L5.62 7.997zm13.46.71l2.123-2.12 1.414 1.414L18.375 8z"/>
</SvgIcon>
);
Edito... |
src/pages/GridPage/GridPage.js | ro-savage/nwa-react-redux-boilerplate | import React from 'react'
import ReactGridLayout, { WidthProvider as widthProvider } from 'react-grid-layout'
const ReactGridLayoutWP = widthProvider(ReactGridLayout)
function calculateLayoutContainer() {
const browserWidth = window.innerWidth
const browserHeight = window.innerHeight
const rowHeight = 10
cons... |
app/client/src/components/CampaignSettingsForm/CampaignSettingsForm.js | uprisecampaigns/uprise-app | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import TextField from 'material-ui/TextField';
import Toggle from 'material-ui/Toggle';
import AutoComplete from 'material-ui/AutoComplete';
import SelectField from 'material-ui/SelectField';
import Menu... |
src/scenes/home/contact/contact.js | miaket/operationcode_frontend | import React from 'react';
import { Link } from 'react-router-dom';
import Section from 'shared/components/section/section';
import IconCard from 'shared/components/iconCard/iconCard';
import styles from './contact.css';
const Contact = () => (
<div>
<Section title="Contact Us">
<p className={styles.center... |
app/components/ProgressBar/index.js | fission/fission-ui | import React from 'react';
import ProgressBar from './ProgressBar';
function withProgressBar(WrappedComponent) {
class AppWithProgressBar extends React.Component {
constructor(props) {
super(props);
this.state = {
progress: -1,
loadedRoutes: props.location && [props.location.pathname]... |
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/es/PopperContent.js | GoogleCloudPlatform/prometheus-engine | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose";
im... |
blueocean-material-icons/src/js/components/svg-icons/social/person.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const SocialPerson = (props) => (
<SvgIcon {...props}>
<path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/>
</SvgIcon>
);
SocialPerson.displayName = 'SocialPerson';
SocialPerson.... |
src/components/StatusFeedItem.js | nicholasaiello/reactjs-squawk-some | import React from 'react';
/**
* Parse text for filter matches
*/
const parseFilter = (i, text, fltr = '', clsName) => {
fltr = fltr.toLowerCase();
const str = text.toLowerCase();
let start;
if (!fltr ||
(start = str.indexOf(fltr)) === -1) {
return [text];
}
let end = 0,
parts = [];
co... |
src/components/Main.js | jerrywei17/gallery | require('normalize.css/normalize.css');
require('styles/App.scss');
import React from 'react';
import ReactDOM from 'react-dom';
//獲取圖片相關數據
import imageDatas from '../data/imageDatas.json';
//將圖片訊息轉成URL
const imageDataArr = (function genImageURL(imageDatas) {
imageDatas.forEach((singleImageData) => {
singleImageDa... |
app/react-icons/fa/mixcloud.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaMixcloud extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m28.8 23.5q0-1-0.6-1.8t-1.5-1.2q-0.1 0.8-0.4 1.6-0.1 0.4-0.5 0.6t-0.8 0.3q-... |
node_modules/antd/es/collapse/index.js | prodigalyijun/demo-by-antd | import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _createClass from 'babel-runtime/helpers/createClass';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possib... |
docs/index.js | harjeethans/materialistic | import 'material-design-lite/material.css';
import 'dialog-polyfill/dialog-polyfill.css';
//import './assets/docs.css';
import css from '../src/index.scss';
import styles from './index.scss';
import React from 'react'
import { render } from 'react-dom';
import { browserHistory, Router, Route, Link, IndexRoute } from... |
src/svg-icons/action/assignment-returned.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentReturned = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .... |
chrome-extension/parcel-react/src/js/main.js | wxyyxc1992/Webpack-Boilerplate | import React from 'react';
import ReactDOM from 'react-dom';
import Button from './components/Button';
class App extends React.Component {
render() {
return (
<div>
Your App injected to DOM correctly!
<Button />
</div>
)
}
}
// Message Listener function
chrome.runtime.onMess... |
examples/todos/src/components/App.js | gaearon/redux | import React from 'react'
import Footer from './Footer'
import AddTodo from '../containers/AddTodo'
import VisibleTodoList from '../containers/VisibleTodoList'
const App = () => (
<div>
<AddTodo />
<VisibleTodoList />
<Footer />
</div>
)
export default App
|
ui/src/main/js/components/Navigation.js | medallia/aurora | import React from 'react';
import { Link } from 'react-router-dom';
export default function Navigation({ fluid }) {
return (
<nav className='navbar'>
<div className={fluid ? 'container-fluid' : 'container'}>
<div className='navbar-header'>
<Link className='navbar-brand' to='/scheduler'>
... |
src/components/CreateForm.js | alexedev/relay-workshop | import React from 'react';
const CreateForm = ({
submit,
handleInputChange,
fullName,
imageUrl,
nickname
}) => (
<form className="pa4 black-80" onSubmit={submit}>
<h2>Add new resident</h2>
<label className="f6 b db mb2">Full Name</label>
<input
name="fullName"
className="input-reset... |
lib/components/Error.js | dunncl15/weathrly | import React from 'react';
const NotFound = ({ error }) => {
return (
<section className="errors">
<h3>{ error }.</h3>
</section>
);
};
export default NotFound;
|
frontend-new/src/js/components/common/sidebar/AdminSideBar.js | leapfrogtechnology/vyaguta-resource | import React from 'react';
import { IndexLink, Link } from 'react-router';
import * as urlConstants from '../../../constants/urlConstants';
const AdminSidebar = () => (
<ul className="nav navbar-nav-custom navbar-right">
<li>
<IndexLink to='/' activeClassName="active" title="Dashboard">
{/*<i class... |
src/components/topic/snapshots/foci/builder/search/SearchPreview.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { FormattedMessage, injectIntl } from 'react-intl';
import { Row, Col } from 'react-flexbox-grid/lib';
import SearchStoryCountPreviewContainer from './SearchStoryCountPreviewContainer';
import SearchStoryPreviewContainer from './SearchStoryPreviewCon... |
example/v9.x.x/storybook/src/index.js | i18next/react-i18next | import React from 'react';
import ReactDOM from 'react-dom';
import { I18nextProvider } from 'react-i18next';
import './index.css';
import App from './App';
import i18n from './i18n';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(
<I18nextProvider i18n={i18n}>
<App />
</I18nextP... |
ReactTest/app/component/Home.js | OlesiaBelmega/GoIT-Studing | import React from 'react';
import {Link} from 'react-router-dom';
class Home extends React.Component {
render() {
return(
<div className="home-container">
<h1>
Github Battle: Battle your friends...and stuff.
</h1>
<Link className='bu... |
packages/Tabs/story.js | ancestorcloud/trace-ui | import React from 'react'
import { storiesOf } from '@kadira/storybook'
import {Tabs, TabList, TabPanels} from './index'
storiesOf('Tabs', module)
.add('style 1', () => {
const Tab = ({
onClick,
isDisabled,
isActive,
children,
}) => {
const tabStyles = {
display: 'inline... |
src/redux/modules/Forms/RenderField.js | aplee29/online-notebook-app-client | import React from 'react';
const RenderField = ({
input,
placeholder,
label,
type,
meta: { error }
}) => (
<div>
<label>{label}</label>
<p>{error && <span style={{color: 'red'}}>{error}</span>}</p>
<input style={{width: '30vw', height: '5vh'}} {...input} placeholder={placeholder} type={type} />... |
src/FormControls/Static.js | snadn/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import InputBase from '../InputBase';
import childrenValueValidation from '../utils/childrenValueInputValidation';
class Static extends InputBase {
getValue() {
const {children, value} = this.props;
return children ? children : value;
}
ren... |
assets/javascripts/kitten/components/typography/text/index.js | KissKissBankBank/kitten | import React from 'react'
import classNames from 'classnames'
import PropTypes from 'prop-types'
import { checkDeprecatedSizes } from '../../../helpers/utils/deprecated'
export const allowedColorStrings = [
'font1',
'font2',
'primary1',
'background1',
'error',
'valid',
'grey-000',
'grey-100',
'grey-2... |
src/svg-icons/device/signal-cellular-connected-no-internet-4-bar.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularConnectedNoInternet4Bar = (props) => (
<SvgIcon {...props}>
<path d="M20 18h2v-8h-2v8zm0 4h2v-2h-2v2zM2 22h16V8h4V2L2 22z"/>
</SvgIcon>
);
DeviceSignalCellularConnectedNoInternet4Bar = pur... |
docs/app/Examples/elements/Reveal/Content/RevealExampleHidden.js | clemensw/stardust | import React from 'react'
import { Image, Reveal } from 'semantic-ui-react'
const RevealExampleHidden = () => (
<Reveal animated='small fade'>
<Reveal.Content visible>
<Image src='http://semantic-ui.com/images/wireframe/square-image.png' size='small' />
</Reveal.Content>
<Reveal.Content hidden>
... |
src/pages/page-2.js | Smona/smona.github.io | import React from 'react'
import Link from 'gatsby-link'
const SecondPage = () => (
<div>
<h1>Hi from the second page</h1>
<p>Welcome to page 2</p>
<Link to="/">Go back to the homepage</Link>
</div>
)
export default SecondPage
|
HotelAndroid/splash.js | MJ111/hotel-reverse | import React, { Component } from 'react';
import {
View,
Image,
AsyncStorage,
Text,
StyleSheet,
} from 'react-native';
class SplashPage extends Component {
constructor(props) {
super(props);
}
async movePage () {
//await AsyncStorage.setItem('tutorial','false'); // --> !!!!!!change to commen... |
src/icons/Times.js | ericyd/surfplot-ui | import React from 'react';
import Icon from './Icon';
const Times = props => (
<Icon className={props.className}>
<path d='M10 10 L90 90 M90 10 L 10 90' />
</Icon>
);
Times.propTypes = {
className: React.PropTypes.string
};
export default Times;
|
src/svg-icons/image/remove-red-eye.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageRemoveRedEye = (props) => (
<SvgIcon {...props}>
<path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5... |
local-cli/templates/HelloNavigation/views/welcome/WelcomeText.ios.js | jevakallio/react-native | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';
export default class WelcomeText extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
</Text>
<... |
examples/huge-apps/routes/Course/components/Course.js | CivBase/react-router | import React from 'react';
import Dashboard from './Dashboard';
import Nav from './Nav';
var styles = {};
styles.sidebar = {
float: 'left',
width: 200,
padding: 20,
borderRight: '1px solid #aaa',
marginRight: 20
};
class Course extends React.Component {
render () {
let { children, params } = this.pro... |
src/components/Content.js | liron-navon/liron-navon.github.io | import React from 'react'
import PropTypes from 'prop-types'
export const HTMLContent = ({ content, className }) => (
<div className={className} dangerouslySetInnerHTML={{ __html: content }} />
)
const Content = ({ content, className }) => (
<div className={className}>{content}</div>
)
Content.propTypes = {
co... |
src/components/Header/Header.js | Nanjaa/Webcomic | /**
* 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 withStyles from 'isomorp... |
app/components/About.js | brandondoran/react-webpack-starter | import React from 'react';
const About = () => (
<div style={{ padding: 10 }}>
<h2>I am About!</h2>
</div>
);
export default About;
|
src/components/board_2.js | TheOriginalDollarStoreBaller/react-black-jack | // IMPORT DEPENDENCIES
import React, { Component } from 'react';
import _ from 'underscore'
// IMPORT COMPONENTS
import Hand from './hand';
// CREATE COMPONENTS
class Board extends Component {
constructor(props) {
super(props)
this.state = {
players: ['player', 'dealer'],
... |
src/app/Router.js | hellowin/kanca | // @flow
import React from 'react';
import { Router, Route, browserHistory, Redirect, IndexRedirect } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import config from 'config';
import store from 'infra/service/store';
// containers
import App from './App';
import Login from 'domain/us... |
docs/app/Examples/collections/Grid/Variations/GridExampleRelaxedVery.js | koenvg/Semantic-UI-React | import React from 'react'
import { Grid, Image } from 'semantic-ui-react'
const GridExampleRelaxedVery = () => (
<Grid relaxed='very' columns={4}>
<Grid.Column>
<Image src='http://semantic-ui.com/images/wireframe/image.png' />
</Grid.Column>
<Grid.Column>
<Image src='http://semantic-ui.com/im... |
client/src/infrastructure/store-connector.js | euqen/spreadsheet-core | import React from 'react';
export default function bind(store, getState) {
return function (DecoratedComponent) {
class StoreConnector extends React.Component {
constructor(props) {
super(props);
this.handleStoreChanged = this.handleStoreChanged.bind(this);
... |
src/svg-icons/social/mood-bad.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialMoodBad = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c.... |
resources/js/react/Avatar.js | chekun/spore | import React from 'react';
//<Avatar icon=[] />
class Avatar extends React.Component {
constructor(props) {
super(props)
}
render() {
var avatarPrefix = 'http://#region.as.baoz.cn/f/#file';
var url = 'http://d.as.baoz.cn/f/default.t30x30.png';
if (this.props.icon) {
... |
KDReactNative/KDClass/Mine/KDMine.js | csyibei/KDReactNative | /**
* Created by kaidi on 2016/10/17.
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Image,
TouchableOpacity,
Navigator,
ScrollView
} from 'react-native';
var KDPushView = require('../KDPushView');
var KDMineHeader = require('./KDMineHeader'... |
pages/error/index.js | lifeiscontent/OpenPoGoUI | import React from 'react';
import history from '../../core/history';
import Link from '../../components/Link';
import s from './styles.css';
class ErrorPage extends React.Component {
static propTypes = {
error: React.PropTypes.object,
};
componentDidMount() {
document.title = this.props.error && this.p... |
examples/js/column-filter/date-filter-programmatically.js | neelvadgama-hailo/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-unused-vars: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
const startDate = new Date(2015, 0, 1);
const endDate = new Date();
... |
src/layouts/CoreLayout/CoreLayout.js | sadayuki-matsuno/pdf | import React from 'react'
import Header from '../../components/Header'
import Footer from '../../components/Footer'
import './CoreLayout.scss'
import '../../styles/core.scss'
export const CoreLayout = ({ children }) => (
<div className='container text-center'>
<Header />
<div className='core-layout__viewport... |
src/components/Header.js | CharmedSatyr/game_of_life | import React from 'react';
const Header = () => (
<header>
<h1>John Conway's Game of Life</h1>
<h3>a zero player automaton</h3>
</header>
);
export default Header;
|
src/svg-icons/editor/format-align-left.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatAlignLeft = (props) => (
<SvgIcon {...props}>
<path d="M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z"/>
</SvgIcon>
);
EditorFormatAlignLeft = pure(EditorFormatAlignL... |
examples/huge-apps/routes/Course/components/Nav.js | mjw56/react-router | import React from 'react';
import { Link } from 'react-router';
import AnnouncementsRoute from '../routes/Announcements';
import AssignmentsRoute from '../routes/Assignments';
import GradesRoute from '../routes/Grades';
const styles = {};
styles.nav = {
borderBottom: '1px solid #aaa'
};
styles.link = {
display: ... |
src/routes/MyResource/components/ConfigContent/VipConfigContent.js | TheModevShop/craft-app | import React from 'react';
import {browserHistory} from 'react-router';
import _ from 'lodash';
import Select from 'react-select';
import Loader from 'components/Loader/Loader';
import './config-content.less';
class ConfigContent extends React.Component {
constructor(...args) {
super(...args);
this.state = {... |
packages/material-ui-icons/src/SignalWifi4Bar.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let SignalWifi4Bar = props =>
<SvgIcon {...props}>
<path d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z" />
</SvgIcon>;
SignalWifi4Bar = pure(SignalWifi4Bar)... |
03-postcss/lib/layout/index.js | samueleaton/approaches-to-styling | import React from 'react'
import styleable from 'react-styleable'
import Cover from '../cover'
import Avatar from '../avatar'
import Bio from '../bio'
import Info from '../info'
@styleable(require('./index.css'))
export default class Layout extends React.Component {
render () {
return (
<div className={th... |
app/components/Tabs/Timeline/index.js | prudhvisays/newsb | import React from 'react';
import moment from 'moment';
import './timeline.css';
export default class Timeline extends React.Component { //eslint-disable-line
constructor(props) {
super(props);
this.formatTime = this.formatTime.bind(this);
this.formatDate = this.formatDate.bind(this);
}
formatTim... |
src/scenes/home/informationForm/formComponents/workInfo.js | sethbergman/operationcode_frontend | import React from 'react';
import { Line } from 'rc-progress';
import Form from 'shared/components/form/form';
import PropTypes from 'prop-types';
import FormSelect from 'shared/components/form/formSelect/formSelect';
import { WORKINFO, MENTOR_ANSWERS } from 'shared/constants/status';
import styles from './formComponen... |
src/svg-icons/maps/restaurant.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsRestaurant = (props) => (
<SvgIcon {...props}>
<path d="M11 9H9V2H7v7H5V2H3v7c0 2.12 1.66 3.84 3.75 3.97V22h2.5v-9.03C11.34 12.84 13 11.12 13 9V2h-2v7zm5-3v8h2.5v8H21V2c-2.76 0-5 2.24-5 4z"/>
</SvgIcon>
)... |
src/svg-icons/communication/call-missed.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallMissed = (props) => (
<SvgIcon {...props}>
<path d="M19.59 7L12 14.59 6.41 9H11V7H3v8h2v-4.59l7 7 9-9z"/>
</SvgIcon>
);
CommunicationCallMissed = pure(CommunicationCallMissed);
CommunicationC... |
src/components/BooksDashboardFilters/BooksDashboardFilters.js | sbalay/reacting | import React, { Component } from 'react';
import DropdownButton from 'react-bootstrap/lib/DropdownButton';
import MenuItem from 'react-bootstrap/lib/MenuItem';
export default class BooksDashboardFilters extends Component {
constructor(props) {
super(props);
this.state = {
filterTypes: ['title', 'autho... |
Example/src/page/TabBar/Rnx/index.js | dragonwong/rnx-ui | /**
* 主页面 rnx 面板
*/
import React from 'react';
import {
StyleSheet,
View,
Text,
} from 'react-native';
import NavBar from 'rnx-ui/NavBar';
const styles = StyleSheet.create({
all: {
flex: 1,
},
});
function Rnx() {
return (
<View style={styles.all}>
<NavBar title="RNX" />
<Text>
... |
react-flux-mui/js/material-ui/docs/src/app/components/pages/components/Dialog/Page.js | pbogdan/react-flux-mui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import dialogReadmeText from './README';
import DialogExampleSimple from './Exam... |
src/createElement.js | thebritican/react-router-relay | import React from 'react';
import Container from './Container';
export default function createElement(Component, props) {
return (
<Container
Component={Component}
{...props}
/>
);
}
|
packages/material-ui-icons/src/ExpandMore.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let ExpandMore = props =>
<SvgIcon {...props}>
<path d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z" />
</SvgIcon>;
ExpandMore = pure(ExpandMore);
ExpandMore.muiName = 'SvgIcon';
export default ExpandMor... |
views/prompt.js | cyrixhero/black-screen | import _ from 'lodash';
import React from 'react';
import Autocomplete from './autocomplete';
import DecorationToggle from './decoration_toggle';
// TODO: Make sure we only update the view when the model changes.
export default React.createClass({
getInitialState() {
return {
suggestions: [],
... |
app/components/SubNavigation/index.js | seanng/web-server | /**
*
* SubNavigation
*
*/
import React from 'react';
import styled from 'styled-components';
import { FormattedMessage } from 'react-intl';
import messages from './messages';
import Tab from '../Tab';
const Div = styled.div`
background-color: #eeeeee;
height: 45px;
display: flex;
justify-content: center;
... |
app/javascript/mastodon/features/keyboard_shortcuts/index.js | amazedkoumei/mastodon | import React from 'react';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../components/column_back_button_slim';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-co... |
consoles/my-joy-images/src/components/tags.js | yldio/joyent-portal | import React from 'react';
import { Margin } from 'styled-components-spacing';
import { TagItem } from 'joyent-ui-toolkit';
import { KeyValue } from 'joyent-ui-resource-widgets';
export const AddForm = props => (
<KeyValue {...props} method="add" input="input" type="tag" expanded />
);
export const EditForm = prop... |
geonode/monitoring/frontend/src/components/cels/layer-select/index.js | ppasq/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import DropDownMenu from 'material-ui/DropDownMenu';
import MenuItem from 'material-ui/MenuItem';
import actions from './actions';
import styles from './styles';
const mapStateToProps = (state) => ({
interval: stat... |
resources/js/Admin/components/MainNav/NavLink.js | DoSomething/northstar | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { InertiaLink } from '@inertiajs/inertia-react';
const NavLink = ({ className, href, isActive, routeName, title }) => {
const textColor = isActive ? 'text-white' : 'text-gray-500';
return routeName ? (
<... |
src/parser/warlock/affliction/modules/soulshards/SoulShardDetails.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import ResourceBreakdown from 'parser/shared/modules/resourcetracker/ResourceBreakdown';
import SPELLS from 'common/SPELLS';
import Panel from 'interface/others/Panel';
import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER';
import Stati... |
src/docs/apiExamples/ErrorBar.js | recharts/recharts.org | import React from 'react';
import { ScatterChart, XAxis, YAxis, CartesianGrid, Tooltip, Legend, Scatter, ErrorBar } from 'recharts';
const data = [
{
x: 45,
y: 100,
z: 150,
errorY: [30, 20],
errorX: 5,
},
{
x: 100,
y: 200,
z: 200,
errorY: [20, 30],
errorX: 3,
},
{
... |
src/index.js | KidLau/react-3d-views | 'use strict';
import React from 'react';
import {render} from 'react-dom';
import {Router, Route, browserHistory, IndexRedirect} from 'react-router';
import CoverFlowView from './examples/cover-flow-view';
const routes = [
<Route path="/">
<IndexRedirect to="/cover-flow-view" />
<Route path="/cover-flow-vi... |
_experiment/react-fetch-github-repo/v3-stable/src/App.js | David-JC/react-testing | import React from 'react';
import {render} from 'react-dom';
import ReposList from './ReposList';
// init repos Array
let repos = []
// Create generic App Component
class App extends React.Component {
render() {
return (
<div>
<h1>iGenius repositories</h1>
<ReposList repos={this.props.repos}/>
</div>
... |
app/jsx/bundles/account_grading_standards.js | djbender/canvas-lms | /*
* Copyright (C) 2016 - 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... |
views/decoration_toggle.js | jassyboy/black-screen | import React from 'react';
export default React.createClass({
getInitialState() {
return {enabled: this.props.invocation.state.decorate};
},
handleClick(event) {
stopBubblingUp(event);
var newState = !this.state.enabled;
this.setState({enabled: newState});
this.prop... |
app/components/FormFields/Loading.js | dmitru/react-redux-router-expense-tracker-example-app |
import React from 'react'
import classNames from 'classnames'
import { Glyphicon } from 'react-bootstrap'
import styles from './Loading.css'
export default class Loading extends React.Component {
static propTypes = {
delay: React.PropTypes.oneOfType([
React.PropTypes.bool,
React.PropTypes.number,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.