path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
lib/editor/components/editors/ImageManager.js
jirokun/survey-designer-js
/* eslint-env browser */ import React, { Component } from 'react'; import { Button } from 'react-bootstrap'; import classNames from 'classnames'; import $ from 'jquery'; import S from 'string'; import '../../css/imageManager.scss'; /** * TinyMCEからも画像管理からも使うので、プレーンなReactコンポーネントとして実装する。Reduxは使わない */ export default cla...
src/svg-icons/device/brightness-high.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBrightnessHigh = (props) => ( <SvgIcon {...props}> <path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 ...
elements/Polyline.js
msand/react-native-svg
import React from 'react'; import Path from './Path'; import Shape from './Shape'; import extractPolyPoints from '../lib/extract/extractPolyPoints'; export default class Polyline extends Shape { static displayName = 'Polyline'; static defaultProps = { points: '', }; setNativeProps = props => { const ...
src/components/post/tools/subscribe.js
Lokiedu/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2016 Loki Education (Social Enterprise) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, o...
src/js/components/Menu.js
mmmigalll/react-starter
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { NavLink, withRouter } from 'react-router-dom'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; class Menu extends Component { render() { return ( <div className="inner-resize"> ...
src/scripts/pages/Index/Index.js
lenshq/lens_front
import React from 'react'; import './styles.css'; export default class Index { render() { return ( <section className='page page--index'> <header className='promo'> <div className='promo__content'> <h1 className='promo__title'>LensHQ</h1> <p className='promo__desc...
app/javascript/mastodon/features/mutes/index.js
sylph-sin-tyaku/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debou...
app/components/Known.js
chena/kiminonawa-web
import React from 'react'; import axios from 'axios'; import Button from 'muicss/lib/react/button'; import Container from 'muicss/lib/react/container'; import Divider from 'muicss/lib/react/divider'; import Row from 'muicss/lib/react/row'; import Col from 'muicss/lib/react/col'; import { Link } from 'react-router'; i...
src/svg-icons/action/view-list.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewList = (props) => ( <SvgIcon {...props}> <path d="M4 14h4v-4H4v4zm0 5h4v-4H4v4zM4 9h4V5H4v4zm5 5h12v-4H9v4zm0 5h12v-4H9v4zM9 5v4h12V5H9z"/> </SvgIcon> ); ActionViewList = pure(ActionViewList); Actio...
src/containers/Main.js
afikris6/afikris6.github.io
import React from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { calcDistances } from '../helpers/location'; import * as MainActions from '../reducers/main'; import LocationList from '../components/LocationList'; import...
react-universal-web-apps-simple/app/components/dashboard/Dashboard.js
joekraken/react-demos
import React from 'react'; export default class Dashboard extends React.Component { render() { return ( <main className="app-content dashboard"> {this.props.children} </main> ); } }
packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/SassModulesInclusion.js
jdcrensh/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'; import styles from './assets/sass-styles.module.sass'; import indexStyles from './assets/index.module.sass'; ...
src/svg-icons/action/stars.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionStars = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53...
src/components/ModalWrapper/ModalWrapper.js
kuao775/mandragora
import React from 'react'; function ModalWrapper(WrappedModal, WrappedComponent) { return class modalWrapper extends React.Component { state = { modalOpen: false }; handleOpen = () => this.setState({ modalOpen: true }); handleClose = () => this.setState({ modalOpen: false }); render() { return...
src/routes/contact/index.js
agiron123/react-starter-kit-TDDOList
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Contact from './Contact'...
app/jsx/files/MoveDialog.js
venturehive/canvas-lms
/* * Copyright (C) 2015 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
src/modules/teamwork/index.js
skydaya/react-sell
/** * Created by dllo on 17/8/28. */ import React from 'react' import ReactDOM from 'react-dom' import App from './app' ReactDOM.render( <App />, document.getElementById('teamwork') )
demo/components/Header.js
philpl/react-live
import React from 'react'; import styled from 'styled-components'; import * as polished from 'polished'; import { ProjectBadge } from 'formidable-oss-badges'; import { background, blue } from '../utils/colors'; const SubTitle = styled.h2` font-size: ${polished.modularScale(1)}; font-weight: normal; color: ${blue...
app/components/Demo/ChildrenComponent/index.js
jakubrohleder/aurelius
import React from 'react'; import styles from './styles.css'; export default function ChildrenComponent(props) { const { children } = props; return ( <div className={styles.wrapper}> <h4>ChildrenComponent</h4> {children} </div> ); } ChildrenComponent.propTypes = { children: React.PropType...
blueocean-material-icons/src/js/components/svg-icons/image/panorama-wide-angle.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImagePanoramaWideAngle = (props) => ( <SvgIcon {...props}> <path d="M12 6c2.45 0 4.71.2 7.29.64.47 1.78.71 3.58.71 5.36 0 1.78-.24 3.58-.71 5.36-2.58.44-4.84.64-7.29.64s-4.71-.2-7.29-.64C4.24 15.58 4 13.78 4 12c0-1.78.24-3.58.71-5.36C7.29 6.2 ...
spec/components/chip.js
rubenmoya/react-toolbox
import React from 'react'; import Avatar from '../../components/avatar'; import Chip from '../../components/chip'; import style from '../style'; class ChipTest extends React.Component { state = { deleted: false, }; handleDeleteClick = () => { this.setState({ deleted: true, }); }; render()...
examples/js/custom/delete-button/fully-custom-delete-button.js
echaouchna/react-bootstrap-tab
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ /* eslint no-alert: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn, InsertButton } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; ...
artifact/components/admin/menu/index.js
uinika/saga
import React from 'react'; class AdminMenu extends React.Component { componentDidMount() { console.log('AdminMenu'); }; render() { return ( <div id='admin-Menu'> <h1>AdminMenu</h1> </div> ); } }; export default AdminMenu;
styleguide/screens/Patterns/Medallion/Medallion.js
NGMarmaduke/bloom
import React from 'react'; import cx from 'classnames'; import Medallion from '../../../../components/Medallion/Medallion'; import Specimen from '../../../components/Specimen/Specimen'; import { H, T, C } from '../../../components/Scaffold/Scaffold'; import css from './Medallion.css'; import m from '../../../../globa...
app/javascript/mastodon/features/ui/util/react_router_helpers.js
Ryanaka/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { Switch, Route } from 'react-router-dom'; import ColumnLoading from '../components/column_loading'; import BundleColumnError from '../components/bundle_column_error'; import BundleContainer from '../containers/bundle_container'; // Small wrapper t...
React Native/Demos/address_book/Views/manager/modifyPassword.js
AngryLi/ResourceSummary
/** * Created by Liyazhou on 16/8/28. */ import React from 'react'; import {View, Text, ScrollView, StyleSheet, TouchableOpacity, TextInput, AlertIOS, AsyncStorage} from 'react-native'; import Util from './../util'; import Service from './../service'; export default class ModifyPassword extends React.Component { ...
techCurriculum/ui/solutions/7.1/src/components/Message.js
tadas412/EngineeringEssentials
/** * Copyright 2017 Goldman Sachs. * 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...
src/components/home/home.js
ebenezer-unitec/ReactNativeSBO
import React from 'react'; import styles from '../../themes/styles'; import {getRoutes, getCardsInformation, postTransaction} from '../api/requester'; import {write, readDir, unlink, exist, mkdir, read} from '../FileSystem/fileSystem'; import{ View, Text, StyleSheet, TouchableOpacity, Dimensions, Image, Activity...
src/components/pages/Account/ResetConfirm.js
ESTEBANMURUZABAL/my-ecommerce-template
/** * Imports */ import React from 'react'; import connectToStores from 'fluxible-addons-react/connectToStores'; import {FormattedMessage} from 'react-intl'; // Flux import IntlStore from '../../../stores/Application/IntlStore'; import ResetStore from '../../../stores/Account/ResetStore'; import resetConfirm from '...
app/viewControllers/components/SplitSpreads.js
Evyy/cffs-ui
'use strict'; import React from 'react'; import SplitSpread from './SplitSpread'; import blurbs from '../../blurbs.json'; import _ from 'lodash'; class SplitSpreads extends React.Component { constructor (props) { super(props); this.renderSplitSpread = this .renderSplitSpread ...
src/routes/home/NewPoll.js
binyuace/vote
import React from 'react'; const NewPoll = ({ fetch, store }) => { let input; return ( <div> <form onSubmit={e => { e.preventDefault(); if (store.getState().user === null) { alert('you need to log in first'); window.location.href = '/login'; ...
monkey/monkey_island/cc/ui/src/components/attack/techniques/T1504.js
guardicore/monkey
import React from 'react'; import ReactTable from 'react-table'; import {renderMachineFromSystemData, ScanStatus} from './Helpers'; import MitigationsComponent from './MitigationsComponent'; class T1504 extends React.Component { constructor(props) { super(props); } static getColumns() { return ([{ ...
examples/src/app.js
reactjs/react-tabs
import React from 'react'; import * as ReactDOM from 'react-dom/client'; import './example.less'; import SuperMario from './components/examples/SuperMario'; import MattGroening from './components/examples/MattGroening'; import Avengers from './components/examples/Avengers'; import RightToLeft from './components/example...
examples/js/custom/insert-modal/default-custom-insert-modal-footer.js
prajapati-parth/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ /* eslint no-alert: 0 */ /* eslint no-console: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn, InsertModalFooter } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; ...
examples/01 Dustbin/Stress Test/Container.js
Reggino/react-dnd
import React, { Component } from 'react'; import { DragDropContext } from 'react-dnd'; import HTML5Backend, { NativeTypes } from 'react-dnd/modules/backends/HTML5'; import Dustbin from './Dustbin'; import Box from './Box'; import ItemTypes from './ItemTypes'; import shuffle from 'lodash/collection/shuffle'; import upda...
client/pages/Home.js
rockchalkwushock/photography-frontend
import React, { Component } from 'react'; import { browserHistory } from 'react-router/es'; import { withTranslate } from 'react-redux-multilingual'; import { connect } from 'react-redux/es'; import { Loader } from '../commons'; import { AppCarousel, fetchCategory } from '../modules'; @connect( state => ({ photo...
client/components/Navigation/Navigation.js
djaracz/useless-app
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Logo from '../Logo/Logo'; import styles from './navigation.scss'; import OwnLink from '../OwnLink/OwnLink'; export default class Nav extends Component { constructor(props) { super(props); this.handleOnLinkClick = ...
nextApp/pageComponents/weeklyReport/EventForm/index.js
liximomo/toolpages
import React from 'react'; import Formsy from 'formsy-react'; import Paper from 'material-ui/Paper'; import Toggle from 'material-ui/Toggle'; import FlatButton from 'material-ui/FlatButton'; import MenuItem from 'material-ui/MenuItem'; import { FormsyCheckbox, FormsyDate, FormsyRadio, FormsyRadioGroup, FormsySele...
src/app/components/pages/ContentPage/ContentPage.js
tvarner/PortfolioApp
import React from 'react'; import _ from 'lodash'; import Collapse from './../../utilComponents/collapse/src/Collapse.jsx'; import Panel from './../../utilComponents/collapse/src/Panel.jsx'; import './styles.css'; import ContentCollectionContainer from './../../utilComponents/ContentCollection/ContentCollectionContai...
src/main.js
linxlad/tracksy-client
import React from 'react'; import ReactDOM from 'react-dom'; import createStore from './store/createStore'; import './styles/main.scss'; // Store Initialization // ------------------------------------ const store = createStore(window.__INITIAL_STATE__); // Render Setup // ------------------------------------ const MO...
src/client/components/editable.react.js
jaeh/este
import './editable.styl'; import Component from '../components/component.react'; import React from 'react'; import Textarea from 'react-textarea-autosize'; import classnames from 'classnames'; import immutable from 'immutable'; import {msg} from '../intl/store'; const State = immutable.Record({ isEditing: false, v...
src/containers/Profile/index.js
andresmechali/shareify
import React from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import { BrowserRouter, Route} from 'react-router-dom'; import { withApollo } from 'react-apollo'; import USER_QUERY from '../../utils/queries/USER_QUERY'; import { addFlashMessage, deleteFlashMessage } from...
app/javascript/mastodon/features/notifications/components/setting_toggle.js
ebihara99999/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Toggle from 'react-toggle'; class SettingToggle extends React.PureComponent { static propTypes = { settings: ImmutablePropTypes.map.isRequired, settingKey: PropTypes.array.isRequ...
www/src/components/Main.js
glenjamin/react-bootstrap
import PropTypes from 'prop-types'; import React from 'react'; import Container from 'react-bootstrap/lib/Container'; import Row from 'react-bootstrap/lib/Row'; import Col from 'react-bootstrap/lib/Col'; import { css } from 'astroturf'; import SideNav from './SideNav'; import Toc, { TocProvider } from './Toc'; const s...
app/components/SelectTable/index.js
bruceli1986/react-qdp
/** * * SelectTable * */ import React from 'react'; import _ from 'lodash'; import { Modal, Table, Button, Input } from 'antd'; import classNames from 'classnames'; import QdpAdvanceSearcher from 'components/QdpAdvanceSearcher'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; import s...
examples/using-jest/src/components/image.js
0x80/gatsby
import React from 'react' import { StaticQuery, graphql } from 'gatsby' import Img from 'gatsby-image' /* * This component is built using `gatsby-image` to automatically serve optimized * images with lazy loading and reduced file sizes. The image is loaded using a * `StaticQuery`, which allows us to load the image ...
frontend/src/Album/Details/AlbumDetailsMediumConnector.js
lidarr/Lidarr
import _ from 'lodash'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { executeCommand } from 'Store/Actions/commandActions'; import { setTracksTableOption } from 'Store/Actions/trackActions'; import...
packages/react-error-overlay/src/containers/StackFrame.js
HelpfulHuman/helpful-react-scripts
/** * 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. */ /* @flow */ import React, { Component } from 'react'; import CodeBlock from './StackFrameCodeBlock'; import { getPrettyURL } from '../ut...
components/NewWordForm/NewWordForm.js
nelseric/fhack-yo
import React, { Component } from 'react'; import Actions from '../../lib/Actions'; import WordStore from '../../lib/WordStore'; class NewWordForm extends Component { constructor(){ super(); this.state = {newWord: ""}; this._handleNewWordChange = this._handleNewWordChange.bind(this); this._handleFormS...
www/src/components/PropExample.js
haneev/react-widgets
import get from 'lodash/get' import PropTypes from 'prop-types'; import React from 'react'; import EditableExample from './EditableExample'; const examples = require.context('../examples', false) const keys = examples.keys(); const propTypes = { prop: PropTypes.object.isRequired, displayName: PropTypes.string.is...
src/renderer/components/account-switcher.js
r7kamura/retro-twitter-client
import React from 'react'; export default class AccountSwitcher extends React.Component { render() { return( <div className="account-switcher"> <ul className="accounts"> <li className="accounts-item accounts-item-selected"> <img className="accounts-item-avatar" src={this.props...
test/helpers/shallowRenderHelper.js
superyorklin/gallery-by-react
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
src/svg-icons/notification/phone-bluetooth-speaker.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPhoneBluetoothSpeaker = (props) => ( <SvgIcon {...props}> <path d="M14.71 9.5L17 7.21V11h.5l2.85-2.85L18.21 6l2.15-2.15L17.5 1H17v3.79L14.71 2.5l-.71.71L16.79 6 14 8.79l.71.71zM18 2.91l.94.94-.94.94...
src/Components/Login.js
NickGlenn/React-Project
import React, { Component } from 'react'; export default class Login extends Component { static propTypes = { onLogin: React.PropTypes.func }; static defaultProps = { }; onLogin () { let email = this.refs.email.value; let pass = this.refs.pass.value; if (this.props.onLogin) this.props.onL...
Components/SplashScreen.js
colm2/mizen
import React, { Component } from 'react'; import { View, StatusBar, StyleSheet, Image, ActivityIndicator } from 'react-native'; import Spacing from './Spacing'; export class SplashScreen extends Component{ render(){ return ( <View style={styles.splashScreen}> <Spacing /> <Image source={require('./sp...
components/BtnGroup/BtnGroup.story.js
NGMarmaduke/bloom
import React from 'react'; import { storiesOf } from '@storybook/react'; import cx from 'classnames'; import Medallion from '../Medallion/Medallion'; import m from '../../globals/modifiers.css'; import BtnGroup from './BtnGroup'; import Icon from '../Icon/Icon'; import Btn from '../Btn/Btn'; storiesOf('BtnGroup', mod...
rmod/src/components/__name__/__Name__.js
caohaijiang/dingyou-dingtalk-mobile
require('./<%- Name %>.less'); import React from 'react'; import { WhiteSpace, WingBlank, List, } from "antd-mobile"; /* import <%- Name %> from 'components/<%= name %>'; <<%- Name %> attribute={ } attribute={ } attribute={ } /> attribute: 说明 https://mobile.ant.design/components/<%...
teamlog/src/main/webapp/src/components/base/input/CInput.js
suxi-666666/learn
import React from 'react'; import PropTypes from 'prop-types'; import { Form, Input, InputNumber, Checkbox, Radio, Select, Switch, TreeSelect, TimePicker, DatePicker, AutoComplete, Cascader, Slider, Rate, Mention, Transfer, Upload, Col } from 'an...
src/svg-icons/image/adjust.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageAdjust = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3-8c0 1.66-1.34 3-3 3s-3-1.3...
src/modules/query/containers/container-query.js
otissv/graphql-guru-ide
import React from 'react'; import axios from 'axios'; import autobind from 'class-autobind'; import { connect } from '../../../store'; import getClassMethods from '../../../helpers/get-class-methods'; import { buildClientSchema, parse, print } from 'graphql'; import cuid from 'cuid'; import { initialState } from '../re...
src/components/chars.js
mcekiera/hangman
import React from 'react'; function renderChars(chars) { console.log(chars); const data = []; for(let i = 0; i < chars.length; i += 1) { data.push(<p key={i}>{chars[i]}</p>) } return data; } export default (props) => { return ( <div className='hangman__charbox'> {renderChars(props.chars)} ...
frontend/component/MarkdownEditor.js
a2393439531/nodepractice
import React from 'react'; import Codemirror from 'react-codemirror'; import 'codemirror/lib/codemirror.css'; import 'codemirror/mode/gfm/gfm'; import '../lib/style.css'; export default class MarkdownEditor extends React.Component { render() { return ( <Codemirror value={this.props.value} options={{ ...
src/components/vis/BubbleRowChart.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import * as d3 from 'd3'; import { FormattedMessage, injectIntl } from 'react-intl'; const DEFAULT_WIDTH = 530; const DEFAULT_MIN_BUBBLE_RADIUS = 5; const DEFAULT_MAX_BUBBLE_RADIUS = 70; const DEFAULT_HEIGHT = 200; const PADDING_BETWEEN_BUBBLES = 10; cons...
shared/components/TodoInput.js
gzoreslav/panda-iso
import React from 'react'; const ESCAPE_KEY = 27; const ENTER_KEY = 13; class TodoList extends React.Component { handleKeyDown(event) { if (event.which !== ENTER_KEY) { return; } event.preventDefault(); let value = this.refs.task.getDOMNode().value.trim(); if...
src/commons/DisplayIfCond.js
zenria/react-redux-sandbox
import React from 'react'; const DisplayIfCond = ({cond, children})=> ( cond && children ) export default DisplayIfCond;
src/js/components/Tabs/stories/Scrollable.js
HewlettPackard/grommet
import React from 'react'; import { Box, Heading, Tab, Tabs } from 'grommet'; import { TreeOption } from 'grommet-icons'; const ScrollableTabs = () => ( // Uncomment <Grommet> lines when using outside of storybook // <Grommet theme={...}> <Box fill> <Tabs flex> <Tab title="Tab 1"> <Box ...
src/js/components/app.js
mtharrison/whereyouat
import React, { Component } from 'react'; import MapView from './map-view'; import RecentPins from './recent-pins'; import PinControls from './pin-controls'; import UserStatusBar from './user-status-bar'; export default ({ pins, auth, mapOptions, updateMapPrefs, addPin, removeAllPins, logi...
src/entypo/Mixi.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Mixi'; let EntypoMixi = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M9.546,17.258h0.955v2.143c6.51-0.684,9.982-7.143,9.421-11.691C19.358,3.16,14.471,0.018,8.978,0.69C3.486,1...
views/blocks/Search/search.js
FairTex/team5
import React from 'react'; import SearchBar from './../SearchBar/SearchBar'; import SearchResult from './../SearchResult/SearchResult'; import SearchResultItem from './../SearchResult/ResultItem'; import Card from './../QuestCard/questCard'; import constants from './../../constants/defaultStates'; const Searcher = req...
mlflow/server/js/src/model-registry/components/RegisterModelButton.js
mlflow/mlflow
import React from 'react'; import _ from 'lodash'; import { Modal, Button } from 'antd'; import { FormattedMessage, injectIntl } from 'react-intl'; import { RegisterModelForm, CREATE_NEW_MODEL_OPTION_VALUE, SELECTED_MODEL_FIELD, MODEL_NAME_FIELD, } from './RegisterModelForm'; import { createRegisteredModelAp...
stories/pages/HomePage.js
suranartnc/react-universal-starter-kit
import React from 'react' import { storiesOf } from '@kadira/storybook' import faker from 'faker' import HomePage from 'shared/pages/HomePage/HomePage' import App from 'shared/pages/App/App' const posts = []; for (let i = 0; i < 5; ++i) { posts.push({ id: i + 1, title: faker.lorem.sentence(), excerpt: fa...
react/eventwizard/components/infoTab/SyncCodeInput.js
bdaroz/the-blue-alliance
import React from 'react' import PropTypes from 'prop-types' import EVENT_SHAPE from '../../constants/ApiEvent' const SyncCodeInput = (props) => ( <div className="form-group"> <label htmlFor="first_code" className="col-sm-2 control-label"> FIRST Sync Code </label> <div className="col-sm-10"> ...
src/components/Layout/SearchDrawer/SearchOptionList/SearchOption/presenter.js
ndlib/usurper
import React from 'react' import PropTypes from 'prop-types' const SearchOption = (props) => { return ( <li id={`uSearchOption_${props.index}`} className='uSearchOption' onClick={props.onClick} onKeyDown={props.onKeyDown} tabIndex={props.search.searchBoxOpen ? '0' : '-1'} rol...
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js
aastey/react-router
/*globals COURSES:true */ import React from 'react' import { Link } from 'react-router' class Sidebar extends React.Component { render() { let { assignments } = COURSES[this.props.params.courseId] return ( <div> <h3>Sidebar Assignments</h3> <ul> {assignments.map(assignment =>...
src/app/config/Routes.js
allangrds/Terminator-React-Starter-Kit
import React from 'react'; import { BrowserRouter as Router, Switch, Route, browserHistory, NavLink } from 'react-router-dom'; /**/ import Orders from './Orders'; import Errors from './Errors'; import Home from '../components/Home'; const About = () => <h1>About</h1>; const Links = () => ( <nav> <Nav...
src/components/shared/Snippet/Snippet.js
AgtLucas/css-modules-playground
import styles from './Snippet.css'; import React from 'react'; export default class Snippet extends React.Component { render() { return( <div className={styles.root}> <div className={styles.output}> <div className={styles.fileName}>Output</div> <div className={styles.outputCo...
app/javascript/mastodon/features/favourites/index.js
verniy6462/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 { fetchFavourites } from '../../actions/interactions'; import { ScrollContainer } fr...
example/with-template/template.js
iansinnott/react-static-webpack-plugin
import React from 'react'; const Html = (props) => ( <html lang='en'> <head> <meta charSet='utf-8' /> <meta httpEquiv='X-UA-Compatible' content='IE=edge' /> <meta name='viewport' content='width=device-width, minimum-scale=1.0' /> <title>Super awesome package</title> <script dangerou...
src/components/form/InputTitle.js
ashmaroli/jekyll-admin
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import TextareaAutosize from 'react-textarea-autosize'; export default class InputTitle extends Component { shouldComponentUpdate(nextProps) { return nextProps.title !== this.props.title; } handleChange(e){ const { onChange }...
client/components/About.js
jordanallen98/nimblecode
import React, { Component } from 'react'; import AboutProfile from './AboutProfile.js'; var team = [{ key: 1, name: "Mark Kim", bio: "Completely synergize resource taxing relationships via premier niche markets. Professionally cultivate one-to-one customer service with robust ideas. Dynamically innovate resource...
node_modules/react-bootstrap/es/NavbarHeader.js
premcool/getmydeal
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 ...
src/scripts/pages/about.js
modesty/react2html
import React from 'react'; import Main from '../components/Main'; const About = ({chrome, page}) => { return ( <Main chrome={chrome} page={page} > <> <h1>About React2Html</h1> <p>More details can be found at <a href="https://github.com/modesty/react2html"> GitHub </a></p> </> </Main> ); }; export ...
daily-frontend/src/routes.js
zooyalove/dailynote
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './containers/App'; import { MainRoute, WriteRoute, OrdererRoute, NullInfoRoute, OrdererInfoRoute, SearchRoute, StatRoute, LoginRoute } from './containers/routes'; export default ( <Route path="/" component={App}> ...
src/svg-icons/image/filter-9-plus.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter9Plus = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 7V8c0-1.11-.9-2-2-2h-1c-1.1 0-2 .89-2 2v1c0 1.11.9 2 2 2h1v1H9v2h3c1.1 0 2-.89 2-2zm-3-3V8h1v1h-1zm10-8H7c-1.1...
webpack/scenes/Hosts/ChangeContentSource/components/FormField.js
snagoor/katello
import React from 'react'; import { FormGroup, FormSelect, FormSelectOption, GridItem, } from '@patternfly/react-core'; import { translate as __ } from 'foremanReact/common/I18n'; import PropTypes from 'prop-types'; const FormField = ({ label, id, value, items, onChange, isLoading, contentHostsCount, }) => (...
src/svg-icons/image/linked-camera.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLinkedCamera = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="14" r="3.2"/><path d="M16 3.33c2.58 0 4.67 2.09 4.67 4.67H22c0-3.31-2.69-6-6-6v1.33M16 6c1.11 0 2 .89 2 2h1.33c0-1.84-1.49-3.33-3.33-3.3...
src/routes/NotFound/NotFound.js
SteveHoggNZ/Choice-As
import React from 'react' import { browserHistory } from 'react-router' const goBack = (e) => { e.preventDefault() return browserHistory.goBack() } export const NotFound = () => ( <div> <h4>Page not found!</h4> <p><a href='#' onClick={goBack}>&larr; Back</a></p> </div> ) export default...
app/containers/App/index.js
gitlab-classroom/classroom-web
/** * * 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 from 'react'; import Helmet from 'react-helmet'; import styled from 'styled-components'; import Header from '../Header'; import...
src/components/Choice.js
quintel/etmobile
import React from 'react'; import PropTypes from 'prop-types'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import ChoiceButton from './ChoiceButton'; import IconOrBadge from './IconOrBadge'; const Choice = ({ index, selectedIndex, choice, onChoiceSelected, showExplanations }) => ( <div ...
src/js/containers/DevTools.js
pololanik/puzzle
import React from 'react'; import { createDevTools } from 'redux-devtools'; // Monitors are separate packages, and you can make a custom one import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; import SliderMonitor from 'redux-slider-monitor'; // createDevTools t...
src/components/GLMap.js
twelch/react-mapbox-gl-seed
import React, { Component } from 'react'; // NotWorkingShimInstead import mapboxgl from 'mapbox-gl'; require('script!mapbox-gl/dist/mapbox-gl-dev.js'); class GLMap extends Component { static propTypes = { // Default map view view: React.PropTypes.object, // Style of map container mapStyle: React.Pro...
app/javascript/packs/activity_pack.js
emrojo/samples_extraction
import React from 'react' import ReactDOM from 'react-dom' import PropTypes from 'prop-types' import WebpackerReact from 'webpacker-react' import Activity from 'components/activity' import Steps from 'components/step_components/steps' import StepsFinished from 'components/step_components/steps_finished' import FactsSv...
src/components/ui/Logo.js
yuri/notality
import React from 'react'; import LogoImage from '../../assets/rangleio-logo.svg'; const Logo = ({ style = {} }) => { return ( <img style={{ ...styles.base, ...style }} src={ LogoImage } alt="Rangle.io" /> ); }; const styles = { base: { width: 128, }, }; export default Logo;
node_modules/react-bootstrap/es/Clearfix.js
ProjectSunday/rooibus
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 ...
src/svg-icons/hardware/security.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareSecurity = (props) => ( <SvgIcon {...props}> <path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"/> </SvgIcon> ); Hardwa...
caseStudy/ui/src/App.js
jennybkim/engineeringessentials
/** * Copyright 2017 Goldman Sachs. * 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...
src/routes/increase/components/Increase.js
magic-FE/react-redux-boilerplate
// import React from 'react'; type props = { result: number, doubleAsync: () => void, increment: () => void }; export const Increase = (props: props) => { return ( <div> <h2>Counter: {props.result}</h2> <button className="btn btn-default" onClick={() => props.increment()}> Increment ...
src/server.js
CSE-437/WebServer
/** * 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 'babel-core/polyfill'; import path from 'path'; im...
test/integration/scss-fixtures/npm-import/pages/_app.js
JeromeFitz/next.js
import React from 'react' import App from 'next/app' import '../styles/global.scss' class MyApp extends App { render() { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
src/router.js
nobesnickr/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import Router from 'react-routing/src/Router'; import http from './core/http'; import App from './components/App'; import ContentPage from './components/ContentPage'; import ContactPage from './components/ContactPage'; ...