path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
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/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([
... |
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/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' +... |
envkey-react/src/containers/app_collaborators_container.js | envkey/envkey-app | import React from 'react'
import { connect } from 'react-redux'
import h from "lib/ui/hyperscript_with_helpers"
import R from 'ramda'
import moment from 'moment'
import { getColumnsFlattened } from "lib/assoc/helpers"
import { getIsOnboarding, getDecryptedAll, getInvitingUser, getGeneratedInviteLink, getIsDemo } from '... |
examples/universal-counter/src/server/index.js | jas-chen/redux-core | import express from 'express';
import path from 'path';
import { createStore } from 'redux-core';
import { reducer, applyRxMiddleware } from '../shared';
import getIntentStream from './utils/getIntentStream';
import render from './utils/render';
import Counter from '../shared/view/components/Counter';
import React from... |
docs/src/components/Layout/Layout.js | bmatthews/haze-lea | /**
* 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 PropTypes from 'prop-... |
packages/@sanity/studio-hints/src/components/LinksList.js | sanity-io/sanity | import React from 'react'
import PropTypes from 'prop-types'
import {Card, Text, Stack, Flex, Box, Label} from '@sanity/ui'
import {LaunchIcon} from '@sanity/icons'
import HintCard from './HintCard'
function CardLinks(props) {
const {type, links, title, repoId} = props
if (!links) {
return null
}
if (type... |
src/app/component/form-row/form-row.js | all3dp/printing-engine-client | import PropTypes from 'prop-types'
import React from 'react'
import propTypes from '../../prop-types'
import cn from '../../lib/class-names'
const FormRow = ({classNames, layout, children}) => {
const mappedChildren = React.Children.map(children, child => (
<div className="FormRow__column">{child}</div>
))
... |
ajax/libs/recompose/0.20.1/Recompose.js | wout/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["Recompose"] = facto... |
app/src/components/Project/index.js | AlexandreBourdeaudhui/abourdeaudhui.fr | /*
* Package Import
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { NavLink } from 'react-router-dom';
import { Link } from 'react-scroll';
/*
* Local Import
*/
import Description from 'src/components/Description';
import Screen from './Screen';
/*
* Component
*/
clas... |
react/Autosuggest/Autosuggest.js | seek-oss/seek-style-guide | import styles from './Autosuggest.less';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import ReactAutosuggest from '../private/react-autosuggest';
import IsolatedScroll from 'react-isolated-scroll';
import omit from 'lodash/omit';
import TextField fr... |
ui/src/frontend/component/App.js | Virtustream-OSS/packrat | import React from 'react';
import { Layout, NavDrawer, Panel, Sidebar, Chip, FontIcon, AppBar, Navigation, Button } from 'react-toolbox';
import { BrowserRouter as Router, Route, Link } from 'react-router-dom';
import Packrat from './Packrat';
import ServerError from './ServerError';
import Home from './Home';
import P... |
actor-apps/app-web/src/app/components/sidebar/HeaderSection.react.js | sc4599/actor-platform | import _ from 'lodash';
import React from 'react';
import mixpanel from 'utils/Mixpanel';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import classNames from 'classnames';
import MyProfileActions from 'actions/MyProfileActions';
import LoginActionCreators from 'action... |
blueocean-material-icons/src/js/components/svg-icons/action/report-problem.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionReportProblem = (props) => (
<SvgIcon {...props}>
<path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"/>
</SvgIcon>
);
ActionReportProblem.displayName = 'ActionReportProblem';
ActionReportProblem.muiName = 'SvgIcon';
export de... |
client/src/components/Draftail/Tooltip/Tooltip.js | zerolab/wagtail | import PropTypes from 'prop-types';
import React from 'react';
const TOP = 'top';
const LEFT = 'left';
const TOP_LEFT = 'top-left';
const getTooltipStyles = (target, direction) => {
const top = window.pageYOffset + target.top;
const left = window.pageXOffset + target.left;
switch (direction) {
case TOP:
... |
src/svg-icons/notification/drive-eta.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationDriveEta = (props) => (
<SvgIcon {...props}>
<path d="M18.92 5.01C18.72 4.42 18.16 4 17.5 4h-11c-.66 0-1.21.42-1.42 1.01L3 11v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 ... |
client/components/ModalPostman/index.js | YMFE/yapi | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import './index.scss';
import { Alert, Modal, Row, Col, Icon, Collapse, Input, Tooltip } from 'antd';
import MockList from './MockList.js';
import MethodsList from './MethodsList.js';
import VariablesSelect from './VariablesSelect.js';
import... |
app/javascript/mastodon/features/getting_started/components/announcements.js | dunn/mastodon | import React from 'react';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ReactSwipeableViews from 'react-swipeable-views';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import IconButton from 'mastodon/components/icon_button';
import Icon f... |
admin/client/App/shared/Popout/PopoutFooter.js | alobodig/keystone | /**
* Render a footer for a popout
*/
import React from 'react';
const BUTTON_BASE_CLASSNAME = 'Popout__footer__button Popout__footer__button--';
const PopoutFooter = React.createClass({
displayName: 'PopoutFooter',
propTypes: {
children: React.PropTypes.node,
primaryButtonAction: React.PropTypes.func,
pri... |
examples/fiber/debugger/src/App.js | aaron-goshine/react | import React, { Component } from 'react';
import Draggable from 'react-draggable';
import ReactNoop from '../../../../build/packages/react-noop-renderer';
import ReactFiberInstrumentation from '../../../../build/packages/react-noop-renderer/lib/ReactFiberInstrumentation';
import Editor from './Editor';
import Fibers fr... |
client/app/components/mainApp.js | dat2/hanabi-clone-web | import React from 'react'
import redux from '../constants/redux'
import { Provider } from 'redux/react'
import { bindActionCreators } from 'redux'
import * as GameActions from '../actions/gameActions'
import App from './app'
class MainApp extends React.Component {
render() {
return (
<Provider redux={re... |
src/index.js | capusta/simplegolf | import React from 'react';
import ReactDOM from 'react-dom';
import { browserHistory } from 'react-router';
import Routes from './routes';
ReactDOM.render(
<Routes history={browserHistory} />,
document.getElementById('root')
);
|
src/components/RoutineTimerListItem.js | snsavage/timer-react | import React, { Component } from 'react';
import { displayTime } from './../utils/displayTime';
export class RoutineTimerListItem extends Component {
handleClick = (event) => {
const { routine, loadCurrentRoutine } = this.props;
loadCurrentRoutine(routine.id);
}
render() {
const { routine } = this.p... |
src/app.js | CiriousJoker/LegacyManager | //import './assets/css/App.css';
import React, { Component } from 'react';
import { render } from 'react-dom';
import { BrowserRouter as Router, Switch, Route, Link } from 'react-router-dom';
// Animations
//import CSSTransitionGroup from 'react-transition-group/CSSTransitionGroup';
// Components
import MenuBar fro... |
Libraries/Modal/Modal.js | imDangerous/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.
*
* @provides... |
src/components/NotebookListItem/index.js | anibali/showoff | import React from 'react';
import _ from 'lodash';
import { assocIn, merge } from 'icepick';
import { connect } from 'react-redux';
import NotebookListItemView from './NotebookListItemView';
import NotebookListItemEdit from './NotebookListItemEdit';
import complexActionCreators from '../../redux/complexActionCreators'... |
client/src/components/GalleryItem/droppable.js | open-sausages/silverstripe-asset-admin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { DropTarget } from 'react-dnd';
export default function droppable(types) {
const spec = {
drop(props, monitor) {
if (monitor.canDrop()) {
const item = monitor.getItem();
props.onDropFiles(props.item.id, it... |
react-ui/src/components/Location.js | the-oem/happy-hour-power | import React from 'react';
import '../styles/List.css';
import { Link } from 'react-router-dom'
const Location = props => {
const link = props.inTable
? `/detail/${props.location.id}`
: `/new-location`;
return (
<div className="location">
<div className="location-container">
<h2 classNa... |
src/withTheme.js | klarna/higher-order-components | import React from 'react'
import wrapDisplayName from 'recompose/wrapDisplayName'
import { withPropsFromContext } from 'react-context-props'
const withTheme = adapter => Target => {
const WithTheme = withPropsFromContext(['theme'])(({ theme, ...props }) =>
<Target
{...{
...props,
...(theme ... |
app/react-icons/fa/sort-numeric-desc.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaSortNumericDesc extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m33 6.5q0-1.5-0.9-2.6t-2.3-1.2q-1.2 0-1.9 0.8t-0.7 2.1 0.8 2.1 2.4 0... |
src/interface/home/ReportHistory/index.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { Trans } from '@lingui/macro';
import makeCharacterPageUrl from 'common/makeCharacterPageUrl';
import { makePlainUrl } from 'interface/common/makeAnalyzerUrl';
import REPORT_HISTORY_TYPES from 'interface/hom... |
src/svg-icons/action/g-translate.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionGTranslate = (props) => (
<SvgIcon {...props}>
<path d="M20 5h-9.12L10 2H4c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h7l1 3h8c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zM7.17 14.59c-2.25 0-4.09-1.83-4.09-4.09s1.83-4.09 4.09-4... |
src/js/components/n-text-area.js | bradwoo8621/parrot2 | import React from 'react'
import ReactDOM from 'react-dom'
import jQuery from 'jquery'
import classnames from 'classnames'
let $ = jQuery;
import {Envs} from '../envs'
import {NComponent} from './n-component'
class NTextArea extends NComponent {
// lifecycle
postDidUpdate() {
if (this.getComponentText() != this.ge... |
app/scripts/Widget/plugins/DraftWidget/_DraftWidget.js | igr-santos/hub-client | import React from 'react'
import * as WidgetComponents from './'
const DraftWidget = ({ widget, setWidget }) => {
// Remove draft to simulate render menu
const components = Object.assign({}, WidgetComponents)
delete components['draft']
return (
<div className="draft-widget widget border center p2">
... |
modern/src/App.js | tananaev/traccar-web | import React from 'react';
import { ThemeProvider } from '@material-ui/core/styles';
import { Switch, Route } from 'react-router-dom';
import CssBaseline from '@material-ui/core/CssBaseline';
import { useSelector } from 'react-redux';
import { LinearProgress } from '@material-ui/core';
import MainPage from './MainPage'... |
src/smif/app/test/components/ConfigForm/ModelRunConfigForm.js | nismod/smif | import React from 'react'
import {expect} from 'chai'
import {mount, shallow} from 'enzyme'
import {describe, it} from 'mocha'
import ModelRunConfigForm from '../../../src/components/ConfigForm/ModelRunConfigForm.js'
import {sos_model_run, sos_models, scenarios, narratives} from '../../helpers.js'
import {empty_objec... |
example/pages/searchbar/index.js | n7best/react-weui | import React from 'react';
import Page from '../../component/page';
import SampleData from './nameDB';
import {
//main component
SearchBar,
//for display data
Panel,
PanelHeader,
PanelBody,
PanelFooter,
MediaBox,
MediaBoxHeader,
MediaBoxBody,
MediaBoxTitle,
MediaBoxDescr... |
start.js | qiwenmin/HamExam | import React, { Component } from 'react';
import {
StyleSheet,
TouchableHighlight,
Text,
View,
Alert
} from 'react-native';
import NavigationBar from 'react-native-navbar';
import DeviceInfo from 'react-native-device-info';
import LevelStart from './levelstart';
import Libs from './libs';
import quizImgs f... |
docs/src/pages/system/typography/LetterSpacing.js | lgollut/material-ui | import React from 'react';
import Typography from '@material-ui/core/Typography';
import Box from '@material-ui/core/Box';
export default function LetterSpacing() {
return (
<Typography component="div">
<Box letterSpacing={6} m={1}>
Letter Spacing 6px.
</Box>
<Box letterSpacing={10} m={... |
app/results/Results.js | ccfcheng/recommendation-app | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { setPath } from '../appReducer';
import RefreshIndicator from 'material-ui/RefreshIndicator';
import DetailContainer from '../detail/Detail';
class ResultsContainer extends Component {
componentWillMount() {
this.props.dispa... |
main.js | Pearson-Higher-Ed/o-upcomingAssignments | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from './src/js/containers/App'
import configureStore from './src/js/stores/configureStore'
export { default } from './src/js/components/dynamicList/DynamicList';
const store = configureStore()
render(
<Pro... |
admin/client/App/shared/Popout/PopoutBody.js | naustudio/keystone | /**
* Render the body of a popout
*/
import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var PopoutBody = React.createClass({
displayName: 'PopoutBody',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
scrollable: React... |
shopping-cart-app/src/components/StoreCard/StoreCard.js | JCFlores/shoppingCart | import React from 'react';
import './StoreCard.css';
const StoreCard = props => (
<div className="card" onClick={props.onClick} data-id={props.id}>
<div className="card-header" data-id={props.id}>
<div className="card-image" data-id={props.id}>
<img className="image1" alt={props.name} src={props.image1}... |
frontend/src/idPortal/users/list/userStatusCell.js | unicef/un-partner-portal | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { withStyles } from 'material-ui/styles';
import Typography from 'material-ui/Typography';
import Grid from 'material-ui/Grid';
import SvgIcon from 'material-ui/SvgIcon';
import { TableCell } from 'material-ui/Tab... |
src/Chip.js | mattBlackDesign/react-materialize | import React from 'react';
import PropTypes from 'prop-types';
const Chip = ({ children, close }) => {
return (
<div className='chip'>
{children}
{close ? <i className='close material-icons'>close</i> : null}
</div>
);
};
Chip.propTypes = {
children: PropTypes.node,
/**
* If show a clos... |
templates/rubix/demo/src/routes/Knobs.js | jeffthemaximum/Teachers-Dont-Pay-Jeff | import React from 'react';
import {
Row,
Col,
Grid,
Panel,
PanelBody,
PanelHeader,
FormControl,
PanelContainer,
} from '@sketchpixy/rubix';
export default class Knobs extends React.Component {
componentDidMount() {
$('.dial').knob();
$('.knob').knob({
draw: function() {
// 'tro... |
app/javascript/mastodon/features/compose/components/privacy_dropdown.js | TootCat/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, defineMessages } from 'react-intl';
import IconButton from '../../../components/icon_button';
const messages = defineMessages({
public_short: { id: 'privacy.public.short', defaultMessage: 'Public' },
public_long: { id: 'privacy.pub... |
app/store/markupMiddleware.js | Aurora0001/Aether | import React from 'react';
import emoji from 'react-easy-emoji';
const twemojiImages = require.context('file!../static/72x72', true, /\.png$/);
import { NEW_PRIVMSG, NEW_SELF_PRIVMSG, NEW_ACTION } from '../actions/client.js';
export const markup = (text) => {
const splitText = text.split('\n');
let linedText = [];... |
test/fixtures/case8/input.js | kadirahq/babel-plugin-react-docgen | import React from 'react';
export const wrapComopnent = (Component) => {
const WrappedComponent = props => (
<Wrapper>
<Component/>
</Wrapper>
);
return WrappedComponent;
};
export class Wrapper extends React.Component {
render() {
const { children } = this.props;
return (
<div ... |
example/examples/FilteringExample.react.js | Neophy7e/react-bootstrap-typeahead | import React from 'react';
import {Checkbox} from 'react-bootstrap';
import {Typeahead} from '../../src/';
const options = [
'Warsaw',
'Kraków',
'Łódź',
'Wrocław',
'Poznań',
'Gdańsk',
'Szczecin',
'Bydgoszcz',
'Lublin',
'Katowice',
'Białystok',
'Gdynia',
'Częstochowa',
'Radom',
'Sosnowiec... |
app/javascript/mastodon/features/compose/components/navigation_bar.js | mosaxiv/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ActionBar from './action_bar';
import Avatar from '../../../components/avatar';
import Permalink from '../../../components/permalink';
import IconButton from '../../../components/icon_button... |
src/blocks/modulator/block.js | rsimmons/plinth | import React from 'react'
import ReactDOM from 'react-dom';
import BlockRoot from '../../components/BlockRoot';
import Knob from '../../components/Knob';
class View extends React.Component {
constructor(props) {
super(props);
}
render() {
const {offset, setOffset} = this.props;
return (
<Block... |
docs/src/examples/elements/Label/Types/LabelExampleHorizontal.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Label, List } from 'semantic-ui-react'
const LabelExampleHorizontal = () => (
<List divided selection>
<List.Item>
<Label color='red' horizontal>
Fruit
</Label>
Kumquats
</List.Item>
<List.Item>
<Label color='purple' horizontal>
C... |
src/components/FileButton.js | colouroscope/colouroscope | import React from 'react'
import classNames from 'classnames'
let FileButton = ({ onFileSelect, id, className, children }) => {
const onChange = (e) => {
const path = e.target.files[0]
onFileSelect(path)
}
return (
<div className={classNames('d-inline-block', className)}>
<label htmlFor={id} c... |
docs/app/Examples/elements/Step/index.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import Content from './Content'
import Groups from './Groups'
import States from './States'
import Types from './Types'
import Variations from './Variations'
const StepExamples = () => (
<div>
<Types />
<Groups />
<Content />
<States />
<Variations />
</div>
)
export... |
src/interface/news/Page.js | fyruna/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import articles from 'articles';
import DocumentTitle from 'interface/common/DocumentTitle';
import ArticleLoader from './ArticleLoader';
import './News.css';
class Page extends React.PureComponent {
static prop... |
modules/gui/src/app/home/body/process/recipe/remapping/remapping.js | openforis/sepal | import {Aoi} from '../aoi'
import {Map} from 'app/home/map/map'
import {compose} from 'compose'
import {getAvailableBands} from './bands'
import {getDefaultModel} from './remappingRecipe'
import {getPreSetVisualizations} from './visualizations'
import {initializeLayers} from '../recipeImageLayerSource'
import {msg} fro... |
rojak-ui-web/src/app/media/Media.js | CodeRiderz/rojak | import React from 'react'
import { connect } from 'react-redux'
import { fetchMedia } from './actions'
import Card from '../kit/Card'
import SocialMedia from '../kit/SocialMedia'
import PairingSentiments from './PairingSentiments'
import LatestNews from './LatestNews'
class Media extends React.Component {
static pro... |
src/svg-icons/av/replay.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvReplay = (props) => (
<SvgIcon {...props}>
<path d="M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"/>
</SvgIcon>
);
AvReplay = pure(AvReplay);
AvReplay... |
testdata/anothersnippetsfolder/onlyinsecondsnippetsfolder.js | findmypast-oss/scoosh | import React, { Component } from 'react';
import Relay from 'react-relay';
class <%- ComponentName %> extends Component {
constructor() {
super();
}
render() {
return (
<div></div>
);
}
}
|
react-native/local-cli/templates/HelloNavigation/views/MainNavigator.js | react-component/rn-packager | 'use strict';
/**
* This is an example React Native app demonstrates ListViews, text input and
* navigation between a few screens.
* https://github.com/facebook/react-native
*/
import React, { Component } from 'react';
import { StackNavigator } from 'react-navigation';
import HomeScreenTabNavigator from './HomeS... |
actor-apps/app-web/src/app/components/modals/invite-user/InviteByLink.react.js | ONode/actor-platform | import React from 'react';
import Modal from 'react-modal';
import addons from 'react/addons';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import { Styles, FlatButton, Snackbar } from 'material-ui';
import ReactZeroClipboard from 'react-zeroclipboard';
import { KeyCo... |
src/Navigation/Tabs/tabSix/views/TabSixNavigation.js | Ezeebube5/Nairasense | // React
import React from 'react';
// Redux
import { connect } from 'react-redux';
// Icon
import Icon from 'react-native-vector-icons/FontAwesome';
// Navigation
import { addNavigationHelpers } from 'react-navigation';
import { NavigatorTabSix } from '../navigationConfiguration';
class TabSixNavigation extends Reac... |
client/src/app/components/forms/inputs/Colorpicker.js | zraees/sms-project | import React from 'react'
import 'bootstrap-colorpicker/dist/js/bootstrap-colorpicker.js'
import './Colorpicker.css'
export default class Colorpicker extends React.Component {
componentDidMount() {
$(this.refs.input).colorpicker({});
}
render() {
return (
<input type="text" ref="input" {...this... |
docs/app/Examples/collections/Message/Variations/MessageExampleError.js | clemensw/stardust | import React from 'react'
import { Message } from 'semantic-ui-react'
const MessageExampleError = () => (
<Message
error
header='There was some errors with your submission'
list={[
'You must include both a upper and lower case letters in your password.',
'You need to select your home country.... |
public/js/components/suggestions/Suggestion.react.js | TRomesh/Coupley | import React from 'react';
import Divider from 'material-ui/lib/divider';
import Avatar from 'material-ui/lib/avatar';
import injectTapEventPlugin from 'react-tap-event-plugin';
import Paper from 'material-ui/lib/paper';
import GridList from 'material-ui/lib/grid-list/grid-list';
import GridTile from 'material-ui/lib/... |
src/GraphQLWebClientWrapper.js | tmc/graphql-web-client | import React from 'react';
import GraphQLWebClient from './GraphQLWebClient';
import ExtraHeaders from './ExtraHeaders';
var styles = {
clear: {clear: "both"}
};
export default class GraphQLWebClientWrapper extends React.Component {
constructor(props) {
super(props);
var endpoint = this.props.endpoint;... |
src/sentry/static/sentry/app/icons/icon-file-generic.js | looker/sentry | import React from 'react';
import Icon from 'react-icon-base';
function IconFileGeneric(props) {
return (
<Icon viewBox="0 0 15 15" {...props}>
<g stroke="currentColor" fill="none">
<path
d="M13.5,3.5 L13.5,12.9968907 C13.5,13.827035 12.8204455,14.5 12.0044548,14.5 L2.99554521,14.5 C2.169... |
src/core/display/App/Component/Dependencies.js | JulienPradet/pigment-store | import React from 'react'
import {Link} from 'react-router'
import * as StackedList from '../util/View/StackedList'
import * as LinkList from '../util/View/LinkList'
const makePath = (prefix, type, path) => {
return `${prefix}/${type}-${path}`
}
const stackDependencies = (dependencies = []) => {
const firstLevelS... |
src/components/ProjectMarker.js | njosieb/ecocentrixco | import React from 'react'
import { InfoWindow, Marker } from 'react-google-maps'
import { Link } from 'gatsby'
const ProjectMarker = ({ project, windowOpen, toggleWindow }) => (
<Marker position={project.position} onClick={() => toggleWindow(project.id)}>
{windowOpen && (
<InfoWindow onCloseClick={() => to... |
src/components/SimplePanelLayout/SimplePanelLayout.js | wavicles/fossasia-pslab-apps | import React from 'react';
import {
ThickBar,
LayoutWrapper,
LayoutContainer,
} from './SimplePanelLayout.styles';
const SimplePanelLayout = props => {
const { panel } = props;
return (
<LayoutContainer>
{/* <ThickBar /> */}
<LayoutWrapper>{panel}</LayoutWrapper>
</LayoutContainer>
);
... |
client/src/components/Connections/components/Statuses.js | verejnedigital/verejne.digital | // @flow
import React from 'react'
import {compose} from 'redux'
import {branch, renderNothing} from 'recompose'
import EntitySearchWrapper, {type EntitySearchProps} from '../dataWrappers/EntitySearchWrapper'
import EntityWrapper, {type EntityProps} from '../dataWrappers/EntityWrapper'
import ConnectionWrapper, {type C... |
blueocean-material-icons/src/js/components/svg-icons/editor/insert-comment.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const EditorInsertComment = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/>
</SvgIcon>
);
EditorInsertComment.displayName = 'EditorInsertC... |
actor-apps/app-web/src/app/components/modals/create-group/ContactItem.react.js | greatdinosaur/actor-platform | import React from 'react';
import AvatarItem from 'components/common/AvatarItem.react';
class ContactItem extends React.Component {
static propTypes = {
contact: React.PropTypes.object,
onToggle: React.PropTypes.func
}
constructor(props) {
super(props);
this.onToggle = this.onToggle.bind(this)... |
examples/src/components/ValuesAsNumbersField.js | iLikeKoffee/react-select | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var ValuesAsNumbersField = React.createClass({
displayName: 'ValuesAsNumbersField',
propTypes: {
label: React.PropTypes.... |
src/containers/settings/InviteScreen.js | meetfranz/franz | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { inject, observer } from 'mobx-react';
import Invite from '../../components/auth/Invite';
import ErrorBoundary from '../../components/util/ErrorBoundary';
export default @inject('stores', 'actions') @observer class InviteScreen exte... |
src/app.js | zlargon/invoice | import React from 'react';
import Drawer from 'material-ui/Drawer';
import AppBar from 'material-ui/AppBar';
import Dialog from 'material-ui/Dialog';
import Checkbox from 'material-ui/Checkbox';
import IconButton from 'material-ui/IconButton';
import RaisedButton from 'material-ui/RaisedButton';
import {List, ListItem}... |
src/svg-icons/action/label-outline.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLabelOutline = (props) => (
<SvgIcon {...props}>
<path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16zM16 17H5V7h11l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.