path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/svg-icons/action/https.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHttps = (props) => (
<SvgIcon {...props}>
<path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-... |
src/todo/TaskForm.js | carlodicelico/reify | import React from 'react';
const TaskForm = (props) => {
return (
<p className='control has-icon has-icon-right'>
<input autoFocus={true} className='add-task input is-large' type='text' placeholder='Add a task' />
<i className='fa fa-plus'></i>
</p>
);
};
export default TaskForm;
|
src/components/ui/search.js | simors/HLifeAdmin | import React from 'react'
import ReactDOM from 'react-dom'
import styles from './search.less'
import { Input, Select, Button, Icon } from 'antd'
class Search extends React.Component {
state = {
clearVisible: false,
selectValue: (this.props.select && this.props.selectProps) ? this.props.selectProps.defaultVal... |
app/components/donateform/donateform.js | tidepool-org/blip | /**
* Copyright (c) 2017, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program is distributed in the... |
fall-colors/components/default/gist.js | mathisonian/idyll | import React from 'react';
const PropTypes = require('prop-types');
class EmbeddedGist extends React.PureComponent {
constructor(props) {
super(props);
this.gist = props.gist;
this.file = props.file;
this.stylesheetAdded = false;
this.state = {
loading: true,
src: ""
... |
news-app/src/index.js | abhilashsajeev/news-app | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import { Provider } from 'react-redux';
import store from './store';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
const RootCom... |
client/src/components/AppRouter.js | FlorianEdelmaier/ReduxAsyncDemo | import React from 'react';
import { Router, Route, IndexRoute, hashHistory } from 'react-router';
import App from './App';
const AppRouter = () => (
<Router history={ hashHistory }>
<Route path="/" component={App}>
</Route>
</Router>
)
export default AppRouter;
|
app/javascript/mastodon/features/ui/components/column_link.js | dunn/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import Icon from 'mastodon/components/icon';
const ColumnLink = ({ icon, text, to, href, method, badge }) => {
const badgeElement = typeof badge !== 'undefined' ? <span className='column-link__badge'>{badge}</span... |
packages/es-components/src/components/containers/tabPanels/Tab.js | TWExchangeSolutions/es-components | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { noop } from 'lodash';
import screenReaderOnly from '../../patterns/screenReaderOnly/screenReaderOnly';
const TabButton = styled.button`
background-color: ${props =>
props.selected ? props.theme.colors... |
index.js | lida1984/react-router-learning | import React from 'react'
import { render } from 'react-dom'
import { Router, Route,hashHistory, browserHistory, IndexRoute } from 'react-router'
import App from './modules/App'
import About from './modules/About'
import Repos from './modules/Repos'
import Repo from './modules/Repo'
import Home from './modules/Home'
r... |
DemoApp/lib/message-list/index.js | andyfen/react-native-UIKit | import React from 'react';
import {
View,
ListView,
Dimensions,
} from 'react-native';
import { Message } from '../';
const { width } = Dimensions.get('window');
const ds = new ListView.DataSource({ rowHasChanged: (r1, r2) => r1 !== r2 });
const MessageList = ({
items, headerContent, footerContent,
backgro... |
docs/src/components/home/features.js | evanlucas/node-tap | import React from 'react';
import styled from 'styled-components';
import {theme, breakpoints} from '../../theme';
import {Image, Flex, Box} from 'rebass';
import brain from '../../images/brain.gif';
import batteries from '../../images/batteries.gif';
import separator from '../../images/separator.svg';
import {ButtonLi... |
actor-apps/app-web/src/app/components/DialogSection.react.js | mitchellporter/actor-platform | import _ from 'lodash';
import React from 'react';
import { PeerTypes } from 'constants/ActorAppConstants';
import MessagesSection from 'components/dialog/MessagesSection.react';
import TypingSection from 'components/dialog/TypingSection.react';
import ComposeSection from 'components/dialog/ComposeSection.react';
i... |
src/utils/CustomPropTypes.js | BespokeInsights/react-bootstrap | import React from 'react';
import warning from 'react/lib/warning';
import childrenToArray from './childrenToArray';
const ANONYMOUS = '<<anonymous>>';
/**
* Create chain-able isRequired validator
*
* Largely copied directly from:
* https://github.com/facebook/react/blob/0.11-stable/src/core/ReactPropTypes.js#L9... |
stories/Button.js | Bandwidth/shared-components | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import Button from 'components/Button';
import Horizontal from 'layouts/Horizontal';
storiesOf('Button', module)
.add('types', () => (
<React.Fragment>
<h2>Standard</h2>
<Horizo... |
react-flux-mui/js/material-ui/src/svg-icons/navigation/chevron-right.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationChevronRight = (props) => (
<SvgIcon {...props}>
<path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/>
</SvgIcon>
);
NavigationChevronRight = pure(NavigationChevronRight);
NavigationChevronRigh... |
src/routes.js | MoveOnOrg/mop-frontend | import React from 'react'
import { IndexRoute, Route, Redirect, Router, browserHistory, hashHistory, match } from 'react-router'
import { Config } from './config'
import { scrollToTop } from './lib'
import { trackPage } from './actions/sessionActions'
import { loadOrganization } from './actions/navActions'
import { c... |
docs/src/app/components/pages/components/Slider/ExampleSimple.js | w01fgang/material-ui | import React from 'react';
import Slider from 'material-ui/Slider';
/**
* The `defaultValue` property sets the initial position of the slider.
* The slider appearance changes when not at the starting position.
*/
const SliderExampleSimple = () => (
<div>
<Slider />
<Slider defaultValue={0.5} />
<Slide... |
src/components/common/svg-icons/maps/flight.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsFlight = (props) => (
<SvgIcon {...props}>
<path d="M10.18 9"/><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/>
</SvgIcon>... |
app/index.js | klikstermkd/react-starter-kit | import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import {
Router,
browserHistory
} from 'react-router';
import App from './components/App';
import configureStore from './configureStore';
import configureRoutes from './routes';
const s... |
server/server.js | 4dinterface/profpruf | import Express from 'express';
import compression from 'compression';
import mongoose from 'mongoose';
import bodyParser from 'body-parser';
import path from 'path';
import IntlWrapper from '../client/modules/Intl/IntlWrapper';
// Webpack Requirements
import webpack from 'webpack';
import config from '../webpack.confi... |
example/Card.js | jerryshew/dot-css | import React, { Component } from 'react';
import {CN, TitleBlock} from './util';
const makeCard = (cn='card') => {
return (
<div className={cn}>
<div className={CN('image')}>
<img src="http://braavos.me/dot-css/dist/img/img.png"/>
</div>
<div className="h... |
app/javascript/mastodon/features/mutes/index.js | corzntin/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { ScrollContainer } from 'react-router-scroll';
import Column from '../ui/components... |
view/utils.js | fangwei716/30-days-of-react-native | // obtained from react native tutorials
import React from 'react';
import { PixelRatio } from 'react-native';
import Dimensions from 'Dimensions';
const Util = {
ratio: PixelRatio.get(),
pixel: 1 / PixelRatio.get(),
size: {
width: Dimensions.get('window').width,
height: Dimensions.get('window').height
... |
src/parser/shared/modules/features/RaidHealthTab/index.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import ROLES from 'game/ROLES';
import Analyzer from 'parser/core/Analyzer';
import TabComponent from './TabComponent';
class RaidHealthTab extends Analyzer {
constructor(...args) {
super(...args);
this.active = this.selectedCombatant.spec.role === ROLES.HEALER;
}
tab() {
... |
fields/types/date/DateField.js | stunjiturner/keystone | import DateInput from '../../components/DateInput';
import Field from '../Field';
import moment from 'moment';
import React from 'react';
import { Button, InputGroup, FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'DateField',
focusTargetRef: 'dateInput',
// default input format
inpu... |
src/collections/Breadcrumb/BreadcrumbDivider.js | shengnian/shengnian-ui-react | import cx from 'classnames'
import _ from 'lodash'
import PropTypes from 'prop-types'
import React from 'react'
import {
childrenUtils,
createShorthandFactory,
customPropTypes,
getUnhandledProps,
getElementType,
META,
} from '../../lib'
import Icon from '../../elements/Icon'
/**
* A divider sub-component... |
src/components/cv.js | ateixeira/mern-stack | import React from 'react';
module.exports = React.createClass({
// RENDER
render: function() {
return (
<div className="cv">
CV
</div>
);
}
}); |
src/containers/create_chat_message.js | TedtheDev/Tic-Tac-Toe | import React, { Component } from 'react';
import { createChatMessage } from '../actions/index';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { reduxForm, Field } from 'redux-form';
import RaisedButton from 'material-ui/RaisedButton';
import TextField from 'material-ui/TextFi... |
web/src/pages/devops/user/list.js | nodefx/nbot | /**
* Created by ken on 2017/5/15.
*/
import React from 'react'
import {inject, observer} from 'store/index'
import {Table, Tag, Modal} from 'antd'
import DropOption from 'component/DropOption'
@observer
export default class extends React.Component {
componentWillMount() {
this.props.store.getMembers()
cons... |
debugger/cerebral-debugger/src/components/Debugger/Signals/Signal/index.js | FWeinb/cerebral | /* global Prism */
import './styles.css'
import React from 'react'
import {connect} from 'cerebral/react'
import connector from 'connector'
import Action from './Action'
export default connect(props => ({
currentPage: 'debugger.currentPage',
useragent: 'useragent.**',
signal: `debugger.signals.${props.currentSi... |
test/integration/client-navigation/pages/nav/head-2.js | zeit/next.js | import React from 'react'
import Head from 'next/head'
import Link from 'next/link'
export default (props) => (
<div id="head-2">
<Head>
<meta name="description" content="Head Two" />
<title>this is head-2</title>
</Head>
<Link href="/nav/head-1">
<a id="to-head-1">to head 1</a>
</L... |
src/components/UserDetailsContainer/index.js | LittleFurryBastards/webpack-react-redux | import React from 'react';
import UserDetails from '../UserDetails';
import { getUserDetails } from '../../actions';
import store from '../../store';
const UserDetailsContainer = React.createClass({
propTypes: {
params: React.PropTypes.object
},
getInitialState() {
return {
currentUser: store.getS... |
src/Overlay.js | adamschroder/react-overlays | import React from 'react';
import Portal from './Portal';
import Position from './Position';
import RootCloseWrapper from './RootCloseWrapper';
import elementType from 'react-prop-types/lib/elementType';
/**
* Built on top of `<Position/>` and `<Portal/>`, the overlay component is great for custom tooltip overlays.
... |
frontend/src/components/OneRestaurantPage/OneRestaurantPage.js | FrancescoNegri/progetto-just-eat | import React from 'react';
import Collapsible from 'react-collapsible';
import 'whatwg-fetch';
import CartManager from '../../utilities/cartManager';
import './OneRestaurantPage.scss';
import startupData from '../../../../shared/startupData.json';
export default class OneRestaurantPage extends React.Component {
c... |
node_modules/@material-ui/core/es/Modal/SimpleBackdrop.js | pcclarke/civ-techs | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
import React from 'react';
import PropTypes from 'prop-types';
export const styles = {
/* Styles applied to the root element. */
root: {
zIndex: -1,
positio... |
src/svg-icons/content/sort.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentSort = (props) => (
<SvgIcon {...props}>
<path d="M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"/>
</SvgIcon>
);
ContentSort = pure(ContentSort);
ContentSort.displayName = 'ContentSort';
ContentSort.mui... |
src/components/Story/StoryPreview.js | ryanbaer/busy | import React from 'react';
import PropTypes from 'prop-types';
import embedjs from 'embedjs';
import _ from 'lodash';
import PostFeedEmbed from './PostFeedEmbed';
import BodyShort from './BodyShort';
import { jsonParse } from '../../helpers/formatter';
import { image } from '../../vendor/steemitLinks';
import {
getPo... |
docs/src/app/components/pages/components/Popover/Page.js | IsenrichO/mui-with-arrows | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import popoverReadmeText from './README';
import PopoverExampleSimple from './Ex... |
src/svg-icons/action/autorenew.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAutorenew = (props) => (
<SvgIcon {...props}>
<path d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 ... |
frontend/react-stack/react/cdc-admin/src/components/CustomInput.js | wesleyegberto/courses-projects | import React, { Component } from 'react';
import PubSub from 'pubsub-js';
export default class CustomInput extends Component {
constructor() {
super();
this.state = {
errorMessage: ''
};
}
componentDidMount() {
PubSub.subscribe('input-error', (topic, error) => {
if (error.field === t... |
example/src/index.js | xiefei89/rc-cropper | import React from 'react';
import ReactDOM from 'react-dom';
import Demo from './Demo';
const Root = () => (<Demo />);
ReactDOM.render(<Root />, document.getElementById('main'));
|
app_learn/src/containers/Tab1/customPickerDemo.js | liuboshuo/react-native | /**
* Created by ls-mac on 2017/4/29.
*/
import React, { Component } from 'react';
import {
View,
StyleSheet,
TouchableOpacity,
Text
} from 'react-native';
import NavigationBar from '../../component/navBarCommon'
import back from './../../source/images/icon_back.png'
import * as Constants from '../..... |
webapp/src/containers/layout/loader/index.js | alliance-genome/agr_prototype | /*eslint-disable react/no-set-state */
import React, { Component } from 'react';
import { connect } from 'react-redux';
import style from './style.css';
import { selectIsPending } from '../../../selectors/searchSelectors';
const FINISH_INTERVAL = 250;
class Loader extends Component {
constructor(props) {
super... |
src/svg-icons/communication/phonelink-setup.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhonelinkSetup = (props) => (
<SvgIcon {...props}>
<path d="M11.8 12.5v-1l1.1-.8c.1-.1.1-.2.1-.3l-1-1.7c-.1-.1-.2-.2-.3-.1l-1.3.4c-.3-.2-.6-.4-.9-.5l-.2-1.3c0-.1-.1-.2-.3-.2H7c-.1 0-.2.1-.3.2l-.2 1... |
app/containers/HomePage.js | zedtux/grrn | import React, { Component } from 'react';
import Home from '../components/Home';
export default class HomePage extends Component {
render() {
return (
<Home />
);
}
}
|
src/containers/book-list.js | emersonbroga/ReactReduxBooksApplication | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { selectBook } from '../actions/index';
import { bindActionCreators } from 'redux';
class BookList extends Component {
renderList() {
return this.props.books.map((book) => {
return (
<li
key={book... |
src/svg-icons/notification/sync.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSync = (props) => (
<SvgIcon {...props}>
<path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25... |
src/components/video_detail.js | liyan90s/react-redux-funtime | import React from 'react';
const VideoDetail = (props) => {
if (!props.selectedVideo) {
return <div>Loading...</div>;
}
return (
<div className="video-detail col-md-8">
<div className="embed-responsive embed-responsive-16by9">
<iframe className="embed-responsive-item" src={"http://www.yout... |
src/Async.js | pedroseac/react-select | import React from 'react';
import Select from './Select';
import stripDiacritics from './utils/stripDiacritics';
let requestId = 0;
function initCache (cache) {
if (cache && typeof cache !== 'object') {
cache = {};
}
return cache ? cache : null;
}
function updateCache (cache, input, data) {
if (!cache) return... |
src/components/Library.js | jansuchomel/tosine | import React, { Component } from 'react';
import { render } from 'react-dom';
import { VirtualScroll, AutoSizer } from 'react-virtualized';
export default class Library extends Component {
expandLibrary(library, uri) {
this.props.mopidyAction("expandLibrary", {library: library, uri: uri});
}
expan... |
src/index.js | Gregoor/syntactor | import React from 'react';
import ReactDOM from 'react-dom';
import { render } from './api';
import Demo from './components/demo';
const demoElement = document.getElementById('insert-syntactor-demo-here');
if (demoElement) {
ReactDOM.render(<Demo />, demoElement);
} else {
window.Syntactor = { render: render };
}... |
src/containers/Login/index.js | hasibsahibzada/quran.com-frontend | import React from 'react';
import FacebookTokenButton from 'components/FacebookTokenButton';
import LocaleFormattedMessage from 'components/LocaleFormattedMessage';
const logo = require('../../../static/images/logo-lg.png');
export default () => (
<div className="row" style={{ paddingTop: '10vh' }}>
<div class... |
src/AnimatedCircularProgress.js | kk1429/react-native-circular-progress | import React from 'react';
import PropTypes from 'prop-types';
import { View, ViewPropTypes, Animated } from 'react-native';
import CircularProgress from './CircularProgress';
const AnimatedProgress = Animated.createAnimatedComponent(CircularProgress);
export default class AnimatedCircularProgress extends React.Compon... |
app/javascript/mastodon/containers/video_container.js | vahnj/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { IntlProvider, addLocaleData } from 'react-intl';
import { getLocale } from '../locales';
import Video from '../features/video';
const { localeData, messages } = getLocale();
addLocaleData(localeData);
export default class VideoContainer extends R... |
client/scripts/main.js | stas-vilchik/bdd | import React from 'react';
import Page from './page.js';
React.render(
<Page/>,
document.getElementById('content')
);
|
src/Hello.js | GWShark0/hello-package | import React, { Component } from 'react';
class Hello extends Component {
render() {
return (
<div className="hello">Hello, World!</div>
);
}
}
export default Hello;
|
src/components/SettingsManager/Profile.js | welovekpop/uwave-web-welovekpop.club | import cx from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import Avatar from '../Avatar';
import UserRoles from '../UserCard/UserRoles';
import ChangeUsernameButton from './ChangeUsernameButton';
const formatJoinDate = date => new Date(date).toLocaleString([], {
year: 'numeric',
m... |
app/components/Form/Item.js | pacmessica/hackathon-frontend | import React from 'react';
import PropTypes from 'prop-types';
import styles from './Form.scss';
export const Item = ({ label, value, onUpdate }) => (
<div className={styles.field}>
<label>{label}</label>
<input
type="text"
value={value}
onChange={(event) => onUpdate(event.... |
packages/components/src/Enumeration/Items/Item/ItemEdit.component.js | Talend/ui | import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';
import keycode from 'keycode';
import { withTranslation } from 'react-i18next';
import Action from '../../../Actions/Action';
import theme from './Item.scss';
import ItemPropTypes from './Item.propTypes';
import ItemEdi... |
src/Components/Comment/Comment.js | Shereminskiy/reactPJ | import React, { Component } from 'react';
export default class Comment extends Component {
render() {
return (
<div className="comment">
<h2 className="commentAuthor">
{this.props.author}
</h2>
{this.props.children}
... |
test/helpers/shallowRenderHelper.js | carpeliam/timebox | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
app/containers/Navbar/index.js | surzhik/coreola5 | /**
* Created by home on 21.08.2016.
*/
import React from 'react';
import {connect} from 'react-redux';
import {push} from 'react-router-redux';
import {createStructuredSelector} from 'reselect';
import {Row, Col, Icon, Tooltip} from 'antd';
import {selectMessages} from '../LanguageProvider/selectors';
import BreadCr... |
src/Parser/DeathKnight/Unholy/Modules/Talents/DarkArbiter.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
c... |
submissions/leoasis/src/NavButton.js | winstonewert/flux-challenge | import React from 'react';
import classNames from 'classnames';
export default class NavButton extends React.Component {
render() {
const className = classNames(
'css-button-' + this.props.direction,
this.props.disabled && 'css-button-disabled'
);
return <button
className={className}
... |
src/index.js | iemharsh/Reduxtagram | // Set up your application entry point here...
import React from 'react';
import { render } from 'react-dom';
import css from './styles/style.styl';
import { Provider} from 'react-redux';
import store, { history } from './store/index';
import App from './containers/App';
import Single from './containers/Single';
impor... |
src/svg-icons/action/search.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSearch = (props) => (
<SvgIcon {...props}>
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 1... |
src/svg-icons/maps/restaurant-menu.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsRestaurantMenu = (props) => (
<SvgIcon {...props}>
<path d="M8.1 13.34l2.83-2.83L3.91 3.5c-1.56 1.56-1.56 4.09 0 5.66l4.19 4.18zm6.78-1.81c1.53.71 3.68.21 5.27-1.38 1.91-1.91 2.28-4.65.81-6.12-1.46-1.46-4.2... |
src/GridTile.js | kiloe/ui | import React from 'react';
import CSS from './utils/css';
import View from './View';
import ListItem from './ListItem';
CSS.register({
'.gridtile': {
margin: '0',
flexDirection: 'column',
display: 'flex',
flexGrow: '0',
position: 'relative',
},
'.gridtile.header': {
flexDirection: 'colum... |
src/components/input/checkbox/index.js | KleeGroup/focus-components | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import Translation from '../../../behaviours/translation';
import Material from '../../../behaviours/material';
import filterProps from '../../../utils/filter-html-attributes';
const propTypes = {
label:... |
src/containers/AdminContainer.js | dggriffin/MPSOhhh | import React from 'react';
const Rebase = require('re-base');
const base = Rebase.createClass({
apiKey: 'AIzaSyBrgyl-UXdpEFISSGnf1isc_TkrVB2S0Hs',
authDomain: 'mpsohhh.firebaseapp.com',
databaseURL: 'https://mpsohhh.firebaseio.com',
storageBucket: ''
});
class AdminContainer extends Re... |
src/index.js | lomocc/react-boilerplate | import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import {Router, match, browserHistory} from 'react-router';
import reaction from 'reaction';
import createStore from 'redux-create-store';
import routes from 'routes';
console.log('%c [%s] %s ', `background: ${process.en... |
src/collections/Form/FormTextArea.js | vageeshb/Semantic-UI-React | import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
import TextArea from '../../addons/TextArea'
import FormField from './FormField'
/**
* Sugar for <Form.Field control={TextArea} />
* @see Form
* @see TextArea
*/
function FormTextArea(props) {
... |
src/components/redux.js | MoosemanStudios/app.moosecraft.us | // Component that demonstrates using a part of the Redux store
// outside of Apollo. We can use config.addReducer(key, reducer) in `src/app.js`
// to add custom Redux reducers
// ----------------------
// IMPORTS
/* NPM */
import React from 'react';
import PropTypes from 'prop-types';
// HOC/decorator to listen to ... |
src/services/Http/Http.js | townmi/bis | /**
* Created by townmi on 17/1/14.
*/
import React from 'react';
class Http {
constructor () {
this.XHR = new XMLHttpRequest();
this.options = {
"method": null,
"url": null,
"aysnc": true,
"timeout": 5000,
"success": null,
... |
app/components/main/NavBar.js | MarcinJarecki/React-js-Sticky-Notes | import React from 'react';
import {IndexLink} from 'react-router';
import _ from 'lodash';
import {navBarStyle} from '../../styles';
export default class NavBar extends React.Component {
constructor() {
super();
this.generateNavItem = this.generateNavItem.bind(this);
this.handleNavItemActive = this.han... |
doc/src/pages/examples/extend-graphics-developer.js | mapillary/mapillary-js | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import React from 'react';
import Layout from '@theme/Layout';
import {Code} from '../../js/components/Code';
import... |
src/server.js | joaquingatica/git-demo | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import path from 'path';
import express from 'express';... |
js/components/loaders/ProgressBar.android.js | ChiragHindocha/stay_fit |
import React, { Component } from 'react';
import ProgressBar from 'ProgressBarAndroid';
export default class SpinnerNB extends Component {
prepareRootProps() {
const type = {
height: 40,
};
const defaultProps = {
style: type,
};
return computeProps(this.props, defaultProps);
}
... |
src/svg-icons/action/touch-app.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTouchApp = (props) => (
<SvgIcon {...props}>
<path d="M9 11.24V7.5C9 6.12 10.12 5 11.5 5S14 6.12 14 7.5v3.74c1.21-.81 2-2.18 2-3.74C16 5.01 13.99 3 11.5 3S7 5.01 7 7.5c0 1.56.79 2.93 2 3.74zm9.84 4.63l-4.... |
docs/src/Routes.js | roadmanfong/react-bootstrap | import React from 'react';
import Root from './Root';
import HomePage from './HomePage';
import IntroductionPage from './IntroductionPage';
import GettingStartedPage from './GettingStartedPage';
import ComponentsPage from './ComponentsPage';
import SupportPage from './SupportPage';
import NotFoundPage from './NotFound... |
docs/index.js | epotapov/react-fix | import { Link, Route, HashRouter } from 'react-router-dom';
import React from 'react';
import Fix, { Bounds, BoundedFix } from 'react-fix';
import ReactDOM from 'react-dom';
const Text = () => (
<div className='content'>
<h3>Sample long content</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.... |
docs/app/Examples/collections/Table/Variations/TableExampleVeryCompact.js | clemensw/stardust | import React from 'react'
import { Table } from 'semantic-ui-react'
const TableExampleVeryCompact = () => {
return (
<Table compact='very'>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCel... |
docs/src/app/components/pages/discover-more/Community.js | hwo411/material-ui | import React from 'react';
import Title from 'react-title-component';
import MarkdownElement from '../../MarkdownElement';
import communityText from './community.md';
const Community = () => (
<div>
<Title render={(previousTitle) => `Community - ${previousTitle}`} />
<MarkdownElement text={communityText} />
... |
js/components/pages/Print.react.js | wuyuanyi135/react-template | import React, { Component } from 'react';
class PrintPage extends Component {
render() {
return (
<div className="print-page">
<div className="print-title-container">
<div className="print-header">温州医科大学附属第一医院图书馆</div>
<div className="prin... |
src/sidebar/app/components/icons/ArrowLeftIcon.js | cedricium/notes | import React from 'react';
function ArrowLeftIcon(props) {
return (
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
<path fill="context-fill" d="M6.414 8l4.293-4.293a1 1 0 0 0-1.414-1.414l-5 5a1 1 0 0 0 0 1.414l5 5a1 1 0 0 0 1.414-1.414z"></path>
</svg>
);
}
expor... |
src/components/App/index.js | jiangxy/react-antd-admin | import React from 'react';
import {connect} from 'react-redux'
import {Link} from 'react-router';
import {bindActionCreators} from 'redux'
import {Spin, message, Tabs, Icon} from 'antd';
import Header from '../Header';
import Footer from '../Footer';
import Sidebar from '../Sidebar';
import Login from '../Login';
impor... |
packages/bonde-admin-canary/src/components/Gadget/index.js | ourcities/rebu-client | import React from 'react'
import PropTypes from 'prop-types'
import { Flexbox2 as Flexbox, Title, Spacing } from 'bonde-styleguide'
const GadgetTitle = ({ children }) => (
<Title.H5 uppercase fontWeight='bold'>
{children}
</Title.H5>
)
const Gadget = ({ children, title, renderFilter, WrapperComponent }) => (
... |
src/js/app.js | nicksenger/JSchematic | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware()(createStore);
ReactDOM.render... |
front_end/skax/src/modal.js | julianpr/workflow-automation | import React from 'react'
import { Button, Header, Image, Modal } from 'semantic-ui-react'
const ModalModalExample = () => (
<Modal trigger={<Button>Show Modal</Button>}>
<Modal.Header>Select a Photo</Modal.Header>
<Modal.Content image>
<Image wrapped size='medium' src='/assets/images/avatar/large/rach... |
docs/app/Examples/collections/Grid/Types/GridExampleCelled.js | vageeshb/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... |
docs/app/Examples/elements/Icon/Variations/IconExampleFitted.js | ben174/Semantic-UI-React | import React from 'react'
import { Icon } from 'semantic-ui-react'
const IconExampleFitted = () => (
<div>
<p>Tight spacing</p>
<Icon fitted name='help' />
<p>Tight spacing</p>
</div>
)
export default IconExampleFitted
|
examples/src/custom-styles.js | madox2/react-tagcloud | import React from 'react'
import { TagCloud } from 'react-tagcloud'
const data = [
{ value: 'jQuery', count: 25 },
{ value: 'MongoDB', count: 18 },
{ value: 'JavaScript', count: 38 },
{ value: 'React', count: 30 },
{ value: 'Nodejs', count: 28 },
{ value: 'Express.js', count: 25 },
{ value: 'HTML5', coun... |
src/svg-icons/action/query-builder.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionQueryBuilder = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5... |
components/connected/composer/input/emoji/table/index.js | marrus-sh/mastodon-go | // <ConnectedComposerInputEmojiTable>
// ==================================
// This simply renders a list of emoji in a table.
// * * * * * * * //
// Imports
// -------
// Package imports.
import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
// DOM imports.
i... |
src/components/cart/CartCheckOutComponent.js | bluebill1049/cart | 'use strict';
import React from 'react';
import HeaderComponent from '../common/HeaderComponent.js';
import CartCheckOutListItemComponent from './cartCheckOut/CartCheckOutListItemComponent.js';
import CartCheckOutCtrlComponent from './cartCheckOut/CartCheckOutCtrlComponent.js';
import CartStore from '../CartStore.js';... |
src/components/EyeIcon/EyeIcon.js | arnarleifs/ps-react-arnar | import React from 'react';
/** SVG Eye Icon */
function EyeIcon() {
// Attribution: Fabián Alexis at https://commons.wikimedia.org/wiki/File:Antu_view-preview.svg
return (
<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22">
<g transform="matrix(.02146 0 0 .02146 1 1)" fill... |
src/AffixMixin.js | xiaoking/react-bootstrap | import React from 'react';
import domUtils from './utils/domUtils';
import EventListener from './utils/EventListener';
const AffixMixin = {
propTypes: {
offset: React.PropTypes.number,
offsetTop: React.PropTypes.number,
offsetBottom: React.PropTypes.number
},
getInitialState() {
return {
a... |
components/GameSection.js | turntwogg/final-round | import React from 'react';
import { useTheme } from '@turntwo/react-ui';
export const GameSectionHeader = ({ children, ...rest }) => {
const theme = useTheme();
return (
<div className="game-section__header" {...rest}>
{children}
<style jsx>{`
.game-section__header {
display: flex... |
webapp/src/containers/layout/siteMap.js | alliance-genome/agr | import React, { Component } from 'react';
import { Link } from 'react-router';
import style from './style.css';
import SubMenu from './subMenu';
import { MENU, WP_PAGES ,WP_PATH ,WP_POST_PATH } from '../../constants';
class SiteMap extends Component {
render() {
let container=[];
for(var index in MENU){
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.