path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
www/imports/mapPage/calc/reflect.js
terraswat/hexagram
// reflect.js // This captures the user input to reflect a set of nodes on another map. import auth from '/imports/common/auth.js'; import DialogHex from '/imports/common/DialogHex.js'; import LayerNameList from '/imports/mapPage/shortlist/LayerNameList.js'; import { pollJobStatus } from '/imports/mapPage/calc/pollJob...
static/src/containers/Login.js
eltrufas/cosmico
import React, { Component } from 'react'; import { connect } from 'react-redux'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; import Paper from 'material-ui/Paper'; import * as actions from '../actions/account'; class Login extends Component { constructor() { ...
app/react-icons/fa/check-circle.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaCheckCircle extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-...
app/containers/PrivacyPolicyView/index.js
juanda99/arasaac-frontend
import React from 'react' import PropTypes from 'prop-types' import View from 'components/View' import Helmet from 'react-helmet' import ReadMargin from 'components/ReadMargin' import { connect } from 'react-redux' import { createSelector } from 'reselect' import { makeSelectLocale } from 'containers/LanguageProvider/s...
src/components/Feed/Feed.js
wpioneer/gatsby-starter-lumen
// @flow strict import React from 'react'; import { Link } from 'gatsby'; import type { Edges } from '../../types'; import styles from './Feed.module.scss'; type Props = { edges: Edges }; const Feed = ({ edges }: Props) => ( <div className={styles['feed']}> {edges.map((edge) => ( <div className={styles[...
fields/types/textarea/TextareaField.js
dvdcastro/keystone
import Field from '../Field'; import React from 'react'; import { FormInput } from 'elemental'; module.exports = Field.create({ displayName: 'TextareaField', statics: { type: 'Textarea', }, renderField () { const { height, path, style, value } = this.props; const styles = { height: height, ...style, ...
node_modules/react-router/es6/Redirect.js
NathanBWaters/website
'use strict'; import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { formatPattern } from './PatternUtils'; import { falsy } from './PropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropT...
reloby-app-client/src/containers/Signup.js
hwclass/reloby
import React, { Component } from 'react'; import { withRouter } from 'react-router-dom'; import { HelpBlock, FormGroup, FormControl, ControlLabel, } from 'react-bootstrap'; import LoaderButton from '../components/LoaderButton'; import { AuthenticationDetails, CognitoUserPool, CognitoUserAttribute, } fro...
markbin/client/components/bins/bins_viewer.js
saitai0802/meteor-basic
import React, { Component } from 'react'; import { markdown } from 'markdown'; class BinsViewer extends Component { render() { const rawHTML = markdown.toHTML(this.props.bin.content); // dangerouslySetInnerHTML: That maybe allow user to create a xss attack // xss: cross site scripting (Inject javascipr...
Libraries/Touchable/TouchableWithoutFeedback.web.js
brainpoint/citong-react-web
/** * Copyright (c) 2015-present, Alibaba Group Holding Limited. * All rights reserved. * * Copyright (c) 2015, Facebook, Inc. All rights reserved. * * @providesModule ReactTouchableWithoutFeedback */ 'use strict'; import 'ReactPanResponder'; import React, { Component } from 'react'; import Touchable from 'Rea...
src/components/navigation.js
tmcw/docbox
import React from 'react'; import PropTypes from 'prop-types'; import NavigationItem from './navigation_item'; import { footerContent } from '../custom'; function getAllInSectionFromChild(headings, idx) { for (var i = idx; i > 0; i--) { if (headings[i].depth === 2) { return getAllInSection(headings, i); ...
ui/src/components/common/Tab.js
grfeng/conductor
import React from 'react'; const Tab = ({ children, active }) => <div className={'tab-pane' + (active ? ' active' : ' ')}>{children}</div>; export default Tab;
docs/src/app/components/pages/components/AutoComplete/ExampleDataSources.js
verdan/material-ui
import React from 'react'; import AutoComplete from 'material-ui/AutoComplete'; import MenuItem from 'material-ui/MenuItem'; const dataSource1 = [ { text: 'text-value1', value: ( <MenuItem primaryText="text-value1" secondaryText="&#9786;" /> ), }, { text: 'text-value2'...
src/mention/test-pages/advanced.js
Kindling/react-tinymce-mentions
import React from 'react'; import ReactDOM from 'react-dom'; import Editor from './components/Editor'; import Mention from '../Mention'; import CustomList from './components/CustomList'; import CustomRTEMention from './components/CustomRTEMention'; import complexDataSource from './api/complexDataSource'; ReactDOM.rend...
app/shared/reservation-access-code/ReservationAccessCode.js
fastmonkeys/respa-ui
import React from 'react'; import PropTypes from 'prop-types'; import PendingAccessCode from './PendingAccessCode'; import GeneratedAccessCode from './GeneratedAccessCode'; import { isAccessCodeGenerated, isAccessCodePending, isReservationCancelled } from './helpers'; const ReservationAccessCode = ({ reservation, res...
src/DropdownButton.js
thealjey/react-bootstrap
import React from 'react'; import BootstrapMixin from './BootstrapMixin'; import Dropdown from './Dropdown'; import NavDropdown from './NavDropdown'; import CustomPropTypes from './utils/CustomPropTypes'; import deprecationWarning from './utils/deprecationWarning'; import omit from 'lodash/object/omit'; class Dropdown...
node_modules/react-bootstrap/es/Form.js
darklilium/Factigis_2
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 ...
node_modules/react-icons/io/ios-time-outline.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoIosTimeOutline = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m17.5 2.5c9.7 0 17.5 7.8 17.5 17.5s-7.8 17.5-17.5 17.5-17.5-7.8-17.5-17.5 7.8-17.5 17.5-17.5z m11.5 29c1.5-1.5 2.7-3.2 3.5-5.2 0.9-2 1.3-4.1 1.3-6.3s-0.4-4.3-1...
src/components/container/intro/intro.js
Rhadow/dissertation-helper
// Styles import './_intro'; // React import React from 'react'; // Components import BaseComponent from '../../base-component'; class Intro extends BaseComponent { constructor(props) { super(props); } render() { return ( <div className="intro"> Hello, this is dissertation helpe...
src/Parser/Shaman/Enhancement/Modules/ShamanCore/Landslide.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage } from 'common/format'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import StatisticBox, { STATISTIC_ORDER } from 'Main/Statistic...
src/components/PaperComponents/Prompt.js
tuomotlaine/portfolio
import React, { Component } from 'react'; import _ from 'lodash'; import { connect } from 'react-redux'; import { toggleAutoScroll, addContentToState } from '../../actions'; class Prompt extends Component { constructor(props){ super(props); } handleClick(args){ this.props.userSelected(args); this.pr...
src/parser/deathknight/blood/modules/talents/Voracious.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER'; class Voracious extends Ana...
client/src/components/FourOhFour/index.js
BhaveshSGupta/FreeCodeCamp
import React, { Component } from 'react'; import Helmet from 'react-helmet'; import Spinner from 'react-spinkit'; import { Link } from 'gatsby'; import notFoundLogo from '../../assets/images/freeCodeCamp-404.svg'; import { quotes } from '../../resources/quotes.json'; import './404.css'; class NotFoundPage extends Co...
hero-world/src/component/cuarto/Cuarto.js
jesuscuesta/course-react
import React, { Component } from 'react'; import batman from './../../img/batman.jpg'; import wonder from './../../img/wonder.jpg'; //Cuando solo vamos a renderizar, sin añadir funciones, tendrá mejor rendimiento si lo declaramos con const, en lugar de class. const Cuarto = () =>( <div className="pageHeros"> <He...
packages/extra/src/AxisBottom.js
finnfiddle/number-picture
import React, { Component } from 'react'; import Axis from './Axis'; export default class AxisBottom extends Component { render() { return ( <Axis {...this.props} placement='bottom' /> ); } }
src/main.js
LaunchAcademy/react-orbiter
import React from 'react' import ReactDOM from 'react-dom' import createBrowserHistory from 'history/lib/createBrowserHistory' import { useRouterHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import createStore from './store/createStore' import AppContainer from './containers/Ap...
src/components/PageTopper/index.js
danbovey/Dekt
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import moment from 'moment'; import classNames from 'classnames'; import * as showActions from 'actions/show'; import * as watchingActions from 'actions/watching'; import { toHHMM } from 'helper...
src/components/native/PageTitle.js
Manuelandro/Universal-Commerce
import React from 'react' import styled from 'styled-components/native' const { View, Text } = { View: styled.View` flex: 1; flexDirection: row; alignSelf: stretch; justifyContent: center; marginTop: 20; marginBottom: 5; `, Text: styled.Text` alignSel...
js/app.js
htmlacademy/firstaidgit
import React from 'react'; import Router from 'react-router'; import { DefaultRoute, Link, Route, RouteHandler } from 'react-router'; import Home from './components/Home.js'; import About from './components/About.js'; import Footer from './components/Footer.js'; import SVGIcon from './utils/SVG.js'; import Navigation...
src/components/slider/Slider.js
licken/React-Common
import React from 'react'; require('../../styles/slider.scss'); import SliderItem from './sliderItem/SliderItem'; import SliderDots from './sliderDots/SliderDots'; import SliderArrows from './sliderArrows/SliderArrows'; class Slider extends React.Component { constructor(props) { super(props); this.state = ...
src/client/story_list.js
mariotristan/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) { ...
src/stories/axis.js
conorfennell/project-maths
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import Axis from '../Axis'; import _ from 'lodash'; const xSquared = x => x * x * x; const points = _.range(-10, 10, 0.1).map(x => { return `${x + 25},${(xSquared(x) * -1) + 25}`; }).reduce((x, y) => `${x} ${y}`); storiesOf('Axis', module) ....
pathfinder/architecturestack/src/ModalDialog.js
leanix/leanix-custom-reports
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class ModalDialog extends Component { constructor(props) { super(props); } render() { if (!this.props.show) { return null; } // first div prevents click triggers in the outside area return ( <div style={{ position: '...
app/javascript/mastodon/components/column_header.js
h-izumi/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { FormattedMessage } from 'react-intl'; class ColumnHeader extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; static propTypes = { title: PropTypes.string.isRequire...
envkey-react/src/components/sidebar/account_menu.js
envkey/envkey-app
import React from 'react' import {Link} from 'react-router' import {imagePath, orgRoleLabel} from 'lib/ui' import {orgRoleIsAdmin, orgRoleIsOwner} from 'lib/roles' const AccountMenu = ({ currentUser, currentOrg, numOrgs, isDemo, router, params, isOpen, onToggle, logout, resetSession })=>{ const ...
app/javascript/mastodon/features/status/components/detailed_status.js
h3zjp/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../components/avatar'; import DisplayName from '../../../components/display_name'; import StatusContent from '../../../components/status_content'; import MediaGallery from...
src/components/Notifs/Notifs.js
leopoldjoy/react-ethereum-dapp-example
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; @connect((state, props) => ({ notifs: state.notifs[props.namespace] || [] })) export default class Notifs extends Component { static propTypes = { notifs: PropTypes.arrayOf(PropTypes.object).isReq...
app/containers/ConnectionsPage.js
careykevin/reddy
// @flow import React, { Component } from 'react'; import { isEmpty } from 'lodash'; import type { Event } from '../utils/Types'; import ConnectionManager from '../utils/ConnectionManager'; import Connections from '../components/connections/Connections'; export default class ConnectionsPage extends Component { stat...
webapp/components/widgets/ListWidget.js
marinvvasilev/homeinfotainment
/* eslint-disable import/default */ import React from 'react'; import { render } from 'react-dom'; export default class ListWidget extends React.Component { constructor(props) { super(props); } componentWillMount() { this.state = { items: this.props.items || [] }; ...
Inspector/js/screen.js
truveris/WebDriverAgent
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import Rea...
js/components/side/nav_item.js
Krelix/krelix.github.io
/** * Created by @krelix on 25/03/2016. */ import React from 'react'; import {Link, IndexLink} from 'react-router'; export default class NavItem extends React.Component { render() { // Dirty...ish ? Fix it using the router ? if (this.props.isIndex === true) { return ( <IndexLink to={this.prop...
src/progressive.js
cyberid41/simple-blog-react
import React from 'react'; import ReactDOM from 'react-dom/server'; import Html from './helpers/Html'; export default function () { return `<!doctype html>${ReactDOM.renderToStaticMarkup(<Html assets={{}} />)}`; }
examples/sorting/src/App.js
tannerlinsley/react-table
import React from 'react' import styled from 'styled-components' import { useTable, useSortBy } from 'react-table' import makeData from './makeData' const Styles = styled.div` padding: 1rem; table { border-spacing: 0; border: 1px solid black; tr { :last-child { td { border-bo...
app/components/SpeedSelector.js
simenkid/justReact
import React from 'react'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem'; import { cyanA700 } from 'material-ui/styles/colors'; var SpeedSelector = React.createClass({ // getInitialState: function () { // return { value: 2 }; // }, handleChange: fu...
packages/icons/src/md/editor/FormatTextDirectionRToL.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdFormatTextDirectionRToL(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M20 20v10h4V8h4v22h4V8h4V4H20c-4.42 0-8 3.58-8 8s3.58 8 8 8zm-4 14v-6l-8 8 8 8v-6h24v-4H16z" /> </IconBase> ); } export defaul...
src/esm/components/graphics/icons/password-icon/index.js
KissKissBankBank/kitten
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["color", "title"]; import React from 'react'; export var PasswordIcon = function PasswordIcon(_ref) { var color = _ref.color, title = _ref.titl...
admin/src/components/ListDownloadForm.js
developer-prosenjit/keystone
import classnames from 'classnames'; import React from 'react'; var Transition = React.addons.CSSTransitionGroup; var CurrentListStore = require('../stores/CurrentListStore'); var Popout = require('./Popout'); var PopoutList = require('./PopoutList'); var { Button, Checkbox, Form, FormField, InputGroup, SegmentedCont...
src/routes/indexSelection.js
daxiangaikafei/QBGoods
import React from 'react' import { Route, IndexRoute, Router } from 'dva/router' import CoreLayout from '../containers/layout' import Selection from 'views/Special/Selection/page' import SelectionList from "views/Special/SelectionList/page" export default function (ref) { return ( <Router history={ref.history}> ...
lib/components/WeatherCard/WeatherCard.js
the-oem/weathrly
import React, { Component } from 'react'; import './WeatherCard.css'; const WeatherCard = ({ data }) => { const { unit, tempHigh, tempLow } = data; const iconPath = `assets/svg/${data.icon}.svg`; return ( <div className='weather-card'> <p className='unit-of-time'>{unit}</p> <img src={iconPath} a...
src/components/IngestionWizard/WizardOperational.js
blackshade91/daf-dataportal
import React from 'react'; import { Field, reduxForm, formValueSelector } from 'redux-form'; import validate from './validate'; import TestSelect from './TestSelect'; import { connect } from 'react-redux'; import 'react-select/dist/react-select.css'; const isStds = ['true']; const tipo_lettura = ['ts'] const render...
app/components/Footer.js
wxmaudio/react-voting
import React from 'react'; import {Link} from 'react-router'; import FooterStore from '../stores/FooterStore' import FooterActions from '../actions/FooterActions'; class Footer extends React.Component{ constructor(props){ super(props); this.state = FooterStore.getState() || {}; this.onChange = this.onChange.bin...
app/javascript/components/Schedule/DayView.js
rubycentral/cfp-app
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { ScheduleColumn } from './ScheduleColumn'; class DayView extends Component { render() { const { dayViewing, startTime, endTime, ripTime, changeDragged, draggedSession, sessions, ...
frontend/src/components/overview/nowplay/index.js
rossnomann/playlog
import PropTypes from 'prop-types'; import React from 'react'; import './index.css'; const Bar = () => ( <div className="overview-nowplay-bar"> <div className="overview-nowplay-bar-item"></div> <div className="overview-nowplay-bar-item"></div> <div className="overview-nowplay-bar-item"></d...
src/svg-icons/action/view-array.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewArray = (props) => ( <SvgIcon {...props}> <path d="M4 18h3V5H4v13zM18 5v13h3V5h-3zM8 18h9V5H8v13z"/> </SvgIcon> ); ActionViewArray = pure(ActionViewArray); ActionViewArray.displayName = 'ActionViewA...
app/javascript/flavours/glitch/features/direct_timeline/components/conversation.js
im-in-space/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import StatusContent from 'flavours/glitch/components/status_content'; import AttachmentList from 'flavours/glitch/components/at...
DEM_MVC_UI/src/scripts/routes.js
AndreyShpilevoy/DemProject
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import Layout from 'containers/Layout'; import PageMainConference from 'containers/Page_MainConference'; import PageViewForum from 'containers/Page_ViewForum'; import PageViewTopic from 'containers/Page_ViewTopic'; export default ( <Route p...
src/parser/warlock/destruction/modules/talents/Eradication.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Enemies from 'parser/shared/modules/Enemies'; import Events from 'parser/core/Events'; import calculateEffectiveDamage from 'parser/core/calculateEffectiveDamage'; import SPELLS from 'common/SPELLS'; import SpellLink f...
packages/material-ui-icons/src/BubbleChart.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let BubbleChart = props => <SvgIcon {...props}> <circle cx="7.2" cy="14.4" r="3.2" /><circle cx="14.8" cy="18" r="2" /><circle cx="15.2" cy="8.8" r="4.8" /> </SvgIcon>; BubbleChart = pure(BubbleChart); Bub...
client/components/ui/fuzzy-or-native-select.js
bnjbvr/kresus
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Select, { Creatable, createFilter } from 'react-select'; import { get } from '../../store'; import { assert } from '../../helpers.js'; const REACT_SELECT_FILTER = createFilter({ ignoreCase: true, ignor...
exercises/3/src/client/index.js
Randynamic/redux-exercises
import 'whatwg-fetch'; import React from 'react'; import ReactDOM from 'react-dom'; import deepForceUpdate from 'react-deep-force-update'; import App from '../common/App'; import configureStore from '../common/configureStore'; import Amuse from '../common/components/Amuse'; const onRenderComplete = function initialRen...
examples/login/app.js
aesopwolf/formsy
import React from 'react'; import ReactDOM from 'react-dom'; import { Form } from 'formsy-react'; import MyInput from './../components/Input'; const App = React.createClass({ getInitialState() { return { canSubmit: false }; }, submit(data) { alert(JSON.stringify(data, null, 4)); }, enableButton() { ...
static/src/components/islands/IslandDoubleTree.js
hammerandchisel/airhornbot
// @flow // jscs:disable maximumLineLength import React from 'react'; type Props = { paused: boolean }; export default ({paused}: Props): React.Element => ( <svg className={`island double-tree ${paused ? 'paused' : ''}`} xmlns="http://www.w3.org/2000/svg" width="259" height="221"> <g fill="none" fill-rule="e...
actor-apps/app-web/src/app/components/modals/create-group/ContactItem.react.js
fengchenlianlian/actor-platform
import React from 'react'; import AvatarItem from 'components/common/AvatarItem.react'; class ContactItem extends React.Component { static propTypes = { contact: React.PropTypes.object, onToggle: React.PropTypes.func } constructor(props) { super(props); this.onToggle = this.onToggle.bind(this)...
components/Deck/Presentation/Presentation.js
slidewiki/slidewiki-platform
import React from 'react'; import PropTypes from 'prop-types'; import { handleRoute } from 'fluxible-router'; import PresentationSlide from './PresentationSlide'; import { connectToStores } from 'fluxible-addons-react'; import { Microservices } from '../../../configs/microservices'; import PresentationStore from '../.....
ajax/libs/react-instantsearch/4.5.0/Dom.js
holtkamp/cdnjs
/*! ReactInstantSearch 4.5.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) : ...
frontend/src/states/StatesContainer.js
mchughmk/react-django
import React, { Component } from 'react'; import States from './States.js'; export default class StatesContainer extends Component { constructor(props) { super(props); this.state = { states: [] }; this.getStatesFromApiAsync = this.getStatesFromApiAsync.bind(th...
app/containers/NotFoundPage/index.js
projectcashmere/admin
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a 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...
src/html.js
cdtinney/cdtinney.github.io
/* eslint-disable react/forbid-prop-types */ import React from 'react'; import PropTypes from 'prop-types'; export default function HTML(props) { const { body, bodyAttributes, headComponents, htmlAttributes, preBodyComponents, postBodyComponents, } = props; return ( <html {...h...
src/components/RoleColor/index.js
u-wave/web
import React from 'react'; import PropTypes from 'prop-types'; import { useSelector } from 'react-redux'; import { roleColorsSelector } from '../../selectors/configSelectors'; function RoleColor({ component = 'span', role, roles, ...props }) { const colors = useSelector(roleColorsSelector); const roleColo...
docs/app/Examples/elements/Image/Variations/ImageExampleBordered.js
clemensw/stardust
import React from 'react' import { Image } from 'semantic-ui-react' const ImageExampleBordered = () => ( <Image src='/assets/images/wireframe/white-image.png' size='medium' bordered /> ) export default ImageExampleBordered
modules/Home/index.js
domjtalbot/Find-a-listing
/* eslint-disable react/prop-types */ import React, { Component } from 'react'; import Icon from '../Icon'; export default class App extends Component { static displayName = 'App'; render() { return ( <section className="home"> <p>Hello World!</p> <Icon /> ...
index.js
petterh/react-native-android-activity
/** * Sample React Native App * https://github.com/facebook/react-native */ import React, { Component } from 'react'; import { AppRegistry, Button, NativeEventEmitter, NativeModules, Platform, StyleSheet, Text, TextInput, View } from 'react-native'; import BatchedBridge from "react-native/Librar...
src/containers/Endgame/index.js
mmazzarolo/tap-the-number
/* @flow */ /** * The ending score screen. * It's a simple screen, but it might seem complex in some part only because of animations. */ import React, { Component } from 'react'; import { View } from 'react-native-animatable'; import { inject, observer } from 'mobx-react/native'; import metrics from 'src/config/metr...
app/containers/FeaturePage/index.js
ESTEBANMURUZABAL/bananaCatReact
import React from 'react'; import Helmet from 'react-helmet'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; import './index.scss'; export default class FeaturePage extends React.Component { // eslint-disable-line react/prefer-stateless-function shouldComponentUpdate() { retu...
packages/docs/components/Examples/static-toolbar/CustomToolbarEditor/index.js
draft-js-plugins/draft-js-plugins
/* eslint-disable react/no-multi-comp */ import React, { Component } from 'react'; import Editor, { createEditorStateWithText } from '@draft-js-plugins/editor'; import createToolbarPlugin, { Separator, } from '@draft-js-plugins/static-toolbar'; import { ItalicButton, BoldButton, UnderlineButton, CodeButton,...
src/index.js
mayk93/ReactReduxTutorial
/** * Created by Michael on 08/04/16. */ // React import React, { Component } from 'react'; import ReactDOM from 'react-dom'; // Other Libs import YTSearch from 'youtube-api-search'; import $ from 'jquery'; import _ from 'lodash'; // Components import SearchBar from './components/search_bar'; import VideoList fro...
src/components/project.js
amymc/two_point_oh
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as ProjectActions from '../actions'; import CloseButton from './closebutton'; import '../styles/components/project.scss'; class Project extends React.Component { constructor(props) { super(props...
client/index.js
Investnaira/in
/** * Client entry point */ import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import App from './App'; import { configureStore } from './store'; // Initialize store const store = configureStore(window.__INITIAL_STATE__); const mountApp = document.getEleme...
src/button/RaisedButton.js
jyotirmaybanerjee/tango-ui
import React, { Component } from 'react'; import raisedButtonStyles from './RaisedButtonStyle'; export default class RaisedButton extends Component { constructor(props) { super(props); this.state = { hover: false }; } toggleHover() { this.setState({hover: !this.state.hover}) } render...
src/components/router/viewable/index.js
marcusnielsen/reactive-tournament
import React from 'react' import {merge as objectMerge} from 'ramda' import Pages from '../../pages/viewable' import View from './view' export default function create ({model}) { const pages = Pages({model: model.children.pages}) const children = {pages} const view = View({ React, PagesView: pages.view ...
__sites_/src/components/doc/cn/multiple-file.js
Vanthink-UED/react-core-image-upload
import React from 'react'; import vendor from '../../../lib/vendor'; import ReactCoreImageUpload from '../../../../../src/index'; import Highlight from 'react-highlight.js'; export default class CnMultipleFile extends React.Component { constructor(props) { super(props); this.state = { fileList: [], ...
r_01/src/index.js
OkieOth/reactTests
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/scenes/App/scenes/MapOverview/components/Video/index.js
jsza/tempus-website
import React from 'react' import P from 'prop-types' import './styles.styl' class ResizingYoutubePlayer extends React.Component { constructor(props) { super(props) this.state = {height: 720} } componentDidMount() { const iframe = this.refs.iframe this.setState({height: Math.floor(iframe.offset...
frontend/app/js/components/project/wizard/wizardview.js
serverboards/serverboards
import React from 'react' function WizardView(props){ const {step} = props return ( <div className="ui expand grey background"> <div className="ui right aligned"> <span className="ui horizontal center aligned with padding top"> <span className="ui right padding">Steps:</span> ...
src/components/inputs/SpinnerInput.js
garvankeeley/lockbox-experiments
import React, { Component } from 'react'; class SpinnerInput extends Component { state = { value: this.props.value || 12 } handleChange = (event) => { this.setState({ value: event.target.value }); this.props.storeSpinnerState(this.props.name, event.target.value); } render() { return (<div> ...
src/Jumbotron.js
justinanastos/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import CustomPropTypes from './utils/CustomPropTypes'; const Jumbotron = React.createClass({ propTypes: { /** * You can use a custom element for this component */ componentClass: CustomPropTypes.elementType }, getDefaultProps() { ...
node_modules/react-bootstrap/es/Pagination.js
lucketta/got-quote-generator
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/svg-icons/maps/satellite.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsSatellite = (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-2zM5 4.99h3C8 6.65 6.66 8 5 8V4.99zM5 12v-2c2.76 0 5-2.25 5-5.01h2C12 8.86 8....
packages/browser/src/components/DataBrowser/ModeSwitch.js
appbaseio/dejaVu
// @flow import React, { Component } from 'react'; import { func, string, object } from 'prop-types'; import { Select, Icon } from 'antd'; import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import { getMode } from '../../reducers/mode'; import setMode from '../../actions/mode'; impo...
packages/icons/src/md/action/Redeem.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdRedeem(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M40 13c2.21 0 4 1.79 4 4v22c0 2.21-1.79 4-4 4H8c-2.21 0-4-1.79-4-4l.02-22c0-2.21 1.77-4 3.98-4h4.37c-.23-.63-.37-1.29-.37-2 0-3.31 2.69-6 6-6 2.09 0 3...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
robnightingale/ore-dashboard-beta
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/svg-icons/hardware/phonelink-off.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwarePhonelinkOff = (props) => ( <SvgIcon {...props}> <path d="M22 6V4H6.82l2 2H22zM1.92 1.65L.65 2.92l1.82 1.82C2.18 5.08 2 5.52 2 6v11H0v3h17.73l2.35 2.35 1.27-1.27L3.89 3.62 1.92 1.65zM4 6.27L14.73 17H4V6...
src/pages/index.js
dkonieczek/dkonieczek.github.io
import React from 'react'; import Link from 'gatsby-link'; import profile from '../assets/profile.jpg'; const IndexPage = () => ( <div className="home"> <h1>Welcome to my home</h1> <img className="picture" src={profile} alt="Dennis Konieczek" /> <div className="signature"> <p...
modules/react-markdown/src/components/Markdown.js
casesandberg/react-docs
'use strict' import React from 'react' import ReactCSS from 'reactcss' import { markdown } from 'markdown' import getComponent from '../helpers/getComponent' export class Markdown extends ReactCSS.Component { render() { var elements = markdown.parse(this.props.text) console.dir(elements) return ( ...
src/views/Help.js
kathy-ems/iConsume
import React, { Component } from 'react'; import { WebView } from 'react-native'; import About from './About'; export default class Help extends Component { componentWillMount() { var route = this.props.navigator.navigationContext.currentRoute; route.rightButtonTitle = 'About'; route.onRightButtonPre...
components/TableRow.js
hellobrian/carbon-components-react
import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; const defaultProps = { header: false, }; const propTypes = { header: PropTypes.bool, className: PropTypes.string, children: PropTypes.node, even: PropTypes.bool, }; const TableRow = props => { const { even...
fields/types/datearray/DateArrayField.js
joerter/keystone
import ArrayFieldMixin from '../../mixins/ArrayField'; import DateInput from '../../components/DateInput'; import Field from '../Field'; import React from 'react'; import moment from 'moment'; const DEFAULT_INPUT_FORMAT = 'YYYY-MM-DD'; const DEFAULT_FORMAT_STRING = 'Do MMM YYYY'; module.exports = Field.create({ dis...
client/src/Errors.js
ruslan2k/web-password
import React from 'react'; import { connect } from 'react-redux'; const style = { backgroundColor: '#FF0000', color: 'white', } const Errors = props => { const error = props.error; // const isError = (Object.keys(error).length !== 0 && error.constructor === Object); return <div style={style}>{JSON.stringify...
app/javascript/mastodon/features/ui/components/column_link.js
honpya/taketodon
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; const ColumnLink = ({ icon, text, to, href, method, badge }) => { const badgeElement = typeof badge !== 'undefined' ? <span className='column-link__badge'>{badge}</span> : null; if (href) { return ( <...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
spskeen/skeeno
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'));