path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
docs/app/Examples/collections/Grid/Types/GridExampleCelled.js | koenvg/Semantic-UI-React | import React from 'react'
import { Grid, Image } from 'semantic-ui-react'
const GridExampleCelled = () => (
<Grid celled>
<Grid.Row>
<Grid.Column width={3}>
<Image src='http://semantic-ui.com/images/wireframe/image.png' />
</Grid.Column>
<Grid.Column width={13}>
<Image src='http... |
frontend/src/Calendar/Events/CalendarEventQueueDetails.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import QueueDetails from 'Activity/Queue/QueueDetails';
import CircularProgressBar from 'Components/CircularProgressBar';
import colors from 'Styles/Variables/colors';
import translate from 'Utilities/String/translate';
function CalendarEventQueueDetails(p... |
src/components/logged_in_navigation/components/user_dropdown/index.js | aredotna/ervell | import React from 'react'
import { mountWithApolloProvider } from 'v2/apollo'
import unmount from 'v2/util/unmount'
import Overlay from 'v2/components/UI/Overlay'
import UserDropdown from 'v2/components/UserDropdown'
const STATE = {
isOpened: false,
}
const OverlaidUserDropdown = ({ targetEl, close }) => (
<Ove... |
node_modules/react-icons/fa/close.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaClose = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m33.5 29.5q0 0.9-0.7 1.5l-3 3.1q-0.6 0.6-1.5 0.6t-1.5-0.6l-6.6-6.6-6.5 6.6q-0.7 0.6-1.6 0.6t-1.5-0.6l-3-3.1q-0.6-0.6-0.6-1.5t0.6-1.5l6.5-6.6-6.5-6.5q-0.6-0.7-0.6-1.6t0.... |
desktop/libs/StoryboardProject/index.android.js | decosoftware/deco-ide | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View
} from 'react-native';
class Project extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.w... |
node_modules/react-sparklines/src/SparklinesReferenceLine.js | aleksandrsmolin/react-redux-weather | import React from 'react';
import * as dataProcessing from './dataProcessing';
export default class SparklinesReferenceLine extends React.Component {
static propTypes = {
type: React.PropTypes.oneOf(['max', 'min', 'mean', 'avg', 'median', 'custom']),
value: React.PropTypes.number,
style: R... |
admin/client/components/Popout/PopoutHeader.js | qwales1/keystone | import React from 'react';
import Transition from 'react-addons-css-transition-group';
var PopoutHeader = React.createClass({
displayName: 'PopoutHeader',
propTypes: {
leftAction: React.PropTypes.func,
leftIcon: React.PropTypes.string,
title: React.PropTypes.string.isRequired,
transitionDirection: React.Prop... |
src/index.js | ric9176/hoc | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { Router, Route, browserHistory } from 'react-router';
import withAuth from './components/require_auth';
import App from './components/app';
import Resources... |
src/features/ViewMenuItems/Dimensions.js | erhathaway/cellular_automata | import React from 'react';
import { inject, observer } from 'mobx-react';
import { MainContainer as Container, AttributeHeader, TitleHeader } from './Views';
export default inject('automataStore')(observer((props) => {
const { automataStore: { dimension } } = props;
return (
<Container {...props}>
<Att... |
examples/src/components/Virtualized.js | mobile5dev/react-select | import React from 'react';
import createClass from 'create-react-class';
import VirtualizedSelect from 'react-virtualized-select';
const DATA = require('../data/cities');
var CitiesField = createClass({
displayName: 'CitiesField',
getInitialState () {
return {};
},
updateValue (newValue) {
this.setState({
... |
dcc-submission-ui/src/routes.js | icgc-dcc/dcc-submission | import React from 'react';
import { Router, Route, browserHistory, IndexRoute } from 'react-router'
import user from '~/user.js';
function requireAuth(nextState, replace) {
if (!user.isLoggedIn) {
replace({
pathname: '/login',
state: { nextPathname: nextState.location.pathname }
})
}
}
functi... |
js/PushNotifications.js | BarberHour/barber-hour | import React, { Component } from 'react';
import { Platform } from 'react-native';
import PushNotification from 'react-native-push-notification';
import { connect } from 'react-redux';
import Pubnub from './Pubnub';
import { gcmSenderID } from './env';
import { addChannel, removeChannel } from './actions/notification'... |
app/components/elements/tables.js | allecsro/dynotool | /* eslint no-plusplus: ["error", { "allowForLoopAfterthoughts": true }] */
import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
class Tables extends React.Component {
/**
* Renders the list of tables
*
* @returns {*}
*/
renderTables() {
if (!this... |
client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/address-step/fields.js | Automattic/woocommerce-connect-client | /** @format */
/**
* External dependencies
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { localize } from 'i18n-calypso';
import { isEqual, isObject, size } from 'lodash';
/**
* Internal dependencies
*/
... |
src/js/Application.js | tomkp/react-application | import React from 'react';
import Layout from './components/layout/Layout';
import Flex from './components/layout/Flex';
import Fixed from './components/layout/Fixed';
import Calendar from './components/calendar/Calendar';
import TabPane from './components/tab-pane/TabPane';
import Tab from './components/tab-pane/Tab';... |
docs/app/Examples/elements/Segment/Groups/SegmentExampleRaisedSegments.js | koenvg/Semantic-UI-React | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExampleRaisedSegments = () => (
<Segment.Group raised>
<Segment>Left</Segment>
<Segment>Middle</Segment>
<Segment>Right</Segment>
</Segment.Group>
)
export default SegmentExampleRaisedSegments
|
server/sonar-web/src/main/js/components/ui/BugIcon.js | Builders-SonarSource/sonarqube-bis | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
src/icons/LocalAirportIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class LocalAirportIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M42 32v-4L26 18V7c0-1.66-1.34-3-3-3s-3 1.34-3 3v11L4 28v4l16-5v11l-4 3v3l7-2 7 2v-3l-4-3V27l16 5z"/><... |
components/App.js | lsgoulart/another-todo-list | import React, { Component } from 'react';
import TodoInput from './TodoInput';
import TodoList from './TodoList';
import { connect } from 'react-redux';
require('./App.scss');
class App extends Component {
render() {
return (
<div>
<h1>Another TODO LIST ¬¬</h1>
<... |
examples/cra-kitchen-sink/src/App.js | jribeiro/storybook | import React from 'react';
import logo from './logo.svg';
import './App.css';
const App = () =>
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
</div>
<p className="App-intro">
To get started, edit <code>src... |
src/docs/Example.js | StudentOfJS/ps-react-rod | import React from 'react';
import PropTypes from 'prop-types';
import CodeExample from './CodeExample';
class Example extends React.Component {
constructor(props) {
super(props);
this.state = { showCode: false };
}
toggleCode = event => {
event.preventDefault();
this.setState(prevState => {
... |
src/svg-icons/action/http.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHttp = (props) => (
<SvgIcon {...props}>
<path d="M4.5 11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5v2zm2.5-.5h1.5V15H10v-4.5h1.5V9H7v1.5zm5.5 0H14V15h1.5v-4.5H17V9h-4.5v1.5zm9-1.5H18v6h1.5v-2h2c.8 0 1.5-.7 1.5-1.5v-... |
src/imports/ui/builder/components/product/QuantityStepper.js | hwillson/meteor-recommendation-builder | import React from 'react';
import { ButtonGroup, Button } from 'react-bootstrap';
const QuantityStepper = ({ product }) => (
<ButtonGroup className="quantity-stepper">
<Button onClick={() => { product.decreaseQuantity(); }}>-</Button>
<Button disabled>{product.quantity}</Button>
<Button onClick={() => { ... |
app/utils/ImageWithPlaceholder.js | akilb/rukatuk-mobile | import React from 'react';
import {
Image,
ImageBackground,
View
} from 'react-native';
class ImageWithPlaceholder extends React.Component {
constructor(props) {
super(props);
this.state = {
isLoaded: false,
isError: false
};
}
onLoadEnd() {
this.setState({
isLoaded: true... |
app/javascript/mastodon/components/admin/Dimension.js | Kirishima21/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import api from 'mastodon/api';
import { FormattedNumber } from 'react-intl';
import { roundTo10 } from 'mastodon/utils/numbers';
import Skeleton from 'mastodon/components/skeleton';
export default class Dimension extends React.PureComponent {
static pr... |
js/components/pages/NotFound.react.js | ayal/jaar | import React, { Component } from 'react';
import { Link } from 'react-router';
class NotFound extends Component {
render() {
return (
<article>
<h1>Page not found.</h1>
<Link to="/" className="btn">Home</Link>
</article>
);
}
}
export default NotFound;
|
src/svg-icons/maps/local-movies.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalMovies = (props) => (
<SvgIcon {...props}>
<path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"/>
</Svg... |
public/components/MainPage.js | mbresnan1701/project-ipsum | import React from 'react';
import actions from '../actions/ipsumActions.js';
import { browserHistory } from 'react-router';
import { connect } from 'react-redux';
import maps from '../mappingFunctions.js';
import restHandler from '../util/restHelpers.js';
import MainPageAppView from './MainPageAppView.js';
import { Gri... |
app/scripts/app.js | jeselxe/WebSeries-cli | import React from 'react';
import ReactDOM from 'react-dom';
import {syncReduxAndRouter} from 'redux-simple-router';
import {createHashHistory} from 'history';
import Routes from './Routes';
import {createStore} from 'redux';
import {Provider} from 'react-redux';
import Reducers from './Reducers';
const store = create... |
src/components/base/toolbar-buttons.js | ambrinchaudhary/alloy-editor | /**
* SPDX-FileCopyrightText: © 2014 Liferay, Inc. <https://liferay.com>
* SPDX-License-Identifier: LGPL-3.0-or-later
*/
import React from 'react';
import ReactDOM from 'react-dom';
import EditorContext from '../../adapter/editor-context';
import Lang from '../../oop/lang';
/**
* ToolbarButtons provides a list o... |
app/containers/Invoice/InvoiceDetails.js | danielmoraes/invoices-web-client | import React from 'react'
import { Details } from 'components'
import { Invoice } from 'api/entity-schema'
import { formatPrice, formatDate } from 'lib/formatter'
const InvoiceDetails = ({ data }) => {
const dataWithLabels = [
{
label: Invoice.id.label,
value: data.id
},
{
label: Invoi... |
src/svg-icons/image/crop-5-4.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCrop54 = (props) => (
<SvgIcon {...props}>
<path d="M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H5V7h14v10z"/>
</SvgIcon>
);
ImageCrop54 = pure(ImageCrop54);
ImageCro... |
node_modules/react-icons/md/assignment-returned.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdAssignmentReturned = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 30l8.4-8.4h-5v-6.6h-6.8v6.6h-5z m0-25c-0.9 0-1.6 0.7-1.6 1.6s0.7 1.8 1.6 1.8 1.6-0.8 1.6-1.8-0.7-1.6-1.6-1.6z m11.6 0c1.8 0 3.4 1.6 3.4 3.4v23.2c0 1.8-... |
fields/types/text/TextFilter.js | developer-prosenjit/keystone | import React from 'react';
import { FormField, FormInput, FormSelect, SegmentedControl } from 'elemental';
const TOGGLE_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true }
];
const MODE_OPTIONS = [
{ label: 'Contains', value: 'contains' },
{ label: 'Exactly', value: 'exactly'... |
submissions/arqex/src/components/App.js | enkidevs/flux-challenge | import React from 'react';
import State from '../State';
import SithList from './SithList';
export default class App extends React.Component {
render(){
var state = this.props.appState,
upClass = 'css-button-up',
downClass = 'css-button-down'
;
if( state.sithAtHome || state.upDisabled )
upClass += ' c... |
react-redux-demo/todos/src/components/Footer.js | fengnovo/webpack-react | import React from 'react'
import FilterLink from '../containers/FilterLink'
const Footer = () => (
<p>
Show:
{" "}
<FilterLink filter="SHOW_ALL">
All
</FilterLink>
{", "}
<FilterLink filter="SHOW_ACTIVE">
Active
</FilterLink>
{", "}
<FilterLink filter="SHOW_COMPLETED">... |
src/components/Chat/Speak.js | vNakamura/pocket-campaign | // @flow
import React from 'react';
import styled from 'styled-components';
import type { SpeakMessage } from '../../types/Chat';
import type { UserState } from '../../types/State';
import { addLinksToText } from '../../helpers/dice';
import type { Theme } from '../../theme';
import CommonLayoutWithAvatar from './Com... |
src/index.js | doublerz/tractor-beam-client | import React from 'react'
import { render } from 'react-dom'
import { App } from './App'
render(<App />, document.getElementById('root'))
|
components/Animate/EdgeFade.js | rdjpalmer/bloom | /*
global
window: true,
*/
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { subscribe } from 'subscribe-ui-event';
export default class EdgeFade extends Component {
static propTypes = {
children: PropTypes.node.isRequired,
threshold: PropTypes.number,
};
stat... |
NuCache/client/components/app.js | Pondidum/NuCache | import React from 'react'
import FilteredPackageList from './FilteredPackageList'
const App = () => (
<div>
<h1 className="text-center">NuCache</h1>
<FilteredPackageList />
</div>
);
export default App
|
app/containers/App.js | irwinb/table-viewer | // @flow
import React, { Component } from 'react';
import type { Children } from 'react';
export default class App extends Component {
props: {
children: Children
};
render() {
return (
<div>
{this.props.children}
</div>
);
}
}
|
src/svg-icons/editor/merge-type.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorMergeType = (props) => (
<SvgIcon {...props}>
<path d="M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"/>
</SvgIcon>
);
EditorMergeType = pure(Editor... |
src/OverlayNavigator.js | mcabs3/react-native-router-flux | /* @flow */
import React from 'react';
import { createNavigationContainer, createNavigator, TabRouter } from 'react-navigation';
import { View } from 'react-native';
const OverlayNavigator = (
routeConfigs,
tabsConfig = {}
) => {
const router = TabRouter(routeConfigs, tabsConfig);
const navigator = createNav... |
lib/components/Modal.js | Peter-Springer/peter-springer.github.io | import React from 'react';
import { Modal, Button } from 'react-bootstrap';
class MySmallModal extends React.Component {
render() {
return (
<Modal {...this.props} bsSize="small" aria-labelledby="contained-modal-title-sm">
<Modal.Header>
<Modal.Title id="contained-modal-title-sm">Your mes... |
src/index.js | Dadaniya/react | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
src/components/MessageContent/Photo/Photo.js | nolawi/champs-dialog-sg | /**
* Copyright 2017 dialog LLC <info@dlg.im>
* @flow
*/
import React from 'react';
import classNames from 'classnames';
import Image from '../../Image/Image';
import styles from './Photo.css';
export type Props = {
className?: string,
width: number,
height: number,
maxHeight: number,
maxWidth: number,
... |
StudyNotes/ReactNative_/tg/component/shop/shop.js | coderZsq/coderZsq.target.swift | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Image,
WebView
} from 'react-native';
import CommonNavBar from '../main/commonnavbar'
let RequestURL = 'https://coderzsq.github.io/';
var Shop = React.createClass({
render(){
return (
<View>
... |
src/components/Settings.js | joellanciaux/Griddle | import React from 'react';
// This is responsible for rendering the individual settings sections
const Settings = ({ settingsComponents, style, className }) => (
<div style={style} className={className}>
{settingsComponents && settingsComponents.map((SettingsComponent, i) => SettingsComponent && <div key={Settin... |
src/svg-icons/image/rotate-right.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageRotateRight = (props) => (
<SvgIcon {...props}>
<path d="M15.55 5.55L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45zM19.93 11c-.17-1.39-.72-2.7... |
07-recursive-paths/components/Person.js | nodeyu/jason-react-router-demos-v4 | import React from 'react';
import { Link, Route } from 'react-router-dom';
import find from '../utils/findFriends';
class Person extends React.Component {
person = find(this.props.match.params.id);
componentDidMount() {
console.log(this);
console.log(this.person);
}
render() {
... |
ajax/libs/react-instantsearch/4.0.0-beta.3/Dom.js | nolsherry/cdnjs | /*! ReactInstantSearch 4.0.0-beta.3 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof def... |
packages/core/tocco-ui/src/utilStyles/getTextOfChildren.js | tocco/tocco-client | import React from 'react'
const getTextOfChildren = children => {
let output = ''
React.Children.map(children, (child, i) => {
if (typeof child === 'string') {
output = `${output}${child}`
} else if (typeof child === 'object') {
output = `${output}${getTextOfChildren(child.props.children)}`
... |
docs-ui/components/alertLink.stories.js | looker/sentry | import React from 'react';
import {storiesOf} from '@storybook/react';
import {withInfo} from '@storybook/addon-info';
import AlertLink from 'app/components/alertLink';
storiesOf('Links/AlertLink', module)
.add(
'default',
withInfo('A way to loudly link between different parts of the application')(() => (
... |
test/fixtures/webpack-message-formatting/src/AppMissingPackage.js | ConnectedHomes/create-react-web-app | import React, { Component } from 'react';
import { bar } from 'unknown-package';
class App extends Component {
componentDidMount() {
bar();
}
render() {
return <div />;
}
}
export default App;
|
admin/client/App/shared/Popout/PopoutListHeading.js | xyzteam2016/keystone | /**
* Render a popout list heading
*/
import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var PopoutListHeading = React.createClass({
displayName: 'PopoutListHeading',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
},
... |
src/svg-icons/maps/local-florist.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalFlorist = (props) => (
<SvgIcon {...props}>
<path d="M12 22c4.97 0 9-4.03 9-9-4.97 0-9 4.03-9 9zM5.6 10.25c0 1.38 1.12 2.5 2.5 2.5.53 0 1.01-.16 1.42-.44l-.02.19c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.... |
src/components/svg-image.js | ronlobo/building-os-charts | import React from 'react';
import getAttribute from 'decorators/get-attribute';
import getTranslate from 'decorators/get-translate';
@getAttribute
@getTranslate
export default class SvgImage extends React.Component {
static propTypes = {
className: React.PropTypes.string.isRequired,
clipPathID: React.PropTy... |
src/client/post/PostContent.js | busyorg/busy | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import _ from 'lodash';
import { Helmet } from 'react-helmet';
import sanitize from 'sanitize-html';
import { getHasDefaultSlider } fr... |
src/svg-icons/communication/stay-primary-landscape.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationStayPrimaryLandscape = (props) => (
<SvgIcon {...props}>
<path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/>
</SvgIcon>
);
Communicat... |
src/svg-icons/image/center-focus-strong.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCenterFocusStrong = (props) => (
<SvgIcon {...props}>
<path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm-7 7H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V... |
client/containers/LoginPage.js | mygithub1216/MERN_SelfCar_Dashboard | import React from 'react';
import { connect } from 'react-redux';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import Paper from 'material-ui/Paper';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButton from 'material-ui/FlatButton';
import Checkbox from 'material-ui/Checkbox';
... |
packages/wix-style-react/stories/Introduction/Cheatsheet/ComponentsCheatsheet.js | wix/wix-style-react | import React from 'react';
// importing components by family type
import FoundationFamily from './componentsFamilies/FoundationFamily';
import LayoutFamily from './componentsFamilies/LayoutFamily/LayoutFamily';
import InputFamily from './componentsFamilies/InputFamily';
import SelectionFamily from './componentsFamilie... |
src/NavbarBrand.js | apkiernan/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import { prefix } from './utils/bootstrapUtils';
const contextTypes = {
$bs_navbar: React.PropTypes.shape({
bsClass: React.PropTypes.string,
}),
};
class NavbarBrand extends React.Component {
render() {
const { className, children, ...prop... |
src/client.js | mscienski/stpauls | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createStore from './redux/create';
import ApiClient from './helpers/ApiClient';
import io from 'socket.io-client';
import... |
app/components/word.js | BrackCurly/qwery-me | import _ from 'lodash';
import React from 'react';
import store from '../store';
import WordCompletion from './word-completion';
import {setWordToken} from '../actions';
import {WORD, TOKEN} from '../types';
export default class Word extends React.Component {
render () {
var {token, id, selected, prev, onSelect}... |
web/routes.js | skeskinen/project-celestial | import { Route, IndexRoute, Router, Redirect} from 'react-router';
import App from './containers/App';
import GameContainer from './containers/GameContainer';
import About from './containers/About';
import React from 'react';
const routes = (
<Route path='/' component={App}>
<IndexRoute component={GameContainer}... |
admin/src/section/section.js | mnichangxin/LibAss | import React from 'react'
import {Icon} from 'react-fa'
import styles from './section.less'
class Section extends React.Component {
constructor(props) {
super(props)
this.state = {
section_title: props.section_title,
box_title: props.box_title,
box_content: prop... |
app/components/Link/index.js | zebbra-repos/Zeiterfassung-medi | /**
*
* Link
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import Wrapper from './Wrapper';
function Link(props) {
const { onClick } = props;
return (
<Wrapper onClick={() => onClick()}>
{props.children}
</Wrapper>
);
}
Link.propTypes = {
// properties
children: PropT... |
docs/app/Examples/modules/Progress/Content/Bar.js | jcarbo/stardust | import React from 'react'
import { Progress } from 'stardust'
const ProgressBarExample = () => (
<Progress percent={33} />
)
export default ProgressBarExample
|
examples/react-native/App.js | socketio/socket.io | import React, { Component } from 'react';
import { StyleSheet, Text, View } from 'react-native';
import io from 'socket.io-client';
const socket = io("192.168.0.28:3000"); // replace with the IP of your server, when testing on real devices
export default class App extends Component {
constructor(props) {
super(... |
src/index.js | elamperti/OpenWebScrobbler | import React from 'react';
import ReactDOM from 'react-dom';
import { unstable_HistoryRouter as HistoryRouter } from 'react-router-dom';
import './index.css';
import App from 'App';
import history from 'utils/history';
import ErrorPage from 'domains/error';
import registerServiceWorker from 'utils/registerServiceWorke... |
stories/button/index.js | shulie/dh-component | import React from 'react';
import { storiesOf, action, linkTo } from '@kadira/storybook';
import withReadme from 'storybook-readme/with-readme';
import buttonReadme from './button.md';
import { Button, Modal } from '../../src';
const options = {
inline: true, propTables: false
}
storiesOf('按钮', module)
.addDecorat... |
src/step-24/StoreSetup.js | ReactJS-Wisconsin/react-native-workshop | import React, { Component } from 'react'
import Highlight from 'react-syntax-highlight'
// import Note from '../Note'
import structurePng from './Structure.png'
const indexJs = `import React from 'react'
import { AppRegistry } from 'react-native'
import { StackNavigator } from 'react-navigation'
import { fetchInitial... |
src/components/Installments.js | paramadeep/chit | import React from 'react';
import {Text, StyleSheet} from 'react-native';
import Installment from './Installment';
const Installments = ({installments}) => {
return (
<>
<Text> Hi </Text>
{installments.map(installment => (
<Installment key={installment.id} installment={installment} />
)... |
core/src/plugins/gui.ajax/res/js/ui/Workspaces/search/components/DatePanel.js | huzergackl/pydio-core | /*
* Copyright 2007-2017 Charles du Jeu - Abstrium SAS <team (at) pyd.io>
* This file is part of Pydio.
*
* Pydio is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, o... |
packages/lightning-components/SidebarItem/story.js | DaReaper/lightning-app | import React from 'react'
import { storiesOf } from '@kadira/storybook'
import SidebarItem from './'
storiesOf('SidebarItem', module)
.add('transactions', () => (
<SidebarItem label="Transactions" icon="swap-horizontal" />
))
.add('`active` transactions', () => (
<SidebarItem active label="Transactions"... |
src/esm/components/information/boxes/icon-container/index.js | KissKissBankBank/kitten | import React from 'react';
import PropTypes from 'prop-types';
import styled, { css } from 'styled-components';
import { Container } from '../../../layout/container';
import { pxToRem } from '../../../../helpers/utils/typography';
import { VisuallyHidden } from '../../../accessibility/visually-hidden';
var StyledContai... |
frontend/web-client/src/index.js | ThomasWu/PersonalNewsWeb | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
import './index.css';
ReactDOM.render(
<Router history={browserHistory} routes={routes} />,
document.getElementById('root')
);
|
src/svg-icons/av/music-video.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvMusicVideo = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.0... |
src/Table.js | brynjagr/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const Table = React.createClass({
propTypes: {
striped: React.PropTypes.bool,
bordered: React.PropTypes.bool,
condensed: React.PropTypes.bool,
hover: React.PropTypes.bool,
responsive: React.PropTypes.bool
},
getDefaultProps() {
... |
docs/src/app/components/pages/components/Table/ExampleSimple.js | ArcanisCz/material-ui | import React from 'react';
import {Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table';
const TableExampleSimple = () => (
<Table>
<TableHeader>
<TableRow>
<TableHeaderColumn>ID</TableHeaderColumn>
<TableHeaderColumn>Name</TableHeaderColumn>... |
src/lib/markers/public/CustomMarker.js | namespace-ee/react-calendar-timeline | import React from 'react'
import PropTypes from 'prop-types'
import { TimelineMarkersConsumer } from '../TimelineMarkersContext'
import { TimelineMarkerType } from '../markerType'
class CustomMarker extends React.Component {
static propTypes = {
subscribeMarker: PropTypes.func.isRequired,
updateMarker: PropT... |
blueocean-material-icons/src/js/components/svg-icons/notification/network-check.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const NotificationNetworkCheck = (props) => (
<SvgIcon {...props}>
<path d="M15.9 5c-.17 0-.32.09-.41.23l-.07.15-5.18 11.65c-.16.29-.26.61-.26.96 0 1.11.9 2.01 2.01 2.01.96 0 1.77-.68 1.96-1.59l.01-.03L16.4 5.5c0-.28-.22-.5-.5-.5zM1 9l2 2c2.88-2.88 ... |
src/containers/Asians/TabControls/Settings/PreliminaryRoundSettings/NumberPreliminaryRounds/index.js | westoncolemanl/tabbr-web | import React from 'react'
import { connect } from 'react-redux'
import CreateRounds from './CreateRounds'
import ViewRounds from './ViewRounds'
export default connect(mapStateToProps)(({
rounds
}) => {
if (rounds.length === 0) {
return <CreateRounds />
} else {
return <ViewRounds />
}
})
function map... |
src/svg-icons/toggle/star.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ToggleStar = (props) => (
<SvgIcon {...props}>
<path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/>
</SvgIcon>
);
ToggleStar = pure(ToggleStar);
ToggleStar.disp... |
docs/src/app/components/pages/get-started/ServerRendering.js | manchesergit/material-ui | import React from 'react';
import Title from 'react-title-component';
import MarkdownElement from '../../MarkdownElement';
import serverRenderingText from './server-rendering.md';
const ServerRendering = () => (
<div>
<Title render={(previousTitle) => `Server Rendering - ${previousTitle}`} />
<MarkdownElemen... |
app/javascript/mastodon/features/list_editor/components/edit_list_form.js | abcang/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { changeListEditorTitle, submitListEditor } from '../../../actions/lists';
import IconButton from '../../../components/icon_button';
import { defineMessages, injectIntl } from 'react-intl';
const messages = def... |
node_modules/react-icons/md/do-not-disturb-alt.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdDoNotDisturbAlt = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 33.4q5.5 0 9.4-4t4-9.4q0-4.4-2.9-8.2l-18.7 18.7q3.8 2.9 8.2 2.9z m-13.4-13.4q0 4.5 2.9 8.2l18.7-18.7q-3.8-2.9-8.2-2.9-5.5 0-9.4 4t-4 9.4z m13.4-16.6q6.9 0... |
src/svg-icons/image/looks-6.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooks6 = (props) => (
<SvgIcon {...props}>
<path d="M11 15h2v-2h-2v2zm8-12H5c-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-4v2h2c1.1 0 2 .89 2 2v2c0 1.11-.9 2-2 2h-2c-1.1 0-2-.... |
src/components/ShowOnFocusButton/index.js | instructure/canvas-planner | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
githubprofileviewer/app/components/Dashboard.js | pritamstyz4ever/github-profile-viewer | import React, { Component } from 'react';
import {
Text,
View,
StyleSheet,
Image,
TouchableHighlight
} from 'react-native';
import Profile from './Profile';
import Repositories from './Repositories';
import api from '../utils/api'
const styles = StyleSheet.create({
container: {
marginT... |
docs/src/app/components/pages/components/AppBar/ExampleIconMenu.js | ruifortes/material-ui | import React from 'react';
import AppBar from 'material-ui/AppBar';
import IconButton from 'material-ui/IconButton';
import IconMenu from 'material-ui/IconMenu';
import MenuItem from 'material-ui/MenuItem';
import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert';
import NavigationClose from 'material-ui/s... |
scripts/apps/search/helpers.js | thnkloud9/superdesk-client-core | import React from 'react';
import ReactDOM from 'react-dom';
import {DEFAULT_LIST_CONFIG} from 'apps/search/constants';
import * as fields from 'apps/search/components/fields';
import ng from 'core/services/ng';
export function getSpecStyle(spec) {
var style = {};
if (spec.color) {
style.backgroundCol... |
examples/complex/src/components/main/index.js | rocjs/roc-package-web-app-react | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { provideHooks } from 'redial';
// components
import Repo from '../repo';
import Clicker from '../clicker';
import Bacon from '../bacon';
import Errors from '../errors';
import { createFetchAction } fr... |
packages/icons/src/filter.js | geek/joyent-portal | import React from 'react';
import Rotate from './rotate';
import calcFill from './fill';
export default ({
fill = null,
light = false,
disabled = false,
direction = 'down',
colors = {},
style = {},
...rest
}) => (
<Rotate direction={direction}>
{({ style: rotateStyle }) => (
<svg
xml... |
src/components/LecturerHelp.js | kpi-ua/ecampus.kpi.ua | import React, { Component } from 'react';
// import { DropdownItem } from 'reactstrap';
const link =
'https://a2c27d7243ea.blob.core.windows.net/kpi/files/current_control.pdf';
class LecturerHelp extends Component {
render() {
return (
<div className="row">
<div className="col-md-12">
... |
web/src/js/components/Widget/Widgets/Notes/Note.js | gladly-team/tab | import React from 'react'
import PropTypes from 'prop-types'
import moment from 'moment'
import WidgetPieceWrapper from 'js/components/Widget/WidgetPieceWrapper'
import DeleteIcon from 'material-ui/svg-icons/navigation/cancel'
import Chip from 'material-ui/Chip'
import TextField from '@material-ui/core/TextField'
impo... |
src/containers/DevTools.js | zebapy/react-redux-parse-server | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-q" defaultIsVisible={false}>
<Lo... |
src/components/IndexJumbo.js | RcrsvSquid/rcrsvsquid.github.io | import React from 'react';
import Link from 'gatsby-link';
import styled from 'styled-components';
import { Darken, ButtonLink, Jumbo } from './index';
import { Center } from './mixins';
const tagLine = "I'm Sidney,\nbut they call me";
export default () => (
<Jumbo img={require('../assets/headshot2.jpg')}>
<I... |
src/routes/home.js | birkir/react-typescript-iso-kit | import path from 'path';
import React from 'react';
const s = require('./home.less');
class Home extends React.Component {
render() {
return (
<div className={s.homeas}>
<p>I'm at home YEAH!</p>
</div>
);
}
}
export default Home; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.