path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
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...
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/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...
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 ( ...
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',...
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/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...
packages/react/components/actions.js
iamxiaoma/Framework7
import React from 'react'; import Mixins from '../utils/mixins'; import Utils from '../utils/utils'; import __reactComponentWatch from '../runtime-helpers/react-component-watch.js'; import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js'; import __reactComponentSlots from '../ru...
docs/src/app/components/pages/components/RaisedButton/ExampleIcon.js
pradel/material-ui
import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import {fullWhite} from 'material-ui/styles/colors'; import ActionAndroid from 'material-ui/svg-icons/action/android'; import FontIcon from 'material-ui/FontIcon'; const style = { margin: 12, }; const RaisedButtonExampleIcon = () => ( ...
src/mongostick/frontend/src/screens/DatabaseOverview.js
RockingRolli/mongostick
import React from 'react' import { Col, Row, Table } from 'antd' import { connect } from 'react-redux' import { formatBytes } from '../lib/mongodb' import { Link } from 'react-router-dom' class Databases extends React.Component { getColumns = () => { return [ { title: 'Name', dataIndex: 's...
app/addons/documents/routes-mango.js
apache/couchdb-fauxton
// 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 // distributed un...
src/Row.js
westonplatter/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import CustomPropTypes from './utils/CustomPropTypes'; const Row = React.createClass({ propTypes: { /** * You can use a custom element for this component */ componentClass: CustomPropTypes.elementType }, getDefaultProps() { re...
src/components/Layer/Layer.js
nambawan/g-old
// from : https://github.com/grommet/grommet/blob/master/src/js/components/Layer.js import React from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import withStyles from 'isomorphic-style-loader/withStyles'; import StyleContext from 'isomorphic-style-loader/StyleContext'; import { Pro...
src/components/AppRoutes.js
trda/seslisozluk-simple-ui-project
import React from 'react'; import { Router, browserHistory } from 'react-router'; import routes from '../routes'; export default class AppRoutes extends React.Component { render() { return ( <Router history={browserHistory} routes={routes} onUpdate={() => window.scrollTo(0, 0)}/> ); } }
src/navigators/ReduxNavigation.js
jfilter/frag-den-staat-app
import { BackHandler, Linking, Platform } from 'react-native'; import { NavigationActions } from 'react-navigation'; import { connect } from 'react-redux'; import { createReactNavigationReduxMiddleware, createReduxContainer, } from 'react-navigation-redux-helpers'; import React from 'react'; import BackgroundFetch ...
node_modules/react-bootstrap/es/Popover.js
darklilium/Factigis_2
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 ...
admin/client/App/components/Navigation/Mobile/SectionItem.js
benkroeger/keystone
/** * A mobile section */ import React from 'react'; import MobileListItem from './ListItem'; import { Link } from 'react-router'; const MobileSectionItem = React.createClass({ displayName: 'MobileSectionItem', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, curren...
client/components/ui/label.js
bnjbvr/kresus
import React from 'react'; import PropTypes from 'prop-types'; import { translate as $t } from '../../helpers'; class LabelComponent extends React.Component { state = { value: null }; handleChange = e => { this.setState({ value: e.target.value }); }; handleFoc...
src/svg-icons/av/explicit.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvExplicit = (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-2zm-4 6h-4v2h4v2h-4v2h4v2H9V7h6v2z"/> </SvgIcon> ); AvExplicit = pure(AvExplic...
src/components/ExplanationSelection.js
quintel/etmobile
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import classNames from 'classnames'; import offSvg from '../images/explanations/off.svg'; import onSvg from '../images/explanations/on.svg'; import offSelectedSvg from '../images/explanations/off-selected.sv...
src/views/Components/NavigationTree.js
pranked/cs2-web
/** * Created by dom on 9/15/16. */ import React from 'react'; import { Link } from 'react-router'; const NavigationTree = React.createClass({ propTypes: { items: React.PropTypes.array.isRequired }, render() { const flatten = (item) => { return ( <li key={item.name}> <Link to={...
app/javascript/mastodon/features/compose/components/warning.js
SerCom-KC/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; export default class Warning extends React.PureComponent { static propTypes = { message: PropTypes.node.isRequired, }; render () { const { mes...
stalk-messenger/app/components/tabs/chats/index.js
JohnKim/stalk.messenger
/** * * @flow */ 'use strict'; import React, { Component } from 'react'; import { View, StyleSheet, Text, TouchableOpacity, } from 'react-native'; import ChatCell from './ChatCell'; import { loadChats, leaveChat } from 's5-action'; import { S5Header, S5SwipeListView } from 's5-components'; import { connec...
lib/editor/components/question_editors/parts/BulkAddItemsEditorPart.js
jirokun/survey-designer-js
/* eslint-env browser */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import S from 'string'; import * as EditorActions from '../../../actions'; class BulkAddItemsEditorPart extends Component { constructor(props) { super(props); this.state = { inputText: '' }; } /** 一...
test/integration/image-component/default/pages/missing-src.js
zeit/next.js
import React from 'react' import Image from 'next/image' const Page = () => { return ( <div> <Image width={200}></Image> </div> ) } export default Page
src/js/components/icons/base/ShieldSecurity.js
odedre/grommet-final
/** * @description ShieldSecurity 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....
actor-apps/app-web/src/app/components/common/Fold.React.js
luwei2012/actor-platform
/* eslint-disable */ import React from 'react'; import classnames from 'classnames'; class Fold extends React.Component { static PropTypes = { icon: React.PropTypes.string, iconClassName: React.PropTypes.string, title: React.PropTypes.string.isRequired }; state = { isOpen: false }; construc...
src/propTypes/TextStylePropTypes.js
lelandrichardson/react-native-mock
/** * https://github.com/facebook/react-native/blob/master/Libraries/Text/TextStylePropTypes.js */ import React from 'react'; import ColorPropType from './ColorPropType'; import ViewStylePropTypes from './ViewStylePropTypes'; const { PropTypes } = React; // TODO: use spread instead of Object.assign/create after #65...
components/DefaultHTMLLayout.js
slidewiki/slidewiki-platform
import React from 'react'; import ApplicationStore from '../stores/ApplicationStore'; //import ga from '../plugins/googleAnalytics/ga'; import { Microservices } from '../configs/microservices'; let hook = require('css-modules-require-hook'); hook({ generateScopedName: '[hash:base64:5]', }); class DefaultHTMLLayo...
dashboard-ui/app/components/usageAnalytics/usageAnalytics.js
CloudBoost/cloudboost
/** * Created by Jignesh on 28-06-2017. */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { resetAnalytics } from '../../actions'; export class AppAnalytics extends React.Component { static propTypes = { appData: PropTypes.any, resetAnalytics: P...
examples/parcel/src/withRoot.js
cherniavskii/material-ui
import React from 'react'; import { MuiThemeProvider, createMuiTheme } from 'material-ui/styles'; import purple from 'material-ui/colors/purple'; import green from 'material-ui/colors/green'; import CssBaseline from 'material-ui/CssBaseline'; // A theme with custom primary and secondary color. // It's optional. const ...
docs/app/Examples/elements/Image/Types/index.js
clemensw/stardust
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import { Message } from 'semantic-ui-react' const ImageTypesExamples = () => ( <ExampleSection title='Types'> <ComponentExample ...
router_tutorial/06-params/modules/About.js
Muzietto/react-playground
import React from 'react' export default React.createClass({ render() { return <div>About</div> } })
code/workspaces/web-app/src/pages/Page.js
NERC-CEH/datalab
import React from 'react'; import PropTypes from 'prop-types'; import { Typography, withStyles } from '@material-ui/core'; import Footer from '../components/app/Footer'; const style = theme => ({ pageTemplate: { display: 'flex', flexDirection: 'column', flexGrow: 1, padding: `0 ${theme.spacing(4)}px`...
src/components/routes/animal/AnimalForm.js
fredmarques/petshop
import './Animal.css'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Field, reduxForm } from 'redux-form'; import { Link } from 'react-router-dom'; import { registerAnimal } from '../../../actions/animals'; class AnimalForm extends Component { renderField(field) { cons...
src/icons/BorderClearIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class BorderClearIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M14 10h4V6h-4v4zm0 16h4v-4h-4v4zm0 16h4v-4h-4v4zm8-8h4v-4h-4v4zm0 8h4v-4h-4v4zM6 42h4v-4H6v4zm0-8h4v-4...