path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
app/components/ToolboxComponent.js
ARMataTeam/ARMata
// @flow import React, { Component } from 'react'; import { Image, Icon } from 'semantic-ui-react'; import { DragSource } from 'react-dnd'; import ImageGenerator from '../resources/imageGenerator'; import styles from './ToolboxComponent.css'; // eslint-disable-line flowtype-errors/show-errors const componentSource = {...
src/Divider/Divider.js
pradel/material-ui
import React from 'react'; const propTypes = { /** * The css class name of the root element. */ className: React.PropTypes.string, /** * If true, the `Divider` will be indented `72px`. */ inset: React.PropTypes.bool, /** * Override the inline-styles of the root element. */ style: React....
src/svg-icons/device/signal-wifi-1-bar-lock.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi1BarLock = (props) => ( <SvgIcon {...props}> <path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5...
pages/index.js
fmarcos83/mdocs
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; export default class extends Component { render() { return ( <div> <h1>Home Page</h1> <p>Coming ...
project-the-best/src/index.js
renhongl/Summary
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter as Router, Route, Link, Redirect } from 'react-router-dom'; import { Home } from './component/home'; import { Login } from './component/login'; import 'antd/dist/antd.less'; import './share/style/global.less'; import '....
client/src/templates/Challenges/components/Challenge-Title.js
pahosler/freecodecamp
import React from 'react'; import PropTypes from 'prop-types'; const propTypes = { children: PropTypes.string, isCompleted: PropTypes.bool }; function ChallengeTitle({ children, isCompleted }) { let icon = null; if (isCompleted) { icon = ( // TODO Use SVG here <i className='ion-checkmark-circl...
src/Parser/Core/CombatLogParser.js
hasseboulen/WoWAnalyzer
import React from 'react'; import ChangelogTab from 'Main/ChangelogTab'; import ChangelogTabTitle from 'Main/ChangelogTabTitle'; import TimelineTab from 'Main/Timeline/TimelineTab'; import { formatNumber, formatPercentage, formatThousands, formatDuration } from 'common/format'; import { findByBossId } from 'Raids'; ...
src/components/NotFoundPage.js
ferryhinardi/swapii_ass
import React from 'react'; import { Link } from 'react-router'; const NotFoundPage = () => { return ( <div> <h4> 404 Page Not Found </h4> <Link to="/"> Go back to homepage </Link> </div> ); }; export default NotFoundPage;
src/components/Loading.js
PsychoLlama/luminary
import { NavigationActions } from 'react-navigation'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import React from 'react'; import * as startupActions from '../actions/startup'; export class Loading extends React.Component { static propTypes = { getAppState: PropTypes.func.isRequ...
docs/src/MainNav.js
jhernandezme/react-materialize
import React from 'react'; import cx from 'classnames'; import store from './store'; import Icon from '../../src/Icon'; import Collapsible from '../../src/Collapsible'; import CollapsibleItem from '../../src/CollapsibleItem'; let cssComponents = { grid: 'Grid', table: 'Table', }; let jsComponents = { collapsibl...
src/icons/FiberNewIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class FiberNewIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M40 8H8c-2.21 0-3.98 1.79-3.98 4L4 36c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM17 30h...
app/javascript/mastodon/features/ui/components/column_link.js
lynlynlynx/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import Icon from 'mastodon/components/icon'; const ColumnLink = ({ icon, text, to, href, method, badge }) => { const badgeElement = typeof badge !== 'undefined' ? <span className='column-link__badge'>{badge}</span...
frontend/src/containers/CreateTarget.js
dionyziz/rupture
import React from 'react'; import { ModalHeader, ModalTitle, ModalClose, ModalBody, ModalFooter } from 'react-modal-bootstrap'; import { Form } from 'react-bootstrap'; import axios from 'axios'; export default class CreateTarget extends React.Component { handleSubmit = (event) => { let method; if...
app/jsx/external_apps/components/Lti2ReregistrationUpdateModal.js
venturehive/canvas-lms
/* * Copyright (C) 2015 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
app/react-icons/fa/exclamation.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaExclamation extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m24.4 27.9v5q0 0.5-0.4 1t-1 0.4h-5.7q-0.6 0-1-0.4t-0.4-1v-5q0-0.6 0.4-1t...
static/js/components/LoginForm.js
wolendranh/movie_radio
import { Router, Link, browserHistory} from 'react-router'; import {render} from 'react-dom'; import React from 'react'; import $ from 'jquery'; import {login} from '../auth.jsx' // import validator from 'validator'; // TODO: replace validator or make it accessible from import statement class LoginForm extends React...
lib/cli/generators/REACT/template/stories/Button.js
nfl/react-storybook
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */ import PropTypes from 'prop-types'; import React from 'react'; const buttonStyles = { border: '1px solid #eee', borderRadius: 3, backgroundColor: '#FFFFFF', cursor: 'pointer', fontSize: 15, padding: '3px 10px',...
packages/reactor-kitchensink/src/examples/FormFields/URLField/URLField.js
dbuhrman/extjs-reactor
import React from 'react'; import { FormPanel, URLField } from '@extjs/ext-react'; Ext.require('Ext.data.validator.Url'); export default function UrlFieldExample() { return ( <FormPanel shadow> <URLField placeholder="http://www.domain.com" label="URL" ...
index.android.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 } from 'react-native'; export default class Livefyy extends Component { render() { return ( <View style={styles.container}>...
test/test_helper.js
antzu/authenticationApp
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
src/components/VideoPlayer.js
MozillaDevelopers/playground
import React from 'react'; import PropTypes from 'prop-types'; // components import ModalVideo from 'react-modal-video'; // CSS import '../../node_modules/react-modal-video/scss/modal-video.scss'; // images import play from './img/play.svg'; class VideoPlayer extends React.Component { constructor() { super()...
src/components/Post/Meta/Meta.js
apalhu/website
// @flow strict import React from 'react'; import moment from 'moment'; import styles from './Meta.module.scss'; type Props = { date: string }; const Meta = ({ date }: Props) => ( <div className={styles['meta']}> <p className={styles['meta__date']}>Published {moment(date).format('D MMM YYYY')}</p> </div> );...
senic_hub/setup_app/__tests__/index.ios.js
grunskis/senic-hub
import 'react-native'; import React from 'react'; import Index from '../index.ios.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
react-flux-mui/js/material-ui/src/svg-icons/editor/format-align-center.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatAlignCenter = (props) => ( <SvgIcon {...props}> <path d="M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z"/> </SvgIcon> ); EditorFormatAlignCenter = pure(EditorFormatAli...
src/common/SpellIcon.js
hasseboulen/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPELLS from './SPELLS'; import SpellLink from './SpellLink'; import Icon from './Icon'; const SpellIcon = ({ id, noLink, ...others }) => { if (process.env.NODE_ENV === 'development' && !SPELLS[id]) { throw new Error(`Unknown spell: ${id}`); ...
examples/using-wordpress/src/components/styled/layout.js
okcoker/gatsby
import React from 'react'; import styled, { css } from 'styled-components'; import { compute, ifDefined } from '../../utils/hedron'; import * as PR from './propReceivers'; import { Page as HedronPage, Row as HedronRow, Column as HedronColumn } from 'hedron'; import theme from './theme'; const { sizes, color } = t...
components/Deck/TranslationPanel/TranslationPanel.js
slidewiki/slidewiki-platform
import PropTypes from 'prop-types'; import React from 'react'; import {connectToStores} from 'fluxible-addons-react'; import {getLanguageName, getLanguageNativeName} from '../../../common'; import {NavLink, navigateAction} from 'fluxible-router'; import translateDeckRevision from '../../../actions/translateDeckRevision...
src/components/Form/Button.js
u-wave/web
import cx from 'clsx'; import React from 'react'; import PropTypes from 'prop-types'; import MuiButton from '@mui/material/Button'; function Button({ children, className, ...props }) { return ( <MuiButton variant="contained" color="primary" className={cx('Button', className)} type="submit...
src/components/sidebar/SidebarHeader.js
entria/entria-components
import React from 'react'; import { getTheme } from '../Theme'; const SidebarHeader = ({ children }) => <div style={styles().wrapper}> {children} </div>; const styles = () => ({ wrapper: { display: 'flex', alignItems: 'center', justifyContent: 'center', width: '100%', height: 100, p...
geonode/contrib/monitoring/frontend/src/components/cels/response-table/index.js
timlinux/geonode
import React from 'react'; import PropTypes from 'prop-types'; import HR from '../../atoms/hr'; import styles from './styles'; class ResponseTable extends React.Component { static propTypes = { average: PropTypes.number, errorNumber: PropTypes.number, max: PropTypes.number, requests: PropTypes.numbe...
docs/examples/elements/Milestone.js
krebbl/react-svg-canvas
import React from 'react'; import Element from 'react-svg-canvas/Element'; import Text from 'react-svg-canvas/Text'; import Table from 'react-svg-canvas/Table'; import FontIcon from './FontIcon'; export default class Milestone extends Element { type = 'timeline-milestone'; isGroup = true; static defaultProps = ...
node_modules/react-bootstrap/es/Tooltip.js
nikhil-ahuja/Express-React
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 ...
examples/js/others/mouse-event-table.js
rolandsusans/react-bootstrap-table
/* eslint no-console: 0 */ /* eslint no-console: 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++) { const id = startId + i; p...
packages/material-ui-icons/src/CellWifiSharp.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M6 22h16V5.97L6 22z" /><path d="M18 9.98L6 22h12V9.98zM3.93 5.93l1.29 1.29c3.19-3.19 8.38-3.19 11.57 0l1.29-1.29c-3.91-3.91-10.25-3.91-14.15 0zm5.14 5.14L11 13l1.93-1....
src/App.js
azaleas/game-of-live
import React, { Component } from 'react'; import _ from 'lodash'; import './App.css'; const medium = { boardSize: { width: 60, height: 40, }, boardResize: "medium", boardData: {}, cleanBoard: {}, iteratorCounter: 0, running: false, speed: 20, } const GameBoard = (props) => { const width = props.size.wi...
src/__tests__/components/Bind-test.js
verkstedt/react-amp-components
import React from 'react' import Bind from '../../components/Bind' import Helmet from '../../utils/Helmet' import { renderComponent } from '../test-utils' describe('Bind', () => { it('works', () => { const res = renderComponent( <Bind text="'bind ' + foo"> <div>test</div> </Bind> ) ex...
blueocean-material-icons/src/js/components/svg-icons/av/volume-off.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvVolumeOff = (props) => ( <SvgIcon {...props}> <path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.7...
app/src/reducers/users/Users.spec.js
joedunu/react-redux-example
import React from 'react' import UsersReducer, {types} from './Users' describe('UsersReducer', () => { describe('types', () => { test('returns users reducer types', () => { expect(types).toEqual({ CREATE_USER_FAILED: 'USER/CREATE/FAILED', CREATE_USER_REQUESTED: 'USER/CREATE/REQUESTED', ...
app/components/CategoriesList/CategoryCard.js
vlastoun/picture-uploader-crud
import React from 'react'; import PropTypes from 'prop-types'; import { Card, CardActions, CardTitle, CardText } from 'material-ui/Card'; import DeleteButton from './DeleteButton'; import EditButton from './EditButton'; const buttonStyle = { margin: '0.5em', }; const cardStyle = { marginTop: '1em', marginBottom:...
es6/Radio/RadioButton.js
yurizhang/ishow
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
linksa/YTjinfo.js
liuhui219/linksa
import React from 'react'; import { View, StyleSheet, Navigator, TouchableOpacity, TouchableHighlight, Text, ScrollView, ActivityIndicator, InteractionManager, Dimensions, BackAndroid, Image, RefreshControl, ListView, } from 'react-native'; import ScrollableTabView, { DefaultTabBar, } from 'react...
web_src/src/components/App.js
salgum1114/sgoh-blog
import React from 'react'; class App extends React.Component { render(){ return ( <div> <h1>SpringBoot ReactJS Start!!</h1> <h2>SpringBoot ReactJS Start!!</h2> <h3>SpringBoot ReactJS Start!!</h3> </div> ...
src/CollapsibleMixin.js
jontewks/react-bootstrap
import React from 'react'; import TransitionEvents from './utils/TransitionEvents'; import deprecationWarning from './utils/deprecationWarning'; const CollapsibleMixin = { propTypes: { defaultExpanded: React.PropTypes.bool, expanded: React.PropTypes.bool }, getInitialState() { const defaultExpanded...
demos/forms-demo/src/components/Menu/SettingsCheckbox.js
bdjnk/cerebral
import React from 'react' import {connect} from 'cerebral/react' import {state, props, signal} from 'cerebral/tags' export default connect({ 'field': state`${props`path`}`, 'toggleSelectSettings': signal`app.toggleSelectSettings` }, function SettingsCheckbox ({field, path, toggleSelectSettings}) { const {val...
src/renderer/components/channel-switcher.js
r7kamura/retro-twitter-client
import List from './list'; import React from 'react'; import viewEventPublisher from '../singletons/view-event-publisher' export default class ChannelSwitcher extends React.Component { getHomeChannelClassName() { return `account-channel ${this.getHomeChannelSelected() ? ' account-channel-selected' : ''}`; } ...
src/routes.js
IntellectionStudio/intellection.kz
import {PageContainer as PhenomicPageContainer} from 'phenomic'; import {Route} from 'react-router'; import React from 'react'; import AboutPage from 'layouts/AboutPage'; import ContactPage from 'layouts/ContactPage'; import CoursesPage from 'layouts/CoursesPage'; import ErrorPage from 'layouts/ErrorPage'; import Home...
react/Regular/Regular.js
seekinternational/seek-asia-style-guide
import styles from './Regular.less'; import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; export default function Regular({ children, className, ...restProps }) { return ( <span {...restProps} className={classnames(styles.root, className)}> {children} </s...
src/components/templates/content_body.js
hisarkaya/polinsur
import React from 'react'; const ContentBody = props => { return ( <div className="widget-content nopadding"> {props.children} </div> ); } export default ContentBody;
Rosa_Madeira/Cliente/src/components/catalogo/CatalogoLista.js
victorditadi/IQApp
import React, { Component } from 'react'; import { View, ListView, RefreshControl, ScrollView } from 'react-native'; import { Container, Content, Card, CardItem, Text, Button, Icon } from 'native-base'; import { connect } from 'react-redux'; import { fetch_catalogo } from '../../actions'; import CatalogoItem from './Ca...
test/specs/elements/Icon/Icon-test.js
Semantic-Org/Semantic-UI-React
import _ from 'lodash' import React from 'react' import Icon from 'src/elements/Icon/Icon' import IconGroup from 'src/elements/Icon/IconGroup' import { SUI } from 'src/lib' import * as common from 'test/specs/commonTests' import { sandbox } from 'test/utils' describe('Icon', () => { common.isConformant(Icon) comm...
src/Parser/MistweaverMonk/Modules/Items/PetrichorLagniappe.js
mwwscott0/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import { formatNumber } from 'common/format'; import Combatants from 'Parser/Core/Modules/Combatants'; import AbilityTracker from 'Parser/Core/Modules/AbilityTracker'; import Module from 'Parser/Core/Module'; const debu...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/PropsConstructorNoArgs.js
facebook/flow
// @flow import React from 'react'; class MyComponent extends React.Component { constructor() {} defaultProps: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component { constructor() {} defaultProps: T; static state: T; a: T; ...
src/backward/Widgets/Subtitle.js
chaitanya0bhagvan/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 Subtitle extends Component { render() { return ( <Text ref={c => this._root = c} ...
node_modules/semantic-ui-react/dist/es/views/Feed/FeedLike.js
mowbell/clickdelivery-fed-test
import _extends from 'babel-runtime/helpers/extends'; import _isNil from 'lodash/isNil'; import cx from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { customPropTypes, getElementType, getUnhandledProps, META } from '../../lib'; import Icon from '../../elements/Icon'; /** * A f...
client/routes.js
bbviana/alexandria-mern
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './modules/app/components/App'; import RecipeListPage from './modules/recipe/pages/RecipeListPage' // require.ensure polyfill for node if (typeof require.ensure !== 'function') { require.ensure = function requireModule(deps,...
src/components/RemoveSectionButton.js
BenGoldstein88/redux-chartmaker
import React from 'react'; export default class RemoveSectionButton extends React.Component { constructor(props) { super(props); this.handleClick = this.handleClick.bind(this); } handleClick(e) { e.preventDefault() this.props.removeSection(this.props.id); } render() { return ( ...
packages/cf-component-typography/test/Em.js
manatarms/cf-ui
import React from 'react'; import renderer from 'react-test-renderer'; import Em from '../src/Em'; test('should render', () => { const component = renderer.create(<Em>Em</Em>); expect(component.toJSON()).toMatchSnapshot(); });
src/images/Icons/instagram.js
sourabh-garg/react-starter-kit
import React from 'react'; export default function instagram(props) { return ( <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="64px" height="64px" viewBox="0 0 64 64" enableBackground="new 0 0 64 64" xmlSpace="preserve" {...props}> <g t...
src/svg-icons/image/crop-din.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropDin = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"/> </SvgIcon> ); ImageCropDin = pure(ImageCropDin); Image...
HotelAndroid/thanksALot.js
MJ111/hotel-reverse
import React, { Component } from 'react'; import { StyleSheet, Text, View, ListView, DatePickerAndroid, TouchableWithoutFeedback, Picker, Navigator, } from 'react-native'; const Item = Picker.Item; import Button from 'react-native-button'; /*----------------------------------------------------------...
src/pages/404.js
derrickyoo/derrickyoo.com
import React from 'react' import Layout from '../components/layout' import SEO from '../components/seo' const NotFoundPage = () => ( <Layout> <SEO title="404: Not found" /> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </Layout> ) export default NotFoundPage
src/js/index.js
Tonius/factolculator
import React from 'react'; import ReactDOM from 'react-dom'; import 'bootstrap/dist/css/bootstrap.css'; import App from './App'; // Render the main app component, starting the web application. ReactDOM.render(<App />, document.getElementById('app'));
docs/src/app/components/pages/components/SvgIcon/ExampleIcons.js
skarnecki/material-ui
import React from 'react'; import ActionHome from 'material-ui/svg-icons/action/home'; import ActionFlightTakeoff from 'material-ui/svg-icons/action/flight-takeoff'; import FileCloudDownload from 'material-ui/svg-icons/file/cloud-download'; import HardwareVideogameAsset from 'material-ui/svg-icons/hardware/videogame-as...
react/gameday2/components/embeds/EmbedNotSupported.js
fangeugene/the-blue-alliance
import React from 'react' const EmbedNotSupported = () => { const containerStyles = { margin: 20, textAlign: 'center', } const textStyles = { color: '#ffffff', } return ( <div style={containerStyles}> <p style={textStyles}>This webcast is not supported.</p> </div> ) } export de...
src/index.js
karim88/karim88.github.io
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.hydrate(<App />, document.getElementById('root')); // If you want your app to work offline and load faster, you can change // unregister() to register(...
src/components/Preview/Preview.js
chengjianhua/templated-operating-system
import React, { Component } from 'react'; import ReactServer from 'react-dom/server'; import ReactDOM, { findDOMNode } from 'react-dom'; import PropTypes from 'prop-types'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; // import s from './Preview.css'; const styles = { root: { width: '375px',...
src/components/Form/InlineInput/__tests__/InlineInput.js
thegrinder/basic-styled-uikit
import React from 'react'; import { ThemeProvider } from 'styled-components'; import { render, cleanup } from '@testing-library/react'; import theme from '../../../../theme/theme'; import InlineInput from '../InlineInput'; const renderComponent = (props = {}) => render( <ThemeProvider theme={theme}> <Inli...
client/src/components/Admin/Categories/CategoryList.js
hutchgrant/react-boilerplate
import React, { Component } from 'react'; import { connect } from 'react-redux'; import * as actions from '../../../actions/admin'; class CategoryList extends Component { render() { return ( <div> <h2 className="text-center">Category List</h2> </div> ); }...
frontend/src/admin/header/LogoutButton.js
rabblerouser/core
import React from 'react'; import { connect } from 'react-redux'; import styled from 'styled-components'; import { logout } from '../actions/'; import { Button } from '../common'; const StyledLogoutButton = styled(Button)` background-color: ${props => props.theme.primaryColour}; color: white; border: 1px solid w...
ui/js/components/Show.js
ericsoderberg/pbc-web
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { loadItem, unloadItem } from '../actions'; import ItemHeader from './ItemHeader'; import Loading from './Loading'; import NotFound from './NotFound'; class Show extends Component { componentD...
src/js/components/icons/base/LinkBottom.js
odedre/grommet-final
/** * @description LinkBottom SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * ...
docs/src/examples/elements/Divider/Types/DividerExampleHorizontal.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Button, Divider, Input, Segment } from 'semantic-ui-react' const DividerExampleHorizontal = () => ( <Segment basic textAlign='center'> <Input action={{ color: 'blue', content: 'Search' }} icon='search' iconPosition='left' placeholder='Order #' /> ...
src/components/BannerNavigation/BannerNavigationWithContent.js
wfp/ui
import PropTypes from 'prop-types'; import React from 'react'; import { BannerNavigation, BannerNavigationItem } from './BannerNavigation'; import Search from '../Search'; import Link from '../Link'; const linkList = [ { name: 'WFPgo', link: 'https://go.wfp.org/' }, { name: 'Communities', link: 'https://communitie...
modules/Redirect.js
aaron-goshine/react-router
import React from 'react' import invariant from 'invariant' import { createRouteFromReactElement } from './RouteUtils' import { formatPattern } from './PatternUtils' import { falsy } from './InternalPropTypes' const { string, object } = React.PropTypes /** * A <Redirect> is used to declare another URL path a client ...
src/encoded/static/components/item-pages/components/WorkflowDetailPane/ParameterDetailBody.js
hms-dbmi/fourfront
'use strict'; import React from 'react'; export const ParameterDetailBody = React.memo(function ParameterDetailBody({ node, minHeight }){ return ( <div style={typeof minHeight === 'number' ? { minHeight } : null}> <div className="information"> <div className="row"> ...
src/containers/Mcml/Mcml.js
hahoocn/hahoo-admin
import React from 'react'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; import ButtonToolbar from 'react-bootstrap/lib/ButtonToolbar'; import FormControl from 'react-bootstrap/lib/FormControl'; import toFloat from 'validator/lib/toFloat'; import isDecimal from 'validator/lib/isDecimal'; imp...
frontend/src/Settings/Indexers/Indexers/AddIndexerModal.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React from 'react'; import Modal from 'Components/Modal/Modal'; import AddIndexerModalContentConnector from './AddIndexerModalContentConnector'; function AddIndexerModal({ isOpen, onModalClose, ...otherProps }) { return ( <Modal isOpen={isOpen} onModalClose=...
src/js/components/Map.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { findDOMNode } from 'react-dom'; import classnames from 'classnames'; import CSSClassnames from '../utils/CSSClassnames'; import Intl from '../utils/Intl'; const C...
src/services/TplEmbeddedLoader.js
webcerebrium/ec-react15-lib
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Logger } from './Logger'; import { getDocumentContext } from './TplContext'; import { matchConditions } from './DocumentCondition'; import { findDocumentElements } from './DocumentSelector'; import { download...
react/features/mobile/navigation/components/conference/ConferenceNavigationContainerRef.js
jitsi/jitsi-meet
import React from 'react'; export const conferenceNavigationRef = React.createRef(); /** * User defined navigation action included inside the reference to the container. * * @param {string} name - Destination name of the route that has been defined somewhere. * @param {Object} params - Params to pass to the desti...
Redux/src/index.js
il-tmfv/ReactTutorialMaxP
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import App from './containers/App' require('./styles/app.css') import configureStore from './store/configureStore' const store = configureStore() render( <Provider store={store}> <div clas...
client/providers/ServerProvider.js
Sing-Li/Rocket.Chat
import React from 'react'; import { Meteor } from 'meteor/meteor'; import { Info as info } from '../../app/utils'; import { ServerContext } from '../contexts/ServerContext'; import { APIClient } from '../../app/utils/client'; const absoluteUrl = (path) => Meteor.absoluteUrl(path); const callMethod = (methodName, ......
app/javascript/mastodon/features/ui/components/column_header.js
mhffdq/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class ColumnHeader extends React.PureComponent { static propTypes = { icon: PropTypes.string, type: PropTypes.string, active: PropTypes.bool, onClick: PropTypes.func, columnHeaderId...
src/Post.js
drop-table-ryhmatyo/tekislauta-front
import React, { Component } from 'react'; import { Link } from 'react-router'; import Utilities from './Utilities'; import './styles/Post.css'; class Post extends Component { constructor(props) { super(props); this.containerClassName = 'Post Post--reply'; } getIdColor() { const ip = this.props.data....
docs/app/Examples/modules/Dropdown/Types/DropdownExamplePointingTwo.js
koenvg/Semantic-UI-React
import React from 'react' import { Dropdown, Menu } from 'semantic-ui-react' const DropdownExamplePointingTwo = () => ( <Menu vertical> <Menu.Item> Home </Menu.Item> <Dropdown text='Messages' pointing='left' className='link item'> <Dropdown.Menu> <Dropdown.Item>Inbox</Dropdown.Item> ...
packages/screenie-cli/src/browser-reporter/components/tests-chart.js
ParmenionUX/screenie
import React from 'react' import { connect } from 'react-redux' export default connect( state => ({ status: state.status, }), )(({ status }) => <div style={styles.container}> <svg style={styles.svg}> {renderTests(status.tests)} </svg> </div> ) const PADDING = 20 const TEST_PADDING = 30 const...
actor-apps/app-web/src/app/components/ToolbarSection.react.js
sc4599/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import { IntlMixin } from 'react-intl'; import classnames from 'classnames'; import ActivityActionCreators from 'actions/ActivityActionCreators'; import DialogStore from 'stores/DialogStore'; import ActivityStore from 'stores/ActivityStore'; //import A...
src/components/Taf/ChangeGroup.spec.js
maartenlterpstra/GeoWeb-FrontEnd
import React from 'react'; import ChangeGroup from './ChangeGroup'; import { mount } from 'enzyme'; describe('(Container) Taf/ChangeGroup.jsx', () => { it('Renders a ChangeGroup', () => { const _component = mount(<ChangeGroup value={{}} />); expect(_component.type()).to.eql(ChangeGroup); }); });
src/destinations/render.js
RoyalIcing/gateau
import R from 'ramda' import React from 'react' import { Seed } from 'react-seeds' const resolveContentIn = R.curry(function resolveItemIn(source, path) { //path = R.filter(R.isNil) console.log('resolveContentIn', path, source) path = R.insertAll(1, ['content'], path) return R.path(path, source) }) const variatio...
src/svg-icons/av/repeat.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvRepeat = (props) => ( <SvgIcon {...props}> <path d="M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4z"/> </SvgIcon> ); AvRepeat = pure(AvRepeat); AvRepeat.displayName = 'AvRepeat'; AvRepeat.mu...
index.js
techiesanchez/rythus-app
import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import createLogger from 'redux-logger'; import thunkMiddleware from 'redux-thunk'; import reducers from './reducers'; import { RythusCard...
src/client/routes.js
obimod/este
import App from './app/app.react'; import Home from './home/index.react'; import Login from './auth/index.react'; import Me from './me/index.react'; import NotFound from './components/notfound.react'; import React from 'react'; import Todos from './todos/index.react'; import {DefaultRoute, NotFoundRoute, Route} from 'r...
stories/index.js
ionutmilica/react-chartjs-components
import React from 'react'; import './ComponentsExample';
src/svg-icons/communication/message.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationMessage = (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-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/> </SvgIcon> ); Commun...
ScrollableTabView自定义TarBar/index.android.js
yuanliangYL/ReactNative-Components-Demo
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class ScrollableTabView extends Component { render() { return ( <View style={styles.c...
src/encoded/static/components/viz/FourfrontLogo.js
hms-dbmi/fourfront
'use strict'; import React from 'react'; import _ from 'underscore'; import * as d3 from 'd3'; /** Renders out the 4DN Logo SVG as a React element(s) */ export class FourfrontLogo extends React.PureComponent { static defaultProps = { 'id' : "fourfront_logo_svg", 'circlePath...
server/frontend/components/Header/Header.js
SchadkoAO/FDTD_Solver
import React from 'react'; import AppBar from 'material-ui/AppBar'; import Toolbar from 'material-ui/Toolbar'; import Typography from 'material-ui/Typography'; import Button from 'material-ui/Button'; import IconButton from 'material-ui/IconButton'; import MenuIcon from 'material-ui-icons/Menu'; export const Header = ...
src/js/components/Gallery/GalleryImage.js
jamieallen59/jamieallen
import React from 'react' import PropTypes from 'prop-types' import CSSModules from 'react-css-modules' import styles from './Gallery.less' import { className } from './Gallery' const GalleryImage = ({ imageUrl, onClick, display = true }) => ( <div onClick={onClick} > <img styleName={display ? `${className}__ima...
docs/src/examples/elements/Input/index.js
Semantic-Org/Semantic-UI-React
import React from 'react' import Types from './Types' import States from './States' import Variations from './Variations' import Usage from './Usage' const InputExamples = () => ( <div> <Types /> <States /> <Variations /> <Usage /> </div> ) export default InputExamples
src/Parser/Hunter/BeastMastery/Modules/Talents/DireFrenzy.js
enragednuke/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import STATISTIC_ORDER from 'Main/STATISTIC_ORDER'; import { formatPerc...