path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
docs/src/app/components/FullWidthSection.js | skarnecki/material-ui | import React from 'react';
import ClearFix from 'material-ui/internal/ClearFix';
import spacing from 'material-ui/styles/spacing';
import styleResizable from 'material-ui/utils/styleResizable';
const desktopGutter = spacing.desktopGutter;
const FullWidthSection = React.createClass({
propTypes: {
children: React... |
examples/with-overflow-x/app.js | fisshy/react-scroll | import React, { Component } from 'react';
import { render } from 'react-dom';
import { Element, scrollSpy, Events, Link } from 'react-scroll';
class App extends Component {
constructor() {
super();
this.state = {
name: 'React'
};
}
render() {
return (
<div>
<h1>test </h1>
... |
packages/mcs-lite-ui/src/SpaceTop/SpaceTop.example.js | MCS-Lite/mcs-lite | import React from 'react';
import { storiesOf } from '@storybook/react';
import { withInfo } from '@storybook/addon-info';
import SpaceTop from '.';
storiesOf('SpaceTop', module).add(
'API',
withInfo({
text: 'margin-top',
inline: true,
})(() => <SpaceTop height={20}>SpaceTop content</SpaceTop>),
);
|
src/routes/Home/components/HomeView.js | jeffaustin81/cropcompass-ui | import React from 'react'
import Header from 'components/Header'
import Map from 'components/Map'
import FarmedLand from 'components/FarmedLand'
import FarmInfo from 'components/FarmInfo'
import TopCrops from 'components/TopCrops'
import Subsidies from 'components/Subsidies'
import CropProduction from 'components/CropP... |
src/components/TrackInfo.js | hedgerh/thinkful-react-style-guide | import React from 'react';
export default React.createClass({
propTypes: {
title: React.PropTypes.string,
username: React.PropTypes.string
},
render() {
return (
<div>
<p>{ this.props.title + ' - ' + this.props.username }</p>
</div>
);
}
}); |
packages/reactor-kitchensink/src/examples/PivotGrid/CompactLayout/CompactLayout.js | markbrocato/extjs-reactor | import React, { Component } from 'react';
import { Container, PivotGrid, Toolbar, Button } from '@extjs/reactor/modern';
import { generateData } from '../generateSaleData';
import SaleModel from '../SaleModel';
export default class CompactLayout extends Component {
store = Ext.create('Ext.data.Store', {
m... |
node_modules/react-bootstrap/es/TabContainer.js | lucketta/got-quote-generator | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'r... |
app/javascript/flavours/glitch/features/public_timeline/components/column_settings.js | Kirishima21/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { injectIntl, FormattedMessage } from 'react-intl';
import SettingToggle from '../../notifications/components/setting_toggle';
export default @injectIntl
class ColumnSettings extends React.... |
js/components/createArticle/index.js | phamngoclinh/PetOnline_vs2 |
import React, { Component } from 'react';
import { MapView, Image, TextInput, UselessTextInput, Alert, AsyncStorage } from 'react-native';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Text, Button, Icon, Fab, View, T... |
src/js/components/icons/base/Schedule.js | linde12/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
src/svg-icons/action/subject.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSubject = (props) => (
<SvgIcon {...props}>
<path d="M14 17H4v2h10v-2zm6-8H4v2h16V9zM4 15h16v-2H4v2zM4 5v2h16V5H4z"/>
</SvgIcon>
);
ActionSubject = pure(ActionSubject);
ActionSubject.displayName = 'Acti... |
public/js/components/profile.js | gonzochic/inox | import React from 'react';
import RestApi from 'public/js/components/restapi';
export default class Profile extends React.Component {
constructor() {
super()
this.state = {follows: []};
}
getProfile() {
RestApi.getDataFromUrl('/profiles/' + this.props.params.id,
(data) => console.log(data));
... |
app/javascript/mastodon/features/compose/index.js | Nyoho/mastodon | import React from 'react';
import ComposeFormContainer from './containers/compose_form_container';
import NavigationContainer from './containers/navigation_container';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import { mountCom... |
src/icons/NoEncryptionIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class NoEncryptionIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M42 43.56L8.44 10 6 12.44l4.08 4.08C8.85 17.2 8 18.5 8 20v20c0 2.2 1.8 4 4 4h24c.47 0 .91-.09 1.32-.2... |
lib/src/app.js | SerendpityZOEY/Solr-Search-React-UI | import React from 'react';
import ReactDOM from 'react-dom';
import SolrConnector from 'react-solr-connector';
import Navbar from './navbar.js';
import baseTheme from 'material-ui/styles/baseThemes/lightBaseTheme';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import injectTapEventPlugin from 'react-tap-eve... |
docs/app/Examples/elements/Button/Variations/ButtonExampleSize.js | shengnian/shengnian-ui-react | import React from 'react'
import { Button } from 'shengnian-ui-react'
const ButtonExampleSize = () => (
<div>
<Button size='mini'>
Mini
</Button>
<Button size='tiny'>
Tiny
</Button>
<Button size='small'>
Small
</Button>
<Button size='medium'>
Medium
</Button>
... |
client-portal/custom-widgets/ConditionalField.js | thebestbenjamin/testing-reactjs | import SchemaField from 'react-jsonschema-form/lib/components/fields/SchemaField';
import React from 'react';
//import { transform } from 'babel-core';
//import * as babel2 from 'babel-core';
//var babel = require("babel-core");
//var babel = require("babel-plugin-eval");
//import babel from 'babel-plugin-eval';
expor... |
src/routes.js | aspsoluciones/mcw-client | import React from 'react';
import { Provider } from 'react-redux';
import { Router, Route} from 'react-router'
//ROUTES
import App from './containers/App';
import Public from './containers/Public';
import Dashboard from './containers/Dashboard';
import Login from './containers/Login';
import Forbidden from './containe... |
src/svg-icons/communication/contacts.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationContacts = (props) => (
<SvgIcon {...props}>
<path d="M20 0H4v2h16V0zM4 24h16v-2H4v2zM20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 2.75c1.24 0 2.25 1.01 2.25 2.25s... |
src/widgets/Dropdown/index.js | mydearxym/mastani | /*
*
* Dropdown
*
*/
import React from 'react'
import T from 'prop-types'
import { ICON_CMD } from '@/config'
import { buildLog } from '@/utils/logger'
import { Wrapper, IconWrapper, Icon } from './styles'
/* eslint-disable-next-line */
const log = buildLog('c:Dropdown:index')
const Dropdown = ({ children, siz... |
SQL/client/src/components/dumb/Avatar.js | thebillkidy/MERGE-Stack | import React from 'react';
import Link from 'next/link';
export default class Label extends React.Component {
render() {
return (
<Link href={this.props.href}>
<a className="Avatar">
<style jsx>{`
.Avatar {
... |
node_modules/react-bootstrap/es/NavItem.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 ... |
packages/wix-style-react/src/DragAndDrop/docs/SortableList/SingleAreaListWithAnimation/index.js | wix/wix-style-react | import React from 'react';
import CodeExample from 'wix-storybook-utils/CodeExample';
import Markdown from 'wix-storybook-utils/Markdown';
import SingleAreaListWithAnimationReadme from './SingleAreaListWithAnimationReadme.md';
import SingleAreaListWithAnimation from './SingleAreaListWithAnimation';
import SingleAreaLis... |
node_modules/react-router/es/Switch.js | lousanna/sinatrademo | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
client/src/javascript/components/icons/SeedsIcon.js | jfurrow/flood | import React from 'react';
import BaseIcon from './BaseIcon';
export default class SeedsIcon extends BaseIcon {
render() {
return (
<svg className={`icon icon--seeds ${this.props.className}`} viewBox={this.getViewBox()}>
<path d="M47.95,1.4a12.05,12.05,0,0,0-11.78,9.55H23.84A12,12,0,1,0,12.05,25.5... |
assets/scripts/src/components/ModeSwitcher.js | jshjohnson/NumberRush | // React
import React, { Component } from 'react';
class ModeSwitcher extends Component {
render() {
const { modes, changeMode, currentMode } = this.props;
return (
<modeswitcher>
<select className="header__input header__input--select header__input--push-left h... |
src/client/components/common/auth.js | fabriciocolombo/este | import React from 'react';
import {isLoggedIn} from '../../user/store';
// Higher order component.
// https://medium.com/@dan_abramov/mixins-are-dead-long-live-higher-order-components-94a0d2f9e750
export default function auth(Component) {
return class Auth extends React.Component {
static willTransitionTo(trans... |
js/screens/HomeScreenComponents/Notification.js | ujwalramesh/REHU-discourse | /* @flow */
'use strict'
import React from 'react'
import {
StyleSheet,
Text,
View
} from 'react-native'
class Notification extends React.Component {
render() {
if (this.props.count > 0) {
return (
<View style={styles.container}>
<View style={[styles.number, {backgroundColor: this.... |
docs/app/Examples/elements/Label/Types/LabelExampleRibbonImage.js | clemensw/stardust | import React from 'react'
import { Grid, Image } from 'semantic-ui-react'
const LabelExampleRibbonImage = () => (
<Grid columns={2}>
<Grid.Column>
<Image
fluid
label={{ as: 'a', color: 'black', content: 'Hotel', icon: 'hotel', ribbon: true }}
src='http://semantic-ui.com/images/wiref... |
client/app/app.js | Zuehlke/poinz | import React from 'react';
import {createRoot} from 'react-dom/client';
import {Provider} from 'react-redux';
import log from 'loglevel';
import 'purecss';
import '../node_modules/purecss/build/grids-responsive-min.css';
import './assets/font/poinz.css';
import './assets/font/animation.css';
import appConfig from './... |
react/TimeIcon/TimeIcon.iconSketch.js | seekinternational/seek-asia-style-guide | import React from 'react';
import TimeIcon from './TimeIcon';
export const symbols = {
'TimeIcon': <TimeIcon />,
'TimeIcon -> Recent': <TimeIcon recent={true} />,
'TimeIcon -> Filled': <TimeIcon filled={true} />
};
|
src/modules/ChatTabs/component.js | svmn/ace-rx | import React from 'react';
import PropTypes from 'prop-types';
import { Tabs, Tab } from 'material-ui/Tabs';
function ChatTabs({ tabs, chooseChat, currentChat }) {
return (
<Tabs className='chat-tabs' onChange={chooseChat} value={currentChat}>
{
tabs.map(({ code, label }, index) =>
<Tab ... |
docs/src/app/components/pages/components/TextField/ExampleDisabled.js | frnk94/material-ui | import React from 'react';
import TextField from 'material-ui/TextField';
const TextFieldExampleDisabled = () => (
<div>
<TextField
disabled={true}
hintText="Disabled Hint Text"
/><br />
<TextField
disabled={true}
id="text-field-disabled"
defaultValue="Disabled Value"
/>... |
src/mixins/helpers.js | tarkanlar/react-slick | 'use strict';
import React from 'react';
import ReactTransitionEvents from 'react/lib/ReactTransitionEvents';
import {getTrackCSS, getTrackLeft, getTrackAnimateCSS} from './trackHelper';
import assign from 'object-assign';
var helpers = {
initialize: function (props) {
var slideCount = React.Children.count(prop... |
client/routes.js | openfocus/HTH-MERN | /* eslint-disable global-require */
import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './modules/App/App';
// require.ensure polyfill for node
if (typeof require.ensure !== 'function') {
require.ensure = function requireModule(deps, callback) {
callback(require);
};
}... |
test/test_helper.js | muscaiu/ReactTesting | 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... |
lib/makeElement.js | raganw/react-lunch-and-learn | import React from 'react';
import TestUtils from 'react-addons-test-utils';
import ReactDOM from 'react-dom';
export default function makeElement(Element, props = {}) {
let element = TestUtils.renderIntoDocument(
<Element {...props} />
);
let node = ReactDOM.findDOMNode(element);
return { element, node };
... |
src/pages/DocsPage.js | ucladevx/website | import React from 'react'
import styled from 'styled-components'
import Spinner from '../components/Spinner'
import Text from '../components/Text'
import { colors, sizes } from '../styles'
const Container = styled.div`
width: 100vw;
height: calc(100vh - ${sizes.navbar.height}px);
position: relative;
`
const Wh... |
src/svg-icons/hardware/scanner.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareScanner = (props) => (
<SvgIcon {...props}>
<path d="M19.8 10.7L4.2 5l-.7 1.9L17.6 12H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-5.5c0-.8-.5-1.6-1.2-1.8zM7 17H5v-2h2v2zm12 0H9v-2h10v2z"/>
</... |
src/components/Footer.js | urre/chock.press | import React from 'react'
const Footer = () => (
<footer className="footer">
<p>
A project by <a href="https://urre.me">Urban Sandén.</a> Code on{' '}
<a href="https://github.com/urre/chock.press">Github</a>
</p>
</footer>
)
export default Footer
|
libs/utils/react.js | Hazel54/element-react | import React from 'react'
function firstChild(props) {
const childrenArray = React.Children.toArray(props.children);
return childrenArray[0] || null;
}
export {firstChild} |
js/src/SyncWarning/syncWarning.js | destenson/ethcore--parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any lat... |
src/components/MultiGraph.js | FiviumAustralia/RNSH-Pilot | import React, { Component } from 'react';
import { browserHistory } from 'react-router';
var d3 = require('d3');
let multiGraphId = 0;
class Graph {
constructor () {
this.parseDate = d3.time.format('%d-%b-%y').parse;
}
getHeight () {
return this.height;
}
getAxisPosition () {
return this.axisP... |
src/svg-icons/image/crop-16-9.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCrop169 = (props) => (
<SvgIcon {...props}>
<path d="M19 6H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H5V8h14v8z"/>
</SvgIcon>
);
ImageCrop169 = pure(ImageCrop169);
ImageCr... |
ui/src/containers/Visualisations/components/ContextLabelForm.js | LearningLocker/learninglocker | import React from 'react';
import PropTypes from 'prop-types';
/**
* @param {string} props.visualisationId
* @param {string} propscontextLabel
* @param {(contextLabel: string) => void} props.onChange
*/
const ContextLabelForm = ({
visualisationId,
contextLabel,
onChange,
}) => {
const formId = `visualisati... |
fields/types/password/PasswordColumn.js | cermati/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var PasswordColumn = React.createClass({
displayName: 'PasswordColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue... |
src/configure-feature.js | paralleldrive/react-feature-toggles | import React from 'react';
import curry from './curry';
import { Feature } from './feature';
export const configureFeature = curry(
(InactiveComponent, name, ActiveComponent) => props => (
<Feature
name={name}
inactiveComponent={() => <InactiveComponent {...props} />}
activeComponent={() => <Ac... |
packages/node_modules/@ciscospark/react-component-file-staging-area/src/index.js | Altocloud/alto-react-ciscospark | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import {bytesToSize, getFileType} from '@ciscospark/react-component-utils';
import Button from '@ciscospark/react-component-button';
import ChipFile from '@ciscospark/react-component-chip-file';
import styles from './... |
src/svg-icons/maps/local-printshop.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalPrintshop = (props) => (
<SvgIcon {...props}>
<path d="M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"... |
docs/src/app/components/pages/components/SvgIcon/Page.js | rhaedes/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import iconReadmeText from './README';
import IconExampleSimple from './ExampleS... |
src/routes.js | bdefore/universal-redux-starter | import React from 'react';
import { Route } from 'react-router';
import App from './containers/App/App';
export default () => {
return (
<Route path="/" component={App} />
);
};
|
src/svg-icons/action/favorite.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFavorite = (props) => (
<SvgIcon {...props}>
<path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6... |
src/svg-icons/communication/chat.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationChat = (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-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"/>
</SvgIcon>
);
Communicatio... |
src/components/App/native/App.js | floschnell/towers | import {
Text,
View,
Dimensions,
Alert,
BackHandler,
StatusBar,
ActivityIndicator,
Modal,
ToastAndroid,
} from 'react-native';
import PropTypes from 'prop-types';
import React from 'react';
import LoginContainer from '../../Login/LoginContainer';
import DashboardContainer from '../../Dashboard/Dashboa... |
app/javascript/mastodon/features/status/index.js | imomix/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchStatus } from '../../actions/statuses';
import MissingIndicator from '../../components/missing_indicator';
import DetailedStatus from './compone... |
internals/templates/containers/NotFoundPage/index.js | talal7860/punch-assignment-react | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it... |
src/svg-icons/notification/mms.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationMms = (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-2zM5 14l3.5-4.5 2.5 3.01L14.5 8l4.5 6H5z"/>
</SvgIcon>
);
NotificationMms = ... |
basic_react/helloworld/src/index.js | ezwebcraft/coffee-journals | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
stories/components/form/formEmail/index.js | sethbergman/operationcode_frontend | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import FormEmail from 'shared/components/form/formEmail/formEmail';
storiesOf('shared/components/form/formEmail', module)
.add('Default', () => (
<FormEmail
onChange={action('Change... |
app/javascript/mastodon/features/ui/components/video_modal.js | imomix/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ExtendedVideoPlayer from '../../../components/extended_video_player';
import { defineMessages, injectIntl } from 'react-intl';
import IconButton from '../../../components/icon_button';
impor... |
app/components/HistoriqueCommandesUtilisateur/components/DetailCommandeContainer.js | Proxiweb/react-boilerplate | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { createStructuredSelector } from 'reselect';
import RefreshIndicator from 'material-ui/RefreshIndicator';
import RaisedButton from 'material-ui/Raised... |
src/components/pages/workspaces.js | crmaxx/netscanner-ui | import React from 'react';
// import Router from 'react-router';
import { Mixins, Styles } from 'material-ui';
// import WorkspacesFeature from './components/workspaces-feature';
import WorkspacesTable from './components/workspaces-table';
// import FullWidthSection from '../full-width-section';
const { StylePropable,... |
actor-apps/app-web/src/app/components/activity/GroupProfileMembers.react.js | akingyin1987/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import DialogActionCreators from 'actions/DialogActionCreators';
import LoginStore from 'stores/LoginStore';
import AvatarItem from 'components/common/AvatarItem.react';
const {addons: { Pure... |
data/jedi.js | uclaacm/website | import React from 'react';
import ao3 from '../public/images/jedi/allyship/ao3.png';
import cisgenderPrivilege from '../public/images/jedi/allyship/cisgender-privilege.png';
import disabilityAccessibility from '../public/images/jedi/allyship/disability-accessibility.jpg';
import dontGiveThemTheAux from '../public/image... |
client/app/components/Footer/index.js | jjt/ffsssshh | import React from 'react';
import A from 'A';
import styles from './styles.css';
class Footer extends React.Component {
render() {
return (
<footer className={ styles.footer }>
<section>
<p>This project is licensed under the MIT license.</p>
</section>
<section>
... |
app/components/Footer/index.js | andyfrith/weather.goodapplemedia.com | import React from 'react';
import { FormattedMessage } from 'react-intl';
import A from 'components/A';
import Wrapper from './Wrapper';
import messages from './messages';
function Footer() {
return (
<Wrapper>
<div style={{width: '100%', background: '#141d26', height: '100px' }}> </div>
{/*<se... |
app/javascript/mastodon/features/account_timeline/components/header.js | rekif/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import InnerHeader from '../../account/components/header';
import ActionBar from '../../account/components/action_bar';
import MissingIndicator from '../../../components/missing_indicator';
import ... |
Sobiens.Web.Components.ReactTutorial/ClientApp/src/components/SobyChart.js | sobiens/webcomponents | import React, { Component } from 'react';
import { config } from '../config';
import { SobyMainLibrary } from './SobyMainLibrary';
let sobyMainLibrary = new SobyMainLibrary();
export class SobyChart extends Component {
constructor(props) {
super(props);
const jsCode = "$(function () { \n " +
... |
sam-front/src/components/ApplicationDeployment.js | atgse/sam | import React from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import groupBy from 'lodash/groupBy';
import keys from 'lodash/keys';
import capitalize from 'lodash/capitalize';
import { collectionSize } from '../helpers';
import { List, ListItem } from 'material-ui/List';
import ... |
examples/huge-apps/routes/Calendar/components/Calendar.js | darul75/react-router | import React from 'react';
class Calendar extends React.Component {
render () {
return (
<div>
<h2>Calendar</h2>
</div>
);
}
}
export default Calendar;
|
fields/types/location/LocationFilter.js | kumo/keystone | import React from 'react';
import { FormField, FormInput, FormRow, SegmentedControl } from 'elemental';
const TOGGLE_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true },
];
function getDefaultValue () {
return {
inverted: TOGGLE_OPTIONS[0].value,
street: undefined,
city:... |
components/group-contact-list.js | kalicki/WhatsAppLike | import React from 'react'
import GroupContact from './group-contact'
const ListGroupsContacts = ({ items, active, onClick }) =>
<div>
<ul>
{console.log(items)
/*items.map(item =>
<GroupContact
key={item.id}
onClick={() => onClick(item.id)}
name={item.id}
... |
client/containers/header/Header.js | nextinnovation-corp/gacha | import React from 'react';
import { connect } from 'react-redux'
import { links } from '../../../config';
import pikachu from './pikachu.png';
import squirtle from './squirtle.png';
import chamander from './charmander.png';
import s from './Header.css';
import { search } from '../../actions/header';
import LoginButton ... |
packages/xo-web/src/common/home-tags.js | vatesfr/xo-web | import * as CM from 'complex-matcher'
import PropTypes from 'prop-types'
import React from 'react'
import Component from './base-component'
import Tags from './tags'
export default class HomeTags extends Component {
static propTypes = {
labels: PropTypes.arrayOf(PropTypes.string).isRequired,
onAdd: PropType... |
client/src/components/template/header.js | ronniehedrick/scapeshift | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
class HeaderTemplate extends Component {
renderLinks() {
if (this.props.authenticated) {
return [
<li key={`${1}header`}>
<Link to="/">Home</Link>
</li>,
<... |
src/Info.js | lincolnphu/zzdi | import React, { Component } from 'react';
import Img from './Img';
require("./style.scss");
export default class Info extends Component {
render(){
const {tracks} = this.props;
const ht = window.innerHeight + window.scrollY -50
const examples = tracks.map((d,i)=>{
let name = d.artist["#text"],
... |
js/App/Components/Location/AddLocation/LocationActivationManual.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... |
node_modules/react-router/es6/RouteUtils.js | orionwei/mygit | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
import React from 'react';
function isValidChild(object) {
... |
packages/react-server-examples/code-splitting/components/Body.js | emecell/react-server | import React, { Component } from 'react';
import {logging} from 'react-server';
const logger = logging.getLogger(__LOGGER__);
export default class Body extends Component {
constructor(props) {
super(props);
this.increment = () => {
this.setState({exclamationCount: this.state.exclamationCount + 1});
}
thi... |
DEPRECATED/node_modules/react-router/es6/Route.js | vanHeemstraDesigns/CreationsEcosystemStatic | 'use strict';
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }
function _inherits(subClass, superClass) { if (typeof superClass !== 'function' && superClass !== null) { throw new TypeError('Super expression must e... |
packages/icons/src/md/av/PlayCircleFilled.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdPlayCircleFilled(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M24 4c11.05 0 20 8.95 20 20s-8.95 20-20 20S4 35.05 4 24 12.95 4 24 4zm-4 29l12-9-12-9v18z" />
</IconBase>
);
}
export default MdPlayC... |
packages/mineral-ui-icons/src/IconKeyboardArrowLeft.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconKeyboardArrowLeft(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...... |
docs/app/Components/ComponentDoc/ComponentProp/ComponentPropExtra.js | shengnian/shengnian-ui-react | import PropTypes from 'prop-types'
import React from 'react'
const descriptionStyle = {
color: '#666',
}
const contentStyle = {
marginLeft: '0.5em',
}
const contentBlockStyle = {
...contentStyle,
display: 'block',
}
const contentInlineStyle = {
...contentStyle,
display: 'inline',
}
const ComponentPropExtr... |
src/server.js | licatajustin/preesh | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import 'babel-polyfill';
import path from 'path';
import e... |
examples/todomvc/routes.js | lore/lore | import React from 'react';
import { Route, IndexRoute, Redirect } from 'react-router';
/**
* Wrapping the Master component with this decorator provides an easy way
* to redirect the user to a login experience if we don't know who they are.
*/
import UserIsAuthenticated from './src/decorators/UserIsAuthenticated';
... |
src/__stories__/01-basic-table/05-CustomLabels.stories.js | Imballinst/react-bs-datatable | import React from 'react';
import { storiesOf } from '@storybook/react';
import { categoryName } from './_base';
import moment from 'moment';
// In your setup, replace "../../" with "react-bs-datatable".
import Datatable from '../../';
const header = [
{
title: 'Username (filterable)',
prop: 'username',
... |
index.ios.js | AcademyPgh/Y1S2-ReplayFX-Schedule | import {Provider} from 'react-redux';
import store from './src/redux/store';
import AppViewContainer from './src/modules/AppViewContainer';
import React from 'react';
import {AppRegistry} from 'react-native';
const replayfxschedule = React.createClass({
render() {
return (
<Provider store={store}>
... |
app/javascript/mastodon/features/standalone/compose/index.js | sylph-sin-tyaku/mastodon | import React from 'react';
import ComposeFormContainer from '../../compose/containers/compose_form_container';
import NotificationsContainer from '../../ui/containers/notifications_container';
import LoadingBarContainer from '../../ui/containers/loading_bar_container';
import ModalContainer from '../../ui/containers/mo... |
src/svg-icons/editor/format-quote.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatQuote = (props) => (
<SvgIcon {...props}>
<path d="M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z"/>
</SvgIcon>
);
EditorFormatQuote = pure(EditorFormatQuote);
EditorFormatQuote.displayName = 'EditorFor... |
components/animals/orelBelohlavy.child.js | marxsk/zobro | import React, { Component } from 'react';
import { Text } from 'react-native';
import styles from '../../styles/styles';
import InPageImage from '../inPageImage';
import AnimalText from '../animalText';
import AnimalTemplate from '../animalTemplate';
const IMAGES = [
require('../../images/animals/orelBelohlavy/01.j... |
src/containers/lookup.js | everywherebible/app | // @flow
import React from 'react';
import {connect} from 'react-redux';
import type {Match} from 'react-router';
import {Route} from 'react-router-dom';
import {addRecent} from '../actions';
import type {Action} from '../actions';
import type {Reference} from '../data/model';
import {populateStoreWithRecents} from '... |
client/views/setupWizard/StepHeader.stories.js | Sing-Li/Rocket.Chat | import { number, text } from '@storybook/addon-knobs';
import React from 'react';
import { StepHeader } from './StepHeader';
export default {
title: 'views/setupWizard/StepHeader',
component: StepHeader,
};
export const _default = () =>
<StepHeader
number={number('number', 1)}
title={text('title', 'Title')}
... |
static/src/components/DynamicPassword.js | detailyang/cas-server | /**
* @Author: BingWu Yang <detailyang>
* @Date: 2016-03-11T12:16:28+08:00
* @Email: detailyang@gmail.com
* @Last modified by: detailyang
* @Last modified time: 2016-04-21T00:43:04+08:00
* @License: The MIT License (MIT)
*/
import Antd, {
Button,
Form,
Input,
Alert,
Row,
Col,
Modal,
} from 'antd';
... |
examples/03 Nesting/Drop Targets/index.js | srajko/react-dnd | import React from 'react';
import Container from './Container';
export default class NestingDropTargets {
render() {
return (
<div>
<p>
<b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/03%20Nesting/Drop%20Targets'>Browse the Source</a></b>
</p>
<p>
... |
docs/src/app/components/pages/components/DatePicker/Page.js | ichiohta/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import datePickerReadmeText from './README';
import DatePickerExampleSimple from... |
jenkins-design-language/src/js/components/material-ui/svg-icons/content/forward.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ContentForward = (props) => (
<SvgIcon {...props}>
<path d="M12 8V4l8 8-8 8v-4H4V8z"/>
</SvgIcon>
);
ContentForward.displayName = 'ContentForward';
ContentForward.muiName = 'SvgIcon';
export default ContentForward;
|
src/Col.js | mmarcant/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import elementType from 'react-prop-types/lib/elementType';
import { bsClass, prefix, splitBsProps } from './utils/bootstrapUtils';
import { DEVICE_SIZES } from './utils/StyleConfig';
const propTypes = {
componentClass: elementType,
/**
* The num... |
blueocean-material-icons/src/js/components/svg-icons/action/reorder.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionReorder = (props) => (
<SvgIcon {...props}>
<path d="M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"/>
</SvgIcon>
);
ActionReorder.displayName = 'ActionReorder';
ActionReorder.muiName = 'SvgIcon';
export default ActionReo... |
examples-react/app/components/dashboard/ButtonGhost.js | zcoding/dashboard | import React from 'react'
import ClassNames from 'classnames'
export default class Button extends React.Component {
constructor(props) {
super(props)
}
render() {
let classnames = ClassNames('btn', `btn-g-${this.props.color}`, {'radius': this.props.radius}, {'round': this.props.round})
return <butt... |
fields/types/location/LocationFilter.js | wmertens/keystone | import React from 'react';
import { FormField, FormInput, FormRow, SegmentedControl } from 'elemental';
const INVERTED_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true },
];
function getDefaultValue () {
return {
inverted: INVERTED_OPTIONS[0].value,
street: undefined,
c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.