path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/containers/LanguageProvider/index.js
brietsparks/curr__ui-rbp-apollo-cvb
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
app/main.js
evansantos/surv.ey
import React from 'react' import ReactDOM from 'react-dom' import App from './App' import './css/main.css'; ReactDOM.render(<App />, document.getElementById('app'))
docs/app/Examples/collections/Grid/Variations/GridExampleTextAlignmentRight.js
ben174/Semantic-UI-React
import React from 'react' import { Grid, Menu } from 'semantic-ui-react' const GridExampleTextAlignmentRight = () => ( <Grid textAlign='right' columns={3}> <Grid.Row> <Grid.Column> <Menu fluid vertical> <Menu.Item className='header'>Cats</Menu.Item> </Menu> </Grid.Column> ...
app/components/Table/index.js
nypl-spacetime/where
import React from 'react' import styled from 'styled-components' const StyledTable = styled.table` width: 100%; & tr th, & tr td { text-align: left; border: 0; padding: 0.5em; vertical-align: top; } & tr td { border-top: 2px solid rgba(0, 0, 0, 0.08); } ` function Table (props) { r...
scripts/client/components/LanguageSelector.js
antca/antca.github.io
import {mainStore, mainActions} from '../MainFlux'; import React from 'react'; import Reflux from 'reflux'; var LanguageSelector = React.createClass({ mixins: [Reflux.listenTo(mainStore, "onStoreEvent")], getInitialState() { return { lang : mainStore.language } }, onStoreEvent(type) { if(type...
app/containers/App/index.js
zebbra-repos/Zeiterfassung-medi
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
src/kanban/components/Notes.js
rdwrcode/myreact-demo
import React from 'react'; import {connect} from 'react-redux'; import Editable from './Editable'; import Note from './Note'; import {move} from '../actions/lanes'; class Notes extends React.Component { render() { const {notes, move, onValueClick, onEdit, onDelete} = this.props; return (<ul className="notes...
client/src/app-components/language-selector.js
ivandiazwm/opensupports
import React from 'react'; import {connect} from 'react-redux'; import classNames from 'classnames'; import languageList from 'data/language-list'; import i18n from 'lib-app/i18n'; import DropDown from 'core-components/drop-down'; const languageCodes = Object.keys(languageList); class LanguageSelector extends React....
blueocean-material-icons/src/js/components/svg-icons/places/room-service.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const PlacesRoomService = (props) => ( <SvgIcon {...props}> <path d="M2 17h20v2H2zm11.84-9.21c.1-.24.16-.51.16-.79 0-1.1-.9-2-2-2s-2 .9-2 2c0 .28.06.55.16.79C6.25 8.6 3.27 11.93 3 16h18c-.27-4.07-3.25-7.4-7.16-8.21z"/> </SvgIcon> ); PlacesRoomServ...
src/Parser/Core/Modules/Features/Images/Strength.js
hasseboulen/WoWAnalyzer
import React from 'react'; const icon = props => ( <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="16 16 32 32" {...props}> <g> <path d="M49.771,31.52H47.57v-6.691c0-0.821-0.672-1.492-1.492-1.492c-0.821,0-1.492,0.672-1.492,1.492 c0-0.821-0.672-1.492-1.492-1.492S41.6,24.008,41.6,24.828c0-0....
app/screens/App/screens/SecretSpace/index.js
codejunkienick/starter-lapis
import React from 'react'; export default function SecretSpace() { return <h2>Whoa! You&apos;ve found the secret space</h2>; }
src/svg-icons/device/battery-30.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBattery30 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V15h10V5.33z"/><path d="M7 15v5.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 ...
packages/react-scripts/fixtures/kitchensink/template/src/features/env/FileEnvVariables.js
Timer/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; const FileEnvVariables = () => ( <span> <span id="feature-file-env-original-1"> {process.env.REA...
app/components/elements/Select.js
tidepool-org/blip
import React from 'react'; import PropTypes from 'prop-types'; import { Flex, Box, BoxProps } from 'rebass/styled-components'; import { Select as Base, Label, SelectProps } from '@rebass/forms'; import styled from 'styled-components'; import cx from 'classnames'; import map from 'lodash/map'; import KeyboardArrowDownRo...
app/src/components/selectCategory/selectCategory.js
MartinKostadinov/FeTest-with-React-and-Redux
import React from 'react'; import classNames from 'classnames'; import { getQuestionsData } from '../../actions/getData'; import { showQuestions, showChooseCat } from '../../actions/showQuestionsAction'; class SelectCategory extends React.Component { constructor(props){ super(props); this.state = ...
imports/ui/components/search/SearchTools/SearchTools.js
pletcher/cltk_frontend
import React from 'react'; import FlatButton from 'material-ui/FlatButton'; import FontIcon from 'material-ui/FontIcon'; import PropTypes from 'prop-types'; import TextField from 'material-ui/TextField'; import autoBind from 'react-autobind'; import baseTheme from 'material-ui/styles/baseThemes/lightBaseTheme'; import ...
app/containers/FeaturePage/index.js
romanvieito/ball-simpler
/* * FeaturePage * * List all the features */ import React from 'react'; import { Helmet } from 'react-helmet'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; import messages from './messages'; import List from './List'; import ListItem from './ListItem'; import ListItemTitle from '...
src/layouts/HomeLayout/HomeLayout.js
robertcasanova/personal-website
import React from 'react' import Footer from '../../components/Footer' import SocialNavbar from '../../components/SocialBar' import LoveLogo from './assets/open-source.svg' import '../../styles/core.scss' import './HomeLayout.scss' export const HomeLayout = ({ children }) => ( <section id='home-layout'> <Socia...
src/components/RecipeList/index.js
ibleedfilm/recipe-box
import React, { Component } from 'react'; import RecipeModal from 'components/RecipeModal'; import Recipe from 'components/Recipe'; import Style from './style.scss'; export default class RecipeList extends Component { constructor(props) { super(props); this.state = { recipes: [{ name: 'Sampl...
src/components/AdminPanelTablePage.js
EehMauro/dyscalculia-web
import React from 'react'; import Icon from 'material-ui/Icon'; import IconButton from 'material-ui/IconButton'; import Table, { TableBody, TableCell, TableHead, TableRow } from 'material-ui/Table'; import { AdminPanelPage, AdminPanelProgressPage } from '../components'; export default class TablePage extends React.Com...
src/components/less/plain-wordmark/LessPlainWordmark.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './LessPlainWordmark.svg' /** LessPlainWordmark */ function LessPlainWordmark({ width, height, className }) { return ( <SVGDeviconInline className={'LessPlainWordmar...
app/javascript/mastodon/features/status/components/card.js
TheInventrix/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Immutable from 'immutable'; import ImmutablePropTypes from 'react-immutable-proptypes'; import punycode from 'punycode'; import classnames from 'classnames'; const IDNA_PREFIX = 'xn--'; const decodeIDNA = domain => { return domain .split('.')...
src/components/TextInputCSSModules/TextInputCSSModules.js
bfletcherbiggs/DocreactJS
import React from 'react'; import PropTypes from 'prop-types'; import Label from '../Label'; import styles from './textInput.css'; /** Text input with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */ function TextInput({htmlId, name, label, type = "text",...
src/index.js
thehig/cainthus-codeinterview
import React from 'react'; import ReactDOM from 'react-dom'; import App from './containers/App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/svg-icons/action/pageview.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPageview = (props) => ( <SvgIcon {...props}> <path d="M11.5 9C10.12 9 9 10.12 9 11.5s1.12 2.5 2.5 2.5 2.5-1.12 2.5-2.5S12.88 9 11.5 9zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-...
src/components/horizontal-bar-content.js
ronlobo/building-os-charts
import React from 'react'; import HorizontalBarIcon from 'components/horizontal-bar-icon'; import ChartLabel from 'components/chart-label'; import { getLayout } from 'layouts/flexbox'; import getCenter from 'decorators/get-center'; @getCenter export default class HorizontalBarContent extends React.Component { stati...
src/components/views/voip/CallPreview.js
aperezdc/matrix-react-sdk
/* Copyright 2017 New Vector Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
index.js
marekv69/reduxTwitterTestApp
import './node_modules/bootstrap/dist/css/bootstrap.min.css'; import './styles/style.css'; import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; // it cre...
app/scripts/index.js
felipemrodrigues/react-starter
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import todoApp from './reducers'; import App from './components/App'; const store = createStore(todoApp); render( <Provider store={store}> <App /> </Provider>, document...
examples/huge-apps/routes/Course/routes/Announcements/routes/Announcement/components/Announcement.js
moudy/react-router
import React from 'react'; class Announcement extends React.Component { render () { var { courseId, announcementId } = this.props.params; var { title, body } = COURSES[courseId].announcements[announcementId]; return ( <div> <h4>{title}</h4> <p>{body}</p> </div> ); } } ...
portfolio-site/src/scenes/home/home-images/homeImageSection.js
dave5801/Portfolio
import React from 'react'; import './homeImageSections.css'; const HomeImageSection = () => ( <div className="Home-Image-Section"> <div className="images"> <div> <img src={ require('./images/mars.png') } alt="img1"/> </div> <div> <img src={ require('./images/at...
app/javascript/mastodon/features/standalone/hashtag_timeline/index.js
esetomo/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../../ui/containers/status_list_container'; import { refreshHashtagTimeline, expandHashtagTimeline, } from '../../../actions/timelines'; import Column from '../../../components/colu...
src/client/assets/javascripts/features/canvas/components/svg/Circle.js
tlodge/uibuilder
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import {camelise} from 'utils'; import { actionCreators as canvasActions, selector } from '../..'; import { connect } from 'react-redux'; @connect(selector, (dispatch) => { return{ actions: bindActionCreators(canvasActions, di...
react/features/chat/components/web/MessageRecipient.js
jitsi/jitsi-meet
// @flow import React from 'react'; import { translate } from '../../../base/i18n'; import { Icon, IconCancelSelection } from '../../../base/icons'; import { connect } from '../../../base/redux'; import AbstractMessageRecipient, { _mapDispatchToProps, _mapStateToProps, type Props } from '../AbstractMessag...
src/svg-icons/device/brightness-low.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBrightnessLow = (props) => ( <SvgIcon {...props}> <path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 ...
node_modules/react-bootstrap/es/Image.js
saltypaul/SnipTodo
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 ...
ui/src/main/js/components/Pagination.js
crashlytics/aurora
import React from 'react'; export function PageNavigation({currentPage, maxPages, numPages, onClick}) { // Pad the current page on both sides by one half of maxPages const lastPage = Math.min(currentPage + Math.round(maxPages / 2), numPages); const firstPage = Math.max(currentPage - Math.round(maxPages / 2), 1);...
src/index.js
UtainW/simple-react-boilerplate
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { AppContainer } from 'react-hot-loader'; import Root from './router'; import configureStore from './store'; import createHistory from 'history/createBrowserHistory'; const history = createHistory(); const stor...
app/javascript/mastodon/components/autosuggest_hashtag.js
h3zjp/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { shortNumberFormat } from 'mastodon/utils/numbers'; import { FormattedMessage } from 'react-intl'; export default class AutosuggestHashtag extends React.PureComponent { static propTypes = { tag: PropTypes.shape({ name: PropTypes.string...
src/parser/deathknight/blood/modules/talents/WillOfTheNecropolis.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS/index'; import { formatNumber } from "common/format"; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER'; const MINIMUM_ABSORB_THRE...
src/components/clickToSend/index.js
slaweet/lisk-nano
import React from 'react'; import styles from './clickToSend.css'; import RelativeLink from '../relativeLink'; import { fromRawLsk } from '../../utils/lsk'; const ClickToSend = ({ rawAmount, amount, className, recipient, children, disabled }) => { const normalizedAmount = rawAmount ? fromRawLsk(rawAmount) : amount...
entry_types/scrolled/package/src/contentElements/textBlock/TextBlock.js
codevise/pageflow
import React from 'react'; import classNames from 'classnames'; import { EditableText, useContentElementConfigurationUpdate, useI18n } from 'pageflow-scrolled/frontend'; import styles from './TextBlock.module.css'; export function TextBlock(props) { const updateConfiguration = useContentElementConfigurationUp...
src/App.js
alexcpendleton/pondryhills.com
import React, { Component } from 'react'; import './App.css'; import { Link } from 'react-router-dom' class App extends Component { render() { return ( <div>There's nothing here yet. You're probably looking for the <Link to="/Eggs">Eggs</Link>. :)</div> ); } } export default App;
index.ios.js
zeenfaizpy/GitBattle
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, NavigatorIOS, TouchableHighlight, } from 'react-native'; import Main from './app/components/main'; var styles = StyleSheet.create...
src/MeetupDetails.js
MaxLinCode/tardy-HackIllinois-2017
import React from 'react' import firebase from 'firebase' class MeetupDetailsForm extends React.Component { constructor(props) { super(props); this.state = { full_name: '', expected_time: { hours: '', minutes: '', isPM: 'AM'...
src/svg-icons/image/exposure-neg-2.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageExposureNeg2 = (props) => ( <SvgIcon {...props}> <path d="M15.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.17s.19-.79.19-1.18c0-.53-.09-1.02-.27-1.46-.18-.44-.44-.81...
client/components/Favicon.js
dralletje/Tonlist
import React from 'react' import {renderNothing, branch} from 'recompose' // Als er geen `document` is, heeft een favicon ook geen zin let decorator = branch( props => !document, renderNothing(), x => x ) let Favicon = class Favicon extends React.Component { componentDidMount() { // Create a `link` elem...
packages/icons/src/md/image/Filter1.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdFilter1(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M6 10H2v32c0 2.21 1.79 4 4 4h32v-4H6V10zm22 20h4V10h-8v4h4v16zM42 2c2.21 0 4 1.79 4 4v28c0 2.21-1.79 4-4 4H14c-2.21 0-4-1.79-4-4V6c0-2.21 1.79-4 4-4h...
local-cli/templates/HelloNavigation/components/ListItem.js
ptomasroos/react-native
'use strict'; import React, { Component } from 'react'; import { Platform, StyleSheet, Text, TouchableHighlight, TouchableNativeFeedback, View, } from 'react-native'; /** * Renders the right type of Touchable for the list item, based on platform. */ const Touchable = ({onPress, children}) => { const c...
src/index.js
everedifice/react-starter
import React from 'react'; import {render} from 'react-dom'; const App = () => ( <h1>Hello World!</h1> ); render(<App />, document.querySelector('#root'));
src/parser/deathknight/blood/modules/talents/MarkOfBlood.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import Enemies from 'parser/shared/modules/Enemies'; import SPELLS from 'common/SPELLS/index'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import TalentStatisticBox from 'interface/others/TalentStatis...
src/components/colorpicker/ColorPicker.js
webcerebrium/ec-react15-lib
import React, { Component } from 'react'; import tinycolor from 'tinycolor2'; import styled from 'styled-components'; import './colorpicker.css'; import Debounced from '../../services/Debounced'; import { Colors as colors } from './colors.config'; import TextInput from '../TextInput'; import ColorSlider from './ColorSl...
src/screens/Shared/RelatedIllusts.js
alphasp/pxview
import React, { Component } from 'react'; import { View, StyleSheet, InteractionManager } from 'react-native'; import { connect } from 'react-redux'; import { connectLocalization } from '../../components/Localization'; import IllustList from '../../components/IllustList'; import IllustItem from '../../components/Illust...
app/static/src/diagnostic/EquipmentForm_modules/AditionalEqupmentParameters_modules/CapacitorParams.js
vsilent/Vision
import React from 'react'; import FormControl from 'react-bootstrap/lib/FormControl'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import ControlLabel from 'react-bootstrap/lib/ControlLabel'; import {findDOMNode} from 'react-dom'; import {hashHistory} from 'react-router'; import {Link} from 'react-router'; im...
examples/Sparkline/App.js
AlexMayants/react-jsx-highcharts
import React, { Component } from 'react'; import { HighchartsSparkline, AreaSeries, Tooltip } from 'react-jsx-highcharts'; import Highcharts from 'highcharts'; import mapValues from 'lodash/mapValues'; import ExampleCode from '../utils/ExampleCode'; import code from './exampleCode'; import './index.css'; Highcharts....
scripts/components/App.js
ZucchiniZe/flux-people
import React from 'react'; import People from './People' /** * The react component that wraps the whole * application in a container for bootstrap */ export default class App extends React.Component { render() { return ( <div className="container"> <People/> </div> ); } }
src/Page.js
Software-Eng-THU-2015/pacific-rim
import React, { Component } from 'react'; import TagWrapper from './Tag/TagWrapper'; import SparkLines from './Home/SparkLines'; export default class Page extends Component{ constructor(props){ super(props); this.state = { displayTag: false, } function getOpenid(){ var _code; var reg = new RegExp...
src/components/ChoiceAutocompleteQuestion.js
flexiform/flexiform-fill-ui
/** * Copyright 2016 ReSys OÜ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
app/sidebar/components/Player.js
Raymond-Zhu/music-video-app
import React, { Component } from 'react'; import Controls from './Controls.js'; export default class Player extends Component { constructor(props) { super(props); }; render() { var style = { 'height' : '50%' } return ( <div style={style}> {this.props.nowPlaying === undefined...
app/navigation/routes-config.js
manosim/react-native-base
import React from 'react'; // eslint-disable-line no-unused-vars import Styles from '../utils/styles'; import Home from '../routes/home'; import Info from '../routes/info'; export const navigationOptions = { headerBackTitle: null, headerTitleStyle: { fontSize: 16, color: Styles.NARBAR_TEXT_COLOR, }, ...
node_modules/react-router/es/Prompt.js
amiechen/amiechen.github.io
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
app/components/Account.js
MarcinJarecki/React-js-Sticky-Notes
import React from 'react'; import {pFont} from '../styles'; export default class Account extends React.Component { render() { return ( <div className="container"> <h2> Account information </h2> <div className="lead"></div> <div className="row-fluid" style={pFont}> <div cla...
client/app/containers/DjApp.js
dring1/gopheringdj
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import MainSection from '../components/Main'; import Actions from '../actions'; class DjApp extends Component { static propTypes = { songs: React.PropTypes.object.isRequired, actions: ...
integration_tests/fixtures/react-native-clean/index.ios.js
yesdr/haul
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class Test extends Component { render() { return ( <View style={styles.container}> <T...
src/modules/search/components/SearchArtistItem.js
paramsinghvc/harp
import React, { Component } from 'react'; import { Link } from 'react-router'; export default class SearchArtistItem extends Component { render() { let imgUrl = this.props.artist.get('images').size > 0 ? this.props.artist.get('images').first().get('url') : null; return ( <Link to={`/artist/${...
docs/src/ModalsPage.js
jsbranco/react-materialize
import React from 'react'; import Row from '../../src/Row'; import Col from '../../src/Col'; import ReactPlayground from './ReactPlayground'; import PropTable from './PropTable'; import store from './store'; import Samples from './Samples'; import modal from '../../examples/Modal'; import modalWithBottomSheet from '../...
Examples/UIExplorer/js/ActivityIndicatorExample.js
Swaagie/react-native
/** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * The examp...
gui/components/MethodButton.js
venogram/ExpressiveJS
import React, { Component } from 'react'; import PropTypes from 'prop-types'; function MethodButton(props) { const triangleClass = props.isOpen ? 'triangle-down' : 'triangle-right'; return ( <div> <div className={triangleClass}></div> <button className="MethodButton" onClick={() => {props.clickMe(...
ajax/libs/react-instantsearch/4.0.0-beta.5/Dom.js
him2him2/cdnjs
/*! ReactInstantSearch 4.0.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...
src/Components/WeekCalendar.js
gourie/ParkingPlaza
/* * Author: Joeri Nicolaes * version: alpha */ import React from 'react'; import moment from 'moment'; import DayNames from './DayNamesWeekView'; import Day from './Day'; /** * React Component: WeekCalendar */ export default class WeekCalendar extends React.Component { /** * Standard ES6 method ...
src/components/pages/Homepage/Homepage.js
ESTEBANMURUZABAL/my-ecommerce-template
/** * Imports. */ import React from 'react'; import async from 'async'; import connectToStores from 'fluxible-addons-react/connectToStores'; import {FormattedMessage} from 'react-intl'; import {Link} from 'react-router'; import {slugify} from '../../../utils/strings'; // Flux import CollectionsStore from '../../../...
monkey/monkey_island/cc/ui/src/components/attack/techniques/T1065.js
guardicore/monkey
import React from 'react'; import MitigationsComponent from './MitigationsComponent'; class T1065 extends React.Component { render() { return ( <div> <div>{this.props.data.message_html}</div> <MitigationsComponent mitigations={this.props.data.mitigations}/> </div> ); } } expo...
packages/core/helper-plugin/lib/src/components/RelativeTime/index.js
wistityhq/strapi
import React from 'react'; import { intervalToDuration, isPast } from 'date-fns'; import { useIntl } from 'react-intl'; import PropTypes from 'prop-types'; const RelativeTime = ({ timestamp }) => { const { formatRelativeTime, formatDate, formatTime } = useIntl(); const interval = intervalToDuration({ start: t...
app/javascript/mastodon/features/ui/components/video_modal.js
yi0713/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Video from 'mastodon/features/video'; import ImmutablePureComponent from 'react-immutable-pure-component'; import Footer from 'mastodon/features/picture_in_picture/components/footer'; import...
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/src/Breadcrumb.js
GoogleCloudPlatform/prometheus-engine
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { mapToCssModules, tagPropType } from './utils'; const propTypes = { tag: tagPropType, listTag: tagPropType, className: PropTypes.string, listClassName: PropTypes.string, cssModule: PropTypes.object, ...
src/components/search_bar.js
vominhhoang308/ReduxSimpleStarter
import React, { Component } from 'react'; // always import as when the component that has jsx compiled into vanilla js, it be comes React.createElement... class SearchBar extends Component { constructor(props){ super(props); this.state = {term: ''}; } render() { return ( <div className="search-bar"> ...
src/components/Info.js
DragonLegend/game
import React, { Component } from 'react'; import classNames from 'classnames'; import { connect } from 'react-redux'; import debugLib from '../lib/debug'; const debug = debugLib('components:info'); class Info extends Component { state = {}; componentDidMount() { this.setHpInterval = window.setInterval(::this...
fork/dynamic-cdn-webpack-plugin/test/fixtures/app/multiple.js
Talend/ui
import '@babel/polyfill'; import React from 'react'; import ReactDom from 'react-dom';
client/src/Pages/About.js
ciex/mietlimbo
// @flow import React from 'react' import Impressum from '../Graphics/Impressum.png' import { FormattedMessage } from 'react-intl' import { NavLink } from 'react-router-dom' import RaisedButton from 'material-ui/RaisedButton' import logoOkf from '../Graphics/logo-okfn.svg' import logoBmbf from '../Graphics/logo-bmbf.s...
blueocean-material-icons/src/js/components/svg-icons/editor/highlight.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const EditorHighlight = (props) => ( <SvgIcon {...props}> <path d="M6 14l3 3v5h6v-5l3-3V9H6zm5-12h2v3h-2zM3.5 5.875L4.914 4.46l2.12 2.122L5.62 7.997zm13.46.71l2.123-2.12 1.414 1.414L18.375 8z"/> </SvgIcon> ); EditorHighlight.displayName = 'EditorH...
src/svg-icons/action/settings.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettings = (props) => ( <SvgIcon {...props}> <path d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l...
packages/retabulate-react/src/components/All.js
jasonphillips/retabulate
import React from 'react'; import QueryClosure from '../classes/QueryClosure'; import gatherChildConfig from '../utils/gatherChildConfig'; import makeRenderers from '../utils/makeRenderers'; class All extends React.Component { static serialize(props, index, context) { const { label, cellProps, cellSt...
components/page/footer/index.js
sgmap/inspire
import React from 'react' import Container from '../../container' import Social from './social' import Sitemap from './sitemap' const Footer = () => ( <footer> <Container> <div className='content'> <div> <img src='/static/images/etalab.png' alt='Etalab' /> <Social /> </...
src/components/RestaurantMapSettings/RestaurantMapSettings.js
labzero/lunch
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import Button from 'react-bootstrap/lib/Button'; import s from './RestaurantMapSettings.scss'; class RestaurantMapSettings extends Component { static propTypes = { setDef...
src/svg-icons/action/view-headline.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewHeadline = (props) => ( <SvgIcon {...props}> <path d="M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"/> </SvgIcon> ); ActionViewHeadline = pure(ActionViewHeadline); ActionViewHeadline.d...
packages/components/src/ResourceList/Toolbar/NameFilter/NameFilter.component.js
Talend/ui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import DebounceInput from 'react-debounce-input'; import { useTranslation } from 'react-i18next'; import useKey from 'react-use/lib/useKey'; import { Action } from '../../../Actions'; import I18N_DOMAIN_COMPONENTS from ...
app/components/UploadImage/UploadImage.js
realgvard/telegram_theme_customizer
import React, { Component } from 'react'; import CSSModules from 'react-css-modules'; import { connect } from 'react-redux'; // Components import RaisedButton from 'material-ui/RaisedButton'; // Images import ImageIcon from 'material-ui/svg-icons/image/image'; // Actions import { changeEditorImageData, setEd...
blueprints/dumb/files/__root__/components/__name__/__name__.js
LaunchAcademy/react-orbiter
import React from 'react' type Props = { }; export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } export default <%= pascalEntityName %>
app/components/common/header/AuthLinks.js
dhilt/dharmadict
import React from 'react' import {Link} from 'react-router' import {FormattedMessage} from 'react-intl' import LoadingButton from './LoadingButton' import Login from './Login' import Logout from './Logout' function AuthLinks ({ data, onPasswordChange, onLoginChange, closeModal, openModal, doLogout, doLogin...
src/components/AddBookBtn.js
pixel-glyph/better-reads
import React from 'react'; import PlusIcon from './svg/Plus'; import SideList from './SideList'; import PropTypes from 'prop-types'; class AddBookBtn extends React.Component { addBook = (listName, newBook) => { this.props.addNewBook(listName, newBook); if(this.props.syncBookView) { this.props.syncBo...
App.js
atsumo/react-native-sample
import React, { Component } from 'react'; import { AppRegistry, View, StyleSheet } from 'react-native'; import Container from './App/container/'; export default class App extends React.Component { render() { return ( <View style={styles.container}> <Container /> </View> ); } } const s...
src/fields/Slider/index.js
cantonjs/re-admin
import React from 'react'; import { Slider } from 'components/Form'; import Text from 'fields/Text'; export default function SliderField(props) { return <Text {...props} format="integer" component={Slider} />; }
docs/app/Examples/elements/Label/Variations/LabelExampleBasic.js
mohammed88/Semantic-UI-React
import React from 'react' import { Label } from 'semantic-ui-react' const LabelExampleBasic = () => ( <div> <Label as='a' basic>Basic</Label> <Label as='a' basic pointing>Pointing</Label> <Label as='a' basic image> <img src='http://semantic-ui.com/images/avatar/small/elliot.jpg' /> Elliot ...
src/components/GroupPanel.js
TonyYang9527/my-app
import React from 'react'; import PropTypes from 'prop-types'; import {observer} from 'mobx-react'; class GroupPanel extends React.Component{ static propTypes = { type: PropTypes.string }; static defaultProps = { type : '' }; render =() =>{ return( <div ...
admin/client/App/screens/List/components/ItemsTable/ItemsTableDragDropZone.js
jacargentina/keystone
/** * THIS IS ORPHANED AND ISN'T RENDERED AT THE MOMENT * THIS WAS DONE TO FINISH THE REDUX INTEGRATION, WILL REWRITE SOON * - @mxstbr */ import React from 'react'; import DropZoneTarget from './ItemsTableDragDropZoneTarget'; import classnames from 'classnames'; var ItemsTableDragDropZone = React.createClass({ d...
src/components/Page/Page.js
taekungngamonosus/monoreact
import React from 'react'; import PropTypes from 'prop-types'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Page.css'; class Page extends React.Component { static propTypes = { title: PropTypes.string.isRequired, html: PropTypes.string.isRequired, }; render() { c...
src/index.js
jalcantara90/cv
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; import './assets/css/app.css'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
blueocean-material-icons/src/js/components/svg-icons/social/party-mode.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const SocialPartyMode = (props) => ( <SvgIcon {...props}> <path d="M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 3c1.63 0 3.06.79 3.98 2H12c-1.66 0-3 1.34-3 3 0 .35.07.69.18 1H7.1c-.06-.32-.1-.66...
src/components/common/IconHeadingBlock/index.js
goodjoblife/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; import { P } from 'common/base'; import styles from './IconHeadingBlock.module.css'; const IconHeadingBlock = ({ heading, Icon, marginTop, noPadding, requiredText, children, }) => ( <section className={cn({ ...
src/TimeDisplay.js
vire/react-sound-player
import React, { Component } from 'react'; import moment from 'moment'; export class TimeDisplay extends Component { constructor(props) { super(props); } _formatTime(time) { const _time = moment.duration(time, 'seconds'); const minutes = _time.minutes() < 10 ? `0${_time.minutes()}` : _time.minutes();...