path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
docs/src/NavMain.js
andrew-d/react-bootstrap
import React from 'react'; import { Link } from 'react-router'; import Navbar from '../../src/Navbar'; import Nav from '../../src/Nav'; const NAV_LINKS = { 'introduction': { link: 'introduction', title: 'Introduction' }, 'getting-started': { link: 'getting-started', title: 'Getting started' }, ...
app/jsx/external_apps/components/ConfigurationForm.js
venturehive/canvas-lms
/* * Copyright (C) 2014 - 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/Parser/Mage/Frost/Modules/Items/Tier20_2set.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import Combatants from 'Parser/Core/Modules/Combatants'; import Analyzer from 'Parser/Core/Analyzer'; import HIT_TYPES from 'Parser/Core/HIT_TYPES'; import calculateEffecti...
client/Components/ComponentParams/ParamSelector/ParamSelectorBoolean/index.js
myheritage/UiZoo.js
import React from 'react'; import MenuItem from '../../../UI/MenuItem'; import Menu from '../../../UI/Menu'; /** * @description * selector for boolean values * * @param {boolean} [selectedValue] * @param {function} onChange */ export default class ParamSelectorBoolean extends React.Component { constructor(...
docs/src/app/components/pages/components/Toolbar/ExampleSimple.js
ruifortes/material-ui
import React from 'react'; import IconMenu from 'material-ui/IconMenu'; import IconButton from 'material-ui/IconButton'; import FontIcon from 'material-ui/FontIcon'; import NavigationExpandMoreIcon from 'material-ui/svg-icons/navigation/expand-more'; import MenuItem from 'material-ui/MenuItem'; import DropDownMenu from...
js/src/views/Signer/signer.js
pdaian/parity
// Copyright 2015, 2016 Ethcore (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version....
doc/html.js
dpeek/dgraphql
import React from 'react' import DocumentTitle from 'react-document-title' import { prefixLink } from 'gatsby-helpers' import { TypographyStyle, GoogleFont } from 'react-typography' import typography from './utils/typography' import { colors } from 'utils/colors' const BUILD_TIME = new Date().getTime() module.export...
server/public/js/app/configList/components/Command.js
fendy3002/QzStringTools
import React from 'react'; var CommandList = function({command}){ return <div className="box box-primary"> <div className="box-body"> <table className="table table-condensed table-striped"> <tbody> <tr> <th>Code</th...
src/scenes/home/header/header.js
miaket/operationcode_frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './header.css'; import NavItem from './navItem/navItem'; import TopNav from './topNav/topNav'; import SideNav from './sideNav/sideNav'; import Logo from './logo/logo'; import Burger from...
src/components/Pond.js
MicheleV/da-beast
import React from 'react'; import PropTypes from 'prop-types'; import Button from './Button'; import * as craftConst from '../constants/crafts'; const playUi = (executeEvent, startEvent, backAction, isFIshing, canInteract, msg) => ( <span> <Button text="Go back!" isDisabled={isFIshing} onClick={() => backA...
app/components/Header/index.js
nypl-spacetime/where
import React from 'react' import { Link } from 'react-router' import { StyledHeader, Logo, Subtitles } from './styles' import nypl from 'images/nypl-white.svg' export default function Header (props) { return ( <StyledHeader className='align-center'> <div className='align-center'> <Logo style={{ba...
test/integration/production/pages/error-in-ssr-render.js
flybayer/next.js
import React from 'react' export default class ErrorInRenderPage extends React.Component { static async getInitialProps() { return {} } // eslint-disable-next-line react/require-render-return render() { throw new Error('An Expected error occured') } }
imports/ui/pages/Signup.js
zarazi/movies-listie
import React from 'react'; import { Link } from 'react-router'; import { Row, Col, FormGroup, ControlLabel, FormControl, Button } from 'react-bootstrap'; import handleSignup from '../../modules/signup'; export default class Signup extends React.Component { componentDidMount() { handleSignup({ component: this });...
src/svg-icons/device/battery-charging-20.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryCharging20 = (props) => ( <SvgIcon {...props}> <path d="M11 20v-3H7v3.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V17h-4.4L11 20z"/><path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 ...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/react-router-dom/es/Link.js
bhathiya/test
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; }; function _objectWithoutProperties(obj, keys) { var target = {...
src/client.js
Tarabyte/foodlr-web
import React from 'react' import { render, unmountComponentAtNode } from 'react-dom' import { Provider } from 'react-redux' import { Router, browserHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import config from './config' import create from './redux/create' import getRoutes f...
app/components/events/event-list.js
pompopo/pomhub
import React from 'react' import { connect } from 'react-redux' import Event from './event' import { fetchEvents } from '../../actions/github' export default class EventList extends React.Component { componentDidMount() { this.props.fetch(); } render() { if (this.props.events) { let list = this.pr...
lib/components/SignInPage.js
mlimberg/Digidex
import React from 'react'; import Login from './Login'; import { signIn } from '../firebase' import Link from './Link'; const SignInPage = ({ assign, setUser }) => { return ( <div> <div id='header'> <Link to='/'> <h1 id='main-header'>DigiDex</h1> </Link> </div> <Lo...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
tarunitar/vinanalytix
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
client/src/user/ChartRow.js
flyrightsister/boxcharter
/* * Copyright (c) 2017 Bonnie Schulkin. All Rights Reserved. * * This file is part of BoxCharter. * * BoxCharter 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, ...
src/components/attributes/scatter-plot/local-attributes/ToolTip.js
jjeffreyma/ID3-React
import React, { Component } from 'react'; class ToolTip extends Component { constructor(props) { super(props); this.state = { checkbox: false } this.handleCheckbox = this.handleCheckbox.bind(this); this.onSubmit = this.onSubmit.bind(this); } onSubmit(event) { event.preventDefault()...
src/svg-icons/device/signal-cellular-connected-no-internet-1-bar.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularConnectedNoInternet1Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M20 10v8h2v-8h-2zm-8 12V12L2 22h10zm8 0h2v-2h-2v2z"/> </SvgIcon> ); Devi...
src/svg-icons/notification/phone-locked.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPhoneLocked = (props) => ( <SvgIcon {...props}> <path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C8.7 6.45 8.5 5...
node_modules/react-bootstrap/es/SplitButton.js
yeshdev1/Everydays-project
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from...
src/entypo/Chat.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Chat'; let EntypoChat = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M5.8,12.2V6H2C0.9,6,0,6.9,0,8v6c0,1.1,0.9,2,2,2h1v3l3-3h5c1.1,0,2-0.9,2-2v-1.82c-0.064,0.014-0.132,0.021-...
spec/components/drawer.js
showings/react-toolbox
import React from 'react'; import Button from '../../components/button'; import Drawer from '../../components/drawer'; import style from '../style.css'; class DrawerTest extends React.Component { state = { leftActive: false, rightActive: false, }; handleToggleLeft = () => { this.setState({ leftActiv...
src/svg-icons/image/flash-off.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFlashOff = (props) => ( <SvgIcon {...props}> <path d="M3.27 3L2 4.27l5 5V13h3v9l3.58-6.14L17.73 20 19 18.73 3.27 3zM17 10h-4l4-8H7v2.18l8.46 8.46L17 10z"/> </SvgIcon> ); ImageFlashOff = pure(ImageFlashOf...
src/svg-icons/image/exposure-plus-2.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageExposurePlus2 = (props) => ( <SvgIcon {...props}> <path d="M16.05 16.29l2.86-3.07c.38-.39.72-.79 1.04-1.18.32-.39.59-.78.82-1.17.23-.39.41-.78.54-1.17.13-.39.19-.79.19-1.18 0-.53-.09-1.02-.27-1.46-.18-.44-...
modules/RouterContext.js
rdjpalmer/react-router
import invariant from 'invariant' import React from 'react' import deprecateObjectProperties from './deprecateObjectProperties' import getRouteParams from './getRouteParams' import { isReactChildren } from './RouteUtils' import warning from './warning' const { array, func, object } = React.PropTypes /** * A <Router...
src/containers/LoginForm.js
jenca-cloud/jenca-gui
import React from 'react' import { connect } from 'react-redux' import { switchLoginMode, updateEmail, updatePassword } from '../actions/loginform' import { registerUser, registerUserError } from '../actions/register' import { loginUser, loginUserError } from '../actions/login' import LoginForm from '../components/Logi...
src/svg-icons/action/announcement.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAnnouncement = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 9h-2V5h2v6zm0 4h-2v-2h2v2z"/> </SvgIcon> ); ActionAnnouncement = pu...
examples/official-storybook/components/DelayedRender.js
kadirahq/react-storybook
import React, { Component } from 'react'; import PropTypes from 'prop-types'; export default class DelayedRender extends Component { static propTypes = { children: PropTypes.node.isRequired, }; state = { show: false, }; componentDidMount() { this.showTO = setTimeout(() => { this.setState(...
src/js/components/icons/base/SocialVimeo.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/components/TodoApp.js
taggon/redux-example-todo
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import Header from './Header'; import MainSection from './MainSection'; import * as TodoActions from '../actions/todos'; import todoStore from '../store/todoStore'; var actions = bindActionCreators(TodoActions, todoStore.dispatch); ...
fields/components/columns/ArrayColumn.js
geminiyellow/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var ArrayColumn = React.createClass({ displayName: 'ArrayColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.obje...
src/svg-icons/image/filter.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter = (props) => ( <SvgIcon {...props}> <path d="M15.96 10.29l-2.75 3.54-1.96-2.36L8.5 15h11l-3.54-4.71zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1...
src/pages/list/imagePreview.js
neekey/daigou
import React from 'react'; import style from './imagePreview.scss'; export default function ImagePreview(props) { return (<div className={style.container} onClick={props.onRequestClose}> <img className={style.image} src={props.url} alt="preview" /> </div>); } ImagePreview.propTypes = { onRequestClose: React...
src/components/Framework.react.js
Magics-Group/throw-client
import React from 'react' import injectTapEventPlugin from 'react-tap-event-plugin' import Player from './Player' import DashBoard from './Dashboard' class If extends React.Component { render() { return this.props.test ? this.props.children : null } } export default class Framework extends React.Compo...
app/views/CustomCodeView/components/Tables.js
omeryagmurlu/algoriv
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import IconButton from 'material-ui/IconButton'; import FlatButton from 'material-ui/FlatButton'; import TextField from 'material-ui/TextField'; import { ListItem, List } from 'material-ui/List'; import Dialog from 'app/components/Dialog'; im...
examples/basic-toggle-open-closed/src/App.js
casesandberg/react-color
/* eslint-disable no-console */ import React from 'react' import { CompactPicker } from 'react-color' class App extends React.Component { state = { pickerVisible: false, } render() { const handleColorChange = ({ hex }) => console.log(hex) const onTogglePicker = () => this.setState({ pickerVisible: ...
src/components/Feedback/Feedback.js
danielxiaowxx/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback extends Component { render() { return ( <div className="Feedback...
src/components/SettingsComponent.js
loehnertz/HSRMMedialabTimetableApp
import React, { Component } from 'react'; import { Text, View, ScrollView, TouchableOpacity, Picker, Switch, Linking, Platform } from 'react-native'; import { Card, CardSection, Button } from './common'; import { connect } from 'react-redux'; import { saveSettings } from '../...
src/parser/warrior/fury/modules/talents/FuriousSlashUptime.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatDuration, formatPercentage } from 'common/format'; import { STATISTIC_ORDER } from 'interface/others/StatisticBox...
new-lamassu-admin/src/pages/Authentication/Login.js
naconner/lamassu-server
import { makeStyles, Grid } from '@material-ui/core' import React from 'react' import LoginCard from './LoginCard' import styles from './shared.styles' const useStyles = makeStyles(styles) const Login = () => { const classes = useStyles() return ( <Grid container spacing={0} direction="col...
src/svg-icons/device/network-wifi.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceNetworkWifi = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M3.53 10.95l8.46 10.54.01.0...
apps/phx_web/web/static/js/components/node_card.js
harmon25/roygbiv_cntrl
import React from 'react' import {Card, CardActions, CardHeader, CardTitle, CardText} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; import { SliderPicker, CirclePicker, GithubPicker } from 'react-color'; import Avatar from 'material-ui/Avatar'; import IconButton from 'material-ui/IconButton'...
src/containers/ui/DrawerContainer.js
npdat/Demo_React_Native
/** * Whole App Container * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View } from 'react-native'; import { connect } from 'react-redux'; import SideMenu from 'react-native-side-menu'; im...
public/assets/scripts/components/navigation/bottomNav.js
luisfbmelo/reda
import React from 'react'; import { Component } from 'react'; import Link from 'react-router/lib/Link' import { Nav, Navbar, NavItem } from 'react-bootstrap'; export default class BottomNav extends Component { isActive(location, target){ location = location.length > 1 ? location.replace(/^\//, '') : location; r...
actor-apps/app-web/src/app/components/Main.react.js
VikingDen/actor-platform
import React from 'react'; import requireAuth from 'utils/require-auth'; import VisibilityActionCreators from '../actions/VisibilityActionCreators'; import FaviconActionCreators from 'actions/FaviconActionCreators'; import FaviconStore from 'stores/FaviconStore'; import ActivitySection from 'components/ActivitySecti...
src/parser/hunter/beastmastery/modules/talents/KillerCobra.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import Analyzer from 'parser/core/Analyzer'; import SpellUsable from 'parser/shared/modules/SpellUsable'; import { formatNumber } from 'common/format'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import SpellLink from 'common/Spel...
browser/app/js/components/Login.js
luomeiqin/minio
/* * Minio Cloud Storage (C) 2016 Minio, Inc. * * 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...
client/scripts/components/signin/SignInForm.js
Akad1070/youtubenode-app
import React from 'react'; import {validateInput} from '../../../../server/dao/User' import InputBoxGroup from '../commons/InputBoxGroup'; export default class SignInForm extends React.Component { constructor(props){ super(props); this.state ={ errors : {}, isLoading : fa...
src/components/PullToRefresh.js
vonubisch/Cordova-PhoneGap-Babel-React-Hotloader-Webpack-OnsenUI-FontAwesome
import React from 'react'; import { Page, PullHook, Toolbar, Icon, BackButton, List, ListItem, ListHeader } from 'react-onsenui'; class PullToRefresh extends React.Component { constructor(props) { super(props); this.state = { pullHookState: 'initial', ...
scripts/rollup/shims/rollup/assign-umd.js
anushreesubramani/react
/** * Copyright (c) 2013-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 from 'react'; const ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; export default...
cheesecakes/plugins/email/admin/src/containers/NotFoundPage/index.js
strapi/strapi-examples
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a neccessity for you then you can refactor i...
src/svg-icons/places/kitchen.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesKitchen = (props) => ( <SvgIcon {...props}> <path d="M18 2.01L6 2c-1.1 0-2 .89-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.11-.9-1.99-2-1.99zM18 20H6v-9.02h12V20zm0-11H6V4h12v5zM8 5h2v3H8zm0 7h2v5H8z"/> ...
frontend/components/dashboard.js
BernalHillbillies/waffles
import React from 'react'; import SearchInput from './SearchInput'; const waffleImage = require("file-loader!../img/waffle.png"); const Dashboard = () => ( <div className={'dashboardContainer'}> <div className={'dashboardHeadersWrapper'}> <img src={waffleImage} width={60} height={60} ...
ui/src/components/Position.js
Ion-Petcu/StockTrainer
import React from 'react' export class Position extends React.Component { constructor(props) { super(props); this.state = { 'units': 100 } } onUnitsChange(event) { this.setState({units: parseInt(event.target.value)}); } buyUnits() { this.props....
examples/react-todomvc/components/TodoTextInput.js
lahmatiy/component-inspector
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; export default class TodoTextInput extends Component { static propTypes = { onSave: PropTypes.func.isRequired, text: PropTypes.string, placeholder: PropTypes.string, editing: PropTypes.b...
webpack/move_to_foreman/components/common/table/formatters/collapseableAndSelectionCellFormatter.js
cfouant/katello
import React from 'react'; import selectionCellFormatter from './selectionCellFormatter'; import CollapseSubscriptionGroupButton from '../components/CollapseSubscriptionGroupButton'; export default (collapseableController, selectionController, additionalData) => { const shouldShowCollapseButton = collapseableControl...
pages/roster/women.js
InnoD-WebTier/calwtcrew
import React from 'react'; import Roster from '../../components/Roster'; import photo from '../../assets/images/womensroster.jpg'; import '../../css/roster.scss'; const RosterPage = () => { const varsityPlayers = [ { name: 'Cassie Redding', side: 'Starboard', year: 'Junior', hometown: 'P...
webpack/containers/Application/index.js
mccun934/katello
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { BrowserRouter as Router } from 'react-router-dom'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { orgId } from '../../services/api'; import * as actions from '../../scenes/Organizations/Or...
src/components/ReactMeteorData.js
inProgress-team/react-native-meteor
import React from 'react'; import EJSON from 'ejson'; import Data from '../Data'; import MeteorDataManager from './MeteorDataManager'; const ReactMeteorData = { componentWillMount() { Data.waitDdpReady(() => { if (this.getMeteorData) { this.data = {}; this._meteorDataManager = new MeteorDa...
gui/components/App/App.js
siauPatrick/seimur
import React from 'react'; import {browserHistory, Link} from 'react-router'; export default function App({children}) { return ( <div>{children}</div> ) }
docs/src/pages/guides/interoperability/StyledComponents.js
lgollut/material-ui
import React from 'react'; import styled from 'styled-components'; import Button from '@material-ui/core/Button'; import NoSsr from '@material-ui/core/NoSsr'; const StyledButton = styled(Button)` background-color: #6772e5; color: #fff; box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08); ...
src/components/GithubButton/GithubButton.js
tpphu/react-pwa
import React, { Component } from 'react'; import PropTypes from 'prop-types'; export default class GithubButton extends Component { static propTypes = { user: PropTypes.string.isRequired, repo: PropTypes.string.isRequired, type: PropTypes.oneOf(['star', 'watch', 'fork', 'follow']).isRequired, width: ...
src/templates/post-template.js
hb-gatsby/gatsby-starter-lumen
// @flow strict import React from 'react'; import { graphql } from 'gatsby'; import Layout from '../components/Layout'; import Post from '../components/Post'; import { useSiteMetadata } from '../hooks'; import type { MarkdownRemark } from '../types'; type Props = { data: { markdownRemark: MarkdownRemark } }; ...
src/interface/report/Results/Overview/Suggestions/Suggestion.js
fyruna/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import UpArrow from 'interface/icons/UpArrow'; import ISSUE_IMPORTANCE from 'parser/core/ISSUE_IMPORTANCE'; import Icon from 'common/Icon'; function getIssueImportance(importance) { switch (importance) { case ISSUE_IMPORTANCE.MAJOR: return <...
src/game/log.js
howardjing/chess-calculator
// @flow import React, { Component } from 'react'; import styled from 'styled-components'; import type { Move } from './index'; type Props = { history: Move[], index: number, onChangeIndex: (index: number) => any, }; const byTurns = (history: Move[]): [string, string][] => { const turns = []; let newTurn = ...
src/moments/SingleView.js
petertrotman/critrolemoments
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { connect } from 'react-redux'; import { Switch, Route } from 'react-router'; import Moment from './Moment'; import EditView from './EditView'; import Loading from '../loading/Loading'; import { requestSingle ...
renderer/components/preferences/categories/plugins/tab.js
wulkano/kap
import React from 'react'; import PropTypes from 'prop-types'; import Plugin from './plugin'; export const EmptyTab = ({title, subtitle, link, onClick, showIcon, image}) => { return ( <div className="container"> <div className="content"> { showIcon && <div className="icon">📦</div> } <div ...
admin/client/App/shared/InvalidFieldType.js
everisARQ/keystone
/** * Renders an "Invalid Field Type" error */ import React from 'react'; const InvalidFieldType = function (props) { return ( <div className="alert alert-danger"> Invalid field type <strong>{props.type}</strong> at path <strong>{props.path}</strong> </div> ); }; InvalidFieldType.propTypes = { path: Reac...
src/src/Tabs/Background.js
ioBroker/ioBroker.web
import React, { Component } from 'react'; import { withStyles } from '@material-ui/core/styles'; import PropTypes from 'prop-types'; import Dropzone from 'react-dropzone'; import I18n from '@iobroker/adapter-react/i18n'; import Toast from '../Components/Toast'; import CustomCheckbox from '../Components/CustomCheckbox...
client/src/app/routes/settings/containers/Students/StudentEditForm.js
zraees/sms-project
import React from 'react' import { reset } from 'redux-form'; import axios from 'axios'; import classNames from 'classnames'; import isEmpty from 'lodash/isEmpty'; // import EditGeneralInfo from './EditGeneralInfo' import PreviousSchoolsForm from './PreviousSchoolsForm' import SiblingDetailsForm from './SiblingDetails...
005-animation/source/bootstrap/container.js
02GEEK/course-react-ui
import React from 'react'; export default class Container extends React.Component{ render(){ const cls = `container${this.props.fluid?'-fluid':''} ${this.props.className || ''}`; return <div className={cls} style={this.props.style}> {this.props.children} </div>; } }
src/js/components/icons/base/PlatformSuse.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
YEAR 3/SEM 1/MOBILE/non-native/PhotoReact/components/PasswordTextInput.js
Zephyrrus/ubb
import React from 'react'; import { TextInput } from 'react-native'; export default class PasswordTextInput extends React.Component { render() { return <TextInput {...this.props} secureTextEntry={true} autoCapitalize="none" autoCorrect={false} />; } }
src/basic/Title.js
sampsasaarela/NativeBase
/* @flow */ import React, { Component } from 'react'; import { Text } from 'react-native'; import { connectStyle } from 'native-base-shoutem-theme'; import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; class Title extends Component { render() { return ( <Text ref={c => this._root = c} {...th...
packages/ringcentral-widgets/lib/PhoneProvider/index.js
u9520107/ringcentral-js-widget
import React, { Component } from 'react'; import PropTypes from 'prop-types'; export default class PhoneProvider extends Component { getChildContext() { return { phone: this.props.phone, }; } render() { return this.props.children; } } PhoneProvider.propTypes = { phone: PropTypes.object.isR...
admin/src/react/template-add-page/item.js
sggdv/vegan
import React, { Component } from 'react'; import { findDOMNode } from 'react-dom'; import { Well, Glyphicon, FormControl, FormGroup, Col, } from 'react-bootstrap'; import { DragSource, DropTarget } from 'react-dnd'; import { DNDTypes, ItemTypes } from '../common/constants'; import OptionBox from './option-box'; c...
src/parser/paladin/retribution/modules/core/ArtOfWar.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import Combatants from 'parser/shared/modul...
examples/dynamic-segments/app.js
cgrossde/react-router
import React from 'react'; import { Router, Route, Link, Redirect } from 'react-router'; var App = React.createClass({ render() { return ( <div> <ul> <li><Link to="/user/123">Bob</Link></li> <li><Link to="/user/abc">Sally</Link></li> </ul> {this.props.children} ...
packages/mineral-ui-icons/src/IconStore.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconStore(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps}> ...
stories/Callbacks.js
arncet/react-viewmore
import React from 'react' import { action } from '@kadira/storybook' import Readmore from '../src/index' import LoremHTML from './LoremHTML' const Callbacks = () => ( <Readmore onHide={action('onHide !')} onShow={action('onShow !')} onReadmore={action('onReadmore !')} onReadless={action('onReadless !')}> <LoremH...
app/mobile.js
monodev619/on-it
import React, { Component } from 'react'; import { StyleSheet, Text, View } from 'react-native'; function mobile():Component { class Root extends Component { constructor() { super() } render() { return ( <View style={styles.container}> ...
pootle/static/js/editor/components/EditingArea.js
evernote/zing
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import cx from 'classnames'; import React from 'react'; c...
src/svg-icons/av/hearing.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvHearing = (props) => ( <SvgIcon {...props}> <path d="M17 20c-.29 0-.56-.06-.76-.15-.71-.37-1.21-.88-1.71-2.38-.51-1.56-1.47-2.29-2.39-3-.79-.61-1.61-1.24-2.32-2.53C9.29 10.98 9 9.93 9 9c0-2.8 2.2-5 5-5s5 2.2 ...
src/mixins/helpers.js
sanbornmedia/react-slick
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import {getTrackCSS, getTrackLeft, getTrackAnimateCSS, round} from './trackHelper'; import assign from 'object-assign'; var helpers = { initialize: function (props) { const slickList = ReactDOM.findDOMNode(this.list); var slideCount...
src/svg-icons/av/forward-30.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvForward30 = (props) => ( <SvgIcon {...props}> <path d="M9.6 13.5h.4c.2 0 .4-.1.5-.2s.2-.2.2-.4v-.2s-.1-.1-.1-.2-.1-.1-.2-.1h-.5s-.1.1-.2.1-.1.1-.1.2v.2h-1c0-.2 0-.3.1-.5s.2-.3.3-.4.3-.2.4-.2.4-.1.5-.1c.2 0 .4...
source/test/fixtures/client.js
keystonejs/react-easy-universal
import React from 'react'; import universal from '../../client'; import routes from './routes'; import reducers from './reducers'; // returns a function that must be invoked to trigger render const app = universal({ React, routes, reducers }); // The app function will return your store so you can dispatch actions. c...
packages/react-interactions/events/src/dom/Focus.js
TheBlasfem/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type { ReactDOMResponderEvent, ReactDOMResponderContext, PointerType, } from 'shared/ReactDOMTypes'; impo...
app/components/IconButton/index.js
rjgreaves/finances
/** * * IconButton * */ import React from 'react'; import FontAwesome from 'react-fontawesome'; import classNames from 'classnames'; import styles from './styles.css'; function IconButton({ onClick, icon, iconClass, buttonClass }) { return ( <div className={classNames(styles.iconButton, buttonClass)} ...
front/src/components/body/auth/AuthError.js
litleleprikon/ds_chat
/** * Created by litleleprikon on 17/11/2016. * ___ __ ___ ___ __ * /\_ \ __/\ \__/\_ \ /\_ \ __/\ \ * \//\ \ /\_\ \ ,_\//\ \ __\//\ \ __ _____ _ __ /\_\ \ \/'\ ___ ___ * \ \ \ \/\ \ \ \/ \ \ \ /'__`\\ ...
client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/rates-step/list.js
Automattic/woocommerce-services
/** @format */ /** * External dependencies */ import React from 'react'; import PropTypes from 'prop-types'; import { localize } from 'i18n-calypso'; import { mapValues } from 'lodash'; /** * Internal dependencies */ import FieldError from 'woocommerce/woocommerce-services/components/field-error'; import Notice f...
packages/react-error-overlay/src/components/CloseButton.js
reedsa/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. */ /* @flow */ import React from 'react'; import { black } from '../styles'; const closeButtonStyle = { color: black, lineHeight: '1re...
index/containers/DataDetailContainer.js
JDRomano2/VenomKB
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { selectData, fetchData } from '../actions'; import { Link } from 'react-router-dom'; import { Nav, NavItem, Button, Glyphicon } from 'react-bootstrap'; import FileSaver from 'file-saver'; import...
docs/src/app/components/pages/components/RaisedButton/ExampleSimple.js
rhaedes/material-ui
import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; const style = { margin: 12, }; const RaisedButtonExampleSimple = () => ( <div> <RaisedButton label="Default" style={style} /> <RaisedButton label="Primary" primary={true} style={style} /> <RaisedButton label="Secondary" se...
generators/app/templates/app/src/helpers/DevTools/DevTools.js
hasura/generator-hasura-web
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-q"> <LogMonitor /...
app/javascript/mastodon/features/ui/components/columns_area.js
mstdn-jp/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl } from 'react-intl'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ReactSwipeableViews from 'react-swipeable-views'; import { links, getIndex, get...
fields/types/geopoint/GeoPointFilter.js
tony2cssc/keystone
import React from 'react'; import { FormField, FormInput, FormRow, SegmentedControl } from 'elemental'; const DISTANCE_OPTIONS = [ { label: 'Max distance (km)', value: 'max' }, { label: 'Min distance (km)', value: 'min' }, ]; function getDefaultValue () { return { lat: undefined, lon: undefined, distance: {...