path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
app/javascript/mastodon/features/ui/components/columns_area.js | cybrespace/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ReactSwipeableViews from 'react-swipeable-views';
import { link... |
server/server.js | cdriscol/amerikawedding2017 | import Express from 'express';
import compression from 'compression';
import bodyParser from 'body-parser';
import path from 'path';
// Webpack Requirements
import webpack from 'webpack';
import config from '../webpack.config.dev';
import webpackDevMiddleware from 'webpack-dev-middleware';
import webpackHotMiddleware ... |
src/svg-icons/notification/mms.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationMms = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM5 14l3.5-4.5 2.5 3.01L14.5 8l4.5 6H5z"/>
</SvgIcon>
);
NotificationMms = ... |
app/common/Global.js | jokunhe/react-native-ee-camera | /**
* Created by Rabbit on 2017/4/20.
*/
import React, { Component } from 'react';
import { Dimensions, StyleSheet, PixelRatio, Platform, Alert } from 'react-native';
import FontSize from '../component/TextSize';
import Colors from '../component/Colors';
import { px2dp } from './Tool';
// import * as Fetch from './F... |
src/core/markers/TextMarker.js | mocheer/react-map | import React from 'react';
export const TextMarker = React.createClass({
render: function () {
var state = this.state;
return null;
}
}); |
stories/components/form/formCheckBox/index.js | sethbergman/operationcode_frontend | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import FormCheckBox from 'shared/components/form/formCheckBox/formCheckBox';
storiesOf('shared/components/form/formCheckBox', module)
.add('Default', () => (
<FormCheckBox
name="che... |
src/containers/App.js | kun391/react-firebase-chat | import React from 'react';
import PropTypes from 'prop-types';
import { RenderRoutes } from '../routes';
import 'bootstrap/dist/css/bootstrap.min.css';
import 'admin-lte/dist/css/AdminLTE.min.css';
import 'admin-lte/dist/css/skins/_all-skins.min.css';
import 'font-awesome/css/font-awesome.min.css';
import 'bootstrap/di... |
examples/js/components/App.js | dana2208/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { LinkContainer } from 'react-router-bootstrap';
// import 'bootstrap/dist/css/bootstrap.css';
import 'toastr/build/toastr.min.css';
import '../../../css/react-bootstrap-table.css';
// import 'jquery';
// import 'bootstrap';
import {
Navbar,
NavBrand,
Nav... |
components/Services/Services.js | falconi1812/falconi | import React, { Component } from 'react';
import SERVICES from './services.data';
class Service extends Component {
render() {
const { title, iconURL, isIncluded, features } = this.props;
return (
<div className="col-xs-12 col-md-4 gc-service">
<div className="gc-service-image-container">
... |
app/components/Footer/index.js | interra/data-generate | import React from 'react';
import { FormattedMessage } from 'react-intl';
import A from 'components/A';
import LocaleToggle from 'containers/LocaleToggle';
import Wrapper from './Wrapper';
import messages from './messages';
function Footer() {
return (
<Wrapper>
<section>
<FormattedMessage {...mes... |
src/components/HomePage.js | tavofigse/flip-the-reactomster | import React from 'react'
import { Link } from 'react-router'
const HomePage = () => {
return (
<ul className="main-menu">
<li><Link to="play">New Game</Link></li>
<li><Link to="options">Options</Link></li>
<li><Link to="credits">Credits</Link></li>
</ul>
)
}
export default HomePage
|
test/fixtures/methods.js | jquense/react-component-metadata | import React from 'react';
var ClassicComponent = React.createClass({
render() {
return <span/>;
},
bar() {
}
})
//
// class ES6Component extends React.Component {
//
// constructor() {
// super()
// }
//
// render() {
// return <span/>;
// }
//
// componentWillReceiveProps() {
//
// ... |
src-client/modules/generator/containers/MetadataForm/index.js | ipselon/structor | /*
* Copyright 2017 Alexander Pustovalov
*
* Licensed 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/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... |
components/radio/RadioGroup.js | rubenmoya/react-toolbox | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { themr } from 'react-css-themr';
import { RADIO } from '../identifiers';
import InjectRadioButton from './RadioButton';
import isComponentOfType from '../utils/is-component-of-type';
const factory = (RadioButton) => {
class RadioGr... |
src/example/example.js | manuelbieh/react-minimal-dropdown | import React from 'react';
import ReactDOM from 'react-dom';
import { Dropdown, Trigger, Content } from '../Dropdown';
// import 'normalize-css/normalize.css';
import '@manuel-bieh/layout/css/website/config/defaults.css';
import '@manuel-bieh/layout/css/website/objects/header.css';
import css from './example.css';
c... |
src/components/Nav/Nav.js | Landish/react-spectre-css | import React from 'react';
//import {} from 'prop-types';
import classNames from 'classnames';
const Nav = ({ children, ...rest }) => {
return (
<ul className={classNames('nav')} {...rest}>
{children}
</ul>
);
};
/**
* Nav property types.
*/
Nav.propTypes = {};
/**
* Nav default properties.
*/
... |
src/Label.js | deerawan/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Label = React.createClass({
mixins: [BootstrapMixin],
getDefaultProps() {
return {
bsClass: 'label',
bsStyle: 'default'
};
},
render() {
let classes = this.getBsClassSe... |
src/components/shows_list.js | tomshudev/next-episode | import React from 'react';
import ShowListItem from './show_list_item';
const ShowsList = (props) => {
const showItems = props.shows.map((show) => {
return (<ShowListItem
onShowSelect = {props.onShowSelect}
key={show.id}
show={show} />);
});
re... |
candle-pwa-demo/src/Candle.js | nataliegirard/web-ble | import React from 'react';
import { BlockPicker } from 'react-color';
import candle from '../public/candle-transparent.png';
const Connection = React.createClass({
render() {
const colors = ['#FF0000', '#E2571E', '#FF7F00', '#FFFF00', '#00FF00', '#96bf33', '#0000FF', '#4B0082', '#8B00FF']
return (
<div... |
docs/src/app/components/pages/customization/InlineStyles.js | pomerantsev/material-ui | import React from 'react';
import Title from 'react-title-component';
import Checkbox from 'material-ui/Checkbox';
import CodeExample from '../../CodeExample';
import typography from 'material-ui/styles/typography';
class InlineStyles extends React.Component {
getStyles() {
return {
headline: {
fon... |
src/core/NavigationView.js | WellerQu/rongcapital-ui | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import clazz from 'classnames';
import autobind from 'core-decorators/lib/autobind';
import override from 'core-decorators/lib/override';
import View from './View';
import * as componentStyles from '../styles/core/navigationView.sass';
con... |
src/Well.js | pieter-lazzaro/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Well = React.createClass({
mixins: [BootstrapMixin],
getDefaultProps() {
return {
bsClass: 'well'
};
},
render() {
let classes = this.getBsClassSet();
return (
<di... |
src/svg-icons/device/gps-fixed.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceGpsFixed = (props) => (
<SvgIcon {...props}>
<path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3c-.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.1... |
client/app/scripts/charts/node-shape-stack.js | paulbellamy/scope | import React from 'react';
import { NODE_BASE_SIZE } from '../constants/styles';
export default function NodeShapeStack(props) {
const shift = props.contrastMode ? 0.15 : 0.1;
const highlightScale = [1, 1 + shift];
const dy = NODE_BASE_SIZE * shift;
const Shape = props.shape;
return (
<g transform={`tr... |
boilerplates/app/src/routes/dashboard/components/comments.js | hexagonframework/antd-admin-cli | import React from 'react'
import PropTypes from 'prop-types'
import { Table, Tag } from 'antd'
import styles from './comments.less'
import { color } from '../../../utils'
const status = {
1: {
color: color.green,
text: 'APPROVED',
},
2: {
color: color.yellow,
text: 'PENDING',
},
3: {
colo... |
src/view/user/Modal.js | fishmankkk/mircowater2.0 | import React from 'react'
import PropTypes from 'prop-types'
import { Form, Input, InputNumber, Radio, Modal, Cascader } from 'antd'
import city from '../../utils/city'
const FormItem = Form.Item
const formItemLayout = {
labelCol: {
span: 6,
},
wrapperCol: {
span: 14,
},
}
const modal = ({
item = {... |
src/js/react/presentational/tools/ToolPanelGroup.js | koluch/db-scheme | // @flow
import React from 'react'
import cn from 'bem-cn'
const bem = cn('tool-panel-group')
class ToolPanelGroup extends React.Component {
static defaultProps = {
mode: 'MULTIPLE',
}
constructor(props: *) {
super(props)
const opened = {}
props.children.forEach((item, i... |
src/components/DataTable/Cell.js | tuckerconnelly/carbon-ui | import React from 'react'
import PropTypes from 'prop-types'
import { View, Platform } from 'react-native'
import { Body1, Colors, gu } from '../../index'
const Cell = ({ children, style, ...other }) => {
const defaultedChildren = typeof children === 'string' ?
<Body1>{children}</Body1> :
children
return ... |
src/Drawer/TemporaryDrawer/Content.js | gutenye/react-mc | // @flow
import React from 'react'
import cx from 'classnames'
import type { PropsC } from '../../types'
class Content extends React.Component {
props: PropsC
static defaultProps = {
component: 'div',
}
static displayName = 'Drawer.Temporary.Content'
render() {
const { component: Component, classNa... |
curator-web/src/js/components/frame/logo.js | rajeshnaroth/curator | import React from 'react'
const Logo = (props) => (<img src="images/yt.png"/>)
export default Logo |
src/index.js | lpirola/mapa-da-democracia | import React from 'react';
import {render} from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
import configureStore from './store/configureStore';
import './styles/styles.scss'; //Yep, that's right. You can import SASS/CSS file... |
library/src/pivotal-ui-react/tabs/tab_headers.js | sjolicoeur/pivotal-ui | import classnames from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
export default class TabHeaders extends React.Component {
static propTypes = {
activeKey: PropTypes.any,
childArray: PropTypes.array,
handleClick: PropTypes.func,
isLeft: PropTypes.bool,
id: PropT... |
src/routes/Home/components/HomeView.js | EvanGee/ReduxApp | import React from 'react'
import DuckImage from '../assets/Duck.jpg'
import './HomeView.scss'
export const HomeView = () => (
<div>
<h4>Welcome!</h4>
<img alt='This is a duck, because Redux!' className='duck' src={DuckImage} />
</div>
)
export default HomeView
|
client/src/components/LoadingSpinner/LoadingSpinner.js | timorieber/wagtail | import React from 'react';
import { STRINGS } from '../../config/wagtailConfig';
import Icon from '../../components/Icon/Icon';
/**
* A loading indicator with a text label next to it.
*/
const LoadingSpinner = () => (
<span>
<Icon name="spinner" className="c-spinner" />{` ${STRINGS.LOADING}`}
</span>
);
exp... |
client/components/OwnLink/OwnLink.js | djaracz/useless-app | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router';
import styles from './own-link.scss';
export default class OwnLink extends Component {
constructor(props) {
super(props);
this.handleClick = this.handleClick.bind(this);
}
ha... |
docs/src/components/nav.js | adisuryadi/nuclear-js | import React from 'react'
import { BASE_URL } from '../globals'
function urlize(uri) {
return BASE_URL + uri
}
export default React.createClass({
render() {
const logo = this.props.includeLogo
? <a href={BASE_URL} className="brand-logo">NuclearJS</a>
: null
const homeLink = this.props.includeL... |
src/container/footer/footer.js | PangPangPangPangPang/react-blog | /**
* Created by wangyefeng on 2017-04-25 13:32
*/
import React from 'react'
import './footer.css'
import NormalButton from '../../compontent/normal_button'
const WeiboImg = require('../../resource/svg/weibo.svg')
const GithubImg = require('../../resource/svg/github.svg')
const Footer = (props) => {
const getCla... |
src/svg-icons/communication/live-help.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationLiveHelp = (props) => (
<SvgIcon {...props}>
<path d="M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 16h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 11.9 13 12.5 13... |
packages/icons/src/md/editor/WrapText.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdWrapText(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M7 36h12v-4H7v4zM39 8H7v4h32V8zm-6 12H7v4h26.5c2.21 0 4 1.79 4 4s-1.79 4-4 4H29v-4l-6 6 6 6v-4h4c4.41 0 8-3.59 8-8s-3.59-8-8-8z" />
</IconBase>
... |
app/components/Footer/index.js | Cherchercher/Wedding-Llama | import React from 'react';
import { FormattedMessage } from 'react-intl';
import A from 'components/A';
import LocaleToggle from 'containers/LocaleToggle';
import Wrapper from './Wrapper';
import messages from './messages';
function Footer() {
return (
<Wrapper>
<section>
<FormattedMessage {...mes... |
docs/app/Examples/elements/List/Types/ListExampleIcon.js | clemensw/stardust | import React from 'react'
import { List } from 'semantic-ui-react'
const ListExampleIcon = () => (
<List>
<List.Item>
<List.Icon name='users' />
<List.Content>Semantic UI</List.Content>
</List.Item>
<List.Item>
<List.Icon name='marker' />
<List.Content>New York, NY</List.Content>
... |
demo/components/Button.js | felipethome/react-inline-transition-group | import React from 'react';
import PropTypes from 'prop-types';
export default class Button extends React.Component {
static displayName = 'Button';
static propTypes = {
children: PropTypes.any,
onMouseDown: PropTypes.func,
onMouseUp: PropTypes.func,
style: PropTypes.object,
};
state = {
m... |
src/components/TweetView/index.js | Reditr-Software/reditr | import React from 'react'
import moment from 'moment'
class TweetView extends React.Component {
constructor(props) {
super(props)
this.state = {}
}
clickName() {
var tweet = this.props.tweet
window.open('http://twitter.com/' + tweet.username + '/status/' + tweet.id)
}
clickReply() {
win... |
src/client/component/header.js | yoo2001818/resumegen | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Contact from './contact';
import '../style/header.scss';
export default function Header({ vcard: { name, subName, contact } }) {
return (
<header className='header-component'>
<div className='title'>
<h1 classNam... |
src/parser/druid/restoration/modules/features/Lifebloom.js | fyruna/WoWAnalyzer | import React from 'react';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import { formatPercentage } from 'common/format';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import ItemLink from 'common/ItemLink';
import SPELLS from 'common/SPELLS';
imp... |
components/MainNav.js | reganoneill/portfolio2.0 | import React from 'react';
import {prefixLink} from 'gatsby-helpers';
import { Link } from 'react-router';
import { config } from 'config';
const FaBars = require('react-icons/lib/fa/Bars');
class MainNav extends React.Component {
constructor(props) {
super(props);
this.state = {
windowWidth: window.inn... |
server/sonar-web/src/main/js/apps/custom-measures/components/CustomMeasuresAppContainer.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
src/svg-icons/device/network-cell.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceNetworkCell = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M2 22h20V2z"/><path d="M17 7L2 22h15z"/>
</SvgIcon>
);
DeviceNetworkCell = pure(DeviceNetworkCell);
DeviceNetworkCell.displayNam... |
src/index.js | bulletcms/bullet-tracer | import 'babel-polyfill';
import 'whatwg-fetch';
import React from 'react';
import {render} from 'react-dom';
import {Provider} from 'react-redux';
import {CONFIG} from 'config';
import {store} from 'reducers';
import {routes} from 'routes';
class Tracer {
constructor(config){
for(let i in config){
CONFIG... |
src/-/Home-route/view.js | yangbin1994/react-redux-starter-kit | import React from 'react'
import DuckImage from './assets/Duck.jpg'
import './style.scss'
export const HomeRoute = () => (
<div>
<h4>Welcome!</h4>
<img
alt='This is a duck, because Redux!'
className='duck'
src={DuckImage} />
</div>
)
export default HomeRoute
|
examples/real-world/routes.js | ellbee/redux | import React from 'react'
import { Route } from 'react-router'
import App from './containers/App'
import UserPage from './containers/UserPage'
import RepoPage from './containers/RepoPage'
export default (
<Route path="/" component={App}>
<Route path="/:login/:name"
component={RepoPage} />
<Route p... |
app/screens/other/settings.js | it-surya/hack-jeninvest | import React from 'react';
import {
ScrollView,
View,
TouchableOpacity,
StyleSheet
} from 'react-native';
import {
RkText,
RkStyleSheet,
RkTheme
} from 'react-native-ui-kitten';
import {
RkSwitch,
FindFriends
} from '../../components';
import {FontAwesome} from '../../assets/icons';
export class Sett... |
graphwalker-studio/src/main/js/components/editor/editor-tabs/index.js | GraphWalker/graphwalker-project | import React, { Component } from 'react';
import { connect } from "react-redux";
import styled from 'styled-components';
import { Button, Icon, Menu, MenuDivider, MenuItem, Popover, Position } from "@blueprintjs/core";
import { addModel, selectModel, closeModel, closeAllModels } from "../../../redux/actions";
import ".... |
app/javascript/mastodon/features/followers/index.js | res-ac/mstdn.res.ac | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import {
fetchAccount,
fetchFollowers,
expandFollowers,
} from '../../actions/account... |
ui/src/main/js/components/StateMachine.js | medallia/aurora | import React from 'react';
import moment from 'moment';
function StateItem({ className, state, message, timestamp }) {
return (<li className={className}>
<div className='state-machine-item'>
<div className='state-machine-item-details'>
<span className='state-machine-item-state'>{state}</span>
... |
modules/Router.js | buddhike/react-router | import React from 'react'
import warning from 'warning'
import createHashHistory from 'history/lib/createHashHistory'
import { createRoutes } from './RouteUtils'
import RoutingContext from './RoutingContext'
import useRoutes from './useRoutes'
import { routes } from './PropTypes'
const { func, object } = React.PropTyp... |
src/js/components/DataChart/stories/Pattern.js | grommet/grommet | import React from 'react';
import { Box, DataChart } from 'grommet';
const data = [];
for (let i = 1; i < 8; i += 1) {
const v = Math.sin(i / 2.0);
data.push({
percent: Math.abs(v * 100),
});
}
export const Pattern = () => (
// Uncomment <Grommet> lines when using outside of storybook
// <Grommet theme... |
ReactUI/src/auth/App.js | stsouko/MWUI | import React from 'react';
import Form from 'antd/lib/form';
import Icon from 'antd/lib/icon';
import Input from 'antd/lib/input';
import Button from 'antd/lib/button';
import message from 'antd/lib/message';
import Row from 'antd/lib/row';
import Col from 'antd/lib/col';
import axios from 'axios';
import { MainLayout... |
client/src/javascript/components/modals/settings-modal/BandwidthTab.js | stephdewit/flood | import {Form, FormRow, Textbox} from 'flood-ui-kit';
import {FormattedMessage} from 'react-intl';
import React from 'react';
import ModalFormSectionHeader from '../ModalFormSectionHeader';
import SettingsTab from './SettingsTab';
export default class BandwidthTab extends SettingsTab {
state = {};
handleFormChang... |
src/svg-icons/maps/local-hotel.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalHotel = (props) => (
<SvgIcon {...props}>
<path d="M7 13c1.66 0 3-1.34 3-3S8.66 7 7 7s-3 1.34-3 3 1.34 3 3 3zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.21-1.79-4-4-4z"/>
</SvgIcon>
);
MapsLocalHotel = pu... |
src/containers/articles/pricing_special_offers.js | b0ts/react-redux-sweetlightstudios-website | import React, { Component } from 'react';
import { articleMounting, getCollectionProducts } from '../../actions/index.js';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import SingleCollectionProduct from '../single_collection_product.js';
class PricingSpecialOffers extends Compone... |
examples/todomvc/index.js | hdyen/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 />}
... |
modules/Route.js | flocks/react-router | import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement } from './RouteUtils';
import { component, components } from './PropTypes';
import warning from 'warning';
var { string, bool, func } = React.PropTypes;
/**
* A <Route> is used to declare which components are rendered ... |
src/client/components/curriculums/NewResourceItem.js | jeremyjs/knowledgetree | import React from 'react';
import { connect } from 'react-redux';
import { createResource } from '../../api/resources';
import { addResourceToCurriculum, setIsAddingResource } from '../../store/actions';
import { TextField, RaisedButton } from 'material-ui';
const fieldStyle = {
marginRight: '20px',
};
const formOp... |
frontend/src/components/partners/partnersContainer.js | unicef/un-partner-portal | import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Grid from 'material-ui/Grid';
import Typography from 'material-ui/Typography';
import { TableCell } from 'material-ui/Table';
import { browserHistory as history, withRouter } from 'react-router';
... |
src/server.js | patrickkillalea/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import 'babel/polyfill';
import path from 'path';
import express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import Router from './routes';
import Html from './components/Html';
const server = global.serve... |
reactWebpack/src/components/information.js | JohnsonTX/webpacreact | /**
* Created by johnsontx on 2017/1/20.
*/2
import React from 'react';
import { Link } from 'react-router';
import Mains from './public/Main';
import {Imgicon} from './public/base';
import {Tools} from '../Mytool';
class Information extends React.Component {
constructor(props){
super(props);
this.initStat... |
src/routes/prompts/List.js | yunqiangwu/kmadmin | import React from 'react'
import PropTypes from 'prop-types'
import { Table, Modal } from 'antd'
import classnames from 'classnames'
import { DropOption } from 'components'
import { Button } from 'antd'
import { Link } from 'dva/router'
import AnimTableBody from '../../components/DataTable/AnimTableBody'
import styles ... |
src/components/Page/Education.js | peachy19/senpie | import React, { Component } from 'react';
class Education extends Component{
render() {
return (
<div className="panel panel-default">
<div className="panel-heading">Education</div>
<div className="panel-body">{this.props.degree}, {this.props.education}</div>
</div>
)
}
}
export... |
src/upcoming/routes.js | mstriemer/usetopscore-widgets | import React from 'react';
import { IndexRoute, Route } from 'react-router';
import App from './containers/App';
import UpcomingGames from './containers/UpcomingGames';
export default (
<Route path="/" component={App}>
<IndexRoute component={UpcomingGames} />
<Route path="shell" component={UpcomingGames} />... |
static/src/ConnectDialog.js | alwint3r/wlanturn | import React from 'react';
import Dialog from 'material-ui/Dialog';
import Checkbox from 'material-ui/Checkbox';
import TextField from 'material-ui/TextField';
import FlatButton from 'material-ui/FlatButton';
import { connect } from 'react-redux';
import actions from './actions';
/* eslint react/jsx-boolean-value:0 *... |
webapp/app/components/SaveHistory/Table/ModalInstantSave/index.js | EIP-SAM/SAM-Solution-Node-js | //
// Modal to create an instant save in save history page
//
import React from 'react';
import { Modal, ButtonToolbar, Glyphicon } from 'react-bootstrap';
import LinkContainerButton from 'components/Button';
import styles from 'components/SaveHistory/Table/ModalInstantSave/styles.css';
/* eslint-disable react/prefer... |
app/javascript/mastodon/features/ui/components/media_modal.js | verniy6462/mastodon | import React from 'react';
import ReactSwipeableViews from 'react-swipeable-views';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ExtendedVideoPlayer from '../../../components/extended_video_player';
import { defineMessages, injectIntl } from 'react-intl';
import... |
src/components/Footer/Footer.js | Jahans3/thecraic | /**
* 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, { Component } from 'react';
import withStyle... |
src/svg-icons/social/sentiment-dissatisfied.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialSentimentDissatisfied = (props) => (
<SvgIcon {...props}>
<circle cx="15.5" cy="9.5" r="1.5"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 1... |
gatsby-strapi-tutorial/cms/plugins/content-manager/admin/src/components/VariableEditIcon/index.js | strapi/strapi-examples | /**
*
* VariableEditIcon
*/
import React from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import styles from './styles.scss';
function VariableEditIcon({ onClick, withLongerHeight, ...rest }) {
return (
<span
className={cn(withLongerHeight ? styles.editIconLonger : styles... |
src/svg-icons/image/filter-6.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter6 = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-8-2h2c1.1 0 2-.89 2-2v-2... |
node_modules/react-router/es6/IndexRedirect.js | Alex-Shilman/Drupal8Node | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import Redirect from './Redirect';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.string;
var object = _React$PropTypes.object;
/**
* An <IndexRedir... |
examples/flux-utils-todomvc/js/app.js | Binzzzz/flux | /**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*/
'use s... |
fixtures/attribute-behavior/src/App.js | TheBlasfem/react | import React from 'react';
import {createElement} from 'glamor/react'; // eslint-disable-line
/* @jsx createElement */
import {MultiGrid, AutoSizer} from 'react-virtualized';
import 'react-virtualized/styles.css';
import FileSaver from 'file-saver';
import {
inject as injectErrorOverlay,
uninject as uninjectError... |
hw7-frontend/src/components/article/addComment.js | lanyangyang025/COMP531 | import React from 'react'
import { connect } from 'react-redux'
import { add_Comment } from './articleActions'
//content of a comment
export const AddComment = ({dispatch, article}) => {
let text;
return(
<div className="col-sm-9 col-sm-offset-3">
<input type="text" className="form-control" id="new_comment" placeho... |
src/index.js | Anthony-Wilson/react-webpack-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/plugin-hooks/useExpanded.js | tannerlinsley/react-table | import React from 'react'
import { expandRows } from '../utils'
import {
useGetLatest,
actions,
useMountedLayoutEffect,
makePropGetter,
ensurePluginOrder,
} from '../publicUtils'
// Actions
actions.resetExpanded = 'resetExpanded'
actions.toggleRowExpanded = 'toggleRowExpanded'
actions.toggleAllRowsExpanded... |
pages/talks/chrome-devtools/index.js | romelperez/romelperez.com | import React from 'react';
import TalkBase from '../_talk';
import talk from './chrome-devtools.json';
export default () => <TalkBase talk={talk} />;
|
node_modules/@material-ui/styles/es/useTheme/useTheme.js | pcclarke/civ-techs | import React from 'react';
import ThemeContext from './ThemeContext';
export default function useTheme() {
return React.useContext(ThemeContext);
} |
docs/src/app/components/pages/components/RaisedButton/ExampleIcon.js | kasra-co/material-ui | import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import {fullWhite} from 'material-ui/styles/colors';
import ActionAndroid from 'material-ui/svg-icons/action/android';
import FontIcon from 'material-ui/FontIcon';
const style = {
margin: 12,
};
const RaisedButtonExampleIcon = () => (
... |
src/routes/register/index.js | taekungngamonosus/monoreact | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../co... |
src/js/components/common/common.js | athill/wimf | import classnames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
export const Icon = ({ icon, size = 'lg', spinning = false, className='', ...otherProps }) => {
className = classnames(['fa', `fa-${icon}`, {[`fa-${size}`]: size, 'fa-spin': spinning}].concat(className.split(' ')));
r... |
jenkins-design-language/src/js/components/material-ui/svg-icons/av/volume-down.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvVolumeDown = (props) => (
<SvgIcon {...props}>
<path d="M18.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM5 9v6h4l5 5V4L9 9H5z"/>
</SvgIcon>
);
AvVolumeDown.displayName = 'AvVolumeDown';
AvVolumeDown.muiName = 'SvgIcon';
... |
client/src/routes/Login.js | BenDiuguid/fantasy-fifa | import React from 'react';
import styled from 'styled-components';
import Button from '@material-ui/core/Button';
import TextField from '@material-ui/core/TextField';
import { compose, withState, withHandlers } from 'recompose';
import { Redirect } from 'react-router';
import { withApollo, graphql } from 'react-apollo'... |
docs/src/app/components/pages/components/Stepper/VerticalNonLinearStepper.js | lawrence-yu/material-ui | import React from 'react';
import {
Step,
Stepper,
StepButton,
StepContent,
} from 'material-ui/Stepper';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButton from 'material-ui/FlatButton';
/**
* A basic vertical non-linear implementation
*/
class VerticalNonLinear extends React.Component {... |
hw7-frontend/src/components/article/newArticle.js | brendazhao/comp531 | import React from 'react'
import {connect} from 'react-redux'
import { addNewArticle } from './articleActions'
//Add a new article which the contents are from the textarea.
const NewArticle = ({user,dispatch}) => {
let newArticleImage
let newArticleText
const handleImageChange=(event)=>{
... |
src/components/Todos.js | maxleiko/react-es7 | require('normalize.css');
require('styles/Todos.css');
import React from 'react';
const ENTER_KEY = 13;
/**
*
*/
class TodosComponent extends React.Component {
static defaultProps = {
todos: [],
value: null
}
constructor(props) {
super(props);
this.state = {
todos: props.todos,
... |
src/components/Contribute/Submit.js | ant-design/scaffold-market | import React from 'react';
import { Select, Button, Input, Form, Upload, Icon, Progress, Tooltip, message } from 'antd';
import { FormattedMessage } from 'react-intl';
import styles from './Submit.less';
const FormItem = Form.Item;
const { Dragger } = Upload;
function Submit({ repo, dispatch, form, loading, intl }) {... |
src/React/Widgets/SelectionEditorWidget/index.js | Kitware/paraviewweb | import React from 'react';
import PropTypes from 'prop-types';
import WidgetTypes from './types';
export default function render(props) {
const SelectionWidget =
WidgetTypes[props.selection ? props.selection.type : 'empty'];
return <SelectionWidget {...props} />;
}
render.propTypes = {
selection: PropTypes... |
src/routes/app/routes/ui/routes/lists/components/Chat.js | ahthamrin/kbri-admin2 | import React from 'react';
// import MobileTearSheet from '../../../MobileTearSheet';
import Avatar from 'material-ui/Avatar';
import {List, ListItem} from 'material-ui/List';
import Subheader from 'material-ui/Subheader';
import Divider from 'material-ui/Divider';
import CommunicationChatBubble from 'material-ui/svg-i... |
node_modules/semantic-ui-react/src/elements/Image/ImageGroup.js | mowbell/clickdelivery-fed-test | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
SUI,
} from '../../lib'
/**
* A group of images.
*/
function ImageGroup(props) {
const { children, className, size } = props
const classes = cx('u... |
src/scenes/home/termsOfService/termsOfService.js | OperationCode/operationcode_frontend | import React from 'react';
import Section from 'shared/components/section/section';
const Terms = () => (
<Section title="Terms of Service" theme="white">
<p>
<i>Last updated: September 23, 2017.</i>
</p>
<p>
Please read these Terms of Service ("Terms", "Terms of Service") car... |
src/pages/login/page.js | danielmana/tribal-rewards-store | import React from 'react';
import { browserHistory } from 'react-router';
import RaisedButton from 'material-ui/RaisedButton';
export default class LoginPage extends React.Component {
login() {
browserHistory.push('/home');
}
render() {
return (
<div>
<RaisedButton
label="Log... |
webpack/components/RuleSeverity/index.js | theforeman/foreman_openscap | import React from 'react';
import PropTypes from 'prop-types';
import SeverityCritical from './i_severity-critical.svg';
import SeverityHigh from './i_severity-high.svg';
import SeverityMedium from './i_severity-med.svg';
import SeverityLow from './i_severity-low.svg';
import SeverityUnknown from './i_unknown.svg';
i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.