path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
js/MDCButton/MDCFlatButton.js | Sw0rdstream/react-native-material-components | import {requireNativeComponent} from 'react-native';
import React, { Component } from 'react';
import MDCButton from './MDCButton';
export default class MDCFlatButton extends MDCButton {
render() {
return <NativeMDCFlatButton {...this.props} />;
}
}
const NativeMDCFlatButton = requireNativeComponent('RCTMDCFla... |
app/javascript/mastodon/features/ui/components/report_modal.js | ambition-vietnam/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { changeReportComment, changeReportForward, submitReport } from '../../../actions/reports';
import { refreshAccountTimeline } from '../../../actions/timelines';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-pr... |
actor-apps/app-web/src/app/components/modals/invite-user/InviteByLink.react.js | liqk2014/actor-platform | import React from 'react';
import Modal from 'react-modal';
import addons from 'react/addons';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import { Styles, FlatButton, Snackbar } from 'material-ui';
import ReactZeroClipboard from 'react-zeroclipboard';
import { KeyCo... |
imports/ui/components/runs/HolidaysTimeline.js | KyneSilverhide/team-manager | import React from 'react';
import Timeline from 'react-calendar-timeline';
import moment from 'moment';
import 'moment/locale/fr';
import { extendMoment } from 'moment-range';
export default class HolidaysTimeline extends React.Component {
constructor(props) {
super(props);
moment.locale('fr');
}
getGr... |
src/svg-icons/device/signal-cellular-connected-no-internet-2-bar.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularConnectedNoInternet2Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M14 22V10L2 22h12zm6-12v8h2v-8h-2zm0 12h2v-2h-2v2z"/>
</SvgIcon>
);
Devi... |
app/components/common/SearchBar.js | friend0/react_sensor_app | import React from 'react';
export default class SearchBar extends React.Component {
render() {
const value = this.props.value;
return (
<search_bar>
<div className='row'>
<input type='text' name='name' value={value} onChange={this.props.onChange}/>
... |
docs/tutorial/DO_NOT_TOUCH/10/src/index.js | idream3/cerebral | import React from 'react'
import {render} from 'react-dom'
import {Controller} from 'cerebral'
import App from './components/App'
import {Container} from 'cerebral/react'
import Devtools from 'cerebral/devtools'
import HttpProvider from 'cerebral-provider-http'
import {set, debounce} from 'cerebral/operators'
import {s... |
examples/passing-props-to-children/app.js | whouses/react-router | import React from 'react';
import { Router, Route, Link, History } from 'react-router';
var App = React.createClass({
mixins: [ History ],
getInitialState() {
return {
tacos: [
{ name: 'duck confit' },
{ name: 'carne asada' },
{ name: 'shrimp' }
]
};
},
addTaco() {... |
demo/src/home/controller/base.js | snadn/think-react-app | import base from 'think-react-app/lib/base'
import React from 'react';
export default class extends base() {
async __before() {
return super.__before();
let user = await this.session('user');
if (user) {
user = think.extend({}, user); // 复制user, 防止在view被修改,影响session
}
this.assign('user', user);
th... |
docs/index.js | AlexKVal/react-lib-boilerplate | import React from 'react'
import App from './components/App'
React.render(
<App />,
document.getElementById('root')
)
|
app/assets/javascripts/react/views/Shared/ConfidentialLinkNew.js | Madek/madek-webapp | import React from 'react'
import f from 'lodash'
import { t } from '../../lib/ui.coffee'
import UI from '../../ui-components/index.coffee'
import RailsForm from '../../lib/forms/rails-form.cjsx'
import DayPicker from 'react-day-picker'
import MomentLocaleUtils from 'react-day-picker/moment'
import currentLocale from '.... |
app/components/sparkline/Sparklines.js | thewazir/twitbeat | import React from 'react';
import SparklinesLine from './SparklinesLine';
import SparklinesBars from './SparklinesBars';
import SparklinesSpots from './SparklinesSpots';
import SparklinesReferenceLine from './SparklinesReferenceLine';
import SparklinesNormalBand from './SparklinesNormalBand';
import DataProcessor... |
pages/about/index.js | marcogazzola/ZtH | /**
* 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';
... |
webpack/scenes/Subscriptions/Details/SubscriptionDetails.js | jlsherrill/katello | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Grid, Row, Col } from 'patternfly-react';
import SubscriptionDetailInfo from './SubscriptionDetailInfo';
import SubscriptionDetailAssociations from './SubscriptionDetailAssociations';
import SubscriptionDetailProducts from './Subscri... |
components/partials/AddCourseBody.js | freyconner24/Quizzly | "use strict";
import React from 'react'
export default class AddCourseBody extends React.Component {
constructor(props) {
super(props);
this.state = {
isAddCourse: false,
course: {
title: "",
placeholder: "Course...",
sections: [
{title: "", placeholder: "Sectio... |
ajax/libs/react-instantsearch/3.3.2/Dom.js | seogi1004/cdnjs | /*! ReactInstantSearch 3.3.2 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define ... |
src/Provider.js | 8balloon/eigenstate | import React from 'react'
import Immutable from 'seamless-immutable'
import { mapObjectTreeLeaves } from './utils'
import assert from './validation/assert'
export class Provider extends React.Component {
constructor(props, context) {
super(props, context)
this.effectorUnsetters = []
this.initialize(pr... |
packages/icons/src/md/action/SettingsInputSVideo.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdSettingsInputSVideo(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M16 23c0-1.66-1.34-3-3-3s-3 1.34-3 3 1.34 3 3 3 3-1.34 3-3zm14-10c0-1.66-1.34-3-3-3h-6c-1.66 0-3 1.34-3 3s1.34 3 3 3h6c1.66 0 3-1.34 3-3z... |
ajax/libs/react-instantsearch/4.0.0-beta.1/Dom.js | jdh8/cdnjs | /*! ReactInstantSearch 4.0.0-beta.1 | © Algolia, inc. | https://community.algolia.com/instantsearch.js/react/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof ... |
fields/types/embedly/EmbedlyField.js | suryagh/keystone | import React from 'react';
import Field from '../Field';
import { FormField, FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'EmbedlyField',
// always defers to renderValue; there is no form UI for this field
renderField () {
return this.renderValue();
},
renderValue (path, label, ... |
sms_sponsorship/webapp/src/components/ChildDetails.js | eicher31/compassion-modules | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import ListItem from '@material-ui/core/ListItem';
import ChildDescription from './ChildDescription';
import Collapse from '@material-ui/core/Collapse';
import ExpandLess from '@material-ui/icons/Expand... |
react-quickstart/src/component/about/index.js | EvKylin/Kylin | import React, { Component } from 'react';
const arr = [
<h1>hello world!</h1>,
<h2>REact is awesome</h2>
];
class About extends Component {
render() {
return (
<div>{arr}</div>
);
}
}
export default About;
|
src/Components/Container/index.js | sqhtiamo/zaro | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from './style';
class Container extends Component {
constructor(props) {
super(props);
this.state = {
};
}
render() {
const { title, children, style } = this.props;
const containerStyle = Object.assi... |
examples/04 Sortable/Stress Test/Container.js | nagaozen/react-dnd | import React, { Component } from 'react';
import update from 'react/lib/update';
import { name } from 'faker';
import Card from './Card';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd/modules/backends/HTML5';
const style = {
width: 400
};
@DragDropContext(HTML5Backend)
export defa... |
components/mousetool/index.js | ElemeFE/react-amap | // @flow
import React from 'react'
import withPropsReactive from '../utils/withPropsReactive'
import log from '../utils/log'
type MTProps = {
__map__: Object,
events?: Object,
onInstanceCreated?: Function
}
class MouseTool extends React.Component<MTProps, {}> {
map: Object
tool: Object
constructor(props... |
mxcube3/ui/components/SampleView/SampleControls.js | amilan/mxcube3 | import './SampleView.css';
import React from 'react';
import { OverlayTrigger, Popover, Button } from 'react-bootstrap';
import MotorInput from './MotorInput';
import PhaseInput from './PhaseInput';
import 'fabric';
import config from 'guiConfig';
const fabric = window.fabric;
export default class SampleControls exten... |
examples/02 Drag Around/Naive/index.js | hiddentao/react-dnd | import React, { Component } from 'react';
import Container from './Container';
import { Link } from 'react-router';
export default class DragAroundNaive extends Component {
constructor(props) {
super(props);
this.handleHideSourceClick = this.handleHideSourceClick.bind(this);
this.state = {
hideSour... |
src/client/story_list.js | victoryancn/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) {
... |
examples/src/ControlledComponent/ControlledComponent.js | vezetvsem/react-autosuggest | require('./ControlledComponent.less');
import React, { Component } from 'react';
import utils from '../utils';
import Autosuggest from '../../../src/Autosuggest';
import SourceCodeLink from '../SourceCodeLink/SourceCodeLink';
import suburbs from 'json!../suburbs.json';
function getSuggestions(input, callback) {
con... |
admin/client/App/shared/FlashMessages.js | matthieugayon/keystone | /**
* Render a few flash messages, e.g. errors, success messages, warnings,...
*
* Use like this:
* <FlashMessages
* messages={{
* error: [{
* title: 'There is a network problem',
* detail: 'Please try again later...',
* }],
* }}
* />
*
* Instead of error, it can also be hilight, info, ... |
src/client/assets/js/components/Dialogue.js | me-box/databox-sdk | import React, { Component } from 'react';
import {NODE_EDITOR_PADDING, PALETTE_WIDTH, TOOLBAR_HEIGHT} from 'constants/ViewConstants';
import Toolbar from 'react-md/lib/Toolbars';
import './styles/dialogue.scss';
import Button from 'react-md/lib/Buttons';
class Dialogue extends React.Component {
render(){
const... |
src/renderer/components/Playlists/Playlists.react.js | MrBlenny/museeks | import React, { Component } from 'react';
import { connect } from 'react-redux';
import PlaylistsNav from './PlaylistsNav.react';
import FullViewMessage from '../Shared/FullViewMessage.react';
import lib from '../../lib';
class Playlists extends Component {
static propTypes = {
params: React.PropTypes.o... |
geonode/monitoring/frontend/monitoring/src/components/organisms/error-detail/index.js | francbartoli/geonode | /*
#########################################################################
#
# Copyright (C) 2019 OSGeo
#
# This program 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
# ... |
app/javascript/mastodon/features/notifications/components/setting_toggle.js | TootCat/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Toggle from 'react-toggle';
class SettingToggle extends React.PureComponent {
static propTypes = {
settings: ImmutablePropTypes.map.isRequired,
settingKey: PropTypes.array.isRequ... |
node_modules/react-bootstrap/es/NavbarBrand.js | NathanBWaters/jb_club | 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/app/ResQForm.js | calvinterpstra/FTCResQCalculatorWebApp | import React from 'react';
import CheckboxExampleSimple from './checkbox';
import MyStepper from './MyStepper';
import ScoreLabel from './ScoreLabel'
var ResQForm = React.createClass({
getInitialState: function () {
return {
scores: {
autonButtonScore1: 0,
autonCli... |
server/render.js | hedgepigdaniel/gnomocracy | import React from 'react'
import ReactDOM from 'react-dom/server'
import { Provider } from 'react-redux'
import { flushChunkNames } from 'react-universal-component/server'
import flushChunks from 'webpack-flush-chunks'
import configureStore from './configureStore'
import App from '../src/components/App'
export defaul... |
src/svg-icons/image/panorama-horizontal.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePanoramaHorizontal = (props) => (
<SvgIcon {...props}>
<path d="M20 6.54v10.91c-2.6-.77-5.28-1.16-8-1.16-2.72 0-5.4.39-8 1.16V6.54c2.6.77 5.28 1.16 8 1.16 2.72.01 5.4-.38 8-1.16M21.43 4c-.1 0-.2.02-.31.06C... |
src/components/Page/Page.js | buildbreakdo/react-starter-kit | /**
* 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-... |
source/Transitioner.js | CKPalk/Transitioner | /* eslint-disable react/no-unused-prop-types */
import React from 'react'
import PropTypes from 'prop-types'
import { timingFunctions } from './transitionHelpers'
import TransitionerGroup from './TransitionerGroup'
import TransitionerGroupChild from './TransitionerGroupChild'
module.exports = class Transitioner exten... |
src/client.js | jdbence/react-redux-universal-hot-example | /* global __DEVTOOLS__ */
import 'babel/polyfill';
import React from 'react';
import BrowserHistory from 'react-router/lib/BrowserHistory';
import Location from 'react-router/lib/Location';
import createStore from './redux/create';
import ApiClient from './ApiClient';
import universalRouter from './universalRouter';
co... |
nodes/stampzilla-server/web/src/components/Landing.js | stampzilla/stampzilla-go | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { get, post } from 'axios';
import Url from 'url';
import classnames from 'classnames';
import { update } from '../ducks/app';
import SocketModal from './SocketModal';
import Login from './Login';
import Register from './Register';... |
src/components/Dashboard/index.js | keenethics/estimateit | import React from 'react';
import PropTypes from 'prop-types';
import gql from 'graphql-tag';
import { connect } from 'react-redux';
import { graphql, compose } from 'react-apollo';
import Notification from 'react-notification-system';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import * as styles... |
src/routes/Player/components/Player/PlayerVisualizer/PlayerVisualizer.js | bhj/karaoke-forever | import PropTypes from 'prop-types'
import React from 'react'
import butterchurn from 'butterchurn'
import presets from 'butterchurn-presets/all'
import imageData from 'butterchurn-presets/imageData'
import styles from './PlayerVisualizer.css'
class PlayerVisualizer extends React.Component {
static propTypes = {
... |
example/relay/components/App.js | philcockfield/ui-harness | import React from 'react';
import Relay from 'react-relay';
class App extends React.Component {
render() {
return (
<div>
<h1>Widget List</h1>
<ul>
{this.props.viewer.widgets.edges.map(edge =>
<li key={edge.node.id}>{edge.node.name} (ID: {edge.node.id})</li>
... |
public/js/app/components/pages/NewEvent.js | joaoahmad/minha-lista | import React from 'react';
import ReactMixin from 'react-mixin';
import { Route, RouteHandler, Link, History, Lifecycle } from 'react-router';
import EventActions from '../../actions/EventActions';
import Form from '../Form';
import PageWithNavbar from '../PageWithNavbar';
import Container from '../Container';
i... |
examples/counter/index.js | kwangkim/redux | import React from 'react';
import Root from './containers/Root';
React.render(
<Root />,
document.getElementById('root')
);
|
resources/apps/frontend/src/pages/services/actions.js | johndavedecano/PHPLaravelGymManagementSystem | import React from 'react';
import {Link} from 'react-router-dom';
import {Row, Col} from 'reactstrap';
import get from 'lodash/get';
import {TableFilters} from 'components/Table';
import StatusSelect from 'components/Form/Select/StatusSelect';
import Search from 'components/Form/Input/Search';
import withFilters from '... |
src/parser/warlock/destruction/modules/talents/Cataclysm.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import Events from 'parser/core/Events';
import SPELLS from 'common/SPELLS';
import { formatThousands, formatNumber, formatPercentage } from 'common/format';
... |
react_client/src/index.js | danieluy/ds_changelog | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/components/Accordion/Accordion.Skeleton.js | joshblack/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import PropTypes from 'prop-types';
import React from 'react';
import SkeletonText from '../SkeletonText';
import ChevronRight16 from '@carbo... |
packages/react-ui-components/src/Tooltip/index.story.js | neos/neos-ui | import React from 'react';
import {storiesOf} from '@storybook/react';
import {withKnobs, text} from '@storybook/addon-knobs';
import {StoryWrapper} from './../_lib/storyUtils';
import Tooltip from '.';
storiesOf('Tooltip', module)
.addDecorator(withKnobs)
.addWithInfo(
'default',
() => (
... |
src/components/App.js | osoken/project-train-2016 | import React from 'react'
import Header from './Header'
export default React.createClass({
render() {
return (
<div>
<Header />
{/* add this */}
{this.props.children}
</div>
)
}
})
|
app/javascript/mastodon/components/collapsable.js | foozmeat/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';
const Collapsable = ({ fullHeight, isVisible, children }) => (
<Motion defaultStyle={{ opacity: !isVisible ? 0 : 100, height: isVisible ? fullHeight :... |
src/components/MarkdownRenderer.js | kazupooot/kazupooot.github.io | import React from 'react';
import { SectionLink } from 'react-scroll-section';
import styled from 'styled-components';
import PropTypes from 'prop-types';
const StyledLink = styled.a`
display: inline-block;
transition: color 250ms, text-shadow 250ms;
color: black;
text-decoration: none;
cursor: pointer;
po... |
react-flux-mui/js/material-ui/docs/src/app/components/pages/components/Tabs/ExampleSwipeable.js | pbogdan/react-flux-mui | import React from 'react';
import {Tabs, Tab} from 'material-ui/Tabs';
// From https://github.com/oliviertassinari/react-swipeable-views
import SwipeableViews from 'react-swipeable-views';
const styles = {
headline: {
fontSize: 24,
paddingTop: 16,
marginBottom: 12,
fontWeight: 400,
},
slide: {
... |
src/server.js | deslee/deslee-static-isomorphic | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import 'babel-core/polyfill';
import path from 'path';
import express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import Router from './routes';
import Html from './components/Html';
import fs from 'fs';
im... |
src/components/Circle/index.js | r1cebank/react-native-boilerplate | import React from 'react';
import { View } from 'react-native';
import Styles from './resources/styles';
class Circle extends React.Component {
static propTypes = {
isSelected: React.PropTypes.bool
};
render() {
const extraStyle = this.props.isSelected ? Styles.full : Styles.empty;
... |
src/component/QuestionForm.js | ChinaCEO/React-Qa | import React, { Component } from 'react';
class QuestionForm extends Component {
constructor(props) {
super(props);
this.handleForm = (e) => {
e.preventDefault();
if(!this.refs.title.value) return false;
let newQuestion = {
title: this.refs.title.... |
packages/ringcentral-widgets/components/IconField/index.js | ringcentral/ringcentral-js-widget | import React from 'react';
import PropTypes from 'prop-types';
import styles from './styles.scss';
export default function IconField(props) {
return (
<div className={props.className}>
<div className={styles.content} title={props.title} data-sign="iconField">
{props.children}
</div>
<di... |
actor-apps/app-web/src/app/components/common/AvatarItem.react.js | x303597316/actor-platform | import React from 'react';
import classNames from 'classnames';
class AvatarItem extends React.Component {
static propTypes = {
image: React.PropTypes.string,
placeholder: React.PropTypes.string.isRequired,
size: React.PropTypes.string,
title: React.PropTypes.string.isRequired
};
constructor(pro... |
client/src/components/UserItem.js | yuxuan1101/airPivilion | /**
* Created by yuxuan on 9/13/16.
*/
import React from 'react'
import {ListItem} from 'material-ui/List'
import Avatar from 'material-ui/Avatar'
import Divider from 'material-ui/Divider'
import FontIcon from 'material-ui/FontIcon'
import PropTypes from 'prop-types'
import pureRender from 'pure-render-decorator'
@p... |
packages/material-ui-icons/src/Subway.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><circle cx="15.5" cy="16" r="1" /><circle cx="8.5" cy="16" r="1" /><path d="M7.01 9h10v5h-10zM17.8 2.8C16 2.09 13.86 2 12 2c-1.86 0-4 .09-5.8.8C3.53 3.84 2 6.05 2 8.86V22h20V8.86c0-2.81-1.53-5.02-4.2-6.06zm... |
examples/with-loading/components/Header.js | nelak/next.js | import React from 'react'
import Head from 'next/head'
import Link from 'next/link'
import NProgress from 'nprogress'
import Router from 'next/router'
Router.onRouteChangeStart = (url) => {
console.log(`Loading: ${url}`)
NProgress.start()
}
Router.onRouteChangeComplete = () => NProgress.done()
Router.onRouteChange... |
node_modules/antd/es/input/Group.js | yhx0634/foodshopfront | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import React from 'react';
import classNames from 'classnames';
var Group = function Group(props) {
var _classNames;
var _props$prefixCls = props.prefixCls,
prefixCls = _props$prefixCls === undefined ? 'ant-input-group' : _props$prefix... |
src/components/Option/index.js | IDEOorg/steps-guide-builder | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import './index.less';
import Link from '../Link';
import FormattedMsg from '../../containers/FormattedMsg';
import config from '../../data/config';
import { keenClient } from '../../globals/tracker';
import GoogleAnalyt... |
scripts/SellerRating.js | krulmacius/sdasdasdasfgasdawsdwadawd | import React from 'react';
import StarRatings from 'react-star-ratings';
class SellerRating extends React.Component {
constructor(props){
super(props);
this.state = {
rating: 0
}
this.changeRating = this.changeRating.bind(this);
}
changeRating(newRating)
... |
src/routes.js | thomastanhb/ericras | import React from 'react';
import {IndexRoute, Route} from 'react-router';
import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth';
import {
App,
Chat,
Home,
Widgets,
About,
Login,
LoginSuccess,
Survey,
NotFound,
} from 'containers';
export default (store) ... |
app/containers/HomePage/index.js | be-oi/beoi-training-client | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it and remove
* the l... |
packages/material-ui-icons/src/Forum.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Forum = props =>
<SvgIcon {...props}>
<path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z" />
</SvgIcon>;
Forum = pure(... |
src/index.js | tentotech/spajam | import React from 'react'
import {render} from 'react-dom'
import {browserHistory} from 'react-router'
import thunk from 'redux-thunk'
import {createStore, applyMiddleware} from 'redux'
import {syncHistoryWithStore, routerMiddleware} from 'react-router-redux'
import {composeWithDevTools} from 'redux-devtools-extension/... |
lib/components/DownloadButton.js | Ribeiro/filepizza | import React from 'react'
export default class DownloadButton extends React.Component {
onClick(e) {
this.props.onClick(e)
}
render() {
return <button
className="download-button"
onClick={this.onClick.bind(this)}>
Download
</button>
}
}
DownloadButton.propTypes = {
onClick: ... |
src/components/jumbotron/Jumbotron.js | ProAI/react-essentials | import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import BaseView from '../../utils/rnw-compat/BaseView';
const propTypes = {
children: PropTypes.node.isRequired,
fluid: PropTypes.bool,
};
const Jumbotron = React.forwardRef((props, ref) => {
const { fluid = false, ...el... |
main.js | fmoliveira/wannagrow-client | import React from 'react'
import ReactDOM from 'react-dom'
import { AppContainer } from 'react-hot-loader'
import App from './src/App'
if (module.hot) {
module.hot.accept()
}
ReactDOM.render(
<AppContainer>
<App />
</AppContainer>,
document.getElementById('root')
)
|
app/javascript/mastodon/features/notifications/components/clear_column_button.js | mhffdq/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
export default class ClearColumnButton extends React.PureComponent {
static propTypes = {
onClick: PropTypes.func.isRequired,
};
render () {
return (
<button className='text-btn column-he... |
src/articles/2018-01-31-1st-Anniversary/Timeline.js | anom0ly/WoWAnalyzer | import PropTypes from 'prop-types';
import React from 'react';
import './Timeline.css';
const Timeline = ({ children }) => <div className="timeline year-recap">{children}</div>;
Timeline.propTypes = {
children: PropTypes.node.isRequired,
};
export default Timeline;
|
src/svg-icons/communication/invert-colors-off.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationInvertColorsOff = (props) => (
<SvgIcon {...props}>
<path d="M20.65 20.87l-2.35-2.35-6.3-6.29-3.56-3.57-1.42-1.41L4.27 4.5 3 5.77l2.78 2.78c-2.55 3.14-2.36 7.76.56 10.69C7.9 20.8 9.95 21.58 12 21.5... |
fixtures/packaging/systemjs-builder/dev/input.js | syranide/react | import React from 'react';
import ReactDOM from 'react-dom';
ReactDOM.render(
React.createElement('h1', null, 'Hello World!'),
document.getElementById('container')
);
|
src/views/pages/unused/MissionControlPage.js | Domiii/project-empire | import map from 'lodash/map';
import mapValues from 'lodash/mapValues';
import { EmptyObject, EmptyArray } from 'src/util';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import autoBind from 'react-autobind';
import { dataBind } from 'dbdi/react';
import {
Alert, Button, Jumbotron,... |
src/helpers/bdate-input.js | mberneti/ReactAdmin | import React from 'react';
import { DatePicker } from 'react-persian-datepicker';
import moment from 'moment-jalaali';
import 'react-persian-datepicker/lib/styles/basic.css';
const styles = {
calendarContainer: 'calendarContainer',
heading: 'heading',
prev: 'prev',
next: 'next',
title: 'title',
dayWrapper... |
votrfront/js/DetailPredmetu.js | fmfi-svt/votr |
import React from 'react';
import { ZoznamPrihlasenychNaTerminColumns } from './ZoznamPrihlasenychNaTermin';
import { CacheRequester, Loading } from './ajax';
import { Modal } from './layout';
import { queryConsumer } from './router';
import { sortAs, sortTable } from './sorting';
export var DetailPredmetuUciteliaCo... |
src/svg-icons/image/loupe.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLoupe = (props) => (
<SvgIcon {...props}>
<path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.49 2 2 6.49 2 12s4.49 10 10 10h8c1.1 0 2-.9 2-2v-8c0-5.51-4.49-10-10-10zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.... |
src/components/var-rows.js | ArcQ/variable-form-fields | import React from 'react';
import PropTypes from 'prop-types';
import VarRow from './var-row';
function getClassNamesStrF(rowName, animateFirst, pendingRemovalRows, addedRows) {
return (row) => {
let classNamesArr = [];
const pendingRemovalIndex = pendingRemovalRows.indexOf(row);
const addedIndex = added... |
app/component/Register.js | icalF/piye-kabare | 'use strict';
import React, { Component } from 'react';
import {
ActivityIndicator,
StyleSheet,
Text,
TextInput,
TouchableHighlight,
View
} from 'react-native';
import styles from '../style/FormStyles';
export default class Register extends Component {
constructor(props) {
super(props);
this.so... |
src/components/NavLink.js | Korkemoms/amodahl.no | // @flow
import React from 'react'
import { NavItem } from 'react-bootstrap'
import {LinkContainer} from 'react-router-bootstrap'
/* Purely presentational component */
const NavLink = (props: Object) => {
const {children, to}: {children: Array<mixed>, to: string} = props
return (
<LinkContainer to={to}>
... |
src/front/src/components/portfolio.js | demarkok/cyclist-comparison | import React from 'react';
import { Grid, Container, Segment, Card } from 'semantic-ui-react';
import Shavkunov from './DevCards/shavkunov.js';
import Kaysin from './DevCards/kaysin.js';
let cardGroup = {
marginTop: "4em",
display: "flex",
flexDirection: "row",
justifyСontent: "center"
};
class Portfo... |
client/src/components/Header/components/UserState.js | jonathanihm/freeCodeCamp | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { Link } from 'gatsby';
import Spinner from 'react-spinkit';
import { isSignedInSelector, userFetchStateSelector } from '../../../redux';
import Login from './Login';
... |
client/modules/messaging/components/.stories/conversation_reply.js | kaibagoh/PitchSpot | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { setComposerStub } from 'react-komposer';
import ConversationReply from '../conversation_reply.jsx';
storiesOf('messaging.ConversationReply', module)
.add('default view', () => {
return (
<ConversationReply />
);
... |
src/components/AnimatedCounterDigit.js | umbrellio/rollex | import React from 'react'
import ReactDOM from 'react-dom'
import PropTypes from 'prop-types'
import { digitPropTypes, decorateDigit } from '../helpers/counterDigitHelper'
/**
* Forces reflow of a given element.
* @param {Element} element
*/
function forceReflow (element) {
element.offsetHeight // eslint-disable-... |
ajax/libs/react-instantsearch/4.1.0-beta.5/Dom.js | him2him2/cdnjs | /*! ReactInstantSearch 4.1.0-beta.5 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof def... |
node_modules/antd/es/badge/index.js | ZSMingNB/react-news | import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possib... |
src/components/ui/Text.js | yursky/recommend | /**
* Text
*
<Text h1>Hello World</Text>
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Text } from 'react-native';
// Consts and Libs
import { AppStyles } from '@theme/';
/* Compon... |
src/components/estate-details-modal.js | alexandrudanpop/EstatesWebApp | import React from 'react'
import { Button, ButtonToolbar, Carousel } from 'react-bootstrap'
import styles from './modalStyles.scss'
import commonStyles from './index.scss'
export default class EstateDetailsModal extends React.Component {
constructor(props) {
super(props)
this.state = {
error: null,
... |
fixtures/kitchensink/src/features/env/FileEnvVariables.js | altiore/webpack-react | /**
* 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 from 'react';
export default () => (
<span>
<span id="feature-file-env-original-1">
{process.env.REACT_APP_ORI... |
src/components/map/Map.js | ReactPoland/react-community | import React from 'react';
import PropTypes from 'prop-types';
import { Map as LeafletMap, TileLayer } from 'react-leaflet-universal';
import UserMarker from './UserMarker';
import EventMarker from './EventMarker';
import styles from './Map.scss';
const Map = (props) => {
let markers = [];
if (props.type === 'use... |
src/screens/authorized/home/contact/ListContact.js | anhtuank7c/simple-chat | import React, { Component } from 'react';
import {
View,
Text,
Button,
ListView,
ActivityIndicator,
TouchableOpacity,
Image
} from 'react-native';
import { connect } from 'react-redux';
import { DrawerButton } from '../../../../components';
import { fetchListContact } from '../../../../actio... |
src/containers/NotFound/NotFound.js | runnables/react-redux-universal-hot-example | import React from 'react';
export default function NotFound() {
return (
<div className="container">
<h1>Doh! 404!</h1>
<p>These are <em>not</em> the droids you are looking for!</p>
</div>
);
}
|
modules/Navigation.js | omerts/react-router | import React from 'react';
var { object } = React.PropTypes;
/**
* A mixin for components that modify the URL.
*
* Example:
*
* import { Navigation } from 'react-router';
*
* var MyLink = React.createClass({
* mixins: [ Navigation ],
* handleClick(event) {
* event.preventDefault();
* ... |
app/components/Github/Repos.js | luketlancaster/github-notetaker | import React from 'react';
class Repos extends React.Component {
render() {
var repos = this.props.repos.map((repo, index) => {
return(
<li className="list-group-item" key={index}>
{repo.html_url && <h4><a href={repo.html_url}>{repo.name}</a></h4>}
{repo.description && <p> {repo... |
src/parser/shared/modules/items/bfa/pvp/DreadGladiatorsInsignia.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import { formatPercentage } from 'common/format';
import { calculatePrimaryStat } from 'common/stats';
import UptimeIcon from 'interface/icons/Uptime';
import PrimaryStatIcon from 'interface/icons/PrimaryStat';
import Item... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.