path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/ResultCard/ResultCard.js
dotNomad/ignota-dice-roller
import React from 'react'; import './ResultCard.css'; export function ResultCard(props) { return ( <div className="result-card"> <div className="result-card-content"> <h3 className="result-card-title">{props.result}</h3> <div className="result-card-detail"> <p className="result-c...
resources/apps/frontend/src/components/Table/TableActions.js
johndavedecano/PHPLaravelGymManagementSystem
import React from 'react'; import {Link} from 'react-router-dom'; import {Dropdown, DropdownToggle, DropdownMenu, DropdownItem} from 'reactstrap'; export default class TableActions extends React.Component { static defaultProps = { items: [], buttonLabel: 'Actions', }; constructor(props) { super(prop...
src/components/App.js
kinshuk-jain/TB-Dfront
import React from 'react'; import PropTypes from 'prop-types'; import { Provider as ReduxProvider } from 'react-redux'; const ContextType = { // Enables critical path CSS rendering insertCss: PropTypes.func.isRequired, // Universal HTTP client fetch: PropTypes.func.isRequired, // Integrate Redux ...ReduxPr...
src/components/panel-traces.js
maxmalynowsky/map-talc
import React, { Component } from 'react'; import Radium from 'radium'; import ScrollArea from 'react-scrollbar'; import store from '../store.js'; import styles from '../styles.js'; import types from '../constants/action-types.js'; import PanelTracesItem from './panel-traces-item.js'; @Radium export default class Panel...
src/components/Charts/ChartCard/index.js
wu-sheng/sky-walking-ui
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
public/js/search.js
jasminZ/sequenceserver
import _ from 'underscore'; import React from 'react'; /** * Load necessary polyfills. */ $.webshims.polyfill('forms'); /** Drag n drop widget. */ var DnD = React.createClass({ getInitialState: function () { return { query: null } }, render: function () { return (...
modules/Link.js
skevy/react-router
import React from 'react' import warning from 'warning' const { bool, object, string, func } = React.PropTypes function isLeftClickEvent(event) { return event.button === 0 } function isModifiedEvent(event) { return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey) } function isEmptyObject(obj...
client/src/components/taps/tap-list.js
commoncode/ontap
import React from 'react'; import reactPropTypes from 'prop-types'; import { Container } from 'flux/utils'; import { fetchTaps } from '../../actions/taps'; import tapsStore from '../../stores/taps'; import * as propTypes from '../../proptypes'; import Loader from '../loader'; import Tap from './tap'; const TapList =...
src/main/resources/js/components/BusinessValue.js
fnerdrum/hendelse-datomic
import React from 'react'; class BusinessValue extends React.Component { constructor(props) { super(props); } render() { let rate = this.props.value; let style = { "fontSize": ""+Math.min(Math.round(rate + 10), 30)+"px", "color": rate >= 30 ? 'red' : 'black'...
src/components/contact.js
Vincentgr/react-contacts
'use strict'; import React, { Component } from 'react'; import Octicon from 'react-octicon'; export default function Contact (props) { var c = props.data; if(c.editing) { return ( <tr> <td className="data"><input type="text" className="editmode" value={c.firstname} onChange={function() {props.onChangeC...
src/svg-icons/content/content-copy.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentContentCopy = (props) => ( <SvgIcon {...props}> <path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/> </SvgIcon> );...
src/Components/Form/formItem.js
gabriel-lopez-lopez/gll-billin-code-challenge
/** * Componente encapsular de elementos de un formulario para gestionar * facilmente los errores de validación de estos * */ import React, { Component } from 'react'; import { PropTypes } from 'prop-types'; class FormItem extends Component { constructor(props) { super(props); } render () {...
src/Accordion.js
coderstudy/react-bootstrap
import React from 'react'; import PanelGroup from './PanelGroup'; const Accordion = React.createClass({ render() { return ( <PanelGroup {...this.props} accordion> {this.props.children} </PanelGroup> ); } }); export default Accordion;
src/layouts/CoreLayout/CoreLayout.js
CoderNie/Equipment-Book-Web-App
import React from 'react' import PropTypes from 'prop-types' import message from 'antd/lib/message' import './CoreLayout.scss' import '../../styles/core.scss' import injectTapEventPlugin from 'react-tap-event-plugin' import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider' import 'antd/lib/button/style/css' i...
fields/types/boolean/BooleanField.js
tony2cssc/keystone
import React from 'react'; import Field from '../Field'; import Checkbox from '../../components/Checkbox'; import { FormField, FormNote } from 'elemental'; module.exports = Field.create({ displayName: 'BooleanField', propTypes: { indent: React.PropTypes.bool, label: React.PropTypes.string, note: React.PropTy...
src/components/CampViewItem/VideoView/index.js
JamesJin038801/CampID
import React, { Component } from 'react'; import I18n from 'react-native-i18n'; import { connect } from 'react-redux'; import { View, Text, TouchableOpacity, Image, ScrollView, Alert } from 'react-native'; import { Styles, Metrics, Images, Colors, Fonts } from '@theme/'; import styles from './styles'; import CommonWid...
app/javascript/packs/components/midi-warning.js
eric-wood/minilogue-patches
import React from 'react'; import withMidi, { propTypes as midiPropTypes } from './with-midi'; const MidiWarning = (props) => { const show = props.midi.status !== 'available'; if (show) { return ( <div className="warning"> Your browser doesnt seem to support web MIDI...thats a goddamn shame ...
examples/hotCold/src/Counter.js
gaearon/react-hot-loader
import React from 'react'; import { cold } from 'react-hot-loader'; class Counter extends React.Component { state = { count: 0 }; componentDidMount() { this.interval = setInterval(() => this.setState(prevState => ({ count: prevState.count + 1 })), 200); } componentWillUnmount() { clearInterval(this.i...
examples/request/app.js
sheaivey/react-axios
import { Request, Get, Post, Put, Delete, Head, Patch } from 'react-axios' import React from 'react' import ReactDOM from 'react-dom' class App extends React.Component { constructor(props) { super(props) this.state = {} } renderResponse(error, response, isLoading) { if(error) { return (<div>So...
fields/types/password/PasswordField.js
nickhsine/keystone
import React from 'react'; import Field from '../Field'; import { Button, FormInput, InputGroup } from 'elemental'; module.exports = Field.create({ displayName: 'PasswordField', getInitialState () { return { passwordIsSet: this.props.value ? true : false, showChangeUI: this.props.mode === 'create' ? true :...
src/svg-icons/action/settings-power.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsPower = (props) => ( <SvgIcon {...props}> <path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm2-22h-2v10h2V2zm3.56 2.44l-1.45 1.45C16.84 6.94 18 8.83 18 11c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-2.17 1.16-4.06 2.88-...
src/components/Chart.js
JoshuaCoquelle/redux-weather-app
import _ from 'lodash'; import React from 'react'; import { Sparklines, SparklinesLine, SparklinesReferenceLine } from 'react-sparklines'; /** * Finds the average temperature for the current city. * * @param {array} data */ const average = (data) => { return _.round( _.sum(data) / data.length ); ...
src/bundles/Collaborate/components/ProjectForm/ProjectForm.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react'; import PropTypes from 'prop-types' import {connect} from 'react-redux'; import {Form, Control} from 'react-redux-form'; import DocumentTitle from 'react-document-title' import {required, validEmail} from '../../../../validators'; import Layout from '../../../../shared/Layout'; import...
app/javascript/mastodon/containers/status_container.js
ikuradon/mastodon
import React from 'react'; import { connect } from 'react-redux'; import Status from '../components/status'; import { makeGetStatus, makeGetPictureInPicture } from '../selectors'; import { replyCompose, quoteCompose, mentionCompose, directCompose, } from '../actions/compose'; import { reblog, favourite, b...
components/racerDetails.js
marincelo/xczld-app
import { loadResource } from '../fetchHelper'; import React from 'react'; import { View, FlatList } from 'react-native'; import { List, ListItem, Text } from 'react-native-elements'; export default class RacerDetails extends React.Component { state = { racer: {} }; componentDidMount() { this.loadRacer()...
src/internal/ClickListener.js
jzhang300/carbon-components-react
import PropTypes from 'prop-types'; import React from 'react'; /** * Generic component used for reacting to a click event happening outside of a * given `children` element. */ export default class ClickListener extends React.Component { static propTypes = { children: PropTypes.element.isRequired, onClickO...
src/addons/TextArea/TextArea.js
ben174/Semantic-UI-React
import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' /** * A simple <textarea> wrapper for use in Form.TextArea. * We may add more features to the TextArea in the future. * @see Form */ function TextArea(props) { const rest = getUnhandledProps(Te...
form/PeriodField.js
ExtPoint/yii2-frontend
import React from 'react'; import PropTypes from 'prop-types'; import _get from 'lodash-es/get'; import {locale, view} from 'components'; export default class PeriodField extends React.Component { static propTypes = { metaItem: PropTypes.object.isRequired, attributesMap: PropTypes.object, }; ...
server/sonar-web/src/main/js/apps/web-api/routes.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/svg-icons/notification/do-not-disturb-on.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationDoNotDisturbOn = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z"/> </SvgIcon> ); NotificationDoNotDisturbOn = pure(No...
client/src/components/Content/index.js
mick842/react-node-auth
import React, { Component } from 'react'; import { Content as ContentApi } from '../../services'; class Content extends Component { constructor(props) { super(props); this.state = { content: null, loaded: false } } async componentDidMount() { const response = await ContentApi.getCon...
app/javascript/mastodon/components/status_content.js
mhffdq/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { isRtl } from '../rtl'; import { FormattedMessage } from 'react-intl'; import Permalink from './permalink'; import classnames from 'classnames'; export default class StatusContent extends ...
src/containers/NotFound/NotFound.js
lordakshaya/pages
import React from 'react'; export default function NotFound() { return ( <div className="container"> <h1>Doh! 404!</h1> <p>These are <em>not</em> the droids you are looking for!</p> </div> ); }
client/src/components/pages/SmsInfo/index.js
Nonsoft/crdweb
import React, { Component } from 'react'; import { Row, Col, Form } from 'antd'; import QueryBar from '../../QueryBar'; import { FormButton, FormDate, FormInput, InstInfoSelect, KeywordSelect } from '../../FormWiget'; class SmsInfo extends Component { select = () => { let startTime, endTime, instNum, instName, ...
client/src/core-components/search-box.js
opensupports/opensupports
import React from 'react'; import classNames from 'classnames'; import Input from 'core-components/input'; import Icon from 'core-components/icon'; import keyCode from 'keycode'; class SearchBox extends React.Component { static searchQueryInList(list, query, startsWith, includes) { let match = []; ...
src/injectRender.js
xiaobuu/console-board
import React from 'react'; /* Helper function to only inject LogList when debugging */ export default function injectRender(props) { if (process.env.NODE_ENV !== 'production') { const component = require('./LogList').default; return React.createElement(component, props); } }
reduxg/app/main.js
ekepes/reactplay
import React from 'react'; import ReactDOM from 'react-dom'; import GuessBox from './app'; ReactDOM.render( <GuessBox />, document.querySelector('#app'));
js/components/App.react.js
ryantang333/dashboard-prototype
/** * * 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) */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import Sidebar from './Sidebar/Sidebar.react' import Navbar f...
src/components/Forecast.js
devoidofgenius/react-weather
import React from 'react'; import { convertIconID, whatDayIsIt, convertToCelcius } from '../helpers'; import '../css/Forecast.css'; class Forecast extends React.Component { render() { return ( <div className="day-wrap"> <div className="day"> <p>{whatDayIsIt((new Date().getDay() + (this.pr...
src/svg-icons/image/switch-video.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageSwitchVideo = (props) => ( <SvgIcon {...props}> <path d="M18 9.5V6c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-3.5l4 4v-13l-4 4zm-5 6V13H7v2.5L3.5 12 7 8.5V11h6V8.5l3.5 3.5-3.5...
src/CalendarContext.js
TeaBough/react-big-calendar
import React from 'react' export default React.createContext()
js/src/components/Controls/History/index.js
understory-dev/react-draft-wysiwyg
/* @flow */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { EditorState } from 'draft-js'; import LayoutComponent from './Component'; export default class History extends Component { static propTypes = { onChange: PropTypes.func.isRequired, editorState: PropTypes.obj...
app/javascript/mastodon/features/mutes/index.js
ambition-vietnam/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { ScrollContainer } from 'react-router-scroll-4'; import Column from '../ui/componen...
src/components/PlayBar.js
remynaps/colb-ui
import React, { Component } from 'react'; import './PlayBar.css'; import axios from 'axios'; import FontAwesome from 'react-fontawesome'; class PlayBar extends React.Component { constructor(props) { super(props); this.state = { playSound: false, }; this.audio = [] this.play = this.play.bi...
ajax/libs/recompose/0.20.2/Recompose.js
hare1039/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["Recompose"] = facto...
src/screens/MyPage/MyCollection/MyPrivateBookmarkNovels.js
alphasp/pxview
import React, { Component } from 'react'; import { connect } from 'react-redux'; import NovelList from '../../../components/NovelList'; import * as myPrivateBookmarkNovelsActionCreators from '../../../common/actions/myPrivateBookmarkNovels'; import { getMyPrivateBookmarkNovelsItems } from '../../../common/selectors'; ...
lib/shared/screens/admin/screens/pages/menu.js
relax/relax
import * as adminMenuActions from 'actions/admin-menu'; import bind from 'decorators/bind'; import getLazyFilters from 'helpers/get-lazy-load-filters'; import Component from 'components/component'; import React from 'react'; import PropTypes from 'prop-types'; import {bindActionCreators} from 'redux'; import {dataConn...
src/startAppSimple/startApp.js
low-ghost/react-rx-elm-architecture
import React, { Component } from 'react'; import Rx from 'rx'; import mixin from 'react-mixin'; import { StateStreamMixin } from 'rx-react'; export function dispatch(address$, type) { return () => address$.onNext({ type }); } export function forwardTo(address, type, args){ let forward = new Rx.Subject(); forwar...
react-router-tutorial/modules/About.js
Zyst/learning-react
import React from 'react'; export default React.createClass({ render() { return <div>About</div> } });
src/svg-icons/places/rv-hookup.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesRvHookup = (props) => ( <SvgIcon {...props}> <path d="M20 17v-6c0-1.1-.9-2-2-2H7V7l-3 3 3 3v-2h4v3H4v3c0 1.1.9 2 2 2h2c0 1.66 1.34 3 3 3s3-1.34 3-3h8v-2h-2zm-9 3c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1...
packages/hekla-viewer/src/index.js
andrewjensen/hekla
import React from 'react'; import ReactDOM from 'react-dom'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; // TODO: replace with official React version once released import injectTapEventPlugin from 'react-tap-event-plugin'; import App from './App'; import './index.css'; injectTapEventPlugin();...
app/javascript/mastodon/features/compose/components/privacy_dropdown.js
dwango/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, defineMessages } from 'react-intl'; import IconButton from '../../../components/icon_button'; import Overlay from 'react-overlays/lib/Overlay'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spr...
LabReports/Urazov PI-42/src/src/components/Iterator/ColorBlocks.js
SergeyStaroletov/Patterns17
import React from 'react'; import PropTypes from 'prop-types'; import ColorBlock from "../ColorBlock"; import TransparentBlock from "../TransparentBlock"; import ISceneComponent from "../Composite/ISceneComponent"; export default class ColorBlocks extends ISceneComponent { constructor(props) { supe...
app/react-native/src/manager/provider.js
nfl/react-storybook
import React from 'react'; import { Provider } from '@storybook/ui'; import createChannel from '@storybook/channel-websocket'; import addons from '@storybook/addons'; import uuid from 'uuid'; import PreviewHelp from './components/PreviewHelp'; export default class ReactProvider extends Provider { constructor({ url: ...
src/svg-icons/device/airplanemode-active.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceAirplanemodeActive = (props) => ( <SvgIcon {...props}> <path d="M10.18 9"/><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/...
frontend/src/components/editor/attachments/upload-button.js
1905410/Misago
// jshint ignore:start import React from 'react'; import misago from 'misago'; export default class extends React.Component { onClick = () => { document.getElementById('editor-upload-field').click(); }; render() { if (!misago.get('user').acl.max_attachment_size) { return null; } return ( ...
src/components/auth/Register.js
Cretezy/react-redux-router-firebase
import React from 'react'; import * as firebase from 'firebase'; import { connect } from 'react-redux'; class Register extends React.Component { state = { email: '', password: '', error: null }; handleSubmit(event) { event.preventDefault(); firebase.auth().createUserWithEmailAndPassword(this.state.email...
modules/RouteContext.js
levjj/react-router
import React from 'react' const { object } = React.PropTypes /** * The RouteContext mixin provides a convenient way for route * components to set the route in context. This is needed for * routes that render elements that want to use the Lifecycle * mixin to prevent transitions. */ const RouteContext = { prop...
example/examples/AnimatedPriceMarker.js
wannyk/react-native-maps
import React from 'react'; import PropTypes from 'prop-types'; import { StyleSheet, Text, Animated } from 'react-native'; class AnimatedPriceMarker extends React.Component { render() { const { amount, selected, style } = this.props; const background = selected.interpolate({ inputRange: [0, 1], ...
docs/src/app/components/pages/components/Tabs/ExampleSwipeable.js
matthewoates/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: { ...
client/routes/announcements/Announcements.js
ansgmlen/ai-mirror
import React from 'react'; import ReactDOM from 'react-dom'; var CONFIG = JSON.parse(localStorage.getItem('CONFIG')); var moment = require("moment"); var AnnouncementsService = require("../announcements/AnnouncementsService"); module.exports = React.createClass({ displayName: 'VIEW_announcement', getInitialState: fu...
src/icons/SocialOctocat.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class SocialOctocat extends React.Component { render() { if(this.props.bare) { return <g> <g> <path fill="#231F20" d="M178.354,287.478c-9.123,0-16.928,4.207-23.201,12.833c-6.291,8.478-9.398,18.973-9.398,31.431 c...
src/app/views/SouthOf45/Stationary.js
nhardy/web-scaffold
import React, { Component } from 'react'; import { connect } from 'react-redux'; import GeoMap from 'app/components/GeoMap'; import styles from './styles.styl'; type Props = { index: number, dunedinGeoJson: {}, }; @connect(state => ({ dunedinGeoJson: state.govhack.dunedinGeoJson.data, })) export default class...
spec/index.js
react-fabric/react-fabric
import React from 'react' import ReactDOM from 'react-dom' import Root from './root' ReactDOM.render(<Root />, document.getElementById('app'))
ui/src/js/common/components/MultiLineErrorObject.js
Dica-Developer/weplantaforest
import counterpart from 'counterpart'; import React, { Component } from 'react'; export default class MultiLineErrorObject extends Component { render() { return ( <div> {this.props.lines.map(function(line, i) { return <div key={i}>{counterpart.translate(line.errorCode)}</div>; })}...
src/instructions/steps/Step4.react.js
codeforamerica/citybook
import React, { Component } from 'react'; import Row from 'react-bootstrap/lib/Row'; import Col from 'react-bootstrap/lib/Col'; import Button from 'react-bootstrap/lib/Button'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import FormControl from 'react-bootstrap/lib/FormControl'; import ControlLabel from 're...
client/main.js
colemannerd/Roll-Advantage
import React from 'react'; import { Meteor } from 'meteor/meteor'; import { render } from 'react-dom'; import { renderRoutes } from '../imports/startup/client/routes.js'; import injectTapEventPlugin from 'react-tap-event-plugin'; // import { App } from '../imports/ui/App.jsx'; // import Home from '../imports/ui/pages...
stories/Layout.js
intljusticemission/react-big-calendar
import React from 'react' import { storiesOf } from '@storybook/react' import moment from 'moment' import { events, Calendar, Views, DragAndDropCalendar } from './helpers' import createEvents from './helpers/createEvents' storiesOf('Layout Issues', module) .add('event layout', () => { return ( <Calendar ...
src/components/inspector/Inspector.js
jung-digital/ringa-example-react
import React from 'react'; import {depend, dependency} from 'react-ringa'; import AppModel from '../../global/AppModel'; import {InspectorModel} from 'ringa'; import classnames from 'classnames'; import './Inspector.scss'; let d = (v) => { return isNaN(v) ? '' : v; }; export default class Inspector extends React.C...
src/containers/FriendListApp.js
gordon2012/friendlist
import React, { Component } from 'react'; export default class FriendListApp extends Component { render() { return ( <h1>Hello, world!!!</h1> ); } }
app/javascript/mastodon/features/hashtag_timeline/index.js
Toootim/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import { refreshHashtagTimeline, ex...
pages/blog/test-article-two.js
jayzehngebot/dod3
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; export default class extends Component { render() { return ( <div> <h1>Test Article 2</h1> <p>Co...
src-example/components/atoms/LogoImage/index.js
SIB-Colombia/biodiversity_catalogue_v2_frontend
import React from 'react' import logo from './logo.svg' const LogoImage = props => <img alt="Logo" {...props} src={logo} /> export default LogoImage
examples/flux-utils-todomvc/js/app.js
YakovAvramenko/flux
/** * Copyright (c) 2014, 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. * * @flow */ 'use s...
react-apollo/src/components/SideBarFilterItem.js
TMaszko/react-apollo
import React from 'react' import OptionCheckBoxes from './OptionCheckBoxes' const handleSingleOption = (checkedOptions, currentValueClicked) => optionName => optionName === currentValueClicked ? {checked: !checkedOptions[optionName].checked} : {checked: false} const handl...
frontend/src/components/Home/ArtistSearch.js
VitaC123/youTubeMixTape
import React, { Component } from 'react'; import { push } from 'react-router-redux'; import store from '../../redux/store'; import { Input, InputGroup, InputGroupButton, Button } from 'reactstrap'; class ArtistSearch extends Component { constructor(props) { super(props); this.handleClick = this.handleClick....
examples/shopping-cart/src/main.js
chrisclarke1977/nuclear-js
'use strict'; import React from 'react' import App from './components/App' import reactor from './reactor' import actions from './actions' import CartStore from './stores/CartStore' import ProductStore from './stores/ProductStore' reactor.registerStores({ cart: CartStore, products: ProductStore, }) actions.fetc...
src/components/select-input.js
tylerlee/former
import _ from 'underscore'; import Cursors from 'cursors'; import Element from 'components/element'; import React from 'react'; import ValueBind from 'mixins/value-bind'; export default React.createClass({ mixins: [Cursors, ValueBind], renderOption: function (label, value) { return <option key={value} value={...
stories/components/form/formSelect/index.js
NestorSegura/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import FormSelect from 'shared/components/form/formSelect/formSelect'; storiesOf('shared/components/form/formSelect', module) .add( 'Default', () => ( <FormSelect prompt="Se...
node_modules/react-router/es6/IndexLink.js
danshapiro-optimizely/bandwidth
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 from 'react'; import Link from './Link'; /** *...
app/util/init_app.js
laynemcnish/walksafely-react
import React from 'react'; import $ from 'jquery'; export default function initApp (rootElement, mountPointId) { if (__DEV__) { require('./dev_ajax_debug').initializeAjaxDebuggingUtils(); } $(document).ready(() => { React.render(rootElement, document.getElementById(mountPointId)); }); }
admin/src/components/ListDownloadForm.js
BlakeRxxk/keystone
import classnames from 'classnames'; import React from 'react'; var Transition = React.addons.CSSTransitionGroup; var CurrentListStore = require('../stores/CurrentListStore'); var Popout = require('./Popout'); var PopoutList = require('./PopoutList'); var { Button, Checkbox, Form, FormField, InputGroup, SegmentedCont...
server/sonar-web/src/main/js/components/ui/BugTrackerIcon.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...
docs/app/Examples/collections/Grid/ResponsiveVariations/GridExampleResponsiveWidth.js
shengnian/shengnian-ui-react
import React from 'react' import { Grid, Image } from 'shengnian-ui-react' const GridExampleResponsiveWidth = () => ( <div> <Grid> <Grid.Column mobile={16} tablet={8} computer={4}> <Image src='/assets/images/wireframe/paragraph.png' /> </Grid.Column> <Grid.Column mobile={16} tablet={8} ...
src/pages/Slides/data/slide45.js
gndplayground/styled-components-presentation
export default { center: true, steps: [ { key: 'slide45_renderText', data: { animation: 'opacity', type: 'text', center: true, data: 'Animations', }, }, { key: 'slide45_renderCode', data: { animation: 'opacity', type: 'code', ...
app/javascript/mastodon/components/dropdown_menu.js
mecab/mastodon
import React from 'react'; import Dropdown, { DropdownTrigger, DropdownContent } from 'react-simple-dropdown'; import PropTypes from 'prop-types'; class DropdownMenu extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; static propTypes = { icon: PropTypes.string.isRequired...
src/parser/rogue/shared/resources/EnergyDetails.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import Tab from 'interface/others/Tab'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import Icon from 'common/Icon'; import { formatPercentage } from 'common/format'; import ResourceBreakdown from 'parser/shared/m...
src/containers/LoginSuccess/LoginSuccess.js
Nuriddinkhuja/photoshare
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import * as authActions from 'redux/modules/auth'; @connect( state => ({ user: state.auth.user }), authActions) export default class LoginSuccess extends Component { static propTypes = { user:...
docs/src/app/components/pages/components/Divider/ExampleList.js
barakmitz/material-ui
import React from 'react'; import Divider from 'material-ui/Divider'; import {List, ListItem} from 'material-ui/List'; import MobileTearSheet from '../../../MobileTearSheet'; const DividerExampleList = () => ( <MobileTearSheet height={250}> <List> <ListItem insetChildren={true} primaryText="Janet Perkins B...
src/components/REPLInput.js
pcardune/pyret-ide
import React from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import {changeREPLCode, run} from '../redux/actionCreators'; import * as selectors from '../redux/selectors'; const styles = { wrapper: { margin: 5, fontFamily: 'monospace', display: 'flex', flex...
src/components/todo/screens/TodoList/views/TodoListView.js
yasavbrain/yasav
import React from 'react'; import { Container, Content, ListItem, Text, CheckBox, Picker, List, View, Item, Icon, Input, Button } from 'native-base'; import { FlatList } from 'react-native' import I18n from 'yasav/locales/i18n.js'; import { MenuHeader } from 'src/viewElements/shared/Header.js'; import { StatusEnum } fr...
js/src/components/Controls/TextAlign/index.js
understory-dev/react-draft-wysiwyg
/* @flow */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { getSelectedBlocksMetadata, setBlockData } from 'draftjs-utils'; import LayoutComponent from './Component'; export default class TextAlign extends Component { static propTypes = { editorState: PropTypes.object.is...
app/views/MainView.js
rhinos-app/rhinos-app-dev
import React from 'react' import { StyleSheet, Text, View, Platform } from 'react-native' import { Button } from 'react-native-elements' import { TabViewAnimated, TabBarTop } from 'react-native-tab-view' import { PersonList } from 'components' import { MockData } from 'utils' import baseStyles from '../baseStyl...
examples/js/column-filter/demo.js
rolandsusans/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import TextFilter from './text-filter'; import TextFilterWithDefaultValue from './text-filter-with-default-value'; import TextFilterWithCondition from './text-filter-with-eq-condition'; import ProgrammaticallyTextFilter from './text-filter-programmatically'; import Reg...
lavalab/html/node_modules/react-bootstrap/es/Fade.js
LavaLabUSC/usclavalab.org
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import classNames from 'classnames'; import React fr...
src/components/Auth/ForgotPassword/ForgotPassword.react.js
isuruAb/chat.susi.ai
import React, { Component } from 'react'; import Paper from 'material-ui/Paper'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; import Dialog from 'material-ui/Dialog'; import './ForgotPassword.css'; import $ from 'jquery'; import PropTypes from 'prop-types'; import ...
src/svg-icons/action/line-weight.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLineWeight = (props) => ( <SvgIcon {...props}> <path d="M3 17h18v-2H3v2zm0 3h18v-1H3v1zm0-7h18v-3H3v3zm0-9v4h18V4H3z"/> </SvgIcon> ); ActionLineWeight = pure(ActionLineWeight); ActionLineWeight.displayN...
src/svg-icons/action/cached.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCached = (props) => ( <SvgIcon {...props}> <path d="M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97....
Examples/vlcplayer/index.ios.js
xiongchuan86/react-native-vlcplayer
import React, { Component } from 'react'; import { AppRegistry, View, Text } from 'react-native'; import SimpleVideo from './SimpleVideo.js'; import Video from './Video.js'; class vlcplayer extends Component { render() { const uri = 'http://cdn.goluk.cn/video/t1_2.mp4'; let simplevideo = this.renderS...
src/components/Feedback/Feedback.js
thethirddan/pocket_axe
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback { render() { return ( <div className="Feedback"> <div className="Feedba...