path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
src/components/Header/Header.js | Hawt-Lava/Flare | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Header.css';
import withStyles from '../../decorators/withStyles';
import Link from '../Link';
import Navigation from '../Navigation';
@withStyles(styles)
class Header extends Compo... |
src/js/components/modules/PenOptionDialog.js | at-ishikawa/paintlive | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as PenOptionDialogActions from 'actions/penOptionDialog';
import Button from './ui/Button';
import Dialog from './ui/Dialog';
import Slider from './ui/Slider';
import style from "modules/penOptionDial... |
__tests__/App-test.js | mdziurzynski/smsdraw | jest.unmock('../src/components/App');
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import App from '../src/components/App';
describe('App stages container', () => {
it('Initialised with stage = 0', () => {
const appElement = TestUtils.renderIntoD... |
react/features/invite/components/add-people-dialog/web/DialInSection.js | gpolitis/jitsi-meet | // @flow
import React from 'react';
import { translate } from '../../../../base/i18n';
import { connect } from '../../../../base/redux';
import { getDialInfoPageURL, hasMultipleNumbers } from '../../../functions';
import DialInNumber from './DialInNumber';
type Props = {
/**
* The numeric identifier for t... |
examples/react-es6/CheckboxWithLabel.js | IveWong/jest | import React from 'react';
class CheckboxWithLabel extends React.Component {
constructor(props) {
super(props);
this.state = {isChecked: false};
// since auto-binding is disabled for React's class model
// we can prebind methods here
// http://facebook.github.io/react/blog/2015/01/27/react-v0.1... |
tests/client/ui/components/TestOverlay.js | jasonthomas/addons-frontend | import React from 'react';
import { renderIntoDocument } from 'react-addons-test-utils';
import Overlay from 'ui/components/Overlay';
describe('<Overlay />', () => {
function render(props = {}) {
return renderIntoDocument(<Overlay {...props} />);
}
it('renders an Overlay', () => {
const root = render(... |
examples/huge-apps/routes/Course/routes/Grades/components/Grades.js | ryardley/react-router | import React from 'react';
class Grades extends React.Component {
render () {
var assignments = COURSES[this.props.params.courseId].assignments;
return (
<div>
<h3>Grades</h3>
<ul>
{assignments.map(assignment => (
<li key={assignment.id}>{assignment.grade} - {assi... |
exercise-04/src/index.js | learnapollo/pokedex-react | import React from 'react'
import ReactDOM from 'react-dom'
import Pokedex from './components/Pokedex'
import PokemonPage from './components/PokemonPage'
import { Router, Route, browserHistory } from 'react-router'
import ApolloClient, { createNetworkInterface } from 'apollo-client'
import { ApolloProvider } from 'react... |
src/components/Welcome/Welcome.spec.js | ihenvyr/react-app | import React from 'react';
import ReactDOM from 'react-dom';
import ReactTestUtils from 'react-addons-test-utils';
import Welcome from './Welcome';
function setup(propOverrides={}) {
let props = Object.assign({}, propOverrides);
return ReactTestUtils.renderIntoDocument(<Welcome {...props} />);
}
describe('compone... |
lib/containers/hyper.js | reslaurentii/hyper | /* eslint-disable react/no-danger */
import Mousetrap from 'mousetrap';
import React from 'react';
import Component from '../component';
import {connect} from '../utils/plugins';
import * as uiActions from '../actions/ui';
import HeaderContainer from './header';
import TermsContainer from './terms';
import Notificat... |
information/blendle-frontend-react-source/app/modules/premiumSignup/components/VodafoneConnect/index.js | BramscoChill/BlendleParser | import React from 'react';
import { withHandlers, withProps, compose } from 'recompose';
import { Backdrop, Button } from '@blendle/lego';
import withRouter from 'react-router/lib/withRouter';
import { getBaseUrl } from 'helpers/baseUrl';
import AuthStore from 'stores/AuthStore';
import AffiliatesStore from 'stores/Aff... |
packages/cf-component-icon/src/reactsvgs/Hamburger.js | jroyal/cf-ui | import React from 'react';
import PropTypes from 'prop-types';
const Hamburger = ({ className, label }) => (
<svg
className={className}
aria-label={label}
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
>
<path d="M14.3,1.7V4.22H1.7V1.7ZM1.7,14.3H14.3V11.78H1.7Zm0-5.04H14.3V6.74H1.7Z" />... |
src/components/hoc/Onboarding.js | golemfactory/golem-electron | import React from 'react';
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import * as Actions from '../../actions'
import Onboarding from './../onboarding';
/**
* { HIGH ORDER COMPONENT }
* { Onboarding component will check if user using the application first time or not}
*
* @c... |
modules/IndexLink.js | SpainTrain/react-router | import React from 'react'
import Link from './Link'
const IndexLink = React.createClass({
render() {
return <Link {...this.props} onlyActiveOnIndex={true} />
}
})
export default IndexLink
|
example/src/groups.js | romainberger/react-portal-tooltip | import React from 'react'
import List from './list'
export default class Groups extends React.Component {
render() {
return (
<div className="row" style={{marginTop: 20}}>
<div className="col-lg-12">
<div className="row">
<div className="col-lg-12">
The <code>gro... |
src/Calendar.js | ygt-mikekchar/react-calendar-pane | import React from 'react';
import moment from 'moment';
import Day from './Day';
import DayOfWeek from './DayOfWeek';
import Week from './Week';
let Calendar = React.createClass({
propTypes: {
onSelect: React.PropTypes.func.isRequired,
date: React.PropTypes.object,
month: React.PropTypes.... |
client/views/omnichannel/analytics/AnalyticsPage.stories.js | VoiSmart/Rocket.Chat | import React from 'react';
import AnalyticsPage from './AnalyticsPage';
export default {
title: 'omnichannel/AnalyticsPage',
component: AnalyticsPage,
};
export const Default = () => <AnalyticsPage />;
|
imports/ui/pages/SubmitPaperComponentPage/SubmitPaper/SubmitPaper.js | jamiebones/Journal_Publication | /* eslint-disable */
import React from 'react';
import PropTypes from 'prop-types';
import { Row, Col, FormGroup, ControlLabel,
Button , Well , Alert , Table } from 'react-bootstrap';
import { Meteor } from 'meteor/meteor';
import { withTracker } from 'meteor/react-meteor-data';
import MultipleStepJournal fro... |
example/src/index.js | ryo33/react-state-redux | import React from 'react'
import { render } from 'react-dom'
import { createStore, combineReducers, applyMiddleware } from 'redux'
import { Provider } from 'react-redux'
import createLogger from 'redux-logger';
import { reactStateReduxReducer } from '../../src/index'
import Example from './Example'
const logger = cr... |
docs/src/app/components/pages/components/LinearProgress/Page.js | frnk94/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 linearProgressReadmeText from './README';
import LinearProgressExampleSim... |
desafio-2/src/component/TodoAction.js | ricardo-jsx/desafios-iclinic | import React from 'react';
import PropTypes from 'prop-types';
import IconButton from 'material-ui/IconButton';
const DeleteTodo = ({onClick, children}) => (
<IconButton onTouchTap={onClick}>
{children}
</IconButton>
);
DeleteTodo.propTypes = {
onClick: PropTypes.func.isRequired
};
export default... |
src/components/Transfer.js | mingjiezhang/REACT-ATM | import React from 'react';
import {IndexLink} from 'react-router';
import { Radio } from 'antd';
import { Input,Button,Alert } from 'antd';
import styles from '../style/Choice.css';
import Show from '../style/Show.css';
const RadioGroup = Radio.Group;
class Transfer extends React.Component {
constructor(props) {
... |
react/features/speaker-stats/components/web/FaceExpressionsSwitch.js | jitsi/jitsi-meet | // @flow
import { makeStyles } from '@material-ui/core/styles';
import React from 'react';
import { useTranslation } from 'react-i18next';
import { Switch } from '../../../base/react';
const useStyles = makeStyles(theme => {
return {
switchContainer: {
display: 'flex',
alignItems:... |
tests/react_children/builtin_intrinsic.js | mroch/flow | // @flow
import React from 'react';
// OK: Builtin intrinsics do not need any children.
<builtin />;
// OK: The builtin intrinsics allow any children.
<builtin>
{}
{undefined}
{null}
{true}
{false}
{0}
{42}
{'hello world'}
foobar
<buz />
{[undefined, null, true, false, 0, 42, 'hello world', 'fo... |
src/index.js | boopeshmahendran/react-calculator | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/components/structures/CreateRoom.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, sof... |
src/ModalDialog.js | justinanastos/react-bootstrap | /*eslint-disable react/prop-types */
import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const ModalDialog = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
/**
* A Callback fired when the header closeButton or non-static backdrop is c... |
index.js | caTUstrophy/frontend | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { browserHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import Root from './containers/meta/Root'
import configureStore from './store/configureStore'
const store = configureStore()
const... |
elcri.men/src/components/TourismMap/LegendNumber.js | diegovalle/new.crimenmexico | import React from 'react';
import {format} from 'd3-format';
import {Legend, LegendSize, LegendItem, LegendLabel} from '@vx/legend';
import {useIntl, FormattedMessage} from 'react-intl';
const noDecimal = format ('.0f');
var round1 = format ('.1f');
const commaNoDecimal = format (',.0f');
function LegendNumber (props... |
examples/with-mobx/pages/index.js | nikvm/next.js | import React from 'react'
import { Provider } from 'mobx-react'
import { initStore } from '../store'
import Page from '../components/Page'
export default class Counter extends React.Component {
static getInitialProps ({ req }) {
const isServer = !!req
const store = initStore(isServer)
return { lastUpdate... |
src/components/ProgressBar.js | nickstanish/reprogressbars | import React from 'react';
import PropTypes from 'prop-types';
import ProgressProvider from './ProgressProvider';
import Bar from './Bar';
function only(originalObject, keys) {
const newObject = {};
keys.forEach((key) => {
if (originalObject[key] !== undefined) {
newObject[key] = originalObject[key];
... |
docs/app/Examples/elements/Segment/Groups/SegmentNestedSegmentsExample.js | jcarbo/stardust | import React from 'react'
import { Segment } from 'stardust'
const SegmentNestedSegmentsExample = () => (
<Segment.Group>
<Segment>Top</Segment>
<Segment.Group>
<Segment>Nested Top</Segment>
<Segment>Nested Middle</Segment>
<Segment>Nested Bottom</Segment>
</Segment.Group>
<Segment.... |
src/svg-icons/places/smoking-rooms.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesSmokingRooms = (props) => (
<SvgIcon {...props}>
<path d="M2 16h15v3H2zm18.5 0H22v3h-1.5zM18 16h1.5v3H18zm.85-8.27c.62-.61 1-1.45 1-2.38C19.85 3.5 18.35 2 16.5 2v1.5c1.02 0 1.85.83 1.85 1.85S17.52 7.2 16.... |
__tests__/index.android.js | pallyoung/weather | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
app/javascript/mastodon/features/pinned_statuses/index.js | vahnj/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchPinnedStatuses } from '../../actions/pin_statuses';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../compon... |
app/javascript/mastodon/components/__tests__/display_name-test.js | unarist/mastodon | import React from 'react';
import renderer from 'react-test-renderer';
import { fromJS } from 'immutable';
import DisplayName from '../display_name';
describe('<DisplayName />', () => {
it('renders display name + account name', () => {
const account = fromJS({
username: 'bar',
acct: 'bar@baz',
... |
src/browser/components/Footer.js | meatwallace/strap | import React from 'react';
import styles from './Footer.css';
const Footer = () => (
<div className={styles.container}>
<span className={styles.title}>strap</span>
</div>
);
Footer.propTypes = {};
export default Footer;
|
src/App.js | benjamindehli/chord-finder-app-test | // Dependecies
import React, { Component } from 'react';
import {Provider} from 'react-redux';
import {Route, Switch} from 'react-router';
import {ConnectedRouter} from 'connected-react-router';
import WebFont from 'webfontloader';
import { ThemeProvider } from '@material-ui/styles';
// Material UI
import CssBaseline ... |
react-flux-mui/js/material-ui/src/svg-icons/image/looks-one.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooksOne = (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-2zm-5 14h-2V9h-2V7h4v10z"/>
</SvgIcon>
);
ImageLooksOne = pure(ImageLooksOn... |
src/svg-icons/action/markunread-mailbox.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionMarkunreadMailbox = (props) => (
<SvgIcon {...props}>
<path d="M20 6H10v6H8V4h6V0H6v6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2z"/>
</SvgIcon>
);
ActionMarkunreadMailbox = pu... |
src/svg-icons/maps/directions-railway.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsRailway = (props) => (
<SvgIcon {...props}>
<path d="M4 15.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h12v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V5c0-3.5-3.58-4-8-4s-8 .5-8 4v10.5zm8 1.5c-1.1 0-2-.9-2-2s.9-2 2... |
containers/Categories.js | hutsi/bookkeeping | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as actions from '../actions';
import CategoryAdd from '../components/CategoryAdd';
import CategoryTable from '../components/CategoryTable';
class Ca... |
src/containers/Collapsible.js | qingweibinary/binary-next-gen | import React, { Component } from 'react';
export default class Collapsible extends Component {
static propTypes = {
title: React.PropTypes.string,
children: React.PropTypes.any,
};
render() {
const { title } = this.props;
return (
<details>
<su... |
src/svg-icons/action/euro-symbol.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionEuroSymbol = (props) => (
<SvgIcon {...props}>
<path d="M15 18.5c-2.51 0-4.68-1.42-5.76-3.5H15v-2H8.58c-.05-.33-.08-.66-.08-1s.03-.67.08-1H15V9H9.24C10.32 6.92 12.5 5.5 15 5.5c1.61 0 3.09.59 4.23 1.57L21 ... |
rn-11-02-SectionList.js | KyoungRan/react-native-ex-NDH | import React, { Component } from 'react';
import { View, Text, SectionList } from 'react-native';
export default class SectionListComponent extends Component {
render() {
let sectionData = [
{
key: 'A',
title: 'A',
data: [{ key: 'Alexander' }, { key: 'Alan Turing' }]
},
... |
src/js/components/video/PlayButton.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Intl from '../../utils/Intl';
import CSSClassnames from '../../utils/CSSClassnames';
import Button from '../Button';
import CirclePlayIcon from '../icons/base/Circle... |
docs/src/app/components/pages/components/Tabs/ExampleSwipeable.js | w01fgang/material-ui | import React from 'react';
import {Tabs, Tab} from 'material-ui/Tabs';
// From https://github.com/oliviertassinari/react-swipeable-views
import SwipeableViews from 'react-swipeable-views';
const styles = {
headline: {
fontSize: 24,
paddingTop: 16,
marginBottom: 12,
fontWeight: 400,
},
slide: {
... |
app/static/src/diagnostic/LabList.js | SnowBeaver/Vision | import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
var selectRowProp = {
mode: "checkbox",
clickToSelect: true,
bgColor: "rgb(238, 193, 213)",
onSelect: onRowSelect
};
var cellEditProp = {
mode: "click",
blurToSave: true,
afterSaveCell: o... |
app/javascript/components/Schedule/BulkGenerateConfirm.js | rubycentral/cfp-app | import React, { Component } from 'react';
import PropTypes from 'prop-types';
class BulkGenerateConfirm extends Component {
render() {
const { cancelBulkPreview, openBulkTimeSlotModal, requestBulkTimeSlotCreate } = this.props;
return (
<div className="generate-confirm">
<span>Previewing Grid c... |
uis/mp-next/src/components/LabelBottomNavigation.js | andrew-hai/bdgt | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import BottomNavigation, { BottomNavigationAction } from 'material-ui/BottomNavigation';
import RestoreIcon from 'material-ui-icons/Restore';
import FavoriteIcon from 'material-ui-icons/Favorite';
const styl... |
client/modules/App/components/Login/Login.js | codejunky/neda | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import isEmpty from 'lodash.isempty';
import { loginUser } from '../../AppActions';
import { validateLogin } from '../../../../util/validator';
class Login extends Component {
constructor(props) {
... |
src/components/Nav.js | cowlik/cowlik | import React from 'react';
import { NavLink } from 'react-router-dom';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import './Nav.scss';
import app from '../data/app.json';
import work from '../data/work.json';
const Nav = React.forwardRef((props, ref) => (
<nav id="nav" ref={ref}>
<di... |
src/js/components/ui/forms/ModalFormErrorList.js | knowncitizen/tripleo-ui | /**
* Copyright 2017 Red Hat Inc.
*
* 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/priest/holy/modules/features/HolyPriestHealingEfficiencyBreakdown.js | fyruna/WoWAnalyzer | import React from 'react';
import HealingEfficiencyBreakdown from 'parser/core/healingEfficiency/HealingEfficiencyBreakdown';
import Toggle from 'react-toggle';
import SpellLink from 'common/SpellLink';
import SPELLS from 'common/SPELLS/index';
class HolyPriestHealingEfficiencyBreakdown extends HealingEfficiencyBreakd... |
Console/app/node_modules/antd/es/input/Group.js | RisenEsports/RisenEsports.github.io | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import React from 'react';
import classNames from 'classnames';
var Group = function Group(props) {
var _classNames;
var _props$prefixCls = props.prefixCls,
prefixCls = _props$prefixCls === undefined ? 'ant-input-group' : _props$prefix... |
geonode/monitoring/frontend/src/components/organisms/software-performance/index.js | mcldev/geonode | import React from 'react';
import PropTypes from 'prop-types';
import RaisedButton from 'material-ui/RaisedButton';
import ChartIcon from 'material-ui/svg-icons/av/equalizer';
import HoverPaper from '../../atoms/hover-paper';
import GeonodeData from '../../cels/geonode-data';
import WSData from '../../cels/ws-data';
im... |
demo/example.js | machaj/react-historic-timeline | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware, compose} from 'redux';
import logger from 'redux-logger'
import reducer from '../src/reducers';
import TimelineWrapper from '../lib/TimelineWrapper.js';
import TimelineBox2x from ... |
src/components/sketched/SketchPresetColors.js | Scratch-it/react-color | 'use strict' /* @flow */
import React from 'react'
import ReactCSS from 'reactcss'
import shallowCompare from 'react-addons-shallow-compare'
export class SketchPresetColors extends ReactCSS.Component {
shouldComponentUpdate = shallowCompare.bind(this, this, arguments[0], arguments[1])
classes(): any {
return... |
modules/__tests__/transitionHooks-test.js | fiture/react-router | /*eslint-env mocha */
/*eslint react/prop-types: 0*/
import expect, { spyOn } from 'expect'
import React from 'react'
import createHistory from 'history/lib/createMemoryHistory'
import execSteps from './execSteps'
import Router from '../Router'
describe('When a router enters a branch', function () {
let node, Dashb... |
src/svg-icons/image/assistant.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageAssistant = (props) => (
<SvgIcon {...props}>
<path d="M19 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5.12 10.88L12 17l-1.88-4.12L6 11l4.12-1.88L12 5l1.88 4.12L18 11... |
src/preSite/js/app.js | Hoglar/hoglarblog | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
// Import Css files
import '../css/styles.css';
import './modules/sidebar/sidebar.css'
import './modules/dictionary/dictionary.css';
import './modules/footer/footer.css';
import './modules/header/header.css';
import './modules/register/registe... |
src/admin/utils/format.js | ccetc/platform | import React from 'react'
import _ from 'lodash'
import moment from 'moment'
import numeral from 'numeral'
class Format extends React.Component {
render() {
const { format } = this.props
if(_.isFunction(format)) {
return format(this.props)
} else if(format === 'status') {
return Status(this.... |
examples/official-storybook/stories/addon-toolbars.stories.js | kadirahq/react-storybook | import React from 'react';
import { styled } from '@storybook/theming';
export default {
title: 'Addons/Toolbars',
};
const getCaptionForLocale = (locale) => {
switch (locale) {
case 'es':
return 'Hola!';
case 'fr':
return 'Bonjour!';
case 'zh':
return '你好!';
case 'kr':
ret... |
client/Main/Content/Images/Collection/CollectionView/CollectionView.js | PicDrop/PicDrop | import React from 'react';
import { Link, browserHistory } from 'react-router';
import Paper from 'material-ui/lib/paper';
import Card from 'material-ui/lib/card/card';
import CardActions from 'material-ui/lib/card/card-actions';
import CardMedia from 'material-ui/lib/card/card-media';
import CardTitle from 'material-u... |
example/src/steps/PageSizeStep.js | rsamec/photo-gallery | import React from 'react';
import BindToMixin from 'react-binding';
import InputRange from 'react-input-range';
import PageSizes from '../utils/pageSizes';
import _ from 'lodash';
const IMAGE_FACTOR = 10;
const PgeSizesList = _.map(PageSizes, function (value, key, index) {
return {
key: key,
... |
src/components/Note/Preview/BibleVerse.js | bibleexchange/be-front-new | import React from 'react';
import { Link } from 'react-router';
function slugIt(string) {
return string.toLowerCase().split(' ').join('_').replace(':', '_');
}
class BibleVerseNoteComponent extends React.Component {
render() {
return (
<div style={{ margin: '15px', fontSize: '1.3em' }}>
<Link to={'/bible... |
docs/src/app/components/pages/components/GridList/Page.js | kasra-co/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 gridListReadmeText from './README';
import gridListExampleSimpleCode from... |
web-app/src/shared/components/Table/DateColumn.js | crypticism/FF | import React from 'react';
import { stringifyDate } from '../../utils/dateUtils';
export default function DateColumn({ value }) {
return <span>{stringifyDate(new Date(value))}</span>;
}
|
src/react.js | iam4x/redux | import React from 'react';
import createAll from './components/createAll';
export const { Provider, Connector, provide, connect } = createAll(React);
|
src/index.js | ProvoJS/node-api-server | import './styles/main.scss';
import React from 'react';
import Router from 'react-router';
import routes from './config/routes';
Router.run(routes, function(Handler) {
React.render(<Handler />, document.getElementById('app'));
});
|
test/react-test/piece-of-text.js | clbn/freefeed-gamma | import test from 'tape';
import React from 'react';
import sd from 'skin-deep';
import PieceOfText from 'src/components/elements/piece-of-text';
const renderText = (text, isExpanded = false) => {
const tree = sd.shallowRender(React.createElement(PieceOfText, { text, isExpanded }));
return tree.getRenderOutput().p... |
src/components/checkbox.js | raulmatei/frux-table-test | import React, { Component } from 'react';
const Checkbox = (props) => {
const { onChange, indeterminate, checked } = props;
return (
<span
style={{
display: 'inline-block',
width: 13,
maxWidth: 13,
height: 13,
maxHeight: 13,
fontSize: 10,
... |
src/Avatar/Avatar.spec.js | manchesergit/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import Avatar from './Avatar';
import getMuiTheme from '../styles/getMuiTheme';
describe('<Avatar />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (node) => shallow(node, {context: ... |
example/src/example.js | rsamec/react-property-editor | import React from 'react';
import ReactDOM from 'react-dom';
import _ from 'lodash';
import PropertyEditor from 'react-property-editor';
import Binder from 'react-binding';
import Json from 'react-json-fork';
import WidgetFactory from './WidgetFactory.js';
import WidgetRenderer from './WidgetRenderer.js';
var options ... |
src/svg-icons/navigation/arrow-downward.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowDownward = (props) => (
<SvgIcon {...props}>
<path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"/>
</SvgIcon>
);
NavigationArrowDownward = pure(NavigationArrowDownward);
Na... |
src/js/components/icons/base/FormClose.js | linde12/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
src/native/app/components/Container.js | xiankai/triple-triad-solver | /* @flow */
import React from 'react';
import theme from '../themes/initial';
import { StyleSheet, View } from 'react-native';
const styles = StyleSheet.create({
container: {
flex: 1,
},
});
const Container = ({ inverse, style, ...props }: any) => {
const backgroundColor = inverse
? theme.inverseBackgro... |
jekyll-admin/src/components/metadata/tests/metaobject.spec.js | mparlak/mparlak.github.io | import React from 'react';
import { mount } from 'enzyme';
import _ from 'underscore';
import MetaObject from '../MetaObject';
import MetaObjectItem from '../MetaObjectItem';
const defaultProps = {
fieldKey: 'organization',
fieldValue: {
name: 'github',
site: 'github.com'
},
nameAttr: 'metadata["organ... |
src/components/voting/votingBar.js | LiskHQ/lisk-nano | import { translate } from 'react-i18next';
import React from 'react';
import grid from 'flexboxgrid/dist/flexboxgrid.css';
import style from './votingBar.css';
import votingConst from '../../constants/voting';
import { getTotalVotesCount, getVoteList, getUnvoteList } from './../../utils/voting';
const VotingBar = ({ ... |
docs/src/app/components/pages/components/TextField/Page.js | frnk94/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 textFieldReadmeText from './README';
import TextFieldExampleSimple from '... |
src/containers/DevTools/DevTools.js | maddles/what-time | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor toggleVisibilityKey="ctrl-H"
changePositionKey="ctrl-Q">
<LogMonitor /... |
packages/bonde-admin/src/components/forms/form-dropdown.spec.js | ourcities/rebu-client | /* eslint-disable no-unused-expressions */
import React from 'react'
import { expect } from 'chai'
import { shallow } from 'enzyme'
import { FormDropdown } from '@/components/forms'
describe('client/components/forms/form-dropdown', () => {
let wrapper
beforeEach(() => {
wrapper = shallow(<FormDropdown />, { ... |
src/main/webapp/static/js/club/view/blog/head.js | weijiafen/antBlog | import React from 'react';
import { Row , Col ,Menu , Button , Modal } from 'antd';
import blogService from '../../service/blogService';
const SubMenu = Menu.SubMenu;
var head=React.createClass({
getInitialState(){
let categoryId=this.props.typeId;
let userId=this.props.userId;
return {
name:"",
photo:"",
... |
src/components/TextareaBox/TextareaBox.stories.js | austinknight/ui-components | import React from 'react';
import {
storiesOf,
action
} from '@storybook/react';
import TextareaBox from './TextareaBox';
import {
wrapComponentWithContainerAndTheme,
colors,
} from "../styles";
function renderChapterWithTheme(theme) {
return {
info: `
Usage
~~~
import React ... |
examples/star-wars/js/components/StarWarsApp.js | mroch/relay | /**
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNES... |
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js | riku6460/chikuwagoddon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components';
import Overlay from 'react-overlays/lib/Overlay';
import classNames from 'classnames';
import ImmutablePropTypes from ... |
src/svg-icons/notification/system-update.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSystemUpdate = (props) => (
<SvgIcon {...props}>
<path d="M17 1.01L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14zm-1-6h-3V8h-2v5H8l4 4 4-4z"/>
</Sv... |
src/web/ssr.js | foxhound87/rfx-stack | /* eslint react/jsx-filename-extension: [1, { "extensions": [".js", ".jsx"] }] */
import isDev from 'isdev';
import React from 'react';
import Helmet from 'react-helmet';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import { renderToString } from 'react-dom/server';
import { RouterContext } from ... |
__tests__/index.android.js | catdematos98/FTCScout | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/components/common/svg-icons/action/subject.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSubject = (props) => (
<SvgIcon {...props}>
<path d="M14 17H4v2h10v-2zm6-8H4v2h16V9zM4 15h16v-2H4v2zM4 5v2h16V5H4z"/>
</SvgIcon>
);
ActionSubject = pure(ActionSubject);
ActionSubject.displayName = 'Acti... |
docs/src/ComponentsPage.js | omerts/react-bootstrap | /* eslint react/no-did-mount-set-state: 0 */
import React from 'react';
import Affix from '../../src/Affix';
import Nav from '../../src/Nav';
import SubNav from '../../src/SubNav';
import NavItem from '../../src/NavItem';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PropTable from '... |
frontend/app/js/components/processes/index.js | serverboards/serverboards | import React from 'react'
import Loading from '../loading'
import rpc from 'app/rpc'
import store from 'app/utils/store'
import { goto } from 'app/utils/store'
import {i18n, i18n_nop} from 'app/utils/i18n'
const class_for_status={
"": "",
"error": "negative",
"aborted": "negative",
"running": "positive"
}
i18... |
frontend/src/components/MainNavBar.js | icedcoffeeallday/CostPers | import React, { Component } from 'react';
import { Text, TouchableOpacity } from 'react-native';
import { NavigationBar, NavBar } from 'react-native-router-flux';
class MainNavBar extends Component {
render(){
return (
<NavBar
title="title"
/>
);
}
}
export default MainNavBar;
|
packages/bonde-admin/src/mobrender/widgets/draft/components/draft.spec.js | ourcities/rebu-client | /* eslint-disable no-unused-expressions */
import React from 'react'
import { expect } from 'chai'
import { mountWithIntl } from '@/intl/helpers'
import { Draft } from '@/mobrender/widgets/draft/components'
import widgetsConfig from '@/mobrender/widgets/config'
describe('client/mobrender/widgets/draft/components/draft... |
assets/javascripts/kitten/components/graphics/icons-next/bank-card-icon-next/index.js | KissKissBankBank/kitten | import React from 'react'
import PropTypes from 'prop-types'
export const BankCardIconNext = ({ color, title, ...props }) => (
<svg
width="24"
height="21"
viewBox="0 0 24 21"
xmlns="http://www.w3.org/2000/svg"
fill="none"
{...props}
>
{title && <title>{title}</title>}
<path
fi... |
src/components/ResultDatabase.js | superphy/reactapp | import React, { Component } from 'react';
import { connect } from 'react-refetch'
// progress bar
import CircularProgress from 'react-md/lib/Progress/CircularProgress';
// requests
import { API_ROOT } from '../middleware/api'
// Table
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
class Res... |
example/src/components/IndoorBuilding.js | bsudekum/react-native-mapbox-gl | import React from 'react';
import {View, StyleSheet} from 'react-native';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import {Slider} from 'react-native-elements';
import sheet from '../styles/sheet';
import colors from '../styles/colors';
import indoorMapGeoJSON from '../assets/indoor_3d_map.json';
import... |
stalk-messenger/app/components/tabs/chats/ChatCell.js | JohnKim/stalk.messenger | /**
*
* @flow
*/
'use strict';
import React, { Component } from 'react';
import {
Text,
View,
TouchableHighlight,
StyleSheet,
PixelRatio,
} from 'react-native';
import { S5ProfilePicture, S5GridPicture, S5Icon } from 's5-components';
export default class ChatCell extends Component {
static propTypes ... |
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-forms-v3-text.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin} from './../common/common.js';
import TextInput from './internal/text-input.js';
import TextInputMixin from './mixins/text-input-mixin.js'
import ItemList from './internal/item-list.js';
import Backdrop from './../bricks/backdrop.js';
import './text.les... |
pilgrim3/components/fileBrowser.js | opendoor-labs/pilgrim3 | import React from 'react';
import state from './state';
import { map, compact } from 'lodash';
import { Link } from 'react-router';
import OptionsTable from './optionsTable'
import DocBlock from './docBlock'
import LinkBlock from './linkBlock'
export default class FileBrowser extends React.Component {
dependencyItem... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.