path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/js/components/Box/stories/Animation.js | HewlettPackard/grommet | import React from 'react';
import { Grommet, Box, Grid } from 'grommet';
import { grommet } from '../../../themes';
export const Animation = () => (
<Grommet theme={grommet}>
<Box pad="medium">
<Grid columns="small" gap="medium">
{[
'fadeIn',
'fadeOut',
'jiggle',
... |
pootle/static/js/shared/mixins/FormValidationMixin.js | r-o-b-b-i-e/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react'; // eslint-disable-line no-unus... |
node_modules/react-bootstrap/src/NavItem.js | gitoneman/react-home | import React from 'react';
import classSet from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const NavItem = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
onSelect: React.PropTypes.func,
active: React.PropTypes.bool,
disabled: React.PropTypes.bool,
href: React.PropType... |
app/containers/Notifications/sagas/utils.js | acebusters/ab-web | import React from 'react';
import { delay } from 'redux-saga';
import { put, take, race } from 'redux-saga/effects';
import { CONTRACT_TX_SENDED, CONTRACT_TX_MINED, CONTRACT_TX_FAILED, CONTRACT_TX_NOT_EXISTS } from '../../AccountProvider/actions';
import { notifyAdd, notifyDelete, notifyRemoving } from '../actions';
... |
app/javascript/mastodon/features/follow_requests/components/account_authorize.js | 5thfloor/ichiji-social | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Permalink from '../../../components/permalink';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import IconButton from '../../../... |
examples/react-transform-boilerplate/src/Content.js | broucz/react-inline-grid | import React, { Component } from 'react';
import { Row, Cell } from 'react-inline-grid';
import Box from './Box';
const gray = '#bdbdbd';
const primary = '#4A75BD';
export default class Content extends Component {
render() {
return (
<Row>
<Cell is="3 tablet-4 phone-4"><Box color={gray} size="big"... |
packages/wix-style-react/src/Slider/test/Slider.e2eStory.js | wix/wix-style-react | /* eslint-disable react/prop-types */
import React from 'react';
import { storiesOf } from '@storybook/react';
import { getTestStoryKind } from '../../../stories/storiesHierarchy';
import { storySettings, testStories } from '../docs/storySettings';
import { Layout, Cell, Slider } from 'wix-style-react';
class Contro... |
src/containers/unit/ModeLine/TopBar/DesktopView.js | mydearxym/mastani | import React from 'react'
import { VIEW, SIZE } from '@/constant'
import TabBar from '@/widgets/TabBar'
import {
Wrapper,
InnerWrapper,
TabsWrapper,
} from '../styles/top_bar/desktop_view'
import { tabOnChange } from '../logic'
const DesktopView = ({ visible, viewing, leftOffset, hasNoBottomBorder }) => {
c... |
src/svg-icons/hardware/security.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSecurity = (props) => (
<SvgIcon {...props}>
<path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h7c-.53 4.12-3.28 7.79-7 8.94V12H5V6.3l7-3.11v8.8z"/>
</SvgIcon>
);
Hardwa... |
material-ui/src/cookbook/1-grid/UnderstandingBreakpoints.js | Muzietto/react-playground | import React from 'react';
import { withStyles } from '@material-ui/core/styles';
import Paper from '@material-ui/core/Paper';
import Grid from '@material-ui/core/Grid';
const UnderstandingBreakpoints = withStyles(styles)(({ classes }) => (
<div className={classes.root}>
<Grid container spacing={4}>
<Grid ... |
src/NavBar/NavBar.js | react-fabric/react-fabric | import React from 'react'
import cx from 'classnames'
import Icon from '../Icon'
import NavBarItem from './NavBarItem.js'
import NavBarLink from './NavBarLink.js'
import NavBarTitle from './NavBarTitle.js'
import fabricComponent, { isFabricComponent } from '../fabricComponent'
import style from './NavBar.scss'
cons... |
src/components/DisplayFactionView.js | KtuluTeam/Ktulu | import React from 'react'
import {
Text,
View
} from 'react-native'
import * as cards from '../cards'
import { ReadLoud, ManitouInfo } from './TextViews'
import { NextFooter } from './Buttons'
export const DisplayFactionView = ({instruction, onMenu, statueHolder, onSubmit, who}) => {
return (
<View>
<... |
src/Options.js | sean-adams/dataslayer | /* global chrome */
import React, { Component } from 'react';
import PropTypes from 'prop-types'
import { optionMap } from './optionMap';
import { isChrome, isFirefox } from './helpers';
class Options extends Component {
constructor(props) {
super(props);
let version = '1.5.1';
if (typeof chrome !== 'und... |
04/js/components/CommentForm.js | arcthur/react-book-examples | import React, { Component } from 'react';
import CommentActions from '../actions/CommentActions';
import { dispatch } from '../dispatcher/AppDispatcher';
class CommentForm extends Component {
constructor(props) {
super(props);
this.state = {
value: '',
};
this.handleChange = this.handleChange... |
src/projects/taxonomy/index.js | HelloQingGuo/HelloQingGuo.github.io | import React, { Component } from 'react';
import { links } from '../../widgets/constants/links';
import Detail from '../../widgets/detail';
class Taxonomy extends Component {
render() {
return (
<Detail projectDetail={links.find(link => link.name.toLowerCase() === 'taxonomy gui')} />
);
}
}
export d... |
src/routes/notFound/NotFound.js | nicolascine/site | /**
* 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-... |
modules/ScrollManagementMixin.js | flocks/react-router | import React from 'react';
import { canUseDOM, setWindowScrollPosition } from './DOMUtils';
import NavigationTypes from './NavigationTypes';
var { func } = React.PropTypes;
function getCommonAncestors(branch, otherBranch) {
return branch.filter(route => otherBranch.indexOf(route) !== -1);
}
function shouldUpdateSc... |
chatroom.js | schneidmaster/action-cable-react-example-client | import { CableMixin, ChannelMixin } from 'action-cable-react';
import React from 'react';
module.exports = React.createClass({
mixins: [CableMixin(React), ChannelMixin('ChatChannel')],
getInitialState() {
return {
messages: []
}
},
handleConnected() {
console.log('Connected!')
},
handl... |
ui/src/index.js | alephdata/aleph | // import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import App from 'app/App';
ReactDOM.render(
React.createElement(App),
document.getElementById('root'),
);
|
src/components/CharacterList/index.js | searsaw/optimizing-react | import React from 'react';
import Character from '../Character';
import styles from './styles.css';
const getStyles = (color, index) => {
if (index % 3 === 0) {
return { backgroundColor: color };
}
return { backgroundColor: '' };
};
class CharacterList extends React.Component {
constructor(props) {
s... |
src/js/components/icons/base/FormUp.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/lib/gui/components/StateFilePicker/StateFilePicker.js | xclix/chan | import React from 'react';
import PropTypes from 'prop-types';
export default class StateFilePicker extends React.Component {
constructor(props) {
super(props);
this.handleChange = this.handleChange.bind(this);
}
handleChange(e) {
if (e.target.files.length) {
this.props.onFileChange(e.target.f... |
app/javascript/mastodon/features/keyboard_shortcuts/index.js | theoria24/mastodon | import React from 'react';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../components/column_back_button_slim';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-co... |
website/src/AppFrame.js | Steviey/win-react-navigation | import React from 'react';
import Link from './Link';
import Footer from './Footer';
import {
addNavigationHelpers,
} from 'react-navigation';
const NavigationLinks = ({navigation, className, reverse}) => {
let links = [
...navigation.state.routes.map((route, i) => {
if (route.routeName === 'Home' || ro... |
lib/client/js/components/apps/app-card.js | Bornholm/yasp | /* jshint esnext: true, node: true */
'use strict';
import moment from 'moment';
import React from 'react';
import { translate } from 'react-i18next';
class AppCard extends React.Component {
constructor() {
super();
this.state = {};
this.handleStopClick = this.handleStopClick.bind(this);
this.handl... |
src/components/PlannerHeader/index.js | instructure/canvas-planner | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
pages/api/grid.js | AndriusBil/material-ui | // @flow
import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from './grid.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default withRoot(Page);
|
src/ui/components/containers/HomeContainer.js | Anup-Allamsetty/pure | /* @flow */
import React from 'react';
import Connect from '../../../modules/store/Connect';
import Home from '../views/Home';
const mapSubscriptionToProps = {
initialURL: {
key: {
type: 'state',
path: 'initialURL',
},
},
};
const HomeContainer = (props: any) => (
<Connect
mapSubscriptionToProps={mapS... |
src/ReduxSweetAlert.js | chentsulin/react-redux-sweetalert | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import SweetAlert from 'sweetalert-react';
const mapStateToProps = state => ({
sweetalert: typeof state.toJS === 'function' ? state.toJS().sweetalert : state.sweetalert,
});
class ReduxSweetAlert ext... |
src/svg-icons/social/plus-one.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPlusOne = (props) => (
<SvgIcon {...props}>
<path d="M10 8H8v4H4v2h4v4h2v-4h4v-2h-4zm4.5-1.92V7.9l2.5-.5V18h2V5z"/>
</SvgIcon>
);
SocialPlusOne = pure(SocialPlusOne);
SocialPlusOne.displayName = 'Social... |
src/components/Card/index.js | calpa/blog | import React from 'react';
import { Link } from 'gatsby';
import PropTypes from 'prop-types';
import Tag from '../Tag';
import { parseImgur } from '../../api/images';
import './index.scss';
const imageStyle = (headerImage, color) => ({
backgroundColor: `#${color}`,
backgroundImage: ` url(${parseImgur(headerImag... |
javascript/components/date-input.js | kdoran/moriana-react | import React from 'react'
import h from 'utils/helpers'
import StaticInput from 'components/static-input'
import {dateIsValid} from 'utils/validation'
import {getISODateFromInput} from 'utils/input-transforms'
export default class DateInput extends React.Component {
state = { showEdit: true, inputValue: '', error: ... |
src/scripts/globals.js | mikah1337/null-terminator | import React from 'react';
// ============ VARIABLES ============ //
var RGB = {R: 0, B: 0, G: 0};
var prev_option = 0; // Temp variable that holds a prev value
// ============ HELPER FUNCTIONS ============ //
export var changeBrightness = (hex, percent, opacity = 1) => {
var isDarkness = percent < 0; ... |
src/components/list/ListPageContainer.react.js | phuoctuong285/smartMeter_v1 | import React from 'react'
import {Page,List,ListHeader,Toolbar,ListItem,BackButton,Row,Col,Button,Input,AlertDialog} from 'react-onsenui'
import {notification} from 'onsenui'
import autoBind from 'react-autobind'
import ListPage from './ListPage.react.js'
import {connect} from 'react-redux'
import ListAPI from '../../a... |
src/Provider.js | queicherius/react-globe | const debug = require('debug')('react-globe:Provider')
import React from 'react'
import i18next from 'i18next'
import {I18nextProvider} from 'react-i18next'
import {IntlProvider, addLocaleData} from 'react-intl'
// Provider component that gives context to the lower level components
class Provider extends React.Compone... |
client/src/app/components/common/AlertMessage.js | zraees/sms-project | import React from 'react'
import classnames from 'classnames'
const AlertMessage = (props) => {
return(
<div className={classnames(['alert fade in', props.icon])}>
<button className="close" data-dismiss="alert">
×
</button>
<i className={classnames(['fa-... |
admin/client/App/screens/List/components/ItemsTable/ItemsTableDragDrop.js | dryna/keystone-twoje-urodziny | import React from 'react';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd-html5-backend';
import { Sortable } from './ItemsTableRow';
import DropZone from './ItemsTableDragDropZone';
var ItemsTableDragDrop = React.createClass({
displayName: 'ItemsTableDragDrop',
propTypes: {
colum... |
01_webstack/03Wk02/conFusion_Gulp/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | allenmodroid/webstack | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
src/components/submitpost/SubmitPost.js | expressmatch/expressmatch | import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import * as actions from '../../actions/postActions';
import PostForm from "./PostForm";
class SubmitPost extends React.Component {
constructor(props){
super(props);
... |
src/js/components/buttons/operation-button/operation-button.js | ucev/blog | import React from 'react'
import './operation-button.style.scss'
export default ({
type = '',
onClick = () => {},
title = '',
id = '',
dataType = '',
style = {},
}) => {
let className = 'operation-button'
switch (type) {
case 'confirm':
className += ' operation-button-confirm'
break
... |
ajax/libs/react-instantsearch/4.1.3/Dom.js | holtkamp/cdnjs | /*! ReactInstantSearch 4.1.3 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.... |
pootle/static/js/auth/components/SocialAuthError.js | JohnnyKing94/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import { PureRenderMixin } from... |
src/components/highlightButton.js | philly-d/chirp-for-twitter | import React from 'react'
import $ from 'jquery'
function killEvent (e) {
e.preventDefault()
e.stopPropagation()
return false
}
function isWithinApp (el) {
return $(el).closest('.twc-root').length > 0
}
function isInput (el) {
return el.isContentEditable || ['INPUT', 'TEXTAREA', 'SELECT'].indexOf(e... |
admin/client/App/elemental/Modal/body.js | concoursbyappointment/keystoneRedux | import React from 'react';
import { css } from 'glamor';
import theme from '../../../theme';
function ModalBody ({
className,
...props
}) {
return (
<div
className={css(classes.body, className)}
{...props}
/>
);
};
const classes = {
body: {
paddingBottom: theme.modal.padding.body.vertical,
paddingL... |
src/components/VotesList/VotesList.js | nambawan/g-old | import React from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/withStyles';
import cn from 'classnames';
import s from './VotesList.css';
import FetchError from '../FetchError';
import history from '../../history';
import Avatar from '../Avatar';
const onThumbnailClick =... |
src/components/common/modal/Modal/Modal.js | cltk/cltk_frontend | import React from 'react';
import PropTypes from 'prop-types';
import './Modal.css';
const Modal = ({ children, classes, show, closeModal }) => {
if (show) {
return (
<div
className={`cltkModal ${classes.join(' ')}`}
>
<div
className="closeModal"
onClick={closeModal}
>
<i classNa... |
src/components/MovieCard.js | Benguino/star-wars-project | import React from 'react';
import PropTypes from 'prop-types';
export const MovieCard = (props) => {
return (
<div className='col-xs-12 col-sm-6 col-md-4 movie-card'>
<div className='row'>
{props.children}
</div>
</div>
);
};
MovieCard.propTypes = {
children: PropTypes.any
}; |
components/catalog/harvests/index.js | sgmap/inspire | import React from 'react'
import PropTypes from 'prop-types'
import moment from 'moment'
import {translate} from 'react-i18next'
import Button from '../../button'
import Table from './table'
import Histogram from './histogram'
class Harvests extends React.Component {
static propTypes = {
catalog: PropTypes.sha... |
app/component/quiz/Identificacao.js | vagnerpraia/ipea_survey | import React, { Component } from 'react';
import { Alert, StyleSheet, View } from 'react-native';
import { Body, Button, Container, Content, Left, List, Header, Icon, ListItem, Picker, Radio, Text, Title } from 'native-base';
import RadioForm from 'react-native-simple-radio-button';
import RNFetchBlob from 'react-nativ... |
components/StudentPoint/components/Final/Final.js | yabeow/sinhvienuit | import React from 'react';
import PropTypes from 'prop-types';
import { Card, CardItem, Icon, Text, Badge } from 'native-base';
import { STUDENT_POINT_RANK_NAME, STUDENT_POINT_RANK_COLOR } from '../../../../config/config';
class Final extends React.Component {
render() {
const rankColor = { [STUDENT_POINT_RANK_C... |
app/client.js | mariopeixoto/isomorphic-react-webpack-boilerplate | 'use strict';
/*global document */
import React from 'react';
import BrowserHistory from 'react-router/lib/BrowserHistory';
import Router from 'react-router';
class Client {
static run(routes, element) {
React.render((
<Router history={new BrowserHistory()}>
{routes}
</Router>
), element... |
admin/client/App/screens/Item/components/EditFormHeader.js | rafmsou/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import { connect } from 'react-redux';
import Toolbar from './Toolbar';
import ToolbarSection from './Toolbar/ToolbarSection';
import EditFormHeaderSearch from './EditFormHeaderSearch';
import { Link } from 'react-router';
import Drilldown from './Dr... |
app/javascript/mastodon/features/direct_timeline/index.js | mosaxiv/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import { expandDirectTimeline } from '.... |
react-flux-mui/js/material-ui/src/svg-icons/editor/insert-photo.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorInsertPhoto = (props) => (
<SvgIcon {...props}>
<path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/>
</SvgIcon>
);
EditorI... |
src/components/login/LoginContainer.js | simnau/event-scraper-ui | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { reduxForm } from 'redux-form';
import { withRouter } from 'react-router';
import { I18n } from 'react-redux-i18n';
import Login from './Login';
import * as actions from './login-actions';
clas... |
src/components/video_list_item.js | seanmcnally88/react-fun | import React from 'react';
const VideoListItem = ({video, onVideoSelect}) => {
const imageUrl = video.snippet.thumbnails.default.url;
return(
<li onClick={() => onVideoSelect(video)}className="list-group-item">
<div className="video-list media">
<div className="media-left">
<img src={ i... |
src/svg-icons/notification/phone-bluetooth-speaker.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPhoneBluetoothSpeaker = (props) => (
<SvgIcon {...props}>
<path d="M14.71 9.5L17 7.21V11h.5l2.85-2.85L18.21 6l2.15-2.15L17.5 1H17v3.79L14.71 2.5l-.71.71L16.79 6 14 8.79l.71.71zM18 2.91l.94.94-.94.94... |
assets/js/components/CustomLayout.js | italia/developers.italia.it | import React from 'react';
import PropTypes from 'prop-types';
import Hero from './Hero';
import Description from './Description';
import Authorize from './Authorize';
import './CustomLayout.css';
// Create the layout component
class CustomLayout extends React.Component {
render() {
const { specSelectors, getC... |
tp-3/euge/src/components/pages/alumnos/AlumnosPage.js | jpgonzalezquinteros/sovos-reactivo-2017 | import React from 'react';
import { Switch, Route } from 'react-router-dom';
import PropTypes from 'prop-types';
import AlumnoListado from './components/listado/AlumnoListado';
import AlumnoForm from './components/form/AlumnoForm';
class AlumnosPage extends React.Component {
handleFormSave = (alumno) => {
t... |
src/svg-icons/notification/airline-seat-individual-suite.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatIndividualSuite = (props) => (
<SvgIcon {...props}>
<path d="M7 13c1.65 0 3-1.35 3-3S8.65 7 7 7s-3 1.35-3 3 1.35 3 3 3zm12-6h-8v7H3V7H1v10h22v-6c0-2.21-1.79-4-4-4z"/>
</SvgIcon>
);
Noti... |
pages/techgala.js | uclaacm/website | import { NextSeo } from 'next-seo';
import React from 'react';
import Banner from '../components/Banner';
import Layout from '../components/Layout';
import Projects from '../components/TechGala/Projects';
import TechGalaBanner from '../components/TechGala/TechGalaBanner';
import data from '../data';
function TechGala... |
src/index.js | Sixtease/MakonReact | import React from 'react';
import ReactDOM from 'react-dom';
import AppContainer from './containers/AppContainer';
import configureStore from './store/configureStore';
const store = configureStore();
ReactDOM.render(
<AppContainer store={store} />,
document.getElementById('root')
);
|
app/javascript/mastodon/features/ui/components/confirmation_modal.js | honpya/taketodon | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, FormattedMessage } from 'react-intl';
import Button from '../../../components/button';
@injectIntl
export default class ConfirmationModal extends React.PureComponent {
static propTypes = {
message: PropTypes.node.isRequired,
... |
packages/ndla-icons/src/action/Copy.js | netliferesearch/frontend-packages | /**
* Copyright (c) 2017-present, NDLA.
*
* This source code is licensed under the GPLv3 license found in the
* LICENSE file in the root directory of this source tree.
*
*/
// N.B! AUTOGENERATED FILE. DO NOT EDIT
import React from 'react';
import Icon from '../Icon';
const Copy = props => (
<Icon
viewBox=... |
app/components/modals/action.js | DeividasK/my-future-ai | import React from 'react'
import { Modal, ModalHeader, ModalBody, ModalFooter, Button, FormGroup, FormFeedback, FormText, Label } from 'reactstrap'
import { Field, reduxForm } from 'redux-form'
import { FormattedMessage } from 'react-intl'
import Actions from 'components/modals/actions'
@reduxForm({ form: 'goalAction'... |
js/components/feedback/index.js | chris50bn/Between | 'use strict';
import React, { Component } from 'react';
import { Image, View, Platform } from 'react-native';
import { connect } from 'react-redux';
import { resetRoute } from '../../actions/route';
import { openDrawer } from '../../actions/drawer';
import { Container, Header, Content, Text, Button, Icon, InputGroup... |
examples/counter/index.js | mjw56/redux | import React from 'react'
import ReactDOM from 'react-dom'
import { createStore } from 'redux'
import Counter from './components/Counter'
import counter from './reducers'
const store = createStore(counter)
const rootEl = document.getElementById('root')
function render() {
ReactDOM.render(
<Counter
value={... |
src/routes/UIElement/layer/index.js | liangchunlang/Exhitec-center | import React from 'react'
import { layer } from '../../../components'
import { Table, Row, Col, Button, Card } from 'antd'
let Enum = {
default: 1,
}
const IcoPage = () => {
const handleButtonClick = (key) => {
if (key === Enum.default) {
layer.open({
title: '默认弹层',
content: <div style={... |
Js/Ui/Components/Progress/index.js | Webiny/Webiny | import React from 'react';
import Webiny from 'webiny';
import styles from './styles.css';
class Progress extends Webiny.Ui.Component {
}
Progress.defaultProps = {
value: 0,
renderer() {
const {styles} = this.props;
return (
<div className={styles.wrapper}>
<div cl... |
src/index.js | cosmowiki/cosmowiki | import 'babel/polyfill';
import React from 'react'
import ReactDOM from 'react-dom';
import ReactDOMServer from 'react-dom/server';
import {loadRemoteFile} from './_external-deps/http-get';
import AppUrl from './appurl'
import PageComponent from './components/page';
import Welcome from './sites/welcome';
import Event... |
imports/ui/components/Common/ShopTableCells.js | haraneesh/mydev | import React from 'react';
import { Cell } from 'fixed-data-table-2';
import { Label, Checkbox } from 'react-bootstrap';
import moment from 'moment';
import 'moment-timezone';
import { formatMoney } from 'accounting-js';
import LoadImage from './LoadImage';
import constants from '../../../modules/constants';
import { a... |
js/components/Widget.js | gilesbradshaw/uaQL | // @flow
'use strict';
import React from 'react';
import Relay from 'react-relay';
import LocalizedText from './LocalizedText';
import {createContainer} from 'recompose-relay';
import {compose} from 'recompose';
import Pipe from './Pipe';
import Valve from './svg/Valve';
import Pump from './svg/Pump';
import Mixer fr... |
app/NewsList.js | theJian/hn-FrontPage | import React from 'react';
import NewsHeader from './NewsHeader.js';
import NewsItem from './NewsItem.js';
import './NewsList.css';
export default class NewsList extends React.Component {
getMore() {
return (
<div className="newsList-more">
<a className="newsList-moreLink" href="https://news.yc... |
docs/app/Examples/elements/Rail/Variations/RailExampleCloseVery.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Grid, Image, Rail, Segment } from 'semantic-ui-react'
const RailExampleCloseVery = () => (
<Grid centered columns={3}>
<Grid.Column>
<Segment>
<Image src='http://semantic-ui.com/images/wireframe/paragraph.png' />
<Rail close='very' position='left'>
... |
src/Radieschen.js | mkoennecke/radieschenjs | import React, { Component } from 'react';
import logo from './radilogo.gif';
import './Radieschen.css';
import Markdown from 'react-remarkable';
class RadiHeader extends Component {
constructor(props){
super(props);
/*
Javascript has weird method context rules. It is determined at invocation
time! ... |
client/src/components/home.js | malekascha/rubicon-app | import React from 'react';
import Input from './input';
import FileParser from './fileParser';
import Button from './button';
export default class Home extends React.Component{
constructor(props){
super(props)
}
handlePost(){
this.props.postMailerInfo({
emailList: this.props.data.fileInfo,
d... |
universal/components/faq/Faq.js | Amazing-Space-Invader/outline | /**
* Created by invader on 11.07.16.
*/
import React from 'react'
import s from './faq.pcss'
import {Grid, Row, Col} from 'react-flexgrid'
import 'react-flexgrid/lib/flexgrid.css'
import Dropdown from './components/dropdown/Dropdown'
export default class Faq extends React.Component {
render () {
retu... |
tukangs/src/screens/Home/Menu.js | BriefNight/tukangs | import React from 'react';
import { Card, Button } from 'react-native-elements';
import { View, Text, TouchableOpacity, Image } from 'react-native';
import styles from './style';
export default (Menu = ({ onOrder }) => {
return (
<View style={styles.content}>
<TouchableOpacity onPress={() => onOrder('Home Appli... |
src/BootstrapTable.js | AllenFang/react-bootstrap-table | /* eslint no-alert: 0 */
/* eslint max-len: 0 */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classSet from 'classnames';
import Alert from 'react-s-alert';
import Const from './Const';
import TableHeaderColumn from './TableHeaderColumn';
import TableHeader from './TableHeader';
... |
docs/client/components/pages/Video/index.js | koaninc/draft-js-plugins | import React, { Component } from 'react';
// eslint-disable-next-line import/no-unresolved
import simpleExampleCode from '!!../../../loaders/prism-loader?language=javascript!./SimpleVideoEditor';
// eslint-disable-next-line import/no-unresolved
import customExampleCode from '!!../../../loaders/prism-loader?language=ja... |
docs/src/examples/modules/Checkbox/States/CheckboxExampleDisabled.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Form, Checkbox } from 'semantic-ui-react'
const CheckboxExampleDisabled = () => (
<Form>
<Form.Field>
<Checkbox label='Disabled' disabled />
</Form.Field>
<Form.Field>
<Checkbox toggle label='Disabled' disabled />
</Form.Field>
</Form>
)
export defaul... |
es/index.js | quark-ui/quark-ui | import React$1, { Children, Component, PureComponent, cloneElement, createElement } from 'react';
import ReactDOM from 'react-dom';
import moment from 'moment';
var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
function un... |
app/components/Home.js | nefa/eletrcon-react-redux | import React, { Component } from 'react';
import { Link } from 'react-router';
import styles from './Home.css';
export default class Home extends Component {
render() {
return (
<div>
<div className={styles.container}>
<h2>Home</h2>
<Link to="/counter">to Counter</Link>
... |
web_static/dev/js/els/button.js | mjarkk/wotnlclans | import React from 'react'
import cn from 'classnames'
export default function Button({ disabled, click, title, dark, style }) {
return (
<button
disabled={typeof disabled == 'boolean' ? disabled : false}
className={cn(style || 'outline', { dark: typeof dark == 'boolean' ? dark : true })}
onClic... |
src/components/ToolbarButton.js | vsmode/pixels | import React from 'react';
import styled from 'styled-components';
import * as icons from './Icons';
const ToolbarButton = styled.button`
position: relative;
display: flex;
align-items: center;
justify-content: center;
background: none;
width: 40px;
height: 40px;
border-radius: 40px;
padding: 0;
ma... |
components/Alert.js | sayakbiswas/Git-Blogger | import React from 'react';
import styles from '../styles/styles';
import globalVars from '../config/globalVars';
import PropTypes from 'prop-types';
import { Button, Header, Icon, Modal } from 'semantic-ui-react';
function Alert(props) {
console.log('props in alert ', props);
return(
<Modal
open={props.modalOpe... |
src/components/primitives/Cursor.js | fouad/aframe-react-starter | import {Entity} from 'aframe-react'
import React from 'react'
export class Cursor extends React.Component {
render() {
const geometry = {
primitive: 'ring',
radiusInner: 0.01,
radiusOuter: 0.016
}
const material = {
color: this.props.color || '#42A5F5',
shader: 'flat',
... |
src/components/video_list_item.js | tapasc/ReduxSimpleStarter | import React from 'react'
const VideoListItem = (props) => {
const IMGURL = props.video.snippet.thumbnails.default.url;
const TITLE = props.video.snippet.title;
return (
<li className="list-group-item">
<div className="video-list media">
<div className="media ... |
frontend/src/Settings/Profiles/Metadata/MetadataProfilesConnector.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { cloneMetadataProfile, deleteMetadataProfile, fetchMetadataProfiles } from 'Store/Actions/settingsActions';
import MetadataProfiles from './MetadataProf... |
pootle/static/js/auth/components/AuthWindow.js | JohnnyKing94/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import Modal from 'components/... |
docs/src/app/components/pages/components/RefreshIndicator/Page.js | hai-cea/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 refreshIndicatorReadmeText from './README';
import RefreshIndicatorExampl... |
src/modules/Slider.js | markmiro/ui-experiments | import React from 'react';
import ms from './ms';
import d3Scale from 'd3-scale';
function zeroPad (x, y) {
y = Math.max(y - 1, 0);
var n = (x / Math.pow(10, y)).toFixed(y);
return n.replace('.', '');
}
let Slider = React.createClass({
componentDidMount () {
let _this = this;
setInterval(() => {
... |
examples/with-mdx/src/server.js | jaredpalmer/razzle | import App from './App';
import React from 'react';
import express from 'express';
import { renderToString } from 'react-dom/server';
const assets = require(process.env.RAZZLE_ASSETS_MANIFEST);
const cssLinksFromAssets = (assets, entrypoint) => {
return assets[entrypoint] ? assets[entrypoint].css ?
assets[entrypo... |
autocomplete.js | vcarl/react-reference-components | import React from 'react';
import _ from 'ramda';
export default class AutoComplete extends React.Component {
constructor(props) {
super(props);
this.state = {
open: false,
selectedIndex: 0,
filter: null,
filteredOptions: this.props.options,
showNew: false
};
this.clear... |
fields/types/relationship/RelationshipField.js | woody0907/keystone | import _ from 'underscore';
import Field from '../Field';
import React from 'react';
import Select from 'react-select';
import superagent from 'superagent';
import { Button, FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'RelationshipField',
shouldCollapse () {
// many:true relationsh... |
src/routes/react.js | joesmith100/the-polling-vote | import React from 'react';
import {Router, Route, IndexRoute, useRouterHistory} from 'react-router';
import createBrowserHistory from 'history/lib/createBrowserHistory';
export const history = useRouterHistory(
createBrowserHistory
)({ queryKey: false });
import App from '../containers/app';
import Polls from '../c... |
src/js/app.js | 2fort/touhou-test-jsx | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import Router from 'react-router/lib/Router';
import browserHistory from 'react-router/lib/browserHistory';
import routes from './routes';
import configureStore from './store/configureStore';
require('../sass/app.sc... |
components/Deck/TreePanel/ForkModal.js | slidewiki/slidewiki-platform | import PropTypes from 'prop-types';
import React from 'react';
import {navigateAction} from 'fluxible-router';
import forkDeck from '../../../actions/decktree/forkDeck';
import {Button, Icon, Modal, Header} from 'semantic-ui-react';
import FocusTrap from 'focus-trap-react';
import _ from 'lodash';
import Util from '../... |
src/svg-icons/image/control-point.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageControlPoint = (props) => (
<SvgIcon {...props}>
<path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-... |
tests/react/ref.js | JonathanUsername/flow | // @flow
import React from 'react';
class Foo extends React.Component<{}, void> {}
class Bar extends React.Component<{}, void> {}
<Foo />; // OK
<Foo ref="foo" />; // OK
<Foo ref={null} />; // OK
<Foo ref={undefined} />; // OK
<Foo ref={(foo: number) => {}} />; // Error: `Foo` is not a `number`.
<Foo ref={foo => (fo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.