path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js | joopand/presensi | import React from 'react'
import { reduxForm } from 'redux-form'
export const fields = []
const validate = (values) => {
const errors = {}
return errors
}
type Props = {
handleSubmit: Function,
fields: Object,
}
export class <%= pascalEntityName %> extends React.Component {
props: Props;
defaultProps = ... |
app/app.js | dijahmac/JobWeasel-FrontEnd | import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter, Switch, Route } from 'react-router-dom';
import '!file-loader?name=[name].[ext]!./favicon.ico';
import '!file-loader?name=[name].[ext]!./manifest.json';
import Home from 'containers/Home';
import About from 'containers/About';
import... |
src/navbar.js | kngroo/Kngr | import React, { Component } from 'react';
import { Link, IndexLink } from 'react-router';
require('./styles/navbar.scss');
export default class Navbar extends Component {
render() {
return (
<div id="navbar">
<div className="navbar-spacer"></div>
<nav className="navbar">
<div cla... |
app/javascript/mastodon/features/search/index.js | clworld/mastodon | import React from 'react';
import SearchContainer from 'mastodon/features/compose/containers/search_container';
import SearchResultsContainer from 'mastodon/features/compose/containers/search_results_container';
const Search = () => (
<div className='column search-page'>
<SearchContainer />
<div className='... |
packages/slate-react/test/rendering/fixtures/custom-block.js | 6174/slate | /** @jsx h */
import React from 'react'
import h from '../../helpers/h'
export const schema = {
nodes: {
code: (props) => {
return (
React.createElement('pre', props.attributes,
React.createElement('code', {}, props.children)
)
)
}
}
}
export const state = (
<state... |
src/parser/shaman/enhancement/modules/features/Checklist/Component.js | fyruna/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import Checklist from 'parser/shared/modules/features/Checklist';
import PreparationRule from 'parser/shared/modules/features/Checklist/PreparationRule';
import Rule from 'parser/shared/modules/features/Checklist/Rule';
import Requirement from 'parser/share... |
webpack/JobWizard/steps/AdvancedFields/AdvancedFields.js | adamruzicka/foreman_remote_execution | import React from 'react';
import PropTypes from 'prop-types';
import { useSelector } from 'react-redux';
import { Form } from '@patternfly/react-core';
import {
selectEffectiveUser,
selectAdvancedTemplateInputs,
selectTemplateInputs,
} from '../../JobWizardSelectors';
import {
EffectiveUserField,
TimeoutToKi... |
src/components/ReplEntries.js | antonyr/Mancy | import React from 'react';
import _ from 'lodash';
import md5 from 'md5';
import ReplEntry from './ReplEntry';
export default class ReplEntries extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className='repl-entries'>
{
_.map(this.props.entr... |
frontend/src/index.js | McMenemy/awsAutoDeploy | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, browserHistory } from 'react-router';
import App from './components/App';
ReactDOM.render((
<Router history={browserHistory}>
<Route path="/" component={App} />
</Router>
), document.getElementById('root'),
);
|
react-dev/containers/posts_index.js | 575617819/yanghang | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { PostIndexItem } from '../components/post_index_item';
import { fetchPosts, fetchSiteInfo } from '../actions/index';
class PostsIndex extends Component {
componentWillMount() {
this.props.fetchPosts();
this.props.fetc... |
internal/webpack/withServiceWorker/offlinePageTemplate.js | sergiokopplin/react-universally | /**
* This is used by the HtmlWebpackPlugin to generate an html page that we will
* use as a fallback for our service worker when the user is offline. It will
* embed all the required asset paths needed to bootstrap the application
* in an offline session.
*/
import React from 'react';
import { renderToStaticMar... |
examples/CardSimple.js | mattBlackDesign/react-materialize | import React from 'react';
import Card from '../src/Card';
import Col from '../src/Col';
export default
<Col m={6} s={12}>
<Card className='blue-grey darken-1' textClassName='white-text' title='Card title' actions={[<a href='#'>This is a link</a>]}>
I am a very simple card.
</Card>
</Col>;
|
src/pages/repos.js | giupo/prodomo | 'use strict';
import React from 'react';
export default React.createClass({
displayName : 'ReposPage',
render () {
/* jshint ignore:start */
return <h1>repos page</h1>;
/* jshint ignore:end */
}
});
|
src/app/components/cookie-policy.js | pashist/soundcloud-like-player | import React from 'react';
export default class CookiePolicy extends React.Component {
render() {
return (
<div className="cookie-policy">
<a href="https://soundcloud.com/pages/cookies" target="_blank">Cookie policy</a>
</div>
)
}
} |
app/modules/agile_client/src/js/containers/DevTools.js | curcuz/agile-ui-berlindemo | import React from 'react'
import { createDevTools } from 'redux-devtools'
// Monitors are separate packages, and you can make a custom one
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'
import SliderMonitor from 'redux-slider-monitor'
// createDevTools takes ... |
nativeExample/reactNative/index.ios.js | zhanglizhao/react-native-knowledge | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class reactNative extends Component {
render() {
return (
<View style={styles.contain... |
React_Redux/weather_search/src/components/app.js | awg3/LearnCodeImprove | import React from 'react';
import { Component } from 'react';
import SearchBar from '../containers/search_bar';
import WeatherList from '../containers/weather_list';
import Header from '../components/header';
import Footer from '../components/footer';
export default class App extends Component {
render() {
retur... |
src/routes/system/User/ModalForm.js | daizhen256/i5xwxdoctor-web | import React from 'react'
import PropTypes from 'prop-types'
import { Form, Input, InputNumber, Radio, Modal, Icon } from 'antd'
import { validPhone } from '../../../utils/utilsValid'
const FormItem = Form.Item
const formItemLayout = {
labelCol: {
span: 6
},
wrapperCol: {
span: 14
}
}
const ModalForm... |
app/components/Charts/Donut/index.js | prudhvisays/newsb | import React from 'react';
import './Donut.css';
let donut;
class DonutChart extends React.Component { //eslint-disable-line
constructor(props) {
super(props);
this.state = {
data: [
{ label: 'Target', value: 100 },
{ label: 'Total', value: 0 },
]
}
this.targets = this.targ... |
src/svg-icons/content/report.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentReport = (props) => (
<SvgIcon {...props}>
<path d="M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM12 17.3c-.72 0-1.3-.58-1.3-1.3 0-.72.58-1.3 1.3-1.3.72 0 1.3.58 1.3 1.3 0 .72-.58 1.3-1.3... |
src/elements/title.js | bokuweb/re-bulma | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from '../../build/styles';
export default class Title extends Component {
static propTypes = {
children: PropTypes.any,
className: PropTypes.string,
size: PropTypes.oneOf([
'is1',
'is2',
'is3',
... |
src/components/options/OptionsFeedbackText.js | m0sk1t/react_email_editor | import React from 'react';
const OptionsFeedbackText = ({ block, language, onPropChange }) => {
const fontSize = block.options.container.fontSize.match(/\d+/)?block.options.container.fontSize.match(/\d+/)[0]: '16';
return (
<div>
<div>
<label>{language["Custom style"]}: <input type="checkbox" checked={block... |
fields/types/cloudinaryimage/CloudinaryImageFilter.js | Ftonso/keystone | import classNames from 'classnames';
import React from 'react';
import { SegmentedControl } from 'elemental';
var PasswordFilter = React.createClass({
getInitialState () {
return {
checked: this.props.value || true,
};
},
toggleChecked (checked) {
this.setState({
checked: checked,
});
},
renderT... |
examples/autocomplete/src/App-Multi-Index.js | algolia/react-instantsearch | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Autosuggest from 'react-autosuggest';
import {
InstantSearch,
Configure,
Index,
Highlight,
connectAutoComplete,
} from 'react-instantsearch-dom';
import algoliasearch from 'algoliasearch/lite';
const searchClient = algoliase... |
application/components/user/orders/index.js | ronanamsterdam/squaredcoffee | import React, { Component } from 'react';
import { StyleSheet, Text, View } from 'react-native';
import Button from 'react-native-button'
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import AppActions from '../../../actions';
import styles from '../../../statics/styles';
class... |
src/containers/Root.js | prashantpawar/blockapps-js-tutorial | import React from 'react'
import { Provider } from 'react-redux'
import { Router } from 'react-router'
export default class Root extends React.Component {
static propTypes = {
history: React.PropTypes.object.isRequired,
routes: React.PropTypes.element.isRequired,
store: React.PropTypes.object.isRequired
... |
app/main.js | billyct/fil | import React from 'react';
import {Provider} from 'react-redux';
import store from 'store';
import App from 'components/App';
React.render(
<Provider store={store}>
{() => <App />}
</Provider>,
document.body
);
|
app/javascript/mastodon/containers/mastodon.js | alarky/mastodon | import React from 'react';
import { Provider } from 'react-redux';
import PropTypes from 'prop-types';
import configureStore from '../store/configureStore';
import {
updateTimeline,
deleteFromTimelines,
refreshHomeTimeline,
connectTimeline,
disconnectTimeline,
} from '../actions/timelines';
import { showOnboa... |
src/components/App.js | hailin1008/react-exercise | import React from 'react'
import AppointmentTable from '../containers/AppointmentTable'
const App = () => (
<AppointmentTable/>
)
export default App |
src/components/example.js | richard-lopes/webpack-example | import React from 'react';
import connectToStores from 'alt/utils/connectToStores';
import DummyStore from 'stores/dummyStore';
import DummyActions from 'actions/dummyActions';
@connectToStores
class Example extends React.Component {
constructor(props) {
super(props);
this.state = {
name: props.name
... |
src/Components/SubPage.js | ashwinath/personal-website-2.0 | import React, { Component } from 'react';
import PageDetails from '../Components/PageDetails';
import PropTypes from 'prop-types';
class SubPage extends Component {
render() {
return (
<div className="col-xs-9 main-section">
<PageDetails pageName={this.props.pageName}/>
{this.props.children... |
src/One.js | ekazakov/catcher | import React, { Component } from 'react';
export class One extends Component {
render() {
return <div>
<div>One</div>
<div>{this.props.children}</div>
</div>;
}
}
|
src/components/Projects.js | jasonrundell/jasonrundell-react-site-2017 | import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { markPostAsRread } from '../actions/markPostAsRread'
import { READ, UNREAD } from '../constants'
import './Projects.css';
const ProjectPostLinkList = ({ projects = () => {} }) => {
return <ul>
{ pro... |
examples/shared-root/app.js | tmbtech/react-router | import React from 'react';
import { history } from 'react-router/lib/HashHistory';
import { Router, Route, Link } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
<p>
This illustrates how routes can share UI w/o sharing the url,
when routes have no pa... |
blueocean-material-icons/src/js/components/svg-icons/navigation/chevron-left.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const NavigationChevronLeft = (props) => (
<SvgIcon {...props}>
<path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/>
</SvgIcon>
);
NavigationChevronLeft.displayName = 'NavigationChevronLeft';
NavigationChevronLeft.muiName = 'SvgIcon';
export... |
src/components/singleHeading/index.js | nickfranciosi/terminal-frontend | import React from 'react';
import ScrollListener from '../scrollListener';
import ScrollAnimate from '../scrollAnimate';
import styles from './style.module.css';
class SingleHeading extends React.Component {
constructor(props) {
super(props);
this.state = {
animate: false,
};
this.triggerAnim... |
storybook/stories/button.story.js | 3846masa/mastodon | import React from 'react';
import { action, storiesOf } from '@kadira/storybook';
import Button from 'mastodon/components/button';
storiesOf('Button', module)
.add('default state', () => (
<Button text="submit" onClick={action('clicked')} />
))
.add('secondary', () => (
<Button secondary text="submit" on... |
src/scenes/Layout/components/Representation/components/Week/Week.js | czonios/schedule-maker-app | import React from 'react';
import './week.css';
import { Grid, Header } from 'semantic-ui-react';
import dateService from '../../../../../../services/dates/dateService';
import WeekdayColumns from '../WeekDayColumns/WeekdayColumns';
import DayOfWeek from './components/DayOfWeek/DayOfWeek';
import PropTypes from 'prop-t... |
src/organizer/workshops/create.js | GrayTurtle/rocket-workshop | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import DatePicker from 'react-datepicker';
import { firebaseConnect, isLoaded, isEmpty } from 'react-redux-firebase';
import { connect } from 'react-redux';
import { compose } from 'redux';
import moment from 'moment';
import './create.css';
... |
src/widgets/ContentBanner/ReactionNumbers.js | mydearxym/mastani | import React from 'react'
import { prettyNum, numberWithCommas } from '@/utils/helper'
import {
NumbersInfo,
NumberSection,
NumberDivider,
NumberTitle,
NumberItem,
} from './styles/reaction_numbers'
const ReactionNumbers = ({ data: { views, collectsCount, upvotesCount } }) => (
<NumbersInfo>
<NumberSe... |
app/javascript/mastodon/components/autosuggest_emoji.js | tootcafe/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import unicodeMapping from '../features/emoji/emoji_unicode_mapping_light';
import { assetHost } from 'mastodon/utils/config';
export default class AutosuggestEmoji extends React.PureComponent {
static propTypes = {
emoji: PropTypes.object.isRequire... |
src/templates/product-page.js | svj2291/svj2291.github.io | import React from 'react'
import Features from '../components/Features'
import Testimonials from '../components/Testimonials'
import Pricing from '../components/Pricing'
export const ProductPageTemplate = ({
image,
title,
heading,
description,
intro,
main,
testimonials,
fullImage,
pricing,
}) => (
... |
src/ui/components/views/Offline.js | scrollback/pure | /* @flow */
import React, { Component } from 'react';
import Radium from 'radium';
import shallowCompare from 'react-addons-shallow-compare';
import Colors from '../../Colors';
import Page from './Page/Page';
const styles = {
container: {
padding: 16,
backgroundColor: Colors.white,
},
image: {
marginLeft: 16... |
fields/types/cloudinaryimage/CloudinaryImageFilter.js | joerter/keystone | import React from 'react';
import { SegmentedControl } from 'elemental';
var PasswordFilter = React.createClass({
getInitialState () {
return {
checked: this.props.value || true,
};
},
toggleChecked (checked) {
this.setState({
checked: checked,
});
},
render () {
const options = [
{ label: 'Is... |
src/App.js | laurids-reichardt/Currency-Exchange-Rates | // library imports
import React, { Component } from 'react';
import { Divider, Container, Grid, Icon, Segment } from 'semantic-ui-react';
import axios from 'axios';
// component imports
import Header from './components/Header';
import InfoText from './components/InfoText';
import AmountInput from './components/AmountI... |
src/components/Layout/Layout.js | renegens/blog | // @flow strict
import React from 'react';
import Helmet from 'react-helmet';
import { withPrefix } from 'gatsby';
import type { Node as ReactNode } from 'react';
import { useSiteMetadata } from '../../hooks';
import styles from './Layout.module.scss';
type Props = {
children: ReactNode,
title: string,
descripti... |
node_modules/react-bootstrap/es/Jumbotron.js | newphew92/newphew92.github.io | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/encoded/static/components/browse/SearchView.js | hms-dbmi/fourfront | 'use strict';
import React from 'react';
import memoize from 'memoize-one';
import _ from 'underscore';
import url from 'url';
import { getAbstractTypeForType, getAllSchemaTypesFromSearchContext } from '@hms-dbmi-bgm/shared-portal-components/es/components/util/schema-transforms';
import { SearchView as CommonSearchVi... |
app/components/Header/index.js | AnhHT/react-boilerplate | import React from 'react';
import { FormattedMessage } from 'react-intl';
import A from './A';
import Img from './Img';
import NavBar from './NavBar';
import HeaderLink from './HeaderLink';
import Banner from './banner.jpg';
import messages from './messages';
class Header extends React.Component { // eslint-disable-l... |
src/parser/hunter/marksmanship/CHANGELOG.js | FaideWW/WoWAnalyzer | import React from 'react';
import { Putro } from 'CONTRIBUTORS';
import SpellLink from 'common/SpellLink';
import SPELLS from 'common/SPELLS';
export default [
{
date: new Date('2018-11-20'),
changes: <> Added a simple <SpellLink id={SPELLS.PRECISE_SHOTS.id} /> module. </>,
contributors: [Putro],
},
... |
exercises/event/solution/app.js | kohei-takata/learnyoureact | import React from 'react';
import ReactDOM from 'react-dom';
import TodoBox from './views/index.jsx';
let data = JSON.parse(document.getElementById('initial-data').getAttribute('data-json'));
ReactDOM.render(<TodoBox data={data} />, document.getElementById("app")); |
stories/resources/Card.js | jquense/react-big-calendar | import React from 'react'
const propTypes = {}
function Card({ children, className, style }) {
return (
<div className={`${className || ''} card`} style={style}>
{children}
</div>
)
}
Card.propTypes = propTypes
export default Card
|
src/Input/Ticker/Ticker.js | skyiea/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import styles from './Ticker.scss';
const ArrowUp = () =>
<svg width="10" height="4" viewBox="0 0 10 4" xmlns="http://www.w3.org/2000/svg">
<path d="M9 4L5 0 1 4" stroke="#3899EC" fill="none" fillRule="evenodd"/>... |
YEAR 3/SEM 1/MOBILE/mobile_exam_prep/screens/Experiment/SelfProfile/index.js | Zephyrrus/ubb | import React from 'react'
import PropTypes from 'prop-types'
import contactData from '../../../mocks/contact.json'
import Profile from './Profile'
const ProfileScreen = () => <Profile {...contactData} />
/*ProfileScreen.navigationOptions = () => ({
header: null,
})*/
ProfileScreen.navigationOptions = () => ({
... |
src/app/components/ui/SuperBoxGallery.js | backpackcoder/world-in-flames | import React from 'react'
(function ($) {
$.fn.SuperBox = function (options) {
var superbox = $('<div class="superbox-show"></div>'),
superboximg = $('<img src="" class="superbox-current-img"><div id="imgInfoBox" class="superbox-imageinfo inline-block"> <h1>Image Title</h1><span><p><em>http://imagelink.... |
docs/src/components/example-step.js | adisuryadi/nuclear-js | import React from 'react'
export default React.createClass({
render() {
var className = 'example-step';
let push = this.props.push
if (push === 'right') {
className += ' example-step__push-right'
}
return <div className={className}>
{this.props.children}
</div>
}
})
|
client/js/modules/entries/components/NoArticleSelectedTeaser.js | fdietz/whistler_news_reader | import React from 'react';
import LayoutHeader from '../../../layouts/LayoutHeader';
import LayoutContent from '../../../layouts/LayoutContent';
import LayoutContainer from '../../../layouts/LayoutContainer';
import Teaser from '../../../components/Teaser';
import { EarthSVGIcon } from '../../../components/SVGIcon';
... |
src/index.js | gibbok/react-redux-weather-app | // flow
import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import store from './app/store'
import Root from './app/Root'
render(
<Root store={store} />,
document.getElementById('root')
)
|
src/muiThemeable.js | Syncano/material-ui | import React from 'react';
import getMuiTheme from './styles/getMuiTheme';
function getDisplayName(WrappedComponent) {
return WrappedComponent.displayName || WrappedComponent.name || 'Component';
}
export default function muiThemeable(WrappedComponent) {
const MuiComponent = (props, {muiTheme = getMuiTheme()}) =>... |
src/parser/deathknight/frost/modules/features/checklist/Component.js | sMteX/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Checklist from 'parser/shared/modules/features/Checklist';
import Rule from 'parser/shared/modules/features/Checklist/Rule';
import Requirement from 'parser/shared/modules... |
js/containers/ApplicationTabs/Home/Tabs/Tab3/index.js | Seedstars/reactnative-mobile-app-base | import React, { Component } from 'react';
import {
Text,
View,
TouchableOpacity,
ScrollView
} from 'react-native';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import t from 'tcomb-form-native';
import PaymentModal from '../../../../../components/PaymentModal';
imp... |
clients/packages/admin-client/src/pages/admin/container.js | nossas/bonde-client | import React from 'react'
import { Switch } from 'react-router-dom'
// Routes
import BetaBotPage from './bot'
import CommunityCreatePage from './communities/create'
import SidebarContainer from './sidebar'
import PrivateRoute from './private-route'
const Logged = () => {
return (
<Switch>
<PrivateRoute
... |
src/components/Blog/List/BlogCard.js | lzm854676408/big-demo | import React, { Component } from 'react';
import {hashHistory} from 'react-router';
class BlogCard extends Component {
handleClick(){
this.context.router.push(`blog/${this.props.url}`);
}
render(){
let styles={
root:{
width:'90%',
height:'100px',
margin:'10px auto',
... |
src/components/playerComponent/playerComponent.js | craigbilner/quizapp | 'use strict';
import React from 'react';
import radium from 'radium';
import style from '../playerComponent/playerStyle';
import {status} from '../../enums/gameEnums';
class PlayerComponent extends React.Component {
constructor(props) {
super(props);
}
canAnswer() {
return this.props.player.get('player... |
docs/app/Examples/collections/Breadcrumb/Variations/BreadcrumbExampleBigSize.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Breadcrumb } from 'semantic-ui-react'
const BreadcrumbExampleBigSize = () => (
<Breadcrumb size='big'>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider icon='right chevron' />
<Breadcrumb.Section link>Registration</Breadcrumb.Section>
<Breadcru... |
src/svg-icons/action/speaker-notes-off.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSpeakerNotesOff = (props) => (
<SvgIcon {...props}>
<path d="M10.54 11l-.54-.54L7.54 8 6 6.46 2.38 2.84 1.27 1.73 0 3l2.01 2.01L2 22l4-4h9l5.73 5.73L22 22.46 17.54 18l-7-7zM8 14H6v-2h2v2zm-2-3V9l2 2H6zm14... |
src/app/components/Navigation/Navigation.js | richardkall/react-starter | import React from 'react';
import { NavLink } from 'react-router-dom';
import style from './Navigation.css';
function Navigation() {
return (
<nav>
<ul className={style.list}>
<li className={style.item}>
<NavLink
className={style.link}
activeClassName={style.activ... |
src/js/routes.js | gollodev/twitchApp | import React from 'react';
import { Route, IndexRoute, Redirect } from 'react-router';
import App from './components/App';
import ListStreamsContainer from './containers/ListStreamsContainer/ListStreamsContainer';
import NotFoundView from './views/NotFoundView';
export default (
<Route path="/" component={App}>
... |
app/javascript/mastodon/components/status_list.js | Kirishima21/mastodon | import { debounce } from 'lodash';
import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import StatusContainer from '../containers/status_container';
import ImmutablePureComponent from 'react-immutable-pure-component';
import LoadGap from './load_gap... |
src/admin/client/modules/orders/listHead/components/search.js | cezerin/cezerin | import React from 'react';
import messages from 'lib/text';
import TextField from 'material-ui/TextField';
export default ({ value, setSearch }) => {
return (
<TextField
className="searchField"
value={value}
onChange={(e, v) => {
setSearch(v);
}}
hintText={messages.orders_search}
underlineShow... |
src/modules/categories/components/CategoryPlaylists.js | paramsinghvc/harp | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { getSelectedCategoryDetails } from '../CategoriesActions';
import PlaylistItem from '../../../components/playlist-item/PlaylistItem';
require('./CategoryPlaylists.scss');
@connect((sta... |
examples/todo/js/components/TodoTextInput.js | michaelchum/relay | /**
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNES... |
puzzle-frontend/src/index.js | nathandaddio/puzzle_app | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import { Provider } from 'react-redux'
import { createStore, applyMiddleware, compose } from 'redux'
import thunkMiddleware from 'redux-thunk'
import {... |
docs/src/app/components/pages/components/Dialog/Page.js | manchesergit/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 dialogReadmeText from './README';
import DialogExampleSimple from './Exam... |
src/Row.js | rapilabs/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import CustomPropTypes from './utils/CustomPropTypes';
const Row = React.createClass({
propTypes: {
/**
* You can use a custom element for this component
*/
componentClass: CustomPropTypes.elementType
},
getDefaultProps() {
re... |
webpack/scenes/RedHatRepositories/components/RecommendedRepositorySetsToggler.js | johnpmitsch/katello | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { translate as __ } from 'foremanReact/common/I18n';
import { Switch, Icon, FieldLevelHelp } from 'patternfly-react';
import './RecommendedRepositorySetsToggler.scss';
const RecommendedRepositorySetsToggler = ({... |
app/components/Navbar/NavDropdownMenu/index.js | josueorozco/parlay | import React from 'react';
import classNames from 'classnames';
/*
|--------------------------------------------------------------------------
| NavDropdownMenu
|--------------------------------------------------------------------------
|
| Stateless component
|
*/
const NavDropdownMenu = ({ className = '', children ... |
src/components/DropdownInput.js | jeremyfry/init-tracker | import React from 'react';
import PropTypes from 'prop-types';
const DropdownInput = (props) => {
const handleChange = (e) => {
props.onChange(props.name, e.target.value);
};
const options = props.options.map(option => <option>{option}</option>);
return (
<label className="add-player__labe... |
pages/index.js | inthegully/reactPortfolio | import React from 'react';
import { Link } from 'react-router';
import { prefixLink } from 'gatsby-helpers';
import Helmet from 'react-helmet';
import { config } from 'config';
import '../css/index.css';
import LogoHouse from '../components/LogoHouse/LogoHouse';
import About from '../components/About/About';
import Pro... |
client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/customs-step/item-row-header.js | Automattic/woocommerce-services | /**
* External dependencies
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { localize } from 'i18n-calypso';
import { ExternalLink, Tooltip } from '@wordpress/components';
/**
* Internal dependencies
*/
import { getShippingLabel } from 'woocommerce/w... |
app/components/FollowUp.js | oroszms/nhshd17 | // @flow
import React, { Component } from 'react';
import { Link, hashHistory } from 'react-router';
import RaisedButton from 'material-ui/RaisedButton';
import Paper from 'material-ui/Paper';
import TextField from 'material-ui/TextField';
import Slider from 'material-ui/Slider';
import Toggle from 'material-ui/Toggle'... |
node_modules/react-router/es/Route.js | rralian/steckball-react | import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement } from './RouteUtils';
import { component, components } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes,
string = _React$PropTypes.string,
func = _React$PropTypes.func;
/**
* A <Route> is use... |
app/javascript/mastodon/components/hashtag.js | masto-donte-com-br/mastodon | // @ts-check
import React from 'react';
import { Sparklines, SparklinesCurve } from 'react-sparklines';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Permalink from './permalink';
import ShortNumber from 'mastodon/co... |
benchmarks/dom-comparison/src/implementations/emotion/View.js | risetechnologies/fela | /* eslint-disable react/prop-types */
import { css } from 'emotion';
import React from 'react';
class View extends React.Component {
render() {
const { style, ...other } = this.props;
return <div {...other} className={css(viewStyle, ...style)} />;
}
}
const viewStyle = {
alignItems: 'stretch',
borderW... |
JS Web/ReactJS/Final Project/zoo-market/src/routes.js | mitaka00/SoftUni | import { Route, Switch } from 'react-router-dom'
import React from 'react'
import NotFoundPage from './components/common/NotFoundPage'
import StartingPage from './components/common/StartingPage'
import HomePage from './components/common/HomePage'
import AddPost from './components/postComponents/AddPost'
import MyPosts... |
app/components/IssueIcon/index.js | houlematt/matt-site | import React from 'react';
function IssueIcon(props) {
return (
<svg
height="1em"
width="0.875em"
className={props.className}
>
<path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v... |
vendor/assets/components/react-autosuggest/examples/src/Footer/Footer.js | UMNLibraries/ikidowinan | require('./Footer.less');
import React, { Component } from 'react';
export default class Footer extends Component {
render() {
return (
<div className="footer">
<img src="https://gravatar.com/avatar/e56de06f4b56f6f06e4a9a271ed57e26?s=32"
alt="Misha Moroshko" />
<span>
... |
examples/basic/components/Home.js | rackt/redux-simple-router | import React from 'react'
import { connect } from 'react-redux'
import { increase, decrease } from '../actions/count'
function Home({ number, increase, decrease }) {
return (
<div>
Some state changes:
{number}
<button onClick={() => increase(1)}>Increase</button>
<button onClick={() => de... |
src/widgets/AlertWidget.js | domoticz/Reacticz | import React, { Component } from 'react';
import GenericWidget from './helpers/GenericWidget';
import './AlertWidget.css';
class AlertWidget extends Component {
render() {
return (
<GenericWidget class={'AlertWidget level' + this.props.level} icon="warning"
value1={this.props.value} {...this.pro... |
src/components/CodeSnippet/CodeSnippet.js | carbon-design-system/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import classNames from 'classnames';
import ChevronDown16 from ... |
public/src/components/application/ApplicationScreen.js | sio-iago/essential-plaform-back | // React
import React, { Component } from 'react';
// Redux actions
import { connect } from 'react-redux';
// Navbar
import Menu from './../menu/Menu';
// API Methods
const api = require('../../api/endpoints');
// The store and reducer
const store = require('../../store/storeConfig').store;
// Authorization verifi... |
examples/js/column-filter/filter-style.js | AllenFang/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 = [];
const qualityType = {
0: 'good',
1: 'bad',
2: 'unknown'
};
function addProducts(quantity) {
const startId = products.length;
cons... |
node_modules/react-router/es6/RoutingContext.js | HasanSa/hackathon | import React from 'react';
import RouterContext from './RouterContext';
import warning from './routerWarning';
var RoutingContext = React.createClass({
displayName: 'RoutingContext',
componentWillMount: function componentWillMount() {
process.env.NODE_ENV !== 'production' ? warning(false, '`RoutingContext` has... |
resources/apps/frontend/src/pages/members/show.js | johndavedecano/PHPLaravelGymManagementSystem | import React from 'react';
import get from 'lodash/get';
import {
Card,
CardBody,
Form,
FormGroup,
Input,
Label,
Row,
Col,
} from 'reactstrap';
import {Link} from 'react-router-dom';
import {showMember} from 'requests/members';
import Breadcrumbs from 'components/Breadcrumbs';
import Loader from 'compo... |
packages/forms/src/UIForm/fields/Button/Button.component.js | Talend/ui | import PropTypes from 'prop-types';
import React from 'react';
import FieldTemplate from '../FieldTemplate';
import SingleButton from './SingleButton.component';
import { generateDescriptionId, generateErrorId } from '../../Message/generateId';
export default function Button(props) {
const { id, errorMessage, isValid... |
angular/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | DeegC/Zeidon-Northwind | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/layouts/CoreLayout/CoreLayout.js | Kelvinmijaya/taralite-starter-kit | import React from 'react'
import './assets/normalize.css'
import './assets/CoreLayout.css'
import { Header } from '../../common/Header/Header'
export const CoreLayout = ({ children }) => (
<div className="app">
<Header />
{children}
</div>
)
CoreLayout.propTypes = {
children : React.PropTy... |
websites/svef.is/src/app/middlewares/react-async-component/index.js | svef/www | import React from 'react'
import {
AsyncComponentProvider,
createAsyncContext,
} from 'react-async-component'
const async = () => session => {
const asyncContext = createAsyncContext()
const rehydrateState =
typeof window === 'undefined'
? undefined
: window.REACT_ASYNC_COMPONENT_STATE
sessi... |
server/dashboard/js/components/BenchNav.react.js | moigagoo/mzbench | import React from 'react';
class BenchNav extends React.Component {
render() {
const tabs = {
overview: "Overview",
scenario: "Scenario",
reports: "Reports",
logs: "Logs"
};
return (
<ul className="nav nav-tabs bench-nav">
... |
src/server.js | kutou/react-starter-kit | /**
* 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 'babel-polyfill';
import path from 'path';
import e... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.