path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
packages/icons/src/md/action/HighlightOff.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdHighlightOff(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M29.17 16L24 21.17 18.83 16 16 18.83 21.17 24 16 29.17 18.83 32 24 26.83 29.17 32 32 29.17 26.83 24 32 18.83 29.17 16zM24 4c11.05 0 20 8.95 20 2...
src/components/ContentWithVideos/ContentWithVideos.js
Galernaya20/galernaya20.com
// @flow import React from 'react' import styled from 'styled-components' const Container = styled.div` align-items: center; ` const Video = styled.div` margin-right: 40px; &:last-of-type { margin-right: 0; } ` const VideoContainer = styled.div` display: flex; justify-content: space-evenly; width:...
imports/ui/pages/NewJournal/NewJournal.js
jamiebones/Journal_Publication
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; import { Row, Col, FormGroup, ControlLabel, Panel , FormControl, Button , Label , Well } from 'react-bootstrap'; import { Bert } from 'meteor/themeteorchef:bert'; import validate from '../../../modules/va...
src/svg-icons/action/zoom-in.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionZoomIn = (props) => ( <SvgIcon {...props}> <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 1...
src/screens/App/components/Footer/index.js
yanglinz/reddio
import React from 'react'; import settings from 'settings'; import './index.scss'; function Footer() { return ( <div className="Footer"> <p>Build {settings.GIT_HASH_SHORT}</p> </div> ); } module.exports = Footer;
test/MentionSelectCell/index.js
oneteam-dev/react-oneteam
import test from 'ava'; import React from 'react'; import renderer from 'react-test-renderer'; import MentionSelectCell from '../../src/MentionSelectCell'; test('MentionSelectCell snapshot testing', t => { const component = renderer.create( <MentionSelectCell user={{ name: 'Shingo Sato', user_name: 'sugars...
renderer/components/Activity/ActivityActions/ActivityRefresh.js
LN-Zap/zap-desktop
import React from 'react' import PropTypes from 'prop-types' import { useIntl } from 'react-intl' import Refresh from 'components/Icon/Refresh' import { ActionButton } from 'components/UI' import messages from './messages' const ActivityRefresh = ({ isPageLoading, onClick, ...rest }) => { const { formatMessage } = u...
examples/counter/containers/App.js
yinsu/redux
import React, { Component } from 'react'; import CounterApp from './CounterApp'; import { createRedux } from 'redux'; import { Provider } from 'redux/react'; import * as stores from '../stores'; const redux = createRedux(stores); export default class App extends Component { render() { return ( <Provider r...
packages/ringcentral-widgets/components/IconLine/index.js
ringcentral/ringcentral-js-widget
import React from 'react'; import PropTypes from 'prop-types'; import Line from '../Line'; import IconField from '../IconField'; export default function IconLine(props) { return ( <Line className={props.className} onClick={props.onClick} dataSign={props.dataSign} noBorder={props.noBorder}...
src/app/containers/App.js
skratchdot/web-audio-api-archive
import React, { Component } from 'react'; import { red500, red700 } from 'material-ui/styles/colors'; import DevTools from '~/src/app/containers/DevTools'; import Footer from '~/src/app/components/Footer'; import Header from '~/src/app/components/Header'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvide...
src/pages/Mooc.js
ishwarsawale/ishwarsawale.github.io
import React from 'react'; import { Link } from 'react-router-dom'; import Main from '../layouts/Main'; import data from '../data/mooc'; const tableStyle = { border: '1px solid black', borderCollapse: 'collapse', textAlign: 'center', width: '100%' } const tdStyle = { // border: '1px solid #85C1E9...
projects/ILAFB-m-fe/src/pages/home/home.js
AidanDai/graduation-design
import 'react-hot-loader/patch' import React from 'react' import ReactDOM from 'react-dom' import { AppContainer } from 'react-hot-loader' import Home from './home.page' let ele = document.querySelector('#content') ReactDOM.render( <AppContainer> <Home/> </AppContainer>, ele ) if (module.hot) { module.hot.acc...
demo/src/basic_sequence.js
bringking/react-web-animation
import React, { Component } from 'react'; import { AnimationSequence, Animatable } from 'react-web-animation'; export default class BasicSequence extends Component { constructor() { super(); this.state = { currentTime: 0, playState: 'running', }; } getKeyFrames() { return [ { t...
wrap-root-element.js
mannieschumpert/MannieSchumpert.com
import React from 'react' import { MDXProvider } from '@mdx-js/tag' import { Code } from './src/components/code' import { preToCodeBlock } from 'mdx-utils' // components is its own object outside of render so that the references to // components are stable const components = { pre: preProps => { const props = pr...
components/Material/MaterialValidation.js
viromedia/viro
/** * Copyright (c) 2016-present, Viro, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModu...
src/svg-icons/action/perm-media.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermMedia = (props) => ( <SvgIcon {...props}> <path d="M2 6H0v5h.01L0 20c0 1.1.9 2 2 2h18v-2H2V6zm20-2h-8l-2-2H6c-1.1 0-1.99.9-1.99 2L4 16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7 15l4.5-6 3.5 ...
client/scripts/application.js
rubeniskov/web-palomasafe
import React from 'react'; import ReactDOM from 'react-dom'; import axios from 'axios'; import PostList from './components/post-list'; import Preloader from './components/preloader'; import NavbarMenu from './components/navbar-menu'; import SidebarMenu from './components/sidebar-menu'; import SliderGallery from './com...
ui/stories/components/Center.js
brianbaker/chronograf
import React from 'react' const Center = ({children}) => ( <div style={{ position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%)', }}> {children} </div> ) export default Center
test/integration/client-navigation/pages/nav/hash-changes.js
JeromeFitz/next.js
import React from 'react' import Link from 'next/link' import { useRouter } from 'next/router' let count = 0 const HashChanges = ({ count }) => { const router = useRouter() return ( <div id="hash-changes-page"> <Link href="#via-link"> <a id="via-link">Via Link</a> </Link> <a href="#...
src/js/components/icons/base/FormNextLink.js
kylebyerly-hp/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...
examples/row-selection-and-pagination/src/App.js
react-tools/react-table
import React from 'react' import styled from 'styled-components' import { useTable, usePagination, useRowSelect } 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 { ...
app/js/dashboard/update_server_list.js
yock/forte-gui
import React, { Component } from 'react'; import CredentialedServer from './credentialed_server'; export default class UpdateServerList extends Component { render() { <ul className="updateserverlist"> {this.props.servers.map(server => <CredentialedServer key={server.id} id={server.id} hostname={ser...
src/entypo/Warning.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Warning'; let EntypoWarning = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M19.511,17.98L10.604,1.348C10.48,1.133,10.25,1,10,1C9.749,1,9.519,1.133,9.396,1.348L0.49,17.98c-0.1...
js/components/empty-states/SREmptyState.js
iMaddin/Benkio
// @flow import React from 'react' import { StyleSheet, View } from 'react-native' const side = 38 const shapeColor = 'rgba(57, 62, 65, 0.2)' export default class SREmptyState extends React.Component { render() { return( <View style={[this.props.style, styles.containerView]}> <View style={[styles...
app/javascript/mastodon/features/keyboard_shortcuts/index.js
Craftodon/Craftodon
import React from 'react'; import Column from '../ui/components/column'; import ColumnBackButtonSlim from '../../components/column_back_button_slim'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-co...
src/svg-icons/av/av-timer.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvAvTimer = (props) => ( <SvgIcon {...props}> <path d="M11 17c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1-1 .45-1 1zm0-14v4h2V5.08c3.39.49 6 3.39 6 6.92 0 3.87-3.13 7-7 7s-7-3.13-7-7c0-1.68.59-3.22 1.58-4.42L12 13l1.41-...
app/screens/add-edit-task.js
CarlaCrandall/DoItNow
import React, { Component } from 'react'; import { Keyboard, TouchableWithoutFeedback, View } from 'react-native'; import { ConnectedTaskForm } from '../components'; import { AddEditTaskStyles } from '../styles/containers'; export default class AddEditTask extends Component { getValuesFromListType(list) { ...
packages/react-router-website/modules/components/Footer.js
react-translate-team/react-router-CN
import React from 'react' import { Block, Inline } from 'jsxstyle' import { DARK_GRAY, BRIGHT_GRAY, LIGHT_GRAY } from '../Theme' import NewsletterSignup from './NewsletterSignup' const FooterLink = ({ href, ...rest }) => ( <Inline component="a" props={{ href }} {...rest} textDecoration="underline"/> ) const ReactTr...
src/routes/dashboard/components/quote.js
tigaly/antd-admin
import React from 'react' import PropTypes from 'prop-types' import styles from './quote.less' function Quote ({ name, content, title, avatar }) { return ( <div className={styles.quote}> <div className={styles.inner}> {content} </div> <div className={styles.footer}> <div classNa...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/DefaultPropsInline.js
ylu1317/flow
// @flow import React from 'react'; class MyComponent extends React.Component { static defaultProps: {a: number, b: number, c: number} = {a: 1, b: 2, c: 3}; props: Props; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extend...
app/containers/LocalContent/index.js
dedywahyudi/lilly-contentful
import React from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; // import RichTextEditor from 'react-rte'; import { Link } from 'react-router'; // import { Checkbox, Grid, Modal, Icon } from 'semantic-ui-react'; import ReactModal from 'react-modal'; // import { makeSelectPage, makeSele...
react-native-kit/mlist.js
fromatlantis/nojs
import React from 'react'; import { View, Text, Image, Navigator, StyleSheet, StatusBar, TouchableOpacity, Platform, Dimensions } from 'react-native'; import { StackNavigator } from 'react-navigation'; class MList extends React.Component { static navigationOptions = { tit...
pootle/static/js/auth/components/RequestPasswordResetSent.js
r-o-b-b-i-e/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import { PureRenderMixin } from...
node_modules/react-router/es6/Redirect.js
Zach417/churchetto-web
'use strict'; import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { formatPattern } from './PatternUtils'; import { falsy } from './PropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropT...
client/js/app.js
ericwgreene/relay-practice
import 'bootstrap-loader'; import '../scss/styles.scss'; import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import { createBrowserRouter, makeRouteConfig, Route, Link } from 'found'; import { HomePage } from './components/home-page'; import { CreatePage } from './compo...
src/svg-icons/device/battery-20.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBattery20 = (props) => ( <SvgIcon {...props}> <path d="M7 17v3.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V17H7z"/><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7...
src/components/DiscussionBox.js
LevelPlayingField/levelplayingfield
import React from 'react'; import PropTypes from 'prop-types'; import { host } from '../config'; export default class DiscussionBox extends React.Component { static propTypes = { discourseUrl: PropTypes.string.isRequired, discourseEmbedUrl: PropTypes.string.isRequired, }; constructor(props) { super...
src/components/icon/components/close.js
fmsouza/wcode
import React from 'react'; // Icon taken from: https://github.com/spiffcode/ghedit export const Close = (props) => ( <svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='3 3 16 16' {...props}> <path fill='%23e8e8e8' d='M12.597 11.042l2.803 2.803-1.556 1.555-2.802-2.802L8.239 15.4l-1.556-...
blueprints/component/files/src/components/__name__/__name__.js
juanleiguarda/react-app
import React from 'react' import classes from './<%= pascalEntityName %>.scss' export const <%= pascalEntityName %> = () => ( <div className={classes['<%= pascalEntityName %>']}> <h1><%= pascalEntityName %></h1> </div> ) export default <%= pascalEntityName %>
examples/counter/containers/App.js
gouegd/redux-devtools
import React, { Component } from 'react'; import CounterApp from './CounterApp'; import { createStore, applyMiddleware, combineReducers, compose } from 'redux'; import { devTools, persistState } from 'redux-devtools'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; import thunk from 'redux-...
examples/cra-kitchen-sink/src/stories/force-rerender.stories.js
storybooks/react-storybook
import React from 'react'; import { forceReRender } from '@storybook/react'; import { Button } from '@storybook/react/demo'; let count = 0; const increment = () => { count += 1; forceReRender(); }; export default { title: 'Force ReRender', }; export const DefaultView = () => ( <Button type="button" onClick={...
node_modules/react-bootstrap/es/ToggleButtonGroup.js
rblin081/drafting-client
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 ...
packages/ui-toolkit/src/card/header.js
yldio/joyent-portal
import React from 'react'; import { Broadcast, Subscriber } from 'joy-react-broadcast'; import PropTypes from 'prop-types'; import is, { isNot } from 'styled-is'; import isBoolean from 'lodash.isboolean'; import remcalc from 'remcalc'; import styled from 'styled-components'; import Card, { BaseCard } from './card'; c...
src/autocomplete/NotifProvider.js
aperezdc/matrix-react-sdk
/* Copyright 2017 New Vector Ltd 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 in writing, software ...
src/Parser/DeathKnight/Blood/Modules/Features/UnendingThirstTracker.js
enragednuke/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import AbilityTracker from 'Parser/Core/Modules/AbilityTracker'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import Combatants from 'Parser/Core/Mo...
app/components/DashboardInner/index.js
trevornelson/wld-frontend
/** * * DashboardInner * */ import React from 'react'; import styled from 'styled-components'; import Sidebar from 'components/Sidebar'; import MainContent from 'components/DashboardInner/MainContent'; const Wrapper = styled.div` display: flex; align-items: stretch; `; class DashboardInner extends React.PureCom...
react-flux-mui/js/material-ui/src/svg-icons/av/hd.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvHd = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-...
examples/with-apollo-auth/pages/create-account.js
arunoda/next.js
import React from 'react' import { graphql, withApollo, compose } from 'react-apollo' import cookie from 'cookie' import Link from 'next/link' import gql from 'graphql-tag' import withData from '../lib/with-data' import redirect from '../lib/redirect' import checkLoggedIn from '../lib/check-logged-in' class CreateAcc...
src/components/ShareDialog.js
IAmPicard/StarTrekTimelinesSpreadsheet
import React from 'react'; import { Dialog, DialogType, DialogFooter } from 'office-ui-fabric-react/lib/Dialog'; import { PrimaryButton, DefaultButton } from 'office-ui-fabric-react/lib/Button'; import { TextField } from 'office-ui-fabric-react/lib/TextField'; import { Dropdown } from 'office-ui-fabric-react/lib/Dropd...
app/javascript/mastodon/features/ui/components/focal_point_modal.js
cybrespace/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { connect } from 'react-redux'; import ImageLoader from './image_loader'; import classNames from 'classnames'; import { changeUploadCompose } from '../../../...
frontend/src/Components/Filter/Builder/FilterBuilderRowValue.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import TagInput from 'Components/Form/TagInput'; import { filterBuilderTypes, filterBuilderValueTypes, kinds } from 'Helpers/Props'; import tagShape from 'Helpers/Props/Shapes/tagShape'; import convertToBytes from 'Utilities/Number/convertToB...
app/components/AppError/index.js
ModusCreateOrg/budgeting-sample-app-webpack2
// @flow import React from 'react'; import styles from './style.scss'; const AppError = () => ( <div className={styles.errorScreen}> <div className={styles.errorContainer}> <h1 className={styles.errorTitle}>Sorry, something went wrong.</h1> <p> {`We're`} working on it and {`we'll`} get it fi...
scripts/src/router.js
Twogether/just-meet-frontend
import React from 'react'; import { Router, browserHistory, Link} from 'react-router'; import routes from './routes'; class RouterView extends React.Component { constructor(props) { super(props); } render(){ return ( <Router history={browserHistory} routes={routes} onUpdate={() => window.scrollTo...
source/containers/SearchPage/CloseText.js
mikey1384/twin-kle
import React from 'react'; import PropTypes from 'prop-types'; import { Color } from 'constants/css'; import { closeSearch } from 'redux/actions/SearchActions'; import { connect } from 'react-redux'; CloseText.propTypes = { className: PropTypes.string, closeSearch: PropTypes.func.isRequired, style: PropTypes.obj...
electron/app/containers/EditorLeftPanel.js
zindlerb/motif
import React from 'react'; import { connect } from 'react-redux'; import FormLabel from '../components/forms/FormLabel'; import TextField from '../components/forms/TextField'; import ComponentTreeContainer from '../components/ComponentTreeContainer'; import HorizontalSelect from '../components/HorizontalSelect'; impor...
admin/dashboard/PendingOrders.js
romainquellec/cuistot
import React from 'react'; import { Card, CardTitle } from 'material-ui/Card'; import { List, ListItem } from 'material-ui/List'; import Avatar from 'material-ui/Avatar'; import { translate } from 'admin-on-rest'; const style = { flex: 1 }; export default translate(({ orders = [], customers = {}, translate }) => ( ...
admin/client/Signin/components/LoginForm.js
everisARQ/keystone
/** * The login form of the signin screen */ import React from 'react'; import { Button, Form, FormField, FormInput } from 'elemental'; // NOTE: This is not a stateless components because those can't have refs // attached to them class LoginForm extends React.Component { render () { if (this.props.user) return n...
src/containers/About/About.js
hentaijun/LEGO
import React, { Component } from 'react'; import { Button, Modal, Input } from 'antd'; import './About.css'; import DeskIframe from '../../components/DeskIframe'; import * as Components from '../../resources'; class About extends Component { constructor(props){ super(props); this.elementTree = []; this.state = ...
admin/src/components/PopoutBody.js
kwangkim/keystone
import blacklist from 'blacklist'; import classnames from 'classnames'; import React from 'react'; var PopoutBody = React.createClass({ displayName: 'PopoutBody', propTypes: { children: React.PropTypes.node.isRequired, scrollable: React.PropTypes.bool, }, render () { let className = classnames('Popout__body'...
js/components/RakutenDeals.js
SKrishnan602/funnas1.0
import React from 'react'; import Relay from 'react-relay'; var ReactBootstrap = require('react-bootstrap'); var Table = require('jsxstyle/Table'); var TableRow = require('jsxstyle/TableRow'); var TableCell = require('jsxstyle/TableCell'); var ReactDOMServer = require('react-dom/server') var counter=0; class...
src/svg-icons/file/cloud-queue.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileCloudQueue = (props) => ( <SvgIcon {...props}> <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.9...
cheesecakes/plugins/upload/admin/src/components/Li/index.js
strapi/strapi-examples
/** * * Li * */ import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { CopyToClipboard } from 'react-copy-to-clipboard'; import cn from 'classnames'; import moment from 'moment'; import FileIcon from 'components/FileIcon'; import IcoContainer from 'c...
docs/src/app/components/pages/components/Dialog/ExampleModal.js
pradel/material-ui
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; /** * A modal dialog can only be closed by selecting one of the actions. */ export default class DialogExampleModal extends React.Component { sta...
src/containers/LibraryPage.js
great-design-and-systems/cataloguing-app
import '../images/library-header.jpg'; import * as actions from '../actions/LibraryActions'; import * as dialogActions from '../actions/DialogActions'; import * as headerActions from '../actions/HeaderActions'; import { CancelModalFooter, DeleteModalBody } from '../components/common'; import { LABEL_NEW_LIBRARY } fr...
src/Interpolate.js
westonplatter/react-bootstrap
// https://www.npmjs.org/package/react-interpolate-component // TODO: Drop this in favor of es6 string interpolation import React from 'react'; import ValidComponentChildren from './utils/ValidComponentChildren'; const REGEXP = /\%\((.+?)\)s/; const Interpolate = React.createClass({ displayName: 'Interpolate', ...
packages/icons/src/md/image/AddToPhotos.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdAddToPhotos(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M8 12H4v28c0 2.21 1.79 4 4 4h28v-4H8V12zm32-8c2.21 0 4 1.79 4 4v24c0 2.21-1.79 4-4 4H16c-2.21 0-4-1.79-4-4V8c0-2.21 1.79-4 4-4h24zm-2 18v-4h-8v-8...
src/svg-icons/action/build.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionBuild = (props) => ( <SvgIcon {...props}> <path d="M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-...
actor-apps/app-web/src/app/components/JoinGroup.react.js
Rogerlin2013/actor-platform
import React from 'react'; import requireAuth from 'utils/require-auth'; import DialogActionCreators from 'actions/DialogActionCreators'; import JoinGroupActions from 'actions/JoinGroupActions'; import JoinGroupStore from 'stores/JoinGroupStore'; // eslint-disable-line class JoinGroup extends React.Component { st...
src/routes/admin/index.js
machix/mm-inventory
/** * 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...
admin/client/components/Portal.js
codevlabs/keystone
import React from 'react'; import ReactDOM from 'react-dom'; module.exports = React.createClass({ displayName: 'Portal', portalElement: null, componentDidMount () { let el = document.createElement('div'); document.body.appendChild(el); this.portalElement = el; this.componentDidUpdate(); }, componentWillUn...
src/svg-icons/image/color-lens.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageColorLens = (props) => ( <SvgIcon {...props}> <path d="M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4...
src/svg-icons/maps/directions-subway.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsSubway = (props) => ( <SvgIcon {...props}> <path d="M12 2c-4.42 0-8 .5-8 4v9.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h12v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V6c0-3.5-3.58-4-8-4zM7.5 17c-.83 0-1.5-.67-1.5...
src/components/label/label.js
n7best/react-weui
import React from 'react'; import classNames from '../../utils/classnames'; /** * WeUI Label Wrapper * */ const Label = (props) => { const { className, ...others } = props; const cls = classNames({ 'weui-label': true, [className]: className }); return ( <div> <la...
frontend/js/components/ecosystems/CandidateMatch.js
Code4HR/okcandidate-platform
'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Card from './../atoms/Card'; import CandidateDisplay from './../organisms/CandidateDisplay'; import CandidateMatchCategory from './../molecules/CandidateMatchCategory'; import IconButton from './../molecules/IconButton'...
gui/src/components/Navigation.js
stellar/gateway-server
import React from 'react'; import Tabs from 'muicss/lib/react/tabs'; import Tab from 'muicss/lib/react/tab'; export default class Navigation extends React.Component { constructor({history, location}) { super(); this.state = {}; this.history = history; this.state.selected = this.getActive(location.pat...
react-flux-mui/js/material-ui/src/svg-icons/image/hdr-on.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageHdrOn = (props) => ( <SvgIcon {...props}> <path d="M21 11.5v-1c0-.8-.7-1.5-1.5-1.5H16v6h1.5v-2h1.1l.9 2H21l-.9-2.1c.5-.3.9-.8.9-1.4zm-1.5 0h-2v-1h2v1zm-13-.5h-2V9H3v6h1.5v-2.5h2V15H8V9H6.5v2zM13 9H9.5v6H13...
src/utils/typography.js
xiaoxinghu/home
import ReactDOM from 'react-dom/server' import React from 'react' import Typography from 'typography' import theme from 'typography-theme-github' import CodePlugin from 'typography-plugin-code' import { MOBILE_MEDIA_QUERY } from 'typography-breakpoint-constants' const options = { baseFontSize: '14px', baseLineHeig...
node_modules/antd/es/steps/index.js
ZSMingNB/react-news
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import PropTypes ...
client/views/setupWizard/Pager.stories.js
iiet/iiet-chat
import { action } from '@storybook/addon-actions'; import { boolean } from '@storybook/addon-knobs'; import React from 'react'; import { Pager } from './Pager'; export default { title: 'views/setupWizard/Pager', component: Pager, }; export const _default = () => <Pager disabled={boolean('disabled')} isContinu...
src/svg-icons/image/photo-camera.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoCamera = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24...
actor-sdk/sdk-web/src/components/dialog/messages/Loading.react.js
y0ke/actor-platform
/* * Copyright (C) 2015-2016 Actor LLC. <https://actor.im> */ import React, { Component } from 'react'; import { FormattedMessage } from 'react-intl'; class Loading extends Component { shouldComponentUpdate() { return false; } render() { return( <div className="message message--loading"> ...
src/components/Home/QuickSurahs/index.js
korabh/quran.com-frontend
import React from 'react'; import Link from 'react-router/lib/Link'; import styled from 'styled-components'; import LocaleFormattedMessage from 'components/LocaleFormattedMessage'; import { Title } from 'containers/Home'; const Span = styled.span` &:after { content: '|'; } &:first-child, &:last-child { ...
frontend/src/components/options/change-username/form-locked.js
1905410/Misago
import React from 'react'; import PanelMessage from 'misago/components/panel-message'; // jshint ignore:line export default class extends React.Component { getHelpText() { if (this.props.options.next_on) { return interpolate( gettext("You will be able to change your username %(next_change)s."), ...
docs/src/pages/components/progress/CircularWithValueLabel.js
lgollut/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import CircularProgress from '@material-ui/core/CircularProgress'; import Typography from '@material-ui/core/Typography'; import Box from '@material-ui/core/Box'; function CircularProgressWithLabel(props) { return ( <Box position="relative" display="...
extensions/shop/client.js
axax/lunuc
import React from 'react' import Hook from 'util/hook' import './style.global.less' import Async from 'client/components/Async' const Login = (props) => <Async {...props} load={import(/* webpackChunkName: "admin" */ '../../client/containers/LoginContainer')}/> const System = (props) => ...
src/components/page/index.js
strongharris/Dashboard
import React from 'react'; import { Link } from 'react-router-dom'; import Header from '../header'; if(process.env.WEBPACK) require('./index.scss'); export default () => ( <div className='page'> <Header title='Page' /> <div>This is page 1</div> <img src='/assets/image.jpg' /> <br /> <Link to='/'> <button...
src/components/rooms/room-list-item.component.js
MichelLosier/cardspace
import React from 'react'; class RoomListItem extends React.Component { constructor(){ super(); this.handleClick = this.handleClick.bind(this); } handleClick(e){ e.preventDefault(); this.props.onSelect(this.props.room); } render(){ const room = this.p...
docs/src/CodeExample.js
sheep902/react-bootstrap
import React from 'react'; export default class CodeExample extends React.Component { render() { return ( <pre className="cm-s-solarized cm-s-light"> <code> {this.props.codeText} </code> </pre> ); } componentDidMount() { if (CodeMirror === undefined) { ret...
src-example/components/pages/NotFoundPage/index.stories.js
SIB-Colombia/biodiversity_catalogue_v2_frontend
import React from 'react' import { storiesOf } from '@kadira/storybook' import { NotFoundPage } from 'components' storiesOf('NotFoundPage', module) .add('default', () => ( <NotFoundPage /> ))
app/javascript/mastodon/components/status_list.js
esetomo/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import StatusContainer from '../containers/status_container'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ScrollableList from './scrollable_list'; export default cl...
app/react-icons/fa/crop.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaCrop extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m13.9 28.6h13.3v-13.3z m-1-1l13.3-13.3h-13.3v13.3z m25.7 1.7v4.3q0 0.3-0.2 0.5t...
src/components/hahoo/Toggle/Toggle.js
hahoocn/hahoo-admin
import React from 'react'; import Tap from '../Tap'; import styles from './Toggle.css'; class Toggle extends React.Component { static propTypes = { className: React.PropTypes.string }; state = {} render() { const { className, ...rest } = this.props; return ( <Tap component="input" ...
imports/ui/Footer/index.js
smirkspace/smirkspace
import React from 'react'; import { Link } from 'react-router'; import './index.css'; export default function Footer() { return ( <footer className="footer"><Link to="/about-us" className="divButton">About us</Link> &nbsp; | &nbsp; <Link to="/contact-us" className="divButton2">Contact us</Link></footer> );...
src/universalRouter.js
rabet/react-redux-universal-hot-example
import React from 'react'; import Router from 'react-router'; import createRoutes from './views/createRoutes'; import { Provider } from 'react-redux'; const getFetchData = (component={}) => { return component.WrappedComponent ? getFetchData(component.WrappedComponent) : component.fetchData; }; export functi...
linksa/MoreApp.js
liuhui219/linksa
import React from 'react'; import { View, StyleSheet, Navigator, TouchableOpacity, TouchableHighlight, Text, ScrollView, ActivityIndicator, InteractionManager, Dimensions, BackAndroid, Animated, Image, RefreshControl, ListView, } from 'react-n...
client/trello/src/app/components/HeaderSearch/HeaderSearch.js
Madmous/Trello-Clone
import FontAwesome from 'react-fontawesome'; import React from 'react'; import './HeaderSearch.css'; export default function HeaderSearch(props) { return ( <div className="Header-Button Header-Board-Search"> <input className="Header-Board-Search-Input" type="text" autoComplete="...
src/entypo/Lastfm.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Lastfm'; let EntypoLastfm = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M8.574,14.576C8.097,14.924,7.119,15.6,5.193,15.6C2.532,15.6,0,13.707,0,10.195C0,6.547,2.637,4.4,5.354...
cm19/ReactJS/your-first-react-app-exercises-master/exercise-16-hooks/Header.js
Brandon-J-Campbell/codemash
import React from 'react'; import classNames from 'classnames'; // import theme from './theme/static'; import ThemeContext from './theme/context'; import ThemeSwitcher from './theme/Switcher'; import styles from './Header.css'; export default function Header() { return ( <ThemeContext.Consumer> {({ theme...
frontend/src/components/Nav.js
dimriou/rupture
import React from 'react'; import { IndexLink } from 'react-router'; import Logo from '../img/logo.png'; export default class Nav extends React.Component { render() { return( <div className='navbar navbar-default navbar-fixed-top'> <div className='container-fluid'> ...
app/javascript/mastodon/features/ui/components/video_modal.js
rekif/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Video from '../../video'; import ImmutablePureComponent from 'react-immutable-pure-component'; export default class VideoModal extends ImmutablePureComponent { static propTypes = { m...