path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
HTML/前端/my-react-app-spring-boot-yao/src/hello.js
xiaoxiaoyao/MyApp
import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( <h1>Hello, world!</h1>, document.getElementById('root') );
src/Parser/HolyPaladin/Modules/Items/Tier19_4set.js
mwwscott0/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import HIT_TYPES from 'Parser/Core/HIT_TYPES'; import Module from 'Parser/Core/Module'; import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing'; impo...
src/containers/Editor.js
petercollingridge/math-for-programmers-prototype
import React, { Component } from 'react'; import PropTypes from 'prop-types'; // CodeMirror Imports import CodeMirror from 'react-codemirror2'; import 'codemirror/mode/stex/stex'; import 'codemirror/lib/codemirror.css'; import 'codemirror/theme/monokai.css'; class Editor extends Component { constructor(props) { ...
src/components/Scenario.js
kalpetros/hawkpass
import PropTypes from 'prop-types'; import React from 'react'; import { Panel } from './Panel'; export const Scenario = props => { const { per_second, per_minute, per_hour, per_day, per_year } = props.values; return ( <div className="grid grid-cols-2 sm:grid-cols-5 gap-4"> <Panel> <div classNam...
ui/src/app/components/Types.js
kuppuswamy/foodie
import React from 'react'; import AddTypeMutation from '../mutations/AddTypeMutation'; import EditTypeMutation from '../mutations/EditTypeMutation'; import DeleteTypeMutation from '../mutations/DeleteTypeMutation'; export default class Types extends React.Component { state = { text: '', editID: null, sho...
src/components/Sidebar/SelectMessage.js
vogelino/design-timeline
import React from 'react'; export default () => ( <div className="sidebar_selectMessage"> Please select an item to view its content </div> );
src/js/components/members/newMemberForm.js
jrnail23/sitterswap-ui
import React from 'react' import Input from '../common/textInput' import {Link} from 'react-router' export default class extends React.Component { static propTypes = { member: React.PropTypes.shape({ firstName: React.PropTypes.string.isRequired, lastName: React.PropTypes.string.isRequired, emai...
src/utils/griddleConnect.js
GriddleGriddle/Griddle
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; /// This method appends options onto existing connect parameters export const mergeConnectParametersWithOptions = ( originalConnect, newOptions ) => { const [ mapStateFromProps, mapDispatchFromProps, ...
spec/javascripts/jsx/grading/CourseTabContainerSpec.js
djbender/canvas-lms
/* * Copyright (C) 2017 - 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/renderer/components/app-wrapper.js
sirbrillig/gitnews-menubar
import PropTypes from 'prop-types'; import { ipcRenderer } from 'electron'; import React from 'react'; import { connect } from 'react-redux'; import { markAllNotesSeen, scrollToTop, markAppHidden, markAppShown, } from 'common/lib/reducer'; class AppWrapper extends React.Component { constructor(props) { super(pr...
fields/types/color/ColorField.js
suryagh/keystone
import ColorPicker from 'react-color'; import Field from '../Field'; import React from 'react'; import { FormInput, InputGroup } from 'elemental'; const PICKER_TYPES = ['chrome', 'compact', 'material', 'photoshop', 'sketch', 'slider', 'swatches']; const TRANSPARENT_BG = `<svg width="24" height="24" viewBox="0 0 24 24...
packages/ringcentral-widgets/components/IncomingCallPad/index.js
u9520107/ringcentral-js-widget
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import Tooltip from 'rc-tooltip'; import 'rc-tooltip/assets/bootstrap_white.css'; import ForwardForm from '../ForwardForm'; import ReplyWithMessage from '../ReplyWithMessage'; import ActiveCallButton from...
website/src/index.js
chrisl8/ArloBot
import React from 'react'; import ReactDOM from 'react-dom'; import 'bootstrap/dist/css/bootstrap.css'; import './index.css'; import App from './containers/App'; ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getElementById('root'), );
components/Messenger/Messenger.js
tbescherer/TrumpAnxietyHotline
import React from 'react'; import store from '../../core/store.js'; import {keycodes} from './constants.js'; class Messenger extends React.Component { constructor(props) { super(props); this.post = this.post.bind(this); this.changeBlogText = this.changeBlogText.bind(this); this.rend...
src/components/molecules/Loading/index.js
SIB-Colombia/biodiversity_catalogue_v2_frontend
import React from 'react'; import styled from 'styled-components'; import {Link} from 'components'; import RefreshIndicator from 'material-ui/RefreshIndicator'; import CircularProgress from 'material-ui/CircularProgress'; const Wrapper = styled.div ` text-align: center; padding: 40px 20px; .text{ color:#555; font...
actor-apps/app-web/src/app/components/dialog/TypingSection.react.js
fhchina/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import classNames from 'classnames'; import DialogStore from 'stores/DialogStore'; export default React.createClass({ mixins: [PureRenderMixin], getInitialState() { return { typing: null, show: false }; }, compon...
src/routes/admin/index.js
ADourgarian/Syscoin-Payroll
/** * 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 Layout from '../../co...
src/components/profile/Profile.js
n8e/melange
import React from 'react'; import PropTypes from 'prop-types'; import './Profile.css'; const Profile = ({ name, nameColor, textColor, profile, handleClick, handleChange }) => ( <div className="profile-card"> <h3>Profile</h3> <div className="profile-entry"> <strong style={{ marginRight: '10px' }}>User ...
src/components/field_group.js
b0ts/react-redux-sweetlightstudios-website
import React from 'react'; import { FormGroup, ControlLabel, FormControl, HelpBlock } from 'react-bootstrap'; const FieldGroup = ({ id, label, help, ...props }) => ( <FormGroup controlId={id}> <ControlLabel>{label}</ControlLabel> <FormControl {...props} /> {help && <HelpBlock>{help}</HelpBlock>} </FormGroup...
src/svg-icons/editor/insert-invitation.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertInvitation = (props) => ( <SvgIcon {...props}> <path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"/> ...
react/CrossIcon/CrossIcon.sketch.js
seek-oss/seek-style-guide
import React from 'react'; import CrossIcon from './CrossIcon'; import generateSketchIconSizes from '../private/generateSketchIconSizes'; export const symbols = { ...generateSketchIconSizes('Cross', <CrossIcon />) };
src/client/client-views/org.js
davidbstein/moderator
import React from 'react' import {connect} from 'react-redux' import API from '../client-model/API' import EventCard from './event-card' export default connect( storeState => storeState, dispatch => ({API: new API(dispatch)}) )( class Org extends React.Component { constructor(props) { super(props); ...
router_tutorial/07-more-nesting/modules/Repo.js
Muzietto/react-playground
import React from 'react'; export default React.createClass({ render() { return ( <div> <h3>link of Repos remains active because Repo is nested in Repos and Repos is nested in /</h3> <h6>here under comes the repo name</h6> <h4>{this.props.params.repoName}</h4> <h6>here under c...
renderer/components/Icon/ConnectOnboarding.js
LN-Zap/zap-desktop
import React from 'react' const SvgConnectOnboarding = props => ( <svg height="1em" viewBox="0 0 96 62" width="1em" {...props}> <g fill="none" fillRule="evenodd" stroke="currentColor"> <circle cx={30} cy={30} r={30} transform="translate(1 1)" /> <circle cx={30} cy={30} r={30} transform="translate(35 ...
tests/Rules-isEmptyString-spec.js
yesmeck/formsy-react
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import Formsy from './..'; import { InputFactory } from './utils/TestInput'; const TestInput = InputFactory({ render() { return <input value={this.getValue()} readOnly/>; } }); const TestForm = React.createClass({ render() { re...
pages/index0.js
adjohnson916/site-gatsby
import React from 'react' import { Link } from 'react-router' import { prefixLink } from 'gatsby-helpers' // Styles for highlighted code blocks. import 'css/zenburn.css' export default class Sass extends React.Component { render () { return ( <div> <h1> Hi people </h1> <p...
app/react-icons/fa/volume-off.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaVolumeOff extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m28.6 7.9v24.2q0 0.6-0.4 1t-1 0.5-1-0.5l-7.4-7.4h-5.9q-0.6 0-1-0.4t-0.4-1v...
src/components/EditableSelectInput/EditableSelectInput.stories.js
austinknight/ui-components
import React from "react"; import { storiesOf } from "@storybook/react"; import EditableSelectInput from "./"; import { wrapComponentWithContainerAndTheme, colors } from "../styles"; const darkExample = { height: "220px", backgroundColor: "#2a434a", padding: "16px" }; const genericOptions = [ { value: "1", ...
app/javascript/mastodon/features/ui/components/tabs_bar.js
RobertRence/Mastodon
import React from 'react'; import PropTypes from 'prop-types'; import NavLink from 'react-router-dom/NavLink'; import { FormattedMessage, injectIntl } from 'react-intl'; import { debounce } from 'lodash'; import { isUserTouching } from '../../../is_mobile'; export const links = [ <NavLink className='tabs-bar__link p...
docs/includes/nav/Sidebar.js
harjeethans/materialistic
import React from 'react'; import {Link} from 'react-router'; function Sidebar(props) { const renderSidebarItems = function(items){ return ( items.map((item, index) => { return ( <li className="mdl-list__item" key={index}> <span className="mdl-list__item-primary-content"> ...
frontend/modules/recipe_form/components/TabbedView.js
RyanNoelk/OpenEats
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import { Popover, OverlayTrigger } from 'react-bootstrap' import { injectIntl, defineMessages, } from 'react-intl'; class TabbedView extends React.Component { constructor(props) { super(props); this.state = ...
app/components/shape_tween.js
laynemcnish/personal-site
import React, { Component } from 'react'; import d3 from 'd3'; export default class ShapeTween extends Component { componentDidMount () { var node = React.findDOMNode(this); var width = 960, height = 500; var projection = d3.geo.albers() .rotate([120, 0]) .center([15, 35]) ...
src/containers/pages/create-deck/after-class-selection/left-container/filter-sidebar.js
vFujin/HearthLounge
import React from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; import IconFilter from '../../../../shared-assets/filters/redux-icon-filter'; import InputFilter from '../../../../shared-assets/filters/redux-input-filter'; import SliderFilter from '../../../../shared-assets/filters/redux-slider-fi...
public/js/cat_source/es6/components/modals/LoginModal.js
matecat/MateCat
import PropTypes from 'prop-types' import update from 'immutability-helper' import _ from 'lodash' import React from 'react' import TextField from '../common/TextField' import * as RuleRunner from '../common/ruleRunner' import * as FormRules from '../common/formRules' import {checkRedeemProject as checkRedeemProjectAp...
src/routes.js
allyrippley/7ds
import React from 'react' import { Route, IndexRoute } from 'react-router' import App from './containers/App' import Main from './containers/Main' import AboutPage from './containers/About' import Portfolio from './containers/Portfolio' import PortfolioPage from './containers/Portfolio/Page' import Contact from './con...
client/modules/App/__tests__/Components/Footer.spec.js
Trulsabe/reactLinuxMern
import React from 'react'; import test from 'ava'; import { shallow } from 'enzyme'; import { Footer } from '../../components/Footer/Footer'; test('renders the footer properly', t => { const wrapper = shallow( <Footer /> ); t.is(wrapper.find('p').length, 2); t.is(wrapper.find('p').first().text(), '© 2016 ...
example-slack-message/src/App.js
atFriendly/react-native-friendly-chat
import React, { Component } from 'react'; import { View, Platform } from 'react-native'; import PropTypes from 'prop-types'; import { GiftedChat } from 'react-native-gifted-chat'; import emojiUtils from 'emoji-utils'; import SlackMessage from './SlackMessage'; class App extends Component { renderMessage(props) { ...
src/components/tablePrices/presentation/TPDeadlines.js
edu-affiliates/promo_calculators
'use strict'; import React from 'react'; import {connect} from 'react-redux' import {changeDeadline} from '../../../store/actions' class TPDeadlines extends React.Component { constructor(props) { super(props); } render() { const {deadlineList, deadline} = this.props; let list = d...
src/components/course/CourseForm.js
RockingChewee/react-redux-building-applications
import React from 'react'; import TextInput from '../common/TextInput'; import SelectInput from '../common/SelectInput'; const CourseForm = ({course, allAuthors, onSave, onChange, saving, errors}) => { return ( <form> <h1>Manage Course</h1> <TextInput name="title" label="Title" ...
packages/my-joy-instances/src/containers/create-instance/index.js
geek/joyent-portal
/* eslint-disable camelcase */ import React from 'react'; import { Margin } from 'styled-components-spacing'; import ReduxForm from 'declarative-redux-form'; import { stopAsyncValidation, SubmissionError, destroy } from 'redux-form'; import { connect } from 'react-redux'; import { set, destroyAll } from 'react-redux-v...
packages/icons/src/md/image/ExposureNeg2.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdExposureNeg2(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M31.09 33.58l5.73-6.13c.75-.79 1.44-1.57 2.08-2.35.63-.78 1.18-1.56 1.64-2.33.46-.78.82-1.55 1.07-2.33.26-.78.39-1.57.39-2.37 0-1.07-.18-2.04-.5...
frontend/src/components/Auth/presenter.js
plusbeauxjours/nomadgram
import React from 'react'; import styles from './styles.scss'; import PropTypes from 'prop-types'; import LoginForm from 'components/LoginForm'; import SignupForm from 'components/SignupForm'; const Auth = ( { action, changeAction }, context ) => ( <main className={styles.auth}> <div className={s...
app/index.js
binayverma/weathernow
import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import { browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { AppContainer } from 'react-hot-loader'; import configureStore from './store/configureStore'; import Root from './con...
examples/vuecli3-custom/styleguide/components/SectionsRenderer.js
vue-styleguidist/vue-styleguidist
import React from 'react'; import PropTypes from 'prop-types'; import Styled from 'rsg-components/Styled'; import Heading from 'rsg-components/Heading'; // Avoid circular ref // Import default implementation using `rsg-components-default` import DefaultSectionsRenderer from 'rsg-components-default/Sections/SectionsRen...
src/components/Home.js
aalselius/Test
import React, { Component } from 'react'; import Image from './Image.js'; import ImageHeader from './ImageHeader.js'; import InfoText from './InfoText.js'; import Header from './Header.js'; class Home extends Component { constructor() { super(); this.state = { imageUrl: '', ...
client/views/admin/settings/SettingsRoute.js
VoiSmart/Rocket.Chat
import React from 'react'; import NotAuthorizedPage from '../../../components/NotAuthorizedPage'; import { useRouteParameter } from '../../../contexts/RouterContext'; import { useIsPrivilegedSettingsContext } from '../../../contexts/SettingsContext'; import EditableSettingsProvider from '../../../providers/EditableSet...
src/components/posts_index.js
937aaron/reduxblog
import _ from 'lodash' import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchPosts } from '../actions'; import { Link } from 'react-router-dom'; class PostsIndex extends Component { componentDidMount() { this.props.fetchPosts() } renderPosts(){ return _.map(thi...
examples/tms/app.js
bartvde/sdk
/** TMS SDK application example. * */ import {createStore, combineReducers, applyMiddleware} from 'redux'; import thunkMiddleware from 'redux-thunk'; import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import SdkZoomControl from '@boundlessgeo/sdk/components/map/zoom...
src/index.dev.js
DeepBlueCLtd/lesco
import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import App from './App'; import {Provider} from 'react-redux'; import {syncHistoryWithStore} from 'react-router-redux'; import {browserHistory} from 'react-router'; import initialState from './reducers/ini...
ui/star_wars/src/Ship.js
iporaitech/pwr2-docker
import React from 'react'; import Relay from 'react-relay'; class StarWarsShip extends React.Component { render() { const {ship} = this.props; return <div>{ship.name}</div>; } } export default Relay.createContainer(StarWarsShip, { fragments: { ship: () => Relay.QL` fragment on Ship { i...
examples/js/custom/delete-button/fully-custom-delete-button.js
AllenFang/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ /* eslint no-alert: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { con...
client/modules/App/components/DevTools.js
lordknight1904/bigvnadmin
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-w" > <LogMonitor /> ...
example/examples/CustomOverlay.js
amitv87/react-native-maps
import React from 'react'; import { StyleSheet, View, Dimensions, } from 'react-native'; import MapView from 'react-native-maps'; import XMarksTheSpot from './CustomOverlayXMarksTheSpot'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LO...
fields/types/text/TextColumn.js
geminiyellow/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var TextColumn = React.createClass({ displayName: 'TextColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object...
app/containers/Assessments/Assessments.js
klpdotorg/tada-frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import isEmpty from 'lodash.isempty'; import { AssessmentTable } from '../../components/Assessments'; import { getAssessments, openDeactivateAssessmentsModal, deactivateAssessments, openDeleteAs...
client/components/surveys/results/ResultsPage.js
AnatolyBelobrovik/itechartlabs
import React from 'react'; import PropTypes from 'prop-types'; import ResultsSummary from './summary/ResultsSummary'; import ResultsIndividual from './individual/ResultsIndividual'; import classnames from 'classnames'; const ResultsPage = ({ id, currentPage, showSummary, answers, totalAnswers, questions, hasMandatoryL...
src/components/RadioInput.js
andresilveira/stendebach_pillows
import React from 'react'; import Input from './Input'; import '../bootstrap.min.css' const RadioInput = ({ label, ...inputProps}) => ( <div className="form-check"> <label className="form-check-label"> <Input className="form-check-input" type="radio" {...inputProps} /> { label || inputProps.value } </...
src/svg-icons/editor/vertical-align-bottom.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorVerticalAlignBottom = (props) => ( <SvgIcon {...props}> <path d="M16 13h-3V3h-2v10H8l4 4 4-4zM4 19v2h16v-2H4z"/> </SvgIcon> ); EditorVerticalAlignBottom = pure(EditorVerticalAlignBottom); EditorVertical...
src/components/app.js
abramin/reduxStarter
import React, { Component } from 'react'; export default class App extends Component { render() { return ( <div className='foo'>React simple starter</div> ); } }
addons/docs/src/frameworks/react/__testfixtures__/8428-js-static-prop-types/input.js
kadirahq/react-storybook
import React from 'react'; import PropTypes from 'prop-types'; // eslint-disable-next-line react/prefer-stateless-function export default class Test extends React.Component { static propTypes = { /** * Please work... */ test: PropTypes.string, }; render() { return <div>test</div>; } } e...
packages/wix-style-react/src/TableToolbar/TableToolbar.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import { Toolbar, ItemGroup, Item, Label, Divider } from './Toolbar'; import Heading from '../Heading'; import Text from '../Text'; export const Title = props => { const { dataHook } = props; return ( <Heading dataHook={dataHook} appearance="H3"> ...
src/svg-icons/content/create.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentCreate = (props) => ( <SvgIcon {...props}> <path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/...
src/components/topic/summary/export/DownloadMapFilesContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import withFilteredAsyncData from '../../FilteredAsyncDataContainer'; import { fetchTopicMapFiles } from '../../../../actions/topicActions'; import DownloadMapFiles from './DownloadMapFiles'; const DownloadMapFilesCon...
ui/src/components/RollupRuleEditor.js
m3db/m3ctl
// Copyright (c) 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge...
src/components/multiple.js
cyranosky/rrtimes_hlj
import React from 'react' import PropTypes from 'prop-types' const multiple = ({onAChange, onBChange, a, b, c}) => ( <div> <input onChange={onAChange} value={a} /> * <input onChange={onBChange} value={b} /> = <input value={c} /> </div> ) export default multiple
src/routes/chart/Container.js
shaohuawang2015/goldbeans-admin
import React from 'react' import PropTypes from 'prop-types' import styles from './Container.less' import { ResponsiveContainer } from 'recharts' const Container = ({ children, ratio = 5 / 2, minHeight = 250, maxHeight = 350 }) => <div className={styles.container} style={{ minHeight, maxHeight }}> <div style={{ marg...
webapp/src/Congratulation.js
gocaine/go-dart
import React from 'react'; const Congratulation = ({game, player}) => { if (game.Ongoing == 4) { return ( <div className="card horizontal"> <div className="card-stacked"> <div className="card-content"> Congratulations {player.Name} ...
web/static/js/components/mainform.js
ottolin/txportal
import React from 'react'; import {connect} from 'react-redux'; import {mainformTabSelected} from '../actions/mainform'; // UI import Navbar from 'react-bootstrap/lib/Navbar'; import NavItem from 'react-bootstrap/lib/NavItem'; import NavDropdown from 'react-bootstrap/lib/NavDropdown'; import Nav from 'react-bootstrap/...
node_modules/react-router/es/MemoryRouter.js
amiechen/amiechen.github.io
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
src/Header/Header.js
aTseniklidou/Randix-Game
import React from 'react'; import { IndexLink, Link } from 'react-router'; import classes from './Header.scss'; import Soundtrack from 'components/Game/assets/Wallpaper.mp3'; import { styles } from './Styles'; import VolumeOn from 'material-ui/svg-icons/AV/volume-up'; import VolumeOff from 'material-ui/svg-icons/AV/vol...
index.ios.js
vinicius-ov/Livefy
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, TextInput, ListView, Button, ActivityIndicator, Image, TouchableHighlight, Alert } from 'react-native'; export default class Livefy...
src/components/detail/index.js
lopesdasilva/trakt-it
/* Components */ import React, { Component } from 'react'; import { Container, Header, Title, Content, Card, CardItem, Icon, Button } from 'native-base'; import ReactNative, { StyleSheet, View, Text, ListView, Image } from 'react-native'; var ResponsiveImage = require('react-native-responsive-imag...
front_end/front_end_app/src/server/frontend/render.js
Horizon-Framework/horizon
import DocumentTitle from 'react-document-title'; import Html from './html.react'; import Promise from 'bluebird'; import React from 'react'; import Router from 'react-router'; import config from '../config'; import immutable from 'immutable'; import initialState from '../initialstate'; import routes from '../../client...
sms_sponsorship/webapp/src/components/ChildDetails.js
ecino/compassion-modules
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import ListItem from '@material-ui/core/ListItem'; import ChildDescription from './ChildDescription'; import Collapse from '@material-ui/core/Collapse'; import ExpandLess from '@material-ui/icons/Expand...
imports/ui/layouts/App.js
KyneSilverhide/expense-manager
import React from 'react'; import injectTapEventPlugin from 'react-tap-event-plugin'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import createPalette from 'material-ui/styles/palette'; import createMuiTheme from 'material-ui/styles/theme'; import { green, brown, red } from 'material-ui/styles/c...
src/utils/index.js
brancusi/lingo-client-react
import React from 'react'; import ReactDOM from 'react-dom'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; export function createConstants (...constants) { return constants.reduce((acc, constant) => { acc[constant] = constant; return acc; }, {}); } export function createRedu...
react-release/dominion-js/src/index.js
ExplosiveHippo/Dominion.js
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render( <App />, document.getElementById('root') );
src/svg-icons/action/accessibility.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccessibility = (props) => ( <SvgIcon {...props}> <path d="M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2z"/> </SvgIcon> ); ActionAccessibility = pure(ActionAccessib...
front_end/front_end_app/src/client/lib/validation.js
Horizon-Framework/horizon
/* Simple serial sync/async chriso/validator.js validation wrapper with promises. */ import Promise from 'bluebird'; import React from 'react'; import validator from 'validator'; export class ValidationError extends Error { constructor(message, prop) { super(); this.message = message; this.prop = prop;...
src/pages/tree/Searchtree/Searchtree.js
hyy1115/react-redux-webpack2
import React from 'react' class Searchtree extends React.Component { render() { return ( <div>Searchtree</div> ) } } export default Searchtree
src/icons/font/AttachmentIcon.js
skystebnicki/chamel
import React from 'react'; import PropTypes from 'prop-types'; import FontIcon from '../../FontIcon'; import ThemeService from '../../styles/ChamelThemeService'; /** * Attachment button * * @param props * @param context * @returns {ReactDOM} * @constructor */ const AttachmentIcon = (props, context) => { let t...
app/javascript/mastodon/components/column.js
alarky/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import scrollTop from '../scroll'; export default class Column extends React.PureComponent { static propTypes = { children: PropTypes.node, }; scrollTop () { const scrollable = this.node.querySelector('.scrollable'); if (!scrollable) {...
src/svg-icons/notification/sync-problem.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSyncProblem = (props) => ( <SvgIcon {...props}> <path d="M3 12c0 2.21.91 4.2 2.36 5.64L3 20h6v-6l-2.24 2.24C5.68 15.15 5 13.66 5 12c0-2.61 1.67-4.83 4-5.65V4.26C5.55 5.15 3 8.27 3 12zm8 5h2v-2h-2v2z...
app/javascript/mastodon/components/status_action_bar.js
ambition-vietnam/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from './icon_button'; import DropdownMenuContainer from '../containers/dropdown_menu_container'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePureCompo...
frontend/component/CommentEditor.js
plusse7en/practice-node-project
import React from 'react'; import jQuery from 'jquery'; import {addTopic} from '../lib/client'; import {redirectURL} from '../lib/utils'; import MarkdownEditor from './MarkdownEditor'; export default class CommentEditor extends React.Component { constructor(props) { super(props); this.state = props.comment ...
src/hooks/useReduxContext.js
rackt/react-redux
import { useContext } from 'react' import { ReactReduxContext } from '../components/Context' /** * A hook to access the value of the `ReactReduxContext`. This is a low-level * hook that you should usually not need to call directly. * * @returns {any} the value of the `ReactReduxContext` * * @example * * import...
src/svg-icons/action/power-settings-new.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPowerSettingsNew = (props) => ( <SvgIcon {...props}> <path d="M13 3h-2v10h2V3zm4.83 2.17l-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 ...
app/javascript/flavours/glitch/features/report/thanks.js
glitch-soc/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import Button from 'flavours/glitch/components/button'; import { connect } from 'react-redux'; import { unfollowAccount, muteAccount, blockAccou...
app/jsx/components/ICRadioButton.js
sfu/canvas_spaces
import React from 'react'; import PropTypes from 'prop-types'; const ICRadioButton = props => ( <div className="ic-Radio"> <input id={props.id} type="radio" name={props.name} value={props.value} checked={props.checked} onChange={props.onChange} /> <label htmlFor={props...
src/index.js
surce2010/react-webpack-gallery
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
src/js/components/Heading/stories/Color.js
HewlettPackard/grommet
import React from 'react'; import { Heading } from 'grommet'; export const Color = () => ( // Uncomment <Grommet> lines when using outside of storybook // <Grommet theme={...}> <Heading color="accent-1">Colored Heading</Heading> // </Grommet> ); export default { title: 'Type/Heading/Color', };
examples/column-ordering/src/App.js
tannerlinsley/react-table
import React from 'react' import styled from 'styled-components' import { useTable, useColumnOrder } from 'react-table' import makeData from './makeData' const Styles = styled.div` padding: 1rem; table { border-spacing: 0; border: 1px solid black; tr { :last-child { td { bord...
app/components/Window.js
josser/pickler
import React, { Component } from 'react'; import photon from "photon/sass/photon.scss"; export default class Window extends Component { render () { return ( <div className="window"> {this.props.children} </div> ) } }
client/src/components/ListOfProjects/ListOfProjects.js
karthijey/calltocode.org
import React from 'react' import PropTypes from 'prop-types' import styles from './ListOfProjects.css' import projects from '../../data/projects.json' import emailApiClient from '../../api/email' import { connect } from 'react-redux' function ListOfProjects (props) { const liClassName = props.loggedIn ? styles.lis...
docs/src/app/components/pages/get-started/Examples.js
rhaedes/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import examplesText from './examples.md'; const Examples = () => ( <div> <Title render={(previousTitle) => `Examples - ${previousTitle}`} /> <MarkdownElement text={examplesText} /> </...
react/gameday2/utils/layoutUtils.js
phil-lopreiato/the-blue-alliance
/* eslint-disable import/prefer-default-export */ import React from 'react' import SvgIcon from 'material-ui/SvgIcon' import { NUM_VIEWS_FOR_LAYOUT, LAYOUT_SVG_PATHS } from '../constants/LayoutConstants' // Convenience wrapper around NUM_VIEWS_FOR_LAYOUT that has bounds checking and // a sensible default. export funct...
node_modules/react-router/es6/Lifecycle.js
rakshitmidha/Weather_App_React
import warning from './routerWarning'; import React from 'react'; import invariant from 'invariant'; var object = React.PropTypes.object; /** * The Lifecycle mixin adds the routerWillLeave lifecycle method to a * component that may be used to cancel a transition or prompt the user * for confirmation. * * On stan...
web/src/Home/Banner/Banner.js
ncpierson/soundoftext
import React, { Component } from 'react'; import { OutboundLink } from 'react-ga'; const NAME = 'HEARLING_REMINDER_20210419'; class Banner extends Component { constructor() { super(); const dismissedBanner = localStorage.getItem('dismissedBanner') || ''; const hasDismissed = dismissedBanner === NAME; ...
packages/react-example/src/index.js
ilkkahanninen/petiole
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-petiole'; import store from './store'; import App from './components/App'; import './index.css'; ReactDOM.render( ( <Provider store={store}> <App /> </Provider> ), document.getElementById('root') );
src/fields/picker/index.js
bietkul/react-native-form-builder
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { View, Text } from 'native-base'; import { Platform, Picker, TouchableOpacity } from 'react-native'; import Panel from '../../components/panel'; import styles from './../../styles'; const Item = Picker.Item; export default class Pick...