path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
app/assets/scripts/components/modal-download/options.js | openaq/openaq.org | import React from 'react';
import c from 'classnames';
import { PropTypes as T } from 'prop-types';
import InfoButton from '../info-button';
export default function Options(props) {
const { title, name, info, list, selected, onSelect, disabled } = props;
return (
<fieldset className="form__fieldset form__fiel... |
app/javascript/mastodon/components/hashtag.js | theoria24/mastodon | // @ts-check
import React from 'react';
import { Sparklines, SparklinesCurve } from 'react-sparklines';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Permalink from './permalink';
import ShortNumber from 'mastodon/co... |
app/javascript/mastodon/components/relative_timestamp.js | pfm-eyesightjp/mastodon | import React from 'react';
import { injectIntl, FormattedRelative } from 'react-intl';
import PropTypes from 'prop-types';
const dateFormatOptions = {
hour12: false,
year: 'numeric',
month: 'short',
day: '2-digit',
hour: '2-digit',
minute: '2-digit',
};
@injectIntl
export default class RelativeTimestamp e... |
docs/app/Examples/modules/Dropdown/Types/DropdownExamplePointing.js | ben174/Semantic-UI-React | import React from 'react'
import { Dropdown, Menu } from 'semantic-ui-react'
const DropdownExamplePointing = () => (
<Menu>
<Menu.Item>
Home
</Menu.Item>
<Dropdown text='Shopping' pointing className='link item'>
<Dropdown.Menu>
<Dropdown.Header>Categories</Dropdown.Header>
<Dr... |
static/src/components/islands/IslandTree.js | hammerandchisel/airhornbot | // @flow
// jscs:disable maximumLineLength
import React from 'react';
import ResizableSVG from '../ResizableSVG';
export default React.createClass({
mixins: [ResizableSVG],
render(): React.Element {
let viewBox: string = this.getViewBox(259, 228);
let {paused} = this.props;
return (
<svg class... |
src/svg-icons/image/straighten.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageStraighten = (props) => (
<SvgIcon {...props}>
<path d="M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H3V8h2v4h2V8h2v4h2V8h2v4h2V8h2v4h2V8h2v8z"/>
</SvgIcon>
);
ImageStr... |
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js | upraised/react-router | import React from 'react';
import { Link } from 'react-router';
export default class AnnouncementsSidebar extends React.Component {
render () {
var announcements = COURSES[this.props.params.courseId].announcements;
return (
<div>
<h3>Sidebar Assignments</h3>
<ul>
{announcemen... |
src/status/StatusConnected.stories.js | ipfs/webui | import React from 'react'
import { storiesOf } from '@storybook/react'
import { checkA11y } from '@storybook/addon-a11y'
import i18n from '../i18n-decorator'
import { TranslatedStatusConnected as StatusConnected } from './StatusConnected.js'
storiesOf('StatusConnected', module)
.addDecorator(i18n)
.addDecorator(c... |
src/components/modal/modal.js | JamesHageman/rangle-elm-starter | import React from 'react';
function Modal({ isVisible, children, ...props }) {
const styles = {
visibility: isVisible ? 'visible' : 'hidden',
opacity: isVisible ? 1 : 0,
};
return (
<div data-testid={props.testid} style={ styles }
className="fixed top-0 bottom-0 left-0 right-0 z1 bg-darken-3">... |
src/containers/Router.js | Korkemoms/amodahl.no | // @flow
import React from 'react'
import { Router, Route, IndexRoute, browserHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import App from '../components/App'
import Home from './Home'
import Chess from './Chess'
import About from '../components/About'
import Login from './L... |
app/assets/javascripts/components/projects/ProjectLoading.js | Codeminer42/cm42-central | import React from 'react';
const ProjectLoading = () =>
<div className="ProjectBoard-loading">
<div className="ProjectBoard-loading__content">
<div className="ProjectBoard-loading__spinner">
<i className="fas fa-circle-notch fa-spin"></i>
</div>
<h2 className="ProjectBoard-loading__tex... |
src/svg-icons/hardware/speaker.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSpeaker = (props) => (
<SvgIcon {...props}>
<path d="M17 2H7c-1.1 0-2 .9-2 2v16c0 1.1.9 1.99 2 1.99L17 22c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5 2c1.1 0 2 .9 2 2s-.9 2-2 2c-1.11 0-2-.9-2-2s.89-2 2-2zm0 16c... |
lib/Badge.js | timomeh/react-native-material-bottom-navigation | import React from 'react'
import { View, StyleSheet, Text, ViewPropTypes } from 'react-native'
import PropTypes from 'prop-types'
/**
* A Badge which can be rendered on top of a Tab.
*/
export default class Badge extends React.Component {
static propTypes = {
/** Content of the Badge. String and Number will be... |
src/mui/button/ShowButton.js | RestUI/rest-ui | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router';
import shouldUpdate from 'recompose/shouldUpdate';
import compose from 'recompose/compose';
import FlatButton from 'material-ui/FlatButton';
import ImageEye from 'material-ui/svg-icons/image/remove-red-eye';
import linkT... |
src/lib/markers/implementations/CustomMarker.js | namespace-ee/react-calendar-timeline | import React from 'react'
import PropTypes from 'prop-types'
import {
createMarkerStylesWithLeftOffset,
createDefaultRenderer
} from './shared'
const defaultCustomMarkerRenderer = createDefaultRenderer(
'default-customer-marker-id'
)
/**
* CustomMarker that is placed based on passed in date prop
*/
class Custo... |
web/src/components/WelcomePage.js | undemaduc/undemaduc | import React from 'react';
class WelcomePage extends React.Component {
constructor(props) {
super(props);
this.state = {
userLoginType : 'user'
}
}
switchLoginType () {
this.setState({
userLoginType : 'offering'
});
console.log(th... |
src/routes.js | scientific-tool-set/HermeneutiX-react | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/app';
import WelcomeView from './components/welcomeView';
export default (
<Route path="/" component={App}>
<IndexRoute component={WelcomeView} />
</Route>
);
|
docs/src/components/Docs/Props/TextAlignmentProp/index.js | michalko/draft-wyswig | import React from 'react';
export default () => (
<div>
<h3>RTL and Text Alignment</h3>
<div className="docs-desc">
DraftJS library has out of box sopport for RTL, it decides text-direction using bidi algorithm.
It works at block-level. <br />
Property 'textAlignment' can be used to force ... |
src/javascript/main.js | apertus-open-source-cinema/elmyra | import 'bootstrap';
import React from 'react';
import ReactDOM from 'react-dom';
import Application from './application.js';
const reactEntry = document.createElement('div');
document.body.appendChild(reactEntry);
ReactDOM.render(<Application />, reactEntry);
|
src/components/graphics/surface.js | medja/ovs-prirocnik | import React, { Component } from 'react';
class Surface extends Component {
render() {
const {
width = 100, height = 100,
crisp, children,
...rest
} = this.props;
const viewBox = `0 0 ${width} ${height}`;
const ... |
components/Home/Recent.js | slidewiki/slidewiki-platform | import React from 'react';
import DeckList from './DeckList';
import {Container, Header} from 'semantic-ui-react';
import { FormattedMessage, defineMessages} from 'react-intl';
import setDocumentTitle from '../../actions/setDocumentTitle';
import PropTypes from 'prop-types';
class Recent extends React.Component {
... |
app/jsx/gradebook/default_gradebook/GradebookGrid/headers/AssignmentGroupColumnHeader.js | djbender/canvas-lms | /*
* 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... |
pootle/static/js/auth/components/SocialSignInForm.js | Jobava/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
'use strict';
import React from 'react';
import { PureRen... |
apps/shared/NotFound.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react'
import styles from './main.scss'
const NotFound = () => (
<div className={styles.wrapper}>
<div className="error-page">
<div className="index-page grid-row">
<div className="column-two-thirds">
<header className="page-heading-smaller">
<h1 className="... |
src/svg-icons/places/hot-tub.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesHotTub = (props) => (
<SvgIcon {...props}>
<circle cx="7" cy="6" r="2"/><path d="M11.15 12c-.31-.22-.59-.46-.82-.72l-1.4-1.55c-.19-.21-.43-.38-.69-.5-.29-.14-.62-.23-.96-.23h-.03C6.01 9 5 10.01 5 11.25V12... |
app_old/app.js | daicas/react-boilerplate-examp | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
impor... |
js/components/inputgroup/error.js | mrcflorian/classbook |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Icon, Text, Body, Left, Right, IconNB, Item, Input } from 'native-base';
import { Actions } from 'react-native-router-flu... |
components/overlay/Overlay.js | showings/react-toolbox | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { themr } from 'react-css-themr';
import { OVERLAY } from '../identifiers';
class Overlay extends Component {
static propTypes = {
active: PropTypes.bool,
children: PropTypes.node,
cl... |
src/components/views/delegateProfile/components/PlaceholderNoResources.js | LiskHunt/LiskHunt | import React from 'react';
import robby from '../img/robot2.png'
const PlaceholderNoResources = () => {
return (
<div className="has-text-centered top20">
<figure className="image is-128x128 is-centered-image">
<img src={robby} alt="sad robot"/>
</figure>
<h1 className="title has-text-d... |
src/svg-icons/action/work.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionWork = (props) => (
<SvgIcon {...props}>
<path d="M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z"/>... |
app/javascript/mastodon/features/ui/util/reduced_motion.js | h3zjp/mastodon | // Like react-motion's Motion, but reduces all animations to cross-fades
// for the benefit of users with motion sickness.
import React from 'react';
import Motion from 'react-motion/lib/Motion';
import PropTypes from 'prop-types';
const stylesToKeep = ['opacity', 'backgroundOpacity'];
const extractValue = (value) =>... |
node_modules/@material-ui/core/esm/NativeSelect/NativeSelect.js | pcclarke/civ-techs | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
import React from 'react';
import PropTypes from 'prop-types';
import NativeSelectInput from './NativeSelectInput';
import withStyles from '../styles/withStyles';
import formCont... |
app/components/CouldBeYou/index.js | BeautifulTrouble/beautifulrising-client | /**
*
* CouldBeYou
*
*/
import React from 'react';
import styled from 'styled-components';
import Isvg from 'react-inlinesvg';
import BentArrowIcon from 'assets/images/icons/bent-arrow.svg';
import AnonPhoto from 'assets/images/icons/anon.png';
import Markdown from 'react-remarkable';
import SmallHeaderBlock from 'com... |
node_modules/react-icons/md/panorama-vertical.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdPanoramaVertical = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m10.9 33.4h18.2c-1.3-4.3-1.9-8.9-1.9-13.4s0.6-9.1 1.9-13.4h-18.2c1.3 4.3 1.9 8.9 1.9 13.4s-0.6 9.1-1.9 13.4z m22.3 1.8c0.1 0.2 0.2 0.4 0.2 0.5 0 0.6-0.5 0.9-... |
webapp/src/Flipper.storybook.js | dtinth/promptpay-qr | import Flipper from './Flipper'
import React from 'react'
import { action } from '@storybook/addon-actions'
import { storiesOf } from '@storybook/react'
const Side = (props) => {
return (
<div
style={{
position: 'absolute',
top: 0,
right: 0,
bottom: 0,
left: 0,
... |
app/javascript/mastodon/features/direct_timeline/index.js | lynlynlynx/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import { mountConversations, unmountConversations, expandConversations } from '../../actions/conversations';
impo... |
app/js/components/ContactListItem.react.js | n3tr/Contact-Manager | import React from 'react'
import { Link } from 'react-router'
import ContactListItemAvatar from './ContactListItemAvatar.react'
import ContactListItemInfo from './ContactListItemInfo.react'
const Contact = ({ contact }) => {
return (
<li className="contact-list-item">
<Link
to={"/contact/" + contac... |
packages/reactor-classic-boilerplate/src/index.js | sencha/extjs-reactor | import React from 'react'
import ReactDOM from 'react-dom'
import { AppContainer } from 'react-hot-loader'
import { launch } from '@extjs/reactor';
import App from './App'
let viewport;
const render = (Component, target) => {
ReactDOM.render(
<AppContainer>
<Component/>
</AppContainer>... |
app/javascript/mastodon/containers/media_gallery_container.js | Arukas/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { IntlProvider, addLocaleData } from 'react-intl';
import { getLocale } from '../locales';
import MediaGallery from '../components/media_gallery';
import { fromJS } from 'immutable';
const { localeData, messages } = getLocale();
addLocaleData(locale... |
src/apps/Sockets/DetailsView/SocketMethodDescription.js | Syncano/syncano-dashboard | import React from 'react';
import { Divider } from 'material-ui';
const SocketMethodDescription = ({ headerLabel, className, style, headerStyle, contentStyle, children }) => {
const styles = {
root: {
lineHeight: 1.6,
textTransform: 'uppercase',
fontSize: 20
},
header: {
marginBo... |
js/components/components/EntryForm.react.js | wuyuanyi135/react-template | import React, { Component } from 'react';
import { PanelGroup, Panel } from 'react-bootstrap';
import PMIDPanel from './PMIDPanel.react';
import ApplicantPanel from './ApplicantPanel.react.js';
import AuthorPanel from './AuthorPanel.react';
import ArticleInfoPanel from './ArticleInfoPanel.react.js';
import { connect } ... |
src/scenes/home/codeSchools/onlineSchools/onlineSchools.js | hollomancer/operationcode_frontend | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Section from 'shared/components/section/section';
import SchoolCard from 'shared/components/schoolCard/schoolCard';
import styles from './onlineSchools.css';
class OnlineSchools extends Component {
render() {
const eSchools = th... |
app/components/presentation/LoginForm.js | PHPiotr/phpiotr4 | import React from 'react';
import Button from 'material-ui/Button';
import {FormControl} from 'material-ui/Form';
import {Link} from 'react-router-dom';
import Input, {InputLabel, InputAdornment} from 'material-ui/Input';
import IconButton from 'material-ui/IconButton';
import Visibility from 'material-ui-icons/Visibil... |
app/javascript/mastodon/features/ui/components/media_modal.js | clworld/mastodon | import React from 'react';
import ReactSwipeableViews from 'react-swipeable-views';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Video from 'mastodon/features/video';
import ExtendedVideoPlayer from 'mastodon/components/extended_video_player';
import classNames ... |
src/react.js | ngokevin/redux | import React from 'react';
import createAll from './components/createAll';
export const { Provider, Connector, provide, connect } = createAll(React);
|
app/javascript/mastodon/features/community_timeline/components/column_settings.js | masarakki/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.... |
docs/src/app/pages/components/RadioGroup/ExampleRadioGroupChecked.js | GetAmbassador/react-ions | import React from 'react'
import RadioGroup from 'react-ions/lib/components/Radio/RadioGroup'
import Button from 'react-ions/lib/components/Button'
import style from './style.scss'
const options = [
{
value: true,
label: 'Yes'
}, {
value: false,
label: 'No'
}
]
class ExampleRadioChecked extends ... |
src/App.js | GWShark0/ci-example | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
... |
src/views/GameAge.js | alexras/narpassword | import React, { Component } from 'react';
import './GameAge.css';
function toIntInRange(strVal, min, max) {
var intVal = min;
if (strVal.length > 0) {
intVal = parseInt(strVal, 10);
if (intVal < min) {
intVal = min;
}
if (max && intVal > max) {
intVal = max;
}
}
return intVa... |
src/index.js | guiconti/Buildev | /* eslint-disable import/default */
import React from 'react';
import { render } from 'react-dom';
import { browserHistory } from 'react-router';
import { AppContainer } from 'react-hot-loader';
import Root from './components/Root';
import configureStore from './store/configureStore';
require('./favicon.ico'); // Tel... |
pkg/interface/timer/tile/components/volume-icon.js | jfranklin9000/urbit | import React, { Component } from 'react';
export default class VolumeIcon extends Component {
constructor(props) {
super(props);
this.toggleSound = this.toggleSound.bind(this);
}
toggleSound() {
this.props.parent.setState( {playSound: !this.props.parent.state.playSound} )
}
render() {
let... |
client/components/app.js | TecProgPurrsuit/TeamBasedLearningApp | /**
* This file is the main of application.
*
* @summary Main file
* @class App
*/
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { fetchLists } from '../actions/index';
import NavBar from './navbar/navbar';
import './app.css';
class App extends Component {
componentWillMoun... |
src/containers/DevTools/DevTools.js | AndriyShepitsen/chicago-business-redux | 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="H"
changePositionKey="Q">
<LogMonitor />
</Dock... |
src/apps/dynamicUI/component/toolbar.js | ziaochina/reactMonkey | import React from 'react'
import {Map, List} from 'immutable'
import { Menu, Icon } from 'xComponent'
const SubMenu = Menu.SubMenu
export default class ToolbarComponent extends React.Component {
state = {
data : Map({
value: null
})
}
constructor(props){
super(props)
... |
src/common/components/session-overlay/index.js | canonical-ols/build.snapcraft.io | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { clearSession } from '../../actions/auth-store';
import { conf } from '../../helpers/config';
const BASE_URL = conf.get('BASE_URL');
import Notification from '../vanilla-modules/notification';... |
src/index.js | KoushikKumar/trade-a-book-client | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { Router, browserHistory } from 'react-router';
import reduxThunk from 'redux-thunk';
import routes from './routes';
import axios from 'axios';
import reduce... |
src/components/Transaction/List/TransactionItem.js | ayastreb/money-tracker | import React from 'react';
import PropTypes from 'prop-types';
import format from 'date-fns/format';
import { Icon, Button, Label } from 'semantic-ui-react';
import Amount from '../../Amount';
import { stateToForm, TransationKindT } from '../../../entities/Transaction';
import { toLocalTimestamp } from '../../../util/t... |
fields/types/code/CodeField.js | trentmillar/keystone | import _ from 'lodash';
import CodeMirror from 'codemirror';
import Field from '../Field';
import React from 'react';
import { findDOMNode } from 'react-dom';
import { FormInput } from '../../../admin/client/App/elemental';
import classnames from 'classnames';
/**
* TODO:
* - Remove dependency on lodash
*/
// See ... |
examples/codesandbox/src/index.js | joshblack/carbon-components-react | import React from 'react';
import { render } from 'react-dom';
import { Button } from 'carbon-components-react';
const App = () => (
<div>
<Button>Hello world</Button>
</div>
);
render(<App />, document.getElementById('root'));
|
app/routes/Home/index.js | 5tefan/universal-react-demo | import React from 'react';
import Bundle from '~/components/Bundle.jsx';
// Bundle is just a custom component that loads things, inspired by:
// https://reacttraining.com/react-router/web/guides/code-splitting
// Modified to accept load as a function which returns a promise for
// the module.
// Note: The import is... |
src/component/lockedState/AppCover.js | BristolPound/cyclos-mobile-3-TownPound | import React from 'react'
import { View, Image, Dimensions } from 'react-native'
import { isScreenSmall } from '../../util/ScreenSizes'
import Colors from '@Colors/colors'
import Images from '@Assets/images'
import merge from '../../util/merge'
const logo = isScreenSmall ? Images.onboardingLogoSE : Images.onboardingLo... |
src/Table/TableRow.js | collegepulse/material-react-components | import PropTypes from 'prop-types';
import React from 'react';
class TableRow extends React.Component {
renderChildren() {
const {children, head} = this.props;
return React.Children.map(children, child => (
React.cloneElement(child, {head})
));
}
render() {
const {children, head, ...other}... |
app/packs/src/components/StringTag.js | ComPlat/chemotion_ELN | import React from 'react';
import PropTypes from 'prop-types';
function StringTag({ string }) {
const arr = string.match(/<\s*(\w+\b)(?:(?!<\s*\/\s*\1\b)[\s\S])*<\s*\/\s*\1\s*>|[^<]+/g);
const arrComponents = arr.map((val, idx) => {
const subVal = val.match(/<sub[^>]*>([^<]+)<\/sub>/);
if (subVal) return ... |
src/CubeGrid/index.js | bentatum/better-react-spinkit |
import React from 'react'
import Base from '../Base'
import PropTypes from 'prop-types'
import memoize from 'lodash.memoize'
import range from 'lodash.range'
import randomDelays from './randomDelays'
import { animate, animationName, defaults, preside } from '../util'
const defaultSize = 18
const memoizedRandomDelays ... |
src/svg-icons/image/crop-5-4.js | hai-cea/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... |
src/svg-icons/action/group-work.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionGroupWork = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM8 17.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5... |
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/ButtonGroup.js | JamieMason/npm-cache-benchmark | 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 ... |
docs/src/app/components/pages/components/DatePicker/ExampleSimple.js | andrejunges/material-ui | import React from 'react';
import DatePicker from 'material-ui/DatePicker';
/**
* The Date Picker defaults to a portrait dialog. The `mode` property can be set to `landscape`.
* You can also disable the Dialog passing `true` to the `disabled` property.
*/
const DatePickerExampleSimple = () => (
<div>
<DatePic... |
src/Parser/Paladin/Holy/Modules/PaladinCore/CastBehavior.js | enragednuke/WoWAnalyzer | import React from 'react';
import { Doughnut as DoughnutChart } from 'react-chartjs-2';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
... |
src/components/Modal/ModalWithControls-story.js | wfp/ui | import React from 'react';
import { storiesOf } from '@storybook/react';
import Modal from '../Modal';
class ModalWithControls extends React.Component {
state = { open: false };
toggleModal = () => {
this.setState(state => ({
open: !state.open,
}));
};
submitAndClose = () => {
alert('Submi... |
src/Well.js | asiniy/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Well = React.createClass({
mixins: [BootstrapMixin],
getDefaultProps() {
return {
bsClass: 'well'
};
},
render() {
let classes = this.getBsClassSet();
return (
<di... |
fields/types/name/NameColumn.js | alobodig/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
import displayName from 'display-name';
var NameColumn = React.createClass({
displayName: 'NameColumn',
propTypes: {
col: React.PropTypes.object,
data: React.Pr... |
node_modules/recharts/demo/component/PolarRadiusAxis.js | SerendpityZOEY/Fixr-RelevantCodeSearch | import React from 'react';
import { Surface, PolarRadiusAxis } from 'recharts';
export default React.createClass({
render () {
const ticks = [
{ value: '100', radius: 50 },
{ value: '200', radius: 100 },
{ value: '300', radius: 150 },
{ value: '400', radius: 200 },
{ value: '500', r... |
client/src/app/App.js | ziel5122/autograde | import React from 'react';
import { withRouter } from 'react-router-dom';
import Header from './Header';
import Body from './Body';
const style = {
display: 'flex',
height: '100%',
flexDirection: 'column',
};
const App = () => (
<div style={style}>
<Header />
<Body />
</div>
);
export default with... |
src/app/pages/blog/Post.js | ROZ32/react-example | import React, { Component } from 'react';
import postImage from '../../images/post-sample-image.jpg';
class Post extends Component {
constructor(props) {
super(props);
}
render() {
return (
<article>
<div className="container">
<div className="row">
<div className="col-lg-8 col-md-10 mx-auto... |
node_modules/react-icons/io/ios-folder-outline.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const IoIosFolderOutline = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m33.2 7.5c1 0 1.8 0.8 1.8 1.8v23.7c0 1.1-0.8 2-1.8 2h-31.2c-1.1 0-2-0.9-2-2v-26.2c0-1 0.9-1.8 2-1.8h8.7c0.6 0 0.9 0.2 1.3 0.5l1.8 1.8c0.2 0.2 0.3 0.2 0.5 0.2... |
src/components/App.js | roychoo/upload-invoices | import React from 'react'
import { browserHistory, Router } from 'react-router'
import { Provider } from 'react-redux'
import PropTypes from 'prop-types'
class App extends React.Component {
static propTypes = {
store: PropTypes.object.isRequired,
routes: PropTypes.object.isRequired,
}
shouldComponentUpd... |
app/components/user/UserPage.js | lejoss/armeniaJS-meetup | /**
* Created by lejoss on 7/13/16.
*/
import React from 'react'
import UserForm from './UserForm'
import {bindActionCreators} from 'redux'
import {connect} from 'react-redux'
import * as userActions from '../../actions/userActions'
class UserPage extends React.Component {
constructor(props) {
super(pro... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/Generators.js | g3r4n/create-esri-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
function* load(limit) {
let i = 1;
while (i <= limit)... |
src/svg-icons/editor/insert-photo.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorInsertPhoto = (props) => (
<SvgIcon {...props}>
<path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/>
</SvgIcon>
);
EditorI... |
App/Containers/ThemeScreen.js | HyphenateInc/hyphenate-react-native | // @flow
import React from 'react'
import { View, ScrollView, Text, Image } from 'react-native'
import { Colors, Fonts, Images } from '../Themes'
import R from 'ramda'
// Styles
import styles from './Styles/ThemeScreenStyle'
// Colors
const colors = R.keys(Colors)
// Font Types
const types = R.keys(Fonts.type)
// Fo... |
src/components/launchpads.js | cosmowiki/cosmowiki | import React from 'react';
const LaunchpadsComponent = ({appUrl}) => {
return (
<main role="main" className="pure-u-1">
<div id="siteTitle" className="pure-u-1 places center">
<div id="siteTitleContainer">
<h1>Orte</h1>
<h3>der Blick zu den Sternen</h3>
</div>
</div>
... |
installer/frontend/trail.js | aknuds1/tectonic-installer | import _ from 'lodash';
import React from 'react';
import { Map as ImmutableMap, Set as ImmutableSet } from 'immutable';
import { commitPhases } from './actions';
import { PLATFORM_TYPE, DRY_RUN } from './cluster-config';
import { CertificateAuthority } from './components/certificate-authority';
import { ClusterInfo ... |
client/app/App.js | li-cai/folio2 | import React, { Component } from 'react';
import classnames from 'classnames';
import Settings from './Settings.js';
import Portals from './Portals.js';
import Upgrade from './Upgrade.js';
const AppState = {
MY_PORTALS: 0,
SETTINGS: 1,
UPGRADE: 2,
};
class App extends Component {
constructor() {
super();
t... |
src/slides/Graph.js | joshforisha/fred-talks | import React from 'react';
import adjectives from '../adjectives';
import nouns from '../nouns';
import pluralize from 'pluralize';
import quantifiers from '../quantifiers';
import { randomChance, randomItem } from '../random';
export default function randomGraph() {
const type = randomChance(50) ? 'bar' : 'line';
... |
website/src/react-native/index.js | mrspeaker/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
var Prism ... |
js/BaseComponents/Footer.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
*... |
docs/app/Examples/modules/Dropdown/Types/DropdownExampleSelection.js | shengnian/shengnian-ui-react | import React from 'react'
import { Dropdown } from 'shengnian-ui-react'
import { friendOptions } from '../common'
// friendOptions = [
// {
// text: 'Jenny Hess',
// value: 'Jenny Hess',
// image: { avatar: true, src: '/assets/images/avatar/small/jenny.jpg' },
// },
// ...
// ]
const DropdownExample... |
BUILD/js/components_js/admin-components/form-product/header.js | kevincaicedo/MyStore-Front-end | import React from 'react'
export default class HeadForm extends React.Component {
constructor(props) {
super(props)
}
render(){
return <div className="panel-heading">
<div className="row">
<div className="col-xs-3">
<i className="fa fa-list-alt... |
src/components/case-study/single/templates/hulu/casual.js | adrienhobbs/redux-glow | import React from 'react';
import BaseTemplate from '../base-study-template';
import AboutSection from '../../../content-modules/about.js';
export class Casual extends BaseTemplate {
static propTypes = {
data: React.PropTypes.object
};
constructor (props) {
super(props);
}
getStatContent () {
re... |
examples/async/containers/Root.js | PatrickEifler/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import configureStore from '../store/configureStore';
import AsyncApp from './AsyncApp';
const store = configureStore();
export default class Root extends Component {
render() {
return (
<Provider store={store}>
{() ... |
src/components/App.js | timbur/another-systemjs-test | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<h1>Hello, world.</h1>
);
}
}
|
lib/cli/generators/WEBPACK_REACT/template/stories/index.js | nfl/react-storybook | /* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */
import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { linkTo } from '@storybook/addon-links';
import Button from './Button';
import Welcome fr... |
docs/app/Examples/modules/Sidebar/Overlay/index.js | shengnian/shengnian-ui-react | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const SidebarVariationsExamples = () => (
<ExampleSection title='Overlay'>
<ComponentExample
title='Left Overlay'
de... |
docs/app/Components/ComponentDoc/ComponentControls/ComponentControlsToolTip.js | shengnian/shengnian-ui-react | import PropTypes from 'prop-types'
import React from 'react'
import { Popup } from 'shengnian-ui-react'
const toolTipStyle = {
padding: '0.5em',
textAlign: 'center',
width: 100,
}
const ComponentControlsToolTip = ({ children, content }) => (
<Popup
content={content}
inverted
mouseEnterDelay={800}
... |
src/Component/goods.js | smay1227/wintershop | import React, { Component } from 'react';
import '../Stylesheets/goods.css';
import {Link} from 'react-router';
export default class goods extends Component {
render(){
return(
<div className="box">
<div className="good-item">
<p className="goods-title">MacBook</p>
<p className="goodec">轻于时代,先于... |
src/svg-icons/communication/chat-bubble.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationChatBubble = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z"/>
</SvgIcon>
);
CommunicationChatBubble = pure(CommunicationChatBubble)... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/CssInclusion.js | 0xaio/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import './assets/style.css';
export default () => <p id="feature-css-inclusion">We love useless text.</p>;
|
blueocean-material-icons/src/js/components/svg-icons/content/add.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ContentAdd = (props) => (
<SvgIcon {...props}>
<path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/>
</SvgIcon>
);
ContentAdd.displayName = 'ContentAdd';
ContentAdd.muiName = 'SvgIcon';
export default ContentAdd;
|
demo/src/Login.js | ev-ui/ev-ui | import React from 'react'
import {render} from 'react-dom'
import styled from 'styled-components'
import { Form, Icon, Input, Button, Checkbox,Cascader } from 'antd';
const FormItem = Form.Item;
const Root=styled.div`
width:100%;
height:100%;
padding:10px;
background:transparent;
display:flex;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.