path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
components/question/DraftsList.js | hustlzp/react-redux-example | import React from 'react'
import Radium from 'radium'
import { Link } from 'react-router'
import { friendlyTimeWithLineBreak, truncate } from '../../filters'
@Radium
export default class DraftsList extends React.Component {
static propTypes = {
questions: React.PropTypes.array.isRequired,
openQuest... |
paraviewweb/src/React/Widgets/ScalarRangeWidget/index.js | CordyChen/VisMechan | import React from 'react';
import style from 'PVWStyle/ReactWidgets/ScalarRangeWidget.mcss';
export default React.createClass({
displayName: 'ScalarRangeWidget',
propTypes: {
max: React.PropTypes.number,
min: React.PropTypes.number,
onApply: React.PropTypes.func,
visible: React.PropTypes.bool,
... |
src/components/dom/controls.js | tkachenko1503/v-card | import React from 'react';
import './controls.scss';
class Controls extends React.Component {
constructor() {
super();
this.handleAdd = (e) => {
this.props.addShape(e.target.dataset.shape);
};
}
render() {
return (
<div className="controls">
<section className="controls... |
Realization/frontend/czechidm-core/src/content/identity/IdentityTable.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import uuid from 'uuid';
import _ from 'lodash';
import moment from 'moment';
//
import * as Basic from '../../components/basic';
import * as Advanced from '../../components/adv... |
src/svg-icons/toggle/star.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ToggleStar = (props) => (
<SvgIcon {...props}>
<path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/>
</SvgIcon>
);
ToggleStar = pure(ToggleStar);
ToggleStar.disp... |
app/javascript/flavours/glitch/features/direct_timeline/index.js | Kirishima21/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from 'flavours/glitch/features/ui/containers/status_list_container';
import Column from 'flavours/glitch/components/column';
import ColumnHeader from 'flavours/glitch/components/column_header... |
src/hoc/selectable-enhance.js | bjfletcher/material-ui | import React from 'react';
import getMuiTheme from '../styles/getMuiTheme';
import ColorManipulator from '../utils/color-manipulator';
export const SelectableContainerEnhance = (Component) => {
const composed = React.createClass({
displayName: `Selectable${Component.displayName}`,
propTypes: {
childr... |
app/javascript/mastodon/components/poll.js | musashino205/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import classNames from 'classnames';
import Motion fr... |
packages/map/src/inputs/Geo.js | wq/wq.app | import React from 'react';
import { useComponents, useInputComponents } from '@wq/react';
import {
TYPE_MAP,
useOverlayComponents,
useFeatureCollection,
asGeometry
} from '../hooks';
import { useField } from 'formik';
import PropTypes from 'prop-types';
export default function Geo({
name,
type,... |
src/BackgroundCells.js | jquense/react-big-calendar | import PropTypes from 'prop-types'
import React from 'react'
import { findDOMNode } from 'react-dom'
import clsx from 'clsx'
import { notify } from './utils/helpers'
import { dateCellSelection, getSlotAtX, pointInBox } from './utils/selection'
import Selection, { getBoundsForNode, isEvent } from './Selection'
class B... |
app/javascript/mastodon/features/picture_in_picture/index.js | primenumber/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Video from 'mastodon/features/video';
import Audio from 'mastodon/features/audio';
import { removePictureInPicture } from 'mastodon/actions/picture_in_picture';
import Header from './components/header';
import F... |
admin/client/App/components/Navigation/Mobile/ListItem.js | dryna/keystone-twoje-urodziny | /**
* A list item of the mobile navigation
*/
import React from 'react';
import { Link } from 'react-router';
const MobileListItem = React.createClass({
displayName: 'MobileListItem',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
href: React.PropTypes.string.isRe... |
pages/_document.js | gabriel-miranda/frontending.me | import React from 'react';
import Document, { Main, NextScript } from 'next/document';
import { renderStatic } from 'glamor/server';
import Metadata from '../components/Metadata';
export default class MyDocument extends Document {
static async getInitialProps({ renderPage }) {
const page = renderPage();
con... |
src/components/CarouselHeader.js | jacklam718/react-native-carousel-component | // @flow
import React, { Component } from 'react';
import {
View,
Image,
Text,
Platform,
StyleSheet,
TouchableOpacity,
ToolbarAndroid,
} from 'react-native';
const STATUS_BAR_HEIGHT = Platform.OS === 'ios' ? 20 : 25;
const HEADER_HEIGHT = Platform.OS === 'ios' ? 44 + STATUS_BAR_HEIGHT : 56 + STATUS_BAR_... |
generators/app/templates/app/containers/pages/_fooPage.js | leanne1/leanne1-yeoman | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { pushState } from 'redux-router';
import { pageActions } from '../../actions/';
export default class FooPage extends Component {
static propTypes = {
pageActions: React.Prop... |
test/integration/basic/pages/dynamic/bundle.js | flybayer/next.js | import React from 'react'
import dynamic from 'next/dynamic'
import Router from 'next/router'
import PropTypes from 'prop-types'
const HelloBundle = dynamic({
modules: (props) => {
const components = {
HelloContext: import('../../components/hello-context'),
Hello1: import('../../components/hello1'),
... |
lib/components/Tempalink.js | jekrb/filepizza | import React from 'react'
export default class Tempalink extends React.Component {
onClick() {
this.refs.input.getDOMNode().setSelectionRange(0, 9999)
}
render() {
var url = window.location.origin + '/' + this.props.token
return <input
className="tempalink"
onClick={this.onClick.bind(th... |
components/input-number/demo/index.js | TDFE/td-ui | /**
* @Author: GinaLu <ljq>
* @Date: 2017-05-16 14:49:49
* @Last modified by: ljq
* @Last modified time: 2017-05-16 18:33:09
*/
/* eslint-disable */
import React from 'react';
import ReactDOM from 'react-dom';
const MOUNT_NODE = document.getElementById('app');
function onChange(value) {
console.log('chang... |
dev/web/www/js/components/footer/footer.js | zajacmarekcom/letswrite | import React from 'react'
import {Row, Col} from 'react-bootstrap'
const Footer = React.createClass({
render: () => {
return(
<footer className="footer">
<Row>
<Col md={6} mdOffset={3}>
<p className="footer-copyrights">Copyrights Marek... |
src/deposit/DepositContainer.js | qingweibinary/binary-next-gen | import React, { Component } from 'react';
import { connect } from 'react-redux';
import shouldPureComponentUpdate from 'react-pure-render/function';
import DepositCard from './DepositCard';
import depositSelectors from './depositSelectors';
@connect(depositSelectors)
export default class DepositContainer extends Compo... |
src/client/components/profile/EditProfileForm.component.js | DBCDK/content-first | import React from 'react';
import T from '../base/T';
import Button from '../base/Button/Button';
import Toolbar from '../base/Toolbar/Toolbar';
export default class EditProfileForm extends React.Component {
onSubmit = e => {
e.preventDefault();
e.stopPropagation();
// Check if username is more than 4 ch... |
src/containers/FirstPage/FirstPageView.js | shwethadn/StarterApp | /**
* Authenticate Screen
* - Entry screen for all authentication
* - User can tap to login, forget password, signup...
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import {
View,
Image,
StyleSheet,
} from 'react-native';
... |
new-lamassu-admin/src/pages/LoyaltyPanel/IndividualDiscountModal.js | lamassu/lamassu-server | import { makeStyles } from '@material-ui/core/styles'
import { Form, Formik, Field } from 'formik'
import * as R from 'ramda'
import React from 'react'
import * as Yup from 'yup'
import ErrorMessage from 'src/components/ErrorMessage'
import Modal from 'src/components/Modal'
import { HoverableTooltip } from 'src/compon... |
src/js/components/NameValueList/stories/PairProps.js | HewlettPackard/grommet | import React from 'react';
import { Box, Grommet, NameValueList, NameValuePair, Text } from 'grommet';
import { grommet } from 'grommet/themes';
import { data } from './data';
export const PairProps = () => (
<Grommet theme={grommet}>
<Box pad="small" gap="large">
<>
<Text weight="bold" size="2xl">... |
ui/src/index.js | indraneel/sustainability-dashboard | import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
import { Provider } from 'react-redux';
import configureStore from './redux/configureStore';
import injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEventPlugin(); // for mat... |
src/scenes/home/press/pressVideos/pressVideos.js | NestorSegura/operationcode_frontend | import React from 'react';
import styles from './pressVideos.css';
function PressVideos() {
return (
<div className={styles.pressVideos}>
<iframe
title="GitHub Universe: Operation Code"
src="https://www.youtube.com/embed/xN7yMoe38xc"
frameBorder="0"
allowFullScreen
w... |
src/components/krakenjs/original/KrakenjsOriginal.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './KrakenjsOriginal.svg'
/** KrakenjsOriginal */
function KrakenjsOriginal({ width, height, className }) {
return (
<SVGDeviconInline
className={'KrakenjsOriginal' +... |
src/components/timeseries-chart.js | ronlobo/building-os-charts | import React from 'react';
import Chart from 'components/chart';
import BoxUtil from 'utils/box-util';
import TimeseriesGroup from 'components/timeseries-group';
import TimeseriesLegend from 'components/timeseries-legend';
import InteractionSurface from 'components/interaction-surface';
import clone from 'clone';
impor... |
src.test/component-injection-with-props.js | epsitec-sa/electrum | /* global describe it */
import {expect} from 'mai-chai';
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import Electrum from 'electrum';
import {Store} from 'electrum-store';
import {Theme} from 'electrum-theme';
let styleGetCounter = 0;
describe ('Component with props', () => {
cons... |
node_modules/react-bootstrap/es/InputGroupButton.js | geng890518/editor-ui | 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/browser/src/components/DataTable/DataTable.js | appbaseio/dejaVu | // @flow
import React, { Component } from 'react';
import { connect } from 'react-redux';
import get from 'lodash/get';
import difference from 'lodash/difference';
import isEqual from 'lodash/isEqual';
import DataGrid from './DataGrid';
import {
setCellValueRequest,
setCurrentIds,
setArrayFields,
} from '../../ac... |
cheesecakes/plugins/upload/admin/src/components/PluginInputFile/index.js | strapi/strapi-examples | /**
*
* PluginInputFile
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import cn from 'classnames';
import styles from './styles.scss';
/* eslint-disable react/no-string-refs */
/* eslint-disable jsx-a11y/label-has-for */
/* eslint-disable react... |
app/old/App.js | boris-p/borispl | import React from 'react';
import styles from './App.css';
export default class App extends React.Component {
constructor(props) {
super(props);
this.state = {test: 'foo'};
let a = 2/10;
}
render() {
return (
<div class={styles.main}>
<div class={styles.app11}>
bar 23 sdf
<br />
... |
docs/client/components/pages/Resizeable/index.js | dagopert/draft-js-plugins | import React, { Component } from 'react';
// eslint-disable-next-line import/no-unresolved
import simpleExampleCode from '!!../../../loaders/prism-loader?language=javascript!./SimpleResizeableEditor';
// eslint-disable-next-line import/no-unresolved
import simpleExampleEditorStylesCode from '!!../../../loaders/prism-l... |
src/server.js | bkniffler/react-redux-universal-hot-example | import Express from 'express';
import React from 'react';
import Location from 'react-router/lib/Location';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
im... |
src/svg-icons/av/replay-10.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvReplay10 = (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.1 11H10v-3.3L9 13v-.7l1.8-.6h.1V16zm4.3-1.8c0 .3 0 .6-.1.... |
source/components/Texts/FullTextReveal.js | mikey1384/twin-kle | import React from 'react';
import PropTypes from 'prop-types';
import ErrorBoundary from 'components/Wrappers/ErrorBoundary';
import { Color } from 'constants/css';
FullTextReveal.propTypes = {
direction: PropTypes.string,
show: PropTypes.bool,
style: PropTypes.object,
text: PropTypes.string.isRequired
};
exp... |
app/javascript/mastodon/features/ui/components/drawer_loading.js | blackle/mastodon | import React from 'react';
const DrawerLoading = () => (
<div className='drawer'>
<div className='drawer__pager'>
<div className='drawer__inner' />
</div>
</div>
);
export default DrawerLoading;
|
examples/main.js | wx11055/learn-js-webpack | // const greeter = require('./Greeter.js');
// document.querySelector("#root").appendChild(greeter());
import React from 'react';
import { render } from 'react-dom';
import Greeter from './Greeter';
import './main.css';
import styles from './Greeter.css';//导入
render(<Greeter/>,document.getElementById('root')); |
src/index.js | dkozar/react-data-menu | import React from 'react';
import { render } from 'react-dom';
import { App } from './App';
render(<App />, document.getElementById('root'));
|
src/Field.react.js | cpojer/hextrapolate | /**
* Copyright 2003-present Greg Hurrell. All rights reserved.
* Licensed under the terms of the MIT license.
*
* @flow
*/
'use strict';
import DIGITS from './DIGITS';
import React from 'react';
import convert from './convert';
import cx from 'classnames';
export type Value = {
base: number;
value: string;... |
node_modules/react-router/es/withRouter.js | oiricaud/horizon-education | 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 = {... |
addons/actions/src/components/ActionLogger/index.js | bigassdragon/storybook | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Inspector from 'react-inspector';
import style from './style';
class ActionLogger extends Component {
componentDidUpdate() {
const latest = this.refs.latest;
if (latest) {
const borderLeft = style.action.borderLeft;
... |
docs/src/app/components/pages/components/RadioButton/ExampleSimple.js | mmrtnz/material-ui | import React from 'react';
import {RadioButton, RadioButtonGroup} from 'material-ui/RadioButton';
import ActionFavorite from 'material-ui/svg-icons/action/favorite';
import ActionFavoriteBorder from 'material-ui/svg-icons/action/favorite-border';
const styles = {
block: {
maxWidth: 250,
},
radioButton: {
... |
src/index.js | KevinT0323/gallery-by-react | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
src/renderer/components/preferences/components/shortcut-input.js | buttercup-pw/buttercup | // thanks to kap
// https://github.com/wulkano/kap/blob/master/renderer/components/preferences/shortcut-input.js
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import styled from 'styled-components';
import { LabelWrapper, ResetButton } from './ui-elements';
import {... |
src/decorators/withViewport.js | eugeneross/react-starter-kit | /*! 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... |
src/js/components/Header.js | Robert-W/esri-redux | import React, { Component } from 'react';
import logoImg from 'images/logo.svg';
export default class Header extends Component {
displayName: 'Header';
render () {
const {title, subtitle} = this.props;
return (
<div className='app-header'>
<h1 className='app-title'>{title}</h1>
<h2 ... |
docs/src/app/components/pages/components/Paper/ExampleSimple.js | hai-cea/material-ui | import React from 'react';
import Paper from 'material-ui/Paper';
const style = {
height: 100,
width: 100,
margin: 20,
textAlign: 'center',
display: 'inline-block',
};
const PaperExampleSimple = () => (
<div>
<Paper style={style} zDepth={1} />
<Paper style={style} zDepth={2} />
<Paper style={s... |
packages/xo-web/src/xo-app/hub/recipes/index.js | vatesfr/xo-web | import decorate from 'apply-decorators'
import React from 'react'
import { adminOnly } from 'utils'
import { Container, Col, Row } from 'grid'
import Recipe from './recipe'
// ==================================================================
export default decorate([
adminOnly,
() => (
<Container>
<Ro... |
src/CollapsibleMixin.js | xsistens/react-bootstrap | import React from 'react';
import TransitionEvents from './utils/TransitionEvents';
import deprecationWarning from './utils/deprecationWarning';
const CollapsibleMixin = {
propTypes: {
defaultExpanded: React.PropTypes.bool,
expanded: React.PropTypes.bool
},
getInitialState(){
let defaultExpanded = ... |
demos/forms-demo/src/components/Menu/SettingsCheckbox.js | FWeinb/cerebral | import React from 'react'
import {connect} from 'cerebral/react'
export default connect((props) => (
{
'field': `${props.path}.**`
}),
{
'toggleSelectSettings': 'app.toggleSelectSettings'
},
function SettingsCheckbox ({field, path, toggleSelectSettings}) {
const {value} = field
return (
... |
src/svg-icons/maps/local-atm.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalAtm = (props) => (
<SvgIcon {...props}>
<path d="M11 17h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4V8h-2V7h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2v1zm9-13H4c-1.11 0-1.99.89-1.99 2L2 1... |
src/components/UI/Loading.js | mcnamee/react-native-starter-app | import React from 'react';
import { View, ActivityIndicator } from 'react-native';
import Colors from '../../../native-base-theme/variables/commonColor';
const Loading = () => (
<View style={{ flex: 1, flexDirection: 'column', justifyContent: 'center' }}>
<ActivityIndicator size="large" color={Colors.brandPrimar... |
examples/universal/client/index.js | eniz/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import configureStore from '../common/store/configureStore';
import App from '../common/containers/App';
const initialState = window.__INITIAL_STATE__;
const store = configureStore(initialState);
const rootElement = do... |
node_modules/react-icons/io/ios-cloud.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const IoIosCloud = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m28.7 18.2c3.5 0 6.3 2.9 6.3 6.5 0 3.5-2.9 6.5-6.4 6.5h-21.6c-3.9 0.1-7-3.2-7-7.1 0-3.2 2-5.6 4.8-6.5 0.4-2.2 2.2-4.1 4.6-4.1 0.8 0 1.4 0.2 2 0.5 1.5-3.1 4.6-5.2 8.2... |
src/index.js | sunpietro/LeagueManager | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route } from 'react-router';
import { Provider } from 'react-redux';
import store, { history } from './store';
import Dashboard from './components/dashboard/dashboard';
import CompetitionsList from './components/competitions/competitions-lis... |
js/src/dapps/githubhint.js | immartian/musicoin | // Copyright 2015, 2016 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any la... |
main.js | GabrielLagos/emotion_analyser | /**
* 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 'babel-polyfill';
im... |
components/auth/UnlinkFromFacebook.js | digithun/jamplay-nap | import React from 'react'
import { gql, graphql, compose } from 'react-apollo'
import userProfile from '../userProfile.gql'
import PropTypes from 'prop-types'
class UnlinkFromFacebook extends React.Component {
constructor (props) {
super(props)
this.unlinkFromFacebook = props.unlinkFromFacebook
}
handl... |
src/components/Link.js | leoasis/redux-state-router | import React from 'react';
export default class Link extends React.Component {
static contextTypes = {
store: React.PropTypes.object,
renderUrl: React.PropTypes.func,
};
render() {
return <a href={this.calculateUrl()} onClick={this.handleClick.bind(this)}>
{this.props.children}
</a>;
}
... |
src/browser/firebase/FirebasePage.react.js | syroegkin/mikora.eu | import Component from 'react-pure-render/component';
import Helmet from 'react-helmet';
import OnlineUsers from '../users/OnlineUsers.react';
import React from 'react';
import linksMessages from '../../common/app/linksMessages';
import { FormattedMessage } from 'react-intl';
export default class FirebasePage extends C... |
pages/demos/buttons.js | cherniavskii/material-ui | import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from 'docs/src/pages/demos/buttons/buttons.md';
function Page() {
return (
<MarkdownDocs
markdown={markdown}
demos={{
'p... |
docs/src/pages/demos/tabs/FullWidthTabs.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import SwipeableViews from 'react-swipeable-views';
import AppBar from 'material-ui/AppBar';
import Tabs, { Tab } from 'material-ui/Tabs';
import Typography from 'material-ui/Typography';
function TabContain... |
src/svg-icons/editor/format-quote.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatQuote = (props) => (
<SvgIcon {...props}>
<path d="M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z"/>
</SvgIcon>
);
EditorFormatQuote = pure(EditorFormatQuote);
EditorFormatQuote.displayName = 'EditorFor... |
src/customIcon.js | iamtonybologna/freebird | import React from 'react';
import {blue500, red500, greenA200} from 'material-ui/styles/colors';
import SvgIcon from 'material-ui/SvgIcon';
const iconStyles = {
height: '200%',
width: '200%',
margin: 'auto',
position: 'absolute'
};
const HomeIcon = (props) => (
<SvgIcon {...props}>
<g>
<g>
<g>
... |
src/containers/LoginPage.js | great-design-and-systems/cataloguing-app | import '../images/login-panel.png';
import '../images/login-body.jpg';
import * as actions from '../actions/LoginActions';
import { LoginBody } from '../components/login/';
import PropTypes from 'prop-types';
import React from 'react';
import { bindActionCreators } from 'redux';
import { browserHistory } from 'react-... |
webpack/components/CodedSetTable.js | CDCgov/SDP-Vocabulary-Service | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import sortBy from 'lodash/sortBy';
import { Button } from 'react-bootstrap';
import InfoModal from '../components/InfoModal';
export default class CodedSetTable extends Component {
constructor(props) {
super(props);
this.state = ... |
lib/utils/plugins.js | ekmartin/hyperterm | import {remote} from 'electron';
import {connect as reduxConnect} from 'react-redux';
// we expose these two deps to component decorators
import React from 'react';
import Component from '../component';
import Notification from '../components/notification';
import notify from './notify';
const Module = require('modul... |
eventkit_cloud/ui/static/ui/app/components/Notification/NotificationMenu.js | terranodo/eventkit-cloud | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import { withTheme } from '@material-ui/core/styles';
import MenuItem from '@material-ui/core/MenuItem';
import OpenInNewIcon from '@material-ui/icons/OpenInNew';
import FlagIcon from '@material-ui/icons/Flag';
import ... |
src/routes/home/index.js | loremtest/skb5-with-storybook | /**
* 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 Home from './Home';
impo... |
app/component/home/index.js | michelia-alba/music-player | import React from 'react'
import Header from '../header/index.js'
import Progress from '../progress/index.js'
import MusicContent from '../musicContent/index.js'
import Voice from '../voice/index.js'
import $ from 'jquery'
import jPlayer from 'jPlayer'
import { MUSIC_LIST } from '../../config/musicList.js'
import './st... |
src/pages/404.js | wkf/wkf.github.io | import React from 'react'
const NotFoundPage = () => (
<div>
<h1>NOT FOUND</h1>
<p>You just hit a route that doesn't exist... the sadness.</p>
</div>
)
export default NotFoundPage
|
pages/react.js | grand-crew/grand-crew.github.io | import React from 'react'
export default class ReactComponent extends React.Component {
constructor () {
super()
this.state = { count: 0 }
}
handlePlusClick () {
this.setState({ count: this.state.count + 1 })
}
handleMinusClick () {
this.setState({ count: this.state.count - 1 })
}
rend... |
docs/app/Examples/elements/Segment/Variations/SegmentExampleEmphasis.js | ben174/Semantic-UI-React | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExampleEmphasis = () => (
<div>
<Segment>
I'm here to tell you something, and you will probably read me first.
</Segment>
<Segment secondary>
I am pretty noticeable but you might check out other content before ... |
see-fariba-code/src/App.js | fafafariba/fafafariba.github.io | import React from 'react';
import './App.css';
import hairCoffee from './hair-coffee.png';
export default function App(props) {
// let view = props.path == "/" ? <Splash /> : < Main />
return(
<main className="splash">
<h1 id="first">FARIBA</h1>
<h1 id="last">MASSAH</h1>
<img src... |
src/server.js | Nek/react-redux-universal-hot-example | /*global __DEVELOPMENT__*/
import Express from 'express';
import React from 'react';
import Location from 'react-router/lib/Location';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStor... |
lib/components/MapMarker.js | j0ergo/react-native-maps | import PropTypes from 'prop-types';
import React from 'react';
import {
StyleSheet,
Platform,
NativeModules,
Animated,
findNodeHandle,
ViewPropTypes,
} from 'react-native';
import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource';
import decorateMapComponent, {
SUPPORTED,
USES_D... |
src/components/Category.js | nickeblewis/walkapp | /**
* Component that displays one category item
*/
import React from 'react'
import { graphql } from 'react-apollo'
import gql from 'graphql-tag'
class Category extends React.Component {
static propTypes = {
category: React.PropTypes.object,
mutate: React.PropTypes.func,
refresh: React.PropTypes.func,... |
src/Alert.js | Sipree/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import bootstrapUtils, { bsStyles, bsClass } from './utils/bootstrapUtils';
import { State } from './styleMaps';
let Alert = React.createClass({
propTypes: {
onDismiss: React.PropTypes.func,
dismissAfter: React.PropTypes.number,
closeLabel:... |
webpack/components/TypeAhead/pf3Search/TypeAheadInput.js | snagoor/katello | import React, { Component } from 'react';
import { FormControl } from 'patternfly-react';
import { commonInputPropTypes } from '../helpers/commonPropTypes';
class TypeAheadInput extends Component {
constructor(props) {
super(props);
this.handleKeyPress = this.handleKeyPress.bind(this);
}
componentDidMo... |
src/components/Common/Footer/Views/Common/tpl.js | LifeSourceUA/lifesource.ua | /**
* [IL]
* Library Import
*/
import React from 'react';
import PropTypes from 'prop-types';
/**
* [IS]
* Style Import
*/
import Styles from './Styles/main.scss';
import Grid from 'theme/Grid.scss';
import Palette from 'theme/Palette';
/**
* [IA]
* Assets Import
*/
import Envelope from 'components/Assets/En... |
modules/Router.js | cold-brew-coding/react-router | import React from 'react'
import warning from 'warning'
import createHashHistory from 'history/lib/createHashHistory'
import { createRoutes } from './RouteUtils'
import RoutingContext from './RoutingContext'
import useRoutes from './useRoutes'
import { routes } from './PropTypes'
const { func, object } = React.PropTyp... |
aplicaciones_informaticas/frontendPacientes/src/components/Recommendation/RecommendationItems/index.js | awainer/7539 | import React, { Component } from 'react';
import { List, ListItem, ListSubHeader } from 'react-toolbox/lib/list';
import FontIcon from 'react-toolbox/lib/font_icon';
import styles from './styles.css';
class RecommendationItems extends Component {
getListItem (item, selectItem) {
const itemContent = (
<d... |
src/components/GithubButton/GithubButton.js | lian1925/redux | import React from 'react';
const GithubButton = (props) => {
const {user, repo, type, width, height, count, large} = props;
let src = `https://ghbtns.com/github-btn.html?user=${user}&repo=${repo}&type=${type}`;
if (count) src += '&count=true';
if (large) src += '&size=large';
return (
<iframe
src=... |
packages/react-error-overlay/src/components/CodeBlock.js | ro-savage/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.
*/
/* @flow */
import React from 'react';
import { redTransparent, yellowTransparent } from '../styles';
const _preStyle = {
display: 'b... |
packages/ringcentral-widgets-docs/src/app/pages/Components/Draggable/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import { parse } from 'react-docgen';
import CodeExample from '../../../components/CodeExample';
import ComponentHeader from '../../../components/ComponentHeader';
import PropTypeDescription from '../../../components/PropTypeDescription';
import Demo from './Demo';
// eslint-disable-next-lin... |
src/js/jobs/screens/SearchScreen.js | tpucci/jobads-webapp | import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import TextField from 'material-ui/TextField';
import {grey600, greenA200} from 'material-ui/styles/colors';
import LinearProgress from 'material-ui/LinearProgress';
import IconButton from 'material-ui/IconButton';
import ActionSearch from ... |
packages/forms/src/deprecated/widgets/MultiSelectTagWidget/MultiSelectTagWidget.js | Talend/ui | import PropTypes from 'prop-types';
import React from 'react';
import { withTranslation } from 'react-i18next';
import Badge from '@talend/react-components/lib/Badge';
import Typeahead from '@talend/react-components/lib/Typeahead';
import classNames from 'classnames';
import keycode from 'keycode';
import theme from '.... |
src/index.js | brandnpatterson/brandnpatterson.com | import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import App from './App';
import 'bootstrap/dist/css/bootstrap.min.css';
let renderApp = () => {
render(
<AppContainer>
<App />
</AppContainer>,
document.getElementById('root')
);
};
re... |
app/javascript/mastodon/components/icon_button.js | rekif/mastodon | import React from 'react';
import Motion from '../features/ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default class IconButton extends React.PureComponent {
static propTypes = {
className: PropTypes.stri... |
src/icons/font/ArrowDownIcon.js | skystebnicki/chamel | import React from 'react';
import PropTypes from 'prop-types';
import FontIcon from '../../FontIcon';
import ThemeService from '../../styles/ChamelThemeService';
const ArrowDownIcon = (props, context) => {
let theme =
context.chamelTheme && context.chamelTheme.fontIcon
? context.chamelTheme.fontIcon
... |
src/components/Contribute/Finish.js | ant-design/scaffold-market | import React from 'react';
import { Button, Icon } from 'antd';
import { FormattedMessage } from 'react-intl';
import styles from './Finish.less';
export default ({ url }) => (
<div className={styles.container}>
<Icon type="check-circle-o" className={styles.check} />
<h2 className={styles.title}>
<Form... |
templates/js/styled-components/client/containers/StaticImage.js | reimagined/resolve | import React from 'react'
import { Image } from 'react-bootstrap'
import { useStaticResolver } from '@resolve-js/react-hooks'
const StaticImage = ({ src, ...otherProps }) => {
const resolveStatic = useStaticResolver()
return <Image {...otherProps} src={resolveStatic(src)} />
}
export { StaticImage }
|
Frontend/src/index.js | mayk93/SentimentAnalysis | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware, compose } from 'redux';
import thunk from 'redux-thunk';
import promiseMiddleware from 'redux-promise';
import App from './components/app';
import reducers from './reducers';
con... |
app/views/main/elements/chart-page.js | 7kfpun/FinanceReactNative | import React from 'react';
import PropTypes from 'prop-types';
import {
Image,
StyleSheet,
Text,
TouchableHighlight,
View,
} from 'react-native';
const styles = StyleSheet.create({
container: {
flex: 1,
},
timeSpanGroup: {
flex: 1,
flexDirection: 'row',
},
timeSpan: {
flex: 1,
a... |
packages/ringcentral-widgets/components/CallItem/index.js | u9520107/ringcentral-js-widget | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import 'core-js/fn/array/find';
import callDirections from 'ringcentral-integration/enums/callDirections';
import messageTypes from 'ringcentral-integration/enums/messageTypes';
import messageDirection fro... |
node_modules/google-map-react/develop/markers/ReactiveMarker.js | Bartoshko/occasion-jitsu | import React from 'react';
import compose from 'recompose/compose';
import SimpleMarker from './SimpleMarker';
import stream2Props from '../utils/stream2Props';
import 'rxjs/add/operator/filter';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/do';
import 'rxjs/add/operator/scan';
import 'rxjs/add/operator/di... |
client/components/MultiplayerInfo.js | rickyeh/nimblecode | import React, { Component } from 'react';
class MultiplayerInfo extends Component {
constructor(props) {
super(props);
this.link = "http://nimblecode.io/#/multigame/" + this.props.gameId;
}
render() {
return (
<div className="col-sm-12">
<h3 className="text-center no-top-margin">Multi... |
source/ScrollableList.js | halt-hammerzeit/react-responsive-ui | import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import List from './List'
// `PureComponent` is only available in React >= 15.3.0.
const PureComponent = React.PureComponent || React.Component
export default class ScrollableList extends PureComponent
{
static propType... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.