path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/svg-icons/hardware/keyboard-backspace.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardBackspace = (props) => (
<SvgIcon {...props}>
<path d="M21 11H6.83l3.58-3.59L9 6l-6 6 6 6 1.41-1.41L6.83 13H21z"/>
</SvgIcon>
);
HardwareKeyboardBackspace = pure(HardwareKeyboardBackspace);
Ha... |
components/Header.js | mauricius/redux-memory-game | import React from 'react';
export default ({
round,
restart
}) => (
<div>
<h2>Round: {round}</h2>
<button className="button button--warning text-center" onClick={() => restart()} disabled={round === 0}>Restart</button>
</div>
)
|
index.ios.js | yyoshiki41/fastlane-playground | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class AwesomeProject extends Component {
render() {
return (
<View style={styles.cont... |
src/js/components/configPage/Helper/index.js | zacyu/bilibili-helper | /**
* Author: DrowsyFlesh
* Create: 2018/10/29
* Description:
*/
import React from 'react';
import styled from 'styled-components';
import {Icon} from 'Components';
import {theme} from 'Styles';
const {color} = theme;
const HelperView = styled(Icon)`
margin-left: 10px;
color: ${color('google-grey-600')};
`;
... |
src/decorators/withViewport.js | ernestho/toronto-subway-map | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default si... |
application/assets/javascripts/components/attendee-list.js | fevrcoding/name-selector | /**
* Applicatino Container: List of attendees
*
* @author Marco Solazzi
* @copyright (c) Marco solazzi
* @module components/attendees-list
*/
import React, { Component } from 'react';
import { connect } from 'react-redux';
import {attendeeListSelectAction} from '../actions';
import Attendee from './attendee';
... |
src/svg-icons/av/replay-5.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvReplay5 = (props) => (
<SvgIcon {...props}>
<path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-1.3 8.9l.2-2.2h2.4v.7h-1.7l-.1.9s.1 0 .1-.1.1 0 .1-.1.1 0 .2... |
src/SparklinesLine.js | codevlabs/react-sparklines | import React from 'react';
export default class SparklinesLine extends React.Component {
static propTypes = {
color: React.PropTypes.string,
style: React.PropTypes.object
};
static defaultProps = {
style: {}
};
render() {
const { points, width, height, margin, col... |
app/main.js | seentaoInternetOrganization/reactDemo | import React from 'react';
import Router from 'react-router';
import ReactDOM from 'react-dom';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import routes from './routes';
// import Navbar from './components/Navbar';
let history = createBrowserHistory();
ReactDOM.render(<Router history={histor... |
react-app/src/Components/LoginForm.js | Binarysearch/quiz | import React, { Component } from 'react';
import styled from 'styled-components';
import axios from 'axios';
import { updateField } from '../Utils/UpdateField';
import FormField from './FormField';
import Button from './Button';
import { Redirect } from 'react-router-dom';
const StyledForm = styled.form`
background-... |
src/components/ListParagraph/index.js | duheng/Mozi | import React from 'react';
import { StyleSheet, View, } from 'react-native';
import Placeholder from 'rn-placeholder';
const styles = StyleSheet.create({
title: {
marginBottom: 12,
},
item: {
margin: 12,
},
});
const Title = hasTitle => {
return hasTitle ? (
<View style={styles.title}>
<Pl... |
node_modules/babel-plugin-react-require/examples/with-imported-react.js | DouglasUrner/Mantra-Boilerplate | import React from 'react';
export default class Component {
render() {
return <div />;
}
}
|
fields/components/DateInput.js | Tangcuyu/keystone | import moment from 'moment';
import DayPicker from 'react-day-picker';
import React from 'react';
import ReactDOM from 'react-dom';
import Popout from '../../admin/client/components/Popout';
import { FormInput } from 'elemental';
let lastId = 0;
module.exports = React.createClass({
displayName: 'DateInput',
propTyp... |
src/components/compact/story.js | casesandberg/react-color | import React from 'react'
import { storiesOf } from '@storybook/react'
import { renderWithKnobs } from '../../../.storybook/report'
import SyncColorField from '../../../.storybook/SyncColorField'
import Compact from './Compact'
storiesOf('Pickers', module)
.add('CompactPicker', () => (
<SyncColorField component... |
test/integration/css-fixtures/bad-custom-configuration-arr-7/pages/_app.js | zeit/next.js | import React from 'react'
import App from 'next/app'
import '../styles/global.css'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
features/app/components/App.web.js | jitsi/jitsi-meet-react | import React from 'react';
import { Provider } from 'react-redux';
import {
browserHistory,
Route,
Router
} from 'react-router';
import { push, syncHistoryWithStore } from 'react-router-redux';
import { getDomain } from '../../base/connection';
import { RouteRegistry } from '../../base/navigator';
import ... |
docs/src/pages/components/lists/InsetList.js | lgollut/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import List from '@material-ui/core/List';
import ListItem from '@material-ui/core/ListItem';
import ListItemIcon from '@material-ui/core/ListItemIcon';
import ListItemText from '@material-ui/core/ListItemText';
import StarIcon from '@mat... |
samples/react-redux-patient-demographics-example/src/common/FormsyHiddenInput.js | GoTeamEpsilon/angular-to-react | import React from 'react'
import Formsy from 'formsy-react'
export const FormsyHiddenInput = React.createClass({
mixins: [Formsy.Mixin],
changeValue(event) {
let value = ''
if (event && event.currentTarget && event.currentTarget.value) {
value = event.currentTarget.value
event.currentTarget.v... |
examples/shopping-cart/src/main.js | aldanor/nuclear-js | 'use strict';
import React from 'react'
import App from './components/App'
import reactor from './reactor'
import actions from './actions'
import CartStore from './stores/CartStore'
import ProductStore from './stores/ProductStore'
reactor.registerStores({
cart: CartStore,
products: ProductStore,
})
actions.fetc... |
classic/src/scenes/wbui/ReadingQueueSnackbarHelper.js | wavebox/waveboxapp | import React from 'react'
import { Snackbar, Button } from '@material-ui/core'
import shallowCompare from 'react-addons-shallow-compare'
import { ipcRenderer } from 'electron'
import {
WB_READING_QUEUE_LINK_ADDED,
WB_READING_QUEUE_CURRENT_PAGE_ADDED,
WB_READING_QUEUE_OPEN_URL,
WB_READING_QUEUE_OPEN_URL_EMPTY
} ... |
src/components/Columns/Columns.js | nambawan/g-old | // taken from https://github.com/grommet/grommet/blob/master/src/js/components/Columns.js
/* eslint-disable */
import React from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import withStyles from 'isomorphic-style-loader/withStyles';
import s from './Columns.css';
class Columns extends Re... |
src/js_src/containers/search/resultsTable.js | hitz/python-flask-es-test | import React, { Component } from 'react';
import style from './style.css';
import DetailList from './detailList';
import LogList from './logList';
import { makeFieldDisplayName } from '../../lib/searchHelpers';
import { NON_HIGHLIGHTED_FIELDS } from '../../constants';
const MATCH_LABEL = 'match_by';
const MAX_CHAR = ... |
src/routes.js | kiyonish/kiyonishimura | import React from 'react'
import { IndexRoute, Route } from 'react-router'
// import AnimationCanvas from './components/experiments/AnimationCanvas'
import {
App,
Home,
NotFound,
} from 'containers'
export default () => {
/**
* Please keep routes in alphabetical order
*/
return (
<Route p... |
src/pages/flow.js | TASnomad/Fallon-react-native-app | import React, { Component } from 'react';
import {
AsyncStorage,
Button,
View,
Text,
ScrollView,
StyleSheet,
RefreshControl,
} from 'react-native';
import SideBar from '../components/SideBar';
import URLS from '../utils/ajaxURL';
const flowSheet = StyleSheet.create({
scrollContai... |
tools/render.js | fmarcos83/mdocs | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import glob from 'glob';
import { join, dirname } from 'path';
import React from 'react';
import ReactDOM from 'react-dom/server';
import Html from '../components/Html'... |
src/Button.js | apisandipas/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import CustomPropTypes from './utils/CustomPropTypes';
import ButtonInput from './ButtonInput';
const Button = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
active: React.PropTypes.bool,... |
src/components/PostLIst.js | rhostem/blog | import Link from 'gatsby-link'
import React from 'react'
import { wordWrap } from 'polished'
import { media } from '../styles'
import styled from 'styled-components'
import { setHeightLimitAndEllipsis } from '../styles/mixin/setHeightLimit'
import format from 'date-fns/format'
import { getBodyHeight } from '../utils/ge... |
src/EventCell.js | manishksmd/react-scheduler-smartdata | import PropTypes from 'prop-types';
import React from 'react';
import cn from 'classnames';
import dates from './utils/dates';
import { accessor, elementType } from './utils/propTypes';
import { accessor as get } from './utils/accessors';
import Img from './img/doctor.png';
import AppointmentBox from './AppointmentBox'... |
src/data-fields/checkbox-data-field.js | apconic/aos-forms | import React, { Component } from 'react';
import Checkbox from 'material-ui/Checkbox';
import PropTypes from 'prop-types';
export default class CheckboxDataField extends Component {
static propTypes = {
labelText: PropTypes.string,
onChange: PropTypes.func,
value: PropTypes.bool,
name: PropTypes.stri... |
js/Details.js | Rehten/React-Project | import React from 'react'
const {shape, string} = React.PropTypes
import Header from './Header'
const Details = React.createClass({
propTypes: {
show: shape({
title: string,
year: string,
poster: string,
trailer: string,
description: string
})
},
render () {
const {title... |
stories/Mention/CustomMentionEditor/index.js | dagopert/draft-js-plugins | import React, { Component } from 'react';
import { EditorState } from 'draft-js';
import Editor from 'draft-js-plugins-editor';
import createMentionPlugin, { defaultSuggestionsFilter } from 'draft-js-mention-plugin';
import editorStyles from './editorStyles.css';
import mentionsStyles from './mentionsStyles.css';
impor... |
src/parser/shared/modules/spells/bfa/essences/NullDynamo.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS/index';
import SpellLink from 'common/SpellLink';
import STATISTIC_CATEGORY from 'interface/others/STATISTIC_CATEGORY';
import ItemStatistic from 'interface/statistics/ItemStatistic';
import StatisticGroup from 'interface/statistics/StatisticGroup';
import... |
opentech/static_src/src/app/src/components/Select/index.js | OpenTechFund/WebApp | import React from 'react'
import PropTypes from 'prop-types'
const Option = ({ value, display }) => {
return <option value={value}>{display || value}</option>
}
Option.propTypes = {
value: PropTypes.string.isRequired,
display: PropTypes.string,
}
const Select = ({ options, onChange }) => {
const item... |
pages/components/site-menu.js | LlamaSantos/crackerbox | "use strict";
import React from 'react';
import Personas from './personas';
export default React.createClass({
render() {
return (
<div className='ui vertical sidebar menu left uncover visible'>
<div className='ui segment'>Users</div>
<div className='item'>
<Personas />
... |
example/src/index.js | ldstudio-ca/react-pdfjs-mobile | import React from 'react';
import ReactDOM from 'react-dom';
import App from 'react-pdfjs-mobile';
let root = document.getElementById('root');
ReactDOM.render(<App
url="http://www.ducatiusa.com/cms-web/upl/img/Redline_Magazine_2015/Redline_Magazine_2_ENG.pdf"
onClose={ () => {
ReactDOM.unmountCompo... |
Product/Websites/Feature/src/index.js | BerndWessels/terraform | /**
* Manapaho (https://github.com/Manapaho/)
*
* Copyright © 2016 Manapaho. 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 ReactDOM from 'react-dom';
/**
* Import the b... |
client/modules/App/__tests__/Components/Header.spec.js | SwanCourses/example-app | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import { shallow } from 'enzyme';
import { FormattedMessage } from 'react-intl';
import { Header } from '../../components/Header/Header';
import { intl } from '../../../../util/react-intl-test-helper';
const intlProp = { ...intl, enabledLang... |
node_modules/react-icons/md/history.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdHistory = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 13.4h2.5v7l5.9 3.5-1.3 2-7.1-4.3v-8.2z m1.6-8.4q6.2 0 10.6 4.4t4.4 10.6-4.4 10.6-10.6 4.4-10.5-4.4l2.3-2.4q3.5 3.4 8.2 3.4 4.9 0 8.3-3.4t3.5-8.2-3.5-8.2-8.3-3.4-8... |
app/containers/Root.js | luismreis/bootstrap-starter-template-react | import 'babel-core/polyfill';
import React, { Component } from 'react';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import { Provider } from 'react-redux';
import { Router, Route } from 'react-router';
import configureStore from '../store/configureStore';
import App from './App';
import HomePag... |
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-forms-v3-timepicker.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin, Tools} from './../common/common.js';
import Backdrop from './../bricks/backdrop.js';
import TextInput from './internal/text-input.js';
import Time from './time.js';
import TextInputMixin from './mixins/text-input-mixin.js'
import './timepicker.less';
c... |
docs/app/Examples/elements/Rail/Types/RailDividingExample.js | jamiehill/stardust | import React from 'react'
import { Image, Grid, Rail, Segment } from 'stardust'
const RailDividingExample = () => (
<Grid columns={3}>
<Grid.Column>
<Segment>
<Image src='http://semantic-ui.com/images/wireframe/paragraph.png' />
<Rail dividing position='left'>
<Segment>Left Rail ... |
dispatch/static/manager/src/js/pages/Events/NewEventPage.js | ubyssey/dispatch | import React from 'react'
import EventEditor from '../../components/EventEditor'
export default function NewEventPage(props) {
return (
<EventEditor
isNew={true}
goBack={props.router.goBack} />
)
}
|
src/components/Filter/index.js | KNETIC-KRPF/KNETIC-CLIENT | import React, { Component } from 'react';
import Knob from '../Knob';
import './Filter.css';
class Filter extends Component {
render() {
return(
<div>
<h4>FILTER</h4>
<div className="filter-grid">
<div className="controller">
<select className="" value={this.props.patch.filter.type} onChange={(... |
src/Tabs/TabIndicator.js | dsslimshaddy/material-ui | // @flow weak
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
import { capitalizeFirstLetter } from '../utils/helpers';
export const styles = (theme: Object) => ({
root: {
position: 'relative',
height: 2,
... |
examples/auth-with-shared-root/components/Dashboard.js | djkirby/react-router | import React from 'react'
import auth from '../utils/auth'
const Dashboard = React.createClass({
render() {
const token = auth.getToken()
return (
<div>
<h1>Dashboard</h1>
<p>You made it!</p>
<p>{token}</p>
{this.props.children}
</div>
)
}
})
module.exports... |
src/svg-icons/places/free-breakfast.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesFreeBreakfast = (props) => (
<SvgIcon {...props}>
<path d="M20 3H4v10c0 2.21 1.79 4 4 4h6c2.21 0 4-1.79 4-4v-3h2c1.11 0 2-.9 2-2V5c0-1.11-.89-2-2-2zm0 5h-2V5h2v3zM4 19h16v2H4z"/>
</SvgIcon>
);
PlacesFre... |
src/lib/plugins/battery.js | edoren/hyperline | import React from 'react'
import Component from 'hyper/component'
import BatteryIcon from './battery/battery-icon'
import leftPad from 'left-pad'
export default class Battery extends Component {
static displayName() {
return 'Battery plugin'
}
constructor(props) {
super(props)
this.state = {
... |
project/react-ant/src/containers/AssetMgmt/Add/index.js | FFF-team/generator-earth | import React from 'react'
import moment from 'moment'
import { DatePicker, Button, Form, Input, Col } from 'antd'
import BaseContainer from 'ROOT_SOURCE/base/BaseContainer'
import request from 'ROOT_SOURCE/utils/request'
import { mapMoment } from 'ROOT_SOURCE/utils/fieldFormatter'
import Rules from 'ROOT_SOURCE/utils... |
src/js/components/icons/base/Diamond.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... |
app/containers/Home/index.js | Jasonlucas724/SWASH | /*
*
* Home
*
*/
import React from 'react';
import Helmet from 'react-helmet';
import Responsive from 'react-responsive';
import {Link} from 'react-router';
import Menu from 'material-ui/svg-icons/navigation/Menu';
import TextField from 'material-ui/TextField';
import Person from 'material-ui/svg-icons/social/pers... |
js/components/tab/tabOne.js | HomelandGvarim/FE-Phone | import React, { Component } from 'react';
import { Container, Content, Card, CardItem, Text, View, Body } from 'native-base';
import styles from './styles';
export default class TabOne extends Component {
// eslint-disable-line
render() {
// eslint-disable-line
return (
<Content padder>
<Card>
<Ca... |
src/js/components/Sky.js | alexoviedo999/vr-carpet-ride | import {Entity} from 'aframe-react';
import React from 'react';
export default props => (
<Entity geometry={{primitive: 'sphere', radius: 5000}}
material={{color: "#73CFF0", shader: 'flat', src: '#sky'}}
scale="1 1 -1"/>
);
|
src/components/GalleryBrick/index.js | line64/landricks-components | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import FontAwesome from 'react-fontawesome';
import { GenericBrick } from '../../';
import styles from './styles';
class GalleryBrick extends Component {
constructor(props){
super(props);
this.state = { currentPage: 1 }
}
calc... |
boilerplates/demo/src/components/TitleBar/index.js | flicker85/react-redux-saga-cli | import React from 'react';
import styles from './index.less';
export default function({ title }) {
return (
<div className={ styles.normal }>{ title }</div>
);
} |
docs/app/Examples/elements/Header/Types/HeaderExampleSubheaders.js | clemensw/stardust | import React from 'react'
import { Header } from 'semantic-ui-react'
const HeaderExampleSubheaders = () => (
<div>
<Header sub>Price</Header>
<span>$10.99</span>
</div>
)
export default HeaderExampleSubheaders
|
src/client/assets/js/nodes/processors/uibuilder/features/canvas/components/svg/Line.js | me-box/databox-sdk | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import {camelise} from 'nodes/processors/uibuilder/utils';
import { actionCreators as canvasActions, selector } from '../..';
import { connect } from 'react-redux';
@connect(selector, (dispatch) => {
return{
actions: bindActio... |
src/js/components/icons/base/Optimize.js | odedre/grommet-final | /**
* @description Optimize 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.
* @p... |
src/mobile/components/App/Overlays.js | welovekpop/uwave-web-welovekpop.club | import React from 'react';
import PropTypes from 'prop-types';
import CSSTransition from 'react-transition-group/CSSTransition';
import TransitionGroup from 'react-transition-group/TransitionGroup';
const Overlays = ({ children, active }) => {
let view;
if (Array.isArray(children)) {
view = children.find(child... |
docs/src/app/components/pages/components/List/ExampleMessages.js | owencm/material-ui | import React from 'react';
import MobileTearSheet from '../../../MobileTearSheet';
import {List, ListItem} from 'material-ui/List';
import Divider from 'material-ui/Divider';
import Subheader from 'material-ui/Subheader';
import Avatar from 'material-ui/Avatar';
import {grey400, darkBlack, lightBlack} from 'material-ui... |
app/javascript/mastodon/features/search/index.js | imas/mastodon | import React from 'react';
import SearchContainer from 'mastodon/features/compose/containers/search_container';
import SearchResultsContainer from 'mastodon/features/compose/containers/search_results_container';
const Search = () => (
<div className='column search-page'>
<SearchContainer />
<div className='... |
examples/App/components/Doc.js | tangjinzhou/biz-mobile-ui | import React from 'react'
import marked from 'marked'
import highlight from 'highlight.js'
import request from '../request';
import { Link, History } from 'react-router'
marked.setOptions({
renderer: new marked.Renderer(),
gfm: true,
tables: true,
breaks: false,
pedantic: false,
sanitize: false,... |
src/mui/layout/Layout.js | matteolc/admin-on-rest | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import autoprefixer from 'material-ui/utils/autoprefixer';
import CircularPro... |
views/blocks/QuestPhotos/QuestPhotosContainer.js | dimastark/team5 | import React from 'react';
import QuestPhotos from './QuestPhotos';
import sender from './../Sender/Sender';
import PhotoSender from './PhotoSender';
const QuestPhotosWithSending = sender(QuestPhotos);
export default class QuestPhotosContainer extends React.Component {
constructor(props) {
super(props);
... |
docs/src/app/components/pages/components/RaisedButton/ExampleSimple.js | kasra-co/material-ui | import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
const style = {
margin: 12,
};
const RaisedButtonExampleSimple = () => (
<div>
<RaisedButton label="Default" style={style} />
<RaisedButton label="Primary" primary={true} style={style} />
<RaisedButton label="Secondary" se... |
app/javascript/mastodon/features/follow_requests/components/account_authorize.js | mimumemo/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Permalink from '../../../components/permalink';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import IconButton from '../../../... |
src/components/Map.js | Djiit/vgmapper | import React, { Component } from 'react';
import GoogleMapReact from 'google-map-react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import config from '../config';
import Form from './Form';
import * as userActions from '../actions/user';
import './Map.css';
const PlayerMarker... |
src/components/Html.js | veskoy/ridiko | /**
* 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 PropTypes from 'prop-... |
site/components/Cover.js | craigklem/react-dnd | import React from 'react';
import './Cover.less';
export default class Cover {
render() {
return (
<div className="Cover">
<div className="Cover-header">
<p className="Cover-description">
Drag and Drop for React
</p>
</div>
</div>
);
}
} |
src/js/pages/GroupContentsPage.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { API_URLS, INVITATIONS_URL } from '../constants/Constants';
import TopNavBar from '../components/ui/TopNavBar';
import FullWidthButton from '../components/ui/FullWidthButton';
import EmptyMessage from '../components/ui/EmptyMessage/Em... |
Realization/frontend/czechidm-core/src/components/advanced/IdentityRoleInfo/IdentityRoleInfo.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
//
import * as Basic from '../../basic';
import { IdentityRoleManager, IdentityContractManager, RoleManager, IdentityManager } from '../../../redux';
import AbstractEntityInfo from '../EntityInfo/AbstractEntityInfo';
i... |
src/svg-icons/places/all-inclusive.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesAllInclusive = (props) => (
<SvgIcon {...props}>
<path d="M18.6 6.62c-1.44 0-2.8.56-3.77 1.53L12 10.66 10.48 12h.01L7.8 14.39c-.64.64-1.49.99-2.4.99-1.87 0-3.39-1.51-3.39-3.38S3.53 8.62 5.4 8.62c.91 0 1.7... |
node_modules/react-select/src/Creatable.js | mannyng/ceap | import React from 'react';
import Select from './Select';
import defaultFilterOptions from './utils/defaultFilterOptions';
import defaultMenuRenderer from './utils/defaultMenuRenderer';
const Creatable = React.createClass({
displayName: 'CreatableSelect',
propTypes: {
// Child function responsible for creating th... |
react/TwitterIcon/TwitterIcon.js | seek-oss/seek-style-guide | import svgMarkup from './TwitterIcon.svg';
import svgMarkupFilled from './TwitterIconFilled.svg';
import PropTypes from 'prop-types';
import React from 'react';
import Icon from '../private/Icon/Icon';
export default function TwitterIcon({ filled, ...props }) {
const markup = filled ? svgMarkupFilled : svgMarkup;
... |
src/components/ChatApp/Settings/TextToSpeechSettings.react.js | madhavrathi/chat.susi.ai | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Paper from 'material-ui/Paper';
import UserPreferencesStore from '../../../stores/UserPreferencesStore';
import MessageStore from '../../../stores/MessageStore';
import Slider from 'material-ui/Slider';
import FlatButton from 'material... |
blueocean-material-icons/src/js/components/svg-icons/action/perm-contact-calendar.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionPermContactCalendar = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm6 12H6v-1c0-2 4-3... |
fields/types/text/TextColumn.js | snowkeeper/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var TextColumn = React.createClass({
displayName: 'TextColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
linkTo: React.PropType... |
public/js/components/profile/visitor/MockChat.react.js | IsuruDilhan/Coupley | import React from 'react';
import Avatar from 'material-ui/lib/avatar';
import List from 'material-ui/lib/lists/list';
import ListItem from 'material-ui/lib/lists/list-item';
import Divider from 'material-ui/lib/divider';
import CommunicationChatBubble from 'material-ui/lib/svg-icons/communication/chat-bubble';
const ... |
packages/react/src/components/AutoInput.js | wq/wq.app | import React from 'react';
import { useComponents, useInputComponents, useRenderContext } from '../hooks';
import PropTypes from 'prop-types';
import { pascalCase } from 'pascal-case';
export default function AutoInput({ name, choices, type, bind = {}, ...rest }) {
const inputs = useInputComponents(),
{ Au... |
src/templates/index-template.js | Amine-H/Amine-H.github.io | // @flow strict
import React from 'react';
import { graphql } from 'gatsby';
import Layout from '../components/Layout';
import Sidebar from '../components/Sidebar';
import Feed from '../components/Feed';
import Page from '../components/Page';
import Pagination from '../components/Pagination';
import { useSiteMetadata }... |
docs/src/app/components/pages/components/AppBar/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 appBarReadmeText from './README';
import AppBarExampleIcon from './Exampl... |
src/js/routes.js | akornatskyy/sample-blog-react-redux | import React from 'react';
import {Container} from 'react-bootstrap';
import {Route, Switch} from 'react-router';
import AuthInfo from './membership/containers/auth-info';
import Footer from './shared/components/footer';
import Header from './shared/components/header';
import Posts from './posts/containers/posts';
im... |
src/scenes/ChildScene.js | teamfa/react-native-starter-app | /**
* @providesModule ChildScene
* @flow
*/
import React from 'react';
import { View, Text, StyleSheet } from 'react-native';
import { Actions } from 'react-native-router-flux';
import Button from 'Button';
function ChildScene() {
return (
<View style={styles.container}>
<Text style={styles.header}>
... |
node_modules/react-bootstrap/es/NavbarToggle.js | firdiansyah/crud-req | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
app/javascript/mastodon/components/loading_indicator.js | mhffdq/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
const LoadingIndicator = () => (
<div className='loading-indicator'>
<div className='loading-indicator__figure' />
<FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' />
</div>
);
export default LoadingIndicat... |
Inspector/js/tree.js | ymin/WebDriverAgent | /**
* Copyright (c) 2015-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.
*/
import Pro... |
src/containers/Page4.js | D4vx/react-template | import React, { Component } from 'react';
//import PropTypes from 'prop-types';
class Page4 extends Component {
render() {
return (
<div>
Page4
</div>
);
}
}
Page4.propTypes = {
};
export default Page4;
|
src/components/Notifier.js | Hylozoic/hylo-redux | import React from 'react'
const { array, func } = React.PropTypes
import { VelocityTransitionGroup } from 'velocity-react'
export default class Notifier extends React.Component {
static propTypes = {
messages: array,
remove: func
}
componentDidMount () {
setInterval(() => {
let now = Date.now(... |
cloud/dashboard/src/components/MainMenu.js | iotivity/iotivity | /*
* //******************************************************************
* //
* // Copyright 2017 Samsung Electronics All Rights Reserved.
* //
* //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
* //
* // Licensed under the Apache License, Version 2.0 (the "License");
* // you may not use thi... |
src/scripts/base/Q.js | ButuzGOL/constructor | import React from 'react';
import variables from '../styles/variables';
export default class Q extends React.Component {
getStyles() {
return {
fontStyle: variables.baseQuoteFontStyle
};
}
render() {
return (
<q>
{this.props.children}
</q>
);
}
}
|
app/components/Browse/BrowseHeader.js | cdiezmoran/AlphaStage-desktop | // @flow
import React, { Component } from 'react';
import $ from 'jquery';
class BrowseHeader extends Component {
static handleFilterClick(e: Event) {
e.preventDefault();
const $target = $(event.target);
$target.addClass('active');
$target.siblings().removeClass('active');
}
render() {
ret... |
src/React/Widgets/CollapsibleWidget/index.js | Kitware/paraviewweb | import React from 'react';
import PropTypes from 'prop-types';
import style from 'PVWStyle/ReactWidgets/CollapsibleWidget.mcss';
export default class CollapsibleWidget extends React.Component {
constructor(props) {
super(props);
this.state = {
open: props.open,
};
// Bind callback
this.to... |
server/sonar-web/src/main/js/components/shared/Organization.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
components/Footer/Footer.js | guokeke/image-editor | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
... |
src/client/story_list.js | yelken/hacker-menu | import React from 'react'
import Story from './story.js'
import _ from 'lodash'
export default class StoryList extends React.Component {
render () {
var onUrlClick = this.props.onUrlClick
var onMarkAsRead = this.props.onMarkAsRead
var storyNodes = _.map(this.props.stories, function (story, index) {
... |
app/static/scripts/user/authView/signupForm/main.js | joshleeb/WordpressPylon | import AuthActions from '../../../auth/actions.js';
import UserActions from '../../actions.js';
import UserStore from '../../store.js';
import UserConstants from '../../constants.js';
import React from 'react';
require('./styles.scss');
export default class UserSignupForm extends React.Component {
constructor() {
... |
src/components/lib/AlloyFinger.js | CodingJoker/h5-platform | /* AlloyFinger v0.1.0
* By dntzhang
* Github: https://github.com/AlloyTeam/AlloyFinger
*/
import React from 'react';
export default class AlloyFinger extends React.Component {
constructor(props) {
super(props);
this.preV = { x: null, y: null };
this.pinchStartLen = null;
this.... |
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js | xiaotaijun/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
import ActorClient from 'utils/ActorClient';
import { Styles, FlatButton } from 'material-ui';
import { KeyCodes } from 'constants/ActorAppConstant... |
app/javascript/mastodon/features/pinned_statuses/index.js | hyuki0000/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... |
docs/src/pages/discover-more/showcase/Showcase.js | lgollut/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { useSelector } from 'react-redux';
import { withStyles } from '@material-ui/core/styles';
import InputLabel from '@material-ui/core/InputLabel';
import MenuItem from '@material-ui/core/MenuItem';
import FormControl from '@material-ui/core/FormContro... |
Paths/React/05.Building Scalable React Apps/3-react-boilerplate-building-scalable-apps-m3-exercise-files/Before/app/containers/NavigationContainer/index.js | phiratio/Pluralsight-materials | /*
*
* NavigationContainer
*
*/
import React from 'react';
import { connect } from 'react-redux';
import selectNavigationContainer from './selectors';
import Navigation from '../../components/Navigation';
export class NavigationContainer extends React.Component { // eslint-disable-line react/prefer-stateless-func... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.