path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
packages/forms/src/UIForm/fields/CheckBox/SimpleCheckBox.component.js | Talend/ui | /* eslint-disable jsx-a11y/label-has-associated-control, jsx-a11y/no-autofocus */
import PropTypes from 'prop-types';
import React from 'react';
import classnames from 'classnames';
import { extractDataAttributes } from '../../utils/properties';
export default function SimpleCheckBox({
describedby,
disabled,
id,
i... |
client/acp/src/view/widget/new-award-form.js | NicolasSiver/nodebb-plugin-ns-awards | import PropTypes from 'prop-types';
import React from 'react';
import {connect} from 'react-redux';
import {
createAward,
resetNewAwardPreview,
setAwardCreationState,
setNewAwardDescription,
setNewAwardName,
setNewAwardPreview
} from '../../action/actions';
import * as Constants from '../../mod... |
client/src/components/StatusCounts/index.js | fraktio/teamdaily | import React from 'react';
import cx from 'classnames';
import colors from '../../colors';
import styles from './style.pcss';
const calculateWidth = (total, n) => {
if (total < 1) {
return 0;
}
const unit = 100 / total;
return n * unit;
};
const filterByColor = (messages, color) => messages.filter(messag... |
app/artist/containers/ArtistPage.js | Raymond-Zhu/music-video-app | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { fetchArtists, selectArtist } from '../actions';
import { connect } from 'react-redux';
import ArtistList from '../components/ArtistList';
class ArtistPage extends Component {
componentDidMount() {
this.props.fetchArtis... |
src/NavDropdown.js | victorzhang17/react-bootstrap | import React from 'react';
import Dropdown from './Dropdown';
class NavDropdown extends React.Component {
render() {
let { children, title, noCaret, ...props } = this.props;
return (
<Dropdown {...props} componentClass="li">
<Dropdown.Toggle
useAnchor
disabled={props.disab... |
lib/editor/components/question_editors/BaseQuestionEditor.js | jirokun/survey-designer-js | import React, { Component } from 'react';
import { connect } from 'react-redux';
import classNames from 'classnames';
import { Tooltip, Popover, OverlayTrigger, Button, Col, FormGroup, ControlLabel, Checkbox, FormControl } from 'react-bootstrap';
import SubItemEditor from './SubItemEditor';
import ItemEditorPart from '... |
src/js/components/networkConfiguration/RoleNetworkLine.js | knowncitizen/tripleo-ui | /**
* Copyright 2018 Red Hat Inc.
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
library/src/pivotal-ui-react/dividers/dividers.js | sjolicoeur/pivotal-ui | import React from 'react';
import PropTypes from 'prop-types';
import {mergeProps} from 'pui-react-helpers';
import 'pui-css-dividers';
export class Divider extends React.Component {
static propTypes = {
inverse: PropTypes.bool,
size: PropTypes.oneOf(['large'])
}
render() {
const {inverse, size, ...... |
src/config/config-connected/index.js | kmiracle-iscs/wca-react-poc | import React from 'react';
import { connect } from 'react-redux'
import _ from 'lodash';
const configConnected = (WrappedComponent) => {
class ConfigConnectedBase extends React.Component {
render() {
if (_.isEmpty(this.props.features)) {
return (<div></div>)
} el... |
src/components/Ace/SideBarNavList.js | nagucc/jkef-web-react | /*
使用Ace Admin Template的SideBar组件
items属性用于描述sidebar的项目数据,它是一个数组,数组的每个元素必须包括以下属性:
- title 显示的名称
- target 超链接地址
- icon 使用的图标。不包括"fa-"
- subItems 子栏目
*/
import React, { Component } from 'react';
class SideBarNavList extends Component {
static propTypes = {
items: React.PropTypes.array
};
render()... |
client/views/omnichannel/triggers/EditTriggerPageContainer.js | VoiSmart/Rocket.Chat | import { Callout } from '@rocket.chat/fuselage';
import React from 'react';
import PageSkeleton from '../../../components/PageSkeleton';
import { useTranslation } from '../../../contexts/TranslationContext';
import { AsyncStatePhase } from '../../../hooks/useAsyncState';
import { useEndpointData } from '../../../hooks... |
jenkins-design-language/src/js/components/material-ui/svg-icons/image/brightness-1.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageBrightness1 = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="12" r="10"/>
</SvgIcon>
);
ImageBrightness1.displayName = 'ImageBrightness1';
ImageBrightness1.muiName = 'SvgIcon';
export default ImageBrightness1;
|
src/components/welcome/Welcome.js | react-in-action/letters-social | import React from 'react';
/**
* Welcome component renders a welcome message, nothing else!
* @method Welcome
*/
const Welcome = () => {
return (
<div>
<div className="welcome">
<h1>Welcome!</h1>
<p>
If you're here, you're probably reading{... |
actor-apps/app-web/src/app/components/DialogSection.react.js | suxinde2009/actor-platform | import _ from 'lodash';
import React from 'react';
import { PeerTypes } from 'constants/ActorAppConstants';
import MessagesSection from 'components/dialog/MessagesSection.react';
import TypingSection from 'components/dialog/TypingSection.react';
import ComposeSection from 'components/dialog/ComposeSection.react';
i... |
docs/src/pages/layout/hidden/BreakpointDown.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import compose from 'recompose/compose';
import { withStyles } from 'material-ui/styles';
import Paper from 'material-ui/Paper';
import Hidden from 'material-ui/Hidden';
import withWidth from 'material-ui/utils/withWidth';
import Typography from 'material-u... |
Realization/frontend/czechidm-core/src/components/basic/Panel/PanelFooter.js | bcvsolutions/CzechIdMng | import React from 'react';
import classnames from 'classnames';
//
import AbstractComponent from '../AbstractComponent/AbstractComponent';
import Div from '../Div/Div';
/**
* Basic panel decorator.
*
* @author Radek Tomiška
* @since 12.0.0
*/
export default function PanelFooter(props) {
const { rendered, classN... |
app/javascript/mastodon/features/account_gallery/components/media_item.js | mosaxiv/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import Permalink from '../../../components/permalink';
import { displaySensitiveMedia } from '../../../initial_state';
export default class MediaItem extends Immut... |
src/rebind.js | antegulin/react-relay-rebind | import React from 'react';
import stateProxyFactory from './stateProxy';
const connectComponent = (mutations) => (Component) => { // eslint-disable-line
const mutationKeys = Object.keys(mutations); // Array of all mutation keys (names)
return class extends React.Component {
constructor(props) {
super(pr... |
src/svg-icons/device/battery-charging-80.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryCharging80 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V9h4.93L13 7v2h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9L11... |
src/svg-icons/content/archive.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentArchive = (props) => (
<SvgIcon {...props}>
<path d="M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.... |
docs/app/Examples/elements/Image/Variations/ImageExampleBordered.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Image } from 'semantic-ui-react'
const ImageExampleBordered = () => (
<Image src='/assets/images/wireframe/white-image.png' size='medium' bordered />
)
export default ImageExampleBordered
|
node_modules/react-router/es/withRouter.js | lujinming1/hejicaoye | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
src/components/Patterns/RightPane/Photo/PhotoComponent.js | coolshare/ReactReduxStarterKit | import React from 'react'
import "react-image-gallery/styles/css/image-gallery.css";
import ImageGallery from 'react-image-gallery';
/**
*
*/
export default class PhotoComponent extends React.Component{
/**
* render
* @return {ReactElement} markup
*/
render(){
if (this.props===undefined || this.pro... |
src/main/js/page/UserProfile.js | MannanM/corporate-game-share | import React, { Component } from 'react';
import { PageHeader, Image, Col, Thumbnail, Button } from 'react-bootstrap';
import { GetLibrary, GetUser } from '../Client';
import GameTile from './GameTile';
class UserProfile extends Component {
componentDidMount() {
const { id } = this.props.match.params;
GetLi... |
docs/src/app/components/pages/components/Stepper/CustomIcon.js | mmrtnz/material-ui | import React from 'react';
import {
Step,
Stepper,
StepLabel,
} from 'material-ui/Stepper';
import WarningIcon from 'material-ui/svg-icons/alert/warning';
import {red500} from 'material-ui/styles/colors';
/**
* Custom icons can be used to create different visual states.
*/
class CustomIcon extends React.Compon... |
src/native/me/MePage.js | chad099/react-native-boilerplate | // @flow
import type { State, User } from '../../common/types';
import React from 'react';
import SignOut from '../auth/SignOut';
import getUserPhotoUrl from '../../common/users/getUserPhotoUrl';
import { Box, Text } from '../../common/components';
import { Image } from 'react-native';
import { Redirect } from 'react-r... |
src/scripts/options.js | arkon/ColourNTP | import React from 'react';
import { render } from 'react-dom';
import Checkbox from './components/options/Checkbox';
import Colour from './components/options/Colour';
import DeleteList from './components/options/DeleteList';
import Dropdown from './components/options/Dropdown';
import FontPreview from './components/op... |
js/components/splashscreen/index.js | chris50bn/Between | 'use strict';
import React, { Component } from 'react';
import { Image, View } from 'react-native';
import { connect } from 'react-redux';
export default class SplashPage extends Component {
componentWillMount () {
var navigator = this.props.navigator;
setTimeout (() => {
navigator.re... |
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-forms-textarea.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin} from './../common/common.js';
import TextInputMixin from './text-input-mixin.js';
import './textarea.less';
export default React.createClass({
mixins: [
BaseMixin,
ElementaryMixin,
TextInputMixin
],
statics: {
tagName: 'UU5.Forms.T... |
1m_Redux_Lynda/Ex_Files_Learning_Redux/Exercise Files/Ch05/05_01/start/src/index.js | yevheniyc/C | import C from './constants'
import React from 'react'
import { render } from 'react-dom'
import routes from './routes'
import sampleData from './initialState'
const initialState = (localStorage["redux-store"]) ?
JSON.parse(localStorage["redux-store"]) :
sampleData
const saveState = () =>
localStorage["re... |
classic/src/scenes/wbfa/generated/FARBellSlash.free.js | wavebox/waveboxapp | import React from 'react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faBellSlash } from '@fortawesome/free-regular-svg-icons/faBellSlash'
export default class FARBellSlash extends React.Component {
render () {
return (<FontAwesomeIcon {...this.props} icon={faBellSlash} />)
}
}
|
test-setup/.jestrc.js | RusinovAnton/react-select3 | // Make Enzyme functions available in all test files without importing
import React from 'react';
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import sinon from 'sinon';
Enzyme.configure({ adapter: new Adapter() });
global.React = React;
global.mount = Enzyme.mount;
global.render = Enz... |
index.android.js | strawferry/Onion-math-demo | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
'use strict';
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Navigator,
TextInput,
TouchableHighlight,
} from 'react-native';
import QuestionIndex from "./QuestionIndex.js";
... |
react-vr/Asteriods/v2/components/Asteroid01.js | nikgraf/webvr-experiments | import React from 'react';
import {Animated, asset, Mesh, View} from 'react-vr';
import Easing from 'Easing';
export default class Asteroid01 extends React.Component {
constructor(props) {
super(props);
this.state = {
rotationX: new Animated.Value(0),
rotationY: new Animated.Value(0),
};
}
... |
actor-apps/app-web/src/app/components/sidebar/RecentSectionItem.react.js | greatdinosaur/actor-platform | import React from 'react';
import classNames from 'classnames';
import DialogActionCreators from 'actions/DialogActionCreators';
import DialogStore from 'stores/DialogStore';
import AvatarItem from 'components/common/AvatarItem.react';
class RecentSectionItem extends React.Component {
static propTypes = {
di... |
src/components/utils/Error.js | entria/entria-components | import React from 'react';
const Error = ({ error }) =>
<div style={styles().wrapper}>
<h1>Error</h1>
<p>{error.message}</p>
</div>;
const styles = () => ({
wrapper: {
display: 'flex',
flexDirection: 'column',
width: '100%',
height: '100%',
alignItems: 'center',
justifyContent: '... |
modules/gui/src/app/home/map/featureLayers.js | openforis/sepal | import {AoiLayer} from 'app/home/map/aoiLayer'
import {LabelsLayer} from 'app/home/map/labelsLayer'
import {LegendLayer} from './legendLayer'
import {PaletteLayer} from './paletteLayer'
import {SceneAreasLayer} from 'app/home/body/process/recipe/opticalMosaic/sceneAreasLayer'
import {ValuesLayer} from './valuesLayer'
i... |
src/svg-icons/av/replay.js | owencm/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... |
Libraries/Components/Keyboard/Keyboard.js | tsjing/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... |
app/javascript/mastodon/features/compose/components/search.js | cybrespace/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Overlay from 'react-overlays/lib/Overlay';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import { searchEnabled } from '../... |
docs/app/Examples/elements/List/Content/index.js | clemensw/stardust | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const ListContent = () => (
<ExampleSection title='Content'>
<ComponentExample
title='Item'
description='A list item... |
packages/veritone-react-common/src/components/HorizontalScroll/story.js | veritone/veritone-sdk | import React from 'react';
import { storiesOf } from '@storybook/react';
import HorizontalScroll from './';
const HorizontalContent = () => {
return (
<div
style={{
width: '500px',
height: '45px',
background: 'linear-gradient(to right, blue, green)'
}}
>
content goe... |
src/components/signup-form/signup-form-sticky.js | mozilla/advocacy.mozilla.org | import React from 'react';
var Signup = React.createClass({
contextTypes: {
intl: React.PropTypes.object
},
getInitialState: function() {
var previousViewportTop = 0;
var navHeight = 0;
if (typeof window === 'object') {
previousViewportTop = window.scrollY + navHeight;
}
return {
... |
src/components/Story/StoryAvatar.js | TheLADbibleGroup/hackathon | import React from 'react';
import cx from 'classnames';
import './StoryAvatar.scss';
import emptyAvatar from './../../avatar.png';
export const StoryAvatar = (props) => (
<img className={cx('story-item-avatar media-object', props.avatarType)} src={props.avatar} />
);
StoryAvatar.propTypes = {
avatar: React.Pr... |
src/components/PhotoSection/Masonry/MasonryColumn.js | jonahjoughin/blog.jough.in | import React from 'react';
import styled from 'styled-components';
const MasonryColumn = ({children,height}) => (
<Root height={height}>
{children}
</Root>
);
const Root = styled.div`
flex: 1;
`;
export default MasonryColumn;
|
app/containers/HomePage/ProviderToggle.js | andyzeli/Bil | import React from 'react'
import List from './List';
import ListItem from './ListItem';
import CheckButton from 'components/CheckButton';
var chooseColor = function(provObj) {
if (provObj.get('display')) {
return provObj.get('hex')
} else return 'white'
}
var chooseTextColor = function(provObj) {
if(provObj... |
src/svg-icons/image/landscape.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLandscape = (props) => (
<SvgIcon {...props}>
<path d="M14 6l-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22L14 6z"/>
</SvgIcon>
);
ImageLandscape = pure(ImageLandscape);
ImageLandscape.displayName... |
src/routes/AccessLog/components/AccessLog.js | altarit/cloudpolis-react | import React from 'react'
import PropTypes from 'prop-types'
import './AccessLog.scss'
import Input from '../../../components/Input'
import AccessFilterForm from './AccessFilterForm'
import {changePage} from "../modules/accessLog"
export class AccessLog extends React.Component {
static propTypes = {
// userName... |
src/components/HornButton.js | scaulfield01/HallHorn | import React, { Component } from 'react';
import PropTypes from 'prop-types';
class HornButton extends Component {
render() {
return (
<div className="HornButton" onClick={this.props.handleHornClick}>
<img src="demostration.svg" alt="Home" />
</div>
)
}
}
HornButton.propTypes = {
handle... |
modules/contacts/client/components/ContactListPresentational.js | Trustroots/trustroots | import classnames from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import '@/config/client/i18n';
import { useTranslation } from 'react-i18next';
import Contact from './Contact';
export default function ContactListPresentational({
selfId,
contacts,
filter,
onContactRemoved,
o... |
app/containers/App/components/VacantLot.js | nikb747/threejs-react-proto | // @flow
import React from 'react'
import * as THREE from 'three'
import {GLOBAL_X_OFFSET, GLOBAL_Y_OFFSET, UNIT_SCALE} from '../constants'
const VacantLot = (props: {x: number, y: number, color: number}) => {
let actualSize = UNIT_SCALE;
let actualHeight = UNIT_SCALE * 0.2;
let localOffset = (actualSize - UNIT_... |
app/components/IconButton/index.js | kylec296/scalable-react | /**
*
* IconButton
*
*/
import React from 'react';
import FontAwesome from 'react-fontawesome';
import classNames from 'classnames';
import styles from './styles.css';
function IconButton({ onClick, icon, iconClass, buttonClass }) {
return (
<div className={classNames(styles.iconButton, buttonClass)}
o... |
test/integration/image-component/default/pages/style-inheritance.js | JeromeFitz/next.js | import React from 'react'
import Image from 'next/image'
import style from '../style.module.css'
const Page = () => {
return (
<div id="main-container" className={style.mainContainer}>
<h1>Image Style Inheritance</h1>
<Image
id="img-fixed"
layout="fixed"
src="/test.jpg"
... |
src/pages/index.js | srsheldon/scrootinEyes | import React from 'react'
import Link from 'gatsby-link'
const IndexPage = () => (
<div className="container">
<h2>Work in Progress</h2>
<p>Welcome to the placeholder site for scrootinEyes.</p>
<p>More will be added in parallel with development, thanks!</p>
</div>
)
export default IndexPage
|
local-cli/generator/templates/index.android.js | cosmith/react-native | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class <%= name %> extends Component {
render() {
return (
<View style={styles.contain... |
client/components/LegacyTabRedirect.js | dapetcu21/ARGOTabs | import React from 'react'
import { Redirect } from 'react-router-dom'
export default function LegacyTabRedirect ({ children, location }) {
const matches = location.hash.match(/^#\/url\/([^#]+)(\/#(\/.*))?$/)
if (matches) {
const url = decodeURIComponent(matches[1])
.replace('http://argotabdbro.herokuapp.... |
src/Parser/HolyPriest/Modules/Spells/PrayerOfMending.js | mwwscott0/WoWAnalyzer | import React from 'react';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage, formatNumber } from 'common/format';
// dependencies
import Combatants from 'Parser/Core/Modules/Combatants';
import SPELLS from 'common/SPELLS';
import Mo... |
stories/index.js | humaniq/humaniq-pwa-website | import React from 'react'
import 'common/style.scss'
import './storyStyles.scss'
import { storiesOf, addDecorator } from '@storybook/react'
import { action } from '@storybook/addon-actions'
// import {linkTo} from '@storybook/addon-links';
// import { withKnobs,
// text,
// // boolean,
// // number
// } from '@... |
tp-3/juan-pablo-gonzalez/src/shared/components/sovos-dynamic-form/components/formField/components/formTextField/FormTextField.js | jpgonzalezquinteros/sovos-reactivo-2017 | import React from 'react';
import PropTypes from 'prop-types';
import { TextField } from 'fusionui-shared-components-react';
import '../../FormField.scss';
const FormTextField = ({ name, value, label, placeholder, fchar, onChange, onBlur }) => (
<div className="form-field__wrapper">
<label className="form-field_... |
app/components/template/Title.js | jendela/jendela | import React from 'react'
class Title extends React.Component {
render() {
const styles = {
info: {
marginRight: "0.3em",
marginTop: "-5px",
height: "1em",
width: "1em"
},
title: {
fontWeight... |
src/svg-icons/action/redeem.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRedeem = (props) => (
<SvgIcon {...props}>
<path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.1... |
test/test-cases/react-css-modules/app/src/App.stories.js | seek-oss/sku | import React from 'react';
import App from './App';
export default {
title: 'App',
component: App,
argTypes: {
text: {
label: 'Text',
type: { name: 'string', required: false },
defaultValue: 'Storybook render',
},
},
};
export const Default = ({ text }) => <App>{text}</App>;
|
src/svg-icons/action/event-seat.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionEventSeat = (props) => (
<SvgIcon {...props}>
<path d="M4 18v3h3v-3h10v3h3v-6H4zm15-8h3v3h-3zM2 10h3v3H2zm15 3H7V5c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2v8z"/>
</SvgIcon>
);
ActionEventSeat = pure(ActionEventSe... |
src/svg-icons/alert/add-alert.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AlertAddAlert = (props) => (
<SvgIcon {...props}>
<path d="M10.01 21.01c0 1.1.89 1.99 1.99 1.99s1.99-.89 1.99-1.99h-3.98zm8.87-4.19V11c0-3.25-2.25-5.97-5.29-6.69v-.72C13.59 2.71 12.88 2 12 2s-1.59.71-1.59 1.59v... |
webapp/app/components/Stats/StatisticFilter/index.js | EIP-SAM/SAM-Solution-Node-js | import React from 'react';
import { ButtonToolbar } from 'react-bootstrap';
import LinkContainerButton from 'components/Button';
import styles from 'components/Stats/StatisticFilter/styles.css';
/* eslint-disable react/prefer-stateless-function */
export default class StatisticFilterComponent extends React.Component {... |
imports/ui/pages/Index.js | KyneSilverhide/team-manager | import React from 'react';
import { Row, Col } from 'react-bootstrap';
import RunsOverview from '../containers/runs/RunsOverview.js';
const Index = () => (
<div className="Runs">
<Row>
<Col xs={ 12 }>
<RunsOverview />
</Col>
</Row>
</div>
);
export default Index;
|
src/components/DeveloperMenu.android.js | AcademyPgh/Y1S2-ReplayFX-Schedule | import React from 'react';
import * as snapshot from '../utils/snapshot';
import {
View,
Text,
TouchableOpacity,
StyleSheet
} from 'react-native';
/**
* Simple developer menu, which allows e.g. to clear the app state.
* It can be accessed through a tiny button in the bottom right corner of the screen.
* ON... |
app/containers/tutorial/step-7.js | DeividasK/tgoals | import React from 'react'
import SimpleList from 'components/lists/simple'
import { updateStep, updateHeading, updateActions } from '../../actions/TutorialActions'
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl'
const content = defineMessages({
title: { id: 'app.tutorial.step7.title', defaul... |
src/interface/common/Toggleable.js | sMteX/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
class Toggleable extends React.PureComponent {
static propTypes = {
toggledvalue: PropTypes.node.isRequired,
value: PropTypes.node.isRequired,
style: PropTypes.object,
};
constructor() {
super();
this.state = {
toggled: fal... |
src/js/components/icons/base/Baby.js | kylebyerly-hp/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... |
js/jqwidgets/demos/react/app/chart/liveupdateseverysecond/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxChart from '../../../jqwidgets-react/react_jqxchart.js';
import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js';
class App extends React.Component {
componentDidMount() {
this.refs.dropDownColors.on('change', ... |
src/icons/AndroidUpload.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class AndroidUpload extends React.Component {
render() {
if(this.props.bare) {
return <g>
<path d="M403.002,217.001C388.998,148.002,328.998,96,256,96c-57.998,0-107.998,32.998-132.998,81.001
C63.002,183.002,16,233.... |
fields/types/password/PasswordColumn.js | jacargentina/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var PasswordColumn = React.createClass({
displayName: 'PasswordColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue... |
src/chip.js | joxoo/react-material | import React from 'react';
import PropTypes from 'prop-types';
import { getClassesStatic } from './addons/get-classes';
import FontIcon from './font-icon';
import Avatar from './avatar';
const Chip = (props) => {
const { icon, avatar, label, onClose, ...others } = props;
return (
<div {...others} clas... |
app/javascript/mastodon/features/reblogs/index.js | pso2club/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { fetchReblogs ... |
app/jsx/assignments/ModerationApp.js | venturehive/canvas-lms | /*
* Copyright (C) 2015 - 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... |
demo/shared/components/CodeEditor.js | redux-autoform/redux-autoform-material-ui | import React, { Component } from 'react';
import AceEditor from 'react-ace';
import 'brace/mode/jsx';
import 'brace/theme/github.js';
class CodeEditor extends Component {
render() {
let { value, name, readOnly, onChange, mode, width, height } = this.props;
mode = mode || 'jsx';
width = wi... |
src/Parser/ElementalShaman/Modules/ShamanCore/FlameShock.js | mwwscott0/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import Module from 'Parser/Core/Module';
import Enemies from 'Parser/Core/Modules/Enemies';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
cl... |
opentech/static_src/src/app/src/components/EmptyPanel/index.js | OpenTechFund/WebApp | import React from 'react'
import PropTypes from 'prop-types';
import NoteIcon from 'images/note.svg';
export default class EmptyPanel extends React.Component {
static propTypes = {
column: PropTypes.string,
}
render() {
const { column } = this.props;
return (
<div cla... |
src/pages/about.js | fmakdemir/react-boilerplate | import React from 'react';
import RefreshIndicator from 'material-ui/RefreshIndicator';
class About extends React.Component {
render() {
return (
<div>
<RefreshIndicator
size={50}
left={70}
top={0}
loadingColor="#FF9800"
status="loading"
style={{display: 'inline-block', position... |
src/svg-icons/editor/format-italic.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatItalic = (props) => (
<SvgIcon {...props}>
<path d="M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"/>
</SvgIcon>
);
EditorFormatItalic = pure(EditorFormatItalic);
EditorFormatItalic.displayName ... |
App/Platform/StatusBar.ios.js | taskrabbit/ReactNativeSampleApp | import React from 'react';
import {
StatusBar
} from 'react-native';
var _StatusBar = {
setNetworkActive: function(active) {
StatusBar.setNetworkActivityIndicatorVisible(active);
},
setHidden: function(hidden) {
StatusBar.setHidden(hidden);
}
};
export default _StatusBar;
|
src/js/components/deployments/deployment-report/rolloutschedule.js | michaelatmender/gui | import React from 'react';
import pluralize from 'pluralize';
import moment from 'moment';
import momentDurationFormatSetup from 'moment-duration-format';
import { Chip } from '@mui/material';
import { useTheme } from '@mui/material/styles';
import { ArrowForward } from '@mui/icons-material';
import { formatTime, get... |
packages/demos/forms-demo/src/components/Menu/index.js | yusufsafak/cerebral | import React from 'react'
import { css } from 'aphrodite'
import { connect } from 'cerebral/react'
import { state } from 'cerebral/tags'
import MenuItem from './MenuItem'
import SettingsCheckbox from './SettingsCheckbox'
import styles from './styles'
const types = [{ name: 'Simple', url: '#/simple' }]
export default ... |
src/icons/SwapVertIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class SwapVertIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M32 34.02V20h-4v14.02h-6L30 42l8-7.98h-6zM18 6l-8 7.98h6V28h4V13.98h6L18 6z"/></svg>;}
}; |
fields/components/columns/IdColumn.js | tony2cssc/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue';
var IdColumn = React.createClass({
displayName: 'IdColumn',
propTypes: {
col: React.PropTypes.object,
data... |
app/components/Navbar.js | billsaysthis/fhd-events | import React from 'react';
import {Link} from 'react-router';
import NavbarStore from '../stores/NavbarStore';
import NavbarActions from '../actions/NavbarActions';
class Navbar extends React.Component {
constructor(props) {
super(props);
this.state = NavbarStore.getState();
this.onChange = this.onChange... |
app/assets/scripts/components/modal-vote.js | openaq/openaq.org | 'use strict';
import React from 'react';
import { PropTypes as T } from 'prop-types';
import c from 'classnames';
import OpenAQ from 'openaq-design-system';
const { Modal, ModalHeader, ModalBody } = OpenAQ.Modal;
import createReactClass from 'create-react-class';
// TODO: it looks like this component isn't used anywhe... |
src/components/StepChain/StepChain.js | InsideSalesOfficial/insidesales-components | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import _ from 'lodash';
import { colors, typography, renderThemeIfPresentOrDefault } from '../styles';
import Icons from '../icons';
const StepChainWrapper = styled.div`
position: relative;
display: grid;
grid... |
actor-apps/app-web/src/app/components/common/Favicon.react.js | wangkang0627/actor-platform | import React from 'react';
export default class Fav extends React.Component {
static propTypes = {
path: React.PropTypes.string
}
constructor(props) {
super(props);
//// Create link element and it's attributes
//let favicon = document.createElement('link');
//let rel = document.createAttrib... |
static-src/src/js/app.js | chrisbay/library.kdhx.org | import React from 'react';
import ReactDOM from 'react-dom';
import AlbumStar from './AlbumStar';
import AlbumPrint from './AlbumPrint';
import {AlbumLabel} from './AlbumLabel';
import {AlbumLabelSheet} from './AlbumLabel';
$(".album-star-control").each(function(){
let isStarred = $(this).attr("data-starred") == "tr... |
docs/src/app/components/pages/components/Drawer/Page.js | nathanmarks/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import drawerReadmeText from './README';
import DrawerSimpleExample from './Exam... |
webpack/scenes/RedHatRepositories/components/SearchBar.js | pmoravec/katello | /* eslint-disable import/no-extraneous-dependencies */
import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { Form, FormGroup } from 'react-bootstrap';
import { translate as __ } from 'foremanReact/common/I18n';
import { selectOrganizationProducts... |
src/plugins/local/components/RowContainer.js | joellanciaux/Griddle | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from '../../../utils/griddleConnect';
import compose from 'recompose/compose';
import mapProps from 'recompose/mapProps';
import getContext from 'recompose/getContext';
import {
columnIdsSelector,
rowDataSelector,
rowPropertiesSele... |
src/main.js | Dylan1312/pool-elo | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import AppContainer from './containers/AppContainer'
// ========================================================
// Store Instantiation
// ========================================================
const initialState... |
app/javascript/mastodon/features/domain_blocks/index.js | res-ac/mstdn.res.ac | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import LoadingIndicator from '../../components/loading_indicator';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../compo... |
app/javascript/mastodon/features/notifications/index.js | mstdn-jp/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import { expandNotifications, scrollTopNotifications ... |
imports/api/genders/genders.js | howlround/worldtheatremap | // Meteor
import { TAPi18n } from 'meteor/tap:i18n';
// Utilities
import classnames from 'classnames';
import React from 'react';
import ReactSelect from 'react-select';
import t from 'tcomb-form';
import { FormattedMessage } from 'react-intl';
// Components
import Checkboxes from '../../ui/components/Checkboxes.jsx'... |
tests/react/createElement_string.js | ylu1317/flow | // @flow
import React from 'react';
class Bar extends React.Component<{}> {}
class Foo extends React.Component<{}> {
render() {
const Cmp = Math.random() < 0.5 ? 'div' : Bar;
return (<Cmp/>);
}
}
|
Skins/VetoccitanT3/ReactSrc/node_modules/react-redux/lib/hooks/useStore.js | ENG-SYSTEMS/Kob-Eye | "use strict";
exports.__esModule = true;
exports.createStoreHook = createStoreHook;
exports.useStore = void 0;
var _react = require("react");
var _Context = require("../components/Context");
var _useReduxContext2 = require("./useReduxContext");
/**
* Hook factory, which creates a `useStore` hook bound to a given ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.