path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
static/src/components/LoginView.js
mortbauer/webapp
import React from 'react' import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as actionCreators from '../actions/auth'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; import Paper from 'material-ui/Paper'; import {validateEmail...
examples/website/mesh/app.js
uber-common/deck.gl
import React from 'react'; import {render} from 'react-dom'; import DeckGL from '@deck.gl/react'; import { COORDINATE_SYSTEM, OrbitView, DirectionalLight, LightingEffect, AmbientLight } from '@deck.gl/core'; import {SolidPolygonLayer} from '@deck.gl/layers'; import {SimpleMeshLayer} from '@deck.gl/mesh-layers...
app/javascript/flavours/glitch/features/picture_in_picture/index.js
im-in-space/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import Video from 'flavours/glitch/features/video'; import Audio from 'flavours/glitch/features/audio'; import { removePictureInPicture } from 'flavours/glitch/actions/picture_in_picture'; import Header from './compone...
src/industry.js
danielmoll/component-win-articlepage
import React from 'react'; import codify from 'slugger'; export default function Industry({ title, children = null, } = {}) { return ( <div className="industry"> <header className="industry__header"> <a name={codify(title, { decode: false })} /> <h1 className="industry__title" itemProp=...
src/components/header.js
djake1680/React-Weight-Calculator
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; export default class Header extends Component { render() { return( <nav className="navbar navbar-default"> <div className="container-fluid"> <div className="row"> ...
layouts/react-redux/client/containers/errors.js
nfour/js-structures
import React from 'react' export const NotFound = () => <div>404, Not found</div> export const InternalError = () => <div>500, Internal Error</div>
app/components/RacesTable.js
mzanini/DeeMemory
import React from 'react' import PropTypes from 'prop-types' import { withStyles } from '@material-ui/core/styles' import Table from '@material-ui/core/Table' import TableBody from '@material-ui/core/TableBody' import TableCell from '@material-ui/core/TableCell' import TableHead from '@material-ui/core/TableHead' impor...
src/componentAnimation.js
roffelund/flow-navigation
import React, { Component } from 'react'; import { Animated, StyleSheet, View } from 'react-native'; import PropTypes from 'prop-types'; import { flowClearInjections } from './flowRedux' class ContentAnimation extends Component { constructor(props) { super(props); this.state = { animatedValue: new Ani...
components/JobsView.js
amni/portfolio
import React from 'react' import { Link } from 'react-router' import { prefixLink } from 'gatsby-helpers' import Helmet from "react-helmet" import { config } from 'config' import Job from 'components/Job' import Gboard from "./gboard.png" import AdMob from "./admob.png" import SMSmart from "./smsmart.png" import KPCB f...
docs/src/pages/examples/RawEditorPage.js
gocreating/redux-draft
import React, { Component } from 'react'; import { reduxDraft } from '../../../../lib'; import PageLayout from '../../utils/PageLayout'; import Preview from '../../editors/utils/Preview'; import Raw from '../../editors/utils/Raw'; import RawEditor from '../../editors/RawEditor/RawEditor'; import draftConfig from '../.....
stories/index.js
rmariuzzo/react-chronos
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import HorizontalChronology from './HorizontalChronology'; import HorizontalChronologyWithMarkers from './HorizontalChronologyWithMarkers'; import VerticalChronology from './VerticalChronology'; import VerticalChronologyWithMarkers from './Verti...
lib-es/components/panel/panel.js
bokuweb/re-bulma
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import React, { Component } from 'react'; import PropTypes fr...
src/js/components/classification-details.js
Antoine-Dreyer/Classification-Explorer
import React from 'react' import Correspondences from './correspondences' import Items from './items' import Levels from './levels' import ClassificationDetailsPane from './classification-details-pane' import { sparqlConnect } from '../sparql/configure-sparql' import { LOADING, LOADED, FAILED } from 'sparql-connect' f...
docs/src/app/components/pages/components/Tabs/ExampleSwipeable.js
xmityaz/material-ui
import React from 'react'; import {Tabs, Tab} from 'material-ui/Tabs'; // From https://github.com/oliviertassinari/react-swipeable-views import SwipeableViews from 'react-swipeable-views'; const styles = { headline: { fontSize: 24, paddingTop: 16, marginBottom: 12, fontWeight: 400, }, slide: { ...
script/comment-header.js
bendro/bendro-react
import React from 'react'; import {FormattedRelative, FormattedMessage, injectIntl} from 'react-intl'; import {immutableRenderDecorator} from 'react-immutable-render-mixin'; @injectIntl @immutableRenderDecorator export default class CommentHeader extends React.Component { renderAuthor(c) { let a = <span itemProp="n...
app/src/components/styled/GalleryItemCTA.js
quiaro/chunches
import React from 'react' import styled from 'styled-components' const Styled = styled.div` text-align: center; em { display: inline-block; background-color: black; color: white; padding: 0.5rem 1rem; border: 3px solid white; font-style: normal; } ` const GalleryItemMain = ({ className,...
src/components/common/TabbedSection.js
funkBuild/machinist
import React, { Component } from 'react'; import './TabbedSection.css' class TabbedSection extends Component { constructor(props){ super(props); this.state = { open: true }; } toggleHeader(){ this.setState({ open: !this.state.open }); } render() { let headerClass = "tabbedHeader " + (this...
src/announce-slide.js
kenwheeler/nuka-carousel
import React from 'react'; const AnnounceSlide = ({ message }) => { const styles = { position: 'absolute', left: '-10000px', top: 'auto', width: '1px', height: '1px', overflow: 'hidden' }; return ( <div aria-live="polite" aria-atomic="true" style={styles} tabIndex={-1}> {message...
examples/passing-props-to-children/app.js
runlevelsix/react-router
import React from 'react'; import { Router, Route, Link, History } from 'react-router'; var App = React.createClass({ mixins: [ History ], getInitialState() { return { tacos: [ { name: 'duck confit' }, { name: 'carne asada' }, { name: 'shrimp' } ] }; }, addTaco() {...
src/containers/ShowUser/index.js
kokengthecoder/github-user-search
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import { bindActionCreators } from 'redux'; import { fetchUser, fetchRepo } from '../../actions/index'; import UserRepo from '../../components/UserRepo'; import UserInfo from '../../components/UserInfo'...
src/js/components/Spinner/stories/Modal.js
grommet/grommet
import React from 'react'; import { Box, Button, Layer, Spinner, Text } from 'grommet'; export const Modal = () => { const [open, setOpen] = React.useState(); const [isDataLoaded, setIsDataLoaded] = React.useState(false); const onOpen = () => { setOpen(true); setTimeout(() => { setOpen(undefined)...
packages/veritone-react-common/src/components/Truncate/story.js
veritone/veritone-sdk
import React from 'react'; import { storiesOf } from '@storybook/react'; import Truncate from './'; storiesOf('Truncate', module).add('Base', () => { const text = `Lorem ipsum dolor sit amet, consectetur adipiscing elit. In mi lectus, tincidunt at arcu eget, sodales pellentesque urna. Mauris commodo diam nisi, vita...
src/components/Layout/Layout.js
willchertoff/Ben-Kinde
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
src/controls/moneyfield/index.js
thinktopography/reframe
import React from 'react' import PropTypes from 'prop-types' import TextField from '../textfield' class MoneyField extends React.Component { static propTypes = { maxLength: PropTypes.number, disabled: PropTypes.bool, placeholder: PropTypes.string, defaultValue: PropTypes.string, tabIndex: PropTy...
src/renderer/ui/components/modals/OpenPortModal.js
MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL-
import React, { Component } from 'react'; import Dialog from './ThemedDialog'; import FlatButton from 'material-ui/FlatButton'; export default class OpenPortModal extends Component { constructor(...args) { super(...args); this.state = { open: false, }; } componentDidMount() { Emitter.on('...
cheesecakes/plugins/upload/admin/src/containers/App/index.js
strapi/strapi-examples
/** * * 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) * */ import React from 'react'; import { Switch, Route } from 'react-router-dom'; // Utils import { pluginId } from 'app'; // Containers import ConfigPage from '...
chat/chat/Composer.js
wph1129/react-native-chat
import React from 'react'; import { Platform, StyleSheet, TextInput, } from 'react-native'; class Composer extends React.Component { render() { return ( <TextInput placeholder={this.props.placeholder} placeholderTextColor={this.props.placeholderTextColor} multiline={this.props...
src/Components/BusyModal.stories.js
elderfo/elderfo-react-native-components
import React from 'react'; import { Text, View } from 'react-native'; import { storiesOf, action, linkTo, } from '@kadira/react-native-storybook'; import { BusyModal, CenterView, Platform } from '../'; storiesOf('BusyModal', module) .addDecorator(getStory => ( <View style={{ flex: 1, paddingTop: Platform.ios ?...
src/pages/graph/Depthlimited/Depthlimited.js
hyy1115/react-redux-webpack3
import React from 'react' class Depthlimited extends React.Component { render() { return ( <div>Depthlimited</div> ) } } export default Depthlimited
pootle/static/js/editor/app.js
pavels/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 $ from 'jquery'; import _ from 'underscore'; import...
examples/forms-material-ui/src/components/forms-destroy-wizard-generic/Layout.js
lore/lore-forms
import React from 'react'; import createReactClass from 'create-react-class'; import PropTypes from 'prop-types'; import CodeExample from '../_common/CodeExample'; import Hook from './Hook'; import hookCode from '!raw-loader!./Hook'; import { Card } from 'material-ui'; export default lore.connect(function(getState, pr...
src/js/components/gsbpm/phase-item.js
UNECE/Model-Explorer
import React from 'react' import { Link } from 'react-router' /** * Returns the HTML code for a GSBPM phase and its subprocesses. */ export default function GSBPMPhase({id, phaseLabel, entries}) { return( <div className="phase"> {/* <div className="cell title"> <Link to={uriToLink.GSBPMPhaseDetails...
docs/app/Examples/views/Advertisement/Types/AdvertisementExampleBannerHalf.js
aabustamante/Semantic-UI-React
import React from 'react' import { Advertisement } from 'semantic-ui-react' const AdvertisementExampleBannerHalf = () => ( <Advertisement unit='half banner' test='Half Banner' /> ) export default AdvertisementExampleBannerHalf
es/catalog/factories/area-factory.js
dearkaran/react-planner
import createArea from './area-factory-3d'; import React from 'react'; export default function AreaFactory(name, info, textures) { var areaElement = { name: name, prototype: 'areas', info: info, properties: { patternColor: { label: 'Color', type: 'color', defaultValue: ...
src/icons/BluetoothAudioIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class BluetoothAudioIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M28.48 24.02l4.64 4.64c.56-1.45.88-3.02.88-4.66 0-1.63-.31-3.19-.86-4.63l-4.66 4.65zm10.58-10.59l-2...
src/routes/RequestPayment/components/InvoiceDetailsForSpecialist.js
vijayasankar/ML2.0
import Col from 'react-bootstrap/lib/Col' import DateTimePickerField from 'components/DateTimePickerField' import NumberDialField from 'components/NumberDialField' import RadioGroupField from 'components/RadioGroupField' import React from 'react' import Row from 'react-bootstrap/lib/Row' import TextField from 'componen...
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/src/CarouselIndicators.js
GoogleCloudPlatform/prometheus-engine
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { mapToCssModules } from './utils'; const CarouselIndicators = (props) => { const { items, activeIndex, cssModule, onClickHandler, className } = props; const listClasses = mapToCssModules(classNames(classNam...
examples/counter/src/index.js
gaearon/redux
import React from 'react' import ReactDOM from 'react-dom' import { createStore } from 'redux' import Counter from './components/Counter' import counter from './reducers' const store = createStore(counter) const rootEl = document.getElementById('root') const render = () => ReactDOM.render( <Counter value={store...
server/sonar-web/src/main/js/apps/project-admin/key/BulkUpdateForm.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact 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...
src/components/FilterEnhancer.js
GriddleGriddle/Griddle
import React from 'react'; import PropTypes from 'prop-types'; import compose from 'recompose/compose'; import mapProps from 'recompose/mapProps'; import getContext from 'recompose/getContext'; import { combineHandlers } from '../utils/compositionUtils'; const EnhancedFilter = OriginalComponent => compose( getContex...
app/components/bill/LatestBills.js
friend0/react_sensor_app
import React from 'react'; import List from '../common/List'; import CompactBill from './CompactBill'; export default class LatestBills extends React.Component { constructor(props) { super(props); this.state = this.props.context || window.APP_STATE || {items: []}; } render() { ret...
components/AppIcon.js
sdumetz/sam
import React from 'react'; export default class AppIcon extends React.Component{ constructor(props){ super(props) this.state={src:"/img/default_icon.png"} } componentDidMount(){ if(this.props.source){ return this.setState({src:this.props.source}); } var source = "/icon?path="+encodeURICo...
node_modules/react-bootstrap/es/Badge.js
skinsshark/skinsshark.github.io
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 ...
app/javascript/mastodon/components/domain.js
rutan/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import IconButton from './icon_button'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; const messages = defineMessages({ unblockDomain: { id: 'account.unblock_domain', default...
admin/client/Signin/components/Brand.js
snowkeeper/keystone
/** * Renders a logo, defaulting to the Keystone logo if no brand is specified in * the configuration */ import React from 'react'; const Brand = function (props) { // Default to the KeystoneJS logo let logo = { src: `${Keystone.adminPath}/images/logo.png`, width: 205, height: 68 }; if (props.logo) { // If th...
packages/components/src/DateTimePickers/views/DateView/DateView.component.js
Talend/ui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { Action } from '../../../Actions'; import DatePicker from '../../pickers/DatePicker'; import ViewLayout from '../ViewLayout'; import HeaderTitle from '../HeaderTitle'; import theme from './DateView.scss'; import ...
src/svg-icons/av/library-books.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvLibraryBooks = (props) => ( <SvgIcon {...props}> <path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9H9V9h10v2zm-4 4H9v-2h6v2zm4-8H9V5h1...
examples/async/index.js
itrelease/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} </Provider>, document.getElementByI...
react-native/Manager/src/components/common/Input.js
vanyaland/react-demos
import React from 'react'; import { TextInput, View, Text } from 'react-native'; const Input = ({ label, value, onChangeText, placeholder, secureTextEntry }) => { const { inputStyle, labelStyle, containerStyle} = styles; return ( <View style={containerStyle}> <Text style={labelStyle}>{labe...
src/components/Feedback/Feedback.js
patrickkillalea/React1
/** * 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, { Component } from 'react'; import s from '....
dva/src/routes/IndexPage.js
alcat2008/web-demo
import React from 'react'; import { connect } from 'dva'; import styles from './IndexPage.css'; import MainLayout from '../components/MainLayout/MainLayout'; function IndexPage({ location }) { return ( <MainLayout location={location}> <div className={styles.normal}> <h1 className={styles.title}>Yay...
src/admin/src/components/controls/forms/form_datetime.js
jgretz/zen-express
import React from 'react'; import { DateTimeInput } from '../inputs'; export const formDateTime = (field) => <DateTimeInput key={field.name} name={field.name} label={field.name} />;
App.js
jaminzzhang/MZMovie
import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import { Root } from './app/config/Router' export default class App extends React.Component { render() { return ( <Root /> ); } } const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#ff...
modules/IndexLink.js
Nedomas/react-router
import React from 'react' import Link from './Link' const IndexLink = React.createClass({ render() { return <Link {...this.props} onlyActiveOnIndex={true} /> } }) export default IndexLink
src/native/components/Messages.js
TeodorKolev/Help
import React from 'react'; import PropTypes from 'prop-types'; import { View } from 'react-native'; import { Text } from 'native-base'; import Colors from '../../../native-base-theme/variables/commonColor'; const Messages = ({ message, type }) => ( <View style={{ backgroundColor: (type === 'error') ? Colors.b...
app/containers/HomePage/index.js
sairamchappidi/project-x
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
frontend/src/Album/Details/TrackRow.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import EpisodeStatusConnector from 'Album/EpisodeStatusConnector'; import TableRowCell from 'Components/Table/Cells/TableRowCell'; import TableRow from 'Components/Table/TableRow'; import MediaInfoConnector from 'TrackFile/MediaInfoConnector'...
src/components/Feedback/Feedback.js
sallen450/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback extends Component { render() { return ( <div className="Feedback...
src/components/NotFoundPage.js
harrislabel/personal_website
"use strict"; import React from 'react'; import { Link } from 'react-router'; export default class NotFoundPage extends React.Component { render() { return ( <div className="not-found"> <h1>404</h1> <h2>Page not found!</h2> <p> <Link to="/">Go back to the main page</Link>...
src/js/NavBarMenu.js
mtford90/brio
import React from 'react'; import location from './location'; export default class NavBarMenu extends React.Component { constructor(props) { super(props); this.state = { pageNames: [] }; } onClick(e) { window.location.hash = $(e.target).attr('data-path'); } render() { return ( ...
packages/bonde-admin/src/mobilizations/components/list/index.js
ourcities/rebu-client
import PropTypes from 'prop-types' import React from 'react' const List = ({ children }) => ( <div className='list gray20 content-box'> {children} </div> ) List.propTypes = { children: PropTypes.oneOfType([ PropTypes.object, PropTypes.array ]).isRequired } export default List
docs/containers/reveal/index.js
valzav/react-foundation-components
import React, { Component } from 'react'; import { Reveal } from '../../../src/reveal'; import { Button } from '../../../src/button'; import { CloseButton } from '../../../src/close-button'; export default class RevealPage extends Component { state = { showBasic: false, showTiny: false, showSmall: false...
test/test_helper.js
ercekal/client-side-auth-react
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/javascript/mastodon/features/direct_timeline/index.js
yi0713/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import { mountConversations, unmountConversations, expandConversations } from '../../actions/conversations'; impo...
src/js/components/NameValueList/stories/Align.js
grommet/grommet
import React from 'react'; import { Box, NameValueList, NameValuePair, Text } from 'grommet'; import { data } from './data'; export const Align = () => ( // Uncomment <Grommet> lines when using outside of storybook // <Grommet theme={...}> <Box pad="small"> <> <Text weight="bold" size="3xl"> Al...
actor-apps/app-web/src/app/components/modals/Preferences.react.js
HKMOpen/actor-platform
import React from 'react'; import Modal from 'react-modal'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, FlatButton, RadioButtonGroup, RadioButton, DropDownMenu } from 'material-ui'; import { KeyCodes } from 'constants/ActorAppConstants'; import Actor...
src/Faces.js
nickooms/racing-webgl2
import React, { Component } from 'react'; class Faces extends Component { render() { const { faces } = this.props; return ( <ul> { faces && faces.map((number, index) => ( <li key={index}> {number} </li> )) } <...
docs/src/app/components/pages/components/Card/ExampleExpandable.js
mmrtnz/material-ui
import React from 'react'; import {Card, CardActions, CardHeader, CardText} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; const CardExampleExpandable = () => ( <Card> <CardHeader title="Without Avatar" subtitle="Subtitle" actAsExpander={true} showExpandableButt...
src/js/components/elements/Header.js
pankajpatel/playlists
import React from 'react'; import { Link } from 'react-router'; import config from 'root/config.ui' export default class Header extends React.Component { constructor(props) { super(props); } render(){ return ( <header className="header"> <div className="container gutter app-name"> ...
src/pages/index.js
matchilling/com-matchilling
import Helmet from 'react-helmet' import React from 'react' import profilePicture from '../components/biography/profile.jpg' export default class Index extends React.Component { render() { const title = `Mathias Schilling - Just another paper cut survivor and software engineer` const description = `I create...
app/components/queue/aclRows.js
imankit/dashboard-ui
import React from 'react' import ReactDOM from 'react-dom' import Checkbox from 'material-ui/Checkbox' import AutoComplete from 'material-ui/AutoComplete' class ACLRows extends React.Component { constructor(){ super() this.state = { users:[], roles:[] } } componentWillMount(){ let userQuery = new CB....
examples/Welcome.js
survivejs/react-component-boilerplate
import React from 'react'; import { PropTypes } from 'prop-types'; class Welcome extends React.Component { render() { return ( <div>{this.props.text}</div> ); } } Welcome.propTypes = { text: PropTypes.string.isRequired }; export default Welcome;
src/svg-icons/editor/short-text.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorShortText = (props) => ( <SvgIcon {...props}> <path d="M4 9h16v2H4zm0 4h10v2H4z"/> </SvgIcon> ); EditorShortText = pure(EditorShortText); EditorShortText.displayName = 'EditorShortText'; EditorShortText...
docs/src/app/components/pages/components/DropDownMenu/ExampleOpenImmediate.js
mtsandeep/material-ui
import React from 'react'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem'; export default class DropDownMenuOpenImmediateExample extends React.Component { constructor(props) { super(props); this.state = {value: 2}; } handleChange = (event, index, value)...
app/containers/Settings.js
sedooe/cevirgec
// @flow import React, { Component } from 'react'; import DocumentTitle from 'react-document-title'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { Grid, Menu, Segment } from 'semantic-ui-react'; import tr from '../utils/Translation'; import * as SettingsActions from '../ac...
src/pages/videos/fpv/index.js
jumpalottahigh/blog.georgi-yanev.com
import React from 'react' import { graphql, useStaticQuery } from 'gatsby' import styled from 'styled-components' import { Fade } from 'react-reveal' import Layout from '../../../components/structure/layout' import Video from '../../../components/Video/Video' const Grid = styled.div` display: grid; grid-gap: 30px...
actor-apps/app-web/src/app/components/common/MessageItem.react.js
ONode/actor-platform
import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import memoize from 'memoizee'; import classNames from 'classnames'; import emojify from 'emojify.js'; import hljs from 'highlight.js'; import marked from 'marked'; import emojiCharacters from 'emoji-named-characters'; ...
src/routes/Counter/components/Counter.js
duongthien291291/react-redux-starter-kit-munchery-theme
import React from 'react' export const Counter = (props) => ( <div style={{ margin: '0 auto' }} > <h2>Counter: {props.counter}</h2> <button className='btn btn-default' onClick={props.increment}> Increment </button> {' '} <button className='btn btn-default' onClick={props.doubleAsync}> ...
examples/js/selection/custom-multi-select-table.js
echaouchna/react-bootstrap-tab
/* eslint max-len: 0 */ import React from 'react'; import ReactDOM from 'react-dom'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; require('../../customMultiSelect.css'); const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantit...
src/js/components/list/app-list-item.js
TheFixers/node-honeypot-client
/** * Filename: 'app-list-item.js' * Author: JMW <rabbitfighter@cryptolab.net> * App list item component */ import React from 'react' import AppActions from '../../actions/app-actions' import AppListItemRow from './app-list-item-row' import { Link } from 'react-router' const AppListItem = ( props ) => { if ( ...
docs/app/Examples/collections/Table/Types/index.js
aabustamante/Semantic-UI-React
import React from 'react' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' const Types = () => { return ( <ExampleSection title='Types'> <ComponentExample title='Types' description=...
src/components/dashboard.js
ateixeira/andreteixeira.info
import React from 'react'; module.exports = React.createClass({ // RENDER render: function() { return ( <div className="dashboard"> dashboard </div> ); } });
examples/counter/index.js
dalinaum/redux
import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} </Provider>, document.getElementById('root') );
actor-apps/app-web/src/app/components/modals/AppCacheUpdate.react.js
Jaeandroid/actor-platform
import React from 'react'; import Modal from 'react-modal'; //import pureRender from 'pure-render-decorator'; import { Styles, FlatButton } from 'material-ui'; import AppCacheStore from 'stores/AppCacheStore'; import AppCacheActionCreators from 'actions/AppCacheActionCreators'; import { KeyCodes } from 'constants/Act...
server/sonar-web/src/main/js/apps/projects/components/FavoriteFilter.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/components/living.js
wantplus/pili-web
import React, { Component } from 'react'; import { render } from 'react-dom'; class Living extends Component { render() { return ( <div className="living-box"> <div className="living-part1"> <div className="living-part1-left"> <div cla...
src/season/seasonTable.js
mistyjae/rc-calendar-extend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { getTodayTime, getMonthName } from 'rc-calendar/lib/util/index'; const ROW = 4; const COL = 1; function chooseQuarter(quarter) { const next = this.state.value.clone(); next.month(quarter)...
client/src/components/PublicationStatus/PublicationStatus.js
rsalmaso/wagtail
import PropTypes from 'prop-types'; import React from 'react'; /** * Displays the publication status of a page in a pill. */ const PublicationStatus = ({ status }) => ( <span className={`o-pill c-status${status.live ? ' c-status--live' : ''}`}> {status.status} </span> ); PublicationStatus.propTypes = { st...
app/components/subscription.js
bdunams/neo-veg
// Import React import React, { Component } from 'react'; import axios from 'axios'; // Helper Functions import Helpers from './utils/helpers.js'; // This is the Main component. export default class Subscription extends Component{ constructor(props){ super(props) this.state = {user: ''} } // Re...
src/svg-icons/notification/airline-seat-recline-extra.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatReclineExtra = (props) => ( <SvgIcon {...props}> <path d="M5.35 5.64c-.9-.64-1.12-1.88-.49-2.79.63-.9 1.88-1.12 2.79-.49.9.64 1.12 1.88.49 2.79-.64.9-1.88 1.12-2.79.49zM16 19H8.93c-1.48 0...
pages/about.js
Kudrik/ReactTest
import React, { Component } from 'react'; import AffiliateScheme from '../components/AffiliateScheme'; import Terms from '../components/Terms'; import Link from '../components/Link'; export default class extends Component { render() { return ( <div> <AffiliateScheme /> <p style={{font:'25px...
fields/types/embedly/EmbedlyField.js
vokal/keystone
import React from 'react'; import Field from '../Field'; import { FormField, FormInput } from '../../../admin/client/App/elemental'; import ImageThumbnail from '../../components/ImageThumbnail'; import NestedFormField from '../../components/NestedFormField'; module.exports = Field.create({ displayName: 'EmbedlyField...
src/svg-icons/action/trending-flat.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTrendingFlat = (props) => ( <SvgIcon {...props}> <path d="M22 12l-4-4v3H3v2h15v3z"/> </SvgIcon> ); ActionTrendingFlat = pure(ActionTrendingFlat); ActionTrendingFlat.displayName = 'ActionTrendingFlat'; ...
src/fields/HtmlField.js
de44/kb-ui
import React from 'react'; import PropTypes from 'prop-types'; import ValueField from './ValueField'; const HtmlField = ({ value, options }) => { return ( <ValueField valueType="html" options={options}> <span className="html-value" dangerouslySetInnerHTML={{ __html: value }} /> </ValueField> ); }; ...
client/modules/pages/components/.stories/about.js
StorytellerCZ/Socialize-starter
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { setComposerStub } from 'react-komposer'; import About from '../about.jsx'; storiesOf('pages.About', module) .add('default view', () => { return ( <About /> ); })
assets/javascripts/kitten/karl/pages/news-list/news-list.stories.js
KissKissBankBank/kitten
import React from 'react' import NewsList from './index' export const Default = () => <NewsList /> export default { title: 'pages/Actus', component: NewsList, }
react-components/src/library/components/bookmarks/edit.js
concord-consortium/rigse
import React from 'react' import { arrayMove } from 'react-sortable-hoc' import SortableBookmarks from './sortable-bookmarks' import shouldCancelSorting from '../../helpers/should-cancel-sorting' import css from './style.scss' export class EditBookmarks extends React.Component { constructor (props) { super(pro...
templates/full/javascript/src/client/app/view/NameLoaderView.js
peterjuras/slush-react-express
import React from 'react'; // View that displays a button to call the server const NameLoaderView = props => ( <div> <h1>{props.staticName}</h1> <p>Hello {props.staticName}</p> <input type="button" value="Get app name" onClick={props.handleClick} /> <p>{props.appName}</p> </div> ); export default ...
src/icons/GetAppIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class GetAppIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M38 18h-8V6H18v12h-8l14 14 14-14zM10 36v4h28v-4H10z"/></svg>;} };
src/ChallengeMeta13/index.js
christianalfoni/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import Icon from '../Icon'; import Wrapper from '../Wrapper'; import Spacer from '../Spacer'; import Typography from '../Typography'; import Label from '../ChallengeCardLabel1'; import styles from './styles.css'; import classNames from 'classnames'; functi...