path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
src/routes/Home/components/HomeView.js | Dimitrievskislavcho/funfunfuncReduxCI | 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
|
docs/src/pages/components/progress/CustomizedProgressBars.js | lgollut/material-ui | import React from 'react';
import { makeStyles, withStyles } from '@material-ui/core/styles';
import CircularProgress from '@material-ui/core/CircularProgress';
import LinearProgress from '@material-ui/core/LinearProgress';
const BorderLinearProgress = withStyles((theme) => ({
root: {
height: 10,
borderRadiu... |
src/js/views/users/Search.js | npirotte/catchapp | import { Container, animation, UI } from 'touchstonejs';
import React from 'react';
import Sentry from 'react-sentry';
import events from 'events';
import SearchStore from '../../stores/SearchStore';
import UsersList from '../../components/UsersList';
var PullToRefreshContainer = require('../../components/PullToRefre... |
src/components/icons/bell.js | ipfs-shipyard/peerpad | import React from 'react'
export default ({ className, style }) => (
<svg width='13' height='14' viewBox='0 0 13 14' xmlns='http://www.w3.org/2000/svg' className={className} style={style}>
<g strokeWidth='1' strokeLinecap='round' fill='none'>
<path d='M0.5,11.5 C0.5,11.5 4.4593099,11.2023926 6.5,11.2023926... |
reactjs/budget/client/components/LoginControl/LogoutButton.js | Kevin-Huang-NZ/notes | import React, { Component } from 'react';
class LogoutButton extends Component {
render() {
return (
<button type="button" onClick={this.props.onClick} className="btn btn-warning">
Logout
</button>
);
}
}
export default LogoutButton; |
app/components/ResumeExperianceSection/index.js | yagneshmodh/personalApplication | import React from 'react';
import Title from '../Title/index';
import baseStyle from '../../common/Style/baseStyle.css';
// import Paper from 'material-ui/Paper';
import SwipeWrapper from '../../containers/SwipeWrapper/index';
import ProjectCard from '../ProjectCard/index';
const PortfolioSection = (() =>
<div class... |
examples/todo/src/components/Todo/Link/index.js | pspaulding/create-redux-module | import React from 'react';
const Link = ({active, children, setVisibilityFilter}) => {
if (active) {
return <span style={{color:'blue'}}>{children}</span>;
}
return (
<a href="#"
onClick={e => {
e.preventDefault();
setVisibilityFilter();
... |
src/components/certificate.js | ConnorAtherton/Sweet | import React from 'react'
export default class Certificate extends React.Component {
render() {
let classes = `List__item List__item--${this.props.status}`
let buttonText = {
'connected': 'Disconnect',
'disconnected': 'Connect'
}[this.props.status]
return (
<li className={classes}>... |
src/components/intro.js | bsdlpgames/bsdlpgames.github.io | import React from 'react'
import Hero from './hero'
export default () => (
<Hero title='FPS Player and Software Engineer'/>
)
|
src/index.js | philholden/component-boilerplate | import React from 'react'
import { render } from 'react-dom'
import { App } from './App'
render(<App />, document.getElementById('root'))
module.exports = App
|
components/MainSection.react.js | pierreavizou/universal-routed-flux-demo | import React from 'react';
import TodoActions from '../flux-infra/actions/TodoActions';
import TodoItem from './TodoItem.react';
var ReactPropTypes = React.PropTypes;
export default class MainSection extends React.Component {
constructor(props) {
super(props);
}
render(){
var allTodos = th... |
src/components/ui/Button.js | BrownEPTech/brown-ep-startup-ideas-app | /**
* Buttons
*
<Button text={'Server is down'} />
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Button } from 'react-native-elements';
// Consts and Libs
import { AppColors, AppFon... |
src/images/Icons/hamMenu1.js | sourabh-garg/react-starter-kit | import React from 'react';
export default function hamMenu1(props) {
return (
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" enableBackground="new 0 0 64 64" xmlSpace="preserve" {...props}>
<g tr... |
src/svg-icons/av/games.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvGames = (props) => (
<SvgIcon {...props}>
<path d="M15 7.5V2H9v5.5l3 3 3-3zM7.5 9H2v6h5.5l3-3-3-3zM9 16.5V22h6v-5.5l-3-3-3 3zM16.5 9l-3 3 3 3H22V9h-5.5z"/>
</SvgIcon>
);
AvGames = pure(AvGames);
AvGames.dis... |
src/main.js | LogvinovLeon/Ceburilo | import React from 'react'
import App from './components/App';
import $ from 'jquery'
React.render(
<App/>,
document.getElementById('app')
);
if (typeof window !== 'undefined') {
window.React = React;
} |
client/components/Edit.js | mraq1234/mod11 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from './Edit.css';
export default class Edit extends Component {
checkEnter = (e) => {
if (e.key === 'Enter') {
this.finishEdit(e);
}
};
finishEdit = (e) => {
const value = e.target.value;
if (this.p... |
test/FormControlsSpec.js | jamon/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import FormControls from '../src/FormControls';
describe('Form Controls', function () {
describe('Static', function () {
it('renders a p element wrapped around the given value', function () {
const instance = ReactTestUtils.r... |
packages/xo-web/src/xo-app/index.js | vatesfr/xo-web | import Component from 'base-component'
import cookies from 'js-cookie'
import DocumentTitle from 'react-document-title'
import Icon from 'icon'
import Link from 'link'
import map from 'lodash/map'
import PropTypes from 'prop-types'
import React from 'react'
import Shortcuts from 'shortcuts'
import themes from 'themes'
... |
src/sentry/static/sentry/app/icons/icon-bitbucket.js | jean/sentry | import React from 'react';
import Icon from 'react-icon-base';
function IconBitbucket(props) {
return (
<Icon viewBox="0 0 32 32" {...props}>
<g id="icon-bitbucket" stroke="none" fill="currentColor">
<path d="M29.3673282,3.54600696 C29.1643282,3.25881969 28.9163282,3.01697779 28.6383282,2.80234309 ... |
node_modules/react-bootstrap/es/Clearfix.js | saltypaul/SnipTodo | 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/svg-icons/content/select-all.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentSelectAll = (props) => (
<SvgIcon {...props}>
<path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 ... |
src/rsg-components/Para/Para.spec.js | bluetidepro/react-styleguidist | import React from 'react';
import { ParaRenderer, styles } from './ParaRenderer';
const props = {
classes: classes(styles),
};
it('should render paragraph as a <div>', () => {
const actual = shallow(<ParaRenderer {...props}>Pizza</ParaRenderer>);
expect(actual).toMatchSnapshot();
});
it('should render paragraph ... |
packages/material/src/inputs/Image.js | wq/wq.app | import React from 'react';
import File from './File';
export default function Image(props) {
return <File accept="image/*" {...props} />;
}
|
src/components/search-page/SearchForm.js | AnisaIshmail/IdeaZone | // Using inline searchform instead
// import React, { Component } from 'react';
// class SearchForm extends Component {
// render() {
// return (
// <div>
// <header className="text-center clearfix">
// <h1>Find Project Ideas or Add an Idea<i className="fa fa-plus-circle float-right" dat... |
node_modules/react-bootstrap/es/NavDropdown.js | mohammed52/door-quote-automator | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from... |
src/components/AboutPage.js | codenamekt/reactive-boiler | import React from 'react';
import {Link} from 'react-router';
import '../styles/about-page.css';
// Since this component is simple and static, there's no parent container for it.
const AboutPage = () => {
return (
<div>
<h2 className="alt-header">About</h2>
<p>
This example app is part of the... |
src/parser/shaman/elemental/modules/talents/Ascendance.js | FaideWW/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatNumber, formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import EnemyInstances from 'parser/shared/modules/EnemyInstances';
import StatisticBox, { STATISTIC_ORD... |
app/scenes/Schedule/components/NowButton/index.js | Thinkmill/react-conf-app | // @flow
import React, { Component } from 'react';
import {
Animated,
StyleSheet,
Text,
TouchableWithoutFeedback,
} from 'react-native';
import LinearGradient from 'react-native-linear-gradient';
import theme from '../../../../theme';
import { lighten, darken } from '../../../../utils/color';
export default c... |
assets/js/NameOutput.js | jpsierens/webpack-boilerplate | import React from 'react';
export default class NameOutput extends React.Component {
render() {
return (
<div>
Hello {this.props.name}!
</div>
);
}
}
|
app-course-sync/views/RepositoryConfigurationView.js | globant-ui-rosario/progress-tracker | import React, { Component } from 'react';
class BootcampRepositoryConfigurationView extends Component {
render () {
return <div>Repository configuration</div>;
}
};
export default BootcampRepositoryConfigurationView;
|
docs/app/Examples/modules/Tab/MenuVariations/TabExampleTabularFalse.js | shengnian/shengnian-ui-react | import React from 'react'
import { Tab } from 'shengnian-ui-react'
const panes = [
{ menuItem: 'Tab 1', render: () => <Tab.Pane attached={false}>Tab 1 Content</Tab.Pane> },
{ menuItem: 'Tab 2', render: () => <Tab.Pane attached={false}>Tab 2 Content</Tab.Pane> },
{ menuItem: 'Tab 3', render: () => <Tab.Pane attac... |
src/svg-icons/image/rotate-right.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageRotateRight = (props) => (
<SvgIcon {...props}>
<path d="M15.55 5.55L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45zM19.93 11c-.17-1.39-.72-2.7... |
src/components/Stats.js | ahmedreact/newrepo | import React from 'react'
import { connect } from 'react-redux'
import { Grid, Statistic } from 'semantic-ui-react'
import PropTypes from 'prop-types'
const Stats = ({ getHello }) => {
return (
<Grid columns={2} divided>
<Grid.Row>
<Grid.Column>
<Statistic>
<Statistic.Label>Sa... |
src/error/index.js | kondoSoft/react-car-rental | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-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';
... |
react-koa-webpack/src/index.js | xiunen/charts-build | import React from 'react';
import {render} from 'react-dom';
import {Provider} from 'react-redux';
import {Router} from 'react-router';
import getStore from './store';
// import Layout from './pages';
import routes from './routes';
const App = (props) => {
const {store, history, state} = props;
// const store = g... |
packages/icons/src/general.js | yldio/joyent-portal | import React from 'react';
import Rotate from './rotate';
import calcFill from './fill';
export default ({
fill = null,
light = false,
disabled = false,
direction = 'down',
colors = {},
style = {},
...rest
}) => (
<Rotate direction={direction}>
{({ style: rotateStyle }) => (
<svg
xml... |
classic/src/scenes/mailboxes/src/Scenes/ProScene/ProScene.js | wavebox/waveboxapp | import React from 'react'
import shallowCompare from 'react-addons-shallow-compare'
import PropTypes from 'prop-types'
import { withStyles } from '@material-ui/core/styles'
import { RouterDialog } from 'wbui/RouterDialog'
import ProSceneContent from './ProSceneContent'
const styles = {
root: {
maxWidth: '100%',
... |
packages/ringcentral-widgets-docs/src/app/pages/Components/MessageTabButton/index.js | ringcentral/ringcentral-js-widget | import React from 'react';
import { parse } from 'react-docgen';
import CodeExample from '../../../components/CodeExample';
import ComponentHeader from '../../../components/ComponentHeader';
import PropTypeDescription from '../../../components/PropTypeDescription';
import Demo from './Demo';
// eslint-disable-next-lin... |
docs/src/sections/DropdownSection.js | dozoisch/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function DropdownSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<... |
public/pages/StepsPage.js | dynamicform/dynamicform-react-client | /**
* Created by KangYe on 2017/4/26.
*/
import React from 'react';
import {connect} from 'react-redux';
import {Steps, Button, message } from 'antd';
const Step = Steps.Step;
import '../css/Steps.css';
import DynamicForm from '../../src/components/DynamicForm';
function mapStateToProps(store) {
return {
... |
src/docs/Navigation.js | ibenavides/ps-react-ibenavides | import React from 'react';
import PropTypes from 'prop-types';
const Navigation = ({components}) => {
return (
<ul className="navigation">
{
components.map( name => {
return (
<li key={name}>
<a href={`#${name}`}>{name}</a>
</li>
)
}... |
app/javascript/mastodon/features/compose/components/search.js | sylph-sin-tyaku/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Overlay from 'react-overlays/lib/Overlay';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import { searchEnabled } from '../... |
examples/with-higher-order-component/pages/index.js | callumlocke/next.js | import React from 'react'
import withApp from '../components/withApp'
class Index extends React.Component {
static getInitialProps (context) {
const { isServer } = context
return { isServer }
}
render () {
const { greeting } = this.props
return (
<div>
<h2>Index page</h2>
<h... |
src/shared/routes.js | vesparny/widget | 'use strict';
import React from 'react'; /* eslint no-unused-vars:0 */
import {Route, DefaultRoute, NotFoundRoute} from 'react-router';
import App from './components/App';
import Widget from './components/smart/Widget';
import NotFound from './components/Notfound';
let Routes = (
<Route name="app" path="/" handler=... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | Mvangramberen/Herexamen-Webtech-2-voorbereiding | 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'));
|
public/js/materialize-css/CardContent.js | Morton/pixelDailiesGallery | import React from 'react';
var CardContent = React.createClass({
render: function() {
return <div className="card-content">
{this.props.children}
</div>;
}
});
export default CardContent; |
src/components/views/messages/SenderProfile.js | aperezdc/matrix-react-sdk | /*
Copyright 2015, 2016 OpenMarket Ltd
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 agreed to in writing, s... |
src/svg-icons/action/hourglass-empty.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHourglassEmpty = (props) => (
<SvgIcon {...props}>
<path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5l-4-4V4h8v3.5l-4 4z"/>
... |
src/svg-icons/action/dashboard.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDashboard = (props) => (
<SvgIcon {...props}>
<path d="M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"/>
</SvgIcon>
);
ActionDashboard = pure(ActionDashboard);
ActionDashboard.displayName... |
addons/themes/escape-velocity/layouts/Blog.js | rendact/rendact | import $ from 'jquery'
import React from 'react';
import gql from 'graphql-tag';
import {graphql} from 'react-apollo';
import moment from 'moment';
import {Link} from 'react-router';
import scrollToElement from 'scroll-to-element';
let Blog = React.createClass({
componentDidMount(){
require('../assets/css/main.c... |
src/containers/recipes/Listing/ListingContainer.js | banovotz/WatchBug2 | /**
* List of Recipes for a Meal Container
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
// Actions
import * as RecipeActions from '@redux/recipes/actions';
... |
ajax/libs/react-instantsearch/4.3.0-beta.0/Dom.js | sufuf3/cdnjs | /*! ReactInstantSearch 4.3.0-beta.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], facto... |
fields/types/relationship/RelationshipField.js | tony2cssc/keystone | import async from 'async';
import Lists from '../../../admin/client/stores/Lists';
import Field from '../Field';
import React from 'react';
import Select from 'react-select';
import xhr from 'xhr';
import { Button, InputGroup } from 'elemental';
function compareValues (current, next) {
const currentLength = current ?... |
app/scripts/components/Dashboard/__tests__/MyDocsList-test.js | andela-ekupara/DcManFrontEnd | import React from 'react';
import {browserHistory} from 'react-router';
import expect from 'expect';
import sinon from 'sinon';
import {mount,shallow} from 'enzyme';
import * as DocActions from '../../../actions/DocumentActions';
import DocStore from '../../../stores/DocumentStore';
import MyDocsList from '../MyDocsLis... |
geonode/contrib/monitoring/frontend/src/pages/alert-config/index.js | ingenieroariel/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import TextField from 'material-ui/TextField';
import Checkbox from 'material-ui/Checkbox';
import RaisedButton from 'material-ui/RaisedButton';
import DropDownMenu from 'material-ui/DropDownMenu';
import MenuItem from... |
src/cms/preview-templates/BlogPostPreview.js | fathomlondon/fathomlondon.github.io | import React from 'react';
import PropTypes from 'prop-types';
import { PostBody } from '../../components/PostBody';
const BlogPostPreview = ({ entry, widgetFor }) => (
<PostBody
isPreview
html={widgetFor('body')}
title={entry.getIn(['data', 'title'])}
type="post"
hero={entry.getIn(['data', 'hero'])}
auth... |
assets/js/components/Spinner.js | chocoelho/twitter-activities-monitor | import React from 'react';
const Spinner = ({}) => {
return (
<div className="spinner">
<div className="bounce1"></div>
<div className="bounce2"></div>
<div className="bounce3"></div>
</div>
);
}
export default Spinner;
|
code/workspaces/web-app/src/components/modal/CreateProjectDialog.spec.js | NERC-CEH/datalab | import React from 'react';
import { shallow } from 'enzyme';
import CreateProjectDialog from './CreateProjectDialog';
describe('CreateProjectDialog', () => {
it('renders to match snapshot passing function props to form', () => {
expect(shallow(<CreateProjectDialog
onSubmit={jest.fn().mockName('onSubmit')}
... |
src/routes/dashboardPages/processRunning/processRunning.js | bhavik3jain/LibertyMutual320Project | import React, { Component } from 'react';
import Panel from 'react-bootstrap/lib/Panel';
import Alert from 'react-bootstrap/lib/Alert';
import Button from 'react-bootstrap/lib/Button';
import OverlayTrigger from 'react-bootstrap/lib/OverlayTrigger';
import Tooltip from 'react-bootstrap/lib/Tooltip';
import Popover from... |
storybook/stories/onboarding_modal.story.js | h-izumi/mastodon | import React from 'react';
import { Provider } from 'react-redux';
import { IntlProvider } from 'react-intl';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import en from 'mastodon/locales/en.json';
import configureStore from 'mastodon/store/configureStore';
import { h... |
docs/app/Examples/collections/Table/Types/index.js | clemensw/stardust | import React from 'react'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
const Types = () => {
return (
<ExampleSection title='Types'>
<ComponentExample
title='Types'
description=... |
src/svg-icons/image/crop-original.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropOriginal = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-5.04-6.71l-2.75 3.54-1.96-2.36L6.5 17h11l-3.54-4.71z"... |
packages/material-ui-icons/src/ModeEdit.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z" /></g>
, 'ModeEdit');
|
docs/src/app/components/pages/components/IconMenu/ExampleSimple.js | IsenrichO/mui-with-arrows | import React from 'react';
import IconMenu from 'material-ui/IconMenu';
import MenuItem from 'material-ui/MenuItem';
import IconButton from 'material-ui/IconButton';
import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert';
/**
* Simple Icon Menus demonstrating some of the layouts possible using the `anc... |
src/routes.js | hadynz/pact-testing-example | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './layout/App';
import ImdbPage from './pages/ImdbPage.js';
import NotFoundPage from './pages/NotFoundPage.js';
export default (
<Route path="/" component={App}>
<IndexRoute component={ImdbPage} />
<Route path="*" c... |
assets/js/candidate-events.js | justicedemocrats/admin | import React from 'react'
import { render } from 'react-dom'
import CandidateEvents from './components/candidate-events'
render(<CandidateEvents />, document.getElementById('app'))
|
react-router-demo/src/components/App.js | hzzly/react-getting-started | import React, { Component } from 'react';
import { Link } from 'react-router'
class App extends Component {
render() {
return (
<div>
<div className="ui secondary pointing menu">
<Link to="/" className="item">首页</Link>
<Link to="/... |
src/components/common/svg-icons/navigation/cancel.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationCancel = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7... |
src/components/search-columns.js | reactabular/searchtabular | import React from 'react';
import PropTypes from 'prop-types';
const SearchColumns = ({ columns, query, onChange, classNames }) => {
const onQueryChange = (event) => {
onChange({
...query,
[event.target.name]: event.target.value
});
};
return (
<tr>
{columns.map((column, i) => (
... |
pages/discover-more/showcase.js | AndriusBil/material-ui | // @flow
import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from 'docs/src/pages/discover-more/showcase.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default with... |
src/routes/chart/lineChart/index.js | ykx456654/hr_admin | import React from 'react'
import PropTypes from 'prop-types'
import { Row, Col, Card, Button } from 'antd'
import Container from '../Container'
import {
LineChart,
Line,
XAxis,
YAxis,
CartesianGrid,
Tooltip,
Legend,
} from 'recharts'
const data = [
{
name: 'Page A',
uv: 4000,
pv: 2400,
... |
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js | RickyDan/react-router | import React from 'react';
class Assignments extends React.Component {
render () {
return (
<div>
<h3>Assignments</h3>
{this.props.children || <p>Choose an assignment from the sidebar.</p>}
</div>
);
}
}
export default Assignments;
|
src/web/forms/fields/CheckGroup.js | asha-nepal/AshaFusionCross | /**
* Copyright 2017 Yuichiro Tsuchiya
*
* 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 agr... |
src/components/SteepInstructions.js | MichailSmith/varietea | import React from 'react';
const SteepInstructions = ({tea}) =>{
return (
<div style={{padding: '10px', color: '#393939'}}>
{`The recommended steep is ${tea.amount_g}g at ${Math.floor(tea.temperature_C)}C/${Math.floor(tea.temperature_F)}F`}
</div>
)
};
export default SteepInstructions;
|
tools/render.js | ISMAELMARTINEZ/linkuk | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import glob from 'glob'
import { join, dirname } from 'path'
import React from 'react'
import ReactDOM from 'react-dom/server'
import Html from '../components/Html'
imp... |
src/components/Edit/ReportTextBox.js | hao123-fe/weekly-report-generator | import React from 'react'
import {TextBox} from 'react-uwp'
const Component = props => <TextBox {...props} style={{
margin: '10px 0',
width: '100%'
}} />
export default Component
|
src/index.js | killpowa/Twickt-Launcher | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { ThemeProvider as StyledThemeProvider } from 'styled-components';
import { PersistGate } from 'redux-persist/integration/react';
import { ConnectedRouter } from 'connected-react-router';
import { configureStore,... |
react/src/pages/bymonth/UsageByMonthGraph.js | VREMSoftwareDevelopment/bwmon | /*
* Copyright (C) 2010 - 2020 VREM Software Development <VREMSoftwareDevelopment@gmail.com>
*
* 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: //w... |
app/components/PlaylistSelector.js | MeoBeoI/Catify | import React, { Component } from 'react';
import SelectField from 'material-ui/lib/select-field';
import MenuItem from 'material-ui/lib/menus/menu-item';
import { ipcRenderer } from 'electron';
export default class PlaylistSelector extends Component {
constructor(props) {
super(props);
... |
mobile/Unison/index.ios.js | tubackkhoa/tkframework | /**
* 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 unison extends Component {
render() {
return (
<View style={styles.container}>
... |
docs/app/Examples/modules/Dropdown/Usage/DropdownExampleUpwardSelection.js | shengnian/shengnian-ui-react | import React from 'react'
import { Dropdown } from 'shengnian-ui-react'
const options = [
{ key: 1, text: 'One', value: 1 },
{ key: 2, text: 'Two', value: 2 },
{ key: 3, text: 'Three', value: 3 },
]
const DropdownExampleUpwardSelection = () => (
<Dropdown upward search selection options={options} placeholder=... |
src/svg-icons/device/gps-not-fixed.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceGpsNotFixed = (props) => (
<SvgIcon {...props}>
<path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-3.77 7... |
packages/core/admin/admin/src/content-manager/components/InputJSON/index.js | wistityhq/strapi | /**
*
* InputJSON
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import cm from 'codemirror';
import trimStart from 'lodash/trimStart';
import { Stack } from '@strapi/design-system/Stack';
import { FieldHint, FieldError } from '@strapi/design-system/Field';
import jsonlint from './jsonlint';
i... |
src/components/ImageSelectGrid/components/ImageSelectGrid.js | dannyrdalton/example_signup_flow | import React from 'react'
import AutoResponsive from 'autoresponsive-react'
const autoresponsiveProps = {
itemMargin: 10,
horizontalDirection: 'left',
verticalDirection: 'top',
containerHeight: null,
containerWidth: null,
itemClassName: 'item',
transitionDuration: '.8',
transitionTimingFunction: 'easeI... |
client/components/usage/index.js | 01laky/isomorphic-go-react-sandbox | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import { IndexLink } from 'react-router';
import { usage, todo } from './styles';
import { example, p, link } from '../homepage/styles';
import { setConfig } from '../../actions';
class Usage extends Com... |
front/js/components/create-post.component.js | austinbourdier/react-rails-blog | /**
* @fileOverview The Create Post component.
*/
import React from 'react';
export default class CreatePost extends React.Component {
render() {
return (
<div>
<textarea rows='1' cols='50' placeholder='Type your post title here' onChange={this.props.updatePostTitle}></textarea>
<textare... |
src/containers/Asians/TabControls/PreliminaryRounds/CreateRooms/8_VenuePreview/Navigation/index.js | westoncolemanl/tabbr-web | import React from 'react'
import Button from 'material-ui/Button'
export default ({
onBack,
onNext
}) =>
<div
className={'flex flex-row justify-end mt3'}
>
<Button
onClick={onBack}
children={'BACK'}
/>
<Button
variant={'raised'}
color={'primary'}
onClick={onNext}
... |
examples/huge-apps/routes/Course/components/Dashboard.js | littlefoot32/react-router | import React from 'react';
class Dashboard extends React.Component {
render () {
return (
<div>
<h3>Course Dashboard</h3>
</div>
);
}
}
export default Dashboard;
|
fields/types/Field.js | alobodig/keystone | import classnames from 'classnames';
import evalDependsOn from '../utils/evalDependsOn.js';
import React from 'react';
import { findDOMNode } from 'react-dom';
import { FormField, FormInput, FormNote } from '../../admin/client/App/elemental';
import blacklist from 'blacklist';
import CollapsedFieldLabel from '../compon... |
src/widgets/WindWidget.js | domoticz/Reacticz | import React, { Component } from 'react';
import GenericWidget from './helpers/GenericWidget';
import './WindWidget.css';
class WindWidget extends Component {
render() {
return (
<GenericWidget class="WindWidget"
isOn={this.props.speed > 0}
value1={this.props.direction}
value... |
client/desktop/app/components/teacher/classes/ClassData/LessonData.js | absurdSquid/thumbroll | import React from 'react';
import api from '../../../../utils/api';
import moment from 'moment';
class LessonData extends React.Component {
constructor(props){
super(props);
this.state = {
lessonId: this.props.params.lessonId,
lessonName: this.props.location.state.lessonName,
className: thi... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | Jamesm4/Cognitive-Computing-P1 | 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/svg-icons/image/filter-center-focus.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterCenterFocus = (props) => (
<SvgIcon {...props}>
<path d="M5 15H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zM12 9... |
src/components/NotificationBadge.js | georgeOsdDev/react-notification-badge | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import AnimationCounter from './AnimationCounter';
const styles = {
container: {
position: 'relative',
width: '100%',
height: '100%',
},
badge: {
WebkitTransition: 'all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms',
Mo... |
client/admin/settings/GroupSelector.stories.js | iiet/iiet-chat | import React from 'react';
import GroupSelector from './GroupSelector';
export default {
title: 'admin/settings/GroupSelector',
component: GroupSelector,
};
export const _default = () => <GroupSelector />;
|
packages/react/src/components/forms/ErrorMessage/index.js | massgov/mayflower | /**
* ErrorMessage module.
* @module @massds/mayflower-react/ErrorMessage
* @requires module:@massds/mayflower-assets/scss/01-atoms/error-msg
* @requires module:@massds/mayflower-assets/scss/01-atoms/svg-icons
* @requires module:@massds/mayflower-assets/scss/01-atoms/svg-loc-icons
*/
import React from 'react';
im... |
src/svg-icons/places/kitchen.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesKitchen = (props) => (
<SvgIcon {...props}>
<path d="M18 2.01L6 2c-1.1 0-2 .89-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.11-.9-1.99-2-1.99zM18 20H6v-9.02h12V20zm0-11H6V4h12v5zM8 5h2v3H8zm0 7h2v5H8z"/>
... |
components/parts/Header.js | zhangmingkai4315/PollingApp | import React from 'react'
var PropTypes = React.PropTypes;
class Header extends React.Component{
render () {
return (
<header>
<h1>{this.props.title}</h1>
<h2>{this.props.speaker.name}</h2>
<p>{this.props.status}</p>
</header>
)
}
}
Header.propTypes={
title:PropTypes.... |
src/parser/shaman/enhancement/modules/core/Flametongue.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
class Flametongue extends Analyzer {
... |
docs/src/TabsPage.js | 15lyfromsaturn/react-materialize | import React from 'react';
import Row from '../../src/Row';
import Col from '../../src/Col';
import ReactPlayground from './ReactPlayground';
import PropTable from './PropTable';
import store from './store';
import Samples from './Samples';
import tab from '../../examples/Tab';
class TabsPage extends React.Component {... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.