path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/js/components/Li/index.js | waagsociety/ams.datahub.client | import React from 'react'
export default function Li({ header, content }) {
return content.length
? <li>
<header>{header}</header>
{content.join(', ')}
</li>
: <li hidden='true'></li>
} |
docs/src/app/components/pages/components/Tabs/ExampleIcon.js | ngbrown/material-ui | import React from 'react';
import {Tabs, Tab} from 'material-ui/Tabs';
import FontIcon from 'material-ui/FontIcon';
import ActionFlightTakeoff from 'material-ui/svg-icons/action/flight-takeoff';
const TabsExampleIcon = () => (
<Tabs>
<Tab icon={<FontIcon className="muidocs-icon-action-home" />} />
<Tab icon=... |
app/javascript/mastodon/features/standalone/hashtag_timeline/index.js | codl/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../../ui/containers/status_list_container';
import {
refreshHashtagTimeline,
expandHashtagTimeline,
} from '../../../actions/timelines';
import Column from '../../../components/colu... |
src/LabelNumber/index.js | christianalfoni/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import Typography from '../Typography';
import classNames from 'classnames';
import styles from './styles.css';
import Counter from '../Counter';
function LabelNumber(props) {
return (
<span className={styles.span}>
<div className={... |
src/components/Footer/index.js | balintsoos/brickland | import React from 'react'
class Footer extends React.Component {
render() {
return (
<div className="footer">
<div className="contact">
<h3 className="footer-title">Thanks for coming by!</h3>
<div>Stay in touch!</div>
</div>
<span>Created with love by Balint Soos... |
src/components/icons/StarUnFilledIcon.js | austinknight/ui-components | import React from 'react';
const StarUnFilledIcon = props => (
<svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24">
{ props.title && <title>{props.title}</title> }
<path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12... |
wrappers/html.js | tim-thimmaiah/iyla | import React from 'react'
import Helmet from 'react-helmet'
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
router: React.PropTypes.object,
}
},
render () {
const page = this.props.route.page.data
return (
<div dangerouslySetInnerHTML={{ __... |
client/app/routes.js | zex713/crypto-test | // @flow
import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './containers/App';
import HomePage from './containers/HomePage';
import CounterPage from './containers/CounterPage';
import Question from './components/question'
import Questions from './containers/Questions'
import T... |
node-life/build/build/react-native-life/ReactNativeLife/js/Components/ToolbarAndroid/index.js | CaMnter/front-end-life | /**
* @author CaMnter
*/
import React from 'react';
import ToolbarAndroidExample from './ToolbarAndroid'
class Root extends React.Component {
render() {
return (
<ToolbarAndroidExample/>
);
}
}
module.exports = Root; |
src/addButton.js | yipjiajie/TopBloc | import React from 'react';
var AddButton = React.createClass({
handleClick: function() {
this.props.addDancer();
},
render: function() {
return (
<button onClick={this.handleClick}>
Add Dancer
</button>
);
}
});
export default AddButton;
|
client/views/omnichannel/directory/chats/contextualBar/VisitorData.js | VoiSmart/Rocket.Chat | import { Box } from '@rocket.chat/fuselage';
import React from 'react';
import { useTranslation } from '../../../../../contexts/TranslationContext';
import { AsyncStatePhase } from '../../../../../hooks/useAsyncState';
import { useEndpointData } from '../../../../../hooks/useEndpointData';
import { FormSkeleton } from... |
app/javascript/tagging/components/Tagging/Tagging.js | ManageIQ/manageiq-ui-classic | /* eslint-disable react/destructuring-assignment */
import React from 'react';
import PropTypes from 'prop-types';
import { Grid, Row, Column } from 'carbon-components-react';
import TagModifier from '../InnerComponents/TagModifier';
import TagView from '../InnerComponents/TagView';
import CategoryModifier from '../Inn... |
docs/app/Examples/collections/Breadcrumb/Variations/BreadcrumbExampleLargeSize.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Breadcrumb } from 'semantic-ui-react'
const BreadcrumbExampleLargeSize = () => (
<Breadcrumb size='large'>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider icon='right chevron' />
<Breadcrumb.Section link>Registration</Breadcrumb.Section>
<Brea... |
src/components/button.js | MCeddy/nodefilestore | import React from 'react';
import classnames from 'classnames';
export default class Button extends React.Component {
constructor(props) {
super(props);
}
render() {
const btnClasses = classnames('waves-effect', 'waves-light', 'btn', 'light-blue', 'lighten-1', {
'disabled': thi... |
app/javascript/mastodon/components/column_header.js | lindwurm/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { createPortal } from 'react-dom';
import classNames from 'classnames';
import { FormattedMessage, injectIntl, defineMessages } from 'react-intl';
import Icon from 'mastodon/components/icon';
const messages = defineMessages({
show: { id: 'column_h... |
ui/src/js/team/TeamDetails.js | Dica-Developer/weplantaforest | import Accounting from 'accounting';
import axios from 'axios';
import counterpart from 'counterpart';
import moment from 'dayjs';
import he from 'he';
import React, { Component } from 'react';
import NotificationSystem from 'react-notification-system';
import { browserHistory } from 'react-router';
import IconButton f... |
src/modules/modui/TodoItem.js | Anup-Allamsetty/pure | import React, { Component } from 'react';
import * as Constants from '../../lib/Constants';
import config from './config';
const styles = {
row: {
display: 'block',
},
link: {
textDecoration: 'none',
color: '#333333',
},
name: {
fontWeight: 'bold',
},
body: {
},
creator: {
fontStyle: 'italic',
},
... |
5.1.0/src/routes.js | erikras/redux-form-docs | import React from 'react'
import { Router, Route, hashHistory } from 'react-router'
import markdownPage from 'components/markdownPage'
import App from 'pages/App'
import Home from 'pages/Home'
import Simple from 'pages/examples/Simple'
import ComplexValues from 'pages/examples/ComplexValues'
import File from 'pages/exa... |
client/analytics/components/partials/filter/popUps/FilterItemRegion.js | Haaarp/geo | import React from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import ToggleButtonList from 'konux/common/components/ToggleButtonList';
import {filter} from './../../../../actions';
class FilterItemRegion extends React.Component {
onClick(region) {
const isRegionS... |
src/components/single-form.js | ScottDowne/donate.mozilla.org | import React from 'react';
import SectionHeading from './section-heading.js';
import CurrencyDropdown from './currency-dropdown.js';
import {ErrorListener} from './error.js';
import AmountButtons from './amount-buttons.js';
import Frequency from './donation-frequency.js';
import {PayPalButton, StripeButton} from './pa... |
public/javascripts/components/group-header-pane.js | JetChat/JetChat | import React from 'react';
import Reflux from 'reflux';
import ChatActions from '../events/chat-actions';
import ChatStore from '../events/chat-store';
import classNames from 'classnames';
import {deepEqual} from '../events/chat-store-utils';
import {Dropdown, MenuItem} from 'react-bootstrap';
var GroupHeaderPane = Re... |
addons/storysource/src/manager.js | storybooks/react-storybook | /* eslint-disable react/prop-types */
import React from 'react';
import addons from '@storybook/addons';
import StoryPanel from './StoryPanel';
import { ADDON_ID, PANEL_ID } from '.';
export function register() {
addons.register(ADDON_ID, api => {
addons.addPanel(PANEL_ID, {
title: 'Story',
render: ... |
src/applications/static-pages/health-care-manage-benefits/secure-messaging-page/components/UnauthContent/index.js | department-of-veterans-affairs/vets-website | // Node modules.
import React from 'react';
// Relative imports.
import CallToActionWidget from 'applications/static-pages/cta-widget';
import ServiceProvidersList from 'platform/user/authentication/components/ServiceProvidersList';
export const UnauthContent = () => (
<>
<CallToActionWidget appId="messaging" se... |
src/js/components/Lessons/Edit.js | appdev-academy/appdev.academy-react | import React from 'react'
import { browserHistory } from 'react-router'
import { inject, observer } from 'mobx-react'
import Form from './Form'
@inject('lessonsStore')
@observer
export default class Edit extends React.Component {
constructor(props) {
super(props)
this.state = {
errors: []
}
}... |
packages/material-ui-icons/src/LayersClear.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M19.81 14.99l1.19-.92-1.43-1.43-1.19.92 1.43 1.43zm-.45-4.72L21 9l-9-7-2.91 2.27 7.87 7.88 2.4-1.88zM3.27 1L2 2.27l4.22 4.22L3 9l1.63 1.27L12 16l2.1-1.63 1.43 1.43L12 18.54l-7.37-5.73L3 14.07l9 7 4... |
packages/omni-scripts/fixtures/kitchensink/src/features/webpack/SvgInclusion.js | Omniroot/create-omni-app | import React from 'react'
import logo from './assets/logo.svg'
export default () => (
<img id="feature-svg-inclusion" src={logo} alt="logo" />
)
|
src/svg-icons/av/av-timer.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvAvTimer = (props) => (
<SvgIcon {...props}>
<path d="M11 17c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1-1 .45-1 1zm0-14v4h2V5.08c3.39.49 6 3.39 6 6.92 0 3.87-3.13 7-7 7s-7-3.13-7-7c0-1.68.59-3.22 1.58-4.42L12 13l1.41-... |
src/Month.js | TeaBough/react-big-calendar | import PropTypes from 'prop-types'
import React from 'react'
import { findDOMNode } from 'react-dom'
import clsx from 'clsx'
import * as dates from './utils/dates'
import chunk from 'lodash/chunk'
import { navigate, views } from './utils/constants'
import { notify } from './utils/helpers'
import getPosition from 'dom... |
packages/demo/src/components/Shell.js | hoschi/yode | import React from 'react'
import muiThemeConfig from 'muiThemeConfig'
import AppBar from 'material-ui/AppBar'
import Paper from 'material-ui/Paper'
import ControlsContainer from './ControlsContainer'
import githubMarkImg from 'file-loader!src/assets/GitHub-Mark.png'
const Shell = ({children}) => {
return <div>
... |
src/components/Feedback/Feedback.js | buildbreakdo/react-starter-kit | /**
* 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 withStyles from 'isom... |
test/unit/testHelper.js | mnm1001/draggable-homepage | import jq from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import ReactTestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import createHistory from 'history/lib/createBrowserHistory';
import { Provide... |
client/components/Video.js | FlammableHairnet/ProjectXYZ | import React, { Component } from 'react';
let Video = () => {
return (
<div>
<div className="video-overlay"></div>
<video autoPlay loop poster="img/EarthShineCyan.jpg" id="bgvid">
<source src="video/EarthShineCyan.mp4" type="video/mp4" />
</video>
</div>
);
};
export default Video; |
client/src/app/install/install-step-4-user-system.js | opensupports/opensupports | import React from 'react';
import { connect } from 'react-redux'
import history from 'lib-app/history';
import i18n from 'lib-app/i18n';
import ConfigActions from 'actions/config-actions';
import ToggleButton from 'app-components/toggle-button';
import Header from 'core-components/header';
import Form from 'core-comp... |
app/assets/scripts/components/nearby-locations.js | openaq/openaq.github.io | 'use strict';
import React from 'react';
import _ from 'lodash';
import { Link } from 'react-router';
import LocationCard from './location-card';
import InfoMessage from './info-message';
import LoadingMessage from './loading-message';
import { formatThousands } from '../utils/format';
var NearbyLocations = React.cre... |
src/containers/addition.js | chenqiushan/yj | import React from 'react'
import { connect } from 'react-redux'
import { additionAChange } from '../actions'
import Addition from '../components/addition'
const mapStateToProps = (state) => ({
...state.addition
})
const mapDispatchToProps = {
onAChange: additionAChange
}
export default connect(mapStateToPro... |
src/containers/Home/Home.js | anorudes/react-redux-universal-hot-example | import React, { Component } from 'react';
import { Link } from 'react-router';
import CounterButton from 'components/CounterButton/CounterButton.js';
import GithubButton from 'components/GithubButton/GithubButton.js';
import config from '../../config';
import Helmet from 'react-helmet';
export default class Home exten... |
examples/js/column-format/extra-data-column-format-table.js | prajapati-parth/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
const qualityType = {
0: 'good',
1: 'bad',
2: 'unknown'
};
const inStockStatus = {
1: 'yes',
2: 'no'
};
function addProducts(quantity) {
const startId = prod... |
packages/vx-demo/pages/axis.js | Flaque/vx | import React from 'react';
import Show from '../components/show';
import Axis from '../components/tiles/axis';
export default () => {
return (
<Show
component={Axis}
title="Axis"
margin={{
top: 20,
left: 60,
right: 40,
bottom: 60,
}}
>
{`import Re... |
techCurriculum/ui/solutions/3.2/src/components/User.js | tadas412/EngineeringEssentials | /**
* Copyright 2017 Goldman Sachs.
* 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... |
src/parser/warrior/arms/modules/talents/DefensiveStance.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS/talents/warrior';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatNumber, formatThousands } from 'common/format';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import StatisticBox, { STAT... |
frontend/src/Settings/Quality/Quality.js | geogolem/Radarr | import React, { Component } from 'react';
import PageContent from 'Components/Page/PageContent';
import PageContentBody from 'Components/Page/PageContentBody';
import SettingsToolbarConnector from 'Settings/SettingsToolbarConnector';
import translate from 'Utilities/String/translate';
import QualityDefinitionsConnector... |
src/components/Auth/Login/Login.react.js | DeveloperAlfa/chat.susi.ai | import React, { Component } from 'react';
import Paper from 'material-ui/Paper';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import CircularProgress from 'material-ui/CircularProgress';
import { Link } from 'react-router-dom';
import './Login.css';
import Password... |
app/components/QuizProgress/index.js | Goodly/TextThresher | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Map as ImmutableMap } from 'immutable';
import { RealQuiz } from 'containers/QuizTasks';
import { styles } from './styles.scss';
const mapStateToProps = state => {
return {
question_id: ... |
app/components/MyCollection.js | kongchun/BigData-Web | import React from 'react';
import {
Link
} from 'react-router';
import UserStoreActions from './../actions/UserStoreActions';
import UserStore from './../stores/UserStore';
import SideColumn from './SideColumn';
class MyCollection extends React.Component {
constructor(props) {
super(props);
... |
src/components/SmallButton.js | OpenCollective/frontend | import React from 'react';
import Button from './Button';
import colors from '../constants/colors';
class SmallButton extends React.Component {
render() {
return (
<div className={`SmallButton ${this.props.className}`}>
<style global jsx>
{`
.SmallButton button {
... |
client/common/components/title.js | jaketrent/gratigoose | import React from 'react'
import styleable from 'react-styleable'
import css from './title.css'
function Title(props) {
return (
<h2 className={props.css.root}>{props.children}</h2>
)
}
export default styleable(css)(Title)
|
packages/cf-component-heading/example/basic/component.js | mdno/mdno.github.io | import React from 'react';
import { Heading, HeadingCaption } from 'cf-component-heading';
const HeadingComponent = () => (
<Heading size={2}>
Look at this nice heading!
<HeadingCaption>
It even has a nice HeadingCaption
</HeadingCaption>
</Heading>
);
export default HeadingComponent;
|
main.js | abhijeetNmishra/react-password-strength-meter | import React from 'react'
import { render } from 'react-dom';
import PasswordStrengthMeter from './password-strength-meter';
require('./style.css');
render(
<PasswordStrengthMeter passwordText={"Password"} isDefaultCss={false}/>,document.getElementById('content')
)
|
src/index.js | lukastillmann/oeffimonitor | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/svg-icons/content/save.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentSave = (props) => (
<SvgIcon {...props}>
<path d="M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z"/>
</Svg... |
webapp-src/src/Hutch/CoinElementSecretQuestionsRow.js | babelouest/hutch | import React, { Component } from 'react';
import i18next from 'i18next';
import messageDispatcher from '../lib/MessageDispatcher';
class CoinElementSecretQuestionsRow extends Component {
constructor(props) {
super(props);
this.state = {
oidcStatus: props.oidcStatus,
value: props.value,
i... |
test/test_helper.js | beardalpha/Bloggr | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
src/client.js | hldzlk/wuhao | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createStore from './redux/create';
import ApiClient from './helpers/ApiClient';
// import io from 'socket.io-client';
imp... |
src/svg-icons/maps/directions-walk.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsWalk = (props) => (
<SvgIcon {...props}>
<path d="M13.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM9.8 8.9L7 23h2.1l1.8-8 2.1 2v6h2v-7.5l-2.1-2 .6-3C14.8 12 16.8 13 19 13v-2c-1.9 0-3.5-1-4.3-... |
packages/material-ui-icons/src/BurstMode.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M1 5h2v14H1zm4 0h2v14H5zm17 0H10c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zM11 17l2.5-3.15L15.29 16l2.5-3.22L21 17H11z" /></g>
, 'BurstMode');
|
admin/client/App/components/Navigation/Secondary/NavItem.js | matthewstyers/keystone | /**
* A navigation item of the secondary navigation
*/
import React from 'react';
import { Link } from 'react-router';
const SecondaryNavItem = React.createClass({
displayName: 'SecondaryNavItem',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
href: React.PropType... |
src/svg-icons/av/library-add.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvLibraryAdd = (props) => (
<SvgIcon {...props}>
<path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9h-4v4h-2v-4H9V9h4V5h2v4h4v2z"/>
</S... |
react-ui/src/components/Reviewer/GroupNames.js | civicparty/legitometer | import React, { Component } from 'react';
import { Redirect } from 'react-router-dom';
import axios from 'axios';
// import Button from '../Shared/Button';
// import legitCatImage from '../../images/legit-cat.png';
class GroupNames extends Component {
constructor(props) {
super(props)
this.state = {
na... |
actor-apps/app-web/src/app/components/modals/InviteUser.react.js | liruqi/actor-platform-v0.9 | import _ from 'lodash';
import React from 'react';
import Modal from 'react-modal';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import { Styles, FlatButton } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import ActorClient from 'utils/ActorClien... |
client/modules/messaging/components/.stories/overview.js | kaibagoh/PitchSpot | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { setComposerStub } from 'react-komposer';
import Overview from '../overview.jsx';
storiesOf('messaging.Overview', module)
.add('default view', () => {
return (
<Overview />
);
})
|
src/components/MethodTag/MethodTag.js | Bandwidth/shared-components | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import get from 'extensions/themeGet';
const processMethod = method => {
const normalized = method.toLowerCase();
if (normalized === 'delete') {
return 'del';
}
return normalized;
};
const methodColors =... |
plugins/react/frontend/components/common/Button/index.js | pure-ui/styleguide | /**
* Button
*
* Render a button
*/
import React from 'react';
import styles from './styles.css';
const Button = (props) => (
<button {...props} className={`${styles.base} ${props.className}`} />
);
export default Button;
|
node_modules/glamor/es6/styled/index.js | MaleSharker/Qingyan | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _createClass = function () { function defineProperties(ta... |
src/components/common/SimpleEditor/Component/Toolbar/DefaultToolbar.js | anztrax/simple-image-server-frontend | import React from 'react';
import { BoldMarkButton, ItalicMarkButton, StrikeThroughMarkButton, UnderlineMarkButton } from '../Buttons';
import {
Header1BlockButton,
Header2BlockButton,
Header3BlockButton,
Header4BlockButton,
Header5BlockButton,
Header6BlockButton,
BulletedListBlockButton,
NumberedListBl... |
src/components/search_bar.js | gurusewak/react101 | import React, { Component } from 'react';
class SearchBar extends Component {
constructor(props) {
super(props);
this.state = { term: '' };
}
onInputChange(term) {
this.setState({ term });
this.props.onTermChange(term);
}
render() {
return (
<di... |
src/components/App/Theme.js | motion123/mbookmakerUI | /**
* Created by tomihei on 17/04/02.
*/
import React from 'react';
import { cyan500, cyan700,
pinkA200,
grey100, grey300, grey400, grey500,
white, darkBlack, fullBlack,} from 'material-ui/styles/colors';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
const muiTheme = getMuiTheme({
palette: {
... |
src/js/react/components/App/Hero.js | mandricore/react-vue2-apollo | import React from 'react';
import {Row, Col, Button, Jumbotron} from 'react-bootstrap';
import FontAwesome from 'react-fontawesome';
class Hero extends React.Component {
render() {
return (
<Row>
<Col smOffset={2} sm={8}>
<Jumbotron style={styles.jumbotron}>
<h1>Welcome!</h1>
... |
react-components/src/library/components/assigments/class-assignments.js | concord-consortium/rigse | import React from 'react'
import ResourceFinderLightbox from '../resource-finder-lightbox'
import CollectionLightbox from '../collection-lightbox'
import Lightbox from '../../helpers/lightbox'
import css from './style.scss'
import commonCss from '../../styles/common-css-modules.scss'
export default class ClassAssignm... |
src/scripts/components/Content.js | Ash-Bash/Zen-Editor | import React from 'react';
import TabView from './tab-component/TabView.js';
import Tab from './tab-component/Tab.js';
//SVG-Icons Imports
export default class Content extends React.Component {
render(){
return (
<div>
<TabView />
</div>
);
}
}
|
examples/async/containers/Root.js | leolujuyi/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import configureStore from '../store/configureStore';
import AsyncApp from './AsyncApp';
const store = configureStore();
export default class Root extends Component {
render() {
return (
<Provider store={store}>
{() ... |
app/src/pages/SignupPage/index.js | udacityalumni/udacity-alumni-fe | import React from 'react';
import cssModules from 'react-css-modules';
import styles from './index.module.scss';
import { SignupContainer } from 'containers';
import { AppFooter } from 'components';
const SignupPage = () => (
<div className={styles.container}>
<SignupContainer />
<AppFooter />
</div>
);
e... |
src/js/components/DateTimeDrop.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import moment from 'moment';
import Box from './Box';
import Header from './Header';
import Title from './Title';
import Button from '.... |
src/components/ChatMessage.js | bytewiz/react-horizon-rethinkdb | import React from 'react';
// ======================================
// in charge of rendering a chat message
// ======================================
// all component styles
const styles = {
container: {
textAlign: 'left',
margin: '20px 0'
},
txtBox: {
padding: '10px',
boxShadow: '0 1px 3px rgb... |
packages/bonde-admin/src/components/notify/info.js | ourcities/rebu-client | import PropTypes from 'prop-types'
import React from 'react'
import Box from './box'
var styles = require('exenv').canUseDOM ? require('./info.scss') : {}
const Info = ({ title, children }) => (
<Box
title={title}
styles={styles}
icon='info-circle'
>
{children}
</Box>
)
Info.propTypes = {
tit... |
src/pages/hit.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Hit' />
)
|
src/Components/Slider.js | aryalprakash/omgyoutube | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Router, Route, Link, browserHistory } from 'react-router'
export default class Slider extends Component {
render(){
return(<div className="slider-container">
<div className="slider-contents">
<... |
src/components/Post.js | Julzso23/player.me-one-click-share | import React from 'react';
import request from 'superagent';
import Spinner from './Spinner';
import Error from './Error';
import {withRouter} from 'react-router';
import '../styles/form.css';
class Post extends React.Component {
constructor(props) {
super(props);
this.state = {
maxLen... |
src/containers/shared-assets/class-selection-wrapper/selection/select-mode/select-mode.js | vFujin/HearthLounge | import React, { Component } from 'react';
import { connect } from 'react-redux';
import {icon_filters} from "../../../../../globals/filters";
import Icon from "../../../../../components/icon";
import {updateDeckProperty} from "../../../../../redux/create-deck/actions/deck-options.action";
import '../selection-styles.cs... |
react-i18n-example/src/App.js | backpaper0/sandbox | import React from 'react';
import I18nContext from './i18n';
import Message from './Message';
function App() {
return (
<div>
<Message msg="hello"/>
<I18nContext.Provider value={{ hello: "こんにちは世界!" }}>
<Message msg="hello"/>
</I18nContext.Provider>
<I18nContext.Provider value={{ h... |
src/components/NotFoundPage.js | baker-natalie/lets-react | 'use strict';
import React from 'react';
import { Link } from 'react-router';
export default class NotFoundPage extends React.Component {
render() {
return (
<div className="not-found">
<h1>404</h1>
<h2>Page not found!</h2>
<p>
<Link to="/">Go back to the main page</Link>... |
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js | RobertKielty/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/routes/app/routes/ui/routes/lists/components/Simple.js | ahthamrin/kbri-admin2 | import React from 'react';
// import MobileTearSheet from '../../../MobileTearSheet';
import {List, ListItem} from 'material-ui/List';
import ContentInbox from 'material-ui/svg-icons/content/inbox';
import ActionGrade from 'material-ui/svg-icons/action/grade';
import ContentSend from 'material-ui/svg-icons/content/send... |
src/routes.js | albertodotcom/react-template | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App/App';
function SimpleDiv() {
return <p>hello world</p>;
};
export default (
<Route path='/' component={App}>
<IndexRoute component={SimpleDiv} />
</Route>
);
|
docs/src/app/app.js | pomerantsev/material-ui | import React from 'react';
import {render} from 'react-dom';
import {Router, useRouterHistory} from 'react-router';
import AppRoutes from './AppRoutes';
import injectTapEventPlugin from 'react-tap-event-plugin';
import {createHashHistory} from 'history';
// Helpers for debugging
window.React = React;
window.Perf = req... |
src/components/pageLayout.js | kaupppa/hmk-web-client | import React from 'react';
import { Box, CssBaseline } from '@mui/material';
import NavBar from './navbar';
const PageLayout = ({ pathName, children }) => {
return (
<Box sx={{
minHeight: '50vh'
}}>
<CssBaseline />
<NavBar pathName={pathName} />
<Box... |
src/Parser/Rogue/Subtlety/Modules/Talents/DarkShadow/DarkShadowContribution.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatNumber } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import DarkShadow from './DarkShadow';
class DarkShadowContribution extends DarkShadow {
statisti... |
jenkins-design-language/src/js/components/material-ui/svg-icons/action/power-settings-new.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionPowerSettingsNew = (props) => (
<SvgIcon {...props}>
<path d="M13 3h-2v10h2V3zm4.83 2.17l-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.0... |
src/svg-icons/action/donut-small.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDonutSmall = (props) => (
<SvgIcon {...props}>
<path d="M11 9.16V2c-5 .5-9 4.79-9 10s4 9.5 9 10v-7.16c-1-.41-2-1.52-2-2.84s1-2.43 2-2.84zM14.86 11H22c-.48-4.75-4-8.53-9-9v7.16c1 .3 1.52.98 1.86 1.84zM13 1... |
src/pages/blog.js | daviddeejjames/dfjames-gatsby | import React from 'react'
import { Link, graphql } from 'gatsby'
import { FaClock } from 'react-icons/fa'
import Footer from '../components/footer'
import TemplateWrapper from '../components/index.js'
import { format } from 'date-fns'
const Blog = ({ data }) => (
<TemplateWrapper>
<div className="blog page-wra... |
src/components/paragraph/stories/index.js | timludikar/component-library | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import Paragraph from '../index';
storiesOf('component.Paragraph', module)
.add('default view', () => (
<Paragraph>Hello</Paragraph>
))
.add('custom styles', () => {
const style = {
fontSize: 20,
textTransform: 'upperca... |
src/components/topic/search/MatchingTopicsContainer.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { injectIntl, FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { Row, Col } from 'react-flexbox-grid/lib';
import withAsyncData from '../../common/hocs/AsyncDataContainer';
import TopicPreviewList from '../list/Topi... |
packages/material-ui-icons/src/DirectionsWalk.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M13.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM9.8 8.9L7 23h2.1l1.8-8 2.1 2v6h2v-7.5l-2.1-2 .6-3C14.8 12 16.8 13 19 13v-2c-1.9 0-3.5-1-4.3-2.4l-1-1.6c-.4-.6-1-1-1.7-1-.3 0-.5.1-.8.1L6 8.3V13... |
boilerplates/app/src/routes/rbac/Password.js | hexagonframework/antd-admin-cli | import React from 'react'
import { connect } from 'dva'
import UserPassword from '../../components/User/UserPassword'
function Password ({ dispatch }) {
const userPasswordProps = {
onUpdate (data) {
dispatch({
type: 'auth/password',
payload: data,
})
},
}
return (
<div>... |
docs/src/pages/components/slider/InputSlider.js | lgollut/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Grid from '@material-ui/core/Grid';
import Typography from '@material-ui/core/Typography';
import Slider from '@material-ui/core/Slider';
import Input from '@material-ui/core/Input';
import VolumeUp from '@material-ui/icons/VolumeU... |
src/svg-icons/device/battery-charging-60.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryCharging60 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V11h3.87L13 7v4h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9l1... |
src/options/privacy/components/PrivacyContainer.js | WorldBrain/WebMemex | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import * as actions from '../actions'
import * as selectors from '../selectors'
import { SHOULD_TRACK_STORAGE_KEY as SHOULD_TRACK } from '../constants'
import Privacy from './Privacy'
class PrivacyContainer extends Reac... |
assets/jqwidgets/demos/react/app/listbox/selectionwithshiftctrl/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxListBox from '../../../jqwidgets-react/react_jqxlistbox.js';
class App extends React.Component {
componentDidMount() {
this.refs.myListBox.focus();
this.displaySelectedItems();
this.refs.myListBox.on('change', () => ... |
packages/web/src/components/basic/SelectedFilters.js | appbaseio/reactivesearch | /** @jsx jsx */
import { jsx } from '@emotion/core';
import React, { Component } from 'react';
import { object } from 'prop-types';
import { withTheme } from 'emotion-theming';
import { setValue, clearValues, resetValuesToDefault } from '@appbaseio/reactivecore/lib/actions';
import { componentTypes, CLEAR_ALL } from '@... |
examples/official-storybook/stories/addon-docs/addon-docs-blocks.stories.js | kadirahq/react-storybook | import React from 'react';
import {
Title,
Subtitle,
Description,
Primary,
ArgsTable,
Stories,
} from '@storybook/addon-docs/blocks';
import { DocgenButton } from '../../components/DocgenButton';
import BaseButton from '../../components/BaseButton';
import { ButtonGroup, SubGroup } from '../../components/Bu... |
app/javascript/flavours/glitch/features/ui/components/media_modal.js | Kirishima21/mastodon | import React from 'react';
import ReactSwipeableViews from 'react-swipeable-views';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Video from 'flavours/glitch/features/video';
import classNames from 'classnames';
import { defineMessages, injectIntl } from 'react-i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.