path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
demo/component/ScatterChart.js | thoqbk/recharts | import React from 'react';
import { ScatterChart, Scatter, CartesianGrid, Tooltip, Legend,
XAxis, YAxis, ZAxis, ReferenceLine, ReferenceDot, ReferenceArea } from 'recharts';
import { changeNumberOfData } from './utils';
const data01 = [
{ x: 100, y: 200, z: 200 },
{ x: 120, y: 100, z: 260 },
{ x: 170, y: 300, z... |
src/components/gmaps.js | chiss2906/react-gmaps | import React from 'react';
import assign from 'react/lib/Object.assign';
import MapEvents from '../events/map';
import Listener from '../mixins/listener';
const Gmaps = React.createClass({
mixins: [Listener],
map: null,
getInitialState() {
return {
isMapCreated: false
};
},
componentDidMoun... |
src/svg-icons/editor/format-align-justify.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatAlignJustify = (props) => (
<SvgIcon {...props}>
<path d="M3 21h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18V7H3v2zm0-6v2h18V3H3z"/>
</SvgIcon>
);
EditorFormatAlignJustify = pure(EditorFormatAl... |
slides/p1/slide-6-0.js | fk1blow/react-presentception | import React from 'react';
export default class Slide extends React.Component {
render() {
return (
<div className="slide-mask">
<div className="slide mw8 center">
<section>
<h2 className="tc">xPresentation named: <em>'p1'</em></h2>
</section>
<section>
... |
client/components/Swiper/index.js | sageliu/uusee | import React from 'react';
import ReactSwipe from 'react-swipe';
export default class Swiper extends React.Component {
constructor() {
super();
this.state = {
index: 0
}
}
render() {
let option = {
callback: (index) => {
this.setState({index: index})
},
auto: this.props.opt.auto,
continu... |
demo/js/carousel.js | bebeanan/monkey-ui | import React from 'react';
import ReactDOM from 'react-dom';
import MonkeyUi from '../../lib/monkeyui.js';
var Carousel=MonkeyUi.Carousel;
class Page11 extends React.Component{
render() {
return (
<div className="mancatain">
<Carousel autoplay>
<div><h3>1</h3></div>
<div><h3>2</h3></div>
... |
examples/with-apollo-and-redux-saga/pages/index.js | BlancheXu/test | import React from 'react'
import { connect } from 'react-redux'
import { startClock } from '../lib/clock/actions'
import { countIncrease } from '../lib/count/actions'
import { loadData } from '../lib/placeholder/actions'
import App from '../components/App'
import Header from '../components/Header'
import Page from '... |
app/javascript/mastodon/features/direct_timeline/index.js | pso2club/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import { mountConversations, unmountConversations, expandConversations } from '../../actions/conversations';
impo... |
examples/enzyme/__tests__/CheckboxWithLabel-test.js | mpontus/jest | // Copyright 2004-present Facebook. All Rights Reserved.
/* eslint-disable no-unused-vars */
import React from 'react';
import {shallow} from 'enzyme';
import CheckboxWithLabel from '../CheckboxWithLabel';
it('CheckboxWithLabel changes the text after click', () => {
// Render a checkbox with label in the document
... |
src/routes.js | karmapa17/garchen-panel | import React from 'react';
import {IndexRoute, Route} from 'react-router';
import App from './containers/App/App';
import PageAbout from './containers/PageAbout/PageAbout';
import PageAddEntry from './containers/PageAddEntry/PageAddEntry';
import PageEditFolder from './containers/PageEditFolder/PageEditFolder';
import... |
admin/client/App/shared/Portal.js | webteckie/keystone | /**
* Used by the Popout component and the Lightbox component of the fields for
* popouts. Renders a non-react DOM node.
*/
import React from 'react';
import ReactDOM from 'react-dom';
module.exports = React.createClass({
displayName: 'Portal',
portalElement: null, // eslint-disable-line react/sort-comp
compone... |
11-react-context/src/theme-context.js | iproduct/course-node-express-react | import React from 'react';
export const themes = {
light: {
name: 'Light Theme',
foreground: '#000000',
background: '#eeeeee',
},
dark: {
name: 'Dark Theme',
foreground: '#ffffff',
background: '#0000ff',
},
};
//1. Create context
// Context lets us pass a value d... |
packages/mineral-ui-icons/src/IconBattery60.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconBattery60(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProp... |
src/js/components/header/navigation.js | trwalker/marvel-react | import React from 'react';
class Navigation extends React.Component {
render() {
return (
<nav className="navbar navbar-inverse">
<div className="container-fluid">
<div className="navbar-header">
<a className="navbar-brand" href="#">Ma... |
src/components/operations/series-list.js | FranckCo/Operation-Explorer | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { seriesLink } from './routes';
import display from 'utils/display-results'
import { sortArrayByKey } from 'utils/sort-array'
import D from 'i18n'
const sortArray = sortArrayByKey('label');
export default fu... |
src/svg-icons/image/slideshow.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageSlideshow = (props) => (
<SvgIcon {...props}>
<path d="M10 8v8l5-4-5-4zm9-5H5c-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 16H5V5h14v14z"/>
</SvgIcon>
);
ImageSlideshow = pure(I... |
src/index.js | doublerz/tractor-beam-emulator | import React from 'react'
import { render } from 'react-dom'
import { App } from './App'
render(<App />, document.getElementById('root'))
|
frontend/src/components/forms/fields/projectFields/agencies.js | unicef/un-partner-portal | import React, { Component } from 'react';
import { isEmpty } from 'ramda';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import SelectForm from '../../selectForm';
import { mapAgenciesNamesToSelection } from '../../../../store';
import { loadAgenciesNames } from '../../../../reducers/agenci... |
examples/docusaurus-2/src/pages/index.js | zeit/now-cli | import React from 'react';
import classnames from 'classnames';
import Layout from '@theme/Layout';
import Link from '@docusaurus/Link';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import useBaseUrl from '@docusaurus/useBaseUrl';
import styles from './styles.module.css';
const features = [
{... |
www/src/components/Terminal.js | TaitoUnited/taito-cli | import React from 'react';
import styled from '@emotion/styled';
import { useTrail, animated } from 'react-spring';
import taitoCharacterImg from '../images/taito_char_white.png';
import { useOnScreen } from '../hooks';
import { media } from '../utils';
const trailConfig = {
mass: 5,
tension: 3000,
friction: 50... |
src/components/Footer/index.js | codex49/icon-generator | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import html2canvas from '../../../lib/html2canvas';
import { showPopupDownload } from '../../../src/redux/actions';
class Footer extends Component {
static... |
analysis/monkmistweaver/src/modules/talents/RisingMist.js | yajinni/WoWAnalyzer | import React from 'react';
import { formatNumber, formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import calculateEffectiveHealing from 'parser/core/calculateEffectiveHealing';
import Events from 'parser/core/Events';
import ... |
components/react-semantify/src/modules/tab.js | react-douban/douban-book-web | import React from 'react';
import ClassGenerator from '../mixins/classGenerator';
import StateSelector from '../mixins/stateSelector';
let defaultClassName = 'ui tab';
const Tab = React.createClass({
mixins: [ClassGenerator, StateSelector],
render: function () {
let {className, active, loading, tab, ...oth... |
frontend/src/containers/Logout/Logout.js | webrecorder/webrecorder | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { logout as doLogout } from 'store/modules/auth';
class Logout extends Component {
static propTypes = {
logout: PropTypes.func,
loggingOut: PropTypes.bool
}
constructor(props) {
... |
client/src/App.js | DemocracyGuardians/DGTeam | import React, { Component } from 'react';
import injectTapEventPlugin from 'react-tap-event-plugin';
import { connect } from 'react-redux'
import { BrowserRouter, Redirect, Route, Switch } from 'react-router-dom'
import './App.css';
import Login from './containers/Login'
import Signup from './containers/Signup'
import ... |
src/svg-icons/places/spa.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesSpa = (props) => (
<SvgIcon {...props}>
<path d="M8.55 12c-1.07-.71-2.25-1.27-3.53-1.61 1.28.34 2.46.9 3.53 1.61zm10.43-1.61c-1.29.34-2.49.91-3.57 1.64 1.08-.73 2.28-1.3 3.57-1.64z"/><path d="M15.49 9.63c... |
src/modules/persisted/components/Editor-persisted.js | otissv/graphql-guru-ide | import React from 'react';
import autobind from 'class-autobind';
import styled from 'styled-components';
import RequestPersistedEditor from './Request-persisted';
import PersistedResultEditor from './Result-persisted';
import IconButton from '../../../styled/components/IconButton';
import '../css/style-persisted.css';... |
packages/examples/src/resume/Experience.js | diegomura/react-pdf | /* eslint-disable react/no-array-index-key */
import React from 'react';
import { Text, View, StyleSheet } from '@react-pdf/renderer';
import Title from './Title';
import List, { Item } from './List';
const styles = StyleSheet.create({
container: {
flex: 1,
paddingTop: 30,
paddingLeft: 15,
'@media ... |
pootle/static/js/shared/components/FormCheckedInput.js | dwaynebailey/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
const FormCheckedInput = Reac... |
src/components/common/svg-icons/notification/mms.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationMms = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM5 14l3.5-4.5 2.5 3.01L14.5 8l4.5 6H5z"/>
</SvgIcon>
);
NotificationMms = ... |
node_modules/react-router/es/withRouter.js | pornvutp/tact | 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; };
import React from 'react';
import Route from './Route';
/**
... |
website/site.js | hailocab/react-pure | import React from 'react';
import { render } from 'react-dom';
import { renderToStaticMarkup, renderToString } from 'react-dom/server';
import Layout from './components/Layout';
import Index from './components/IndexPage';
if (typeof document !== 'undefined') {
render(<Index />, document.getElementById('app'));
}
... |
src/client/components/UserCard.js | busyorg/busy | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import FollowButton from '../widgets/FollowButton';
import Avatar from '../components/Avatar';
import './UserCard.less';
const UserCard = ({ username, alt }) => (
<div className="UserCard">
<div className="Use... |
client/node_modules/uu5g03/dist-node/forms-v3/radios.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin, Tools} from './../common/common.js';
import InputMixin from './mixins/input-mixin.js'
import GroupMixin from './mixins/group-mixin.js'
import InputWrapper from './internal/input-wrapper.js';
import Checkbbox from './checkbox.js';
import './radios.less';... |
src/components/DatePicker/MonthRangePicker.js | UncleYee/crm-ui | import React from 'react';
import ReactDOM from 'react-dom';
import RangePicker from 'react-daterange-picker';
import Popover from 'react-bootstrap/lib/Popover';
import Overlay from 'react-bootstrap/lib/Overlay';
import InputGroup from 'react-bootstrap/lib/InputGroup';
import FormControl from 'react-bootstrap/lib/FormC... |
src/svg-icons/hardware/tablet-android.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareTabletAndroid = (props) => (
<SvgIcon {...props}>
<path d="M18 0H6C4.34 0 3 1.34 3 3v18c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3V3c0-1.66-1.34-3-3-3zm-4 22h-4v-1h4v1zm5.25-3H4.75V3h14.5v16z"/>
</SvgIcon... |
packages/es-components/src/components/patterns/dateInput/Day.js | TWExchangeSolutions/es-components | /* eslint react/prop-types: 0 */
import React from 'react';
import styled from 'styled-components';
import { useTheme } from '../../util/useTheme';
import ValidationContext from '../../controls/ValidationContext';
import InputBase from '../../controls/textbox/InputBase';
import onNonNumericHandler from './onNonNumeric... |
src/Accordion.js | brentertz/react-bootstrap | import React from 'react';
import PanelGroup from './PanelGroup';
const Accordion = React.createClass({
render() {
return (
<PanelGroup {...this.props} accordion>
{this.props.children}
</PanelGroup>
);
}
});
export default Accordion;
|
src/components/FooterContent.js | scottluptowski/newyorktimesorjennyholzer | import React from 'react';
export default class FooterContent extends React.Component {
render() {
return (
<footer>
by <a href="http://www.twitter.com/scottluptowski" target="_blank">Scott Luptowski</a>. Not affiliated with Jenny Holzer or the New York Times.
<span className="twitter-wra... |
src/js/components/Store.js | react-beer/the-beer-store-react-es6-firebase-oauth | import React from 'react';
import { browserHistory } from 'react-router';
import autoBind from 'react-autobind';
import { Grid } from 'react-bootstrap';
import Header from './Header';
import Cart from './Cart';
import Products from './Products';
import Footer from './Footer';
// Firebase
import Rebase from 're-base';
... |
app/imports/client/Pages/Article/Components/Relateds.js | FractalFlows/Emergence | import React from 'react'
import {
compose,
pure,
withState,
withProps,
} from 'recompose'
import { Meteor } from 'meteor/meteor'
import {
RaisedButton,
Snackbar,
} from 'material-ui'
// Components
import {
Panel,
PanelHeader,
PanelBody,
PanelHeaderButton,
} from '/imports/client/Components/Panel'
... |
src/app/core/atoms/icon/icons/next.js | blowsys/reservo | import React from 'react'; const Next = (props) => <svg {...props} viewBox="0 0 48 48"><g><path d="M1.4200482,0L17.351001,16.046996 1.4980513,31.996001 0.078979631,30.585997 14.531046,16.046019 0,1.4089964z" transform="rotate(0,24,24) translate(10.9851219535313,0) scale(1.50018750984717,1.50018750984717)"/></g></svg>; ... |
packages/core/helper-plugin/lib/src/components/DynamicTable/TableHead/index.js | wistityhq/strapi | import React from 'react';
import { BaseCheckbox } from '@strapi/design-system/BaseCheckbox';
import { IconButton } from '@strapi/design-system/IconButton';
import { Tooltip } from '@strapi/design-system/Tooltip';
import { VisuallyHidden } from '@strapi/design-system/VisuallyHidden';
import { Typography } from '@strapi... |
mobile/src/QRScanScreen/presenter.js | TailorDev/pauling | /* @flow */
import React, { Component } from 'react';
import { InteractionManager, Platform, View } from 'react-native';
import { Spinner, Text, Toast } from 'native-base';
import Camera from 'react-native-camera';
import Config from 'react-native-config';
import { oneLine } from 'common-tags';
import { colors } from ... |
app/javascript/mastodon/features/favourites/index.js | im-in-space/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { fetchFavourit... |
client/components/EditCardModal.js | nb256/kanbanello | import React from 'react';
import { floatRightButtonStyle, formElementsStyle, modalStyle } from '../styles/styles';
import Label from './Label';
export default class EditCardModal extends React.Component {
constructor(props) {
super(props);
this.state = {
selectedColor: 'red',
};
}
handleChan... |
src/SwatchColorPicker.story.js | prometheusresearch/react-ui | /**
* @flow
*/
import React from 'react';
import {storiesOf, action} from '@kadira/storybook';
import SwatchColorPicker from './SwatchColorPicker';
const colorList = [
'#B80000',
'#DB3E00',
'#FCCB00',
'#008B02',
'#006B76',
'#1273DE',
'#004DCF',
'#5300EB',
'#EB9694',
'#FAD0C3',
'#FEF3BD',
'#C... |
html.js | Nick-Gottschlich/ng-homepage | import React from 'react'
import DocumentTitle from 'react-document-title'
import { prefixLink } from 'gatsby-helpers'
const BUILD_TIME = new Date().getTime()
module.exports = React.createClass({
displayName: 'HTML',
propTypes: {
body: React.PropTypes.string,
},
render() {
const {body,... |
src/components/Layout/SearchDrawer/AdvancedSearch/AdvancedSearchTitle/index.js | ndlib/usurper | import React from 'react'
import PropTypes from 'prop-types'
const AdvancedSearchTitle = (props) => {
let title = 'OneSearch'
if (props.searchType === 'NDCATALOG') {
title = 'ND Catalog'
}
return (
<div id='search-type-title'>{title}</div>
)
}
AdvancedSearchTitle.propTypes = {
searchType: PropType... |
src/containers/book-detail.js | merry75/ReduxBookLibrary | import React, { Component } from 'react';
import { connect } from 'react-redux';
class BookDetail extends Component {
render() {
if(!this.props.book) {
return <div>Select a book to get started</div>
}
return (
<div>
<h3>Details for:</h3>
<div>Title: {this.props.book.title}</div>
<div>Pages: ... |
generators/app/templates/pages/react/index.js | dingyanqiang/generator-perfect | import React from 'react';
import ReactDOM from 'react-dom';
import './index.<%= styleType %>';
/**
* CSS Moudle
* import style from './index.<%= styleType %>';
*/
class Welcome extends React.Component {
state = {
name: 'Perfect'
}
render() {
return <h1>Hello, {this.state.name}</h1>;
}
}
const ... |
js/redux/learn-redux/node_modules/expect-jsx/index.js | austinjalexander/sandbox | import React from 'react';
import expect from 'expect';
import collapse from 'collapse-white-space';
import reactElementToJSXString from 'react-element-to-jsx-string';
let api = {
toEqualJSX(ReactElement) {
return expect(
reactElementToJSXString(this.actual)
).toEqual(
reactElementToJSXString(Re... |
components/OutputTemplate.js | suprsidr/blade-react-template | import React from 'react'
import Hero from './Hero';
import IntroText from './IntroText';
import SafeTech from './SafeTech';
import DividerImage from './DividerImage';
import Modes from './Modes';
import Features from './Features';
import Prices from './Prices';
import SupportLinks from './SupportLinks';
class OutputT... |
examples/examples.js | buildo/react-datepicker | import 'moment/locale/fr.js';
import React from 'react';
import ReactDOM from 'react-dom';
import { DatePicker, DatePickerInput } from '../src';
import '../src/style.scss';
class Example extends React.Component {
state = {
datePickerDate: '2015-05-13',
datePickerInputDate: null,
datePickerInputDate2: ... |
docs/src/app/components/pages/components/Stepper/CustomIcon.js | IsenrichO/mui-with-arrows | import React from 'react';
import {
Step,
Stepper,
StepLabel,
} from 'material-ui/Stepper';
import WarningIcon from 'material-ui/svg-icons/alert/warning';
import {red500} from 'material-ui/styles/colors';
/**
* Custom icons can be used to create different visual states.
*/
class CustomIcon extends React.Compon... |
src/Menu/MenuItem.js | dsslimshaddy/material-ui | // @flow
import React from 'react';
import type { Element } from 'react';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
import ListItem from '../List/ListItem';
export const styles = (theme: Object) => ({
root: {
...theme.typography.subheading,
height: 48,
boxSizing... |
public/js/components/Message.js | richardison/audition-project | import React from 'react';
import { ListGroupItem, ButtonToolbar, Button, Glyphicon, Grid, Col, Modal } from 'react-bootstrap';
export default class Message extends React.Component {
constructor(props) {
super(props)
this.state = {
hover: false,
showModal: false,
... |
fields/components/columns/InvalidColumn.js | w01fgang/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var InvalidColumn = React.createClass({
displayName: 'InvalidColumn',
propTypes: {
col: React.PropTypes.object,
},
renderValue () {
return (
<ItemsTableVal... |
ReactNative/04 Running App.js | iitjee/SteppinsWebDev | //Previously we modified AppContainer.js to have a navigator inside menu. Now let's make it the single entry point for
//application.
(in index.ios.js)
//modify like this
import React, { Component } from 'react';
import {
AppRegistry, //remoed other modules
} from 'react-native';
import AppContainer from './app/Ap... |
src/svg-icons/notification/sd-card.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSdCard = (props) => (
<SvgIcon {...props}>
<path d="M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 6h-2V4h2v4zm3 0h-2V4h2v4zm3 0h-2V4h2v4z"/>
</SvgIcon>
);
NotificationS... |
src/containers/subscription/SubscriptionFormScreen.js | meetfranz/franz | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { inject, observer } from 'mobx-react';
import { ipcRenderer } from 'electron';
import PaymentStore from '../../stores/PaymentStore';
import SubscriptionForm from '../../components/subscription/SubscriptionForm';
import TrialForm fro... |
assets/javascripts/kitten/components/graphics/icons/filter-icon/test.js | KissKissBankBank/kitten | import React from 'react'
import renderer from 'react-test-renderer'
import { FilterIcon } from './index'
describe('<FilterIcon />', () => {
it('should match its empty snapshot', () => {
const tree = renderer.create(<FilterIcon animated />).toJSON()
expect(tree).toMatchSnapshot()
})
})
|
src/svg-icons/device/screen-lock-rotation.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceScreenLockRotation = (props) => (
<SvgIcon {...props}>
<path d="M23.25 12.77l-2.57-2.57-1.41 1.41 2.22 2.22-5.66 5.66L4.51 8.17l5.66-5.66 2.1 2.1 1.41-1.41L11.23.75c-.59-.59-1.54-.59-2.12 0L2.75 7.11c-.59... |
src/components/stepOne/index.js | oraclesorg/ico-wizard | import React from 'react'
import '../../assets/stylesheets/application.css';
import { checkWeb3 } from '../../utils/blockchainHelpers'
import { Link } from 'react-router-dom';
import { setFlatFileContentToState, toast } from '../../utils/utils';
import { StepNavigation } from '../Common/StepNavigation';
import { NAVIGA... |
frontend/test/app/containers/ExperimentPage-test.js | 6a68/idea-town | import React from 'react';
import { expect } from 'chai';
import sinon from 'sinon';
import { shallow, mount } from 'enzyme';
import moment from 'moment';
import ExperimentPage, { ExperimentDetail } from '../../../src/app/containers/ExperimentPage';
import { initialState as newsletterState } from '../../../src/app/red... |
src/components/NotFound.js | merrettr/school-ui | import React from 'react';
const NotFound = () =>
<div>
<h3>Page not found</h3>
</div>;
export default NotFound; |
demo/src/App.js | bkrem/react-d3-tree | import React, { Component } from 'react';
import clone from 'clone';
import Tree from 'react-d3-tree';
import { version } from 'react-d3-tree/package.json';
import Switch from './components/Switch';
import MixedNodeElement from './components/MixedNodeElement';
import PureSvgNodeElement from './components/PureSvgNodeEle... |
examples/websockets/config/env/development.js | lore/lore | /**
* Development environment settings
*
* This file is where you define overrides for any of the config settings when operating under the
* development environment. Development environment is defined as `LORE_ENV=development` or the absence
* of a `LORE_ENV` environment variable.
**/
import _ from 'lodash';
imp... |
src/applications/financial-status-report/pages/income/spouse/currentIncome/index.js | department-of-veterans-affairs/vets-website | import React from 'react';
import TableDetailsView from '../../../../components/TableDetailsView';
import CustomReviewField from '../../../../components/CustomReviewField';
import Typeahead from '../../../../components/Typeahead';
import ItemLoop from '../../../../components/ItemLoop';
import { validateCurrency } from ... |
client/entry.js | GordonGaoNY/py_rrfm_re |
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import jss from 'jss';
import jssVendorPrefixer from 'jss-vendor-prefixer';
import jssPx from 'jss-px';
import jssNested from 'jss-nested';
import jssCamelCase from 'jss-camel-case';
import { Provider } from 'react-redux';
import { ... |
src/widgets/tabs/components/tab.spec.js | InseeFr/Pogues | import React from 'react';
import renderer from 'react-test-renderer';
import Tab from './tab';
describe('Tab', () => {
test('Should exists with the corresponding template', () => {
const props = {
label: 'Fake label',
path: 'fake path',
};
const tab = renderer
.create(
<Tab {.... |
app/javascript/mastodon/features/ui/components/video_modal.js | anon5r/mastonon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Video from '../../video';
import ImmutablePureComponent from 'react-immutable-pure-component';
export default class VideoModal extends ImmutablePureComponent {
static propTypes = {
m... |
src/components/Layouts/ReportLayout.js | demisto/sane-reports | import './ReportLayout.less';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { AutoSizer } from 'react-virtualized';
import {
SECTION_TYPES,
REPORT_HEADER_IMAGE_LEFT_TOKEN,
REPORT_HEADER_IMAGE_RIGHT_TOKEN,
GRID_LAYOUT_COLUMNS,
PAGE_BREAK_KEY, CHART_TYPES
} from '../../con... |
client/containers/NotFound.js | AlexFrazer/site | import React, { Component } from 'react';
export default class NotFound extends Component {
render() {
return (
<h1>Route not found</h1>
)
}
}
|
src/svg-icons/maps/pin-drop.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsPinDrop = (props) => (
<SvgIcon {...props}>
<path d="M18 8c0-3.31-2.69-6-6-6S6 4.69 6 8c0 4.5 6 11 6 11s6-6.5 6-11zm-8 0c0-1.1.9-2 2-2s2 .9 2 2-.89 2-2 2c-1.1 0-2-.9-2-2zM5 20v2h14v-2H5z"/>
</SvgIcon>
);
... |
src/containers/Asians/TabControls/BreakTeams/index.js | westoncolemanl/tabbr-web | import React from 'react'
import { connect } from 'react-redux'
import withStyles from 'material-ui/styles/withStyles'
import Typography from 'material-ui/Typography'
import { LinearProgress } from 'material-ui/Progress'
import CreateBreaks from './CreateBreaks'
import ViewBreaks from './ViewBreaks'
import Responsiv... |
docs/src/app/components/pages/components/FontIcon/Page.js | rhaedes/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 iconCode from '!raw!material-ui/FontIcon/FontIcon';
import iconReadmeText... |
admin/client/App/shared/CreateForm.js | frontyard/keystone | /**
* The form that's visible when "Create <ItemName>" is clicked on either the
* List screen or the Item screen
*/
import React from 'react';
import assign from 'object-assign';
import vkey from 'vkey';
import AlertMessages from './AlertMessages';
import { Fields } from 'FieldTypes';
import InvalidFieldType from '... |
sms_sponsorship/webapp/src/components/LangDialog.js | eicher31/compassion-modules | import React from 'react';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
import DialogTitle from '@material-ui/core/DialogTitle';
import SelectForm fr... |
kitchensink/ios/routes.js | allanfish/f8 | import React from 'react'
import { Route, IndexRoute } from 'react-router'
export default function getRoutes () {
return (
<Route path='/' component={require('./views/Framework').default}>
<IndexRoute component={require('./views/Index').default} />
<Route path='components'>
<Route path='view'... |
pootle/static/js/auth/components/SignInPanel.js | JohnnyKing94/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import { PureRenderMixin } from... |
webapp/pages/all_projects_page.js | dropbox/changes | import React from 'react';
import ChangesLinks from 'es6!display/changes/links';
import ChangesUI from 'es6!display/changes/ui';
import Request from 'es6!display/request';
import SectionHeader from 'es6!display/section_header';
import SimpleTooltip from 'es6!display/simple_tooltip';
import { ChangesPage, APINotLoadedP... |
app/containers/App/index.js | monkeyzealer/Andrew-Duesler | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
*/
import React from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles... |
src/components/FrontMatter/FrontMatter.js | patrickfatrick/audio-book-react | import React from 'react';
import PropTypes from 'prop-types';
import c from 'classnames';
import Block from '../Block';
import infoShape from '../../shapes/infoShape';
import frontmatterShape from '../../shapes/frontmatterShape';
import styles from './FrontMatter.css';
export default function FrontMatter({
info,
... |
docs/app/Examples/views/Feed/Content/FeedExampleExtraImagesShorthand.js | ben174/Semantic-UI-React | import React from 'react'
import { Feed } from 'semantic-ui-react'
const image = 'http://semantic-ui.com/images/avatar/small/helen.jpg'
const date = '3 days ago'
const summary = 'Helen Troy added 2 photos'
const extraImages = [
'http://semantic-ui.com/images/wireframe/image.png',
'http://semantic-ui.com/images/wir... |
src/routes/login/index.js | devcharleneg/twitter-react-app | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../co... |
react/src/components/AtomForm/SingleAttachments.js | sinfin/folio | import React from 'react'
import SingleSelectTrigger from 'components/SingleSelectTrigger'
import SingleAttachmentsWrap from './styled/SingleAttachmentsWrap'
export default function SingleAttachments ({ attachments, atom, remove, index, openFileModal }) {
return (
<SingleAttachmentsWrap>
{attachments.map(... |
src/components/Grid.js | kaicataldo/tonal-sequencer | // @flow
import React, { Component } from 'react';
import Square from './Square';
type Props = {
isPlaying: boolean,
toggleSquare: Function,
grid: Array<Array<{ isSelected: boolean }>>,
tempo: number,
type: WaveType,
scale: string
};
export default class Grid extends Component {
props: Props;
state ... |
packages/cockpit/ui/src/containers/TextEditorContainer.js | iurimatias/embark-framework | import React from 'react';
import {connect} from 'react-redux';
import PropTypes from 'prop-types';
import TextEditor from '../components/TextEditor';
import {
addEditorTabs as addEditorTabsAction,
fetchEditorTabs as fetchEditorTabsAction,
removeEditorTabs as removeEditorTabsAction,
toggleBreakpoint,
updateEd... |
src/components/PasswordInput/PasswordInput.spec.js | nreoch25/react-package-dev | import React from 'react';
import renderer from 'react-test-renderer';
import PasswordInput from './PasswordInput';
import {shallow} from 'enzyme';
test('toggles input type when show/hide password clicked', () => {
const wrapper = shallow(<PasswordInput
htmlId="test"
name="test"
value=""
onChange={()... |
docs/components/layout/Grid.js | casesandberg/reactcss | 'use strict'
import React from 'react'
import reactCSS, { m } from 'reactcss'
export class Grid extends React.Component {
static contextTypes = {
mobile: React.PropTypes.bool,
}
render() {
const styles = reactCSS({
'default': {
grid: {
display: 'flex',
alignItems: 'st... |
src/components/media/media-content.js | bokuweb/re-bulma | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from '../../../build/styles';
import { getCallbacks } from './../../helper/helper';
export default class MediaContent extends Component {
static propTypes = {
style: PropTypes.object,
children: PropTypes.any,
clas... |
admin/client/App/shared/AlertMessages.js | jstockwin/keystone | import React from 'react';
import { Alert } from 'elemental';
import { upcase } from '../../utils/string';
/**
* This renders alerts for API success and error responses.
* Error format: {
* error: 'validation errors' // The unique error type identifier
* detail: { ... } // Optional details specific to t... |
src/app.js | dhis2/datim-data-export-log | if (process.env.NODE_ENV !== 'production') {
jQuery.ajaxSetup({
headers: {
Authorization: 'Basic ' + btoa('admin:district'),
},
});
}
import 'babel-polyfill';
import 'd2-ui/scss/DataTable.scss';
import React from 'react';
import {render, findDOMNode} from 'react-dom';
import HeaderB... |
src/components/IdeaCell.js | benoitvallon/react-native-redux-app-100-10-1 | 'use strict';
import React, { Component } from 'react';
import {
TouchableOpacity,
StyleSheet,
Text,
View
} from 'react-native';
// import css variables
import design from '../design';
import * as ideaActions from '../actions/ideaActions';
import {bindActionCreators} from 'redux';
import { connect } from 're... |
test/fixtures/webpack-message-formatting/src/AppUnknownExport.js | jdcrensh/create-react-app | import React, { Component } from 'react';
import { bar } from './AppUnknownExport';
class App extends Component {
componentDidMount() {
bar();
}
render() {
return <div />;
}
}
export default App;
|
src/Badge/Badge.spec.js | w01fgang/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import Badge from './Badge';
import getMuiTheme from '../styles/getMuiTheme';
describe('<Badge />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (node) => shallow(node, {context: {mu... |
src/components/Book/Authors/Views/Mobile/tpl.js | LifeSourceUA/lifesource.ua | import React from 'react';
import Styles from './Styles/main.scss';
import Palette from 'theme/Palette';
import Arrow from 'components/Assets/Arrow';
function Mobile() {
return (
<section className={ Styles.authorsComponent }>
<h1 className={ Styles.title }>об авторе</h1>
<div cla... |
app/index.js | taggun/app-benchmark | import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import 'materialize-css/dist/js/materialize';
import 'materialize-loader';
import Root from './containers/Root';
import { configureStore, history } from './store/configureStore';
import './app.global.css';
c... |
packages/material-ui/src/styles/useTheme.js | lgollut/material-ui | import { useTheme as useThemeWithoutDefault } from '@material-ui/styles';
import React from 'react';
import defaultTheme from './defaultTheme';
export default function useTheme() {
const theme = useThemeWithoutDefault() || defaultTheme;
if (process.env.NODE_ENV !== 'production') {
// eslint-disable-next-line ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.