path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
src/svg-icons/maps/directions-run.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsRun = (props) => (
<SvgIcon {...props}>
<path d="M13.49 5.48c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-3.6 13.9l1-4.4 2.1 2v6h2v-7.5l-2.1-2 .6-3c1.3 1.5 3.3 2.5 5.5 2.5v-2c-1.9 0-3.5-1-4.3-2.4l... |
clients/packages/admin-client/src/mobilizations/widgets/components/form-autofire.spec.js | nossas/bonde-client | /* eslint-disable no-unused-expressions */
import React from 'react';
import shallowWithIntl from '../../../intl/helpers/shallow-with-intl';
import { expect } from 'chai';
import * as mock from '../../../utils/mock';
import { FormAutofire } from '../../../mobilizations/widgets/components';
import { IntlProvider } from... |
app/routes.js | kevyu/ctp_demo | /* eslint flowtype-errors/show-errors: 0 */
import React from 'react';
import { Switch, Route } from 'react-router';
import App from './containers/App';
import HomePage from './containers/HomePage';
import ChartPage from './containers/ChartPage';
export default () => (
<App>
<Switch>
<Route path="/chart" c... |
src/components/Video.js | blwoosky/DigCSS-Theme-v4-Redesign | import React, { Component } from 'react';
import { Link,browserHistory } from 'react-router';
import CommentsContainer from './../containers/CommentsContainer';
import { Element,scroller } from "react-scroll";
import Prism from "../js/prism";
import moment from 'moment';
export default class Post extends Component {
... |
opentech/static_src/src/app/src/components/MessageBar/index.js | OpenTechFund/WebApp | import React from 'react'
import PropTypes from 'prop-types'
import { MESSAGE_TYPES } from '@actions/messages'
const MessageBar = ({ message, type, onDismiss, dismissMessage='OK' }) => {
const modifierClass = type ? `messages__text--${type}` : '';
return (
<li className={`messages__text ${modifierCla... |
js/components/loaders/ProgressBar.ios.js | mrcflorian/classbook |
import React, { Component } from 'react';
import { ProgressViewIOS } from 'react-native';
export default class ProgressBarNB extends Component {
render() {
const getColor = () => {
if (this.props.color) {
return this.props.color;
} else if (this.props.inverse) {
return this.getThem... |
app/components/Layout.js | pbillerot/reacteur | 'use strict';
import React from 'react';
import { Link } from 'react-router';
export default class Layout extends React.Component {
constructor(props) {
super(props);
this.state = {
w3_sidebar_open: false
}
}
getChildContext() {
return {
w3_side... |
shared/components/CommentForm.js | AndrewGibson27/react-webpack-express-isomorphic-boilerplate | import React, { Component } from 'react';
import { connect, PromiseState } from 'react-refetch';
class CommentForm extends Component {
constructor(props) {
super(props);
this.state = { value: '' };
this._onChange = this._onChange.bind(this);
this._onSubmit = this._onSubmit.bind(this);
}
componen... |
src/components/ProductList.js | selimsevencan/catalog | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Row, Col } from 'antd';
import { addToCart } from '../actions';
import ProductItem from './ProductItem';
class ProductList extends Component {
render() {
let filteredProducts = this.props.products;
if (this.props.filte... |
node_modules/react-bootstrap/es/InputGroupAddon.js | WatkinsSoftwareDevelopment/HowardsBarberShop | 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 ... |
src/svg-icons/places/spa.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesSpa = (props) => (
<SvgIcon {...props}>
<path d="M8.55 12c-1.07-.71-2.25-1.27-3.53-1.61 1.28.34 2.46.9 3.53 1.61zm10.43-1.61c-1.29.34-2.49.91-3.57 1.64 1.08-.73 2.28-1.3 3.57-1.64z"/><path d="M15.49 9.63c... |
docs/app/Examples/collections/Form/Variations/FormSizeExample.js | jcarbo/stardust | import React from 'react'
import { Button, Divider, Form } from 'stardust'
const sizes = ['mini', 'tiny', 'small', 'large', 'big', 'huge', 'massive']
const FormSizeExample = () => (
<div>
{sizes.map(size => (
<Form size={size} key={size}>
<Form.Group widths='equal'>
<Form.Field label='Fi... |
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js | foozmeat/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components';
import Overlay from 'react-overlays/lib/Overlay';
import classNames from 'classnames';
import ImmutablePropTypes from ... |
pilgrim3/components/sideBar.js | opendoor-labs/pilgrim3 | import React from 'react';
import state from './state';
import { keys, map, filter, includes } from 'lodash';
import NavLink from './navLink';
const FILES = 'files';
const MESSAGES = 'messages';
const ENUMS = 'enums';
const SERVICES = 'services';
const ACTIVE = 'active';
class SelectionButton extends React.Component ... |
src/svg-icons/image/panorama.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePanorama = (props) => (
<SvgIcon {...props}>
<path d="M23 18V6c0-1.1-.9-2-2-2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zM8.5 12.5l2.5 3.01L14.5 11l4.5 6H5l3.5-4.5z"/>
</SvgIcon>
);
ImagePanora... |
public/js/components/admin/dashboard.react.js | TRomesh/Coupley | import React from 'react';
import Header from './Header.react';
import Sidebar from './Sidebar.react';
import Settings from './Settings.react';
import Path from './path.react';
import { Router, Route, Link, hashHistory } from 'react-router';
var Admin = React.createClass({
forceUpdate: function () {
location.rel... |
src/containers/FuelSavingsPage.js | lisavogtsf/canned-react-slingshot-app | import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import * as actions from '../actions/fuelSavingsActions';
import FuelSavingsForm from '../components/FuelSavingsForm';
export const FuelSavingsPage = (props) => {
return (
... |
packages/ecmascript-hot/plugin.js | gadicc/meteor-hmr | var crypto = Npm.require('crypto');
// This *must* match the name of your package
var hot = new Hot('gadicc:ecmascript-hot/compile-ecmascript-hot', true);
Plugin.registerCompiler({
extensions: ['js', 'jsx'],
}, function () {
var compiler = new BabelCompiler({
react: true
});
// First compile takes ages (... |
src/svg-icons/notification/phone-forwarded.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPhoneForwarded = (props) => (
<SvgIcon {...props}>
<path d="M18 11l5-5-5-5v3h-4v4h4v3zm2 4.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26... |
src/js/components/Header.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import classnames from 'classnames';
import CSSClassnames from '../utils/CSSClassnames';
import Props from '../utils/Props';
import Box fr... |
client/src/App.js | adam-serene/serene-mvp | import React from 'react';
import Auth from './components/Auth';
import GoogleMap from './components/GoogleMap';
import Hangouts from './components/Hangouts.js'
import Leaderboard from './components/Leaderboard';
import { Route } from 'react-router-dom';
import './App.css';
const App = () => (
<div
className='ap... |
packages/vx-demo/components/tiles/network.js | Flaque/vx | import React from 'react';
import { Graph } from '@vx/network'
import {scaleOrdinal, schemeCategory20c} from 'd3-scale';
const nodes =
[{x: 50, y: 20}, {x: 200, y: 300}, {x: 300, y: 40}];
const dataSample = {
nodes,
links: [
{source: nodes[0], target: nodes[1]},
{source: nodes[1], target: nodes[2]},
... |
packages/lore-hook-forms-material-ui/src/config.js | lore/lore-forms | /* eslint no-param-reassign: "off" */
import React from 'react';
import CreateOptimisticBlueprint from './blueprints/create/Optimistic';
import CreateOverlayBlueprint from './blueprints/create/Overlay';
import CreateWizardBlueprint from './blueprints/create/Wizard';
import UpdateOptimisticBlueprint from './blueprints/... |
v0.2/src/App.js | sakulstra/firebase-web-todo | import React from 'react';
import { BrowserRouter, Match, Miss } from 'react-router';
import { Error404, Home, Todo } from './ui/pages';
const App = () => (
<BrowserRouter>
<div>
<Match exactly pattern="/" component={Home}/>
<Match pattern="/todo" component={Todo}/>
<Mis... |
src/svg-icons/navigation/subdirectory-arrow-right.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationSubdirectoryArrowRight = (props) => (
<SvgIcon {...props}>
<path d="M19 15l-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z"/>
</SvgIcon>
);
NavigationSubdirectoryArrowRight = pure(Navigat... |
docs/src/pages/components/toggle-button/ToggleButtonNotEmpty.js | lgollut/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import FormatAlignLeftIcon from '@material-ui/icons/FormatAlignLeft';
import FormatAlignCenterIcon from '@material-ui/icons/FormatAlignCenter';
import FormatAlignRightIcon from '@material-ui/icons/FormatAlignRight';
import FormatAlignJust... |
src/containers/Home/Home.js | JamesJin038801/CampID | import { Text, View, Platform, Image, ScrollView } from 'react-native';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import I18n from 'react-native-i18n';
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view';
import NavigationBar from 'react-native-navbar... |
src/client.js | micooz/react-redux-universal-hot-example | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createHistory from 'history/lib/createBrowserHistory';
import useScroll from 'scroll-behavior/lib/useStandardScroll';
imp... |
src/components/TodosListHeader.js | AscaL/NTD | import React from 'react';
export default class TodosListHeader extends React.Component {
render() {
return (
<thead>
<tr>
<th>Task</th>
<th>Action</th>
</tr>
</thead>
);
}
}
|
app/javascript/mastodon/features/ui/components/video_modal.js | imas/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Video from 'mastodon/features/video';
import ImmutablePureComponent from 'react-immutable-pure-component';
import Footer from 'mastodon/features/picture_in_picture/components/footer';
import... |
src/parser/priest/shadow/modules/spells/VoidformGraph.js | FaideWW/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { Line } from 'react-chartjs-2';
import SPELLS from 'common/SPELLS';
import { formatDuration } from 'common/format';
import VoidformStyles from './VoidformStyles';
// changing this value will have a large impact on webbrowser performance. About 200... |
app/routes/waste/CreateRoute.js | ryrudnev/dss-wm | import React from 'react';
import Helmet from 'react-helmet';
import { Route } from '../../core/router';
import { Model as Waste } from '../../entities/Waste';
import { Collection as WasteTypes } from '../../entities/WasteType';
import { PageHeader, Row, Col, Panel } from 'react-bootstrap';
import WasteForm from '../..... |
app/javascript/mastodon/features/community_timeline/components/column_settings.js | theoria24/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.... |
ajax/libs/react-instantsearch/4.5.0/Dom.js | seogi1004/cdnjs | /*! ReactInstantSearch 4.5.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
... |
src/collections/Form/FormInput.js | aabustamante/Semantic-UI-React | import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
import Input from '../../elements/Input'
import FormField from './FormField'
/**
* Sugar for <Form.Field control={Input} />.
* @see Form
* @see Input
*/
function FormInput(props) {
const { con... |
manager/src/Router.js | victorditadi/IQApp | import React from 'react';
import { View, Text } from 'react-native';
import { Icon } from 'native-base';
import { Scene, Router } from 'react-native-router-flux';
import LoginScreen from './components/screens/LoginScreen';
import InitScreen from './components/screens/InitScreen';
import HomeScreen from './components/s... |
app/js/components/trainer-pokemon/trainer-pokemon-move-meta.component.js | milk-shake/electron-pokemon | import React from 'react';
import ReactDOM from 'react-dom';
export default class MoveMetaComponent extends React.Component {
constructor(props) {
super(props);
}
toggle() {
return ((this.props.open) ? "open " : "") + "trainer-pokemon-move-meta";
}
displayAilment() {
if(this.props.meta.ailment ... |
js/src/modals/FirstRun/Welcome/welcome.js | immartian/musicoin | // Copyright 2015, 2016 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 la... |
fields/types/name/NameColumn.js | udp/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
var NameColumn = React.createClass({
displayName: 'NameColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object... |
code/material/2-hierarchy/GreetingController.js | st-he/react-workshop | import React from 'react';
import GreetingMaster from './GreetingMaster';
import GreetingDetail from './GreetingDetail';
let currentId = 0;
const sampleGreetings = [{
id: currentId++,
name: 'Olli',
greeting: 'Huhu'
},
{
id: currentId++,
name: 'Oma',
greeting: 'Hallo'
}
];
... |
client/src/index.js | mtucciar/monster-chat | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { createStore, applyMiddleware } from 'redux'
import monsterChatApp from './reducers'
import MonsterChat from './components/MonsterChat'
import monsterChatClient, {chatMiddleware} from './chat'
const initialState... |
src/components/LiveMap.js | TorinoMeteo/tm-realtime-map | import React from 'react'
import PropTypes from 'prop-types'
import {
withGoogleMap,
GoogleMap,
HeatmapLayer
} from 'react-google-maps'
import MarkerClusterer from 'react-google-maps/lib/addons/MarkerClusterer'
import LiveMarker from 'components/LiveMarker'
import LiveStationModal from 'components/LiveStationModa... |
react-flux-mui/js/material-ui/src/svg-icons/notification/vpn-lock.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationVpnLock = (props) => (
<SvgIcon {...props}>
<path d="M22 4v-.5C22 2.12 20.88 1 19.5 1S17 2.12 17 3.5V4c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h5c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1zm-.8 0h-3.4v-.5c0-.94.76-... |
packages/material-ui-icons/src/LocalGasStation.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let LocalGasStation = props =>
<SvgIcon {...props}>
<path d="M19.77 7.23l.01-.01-3.72-3.72L15 4.56l2.11 2.11c-.94.36-1.61 1.26-1.61 2.33 0 1.38 1.12 2.5 2.5 2.5.36 0 .69-.08 1-.21v7.21c0 .55-.45 1-1 1s-1-.45-... |
app/components/Toggle/option.js | fission/fission-ui | /**
*
* ToggleOption
*
*/
import React from 'react';
import { injectIntl, intlShape } from 'react-intl';
const Option = ({ value, message, intl }) => (
<option value={value}>
{message ? intl.formatMessage(message) : value}
</option>
);
Option.propTypes = {
value: React.PropTypes.string.isRequired,
messag... |
src/components/ErrorMessageBanner.js | elstgav/step-up | import React from 'react'
// to be expanded when styles
const ErrorMessageBanner = ({ errorMessage }) =>
<div>
{errorMessage}
</div>
ErrorMessageBanner.propTypes = {
errorMessage: React.PropTypes.string,
}
export { ErrorMessageBanner }
|
src/svg-icons/image/exposure-plus-1.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageExposurePlus1 = (props) => (
<SvgIcon {...props}>
<path d="M10 7H8v4H4v2h4v4h2v-4h4v-2h-4V7zm10 11h-2V7.38L15 8.4V6.7L19.7 5h.3v13z"/>
</SvgIcon>
);
ImageExposurePlus1 = pure(ImageExposurePlus1);
ImageEx... |
src/mention/__tests__/fixtures/initializeEditor.js | Kindling/react-tinymce-mentions | import 'babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import TinyMCE from 'react-tinymce';
import Mention from '../../Mention';
import simpleDataSource from './simple';
const plugins = [
'autolink',
'autoresize',
'code',
'image',
'link',
'media',
'mention',
'tabfocus'
];... |
src/Parser/Hunter/Marksmanship/Modules/Items/Tier21_2p.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatNumber } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import getDamageBonus fr... |
src/routes.js | hahoocn/react-mobile-boilerplate | import React from 'react';
import { Route, Switch } from 'react-router-dom';
import { App, About, Home, NotFound } from './containers';
export const routes = [
{
component: App,
routes: [
{ path: '/', exact: true, component: Home },
{ path: '/about', component: About },
{ component: NotFoun... |
src/routes/about/index.js | medevelopment/updatemeadmin | /**
* 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 React from 'react';
import Layout from '../../co... |
frontend/advocate/samename/SameNameAdvocate.js | datoszs/czech-lawyers | import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {getName, getResidence} from './selectors';
const SameNameAdvocateComponent = ({name, residence}) => <span>{name}{residence && <span> ({residence})</span>}</span>;
const mapStateToProps = (state, {id}) => ({
... |
src/svg-icons/content/clear.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentClear = (props) => (
<SvgIcon {...props}>
<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>
</SvgIcon>
);
ContentClear = pure(ContentClea... |
fields/types/location/LocationField.js | benkroeger/keystone | import _ from 'lodash';
import React from 'react';
import Field from '../Field';
import CollapsedFieldLabel from '../../components/CollapsedFieldLabel';
import NestedFormField from '../../components/NestedFormField';
import {
FormField,
FormInput,
FormNote,
Grid,
LabelledControl,
} from '../../../admin/client/App... |
docs/src/components/NavLinks.js | isaacs/node-tap | import React from 'react';
import {Link, NavLink} from './links';
const NavLinks = (props) => {
return(
<>
{props.desktop &&
<NavLink
to="/docs/"
activeClassName="active-navlink"
partiallyActive={true}
>
Docs
</NavLink>
}
<NavLink... |
fields/types/boolean/BooleanFilter.js | mekanics/keystone | import React from 'react';
import { SegmentedControl } from 'elemental';
const TOGGLE_OPTIONS = [
{ label: 'Is Checked', value: true },
{ label: 'Is NOT Checked', value: false }
];
var BooleanFilter = React.createClass({
getInitialState () {
return {
checked: this.props.value || TOGGLE_OPTIONS[0].value
};
... |
src/components/canvas/MenuItem.js | nchathu2014/canvas-new | import React from 'react';
export default class MenuItem extends React.Component{
constructor(props){
super(props);
this.state={
glyphiconColor:'green'
}
}
render(){
return(
<div>
<button className="btn btn-default menu-btn"
onClick={this.props.menuItemOnClick}
onMouseOver={thi... |
js/components/LoadingButton.react.js | techaware/biometric-auth | /**
* LoadingButton.react.js
*
* Wraps the loading indicator in a tag with the .btn--loading class
*/
import React from 'react';
import LoadingIndicator from './LoadingIndicator.react';
function LoadingButton(props) {
return(
<a href="#" className={props.className + " btn btn--loading"} disabled="true">
... |
src/routes/Home/components/HomeView.js | okmttdhr/aupa | import React from 'react'
import { connect } from 'react-redux'
import classes from './HomeView.scss'
import DuckImage from '../assets/Duck.jpg'
import videosModule from '../modules/videos'
import Video from 'components/Video'
const mapActionCreators = {
getVideos: videosModule.getVideos,
}
const mapStateToProps ... |
react/features/base/media/components/AbstractAudio.js | KalinduDN/kalindudn.github.io | import React, { Component } from 'react';
/**
* The React {@link Component} which is similar to Web's
* {@code HTMLAudioElement}.
*/
export default class AbstractAudio extends Component {
/**
* The (reference to the) {@link ReactElement} which actually implements
* this {@code AbstractAudio}.
*/
... |
src/svg-icons/notification/network-check.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationNetworkCheck = (props) => (
<SvgIcon {...props}>
<path d="M15.9 5c-.17 0-.32.09-.41.23l-.07.15-5.18 11.65c-.16.29-.26.61-.26.96 0 1.11.9 2.01 2.01 2.01.96 0 1.77-.68 1.96-1.59l.01-.03L16.4 5.5c0-.28... |
src/client/assets/js/nodes/processors/uibuilder/features/canvas/components/svg/Group.js | me-box/platform-sdk | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import {camelise,componentsFromTransform} from 'nodes/processors/uibuilder/utils';
import { actionCreators as canvasActions, selector, NAME } from '../..';
import { connect } from 'react-redux';
import {Circle, Text, Line, Rect, Ellip... |
apps/test-suite/tests/HTML.js | exponentjs/exponent | import {
A,
Article,
B,
BlockQuote,
BR,
Caption,
Code,
Del,
EM,
Footer,
H1,
H2,
H3,
H4,
H5,
H6,
Header,
HR,
I,
LI,
Main,
Mark,
Nav,
P,
Pre,
Q,
S,
Section,
Strong,
Table,
TBody,
TD,
TFoot,
TH,
THead,
Time,
TR,
UL,
} from '@expo/html-elements';
i... |
webapp/src/containers/wordpress/wordpressFeeds/test.js | alliance-genome/agr | import assert from 'assert';
import React from 'react';
import { renderToString } from 'react-dom/server';
import { Provider } from 'react-redux';
import { createMemoryHistory } from 'react-router';
import configureStore from '../../../lib/configureStore';
import{ WP_POST_BASE_URL,WP_POST_URL } from '../../../constant... |
docs/custom/toggle-switch/index.js | valzav/react-foundation-components | import React, { Component } from 'react';
import { ToggleSwitch, ToggleSwitchItem } from '../../../src/toggle-switch';
export default class ToggleSwitchPage extends Component {
state = {
activeKey: '3',
};
handleSelect = (activeKey) => this.setState({ activeKey });
render() {
const { activeKey } = t... |
docs/src/ModalsPage.js | jareth/react-materialize | import React from 'react';
import Row from '../../src/Row';
import Col from '../../src/Col';
import ReactPlayground from './ReactPlayground';
import PropTable from './PropTable';
import store from './store';
import Samples from './Samples';
import modal from '../../examples/Modal';
import modalWithBottomSheet from '../... |
docs/app/Examples/elements/Input/Variations/InputExampleLeftCornerLabeled.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Input } from 'semantic-ui-react'
const InputExampleLeftCornerLabeled = () => (
<Input
label={{ icon: 'asterisk' }}
labelPosition='left corner'
placeholder='Search...'
/>
)
export default InputExampleLeftCornerLabeled
|
src/components/__tests__/TableHeadingCellTest.js | joellanciaux/Griddle | import React from 'react';
import test from 'ava';
import { shallow } from 'enzyme';
import TableHeadingCell from '../TableHeadingCell';
test('renders with style', (t) => {
const style = { backgroundColor: '#EDEDED' };
const wrapper = shallow(<TableHeadingCell style={style} />);
t.true(wrapper.matchesElement(<... |
map/src/components/ModalAnniversary/index.js | Vizzuality/care_usa | 'use strict';
import './styles.postcss';
import React from 'react';
import Modal from '../Modal';
import CaresPackage from './CaresPackage';
import PowerBox from './PowerBox';
import CaresEvolution from './CaresEvolution';
import CatalystWomen from './CatalystWomen';
import BoxVideo from './BoxVideo';
import Slider fr... |
src/Grid.js | RichardLitt/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const Grid = React.createClass({
propTypes: {
fluid: React.PropTypes.bool,
componentClass: React.PropTypes.node.isRequired
},
getDefaultProps() {
return {
componentClass: 'div'
};
},
render() {
let ComponentClass = th... |
app/javascript/components/ExpressDonation/PaymentMethodWrapper.js | SumOfUs/Champaign | import React from 'react';
export default function PaymentMethodWrapper(props) {
return (
<div className="PaymentMethodWrapper">
<i className="PaymentMethodWrapper__icon fa fa-credit-card" />
{props.children}
</div>
);
}
|
src/components/Container.js | MunGell/elemental | import React from 'react';
import blacklist from 'blacklist';
import E from '../constants';
module.exports = React.createClass({
displayName: 'Container',
propTypes: {
children: React.PropTypes.node.isRequired,
clearfix: React.PropTypes.bool,
gutter: React.PropTypes.number,
maxWidth: React.PropTypes.number,
... |
src/components/Svg/Symbol.js | weaintplastic/react-sketchapp | import React from 'react';
import PropTypes from 'prop-types';
module.exports = class Symbol extends React.Component {
static propTypes = {
id: PropTypes.string.isRequired,
viewBox: PropTypes.string,
preserveAspectRatio: PropTypes.string,
children: PropTypes.node.isRequired,
};
render() {
co... |
src/Chip/Chip.spec.js | andrejunges/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import sinon from 'sinon';
import Chip from './Chip';
import getMuiTheme from '../styles/getMuiTheme';
const Avatar = (props) => <div {...props} />;
Avatar.muiName = 'Avatar';
describe('<Chip />', () => {
... |
src/ContentBlocks/BlockColorSwatch/BlockColorSwatchForm.js | grommet/grommet-cms-content-blocks | /* @flow */
import React from 'react';
import Box from 'grommet/components/Box';
import Form from 'grommet/components/Form';
import FormFields from 'grommet/components/FormFields';
import FormField from 'grommet/components/FormField';
import TextInput from 'grommet/components/TextInput';
import Button from 'grommet/com... |
react-flux-mui/js/material-ui/src/svg-icons/editor/border-style.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderStyle = (props) => (
<SvgIcon {...props}>
<path d="M15 21h2v-2h-2v2zm4 0h2v-2h-2v2zM7 21h2v-2H7v2zm4 0h2v-2h-2v2zm8-4h2v-2h-2v2zm0-4h2v-2h-2v2zM3 3v18h2V5h16V3H3zm16 6h2V7h-2v2z"/>
</SvgIcon>
);
E... |
src/js/components/icons/base/PlatformVmware.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/editor/monetization-on.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorMonetizationOn = (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 2zm1.41 16.09V20h-2.67v-1.93c-1.71-.36-3.16-1.46-3.27-3.4h1.96c.1 1.05.82 1.87 2... |
src/encoded/static/components/image.js | T2DREAM/t2dream-portal | import React from 'react';
import PropTypes from 'prop-types';
import url from 'url';
import * as globals from './globals';
// Fixed-position lightbox background and image
class Lightbox extends React.Component {
constructor() {
super();
// Set initial React state.
this.state = { imgHeigh... |
app.js | cobbweb/golittle.red | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import 'babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
import ReactCSSTransiti... |
react-twitter-save-data-loading(client-hint)/src/components/Twitter/Media.js | GoogleChromeLabs/adaptive-loading | /*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
src/svg-icons/device/battery-std.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryStd = (props) => (
<SvgIcon {...props}>
<path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"/>
</SvgIcon>
);
D... |
src/shared/components/form/formSelect/formSelect.js | OperationCode/operationcode_frontend | import React, { Component } from 'react';
import PropTypes from 'prop-types';
class FormSelect extends Component {
onChange(e) {
// make sure we have a valid value before propogating the on change call
let isValid = true;
if (this.props.validationFunc) {
isValid = this.props.validationFunc(e);
... |
Paths/React/06.Styling React Components/4-react-styling-components-m4-exercise-files/Before/src/carousel.js | phiratio/Pluralsight-materials | import React from 'react'
const { node, number } = React.PropTypes
function renderSlides(props) {
return React.Children.map(props.children, (slide, i) => {
return React.cloneElement(slide, {
style: {
...slide.props.style,
width: props.width,
left: props.width * (i - props.showIndex... |
storybook/stories/x-axis/index.js | JesperLekland/react-native-svg-charts | import React from 'react'
import { storiesOf } from '@storybook/react-native'
import ScaleLinear from './scale-linear'
import ScaleTime from './scale-time'
import ScaleBand from './scale-band'
import WithComplexData from './data-object'
import ShowcaseCard from '../showcase-card'
storiesOf('XAxis', module)
.addDe... |
app/react-icons/fa/contao.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaContao extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m3.1 2.9h4.4q-1.6 1.4-2.8 3.3-0.8 1.2-1.4 2.6t-0.6 2.8-0.2 2.6 0.2 3 0.5 2.8 ... |
src/components/aboutme.js | mazairaj/thejulianmaz | import React from 'react';
import SvgIcon from 'react-icons-kit';
import { instagram } from 'react-icons-kit/fa';
import { linkedin } from 'react-icons-kit/fa';
import { github } from 'react-icons-kit/fa';
import { facebook } from 'react-icons-kit/fa';
const About = function () {
return (
<div style={{ display: ... |
server/sonar-web/src/main/js/apps/project-permissions/permissions-footer.js | abbeyj/sonarqube | import React from 'react';
export default React.createClass({
propTypes:{
count: React.PropTypes.number.isRequired,
total: React.PropTypes.number.isRequired,
loadMore: React.PropTypes.func.isRequired
},
render() {
if (this.props.componentId) {
return null;
}
let hasMore = this.prop... |
app/containers/Product/SingleProductPage/index.js | hlex/vms | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
// ======================================================
// Hoc
// ======================================================
import withAudio from '../../../hoc/... |
src/components/ReplOutputBufferExplorer.js | boneskull/Mancy | import React from 'react';
import _ from 'lodash';
import ReplCommon from '../common/ReplCommon';
let sentinalValues = _.map(new Array(0x10), () => 0);
export default class ReplOutputBufferExplorer extends React.Component {
constructor(props) {
super(props);
this.state = {
page: 1
}
_.each([
... |
test/PanelSpec.js | HorizonXP/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Panel from '../src/Panel';
import Table from '../src/Table';
describe('Panel', function () {
it('Should have class and body', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Panel>Panel content</Panel>... |
app/react-icons/fa/percent.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaPercent extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m31.6 28.6q0-1.2-0.9-2t-2-0.9-2 0.9-0.8 2 0.8 2 2 0.8 2-0.8 0.9-2z m-17.2-17... |
src/components/Pagination/Pagination-test.js | joshblack/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import CaretRight24 from '@carbon/icons-react/lib/caret--right/24';
import CaretLeft24 from '@carbon/icons-react/l... |
src/components/Post/test.js | lewiscowper/rss-reader | /*
ava is a test framework, here we pull it's
default import, which has the main API
attached.
*/
import test from 'ava';
/*
We need React whenever we want to compile some
JSX, which we do here.
*/
import React from 'react';
/*
This is the shallow renderer from airbnb/enzyme.
It allows us to render a sp... |
docs/src/sections/WellSection.js | apkiernan/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function WellSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<Anch... |
src/components/common/products/ProductList.js | ESTEBANMURUZABAL/bananaStore | /**
* Imports
*/
import React from 'react';
import {FormattedMessage} from 'react-intl';
import {slugify} from '../../../utils/strings';
// Flux
import IntlStore from '../../../stores/Application/IntlStore';
// Required components
import Heading from '../typography/Heading';
import Pagination from '../navigation/P... |
src/components/Sum/index.js | indec-it/react-native-form-builder | import React from 'react';
import PropTypes from 'prop-types';
import {Text, View} from 'react-native';
import {mergeStyles, stylePropType} from '@indec/react-native-commons/util';
import {isEmpty, filter, toNumber, isNil, sum} from 'lodash';
import TextWithBadge from '../TextWithBadge';
import {handleChange} from '..... |
cheesecakes/plugins/content-type-builder/admin/src/components/AttributeCard/index.js | strapi/strapi-examples | /**
*
* AttributeCard
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import IcoBoolean from '../../assets/images/icon_boolean.png';
import IcoDate from '../../assets/images/icon_date.png';
import IcoEmail from '../../assets/images/icon_email.png';
im... |
frontend/src/Artist/Details/ArtistDetailsConnector.js | lidarr/Lidarr | /* eslint max-params: 0 */
import _ from 'lodash';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import * as commandNames from 'Commands/commandNames';
import { clearAlbums, fetchAlbums } from 'Store/Action... |
src/components/rubymine/original/RubymineOriginal.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './RubymineOriginal.svg'
/** RubymineOriginal */
function RubymineOriginal({ width, height, className }) {
return (
<SVGDeviconInline
className={'RubymineOriginal' +... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.