path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
blueocean-material-icons/src/js/components/svg-icons/action/explore.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionExplore = (props) => ( <SvgIcon {...props}> <path d="M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1c.61 0 1.1-.49 1.1-1.1s-.49-1.1-1.1-1.1zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm2.19 12.19L6 18l3.81-8.19L18 6l...
examples/02 Drag Around/Naive/index.js
srajko/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/board/components/AWTodoItem.js
corbig/AfterWorkManager
import React from 'react'; import {List, ListItem} from 'material-ui/List'; import Avatar from 'material-ui/Avatar'; import IconButton from 'material-ui/IconButton'; import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/Menu...
src/index.js
DogLooksGood/Campanella-worldlinepack
import React, { Component } from 'react'; import App from './components/App'; import './styles/base.sass'; import 'font-awesome/css/font-awesome.min.css'; class Root extends Component { componentDidMount () { console.log("^_^"); } render () { return ( <App /> ); } } React.render( <Root ...
src/components/Navigation/Navigation.js
medevelopment/updatemeadmin
/** * 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 cx from 'classnames';...
src/components/accessoryresults.js
waxmansgym/ratio-calculator
/* Waxman's Gym Ratio Calculator Copyright (C) 2017 Waxman's Gym 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 (at your option) any later version. This program ...
src/index.js
AliaksandrZahorski/contacts
import React from 'react' import { render } from 'react-dom' import { createStore } from 'redux' import { Provider } from 'react-redux' import App from './components/App' import reducer from './reducers' import './css/style.css' const store = createStore( reducer ) render( <Provider store={store}> <App /> </P...
client/components/Day.js
TobiahRex/reactTravelApp
import React, { Component } from 'react'; import ClientStore from '../stores/ClientStore'; import FlipCard from 'react-flipcard'; import mui from 'muicss'; import Modal from './Modal'; export default class Day extends Component { constructor(props) { super(props); } render() { let { day, client, num } =...
src/main.js
FabienDeshayes/endless-legend-companion
import ReactDOM from 'react-dom' import React from 'react' import { Provider } from 'react-redux' import store from './store' import HexGrid from './components/hex-grid' import FidsiSums from './components/fidsi-sums' ReactDOM.render( <Provider store={store}> <div> <HexGrid /> <FidsiSums /> </di...
client/lib/interpolate-components/index.js
Kimsangcheon/wp-calypso
/** * External Dependencies */ import React from 'react'; import createFragment from 'react-addons-create-fragment'; /** * Internal Dependencies */ import tokenize from './tokenize'; let currentMixedString; function getCloseIndex( openIndex, tokens ) { var openToken = tokens[ openIndex ], nestLevel = 0, tok...
examples/js/components/App.js
pvoznyuk/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { LinkContainer } from 'react-router-bootstrap'; // import 'bootstrap/dist/css/bootstrap.css'; import 'toastr/build/toastr.min.css'; import '../../../css/react-bootstrap-table.css'; // import 'jquery'; // import 'bootstrap'; import { Navbar, NavBrand, Nav...
packages/ui-toolkit/src/tooltip/container.js
yldio/joyent-portal
import { findDOMNode } from 'react-dom'; import React, { Component } from 'react'; import { Manager } from 'react-popper'; import PropTypes from 'prop-types'; import values from 'lodash.values'; import assign from 'lodash.assign'; import outy from 'outy'; export default class Container extends Component { static chi...
resources/assets/index.js
drihup/matcore
'use strict'; // import CSS and Sass files import './sass/main.scss'; // import JS files import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( <h3>Welcome to drihup!</h3>, document.getElementById('root') );
src/components/layout/sidebar/Snippet.js
Gisto/Gisto
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import styled, { withTheme } from 'styled-components'; import { get } from 'lodash/fp'; import { HashRouter as Router, NavLink } from 'react-router-dom'; import { SIDEBAR_WIDTH } from 'constants/config'...
src/a1.js
JasonNAwesome/jasonnawesome.github.io
import './style.css'; import React from 'react' import { render } from 'react-dom'; import App from './b1' render( <App />, document.getElementById('root'));
app/components/Cinema/index.js
AdamSalma/Lurka
import React, { Component } from 'react'; import connect from './connect' import cx from 'classnames'; import utils from '~/utils' import './styles'; import * as config from './config' import CinemaInterface from './CinemaInterface' import {CurrentMedia as Media} from './components' import {Overlay} from '~/components...
app/components/TriggerMQForm/item.js
fission/fission-ui
/** * * TriggerHttpItemForm * */ import React from 'react'; import { FormattedMessage } from 'react-intl'; import commonMessages from 'messages'; // import styled from 'styled-components'; class Item extends React.Component { // eslint-disable-line react/prefer-stateless-function render() { const { trigger, o...
test/test_helper.js
viniciusmichelutti/react-videos
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
app/components/children/formBuilder-children/ElementBody.js
asconwe/formulate
import React, { Component } from 'react'; import formElementLibrary from './formElementLibrary' class ElementBody extends Component { constructor() { super(); } renderElementFromLibrary() { return formElementLibrary[this.props.type].getter(this.props) } render() { return ( ...
src/svg-icons/image/slideshow.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageSlideshow = (props) => ( <SvgIcon {...props}> <path d="M10 8v8l5-4-5-4zm9-5H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"/> </SvgIcon> ); ImageSlideshow = pure(I...
src/Components/App.js
jigten/React-Readable
import React, { Component } from 'react'; import Index from './Index' import Category from './Category' import Post from './Post' import PostNew from './PostNew' import PostEdit from './EditPost' import CommentEdit from './EditComment' import Header from './Header' import { Route, Switch } from 'react-router-dom' impor...
stories/props/length.stories.js
jquense/react-big-calendar
import React from 'react' import moment from 'moment' import { Calendar, Views, momentLocalizer } from '../../src' import demoEvents from '../resources/events' import mdx from './length.mdx' const mLocalizer = momentLocalizer(moment) export default { title: 'props', component: Calendar, argTypes: { localize...
actor-apps/app-web/src/app/utils/require-auth.js
berserkertdl/actor-platform
import React from 'react'; import LoginStore from 'stores/LoginStore'; export default (Component) => { return class Authenticated extends React.Component { static willTransitionTo(transition) { if (!LoginStore.isLoggedIn()) { transition.redirect('/auth', {}, {'nextPath': transition.path}); }...
src/svg-icons/image/exposure-plus-2.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageExposurePlus2 = (props) => ( <SvgIcon {...props}> <path d="M16.05 16.29l2.86-3.07c.38-.39.72-.79 1.04-1.18.32-.39.59-.78.82-1.17.23-.39.41-.78.54-1.17.13-.39.19-.79.19-1.18 0-.53-.09-1.02-.27-1.46-.18-.44-...
src/Badge.js
snadn/react-bootstrap
import React from 'react'; import ValidComponentChildren from './utils/ValidComponentChildren'; import classNames from 'classnames'; const Badge = React.createClass({ propTypes: { pullRight: React.PropTypes.bool }, getDefaultProps() { return { pullRight: false }; }, hasContent() { re...
react-flux-mui/js/material-ui/src/svg-icons/communication/contact-phone.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationContactPhone = (props) => ( <SvgIcon {...props}> <path d="M22 3H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-...
examples/src/views/HomeView/HomeView.js
kagawagao/react-pagination
import React from 'react' import Pagination from 'nd-rc-pagination' import 'nd-rc-pagination/assets/index.scss' export default class extends React.Component { handlePageChange (page) { console.log(page) } render () { return ( <Pagination total={10000} size={10} onPageChange={this.handlePageChange}/...
src/modules/AdminPortal/components/MenuSidebar.js
nnnoel/graphql-apollo-resource-manager
import React from 'react'; import { connect } from 'react-redux'; import { logoutAdmin } from '../actions'; import Header from 'grommet/components/Header'; import Footer from 'grommet/components/Footer'; import Title from 'grommet/components/Title'; import Menu from 'grommet/components/Menu'; import Anchor from 'gromme...
src/server.js
paschcua/erikras
import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; 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'; import ApiC...
app/containers/WebinarContainer.js
MutatedBread/binary-academy-rn
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Webinar from './../components/views/videoTabs/Webinar.js'; const mapStateToProps = state => ({ isLoading: state.video.webinar.isLoading, videoArrayStore: state.video.webinar.videoArra...
src/js/components/icons/base/CreditCard.js
odedre/grommet-final
/** * @description CreditCard SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * ...
src/parser/paladin/retribution/modules/core/azeritetraits/LightsDecree.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import SPELLS from 'common/SPELLS'; import AzeritePowerStatistic from 'interface/statistics/AzeritePowerStatistic'; import { formatNumber, formatPercentage } from 'common/format'; i...
src/shared/components/App/bits/mobile-nav.js
brettsnaidero/bsd
import React, { Component } from 'react'; // Utils import * as _ from 'lodash'; import { Link } from 'react-router-dom'; import Scroll from 'react-scroll'; const LocalLink = Scroll.Link; const Element = Scroll.Element; const Events = Scroll.Events; const scroll = Scroll.animateScroll; const scrollSpy = S...
src/Parser/MistweaverMonk/Modules/Features/EssenceFontMastery.js
mwwscott0/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import { formatNumber, formatPercentage } from 'common/format'; import Module from 'Parser/Core/Module'; import Combatants from 'Parser/Core/Modules/Combatants'; import He...
react-native/WeatherProject/WeatherProject.js
tiagofumo/react-sample-projects
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, TextInput, Image, Text, View } from 'react-native'; import Forecast from './Forecast.js'; var secrets = require('./secrets.json'); class WeatherProject extends Component { constructor() { super(); this.state = { zip...
fields/types/color/ColorField.js
BlakeRxxk/keystone
import ColorPicker from '@jedwatson/react-color'; import Field from '../Field'; import React from 'react'; import { FormInput, InputGroup } from 'elemental'; const PICKER_TYPES = ['chrome', 'compact', 'material', 'photoshop', 'sketch', 'slider', 'swatches']; const TRANSPARENT_BG = `<svg width="24" height="24" viewBox=...
extra/AsterickSVG.js
martinjackson/reactjs-meetup-validation
import React from 'react'; import _ from 'lodash'; // <Asterick fill='red' /> class Asterick extends React.Component { constructor(props) { super(props); } render(){ var sz = { width: '1.68em', height: '1.68em' }; var st = sz; // _.assign(sz, {float: 'right'}); var bor = _.assign(sz, {border...
src/components/Feedback/Feedback.js
Artemuch727/UserList-React-Isomorhic-
/** * 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 withStyles from 'isomorp...
platform/viewer/src/connectedComponents/Viewer.js
OHIF/Viewers
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import OHIF, { MODULE_TYPES, DICOMSR } from '@ohif/core'; import { withDialog } from '@ohif/ui'; import moment from 'moment'; import ConnectedHeader from './ConnectedHeader.js'; import ToolbarRow from './...
packages/mdx-loader/index.js
jamesknelson/mdxc
const { getOptions } = require('loader-utils') const readingTime = require('reading-time') const emoji = require('remark-emoji') const images = require('remark-images') const textr = require('remark-textr') const slug = require('remark-slug') const mdx = require('@mdx-js/mdx') const mdxTableOfContents = require('mdx-ta...
src/components/ProgressBar/ProgressBar.js
MallikarjunaMG/react-components
import React from 'react'; import PropTypes from 'prop-types'; /** * my custom progress-bar */ class ProgressBar extends React.Component { getColor = (percent) => { if(this.props.percent === 100) return 'green' return this.props.percent > 50 ? 'lightgreen' : 'red' } getWidthAsTotalPercent = () => { ...
src/components/common/svg-icons/image/panorama-wide-angle.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePanoramaWideAngle = (props) => ( <SvgIcon {...props}> <path d="M12 6c2.45 0 4.71.2 7.29.64.47 1.78.71 3.58.71 5.36 0 1.78-.24 3.58-.71 5.36-2.58.44-4.84.64-7.29.64s-4.71-.2-7.29-.64C4.24 15.58 4 13.78 4 12...
app/javascript/mastodon/components/column_header.js
unarist/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { FormattedMessage, injectIntl, defineMessages } from 'react-intl'; const messages = defineMessages({ show: { id: 'column_header.show_settings', defaultMessage: 'Show settings' }, hide: { id: 'column_header.h...
frontend/src/containers/GraphToolbar/GraphToolbar.js
temaptz/life-analytics
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import SelectGraph from '../../components/SelectGraph/SelectGraph'; import GraphActions from '../../components/GraphActions/GraphActions'; import TimePeriodPanel from '../../components/TimePeriod/TimePeriodPane...
src/svg-icons/device/battery-std.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryStd = (props) => ( <SvgIcon {...props}> <path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"/> </SvgIcon> ); D...
Animate/react-motion-demo/src/components/SubApp.js
imuntil/React
import React from 'react' import { BrowserRouter as Router, Route, Link } from 'react-router-dom' import Container from './Container' import ReactCSSTransitionGroup from 'react-addons-css-transition-group' const style = { position: 'absolute', top: 300, width: 100, height: 100, backgroundColor: '#aaa' ...
docs/build.js
BespokeInsights/react-bootstrap
/* eslint no-console: 0 */ import React from 'react'; import path from 'path'; import Router from 'react-router'; import routes from './src/Routes'; import Root from './src/Root'; import fsp from 'fs-promise'; import { copy } from '../tools/fs-utils'; import { exec } from '../tools/exec'; import metadata from './gener...
internals/templates/containers/App/index.js
zuban/zuban-boilerplate
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
packages/react/src/components/ListBox/ListBoxMenuIcon.js
carbon-design-system/carbon-components
/** * 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 cx from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; import { ChevronDown16 } from '@carbon/icons-reac...
src/components/children/Dashboard.js
Nfinley/Showcase-Playlist-Generator
//The Dashboard page: Is where the user will come to select the frequency in which their playlist is generated and the genre they want to select /* */ //TODO: DATABASE - Using Redis save the username and id information and location import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ...
src/stories/button/button-sizes.js
kemuridama/rectangle
import React from 'react'; export default class ButtonSizes extends React.Component { render() { const { onClick } = this.props; return ( <div className="con"> <div className="p"> <div className="p__body"> <button className="btn btn--large" onClick={onClick.bind(this)}>La...
app/containers/App/index.js
easingthemes/berlinmap
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
sparkdown-frontend/src/index.js
mschaeffner/sparkdown
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
node_modules/react-native/Libraries/Utilities/throwOnWrongReactAPI.js
odapplications/WebView-with-Lower-Tab-Menu
/** * 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. * * @provides...
docs/src/sections/PopoverSection.js
mmarcant/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function PopoverSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> <A...
6-material-ui/src/pages/Room.js
pirosikick/react-hands-on-20171023
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import AppBar from 'material-ui/AppBar'; import IconButton from 'material-ui/IconButton'; import Paper from 'material-ui/Paper'; import { Card, CardHeader, CardText, } from 'material-ui/Card'; import NavigationChevronLeft from 'material...
client/extensions/woocommerce/components/test-live-toggle/index.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { localize } from 'i18n-calypso'; /** * Internal dependencies */ import ControlItem from 'components/segmented-control/item'; import FormLabel from 'components/forms/form-label'; imp...
src/styled_components/src/StyledComponent.js
djstein/modern-react
import React from 'react'; import styled from 'styled-components'; const StyledComponent = styled.div` boxSizing: 'border-box';`; export default StyledComponent;
examples/InputFields.js
jsbranco/react-materialize
import React from 'react'; import Input from '../src/Input'; import Row from '../src/Row'; export default <Row> <Input placeholder="Placeholder" s={6} label="First Name" /> <Input s={6} label="Last Name" /> <Input s={12} label="disabled" defaultValue="I am not editable" disabled /> <Input type="passwor...
src/components/common/mediaPicker/results/StarredSearchResultsContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { injectIntl, FormattedMessage } from 'react-intl'; import CollectionResultsTable from './CollectionResultsTable'; import SourceResultsTable from './SourceResultsTable'; import { FETCH_ONGOING } from '../../../../lib/fetchConstants'; import LoadingSp...
src/app/component/trust-box/trust-box.story.js
all3dp/printing-engine-client
import React from 'react' import {storiesOf} from '@storybook/react' import TrustBox from '.' storiesOf('TrustBox', module).add('default', () => <TrustBox />)
src/App.js
allenzhong/simple-carousel
import React, { Component } from 'react'; import './App.css'; import Carousel, {Position} from './components/Carousel'; class App extends Component { render() { let images = [ "images/1.jpg", "images/2.jpg", "images/3.jpg", "images/4.jpg", "images/5.jpg" ] return ( <di...
vendor/htmlburger/carbon-fields/assets/js/fields/components/association/list-item.js
Apiki/gb-plugin-api
/** * The external dependencies. */ import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { withHandlers } from 'recompose'; /** * The internal dependencies. */ import { preventDefault } from 'lib/helpers'; /** * Render an item that can be associated. * * @param {O...
src/components/SegmentedControl.js
dmsnell/elemental
import classnames from 'classnames'; import React from 'react'; module.exports = React.createClass({ displayName: 'SegmentedControl', propTypes: { className: React.PropTypes.string, equalWidthSegments: React.PropTypes.bool, onChange: React.PropTypes.func.isRequired, options: React.PropTypes.array.isRequired...
docs/src/app/pages/components/Input/ExampleInputDisabled.js
GetAmbassador/react-ions
import React from 'react' import Input from 'react-ions/lib/components/Input' import Button from 'react-ions/lib/components/Button' import style from './style.scss' class ExampleInputDisabled extends React.Component { constructor(props) { super(props) } state = { disabled: true } toggleDisabled = (...
client/src/components/Main.js
didju/didju
import React from 'react'; import { Route, Switch, Redirect } from 'react-router-dom'; import PropTypes from 'prop-types'; import SignIn from './SignIn'; import Home from './Home'; import UserMain from './UserMain'; import UserSetUp from './UserSetUp'; import NotFound from './NotFound'; // TODO: replace /firstname wit...
react/features/base/react/components/AbstractContainer.js
gpolitis/jitsi-meet
/* @flow */ import React, { Component } from 'react'; import { getFixedPlatformStyle } from '../../styles'; /** * {@code AbstractContainer} Component's property types. */ export type Props = { /** * An optional accessibility label to apply to the container root. */ accessibilityLabel?: string, ...
app/features/quiz/QuizSession/QuizQuestion/index.js
Kaniwani/KW-Frontend
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { selectCurrent, selectIsLessonQuiz } from 'features/quiz/QuizSession/selectors'; import { selectAnswer } from 'features/quiz/QuizSession/QuizAnswer/selectors'; import { selectPrimaryMeaning, selectSecondar...
server/sonar-web/src/main/js/apps/permissions/shared/components/HoldersList.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
src/server/providers/async-props.js
nathanielks/universal-redux
import React from 'react'; import { Provider } from 'react-redux'; import AsyncProps, { loadPropsOnServer } from '../../vendor/async-props'; export default function(store, renderProps) { return new Promise((resolve, reject) => { loadPropsOnServer(renderProps, (err, asyncProps) => { if (err) { rejec...
src/react/siteframe/sidebar_links.js
pivotal-cf/pivotal-ui
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; export class SidebarLinks extends React.PureComponent { static propTypes = { links: PropTypes.array, renderLink: PropTypes.func, className: PropTypes.string }; render() { const {links, renderLink,...
wip/click/src/urbit/app/click/js/tile.js
urbit/examples
import React, { Component } from 'react'; import classnames from 'classnames'; import _ from 'lodash'; export default class clickTile extends Component { constructor(props) { super(props); let ship = window.ship; let api = window.api; } pokeShip() { api.action('click', 'json', {click...
wwwroot/app/src/components/MyRecipesPage/EmptyRecipeNameAlert.js
AlinCiocan/FoodPlanApp
import React from 'react'; import AlertModal from '../base/modal/AlertModal'; const EmptyRecipeNameAlert = (props) => ( <AlertModal isOpen={props.isOpen} title="You must specify a name for your recipe." actionButtonText="OK" onAction={props.onAction} /> ); export default EmptyR...
src/components/subheader.js
zhangsichu/HybridAppReduxVsIonic
import React from 'react' import styles from './styles.scss' function Subheader ({ title }) { return ( <div className={styles.subheader}> <h2>{title}</h2> </div> ) } Subheader.propTypes = { title: React.PropTypes.string } export default Subheader
pootle/static/js/shared/utils/i18n.js
phlax/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; /** * Make it possible React...
frontend/app_v2/src/components/WidgetAddToDoc/WidgetAddToDocContainer.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' // FPCC import WidgetAddToDocPresentation from 'components/WidgetAddToDoc/WidgetAddToDocPresentation' import WidgetAddToDocData from 'components/WidgetAddToDoc/WidgetAddToDocData' function WidgetAddToDocContainer({ closeHandler, insertIndex, destinationId }...
src/decorators/withViewport.js
ZhouHengYi/https---github.com-ZhouHengYi-RenRen_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 '../../node_modules/react/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height:...
frontend/src/Movie/Details/MovieReleaseDates.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React from 'react'; import Icon from 'Components/Icon'; import { icons } from 'Helpers/Props'; import getRelativeDate from 'Utilities/Date/getRelativeDate'; import styles from './MovieReleaseDates.css'; function MovieReleaseDates(props) { const { showRelativeDates, ...
src/js/components/icons/Grommet.js
linde12/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../utils/CSSClassnames'; import Intl from '../../utils/Intl'; const CLASS_ROOT = CSSClassnames.LOGO_ICON...
mine-data/src/Details/DetailsItem.js
BerlingskeMedia/nyhedsbreve
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export const DetailsItem = ({value, label, className, allowEmpty}) => { if (value || allowEmpty) { return ( <div className={classNames('DetailsItem', className)}> <strong>{label}: </strong> <...
src/client/main.js
jaeh/este
import React from 'react'; import Router from 'react-router'; import routes from './routes'; const app = document.getElementById('app'); const appState = window._appState; Router.run(routes, Router.HistoryLocation, (Handler) => { React.render(<Handler initialState={appState} />, app); });
components/mediaplayer.js
Yutenko/stories360
import React from 'react' import ReactPlayer from 'react-player' import Wavesurfer from 'react-wavesurfer' import FontIcon from 'material-ui/FontIcon' import Slider from 'material-ui/Slider' import stores from '../stores/vrestores' import {observer} from 'mobx-react' import {translate} from '../client/lang/translation'...
docs/src/app/components/pages/components/GridList/ExampleComplex.js
skarnecki/material-ui
import React from 'react'; import {GridList, GridTile} from 'material-ui/GridList'; import IconButton from 'material-ui/IconButton'; import StarBorder from 'material-ui/svg-icons/toggle/star-border'; const styles = { root: { display: 'flex', flexWrap: 'wrap', justifyContent: 'space-around', }, gridLi...
blueocean-material-icons/src/js/components/svg-icons/av/replay-10.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const 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.8l-.3.6s-.3.3-.5.3-.4.1-.6.1-.4 0...
src/js/components/icons/base/PlatformTurbolinux.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/components/link/LinksRenderer.component.js
acateland/react-flow-designer
import PropTypes from 'prop-types'; import React from 'react'; import invariant from 'invariant'; import { mapOf } from 'react-immutable-proptypes'; import { LinkType, PortType } from '../../constants/flowdesigner.proptypes'; class LinksRender extends React.Component { static propTypes = { links: mapOf(LinkType).is...
packages/web/examples/ResultCard/src/index.js
appbaseio/reactivesearch
import React from 'react'; import ReactDOM from 'react-dom'; import { ReactiveBase, SingleDropdownRange, ResultCard, ReactiveList, } from '@appbaseio/reactivesearch'; import './index.css'; const Main = () => ( <ReactiveBase app="good-books-ds" url="https://a03a1cb71321:75b6603d-9456-4a5a-af6b-a487b309eb61@a...
src/components/Widgets/TextPreview.js
dopry/netlify-cms
import PropTypes from 'prop-types'; import React from 'react'; import previewStyle from './defaultPreviewStyle'; export default function TextPreview({ value }) { return <div style={previewStyle}>{value}</div>; } TextPreview.propTypes = { value: PropTypes.node, };
src/svg-icons/action/settings-voice.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsVoice = (props) => ( <SvgIcon {...props}> <path d="M7 24h2v-2H7v2zm5-11c1.66 0 2.99-1.34 2.99-3L15 4c0-1.66-1.34-3-3-3S9 2.34 9 4v6c0 1.66 1.34 3 3 3zm-1 11h2v-2h-2v2zm4 0h2v-2h-2v2zm4-14h-1.7c0 3...
packages/reactor-kitchensink/src/examples/Layouts/form/form.js
sencha/extjs-reactor
import React from 'react'; import { Container, Panel, FormPanel, TextField } from '@extjs/ext-react'; export default function FormLayoutExample() { return ( <Container padding={Ext.os.is.Phone ? 20 : 30}> <Panel shadow ui="instructions" margin="0 0 30 0"> <div> ...
app/main.js
StefanSchwartze/whatiuse
// created by from @tomaash // initial source: https://github.com/tomaash/react-example-filmdb/blob/master/app/main.js import Iso from 'iso'; import React from 'react'; import ReactDOM from 'react-dom'; import router from 'router'; // Paths are relative to `app` directory import alt from 'utils/alt'; if (process.env...
src/widgets/input/CheckBoxInput.js
rsamec/react-widgets
import React from 'react'; export default class CheckBoxInput extends React.Component{ render () { var valueModel = this.props.valueLink; var value = valueModel && valueModel.value || false; var handleChange = function (e) { valueModel.value = e.target.checked?true:false; }; ...
react/features/conference/components/AbstractLabels.js
bgrozev/jitsi-meet
// @flow import React, { Component } from 'react'; import { E2EELabel } from '../../e2ee'; import { isFilmstripVisible } from '../../filmstrip'; import { LocalRecordingLabel } from '../../local-recording'; import { RecordingLabel } from '../../recording'; import { TranscribingLabel } from '../../transcribing'; import...
src/containers/Survey/Survey.js
tpphu/react-pwa
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import { initialize } from 'redux-form'; import SurveyForm from 'components/SurveyForm/SurveyForm'; @connect( () => ({}), { initialize }) export default class Surv...
front/src/containers/Home/Home.js
HwMuTou/CloudNote
import React from 'react'; import NoteHeader from "../NoteHeader/NoteHeader"; import Axi from 'axios'; import {Component} from 'react'; import {Route} from "react-router-dom"; import NoteList from "../NoteList/NoteList"; import NoteText from "../NoteText/NoteText"; import {Grid} from "semantic-ui-react"; class Home ex...
test/test_helper.js
ydsood/policyPrototype
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
src/filter/colorFilter.js
jessy1092/react-semantify
import React from 'react'; const colorArray = [ 'black', 'yellow', 'green', 'blue', 'orange', 'purple', 'red', 'teal' ]; export default function (ComposeComponent) { class HigherOrderComponent extends React.Component { render() { let { props: { className = '', children, color = '', ...other } } = t...
src/components/Columns/Columns.js
Landish/react-spectre-css
import React from 'react'; import { bool } from 'prop-types'; import classNames from 'classnames'; const Columns = ({ gaps, oneLine, children, ...rest }) => { return ( <div className={classNames( 'columns', { 'col-gapless': !gaps }, { 'col-oneline': oneLine } )} {...rest...
src/main/app/src/components/Comment.js
pugnascotia/spring-react-boilerplate
/* @flow */ import React from 'react'; const Comment = (props : { content: string, author : string }) => ( <div className="message"> <h3>{props.content}</h3> <p>By {props.author}</p> </div> ); export default Comment;
src/components/beer/Pairings.js
gribnoysup/diy-dog-search
import React from 'react' import {Card} from '../common/Card' import {DataTable} from '../common/Table' import {IconWithContent} from '../common/Icon' function getFoodRows(pairings) { return pairings.map((pairing) => [pairing]) } export const Pairings = ({foodPairing}) => ( <Card title="Food Pairing"> <IconW...