path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/svg-icons/hardware/tablet-android.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareTabletAndroid = (props) => (
<SvgIcon {...props}>
<path d="M18 0H6C4.34 0 3 1.34 3 3v18c0 1.66 1.34 3 3 3h12c1.66 0 3-1.34 3-3V3c0-1.66-1.34-3-3-3zm-4 22h-4v-1h4v1zm5.25-3H4.75V3h14.5v16z"/>
</SvgIcon... |
packages/es-components/src/components/patterns/dateInput/Day.js | TWExchangeSolutions/es-components | /* eslint react/prop-types: 0 */
import React from 'react';
import styled from 'styled-components';
import { useTheme } from '../../util/useTheme';
import ValidationContext from '../../controls/ValidationContext';
import InputBase from '../../controls/textbox/InputBase';
import onNonNumericHandler from './onNonNumeric... |
src/Accordion.js | brentertz/react-bootstrap | import React from 'react';
import PanelGroup from './PanelGroup';
const Accordion = React.createClass({
render() {
return (
<PanelGroup {...this.props} accordion>
{this.props.children}
</PanelGroup>
);
}
});
export default Accordion;
|
src/components/FooterContent.js | scottluptowski/newyorktimesorjennyholzer | import React from 'react';
export default class FooterContent extends React.Component {
render() {
return (
<footer>
by <a href="http://www.twitter.com/scottluptowski" target="_blank">Scott Luptowski</a>. Not affiliated with Jenny Holzer or the New York Times.
<span className="twitter-wra... |
src/js/components/Store.js | react-beer/the-beer-store-react-es6-firebase-oauth | import React from 'react';
import { browserHistory } from 'react-router';
import autoBind from 'react-autobind';
import { Grid } from 'react-bootstrap';
import Header from './Header';
import Cart from './Cart';
import Products from './Products';
import Footer from './Footer';
// Firebase
import Rebase from 're-base';
... |
app/imports/client/Pages/Article/Components/Relateds.js | FractalFlows/Emergence | import React from 'react'
import {
compose,
pure,
withState,
withProps,
} from 'recompose'
import { Meteor } from 'meteor/meteor'
import {
RaisedButton,
Snackbar,
} from 'material-ui'
// Components
import {
Panel,
PanelHeader,
PanelBody,
PanelHeaderButton,
} from '/imports/client/Components/Panel'
... |
src/app/core/atoms/icon/icons/next.js | blowsys/reservo | import React from 'react'; const Next = (props) => <svg {...props} viewBox="0 0 48 48"><g><path d="M1.4200482,0L17.351001,16.046996 1.4980513,31.996001 0.078979631,30.585997 14.531046,16.046019 0,1.4089964z" transform="rotate(0,24,24) translate(10.9851219535313,0) scale(1.50018750984717,1.50018750984717)"/></g></svg>; ... |
packages/core/helper-plugin/lib/src/components/DynamicTable/TableHead/index.js | wistityhq/strapi | import React from 'react';
import { BaseCheckbox } from '@strapi/design-system/BaseCheckbox';
import { IconButton } from '@strapi/design-system/IconButton';
import { Tooltip } from '@strapi/design-system/Tooltip';
import { VisuallyHidden } from '@strapi/design-system/VisuallyHidden';
import { Typography } from '@strapi... |
mobile/src/QRScanScreen/presenter.js | TailorDev/pauling | /* @flow */
import React, { Component } from 'react';
import { InteractionManager, Platform, View } from 'react-native';
import { Spinner, Text, Toast } from 'native-base';
import Camera from 'react-native-camera';
import Config from 'react-native-config';
import { oneLine } from 'common-tags';
import { colors } from ... |
app/javascript/mastodon/features/favourites/index.js | im-in-space/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 { fetchFavourit... |
client/components/EditCardModal.js | nb256/kanbanello | import React from 'react';
import { floatRightButtonStyle, formElementsStyle, modalStyle } from '../styles/styles';
import Label from './Label';
export default class EditCardModal extends React.Component {
constructor(props) {
super(props);
this.state = {
selectedColor: 'red',
};
}
handleChan... |
src/SwatchColorPicker.story.js | prometheusresearch/react-ui | /**
* @flow
*/
import React from 'react';
import {storiesOf, action} from '@kadira/storybook';
import SwatchColorPicker from './SwatchColorPicker';
const colorList = [
'#B80000',
'#DB3E00',
'#FCCB00',
'#008B02',
'#006B76',
'#1273DE',
'#004DCF',
'#5300EB',
'#EB9694',
'#FAD0C3',
'#FEF3BD',
'#C... |
html.js | Nick-Gottschlich/ng-homepage | import React from 'react'
import DocumentTitle from 'react-document-title'
import { prefixLink } from 'gatsby-helpers'
const BUILD_TIME = new Date().getTime()
module.exports = React.createClass({
displayName: 'HTML',
propTypes: {
body: React.PropTypes.string,
},
render() {
const {body,... |
src/components/Layout/SearchDrawer/AdvancedSearch/AdvancedSearchTitle/index.js | ndlib/usurper | import React from 'react'
import PropTypes from 'prop-types'
const AdvancedSearchTitle = (props) => {
let title = 'OneSearch'
if (props.searchType === 'NDCATALOG') {
title = 'ND Catalog'
}
return (
<div id='search-type-title'>{title}</div>
)
}
AdvancedSearchTitle.propTypes = {
searchType: PropType... |
src/containers/book-detail.js | merry75/ReduxBookLibrary | import React, { Component } from 'react';
import { connect } from 'react-redux';
class BookDetail extends Component {
render() {
if(!this.props.book) {
return <div>Select a book to get started</div>
}
return (
<div>
<h3>Details for:</h3>
<div>Title: {this.props.book.title}</div>
<div>Pages: ... |
generators/app/templates/pages/react/index.js | dingyanqiang/generator-perfect | import React from 'react';
import ReactDOM from 'react-dom';
import './index.<%= styleType %>';
/**
* CSS Moudle
* import style from './index.<%= styleType %>';
*/
class Welcome extends React.Component {
state = {
name: 'Perfect'
}
render() {
return <h1>Hello, {this.state.name}</h1>;
}
}
const ... |
components/OutputTemplate.js | suprsidr/blade-react-template | import React from 'react'
import Hero from './Hero';
import IntroText from './IntroText';
import SafeTech from './SafeTech';
import DividerImage from './DividerImage';
import Modes from './Modes';
import Features from './Features';
import Prices from './Prices';
import SupportLinks from './SupportLinks';
class OutputT... |
examples/examples.js | buildo/react-datepicker | import 'moment/locale/fr.js';
import React from 'react';
import ReactDOM from 'react-dom';
import { DatePicker, DatePickerInput } from '../src';
import '../src/style.scss';
class Example extends React.Component {
state = {
datePickerDate: '2015-05-13',
datePickerInputDate: null,
datePickerInputDate2: ... |
docs/src/app/components/pages/components/Stepper/CustomIcon.js | IsenrichO/mui-with-arrows | 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/Menu/MenuItem.js | dsslimshaddy/material-ui | // @flow
import React from 'react';
import type { Element } from 'react';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
import ListItem from '../List/ListItem';
export const styles = (theme: Object) => ({
root: {
...theme.typography.subheading,
height: 48,
boxSizing... |
public/js/components/Message.js | richardison/audition-project | import React from 'react';
import { ListGroupItem, ButtonToolbar, Button, Glyphicon, Grid, Col, Modal } from 'react-bootstrap';
export default class Message extends React.Component {
constructor(props) {
super(props)
this.state = {
hover: false,
showModal: false,
... |
fields/components/columns/InvalidColumn.js | w01fgang/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var InvalidColumn = React.createClass({
displayName: 'InvalidColumn',
propTypes: {
col: React.PropTypes.object,
},
renderValue () {
return (
<ItemsTableVal... |
ReactNative/04 Running App.js | iitjee/SteppinsWebDev | //Previously we modified AppContainer.js to have a navigator inside menu. Now let's make it the single entry point for
//application.
(in index.ios.js)
//modify like this
import React, { Component } from 'react';
import {
AppRegistry, //remoed other modules
} from 'react-native';
import AppContainer from './app/Ap... |
src/svg-icons/notification/sd-card.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSdCard = (props) => (
<SvgIcon {...props}>
<path d="M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 6h-2V4h2v4zm3 0h-2V4h2v4zm3 0h-2V4h2v4z"/>
</SvgIcon>
);
NotificationS... |
src/containers/subscription/SubscriptionFormScreen.js | meetfranz/franz | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { inject, observer } from 'mobx-react';
import { ipcRenderer } from 'electron';
import PaymentStore from '../../stores/PaymentStore';
import SubscriptionForm from '../../components/subscription/SubscriptionForm';
import TrialForm fro... |
src/svg-icons/device/screen-lock-rotation.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceScreenLockRotation = (props) => (
<SvgIcon {...props}>
<path d="M23.25 12.77l-2.57-2.57-1.41 1.41 2.22 2.22-5.66 5.66L4.51 8.17l5.66-5.66 2.1 2.1 1.41-1.41L11.23.75c-.59-.59-1.54-.59-2.12 0L2.75 7.11c-.59... |
src/components/stepOne/index.js | oraclesorg/ico-wizard | import React from 'react'
import '../../assets/stylesheets/application.css';
import { checkWeb3 } from '../../utils/blockchainHelpers'
import { Link } from 'react-router-dom';
import { setFlatFileContentToState, toast } from '../../utils/utils';
import { StepNavigation } from '../Common/StepNavigation';
import { NAVIGA... |
src/components/NotFound.js | merrettr/school-ui | import React from 'react';
const NotFound = () =>
<div>
<h3>Page not found</h3>
</div>;
export default NotFound; |
demo/src/App.js | bkrem/react-d3-tree | import React, { Component } from 'react';
import clone from 'clone';
import Tree from 'react-d3-tree';
import { version } from 'react-d3-tree/package.json';
import Switch from './components/Switch';
import MixedNodeElement from './components/MixedNodeElement';
import PureSvgNodeElement from './components/PureSvgNodeEle... |
examples/websockets/config/env/development.js | lore/lore | /**
* Development environment settings
*
* This file is where you define overrides for any of the config settings when operating under the
* development environment. Development environment is defined as `LORE_ENV=development` or the absence
* of a `LORE_ENV` environment variable.
**/
import _ from 'lodash';
imp... |
src/applications/financial-status-report/pages/income/spouse/currentIncome/index.js | department-of-veterans-affairs/vets-website | import React from 'react';
import TableDetailsView from '../../../../components/TableDetailsView';
import CustomReviewField from '../../../../components/CustomReviewField';
import Typeahead from '../../../../components/Typeahead';
import ItemLoop from '../../../../components/ItemLoop';
import { validateCurrency } from ... |
client/entry.js | GordonGaoNY/py_rrfm_re |
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import jss from 'jss';
import jssVendorPrefixer from 'jss-vendor-prefixer';
import jssPx from 'jss-px';
import jssNested from 'jss-nested';
import jssCamelCase from 'jss-camel-case';
import { Provider } from 'react-redux';
import { ... |
app/javascript/mastodon/features/ui/components/video_modal.js | anon5r/mastonon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Video from '../../video';
import ImmutablePureComponent from 'react-immutable-pure-component';
export default class VideoModal extends ImmutablePureComponent {
static propTypes = {
m... |
src/components/Layouts/ReportLayout.js | demisto/sane-reports | import './ReportLayout.less';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { AutoSizer } from 'react-virtualized';
import {
SECTION_TYPES,
REPORT_HEADER_IMAGE_LEFT_TOKEN,
REPORT_HEADER_IMAGE_RIGHT_TOKEN,
GRID_LAYOUT_COLUMNS,
PAGE_BREAK_KEY, CHART_TYPES
} from '../../con... |
client/containers/NotFound.js | AlexFrazer/site | import React, { Component } from 'react';
export default class NotFound extends Component {
render() {
return (
<h1>Route not found</h1>
)
}
}
|
src/svg-icons/maps/pin-drop.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsPinDrop = (props) => (
<SvgIcon {...props}>
<path d="M18 8c0-3.31-2.69-6-6-6S6 4.69 6 8c0 4.5 6 11 6 11s6-6.5 6-11zm-8 0c0-1.1.9-2 2-2s2 .9 2 2-.89 2-2 2c-1.1 0-2-.9-2-2zM5 20v2h14v-2H5z"/>
</SvgIcon>
);
... |
src/containers/Asians/TabControls/BreakTeams/index.js | westoncolemanl/tabbr-web | import React from 'react'
import { connect } from 'react-redux'
import withStyles from 'material-ui/styles/withStyles'
import Typography from 'material-ui/Typography'
import { LinearProgress } from 'material-ui/Progress'
import CreateBreaks from './CreateBreaks'
import ViewBreaks from './ViewBreaks'
import Responsiv... |
docs/src/app/components/pages/components/FontIcon/Page.js | rhaedes/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 iconCode from '!raw!material-ui/FontIcon/FontIcon';
import iconReadmeText... |
admin/client/App/shared/CreateForm.js | frontyard/keystone | /**
* The form that's visible when "Create <ItemName>" is clicked on either the
* List screen or the Item screen
*/
import React from 'react';
import assign from 'object-assign';
import vkey from 'vkey';
import AlertMessages from './AlertMessages';
import { Fields } from 'FieldTypes';
import InvalidFieldType from '... |
sms_sponsorship/webapp/src/components/LangDialog.js | eicher31/compassion-modules | import React from 'react';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import DialogContent from '@material-ui/core/DialogContent';
import DialogTitle from '@material-ui/core/DialogTitle';
import SelectForm fr... |
kitchensink/ios/routes.js | allanfish/f8 | import React from 'react'
import { Route, IndexRoute } from 'react-router'
export default function getRoutes () {
return (
<Route path='/' component={require('./views/Framework').default}>
<IndexRoute component={require('./views/Index').default} />
<Route path='components'>
<Route path='view'... |
pootle/static/js/auth/components/SignInPanel.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... |
webapp/pages/all_projects_page.js | dropbox/changes | import React from 'react';
import ChangesLinks from 'es6!display/changes/links';
import ChangesUI from 'es6!display/changes/ui';
import Request from 'es6!display/request';
import SectionHeader from 'es6!display/section_header';
import SimpleTooltip from 'es6!display/simple_tooltip';
import { ChangesPage, APINotLoadedP... |
app/containers/App/index.js | monkeyzealer/Andrew-Duesler | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
*/
import React from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles... |
src/components/FrontMatter/FrontMatter.js | patrickfatrick/audio-book-react | import React from 'react';
import PropTypes from 'prop-types';
import c from 'classnames';
import Block from '../Block';
import infoShape from '../../shapes/infoShape';
import frontmatterShape from '../../shapes/frontmatterShape';
import styles from './FrontMatter.css';
export default function FrontMatter({
info,
... |
docs/app/Examples/views/Feed/Content/FeedExampleExtraImagesShorthand.js | ben174/Semantic-UI-React | import React from 'react'
import { Feed } from 'semantic-ui-react'
const image = 'http://semantic-ui.com/images/avatar/small/helen.jpg'
const date = '3 days ago'
const summary = 'Helen Troy added 2 photos'
const extraImages = [
'http://semantic-ui.com/images/wireframe/image.png',
'http://semantic-ui.com/images/wir... |
src/routes/login/index.js | devcharleneg/twitter-react-app | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../co... |
react/src/components/AtomForm/SingleAttachments.js | sinfin/folio | import React from 'react'
import SingleSelectTrigger from 'components/SingleSelectTrigger'
import SingleAttachmentsWrap from './styled/SingleAttachmentsWrap'
export default function SingleAttachments ({ attachments, atom, remove, index, openFileModal }) {
return (
<SingleAttachmentsWrap>
{attachments.map(... |
src/components/Grid.js | kaicataldo/tonal-sequencer | // @flow
import React, { Component } from 'react';
import Square from './Square';
type Props = {
isPlaying: boolean,
toggleSquare: Function,
grid: Array<Array<{ isSelected: boolean }>>,
tempo: number,
type: WaveType,
scale: string
};
export default class Grid extends Component {
props: Props;
state ... |
packages/cockpit/ui/src/containers/TextEditorContainer.js | iurimatias/embark-framework | import React from 'react';
import {connect} from 'react-redux';
import PropTypes from 'prop-types';
import TextEditor from '../components/TextEditor';
import {
addEditorTabs as addEditorTabsAction,
fetchEditorTabs as fetchEditorTabsAction,
removeEditorTabs as removeEditorTabsAction,
toggleBreakpoint,
updateEd... |
docs/components/layout/Grid.js | casesandberg/reactcss | 'use strict'
import React from 'react'
import reactCSS, { m } from 'reactcss'
export class Grid extends React.Component {
static contextTypes = {
mobile: React.PropTypes.bool,
}
render() {
const styles = reactCSS({
'default': {
grid: {
display: 'flex',
alignItems: 'st... |
src/components/media/media-content.js | bokuweb/re-bulma | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from '../../../build/styles';
import { getCallbacks } from './../../helper/helper';
export default class MediaContent extends Component {
static propTypes = {
style: PropTypes.object,
children: PropTypes.any,
clas... |
admin/client/App/shared/AlertMessages.js | jstockwin/keystone | import React from 'react';
import { Alert } from 'elemental';
import { upcase } from '../../utils/string';
/**
* This renders alerts for API success and error responses.
* Error format: {
* error: 'validation errors' // The unique error type identifier
* detail: { ... } // Optional details specific to t... |
src/app.js | dhis2/datim-data-export-log | if (process.env.NODE_ENV !== 'production') {
jQuery.ajaxSetup({
headers: {
Authorization: 'Basic ' + btoa('admin:district'),
},
});
}
import 'babel-polyfill';
import 'd2-ui/scss/DataTable.scss';
import React from 'react';
import {render, findDOMNode} from 'react-dom';
import HeaderB... |
src/components/IdeaCell.js | benoitvallon/react-native-redux-app-100-10-1 | 'use strict';
import React, { Component } from 'react';
import {
TouchableOpacity,
StyleSheet,
Text,
View
} from 'react-native';
// import css variables
import design from '../design';
import * as ideaActions from '../actions/ideaActions';
import {bindActionCreators} from 'redux';
import { connect } from 're... |
test/fixtures/webpack-message-formatting/src/AppUnknownExport.js | jdcrensh/create-react-app | import React, { Component } from 'react';
import { bar } from './AppUnknownExport';
class App extends Component {
componentDidMount() {
bar();
}
render() {
return <div />;
}
}
export default App;
|
src/components/Book/Authors/Views/Mobile/tpl.js | LifeSourceUA/lifesource.ua | import React from 'react';
import Styles from './Styles/main.scss';
import Palette from 'theme/Palette';
import Arrow from 'components/Assets/Arrow';
function Mobile() {
return (
<section className={ Styles.authorsComponent }>
<h1 className={ Styles.title }>об авторе</h1>
<div cla... |
app/index.js | taggun/app-benchmark | import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import 'materialize-css/dist/js/materialize';
import 'materialize-loader';
import Root from './containers/Root';
import { configureStore, history } from './store/configureStore';
import './app.global.css';
c... |
packages/material-ui/src/styles/useTheme.js | lgollut/material-ui | import { useTheme as useThemeWithoutDefault } from '@material-ui/styles';
import React from 'react';
import defaultTheme from './defaultTheme';
export default function useTheme() {
const theme = useThemeWithoutDefault() || defaultTheme;
if (process.env.NODE_ENV !== 'production') {
// eslint-disable-next-line ... |
src/components/icon/icons/index.js | quark-ui/quark-ui | import React from 'react';
import account from './account.svg';
import arrowDown from './arrow-down.svg';
import arrowLeft from './arrow-left.svg';
import arrowRight from './arrow-right.svg';
import arrowUp from './arrow-up.svg';
import attachment from './attachment.svg';
import car from './car.svg';
import caution fro... |
app/javascript/mastodon/components/column_back_button_slim.js | pointlessone/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import ColumnBackButton from './column_back_button';
export default class ColumnBackButtonSlim extends ColumnBackButton {
render () {
return (
<div className='column-back-button--slim'>
<div role='button' tabIndex='0' onClic... |
src/components/TextArea/TextArea.Skeleton.js | wfp/ui | /* eslint-disable jsx-a11y/label-has-for */
/* eslint-disable jsx-a11y/label-has-associated-control */
import PropTypes from 'prop-types';
import React from 'react';
const TextAreaSkeleton = ({ hideLabel, id }) => {
const label = hideLabel ? null : (
<label className="wfp--label wfp--skeleton" htmlFor={id} />
... |
src/components/dashboards/Upload.js | DarwinSmith/tentara-pelajar-client | import React from 'react'
import FineUploaderS3 from 'fine-uploader-wrappers/s3'
import Gallery from 'react-fine-uploader'
const profilePicUrl = ''
const uploader = new FineUploaderS3({
options: {
request: {
endpoint: "https://s3-us-west-2.amazonaws.com/uploader-tentara-pelajar/",
accessKey: "AKIAIZ... |
src/layouts/index.js | linosorice/personal-website | import React from 'react'
import Header from '../components/header'
import styles from './styles.module.css'
import '../css/reset.css'
import '../css/document.css'
import '../css/typography.css'
const Layout = ({ children, location }) => {
// Need to pass in location here on build. On development the props come fr... |
packages/mui-codemod/src/v5.0.0/jss-to-styled.test/sixth.actual.js | oliviertassinari/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import IconButton from '@material-ui/core/IconButton';
import Badge from '@material-ui/core/Badge';
import { connect } from 'react-redux';
import withStyles from '@material-ui/styles/withStyles';
import ShoppingCartIcon from '@mater... |
react/Card/Card.demo.js | seek-oss/seek-style-guide | import React from 'react';
import PropTypes from 'prop-types';
import { Card, Text, PageBlock, Section } from 'seek-style-guide/react';
const CardContainer = ({ component: DemoComponent, componentProps }) => (
<PageBlock>
<Section>
<DemoComponent {...componentProps} />
</Section>
</PageBlock>
);
Card... |
packages/ringcentral-widgets/components/VoicemailPlayer/index.js | u9520107/ringcentral-js-widget | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import formatDuration from '../../lib/formatDuration';
import DownloadIcon from '../../assets/images/Download.svg';
import PlayIcon from '../../assets/images/Play.svg';
import PauseIcon from '../../assets... |
frontend/src/components/controls/StarRating.js | technoboom/it-academy | import React from 'react';
import { Rating } from 'semantic-ui-react';
/**
* Star rating
* Defines rating bar with stars
* The stars are selectable.
*/
export default class StarRating extends React.Component {
render() {
return (
<div className="star-rating">
<Rating maxRati... |
src/svg-icons/communication/call-missed.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallMissed = (props) => (
<SvgIcon {...props}>
<path d="M19.59 7L12 14.59 6.41 9H11V7H3v8h2v-4.59l7 7 9-9z"/>
</SvgIcon>
);
CommunicationCallMissed = pure(CommunicationCallMissed);
CommunicationC... |
src/components/Inspector/Files/FileRow.js | Secretmapper/react-transmission | import React from 'react';
import CSSModules from 'react-css-modules';
import FileList from './FileList';
import PriorityButton from './PriorityButton';
import WantedButton from './WantedButton';
import styles from './styles/index.css';
function FileRow({ name, node, setPriority, setWanted }) {
const { priority, f... |
src/components/common/icons/Minus.js | chejen/GoodJobShare | import React from 'react';
/* eslint-disable */
const Minus = (props) => (
<svg {...props} width="148" height="148" viewBox="0 0 148 148">
<polygon points="0 .778 148 .778 148 17.222 0 17.222" transform="translate(0 65)"/>
</svg>
);
/* eslint-enable */
export default Minus;
|
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/CarouselCaption.js | JamieMason/npm-cache-benchmark | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
20170525/zhihu/src/App5.js | fengnovo/react-native | import React, { Component } from 'react';
import { WebView } from 'react-native';
class App extends Component {
render() {
return (
<WebView
source={{uri: 'https://github.com/facebook/react-native'}}
style={{marginTop: 20}}
/>
);
}
}
export default App; |
src/scenes/home/team/team.js | OperationCode/operationcode_frontend | import React, { Component } from 'react';
import axios from 'axios';
import config from 'config/environment';
import Section from 'shared/components/section/section';
import QuoteBanner from 'shared/components/quoteBanner/quoteBanner';
import TeamCard from 'shared/components/teamCard/teamCard';
import styles from './te... |
TestDemos/examples/LessonExamples/IIID-News/Components/NewsDetail.js | AzenXu/ReactNativeTest | /**
* Created by Azen on 16/9/5.
*/
import React, { Component } from 'react';
import {
View,
Text,
Image,
NavigatorIOS,
StyleSheet
} from 'react-native'
var Detail = React.createClass({
render() {
return(
<View style={styles.container}>
</View... |
frontend/js/components/environments/NewUserForm.js | ttavenner/okcandidate-platform | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Card from './../atoms/Card';
class NewUserForm extends Component {
render() {
return (
<section className="container">
<Card>
<pre>New User</pre>
<form
action="/api/v1/user"
... |
docs/app/Examples/collections/Form/Types/index.js | clemensw/stardust | import React from 'react'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import { Message, Icon } from 'src'
const FormTypesExamples = () => (
<ExampleSection title='Types'>
<ComponentExample
tit... |
src/docs/Docs.js | coryhouse/ps-react | import React from 'react';
import Navigation from './Navigation';
import ComponentPage from './ComponentPage';
import componentData from '../../config/componentData';
export default class Docs extends React.Component {
constructor(props) {
super(props);
this.state = {
route: window.location.hash.substr... |
lib/SGListView.js | sghiassy/react-native-sglistview | import React from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
import { ListView, ScrollView, Platform } from 'react-native';
import SGListViewCell from './SGListViewCell';
/**
* Some methods are stored here. The benefit of doing so are:
* 1. The methods are truly p... |
src/routes.js | TonyJen/react-redux-universal-hot-example | import React from 'react';
import {IndexRoute, Route} from 'react-router';
import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth';
import {
App,
Chat,
Home,
Experiment,
Widgets,
About,
Hello,
Login,
LoginSuccess,
Survey,
NotFound,
} from 'containers... |
src/modals/EncounterOptionsModal.js | emfmesquita/beyondhelp | import { Button, FormControl, FormGroup, Glyphicon, InputGroup, ListGroup, ListGroupItem } from 'react-bootstrap';
import React, { Component } from 'react';
import BhModal from "./BhModal";
import C from "../Constants";
import ColorPicker from "../forms/ColorPicker";
import DiceExp from "../services/DiceExp";
import F... |
config/flow/definitions/react.js | nicksp/redux-webpack-es6-boilerplate | /* @flow */
// Note: we already have the definitions from
// https://github.com/facebook/flow/blob/master/lib/react.js
// so the below are merely helpful extensions
import React from 'react';
declare type $React$Element = React.Element<*>;
declare type $React$Node = string | number | $React$Element | Array<$React$E... |
docs/src/components/Hero.js | oyvindhermansen/easy-state | import React from 'react';
import styled from 'styled-components';
import { PrimaryButton, ExternalSecondaryButton } from './Common';
const StyledHero = styled.div`
display: flex;
justify-content: center;
align-items: center;
padding: 4rem 0;
text-align: center;
/* Permalink - use to edit and share this g... |
assets/jqwidgets/demos/react/app/input/defaultfunctionality/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxInput from '../../../jqwidgets-react/react_jqxinput.js';
class App extends React.Component {
render() {
let countries = new Array('Afghanistan', 'Albania', 'Algeria', 'Andorra', 'Angola', 'Antarctica', 'Antigua and Barbuda', 'Argentina... |
src/containers/Member.js | TeodorKolev/Help | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { logout, getMemberData } from '../actions/member';
class Member extends Component {
static propTypes = {
Layout: PropTypes.func.isRequired,
memberLogout: PropTypes.func.isRequired,
... |
client/components/Header.js | glenrage/another-chance | import React from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
const LoggedOutView = props => {
if (!props.currentUser) {
return (
<ul className="nav navbar-nav navbar-right">
<li className="nav-item">
<Link to="/" className="nav-link">
... |
src/components/Score/Score.js | gxoptg/Colr | import React from 'react';
import { connect } from 'react-redux';
import styles from './Score.css';
const DumbScore = ({ children, isVisible }) =>
<div className={isVisible ? styles.scoreVisible : styles.scoreInvisible}>
{children}
</div>;
DumbScore.propTypes = {
children: React.PropTypes.node.is... |
client/src/app.js | SivanMehta/chatroom | // React
import React from 'react'
import { render } from 'react-dom'
import { Router, Route, Link, hashHistory, IndexRoute } from 'react-router'
// Material UI
import injectTapEventPlugin from 'react-tap-event-plugin'; injectTapEventPlugin()
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'
import Ap... |
src/pages/projects.js | jameslutley/jameslutley.com | import React from 'react'
import Link from 'gatsby-link'
const ProjectsPage = () => (
<div>
<h1>Projects</h1>
<p>Welcome to projects page</p>
<Link to="/">Go back to the homepage</Link>
</div>
)
export default ProjectsPage
|
src/containers/Statistics.js | kennethaa/vanvikil-live | import React, { Component } from 'react';
class Statistics extends Component {
render() {
return (
<div>
{'Stats'}
</div>
);
}
}
export default Statistics;
|
packages/native/src/components/screens/budget/BudgetScreen.js | hwaterke/inab | import React from 'react'
import {View} from 'react-native'
import {globalStyles} from '../../../constants/styles'
import {Banner} from '../../Banner'
import {MonthSelector} from './MonthSelector'
import {BudgetList} from './BudgetList'
import {BudgetHeader} from './BudgetHeader'
export class BudgetScreen extends Reac... |
app/views/anonymous/views/ProjectDetails/ProjectProperties/index.js | AamuLumi/IdeaBox | 'use strict';
import React, { Component } from 'react';
export default class ProjectProperties extends Component {
static propTypes = {
project: React.PropTypes.object.isRequired
}
render() {
if (this.props.project.isPrivate){
return (
<div className="projectProperties">
<h4>Pro... |
client/index.js | mdixon47/freecodecamp | import Rx from 'rx';
import React from 'react';
import { Router } from 'react-router';
import { history } from 'react-router/lib/BrowserHistory';
import debugFactory from 'debug';
import { hydrate } from 'thundercats';
import { Render } from 'thundercats-react';
import { app$ } from '../common/app';
const debug = deb... |
src/components/Html.js | keenethics/estimateit | /**
* 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-... |
src/routes.js | AmmarCloudtech/Simple-Blog | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/app';
import PostsIndex from './components/posts_index';
import PostsNew from './components/posts_new';
import PostsShow from './components/posts_show';
export default (
<Route path="/" component={App} >
<... |
src/gm3/components/catalog/tools/up.js | geomoose/gm3 | /*
* The MIT License (MIT)
*
* Copyright (c) 2016-2017 Dan "Ducky" Little
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights... |
front/app/app/rh-components/rh-Pagination.js | nudoru/React-Starter-2-app | import React from 'react';
import {fillIntArray} from '../utils/Toolbox';
const Pagination = ({
prev = false,
next = true,
start = 1,
end = 5,
current = 1
}) => {
let numbers = fillIntArray(start, end);
prev = prev ? (
<a href="#"><i className="fa fa-step-backward"/></a>) : (
<span classNam... |
src/PageItem.js | justinanastos/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import SafeAnchor from './SafeAnchor';
const PageItem = React.createClass({
propTypes: {
href: React.PropTypes.string,
target: React.PropTypes.string,
title: React.PropTypes.string,
disabled: React.PropTypes.bool,
previous: React.Pr... |
client/admin/info/RocketChatSection.js | Sing-Li/Rocket.Chat | import { Skeleton } from '@rocket.chat/fuselage';
import React from 'react';
import Subtitle from '../../components/basic/Subtitle';
import { useTranslation } from '../../contexts/TranslationContext';
import { useFormatDateAndTime } from '../../hooks/useFormatDateAndTime';
import { useFormatDuration } from '../../hook... |
example/normal(react)/client/static/js/index.wp.js | dnxbf321/npx | import React from 'react'
import ReactDom from 'react-dom'
import App from './app.jsx'
console.log('client = ', client, typeof client)
console.log('client.publicPath = ', client.publicPath)
console.log('debug = ' + debug, typeof debug)
console.log('array1 = ', array1)
let arr = [1, 2, 3]
let copyArr = [...arr]
consol... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.