path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
assets/scripts/src/components/ScoreBoard.js | jshjohnson/NumberRush | // React
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
// Utilities
import { whichAnimationEvent, addAnimation } from '../libs/utils';
import classNames from 'classnames';
class ScoreBoard extends Component {
componentWillReceiveProps(nextProps) {
if(this.props.score != ... |
src/js/components/icons/base/Workshop.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/js/components/icons/base/Dashboard.js | odedre/grommet-final | /**
* @description Dashboard SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @... |
Web Developer Skills/Learn ReactJS Part II/Unit 07 propTypes/03 Add Properties To PropTypes/BookList.js | ummahusla/codecademy-exercise-answers | import React from 'react';
import ReactDOM from 'react-dom';
import { BestSeller } from './BestSeller';
export class BookList extends React.Component {
render() {
return (
<div>
<h1>Best Sellers</h1>
<div>
<ol>
<BestSeller
title="Glory and War Stuff for D... |
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js | kolpav/react-redux-starter-kit | import React from 'react'
import { reduxForm } from 'redux-form'
export const fields = []
const validate = (values) => {
const errors = {}
return errors
}
type Props = {
handleSubmit: Function,
fields: Object,
}
export class <%= pascalEntityName %> extends React.Component {
props: Props;
defaultProps = ... |
client/src/index.js | jasonkaskel/projectdraft | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
code/workspaces/web-app/src/components/welcome/DescribeElementCardBanner.js | NERC-CEH/datalab | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Icon from '@material-ui/core/Icon';
import Typography from '@material-ui/core/Typography';
import theme from '../../theme';
const contentContainer = {
display: 'flex',
flexDirection: 'row',
... |
frontend/src/components/user-settings/list-in-address-book.js | miurahr/seahub | import React from 'react';
import { gettext } from '../../utils/constants';
class ListInAddressBook extends React.Component {
constructor(props) {
super(props);
const { list_in_address_book } = this.props.userInfo;
this.state = {
inputChecked: list_in_address_book
};
}
handleInputChange =... |
src/components/CompleteColumn.js | vsherms/LifeCoach | import React from 'react';
import {Col} from 'react-bootstrap';
import { inject, observer } from 'mobx-react';
class CompleteColumn extends React.Component{
render(){
let completeGoals = this.props.goalStore.goalsArr.filter(goal => goal.status == 'complete');
let displayCompleteColumnGoals = completeGoals.ma... |
tests/site6/src/text/callout.js | dominikwilkowski/cuttlebelle | import PropTypes from 'prop-types';
import React from 'react';
/**
* The callout component
*/
const Callout = ( page ) => {
return (
<div className={ `uikit-body uikit-grid callout` } >
<div className="container">
<div className="row">
<div className="col-md-12">
<div className="textwrapper callout... |
packages/mineral-ui-icons/src/IconLocalPostOffice.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 IconLocalPostOffice(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...ic... |
app/javascript/flavours/glitch/features/ui/components/modal_loading.js | Kirishima21/mastodon | import React from 'react';
import LoadingIndicator from 'flavours/glitch/components/loading_indicator';
// Keep the markup in sync with <BundleModalError />
// (make sure they have the same dimensions)
const ModalLoading = () => (
<div className='modal-root__modal error-modal'>
<div className='error-modal__body... |
docs/src/pages/TablesPage.js | mattBlackDesign/react-materialize | import React from 'react';
import Row from 'Row';
import Col from 'Col';
import ReactPlayground from './ReactPlayground';
import PropTable from './PropTable';
import Samples from './Samples';
import tableBorderless from '../../../examples/BorderlessTable';
import TableCode from '!raw-loader!Table';
const TablesPage = ... |
app/javascript/mastodon/components/column_back_button.js | verniy6462/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
export default class ColumnBackButton extends React.PureComponent {
static contextTypes = {
router: PropTypes.object,
};
handleClick = () => {
if (window.history && window.history.length === 1)... |
src/containers/Contact/index.js | allyrippley/7ds | import React from 'react'
import {connect} from 'react-redux'
import {bindActionCreators} from 'redux'
import * as actions from '../../actions/heroActions'
const Contact = (props) => {
window.console.log('MainContactProps: ', props)
return (
<div style={{width: '100%', paddingTop: 55}}>
<div>
<f... |
app/modules/todoList/TodoPage.js | fredguile/react-redux-es2015-starter-kit | import React from 'react';
import {Link} from 'react-router';
import {connect} from 'react-redux';
import {addTodoItem, removeTodoItem} from './todoActions';
class TodoPage extends React.Component {
render() {
const {todos} = this.props;
return (
<section>
<h1 className="text-center">TodoPage... |
app/javascript/mastodon/features/compose/components/character_counter.js | maa123/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { length } from 'stringz';
export default class CharacterCounter extends React.PureComponent {
static propTypes = {
text: PropTypes.string.isRequired,
max: PropTypes.number.isRequired,
};
checkRemainingText (diff) {
if (diff < 0)... |
src/media/js/website/containers/landing.js | ngokevin/marketplace-content-tools | import React from 'react';
import {ReverseLink} from 'react-router-reverse';
export default class WebsiteLanding extends React.Component {
render() {
return (
<section>
<h1>Websites</h1>
<ul>
<li><ReverseLink to="website-review">Review</ReverseLink></li>
<li><ReverseLin... |
app/components/UserInfo.js | sjonner/bgg-buddy | import React from 'react';
import assign from 'object-assign';
import styles from './App.css';
export default React.createClass({
render() {
const user = this.props.user;
return (
<dl>
<dt>id</dt>
<dd>{user.id}</dd>
<dt>name</dt>
<dd>{user.name}</dd>
<dt>year r... |
src/DateHeader.js | intljusticemission/react-big-calendar | import PropTypes from 'prop-types'
import React from 'react'
const DateHeader = ({ label, drilldownView, onDrillDown }) => {
if (!drilldownView) {
return <span>{label}</span>
}
return (
<a href="#" onClick={onDrillDown}>
{label}
</a>
)
}
DateHeader.propTypes = {
label: PropTypes.node,
d... |
client/utils/RouteUtil.js | ncrmro/ango | /* eslint-disable */
import React from 'react'
import Route from 'react-router-dom/es/Route'
import Switch from 'react-router-dom/es/Switch'
import queryString from 'query-string'
//import analyticsCallback from './analyticsCallback'
export const cleanNullKeysFromObject = (object) => {
// Remove null values from o... |
src/svg-icons/maps/person-pin.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsPersonPin = (props) => (
<SvgIcon {...props}>
<path d="M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 3.3c1.49 0 2.7 1.21 2.7 2.7 0 1.49-1.21 2.7-2.7 2.7-1.49 0-2... |
fields/types/html/editor/annotation/annotation-decorator.js | nickhsine/keystone | 'use strict';
import { Entity } from 'draft-js';
import ENTITY from '../entities';
import React from 'react';
import classNames from 'classnames';
class Annotation extends React.Component {
constructor (props) {
super(props);
this.state = {
isExpanded: false,
};
this.handleExpand = this._handleExpand.bind(t... |
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/src/CardGroup.js | GoogleCloudPlatform/prometheus-engine | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { mapToCssModules, tagPropType } from './utils';
const propTypes = {
tag: tagPropType,
className: PropTypes.string,
cssModule: PropTypes.object,
};
const defaultProps = {
tag: 'div'
};
const CardGroup =... |
www/oldhawaii_metadata/apps/static/jsx/components/SourceForm.js | oldhawaii/oldhawaii-metadata | 'use strict';
import React from 'react';
class SourceForm extends React.Component {
constructor(props) {
super(props);
this.submit = this.submit.bind(this);
this.handleChange = this.handleChange.bind(this);
}
displayName() {
return 'SourceForm';
}
handleChange(key) {
return function (... |
src/components/LinkButton.js | OpenCollective/frontend | import React from 'react';
import Link from './Link';
class LinkButton extends React.Component {
render() {
return (
<div className={`LinkButton ${this.props.className} ${this.props.disabled ? 'disabled' : ''}`}>
<style global jsx>
{`
.LinkButton > a {
height: 29... |
src/svg-icons/maps/train.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsTrain = (props) => (
<SvgIcon {...props}>
<path d="M12 2c-4 0-8 .5-8 4v9.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h2.23l2-2H14l2 2h2v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V6c0-3.5-3.58-4-8-4zM7.5 17c-.83 0-1.5-.67-1.... |
src/pages/layout/Layout.js | Perspicere/PerspicereMagazine | // external import
import React from 'react'
import PropTypes from 'prop-types'
// import cx from 'classnames'
import Header from '../header'
// import Footer from '../Footer'
import styles from './styles.js'
import Navigation from '../navigation'
export default class Layout extends React.Component {
static propTyp... |
src/components/Loading.js | ncaron/local-weather | import React from 'react';
import PropTypes from 'prop-types';
const Loading = ({ message }) => {
return (
<h1 className="loading">{message}</h1>
);
};
Loading.propTypes = {
message: PropTypes.string.isRequired
};
export default Loading;
|
src/SplitButton.js | HPate-Riptide/react-bootstrap | import React from 'react';
import Button from './Button';
import Dropdown from './Dropdown';
import SplitToggle from './SplitToggle';
import splitComponentProps from './utils/splitComponentProps';
const propTypes = {
...Dropdown.propTypes,
// Toggle props.
bsStyle: React.PropTypes.string,
bsSize: React.PropT... |
src/Table.js | brentertz/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const Table = React.createClass({
propTypes: {
striped: React.PropTypes.bool,
bordered: React.PropTypes.bool,
condensed: React.PropTypes.bool,
hover: React.PropTypes.bool,
responsive: React.PropTypes.bool
},
render() {
let c... |
frontend/js/components/layout/MenuLateral.js | antoniovj1/infraestructura_virtual_ugr | import React from 'react';
import Drawer from 'material-ui/Drawer';
import { MenuItem } from 'material-ui/Menu';
import MenuIcon from 'material-ui-icons/Menu';
import IconButton from 'material-ui/IconButton';
import { Link } from 'react-router-dom';
import PropTypes from 'prop-types';
import { withStyles } from 'materi... |
examples/next-speechchallenge/pages/_app.js | itslanguage/itslanguage-js | import React from 'react';
import PropTypes from 'prop-types';
import '../styles/global.css';
function App({ Component, pageProps }) {
/* eslint-disable react/jsx-props-no-spreading */
return <Component {...pageProps} />;
}
App.propTypes = {
Component: PropTypes.elementType.isRequired,
/* eslint-disable reac... |
src/App.js | GelaniNijraj/Hovert | import React from 'react';
import ReactDOM from 'react-dom';
import NavBar from './components/NavBar';
import Footer from './components/Footer';
const App = React.createClass({
render() {
return (
<div>
<NavBar />
{this.props.children}
<Footer />
</div>
)
}
});
export ... |
app/jsx/files/DragFeedback.js | djbender/canvas-lms | /*
* Copyright (C) 2015 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
mod14/src/App.js | mauricedb/mwd-2017-02-20 | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import Page1 from './Page1';
import Page2 from './Page2';
import {Route, Link} from 'react-router-dom';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
... |
clients/privacy/components/FieldGroup.js | Desertsnowman/Caldera-Forms | import React from 'react';
import { FormGroup,FormControl,ControlLabel,HelpBlock } from 'react-bootstrap';
export function FieldGroup({ id, label, help, ...props }) {
return (
<FormGroup controlId={id}>
<ControlLabel>{label}</ControlLabel>
<FormControl {...props} />
{hel... |
src/addons/dragAndDrop/WeekWrapper.js | TeaBough/react-big-calendar | import PropTypes from 'prop-types'
import React from 'react'
import * as dates from '../../utils/dates'
import { getSlotAtX, pointInBox } from '../../utils/selection'
import { findDOMNode } from 'react-dom'
import { eventSegments } from '../../utils/eventLevels'
import Selection, { getBoundsForNode } from '../../Selec... |
analysis/demonhuntervengeance/src/modules/spells/SoulCleaveSoulsConsumed.js | yajinni/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import { SpellLink } from 'interface';
import { formatPercentage } from 'common/format';
import { t } from '@lingui/macro';
import SoulFragmentsConsume from '../statistics/SoulFragmentsConsume';
import SoulFrag... |
frontend/node_modules/airbnb-prop-types/src/componentWithName.js | goodman001/20170927express | import React from 'react';
import isRegex from 'is-regex';
import find from 'array.prototype.find';
import getComponentName from './helpers/getComponentName';
import wrapValidator from './helpers/wrapValidator';
function hasName(name, prop, propName, componentName, ...rest) {
if (Array.isArray(prop)) {
return f... |
tests/site6/scripts/uikit/cta-link.js | dominikwilkowski/cuttlebelle | /*! @gov.au/cta-link v0.3.0 */
/***************************************************************************************************************************************************************
*
* cta-link function
*
* Provide a see more/all link when there are too many items to show in the current context.
*
****... |
src/Label.js | prometheusresearch/react-forms | /**
* @copyright 2015, Prometheus Research, LLC
*/
import React from 'react';
export default function Label({schema = {}, label = schema.label}) {
return label ? <label>{label}</label> : <noscript />;
}
|
src/components/badges/demos/IconOverText.js | isogon/material-components | import React from 'react'
import { Badge, Icon } from '../../../'
export default () => <Badge text={<Icon sm name="done" />}>Walk the dog</Badge>
|
es/transitions/Grow.js | uplevel-technology/material-ui-next | 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; };
function _objectWithoutProperties(obj, keys) { var target = {... |
src/Parser/Hunter/BeastMastery/Modules/Items/RoarOfTheSevenLions.js | hasseboulen/WoWAnalyzer | import React from 'react';
import ITEMS from 'common/ITEMS';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import SPELLS from 'common/SPELLS';
import { formatNumber, formatPercentage } from 'common/format';
import TimeFocusCapped from 'Parser/Hunter/Shared/Modul... |
src/index.js | joefraley/ratticusscript | import React from 'react'
import ReactDOM from 'react-dom'
import ReactServer from 'react-dom/server'
import { Router, createMemoryHistory } from 'react-router'
import Helmet from 'react-helmet'
import { createMarkup } from './utilities'
import { App } from './components/app'
import Routes from './components/routes'
i... |
src/redux/utils/createDevToolsWindow.js | samzhao/HR-Recruitment-Management-System | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import DevTools from '../../containers/DevToolsWindow'
export default function createDevToolsWindow (store) {
const win = window.open(
null,
'redux-devtools', // give it a name so it reuses the same window
`... |
src/components/about/About.js | Oritechnology/pubApp | import React from 'react'
import './About.css'
const About = props => (
<div className='About'>
<header className='About-header'>
<h2>A blurb about this app</h2>
</header>
</div>
)
export default About
|
components/watch/Watch.js | zhiyuanMA/ReactNativeShowcase | import React, { Component } from 'react';
import { Platform, View, StatusBar, StyleSheet } from 'react-native';
import WatchRecord from './WatchRecord';
import WatchFace from './WatchFace';
import WatchControl from './WatchControl';
let interval;
const initialState = {
stopWatch: false,
resetWatch: true,
... |
spec/javascripts/jsx/theme_editor/ThemeEditorFileUploadSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2016 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
modules/TransitionHook.js | Jastrzebowski/react-router | import React from 'react';
import warning from 'warning';
var { object } = React.PropTypes;
var TransitionHook = {
contextTypes: {
router: object.isRequired
},
componentDidMount() {
warning(
typeof this.routerWillLeave === 'function',
'Components that mixin TransitionHook should have a rou... |
definitions/npm/react-redux_v5.x.x/flow_v0.30.x-v0.52.x/test_Provider.js | mwalkerwells/flow-typed | // @flow
import React from 'react'
import { Provider } from 'react-redux'
// $ExpectError
const provider = <Provider />; // missing store
|
src/ui/page/Ide/index.js | jkubos/tickator-ide | import React from 'react'
import {observer} from 'mobx-react'
const jQuery = require('jquery/dist/jquery.min')
import styles from './style.less'
import {UiState} from '~/src/business/UiState'
import {Screens} from '~/src/business/Screens'
import {BusinessSpace} from '~/src/business/BusinessSpace'
import {Connector}... |
app/javascript/mastodon/features/favourited_statuses/index.js | corzntin/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchFavouritedStatuses, expandFavouritedStatuses } from '../../actions/favourites';
import Column from '../ui/components/column';
import ColumnHeade... |
docs/app/Examples/collections/Grid/ResponsiveVariations/GridReversedMobileVerticallyExample.js | jamiehill/stardust | import React from 'react'
import { Grid } from 'stardust'
const { Column, Row } = Grid
const GridReversedMobileVerticallyExample = () => (
<Grid reversed='mobile vertically'>
<Row>
<Column>Mobile Row 4</Column>
</Row>
<Row>
<Column>Mobile Row 3</Column>
</Row>
<Row>
<Column>Mob... |
test/fixtures/webpack-message-formatting/src/AppCss.js | viankakrisna/create-react-app | import React, { Component } from 'react';
import './AppCss.css';
class App extends Component {
render() {
return <div className="App" />;
}
}
export default App;
|
examples/with-algolia-react-instantsearch/components/head.js | BlancheXu/test | import NextHead from 'next/head'
import { string } from 'prop-types'
import React from 'react'
const defaultDescription = ''
const defaultOGURL = ''
const defaultOGImage = ''
export const Head = props => (
<NextHead>
<meta charSet='UTF-8' />
<title>{props.title || ''}</title>
<meta
name='descripti... |
frontend/src/components/Footer/index.js | Pseudonick47/sherlock | import React from 'react';
/* component styles */
import { styles } from './styles.scss';
export const Footer = () =>
<footer className={`${styles}`}>
<div className="container">
<div className="row">
<div className="col-xs-12 col-sm-12 col-md-12 col-lg-12">
... |
src/components/IVFinder/IVFinder.js | Sylencia/pokemon-go-iv | import '~/assets/stylesheets/App.scss';
import React, { Component } from 'react';
import Input from './Input';
import Output from './Output';
import Header from '../Header';
export default class IVFinder extends Component {
constructor() {
super();
const options = JSON.parse(localStorage.getItem('options'))... |
frontend/src/components/EmptyList.js | OpenCollective/opencollective-app | import React from 'react';
export default () => {
return (
<div className='EmptyList'>
<div className='EmptyList-icon'>
<img src='/static/images/receipt.png' />
</div>
<div>
<div className='EmptyList-title'>Submit your first expense</div>
<div className='EmptyList-descri... |
src/components/NotFoundPage/NotFoundPage.js | alexpalombaro/reactjs | /*
* React.js Starter Kit
* Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import './NotFoundPage.scss';
import React from 'react'; // eslint-disable-line no-unused... |
src/components/Layout/Bread.js | caijinchun/hsweb-antd | import React from 'react'
import PropTypes from 'prop-types'
import { Breadcrumb, Icon } from 'antd'
import { Link } from 'dva/router'
import styles from './Bread.less'
import pathToRegexp from 'path-to-regexp'
import { queryArray } from '../../utils'
const Bread = ({ menu }) => {
// 匹配当前路由
let pathArray = []
le... |
Libraries/CustomComponents/Navigator/Navigator.js | aaron-goshine/react-native | /**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* Facebook,... |
src/svg-icons/communication/phone.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhone = (props) => (
<SvgIcon {...props}>
<path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61... |
client/src/layout/index.js | AlTavares/babos.ios-server | import React from 'react'
import Nav from '../nav'
import './style.css'
import 'bootstrap/dist/css/bootstrap.min.css'
import 'bootstrap/dist/js/bootstrap.min.js'
export default function Layout({ children }) {
return (
<div>
<Nav />
<div id="main" className="container-fluid">
... |
js/components/Results/Options.js | jvalen/nth-days-old | import React from 'react';
import { connect } from 'react-redux';
import { changeRange } from '../../actions/actionCreators';
const Options = function (props) {
const generateOptions = function () {
const fixedValues = [
{ label: 10000, value: 10000 },
{ label: 5000, value: 5000 },
{ label: 100... |
app/components/Tabs/index.js | prudhvisays/newsb | import React from 'react';
import moment from 'moment';
import AddressBlock from './AddressBlock';
import Timeline from './Timeline';
import TabStyle from './TabStyle';
import PathHistory from './PathHistory';
import TaskOptions from '../TaskOptions';
import ReOrder from '../ReOrder';
import './tabStyle.css';
export d... |
js/components/bar_chart.js | monetario/web |
import React from 'react';
import Datetime from 'react-datetime';
import Formsy from 'formsy-react';
import Moment from 'moment';
const BarChart = React.createClass({
getDefaultProps() {
return {
};
},
componentDidMount() {
Morris.Bar({
element: this.props.name,
data: this.props.data,
... |
react/features/base/premeeting/components/web/Preview.js | jitsi/jitsi-meet | // @flow
import React from 'react';
import { getDisplayName } from '../../../../base/settings';
import { Avatar } from '../../../avatar';
import { Video } from '../../../media';
import { getLocalParticipant } from '../../../participants';
import { connect } from '../../../redux';
import { getLocalVideoTrack } from '.... |
src/Diary/DiaryLink.js | riccardone/MySelfLog.Ui | import React from 'react';
import { InputGroup, Button, FormGroup, FormControl, ControlLabel } from 'react-bootstrap';
import { CopyToClipboard } from 'react-copy-to-clipboard';
import 'react-toggle-switch/dist/css/switch.min.css';
class DiaryLink extends React.Component {
constructor(props) {
super(props)... |
src/mui/input/DateInput.js | azureReact/AzureReact | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import DatePicker from 'material-ui/DatePicker';
import FieldTitle from '../../util/FieldTitle';
export const datify = input => {
if (!input) {
return null;
}
const date = input instanceof Date ? input : new Date(input);... |
stories/examples/LayoutProps.js | reactstrap/reactstrap | import React from 'react';
import { Container, Row, Col } from 'reactstrap';
import Props from './Props';
const Example = () => (
<Props components={[Container, Row, Col]} />
);
export default Example;
|
client/src/scenes/application/scenes/user/scenes/register/index.js | YeFFreY/bernard | import React from 'react';
import { Container, Pusher, Row} from 'components/layout';
import { H1 } from 'components/typography';
import { Button, TextField, Label } from 'components/form';
const Register = () => (
<Container>
<Pusher>
<H1>Sign up !</H1>
<Row>
<div>
<Label>Email</La... |
src/components/DeveloperMenu.ios.js | keyifadami/CrewCrossCheck | import React from 'react';
import * as snapshot from '../utils/snapshot';
import * as auth0 from '../services/auth0';
import {
TouchableOpacity,
ActionSheetIOS,
StyleSheet
} from 'react-native';
/**
* Simple developer menu, which allows e.g. to clear the app state.
* It can be accessed through a tiny button i... |
src/svg-icons/editor/drag-handle.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorDragHandle = (props) => (
<SvgIcon {...props}>
<path d="M20 9H4v2h16V9zM4 15h16v-2H4v2z"/>
</SvgIcon>
);
EditorDragHandle = pure(EditorDragHandle);
EditorDragHandle.displayName = 'EditorDragHandle';
Edi... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | 18514253911/new-myAdmin | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
test/integration/serverless/pages/fetch.js | azukaru/next.js | import fetch from 'isomorphic-unfetch'
import React from 'react'
export default class extends React.Component {
static async getInitialProps() {
try {
const res = await fetch('')
const text = await res.text()
console.log(text)
return { text }
} catch (err) {
if (err.message.incl... |
src/components/Header/Header.js | max-gram/react-saga-universal | import React from 'react'
import PropTypes from 'prop-types'
import { Link } from 'react-router-dom'
import css from './Header.css'
const Header = (props) => {
return (
<header className={css.mainHeader}>
<ul>
<li>
<Link to="/">Home</Link>
</li>
<li>
<Link to=... |
app/javascript/mastodon/features/account_timeline/containers/header_container.js | 5thfloor/ichiji-social | import React from 'react';
import { connect } from 'react-redux';
import { makeGetAccount } from '../../../selectors';
import Header from '../components/header';
import {
followAccount,
unfollowAccount,
unblockAccount,
unmuteAccount,
pinAccount,
unpinAccount,
} from '../../../actions/accounts';
import {
m... |
actor-apps/app-web/src/app/index.js | sc4599/actor-platform | import crosstab from 'crosstab';
import React from 'react';
import Router from 'react-router';
import Raven from 'utils/Raven'; // eslint-disable-line
import isMobile from 'utils/isMobile';
import ReactMixin from 'react-mixin';
import Intl from 'intl'; // eslint-disable-line
import LocaleData from 'intl/locale-data/j... |
archimate-frontend/src/main/javascript/components/view/nodes/model_a/applicationInteraction.js | zhuj/mentha-web-archimate | import React from 'react'
import _ from 'lodash'
import { ModelNodeWidget } from '../BaseNodeWidget'
export const TYPE='applicationInteraction';
export class ApplicationInteractionWidget extends ModelNodeWidget {
getClassName(node) { return 'a-node model_a applicationInteraction'; }
}
|
v2/src/pages/Projects/Projects.js | LordDashMe/LordDashMe.github.io | import React from 'react';
import NavigationBar from '../../components/NavigationBar/NavigationBar';
function Projects () {
document.title = 'Projects';
return (
<div className="Projects">
<NavigationBar />
<div className="page-wrapper">
<h1>Projects</h1>
</div>
</div>
);
}
ex... |
website/src/containers/Behavior.js | chrisl8/ArloBot | import React, { Component } from 'react';
import { Collapse, Card, CardBody, CardHeader, CardTitle } from 'reactstrap';
import boolToOnOff from '../utils/boolToOnOff';
class Behavior extends Component {
constructor(props) {
super(props);
this.state = {
isOpen: false,
textToSpeak: '',
askRob... |
lib/site/home-forum/topic-card/component.js | DemocraciaEnRed/vicentelopez | import React from 'react'
import { Link } from 'react-router'
import t from 't-component'
import topicStore from 'lib/stores/topic-store/topic-store'
export default ({ topic }) => (
<Link
to={topic.url}
className='topic-card'>
<div
className='topic-cover'
style={{
backgroundImage: `ur... |
app/assets/frontend/index.js | prdx/kasih.in | import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import configureStore from './store/configureStore';
import Routes from './Routes';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import { black, darkWh... |
frontend/src/Components/Table/Cells/TableRowCellButton.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import Link from 'Components/Link/Link';
import TableRowCell from './TableRowCell';
import styles from './TableRowCellButton.css';
function TableRowCellButton({ className, ...otherProps }) {
return (
<Link
className={className}
component=... |
fields/types/email/EmailField.js | suryagh/keystone | import Field from '../Field';
import React from 'react';
import { FormInput } from 'elemental';
/*
TODO:
- gravatar
- validate email address
*/
module.exports = Field.create({
displayName: 'EmailField',
renderField () {
return (
<FormInput
name={this.props.path}
ref="focusTarget"
value={this.pr... |
src/svg-icons/hardware/power-input.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwarePowerInput = (props) => (
<SvgIcon {...props}>
<path d="M2 9v2h19V9H2zm0 6h5v-2H2v2zm7 0h5v-2H9v2zm7 0h5v-2h-5v2z"/>
</SvgIcon>
);
HardwarePowerInput = pure(HardwarePowerInput);
HardwarePowerInput.dis... |
src/history/index.js | calebthebrewer/gas | require('!style!css!sass!./history.scss')
import React from 'react'
import Reflux from 'reflux'
import { Link } from 'react-router'
import { FloatingActionButton, FontIcon, Styles } from 'material-ui'
import RefuelsStore from '../refuels/store'
import RefuelsActions from '../refuels/actions'
let Point = React.create... |
testsData/test-reactnative/App.js | alanzanattadev/atom-molecule-dev-environment | import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
export default class App extends React.Component {
render() {
return (
<View style={styles.container}>
<Text>Open up "App.js" c est tres fun to start dddd working on your app!</Text>
<Text>Changes you make wil... |
src/main/javascript/index.js | LashaDev/starex | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import Application from './view/components/Application.jsx';
ReactDOM.render(
<Application/>,
document.getElementById('root')
); |
test/stories/footer.js | gdumitrescu/aggregator | import React from 'react'
import Footer from '../../client/components/common/footer/footer'
import { storiesOf } from '@kadira/storybook'
storiesOf('Footer', module)
.add('with a text', () => (
<Footer>footer</Footer>
))
.add('with no text', () => (
<Footer />
))
|
assets/jqwidgets/demos/react/app/calendar/hideothermonthdays/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxCalendar from '../../../jqwidgets-react/react_jqxcalendar.js';
class App extends React.Component {
render() {
return (
<JqxCalendar width={220} height={220} showOtherMonthDays={false} />
)
}
}
ReactDOM.render(<... |
app/javascript/mastodon/features/ui/index.js | corzntin/mastodon | import React from 'react';
import classNames from 'classnames';
import Redirect from 'react-router-dom/Redirect';
import NotificationsContainer from './containers/notifications_container';
import PropTypes from 'prop-types';
import LoadingBarContainer from './containers/loading_bar_container';
import TabsBar from './co... |
src/react/input/FancyTextButton.js | laundree/app | // @flow
/**
* Exports a FancyButton with Text
*/
import React from 'react'
import { Text } from 'react-native'
import FancyButton from './FancyButton'
import { fancyTextButton } from '../../style'
import { FormattedMessage } from 'react-intl'
type FancyTextButtonProps = { id: string, onPress: Function, disabled?:... |
client/src/exercise-1-react-only/App.js | alyssackwan/mentoring__react_redux_d3 | import React, { Component } from 'react';
import { Col, Row } from 'react-bootstrap';
import { Provider } from 'react-redux';
import StoreRsvpWordFrequencyTable from './containers/StoreRsvpWordFrequencyTable';
import rsvps from './services/rsvps';
import store from './services/store';
import './App.css';
const storeI... |
app/components/Header.js | zoo1/fil | import React from 'react';
export default class Header extends React.Component {
render() {
var block = "header",
imagePath = "../images/logo.png";
return (
<header className={block}>
<div className={block + "__logo"}>
<a href="//github.com/fatiherikli/fil"></a>
</div... |
src/react/shared/router-context.js | nolimits4web/Framework7 | import React from 'react';
const RouterContext = React.createContext({
route: null,
router: null,
});
export { RouterContext };
|
lib/Icon/stories/IconWithLabel.js | folio-org/stripes-components | /**
* Icon: icon position example
*/
import React from 'react';
import Icon from '../Icon';
export default () => (
<>
<Icon
icon="trash"
aria-label="trash icon"
>
{'iconPosition="start" (default)'}
</Icon>
<br />
<br />
<Icon
icon="trash"
iconPosition="end"
... |
src/Well.js | simonliubo/react-ui | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Well = React.createClass({
mixins: [BootstrapMixin],
getDefaultProps() {
return {
bsClass: 'well'
};
},
render() {
let classes = this.getBsClassSet();
return (
<di... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.