path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArrayDestructuring.js | maletor/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
function load() {
return [[1, '1'], [2, '2'], [3, '3'],... |
src/app/routes/forms/components/bootstrap-validation/MovieForm.js | backpackcoder/world-in-flames | import React from 'react'
import BootstrapValidator from '../../../../components/forms/validation/BootstrapValidator'
const validatorOptions = {
feedbackIcons: {
valid: 'glyphicon glyphicon-ok',
invalid: 'glyphicon glyphicon-remove',
validating: 'glyphicon glyphicon-refresh'
},
fields: {
title: ... |
src/icons/SubtitlesIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class SubtitlesIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M40 8H8c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM8 24h8v4H8v-4... |
src/svg-icons/maps/layers.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLayers = (props) => (
<SvgIcon {...props}>
<path d="M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27-7.38 5.74zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16z"/>
</SvgIcon>
);
MapsLayers = pure(MapsLayer... |
js/jqwidgets/demos/react/app/slider/layout/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxSlider from '../../../jqwidgets-react/react_jqxslider.js';
class App extends React.Component {
render () {
return (
<div>
<div style={{ fontFamily: 'Verdana', fontSize: 12, float: 'left' }}>
... |
app/edit/index.js | mannysys/imoocApp |
import _ from 'lodash';
import React, { Component } from 'react';
import Icon from 'react-native-vector-icons/Ionicons';
import Video from 'react-native-video';
import ImagePicker from 'react-native-image-picker';
import { CountDownText } from 'react-native-sk-countdown'; //倒计时组件
import {AudioRecorder, AudioUtils} fro... |
react-flux-mui/js/material-ui/src/svg-icons/av/fiber-smart-record.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFiberSmartRecord = (props) => (
<SvgIcon {...props}>
<g><circle cx="9" cy="12" r="8"/><path d="M17 4.26v2.09c2.33.82 4 3.04 4 5.65s-1.67 4.83-4 5.65v2.09c3.45-.89 6-4.01 6-7.74s-2.55-6.85-6-7.74z"/></g>
</S... |
packages/docs/pages/plugin/anchor/index.js | draft-js-plugins/draft-js-plugins | // eslint-disable-next-line import/no-unresolved
// eslint-disable-next-line import/no-duplicates
import customExampleCode from '!!raw-loader!../../../components/Examples/anchor/CustomInlineToolbarEditor';
// eslint-disable-next-line import/no-unresolved
import customExampleLinkStylesCode from '!!raw-loader!../../../co... |
src/js/containers/player/PlayerContainer.js | soundchain/soundchain-frontend | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { withRouter, Route, Switch, Redirect } from 'react-router-dom';
import { PlayerSidebarLeft } from '~/components/player';
import SidebarLeftBox from ... |
src/frontend/components/AdminEventEmailCreationForm.js | Bernie-2016/ground-control | import React from 'react'
import Relay from 'react-relay'
import Radium from 'radium'
import {BernieColors, BernieText, MediaQueries} from './styles/bernie-css'
import {Paper, Slider, Toggle} from 'material-ui'
import GCForm from './forms/GCForm'
import Form from 'react-formal'
import EventPreview from './EventPreview'... |
app/javascript/mastodon/main.js | rutan/mastodon | import * as registerPushNotifications from './actions/push_notifications';
import { default as Mastodon, store } from './containers/mastodon';
import React from 'react';
import ReactDOM from 'react-dom';
import ready from './ready';
const perf = require('./performance');
function main() {
perf.start('main()');
i... |
src/components/layout/body-layout-element.js | ethaMont/3days | import React, { Component } from 'react';
import { defaultWidth } from 'config/config';
export default class BodyLayoutElement extends Component {
render() {
const style = {
width: defaultWidth,
margin: '0 auto',
position: 'relative',
};
return (
<div style={style}>
{this... |
definitions/npm/react-i18next_v2.x.x/test_react-i18next_v2.x.x.js | splodingsocks/FlowTyped | // @flow
import React from 'react'
import {
loadNamespaces,
translate,
I18nextProvider,
Interpolate,
} from 'react-i18next'
import type { TFunction, Translator } from 'react-i18next'
const i18n = { loadNamespaces: () => {} };
<I18nextProvider i18n={ i18n } children={ <div /> } />;
// $FlowExpectedError - mi... |
admin/src/components/ListHeaderTitle.js | Pylipala/keystone | import classnames from 'classnames';
import CurrentListStore from '../stores/CurrentListStore';
import Popout from './Popout';
import PopoutList from './PopoutList';
import React from 'react';
import vkey from 'vkey';
import { FormNote } from 'elemental';
const Transition = React.addons.CSSTransitionGroup;
var ListHe... |
packages/react-error-overlay/src/containers/StackFrame.js | Clearcover/web-build | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/* @flow */
import React, { Component } from 'react';
import CodeBlock from './StackFrameCodeBlock';
import { getPrettyURL } from '../ut... |
src/js/Rankings.react.js | czarandy/mtgptresults | 'use strict';
import DocumentTitle from 'react-document-title';
import React from 'react';
import {Link} from 'react-router';
import Players from './Players.js';
import PlayerLink from './PlayerLink.react.js';
const _ = require('underscore');
const accounting = require('accounting');
const Rankings = props => {
co... |
example/src/app.js | whattokingu/react-animation-mixin | import React from 'react';
import {AnimateByState} from 'react-animation-mixin';
var SimpleCounter = React.createClass({
mixins: [AnimateByState],
getInitialState(){
let animationProps = {
ease: 'quadOut',
speed: '2000',
delayValue: '500'
};
return ({
counter1: 0,
counter2... |
src/shared/components/Media/MediaContent.js | CharlesMangwa/Chloe | /* @flow */
import React from 'react'
import { Image, Text, View } from 'react-native'
import { getPeriodColor } from '@helpers/periods'
import Icon from '@components/Icon'
import styles from './styles'
type Props = {
bookmarked?: boolean,
image?: string,
style: StyleSheet | number,
tileNumber?: number,
til... |
src/svg-icons/file/cloud-download.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudDownload = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-... |
example/examples/PolylineCreator.js | lelandrichardson/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
} from 'react-native';
import MapView, { Polyline, ProviderPropType } from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const... |
src/components/fleet/locations/LocationEdit.js | fusionalliance/autorenter-react | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { withRouter } from 'react-router';
import LocationUpsertForm from './LocationUpsertForm';
import * as LocationActions from '../../../actions/LocationGe... |
node_modules/rc-echarts/example/bar/index.js | wiflsnmo/react_study2 | import React, { Component } from 'react';
import Chart from '../../src';
export default class App extends Component {
render() {
const options = {
title : {
text: '某地区蒸发量和降水量',
subtext: '纯属虚构'
},
tooltip : {
trigger: 'axis'
},
legend: {
data:... |
src/components/video_list_item.js | vishalpandey2192/React | import React from 'react';
// const VideoListItem = (props) => {
const VideoListItem = ({video,onVideoSelect}) => {
const imageUrl = video.snippet.thumbnails.default.url;
// console.log(video);
// const video = props.video;
return(
<li onClick={() => onVideoSelect(video)} className="list-group-... |
src/components/Games.js | danialm/backgammon | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import $ from 'jquery';
import { connect } from 'react-redux';
import { clearCries, cryError } from '../actions';
class Games extends Component {
constructor(props) {
super(props);
this.state = {
mounted: false,
g... |
src/svg-icons/av/mic-none.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvMicNone = (props) => (
<SvgIcon {...props}>
<path d="M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm-1.2-9.1c0-.66.54-1.2 1.2-1.2.66 0 1.2.54 1.2 1.2l-.01 6.2c0 .66-.53 ... |
packages/react/src/components/IconSubmitButton.js | wq/wq.app | import React from 'react';
import { useComponents } from '../hooks';
import { useFormikContext } from 'formik';
export default function IconSubmitButton(props) {
const { IconButton } = useComponents(),
{ isSubmitting } = useFormikContext();
return <IconButton type="submit" disabled={isSubmitting} {...... |
src/components/right-footer.js | KoushikKumar/trade-a-book-client | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { setPageNumbers } from '../actions';
import { NEXT } from '../constants/content-constants';
class RightFooter extends Component {
setPageNumbers() {
const { rightPageNumber } = this.props;
this.props.setPageN... |
src/svg-icons/communication/phonelink-ring.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhonelinkRing = (props) => (
<SvgIcon {...props}>
<path d="M20.1 7.7l-1 1c1.8 1.8 1.8 4.6 0 6.5l1 1c2.5-2.3 2.5-6.1 0-8.5zM18 9.8l-1 1c.5.7.5 1.6 0 2.3l1 1c1.2-1.2 1.2-3 0-4.3zM14 1H4c-1.1 0-2 .9-2... |
src/client/components/CommentFooter/Confirmation.js | busyorg/busy | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import './Confirmation.less';
const Confirmation = ({ onConfirm, onCancel }) => (
<div className="Confirmation">
<a role="presentation" onClick={onConfirm}>
<i className="iconfont icon-success" />
... |
client/src/components/dashboard/Profile/Preferences/common/SaveModal.js | no-stack-dub-sack/alumni-network | import React from 'react';
import { Button, Modal } from 'semantic-ui-react';
const SaveModal = ({ size, close, open, warning, isValid }) => {
const context = {
buttonColor: isValid ? 'green' : 'red',
header: isValid ? 'Success' : 'Error(s)',
headerColor: isValid ? '#007E00' : '#FF4025',
text: isVal... |
app/components/search-result.js | FongZooZ/test-redux-dota2 | import React, { Component } from 'react';
import moment from 'moment';
class SearchResult extends Component {
render() {
let { players } = this.props;
let searchResult = null;
if (players.length > -1) {
let playerRows = [];
players.forEach(player => {
let lastPlayed = player.last_match_time ? moment(... |
src/svg-icons/image/looks-4.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooks4 = (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-4 14h-2v-4H9V7h2v4h2V7h2v10z"/>
</SvgIcon>
);
ImageLooks4 = pure(ImageLoo... |
Libraries/CustomComponents/Navigator/Navigator.js | tgoldenberg/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/components/TodoLists.js | pekkis/dr-kobros-2016 | import React from 'react';
import TodoList from './TodoList';
import { Range } from 'immutable';
import styles from './TodoLists.pcss';
console.log(styles, 'stailz');
const TodoLists = props => {
const { onToggle, onRemove, onMove, todos } = props;
return (
<table className={styles.todos}>
... |
plugins/react/server/__test__/components/otherComponents/ComponentD.js | pure-ui/styleguide | import React from 'react';
export default () => <div></div>;
|
corona-ide-ui/src/Components/ProjectTree/ProjectTree.js | Corona-IDE/corona-ide | import React, { Component } from 'react';
import { Modal } from '@starchart-labs/react-flightdeck';
import ProjectTreeItem from './ProjectTreeItem';
import '../../Style/ProjectTree.css';
class ProjectTree extends Component {
constructor() {
super();
this.state = {
projects: [],
selectedPath: '',
... |
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | Ben-Codes/KalmansRocket | import React from 'react';
import { render } from 'react-dom';
// 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';
render(<HelloWorld />, document.getElementById('react-root'));
|
client/src/js/components/register/index.js | nicksenger/marvelous | import React, { Component } from 'react';
import { FormGroup, ControlLabel, FormControl, HelpBlock, Button } from 'react-bootstrap';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { registerUser } from '../../actions/index';
class Register extends Component {
constructor(pr... |
src/svg-icons/maps/local-library.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalLibrary = (props) => (
<SvgIcon {...props}>
<path d="M12 11.55C9.64 9.35 6.48 8 3 8v11c3.48 0 6.64 1.35 9 3.55 2.36-2.19 5.52-3.55 9-3.55V8c-3.48 0-6.64 1.35-9 3.55zM12 8c1.66 0 3-1.34 3-3s-1.34-3-3-3-... |
app/javascript/mastodon/features/compose/components/privacy_dropdown.js | ashfurrow/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, defineMessages } from 'react-intl';
import IconButton from '../../../components/icon_button';
import Overlay from 'react-overlays/lib/Overlay';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spr... |
src/views/index.js | ryym/web-keyboard-simulator | import React from 'react';
import ReactDOM from 'react-dom';
import KeyboardSimulator from './KeyboardSimulator';
export function renderViewInto(containerId, {
makeKeyPosDetector,
makeKeyDataFinder
}) {
const $container = document.getElementById(containerId);
const keyboardEvent = document.createEvent('Keyboar... |
example/src/app.js | rsamec/react-movie-select | import React from 'react';
import MovieSelect from 'react-movie-select';
import BindToMixin from 'react-binding';
var App = React.createClass({
mixins:[BindToMixin],
getInitialState(){
return { data:{}};
},
render () {
var selectedItems = this.state.data.selectedItems || [];
return (
<div>
<MovieSe... |
packages/material-ui-icons/src/BatteryStd.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let BatteryStd = props =>
<SvgIcon {...props}>
<path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z" />
</SvgIcon>;
Batte... |
src/common/SelectFieldWrapper/SelectFieldWrapperItem.js | Syncano/syncano-dashboard | import React from 'react';
import { ListItem, MenuItem } from 'material-ui';
import { Truncate } from '../';
const SelectFieldItem = (item, type, itemStyles) => {
const styles = {
dropdownList: {
cursor: 'pointer'
}
};
const itemStyle = {
list: (
<ListItem
key={`select-${item.pay... |
dist/module/components/animatedTree.js | jpb12/react-tree-graph | import { extends as _extends } from '../_virtual/_rollupPluginBabelHelpers.js';
import { easeQuadOut } from 'd3-ease';
import PropTypes from 'prop-types';
import React from 'react';
import getTreeData from '../d3.js';
import Animated from './animated.js';
class AnimatedTree extends React.PureComponent {
static propT... |
app_learn/src/containers/Tab3/tab3CenterContainer.js | liuboshuo/react-native | /**
* Created by liushuo on 17/4/19.
*/
import React, { Component } from 'react';
import {
View,
Text,
Image,
StyleSheet,
Platform,
TouchableOpacity,
Animated
} from 'react-native';
import NavigationBar from '../../component/navBarCommon'
import * as Constants from './../../constants/const... |
frontend/component/Login.js | huangyinwu/pratice-nodejs-project | import React from 'react';
import jQuery from 'jquery';
import {Link} from 'react-router';
import {login} from '../lib/client';
import {redirectURL} from '../lib/utils';
export default class Login extends React.Component {
constructor(props) {
super(props);
this.state = {};
}
handleChange(name, e) {
... |
node_modules/react-bootstrap/es/Well.js | NickingMeSpace/questionnaire | 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 ... |
src/svg-icons/image/blur-off.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBlurOff = (props) => (
<SvgIcon {...props}>
<path d="M14 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm-.2 4.48l.2.02c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5l.02.2c.09.67.61 1.19 1.28 1.2... |
frontend/modules/recipe/containers/Recipe.js | RyanNoelk/OpenEats | import React from 'react'
import PropTypes from 'prop-types'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import Loading from '../../base/components/Loading'
import RecipeScheme from '../components/RecipeScheme'
import * as RecipeActions from '../actions/RecipeActions'
import * as R... |
src/containers/employee_form.js | Daviepark/m | import React, { Component } from 'react';
import { Field, reduxForm } from 'redux-form';
import { connect } from 'react-redux';
import { calculateEmployee } from "../actions/index";
import { validate } from "../utils/form_validation"
import styles from '../../style/containers/employee_form.css'
class EmployeeForm exte... |
components/GoogleAnalytics/GoogleAnalytics.js | bannik/hole | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React from 'react';
import { googleAnalyticsId } from '../../config';
const trackingCode = { __html:
`(function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(... |
src/svg-icons/image/wb-sunny.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageWbSunny = (props) => (
<SvgIcon {...props}>
<path d="M6.76 4.84l-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91l-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7... |
src/parser/demonhunter/havoc/modules/talents/ImmolationAura.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER';
import Events from 'parser/core/Events';
import Analyzer, { SELECTED_PLAYER } fro... |
packages/web/examples/SelectedFilters/src/index.js | appbaseio/reactivesearch | import React from 'react';
import ReactDOM from 'react-dom';
import {
ReactiveBase,
DataSearch,
ResultList,
SelectedFilters,
ReactiveList,
} from '@appbaseio/reactivesearch';
import './index.css';
const Main = () => (
<ReactiveBase
app="good-books-ds"
url="https://a03a1cb71321:75b6603d-9456-4a5a-af6b-a487b... |
app/javascript/mastodon/features/ui/util/react_router_helpers.js | Craftodon/Craftodon | import React from 'react';
import PropTypes from 'prop-types';
import { Switch, Route } from 'react-router-dom';
import ColumnLoading from '../components/column_loading';
import BundleColumnError from '../components/bundle_column_error';
import BundleContainer from '../containers/bundle_container';
// Small wrapper t... |
frontend/component/EditTopic.js | sijia-c/practice-node-project | import React from 'react';
import jQuery from 'jquery';
import {addTopic} from '../lib/client';
import {redirectURL} from '../lib/utils';
import TopicEditor from './TopicEditor';
import {getTopicDetail, updateTopic} from '../lib/client';
export default class EditTopic extends React.Component{
constructor(props){
... |
client/src/components/Listing/ListingsContainer.js | Velocies/raptor-ads | import React, { Component } from 'react';
import { Container, Search } from 'semantic-ui-react';
class ListingsContainer extends Component {
constructor(props) {
super(props);
}
handleSearchChange(e) {
// dispatch controlled input update searchValue
}
render() {
<Container>
<Search
... |
src/TextField/TextFieldHint.js | pradel/material-ui | import React from 'react';
import transitions from '../styles/transitions';
const propTypes = {
/**
* @ignore
* The material-ui theme applied to this component.
*/
muiTheme: React.PropTypes.object.isRequired,
/**
* True if the hint text should be visible.
*/
show: React.PropTypes.bool,
/**
... |
app/scripts/core/reactive.js | wermanoid/angular-react-browserify-template | import component from './component';
import ReactDOM from 'react-dom';
import React from 'react';
export default ({name}) => {
return (ReactComponent) => {
const register = component({
name,
template: ' ',
bindings: {props: '<'}
});
class Reactive {
... |
app/components/Avatar/index.js | joeysherman/noodle-time | /**
*
* Avatar
*
*/
import React from 'react';
// import PropTypes from 'prop-types';
// import styled from 'styled-components';
function Avatar() {
return <div />;
}
Avatar.propTypes = {};
export default Avatar;
|
app/javascript/mastodon/features/home_timeline/index.js | tootcafe/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { expandHomeTimeline } from '../../actions/timelines';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../comp... |
examples/templates/header.js | jeffhandley/react-composite-pages | import PropTypes from 'prop-types';
import React from 'react';
import header from './components/header';
import template from './basic';
import ReactCreateClass from 'create-react-class';
export default (req, res, callback) => {
header(req, res, (Header, headerActions) => {
headerActions.signin('header-tem... |
lib/SRStatus/SRStatus.js | folio-org/stripes-components | import React from 'react';
import PropTypes from 'prop-types';
class SRStatus extends React.Component {
static propTypes = {
ariaLive: PropTypes.oneOf(['polite', 'assertive', 'off']),
message: PropTypes.string,
}
static defaultProps = {
ariaLive: 'assertive',
}
constructor(props) {
super(pr... |
src/modules/app/components/ReduxDevTools.js | paramsinghvc/harp | 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-w"
>
<LogMonitor />
... |
site/pages/HomePage.js | tomulin1/react-dnd | import React from 'react';
import Header from '../components/Header';
import PageBody from '../components/PageBody';
import StaticHTMLBlock from '../components/StaticHTMLBlock';
import IndexHTML from '../../docs/index.md';
export default class HomePage {
render() {
return (
<div>
<Header showCover ... |
components/ui/tabs/tabs.js | bannik/hole | import React from 'react';
import ReactDOM from 'react-dom';
import './tabs.scss';
class Tabs extends React.Component {
constructor(props){
super(props);
this.state = {
active: props.children[0]
}
}
tabSelect(index){
let self = this;
if(index != self.state.activeTab){
self.setSta... |
02-simple-contacts/src/components/ContactItem.js | posquit0/react-tutorial | import React from 'react';
import './ContactItem.css'
const CONTACT_IMAGE_DEFAULT = 'http://bcdcog.com/wp-content/uploads/2016/05/profile-default-02.png';
const ContactItem = (props) => {
const img = props.contact.img || CONTACT_IMAGE_DEFAULT;
return (
<li className="contact-item">
<img className="con... |
SSBW/Tareas/Tarea9/restaurantes2/node_modules/react-bootstrap/es/Collapse.js | jmanday/Master | 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 ... |
packages/strapi-admin/files/public/app/containers/App/index.js | lucusteen/strap | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
src/pages/App.js | beehive-spg/beehive-frontend | import React from 'react'
import Helmet from 'react-helmet'
import Main from './Main'
export default () => (
<div>
<Helmet title="Beehive" />
<Main />
</div>
)
|
src/components/TextInputBEM/TextInputBEM.js | ibenavides/ps-react-ibenavides | import React from 'react';
import PropTypes from 'prop-types';
import Label from '../Label';
/** Text input with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */
function TextInput({htmlId, name, label, type = "text", required = false, onChange, placehold... |
src/Mention/Mention.js | ship-components/ship-components-texteditor | /**
* Used to render a mention
*/
import React from 'react';
import classNames from 'classnames';
// CSS Module
import css from './Mention.css';
export default function Mention(props) {
// get props
const {
contentState,
entityKey,
className,
title,
children
} = props;
// get span pro... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | DinethH/LaSalle-Publishing | 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'));
|
src/index.js | Casey1449/Forgiveness-Box | import React from 'react';
import ReactDOM from 'react-dom';
import { browserHistory } from 'react-router';
import './index.css';
import Routes from './routes'
ReactDOM.render(
<Routes history={browserHistory} />,
document.getElementById('root')
);
|
src/routes/UIElement/editor/index.js | tigaly/antd-admin | import React from 'react'
import { Editor } from '../../../components'
import { convertToRaw } from 'draft-js'
import { Row, Col, Card } from 'antd'
import draftToHtml from 'draftjs-to-html'
import draftToMarkdown from 'draftjs-to-markdown'
// https://github.com/jpuri/react-draft-wysiwyg/blob/master/docs/src/components... |
custom-icons.js | opentripplanner/otp-react-redux | import PropTypes from 'prop-types'
import React from 'react'
// FIXME: This dependency is restricting typescripting of this file
import {
ClassicBus,
ClassicGondola,
ClassicModeIcon,
Ferry,
LegIcon,
StandardGondola
} from '@opentripplanner/icons'
/**
* For more advanced users, you can replicate and custom... |
src/js/components/icons/base/UserNew.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/containers/Root.prod.js | RamonGebben/pr-overview | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { Router, PropTypes as RouterPropTypes } from 'react-router';
import configureStore from '../store/configureStore';
import routes from '../routes';
const store = configureStore();
export default class Root extends Component {
... |
node_modules/native-base/Components/Widgets/Thumbnail.js | mk007sg/threeSeaShells | /* @flow */
'use strict';
import React from 'react';
import {Image} from 'react-native';
import NativeBaseComponent from '../Base/NativeBaseComponent';
import computeProps from '../../Utils/computeProps';
import _ from 'lodash';
export default class ThumbnailNB extends NativeBaseComponent {
propTypes: {
... |
components/ChatList.js | aunnnn/open-ideas | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { graphql } from 'react-apollo'
import orderBy from 'lodash/orderBy'
import some from 'lodash/some'
import ChatListItem from './ChatListItem'
import Colors from '../utils/Colors';
import { FIRSTLOAD_CHATROOMS_QUERY, MORE_CHATROOMS_QUE... |
examples/isomorphic/server/index.js | kwangkim/react-rethinkdb | import express from 'express';
import http from 'http';
import {listen as wsListen} from 'rethinkdb-websocket-server';
import React from 'react';
import {Session as RethinkSession} from 'react-rethinkdb/dist/node';
import {Home} from '../client/Home.jsx';
// Set up the HTTP routes
const app = express();
app.use('/bu... |
src/view/entry/serverSideFactory.js | VisitingLandmarks/visitingLandmarks | import config from '../../../config/index';
import React from 'react';
import { renderToString } from 'react-dom/server';
import { StaticRouter as Router } from 'react-router-dom';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import Providers from '../providers';
import { addLocaleData } from 'react-in... |
static/src/Results.js | tmc/parsesearch | import React, { Component } from 'react';
export default class Results extends Component {
constructor(props) {
super(props);
}
render() {
const {results} = this.props;
return (
<div>
{results.length} results
<ul>
{results.map(result =>
<li key={result.id}>- {J... |
webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Dialogs/InputsErrorsDialog.js | pmoravec/katello | import React from 'react';
import PropTypes from 'prop-types';
import { translate as __ } from 'foremanReact/common/I18n';
import { MessageDialog } from 'patternfly-react';
const InputsErrorsDialog = ({
show, showErrorDialog,
}) => (
<MessageDialog
show={show}
title={__('Editing Entitlements')}
seconda... |
src/routes/content/index.js | jwhchambers/react-starter-kit | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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 Content from './Content'... |
src/svg-icons/communication/live-help.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationLiveHelp = (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-6 16h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 11.9 13 12.5 13... |
client/routes.js | Alex-Keyes/socialmediabot | /* eslint-disable global-require */
import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './modules/App/App';
// require.ensure polyfill for node
if (typeof require.ensure !== 'function') {
require.ensure = function requireModule(deps, callback) {
callback(require);
};
}... |
node_modules/grunt-browser-sync/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | Marina-Gurrieri/montheme | 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'));
|
src/styles/StyleGuide.js | techmsi/mental-health-app | import React from 'react';
import themeColors from 'styles/theme.json';
import { Swatches } from 'styles/Swatches';
const swatches = Object.entries(themeColors).map(([name, background]) => ({
name,
background
}));
const Swatch = ({ name, background }) => (
<div key={name}>
<span style={{ background }} />
... |
ui/src/components/OrganizationForm.js | jcampanell-cablelabs/lora-app-server | import React, { Component } from 'react';
import SessionStore from "../stores/SessionStore";
class OrganizationForm extends Component {
static contextTypes = {
router: React.PropTypes.object.isRequired
};
constructor() {
super();
this.state = {
organization: {},
showCanHaveGateways: Se... |
example/src/index.js | littletower/business-hours.js | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
app/javascript/flavours/glitch/features/notifications/components/notifications_permission_banner.js | Kirishima21/mastodon | import React from 'react';
import Icon from 'flavours/glitch/components/icon';
import Button from 'flavours/glitch/components/button';
import IconButton from 'flavours/glitch/components/icon_button';
import { requestBrowserPermission } from 'flavours/glitch/actions/notifications';
import { changeSetting } from 'flavour... |
components/interactive-markdown.js | CarlRosell/glamorous-website | import React from 'react'
import remark from 'remark'
import remarkHtml from 'remark-html'
import visit from 'unist-util-visit'
import CodePreview from './code-preview'
import Callout from './callout'
import ClickToRender from './click-to-render'
import stripIndent from './utils/strip-indent'
export default interactiv... |
tools/public-components.js | brynjagr/react-bootstrap | import React from 'react';
import * as index from '../src/index';
let components = [];
Object.keys(index).forEach(function(item) {
if (index[item] instanceof React.Component.constructor) {
components.push(item);
}
});
export default components;
|
packages/icons/src/dv/NPM.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function DvNPM(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M42 6v36H6V6h36zm-30.006 5.994v23.994H24v-18h5.994v18h5.994V11.994H11.994z" />
</IconBase>
);
}
export default DvNPM;
|
client/test/libs/testHelper.js | mysteryihs/guan_shu_v2 | import React from 'react'
import ReactDOM from 'react-dom'
import TestUtils from 'react-addons-test-utils'
import jsdom from 'jsdom'
import chai from 'chai'
const doc = jsdom.jsdom('<!doctype html><html><body></body></html>')
const win = doc.defaultView
global.document = doc
global.window = win
// from mocha-jsdom h... |
client/src/index.js | ArnaultNouvel/webmail4dev |
// support for IE11
import "babel-polyfill";
// registers Roboto font : https://github.com/callemall/material-ui/issues/6256
import 'typeface-roboto';
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './components/App';
import { Provider } from 'react-redux'
import {... |
src/components/_base/SVGDeviconInline/SVGDeviconInline.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGInline from 'react-svg-inline'
import normalizeCSSUnit from 'normalize-css-unit'
const SVGDeviconInline = ({
className,
iconSVG,
width = null,
height = null,
}) => {
return (
<SVGInline
component={'div'}
classSuffix="-devi... |
frontend/src/index.js | Magomogo/space-oddity | import React from 'react';
import ReactDOM from 'react-dom';
import 'bootstrap/dist/css/bootstrap.css';
import { Grid, PageHeader } from 'react-bootstrap';
import 'es6-promise/auto';
import fetch from 'isomorphic-fetch';
import TheApplication from './components/TheApplication';
import './styles.css';
ReactDOM.render(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.