path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/BigCalendarWrapper/components/BigCalendarServicePicker/BigCalendarServicePicker.js | TheModevShop/craft-app | import React from 'react';
import FlyOut from 'components/uiElements/FlyOut/FlyOut';
import Select from 'react-select';
import _ from 'lodash';
import 'react-day-picker/lib/style.css';
import './big-calendar-service-picker.less';
class BigCalendarServicePicker extends React.Component {
constructor(...args) {
sup... |
app/javascript/mastodon/features/notifications/index.js | danhunsaker/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,
scrollTopNotificati... |
src/components/grid.js | nordsoftware/react-foundation | import React from 'react';
import PropTypes from 'prop-types';
import { HorizontalAlignments, VerticalAlignments } from '../enums';
import { GeneralPropTypes, FlexboxPropTypes, createClassName, generalClassNames, removeProps, objectKeys, isDefined } from '../utils';
/**
* Row component.
*
* @param {Object} props
*... |
src/js/components/Carousel/stories/Controlled.js | HewlettPackard/grommet | import React from 'react';
import { Attraction, Car, TreeOption } from 'grommet-icons';
import { Grommet, Box, Button, Carousel, Text } from 'grommet';
export const Controlled = () => {
const [activeSlide, setActiveSlide] = React.useState(2);
return (
<Grommet>
<Box align="center" pad="large">
... |
client/src/containers/TagList.js | richb-hanover/reactathon | import React from 'react';
export const TagList = () => (
<section>
<h1>TODO: Update me</h1>
</section>
);
|
src/containers/CustomerEdit/CustomerEdit.js | kingpowerclick/kpc-web-backend | import React, { Component } from 'react';
import classNames from 'classnames';
import { Link } from 'react-router';
import { FilterPage, Breadcrumb, CustomerDetail } from 'components';
import { Tabs, Tab, Collapse } from 'react-bootstrap';
export default class CustomerEdit extends Component {
constructor(...args) ... |
src/components/Accounts.js | chatch/stellarexplorer | import React from 'react'
import Grid from 'react-bootstrap/lib/Grid'
import Row from 'react-bootstrap/lib/Row'
import AccountTable from './AccountTable'
class Accounts extends React.Component {
render() {
return (
<Grid>
<Row>
<AccountTable limit={10} />
</Row>
</Grid>
... |
src/lib/plugins/battery/critical.js | Hyperline/hyperline | import React from 'react'
import Component from 'hyper/component'
import SvgIcon from '../../utils/svg-icon'
export default class Critical extends Component {
render() {
return (
<SvgIcon>
<g fillRule="evenodd">
<g className='cpu-critical-icon'>
<path d="M7,1 L9,1 L9,2 L7,2 L7... |
app/components/OnResult.js | elyamad/brocantelab | import React from 'react';
import { ListGroupItem, ListGroup } from 'react-bootstrap';
var OnResult = React.createClass({
propsType: {
visible: React.PropTypes.bool,
value: React.PropTypes.string, // "success", "warning", "danger"
headerMsg: React.PropTypes.string,
contentMsg: React.PropTypes.string
... |
src/app/components/StreamWidget/StreamDropZone.js | smitch88/multi-stream-twitch | import React from 'react';
import CheckIcon from 'react-icons/lib/md/check';
import PropTypes from 'prop-types';
import uuid from 'uuidv4';
import theme from '../../theme';
/*
* Returns a component tht handles dragging a link into the frame and passes back
* the stream data configuration.
*
* Currently only supports y... |
src/pages/startegy/StrategyDetail.js | i-July/footballgo | import React, { Component } from 'react';
import { withRouter } from 'react-router-dom';
class StrategyDetail extends Component {
render() {
const id = this.props.match.params.id;
return (
<div>
<h2>这是战略{id}</h2>
</div>
);
}
}
export default withRouter(StrategyDetail);
|
test/test_helper.js | alxDiaz/reactFirstProject | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
client/main.js | srojas19/feedback | import React from 'react';
import { Meteor } from 'meteor/meteor';
import { render } from 'react-dom';
import '../imports/startup/accounts-config.js';
import App from '../imports/ui/App.jsx';
Meteor.startup(() => {
render(<App />, document.getElementById('render-target'));
}); |
src/Controls/ControlBool.js | rpominov/react-demo | import React from 'react'
import createReactClass from 'create-react-class'
import T from 'prop-types'
import Group from './Group'
import InputCheckbox from './InputCheckbox'
export default createReactClass({
displayName: 'Demo.Controls.ControlBool',
propTypes: {
name: T.string.isRequired,
value: T.bool.... |
src/components/partials/Elements.js | MattMcFarland/codepix-client | import React from 'react';
import { Collapse } from 'react-bootstrap';
export const Button = ({
children,
onClick,
kind = 'info'
}) => (
<button onClick={onClick} type='button' className={'btn btn-' + kind}>
{children}
</button>
);
export const Icon = ({
name
}) => (
<span className={'icon icon-... |
modules/genomic_browser/jsx/genomicBrowserIndex.js | kongtiaowang/Loris | import React from 'react';
import PropTypes from 'prop-types';
import {TabPane, Tabs} from 'jsx/Tabs';
import Profiles from './tabs_content/profiles';
import GWAS from './tabs_content/gwas';
import SNP from './tabs_content/snp';
import CNV from './tabs_content/cnv';
import Methylation from './tabs_content/methylation';... |
components/Toggle/Toggle.js | zendesk/linksf | import React from 'react'
import s from './Toggle.css'
const Toggle = (props) => (
<div
className={`${s.switch} ${props.disabled ? s.disabled : ''}`}
tabIndex="0"
onMouseUp={(e) => props.onMouseUp && props.onMouseUp(e)}
>
<div className={s.mask}>
<div className={`${s.container} ${props.on ? s... |
src/js/layout/MainPanel.js | Robert-W/esri-react-prerender | import {Map} from 'js/map/Map';
import React from 'react';
export class MainPanel extends React.Component {
render () {
return (
<div className='app-body'>
<Map />
</div>
);
}
}
|
src/client/demo4/select.js | hihl/react-demo | import React from 'react';
import res from '../../data.json';
const adminPartners = res.data.adminPartners;
export default function Select() {
return (
<select>
{
adminPartners.map(partner => <option key={partner.partnerCode} value={partner.partnerCode}>{partner.displayName}</option>)
}
<... |
src/CHANGELOG.js | enragednuke/WoWAnalyzer | import React from 'react';
import { Anomoly, blazyb, Dyspho, fasib, Fyruna, Gurupitka, Juko8, Mamtooth, sref, Versaya, Yuyz0112, Zerotorescue, Hartra344, Putro, Sharrq } from 'MAINTAINERS';
import Wrapper from 'common/Wrapper';
import ItemLink from 'common/ItemLink';
import ITEMS from 'common/ITEMS';
import SPELLS fro... |
app/components/Toggle/index.js | rlagman/raphthelagman | /**
*
* LocaleToggle
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import Select from './Select';
import ToggleOption from '../ToggleOption';
function Toggle(props) {
let content = <option>--</option>;
// If we have items, render them
if (props.values) {
content = props.values.ma... |
src/components/Tooltip/Tooltip.js | nolawi/champs-dialog-sg | /**
* Copyright 2017 dialog LLC <info@dlg.im>
* @flow
*/
import React, { Component } from 'react';
import { Text } from '@dlghq/react-l10n';
import Trigger from '../Trigger/Trigger';
import classNames from 'classnames';
import CSSTransitionGroup from 'react-transition-group/CSSTransitionGroup';
import styles from '... |
packages/react-devtools-shared/src/hooks/__tests__/__source__/ComponentWithExternalCustomHooks.js | facebook/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import React from 'react';
import useTheme from './useTheme';
export function Component() {
const theme = useTheme(... |
src/svg-icons/social/people-outline.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPeopleOutline = (props) => (
<SvgIcon {...props}>
<path d="M16.5 13c-1.2 0-3.07.34-4.5 1-1.43-.67-3.3-1-4.5-1C5.33 13 1 14.08 1 16.25V19h22v-2.75c0-2.17-4.33-3.25-6.5-3.25zm-4 4.5h-10v-1.25c0-.54 2.56-1.7... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ClassProperties.js | peopleticker/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
export default class extends Component {
static propTyp... |
src/resources/assets/react-app/components/AuthHome.js | z5internet/ruf | import React, { Component } from 'react';
class AuthHome extends Component {
render() {
return (
<div>
You are logged in!
</div>
)
}
}
export default AuthHome;
|
src/pages/dashboard/page.js | vgarcia692/wutmi_frontend | import React from 'react';
import styles from './style.css';
import CustomAxios from '../../common/components/CustomAxios';
export default class DashboardPage extends React.Component {
constructor() {
super()
}
render() {
return (
<div className={styles.content}>
<h1 className={styles.he... |
app/containers/LanguageProvider/index.js | tomazy/react-boilerplate | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
demos/forms-demo/src/components/CurrentView/index.js | bdjnk/cerebral | import React from 'react'
import {connect} from 'cerebral/react'
import {state} from 'cerebral/tags'
import Simple from '../Simple'
const VIEWS = {
Simple
}
export default connect({
currentView: state`app.currentView`
},
function CurrentView ({currentView}) {
const View = VIEWS[currentView]
return (
<div ... |
src/datagrid-wrapper.js | JamesHageman/redux-datagrid | import React from 'react';
const { func, string, any, array, object } = React.PropTypes;
export default class DatagridWrapper extends React.Component {
static propTypes = {
Component: func,
initDatagrid: func,
columns: array,
name: string,
searchText: string,
sortBy: string,
groupBy: str... |
assets/js/components/ActivityPicker.js | ung-it/UngIT | import React from 'react';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
import {Glyphicon} from "react-bootstrap";
import '../../styles/activitypickerStyle.css';
let names = [
"Amerikansk idrett", "Bandy", "Basketball", "Biljard", "Boksing", "Bueskyting", "Cricket... |
examples/nested-components/pages/index.js | dstreet/next.js | import React from 'react'
import P from '../components/paragraph'
import Post from '../components/post'
import style from 'next/css'
export default () => (
<div className={styles.main}>
<Post title='My first blog post'>
<P>Hello there</P>
<P>This is an example of a componentized blog post</P>
</P... |
Sources/ewsnodejs-server/node_modules/react-transition-group/esm/ReplaceTransition.js | nihospr01/OpenSpeechPlatform-UCSD | import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose";
import PropTypes from 'prop-types';
import React from 'react';
import ReactDOM from 'react-dom';
import TransitionGroup from './TransitionGroup';
/*... |
src/SwipeableWithPagination.js | zeljkoX/swipable-views-with-pagination | import {
StyleSheet,
View,
Image,
Dimensions
} from 'react-native';
import React, { Component } from 'react';
import SwipeableViews from 'react-swipeable-views/lib/index.native.animated';
import Pagination from './Pagination';
let paginationSize = 0;
export default class SwipeableWithPagination extends Com... |
packages/days-off/src/components/App/index.js | simonrelet/days-off | import React, { Component } from 'react';
import injectSheet from 'react-jss';
import Icon from '@marv/components/Icon';
import fetch, { parseJSON, handleError } from '@marv/components/fetch';
import { isHalfDayBefore, isHalfDayAfter } from '../dateUtils';
import Calendars from '../Calendars';
import UserHeader from '.... |
app/jsx/permissions/index.js | djbender/canvas-lms | /*
* Copyright (C) 2018 - 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... |
client/src/javascript/components/general/filesystem/PriorityMeter.js | jfurrow/flood | import {injectIntl} from 'react-intl';
import React from 'react';
import PiorityLevels from '../../../constants/PriorityLevels';
const METHODS_TO_BIND = ['handleClick'];
class PriorityMeter extends React.Component {
constructor() {
super();
this.state = {
optimisticData: {
level: null,
... |
node_modules/react-bootstrap/es/Radio.js | NathanBWaters/jb_club | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/index.js | asithagihan03/alankara-hapi | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, hashHistory } from 'react-router';
import routes from './routes';
ReactDOM.render(
<Router routes={routes} history={hashHistory} />, document.getElementById('root')
);
|
node_modules/react-native/Libraries/Components/TextInput/TextInput.js | hpdmitriy/Bjj4All | /**
* 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... |
still/src/components/Layout/Footer.js | marktheshark13/Stillwaters-farm | import React, { Component } from 'react';
class Footer extends Component {
render() {
return (
<div>
<h1>Footer test</h1>
</div>
);
}
}
export default Footer; |
src/content/index.js | squarewave/bhr.html | import React from 'react';
import Perf from 'react-addons-perf';
import { render } from 'react-dom';
import Root from './containers/Root';
import createStore from './create-store';
import 'photon-colors/colors.css';
import '../../res/style.css';
if (process.env.NODE_ENV === 'production') {
const runtime = require('o... |
docs/src/app/components/pages/components/GridList/Page.js | pancho111203/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 gridListReadmeText from './README';
import gridListExampleSimpleCode from... |
client/modules/App/components/Menu/Menu.js | lordknight1904/bigvnadmin | import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { getUserName, getId } from '../../../Login/LoginReducer';
import { logout } from '../../../Login/LoginActions';
import { Tab, Row, Col, Nav, NavItem, NavDropdown, MenuItem } from'react-bootstrap'... |
packages/react-router-website/modules/components/App.js | react-translate-team/react-router-CN | import React from 'react'
// don't want the shimmed one
// eslint-disable-next-line
import BrowserRouter from '../../../react-router-dom/BrowserRouter'
// this stuff is shimmed, see ReactRouterDOMShim.js for more details
import { Switch, Route } from 'react-router-dom'
import DelegateMarkdownLinks from './DelegateMa... |
web/src/templates/blog-list.js | ajmalafif/ajmalafif.com | import React from 'react'
import { graphql } from 'gatsby'
import { mapEdgesToNodes,
filterOutDocsWithoutSlugs,
filterOutDocsPublishedInTheFuture,
} from '../lib/helpers'
import BlogPostPreviewGrid from '../components/blog-post-preview-grid'
import GraphQLErrorList from '../components/graphql-error-lis... |
public/app/components/online-tab/details-component-binding.js | vincent-tr/mylife-home-studio | 'use strict';
import React from 'react';
import * as mui from 'material-ui';
import icons from '../icons';
const DetailsComponentBinding = ({ binding }) => (
<div>
<icons.Binding style={{verticalAlign: 'middle'}}/>
Binding:
{`${binding.remote_id}.${binding.remote_attribute}`}
&... |
UI/app/components/Dashboard.js | Acheron-VAF/Acheron | // @flow
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import styles from './Home.css';
type Props = {
increment: () => void,
incrementIfOdd: () => void,
incrementAsync: () => void,
decrement: () => void,
counter: number
};
export default class PageTemplate extends Comp... |
src/components/Paralax/Paralax/Paralax.js | easingthemes/notamagic | import React from 'react';
import { Parallax as ParallaxComponent } from 'react-parallax';
import { Link } from 'react-router';
import bgImage from '../images/parallax.jpg';
const Parallax = (props) => (
<ParallaxComponent
id="info-1"
className={'pt50 pb50 parallax-window mt' + props.mt}
bgImage={bgImage} stren... |
node_modules/eslint-config-airbnb/test/test-react-order.js | ichbinder/homeapp | import test from 'tape';
import { CLIEngine } from 'eslint';
import eslintrc from '../';
import reactRules from '../rules/react';
import reactA11yRules from '../rules/react-a11y';
const cli = new CLIEngine({
useEslintrc: false,
baseConfig: eslintrc,
// This rule fails when executing on text.
rules: { indent: ... |
app/javascript/mastodon/features/lists/index.js | Craftodon/Craftodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../compo... |
src/components/video_detail.js | kahlilashanti/react_youtube_project | import React from 'react';
const VideoDetail = ({video}) => {
if(!video){
return <div>Hold yer horses...</div>;
}
const videoId = video.id.videoId;
const url = `https://www.youtube.com/embed/${videoId}`;
return (
<div className="video-detail col-md-8">
<div className="embed-responsive embed-r... |
docs/src/app/components/pages/components/DatePicker/ExampleInternational.js | rscnt/material-ui | import React from 'react';
import DatePicker from 'material-ui/DatePicker';
import areIntlLocalesSupported from 'intl-locales-supported';
let DateTimeFormat;
/**
* Use the native Intl.DateTimeFormat if available, or a polyfill if not.
*/
if (areIntlLocalesSupported(['fr', 'en-US'])) {
DateTimeFormat = global.Intl... |
frontend/src/Components/Form/CaptchaInputConnector.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { getCaptchaCookie, refreshCaptcha, resetCaptcha } from 'Store/Actions/captchaActions';
import CaptchaInput from './CaptchaInput';
function createMapSta... |
src/CameraView.js | AppADay/AppADayApp | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Platform,
TouchableOpacity,
Image,
Animated,
Easing,
InteractionManager,
} from 'react-native';
import Emoji from 'react-native-emoji';
import Camera from 'react-native-camera';
import fs from 'react-native-fs';
import idx from... |
client/src/components/city/city-view.js | BrunoSalerno/citylines | import React from 'react';
import Translate from 'react-translate-component';
import CityBase from '../city-base';
import PropTypes from 'prop-types';
import CityViewStore from '../../stores/city-view-store';
import MainStore from '../../stores/main-store';
import {PanelHeader, PanelBody} from '../panel';
import Line... |
src/containers/OverBar.js | zachlevy/react-playground | import React from 'react'
import { connect } from 'react-redux'
import { setTheme } from '../actions'
const mapStateToProps = (state, ownProps) => ({
theme: state.theme
})
let OverBar = ({ theme, dispatch }) => {
let input
const handleOnSubmit = (e) => {
e.preventDefault()
if (!input.value.trim()) {... |
app/javascript/mastodon/features/notifications/components/column_settings.js | dunn/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage } from 'react-intl';
import ClearColumnButton from './clear_column_button';
import SettingToggle from './setting_toggle';
export default class ColumnSettings extends Reac... |
src/components/register/v1/form-field.js | Lokiedu/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2017 Loki Education (Social Enterprise)
This program 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, either version 3 of the License, o... |
client/src/components/profile_page/ProfilePage.js | thewizardplusplus/vk-group-stats | import React from 'react'
import {DrivedProfile} from '../../containers/drived_profile/DrivedProfile'
export default class ProfilePage extends React.Component {
render() {
return <DrivedProfile />
}
}
|
src/svg-icons/editor/format-paint.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatPaint = (props) => (
<SvgIcon {...props}>
<path d="M18 4V3c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6h1v4H9v11c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-9h8V4h-3z"/>
</SvgIco... |
src/js/screens/Anchor.js | grommet/next-sample | import React from 'react';
import { Anchor, Box } from 'grommet';
import doc from 'grommet/components/Anchor/doc';
import { Edit } from 'grommet-icons';
import Doc from '../components/Doc';
const desc = doc(Anchor).toJSON();
function onClick(event) {
event.preventDefault();
alert('hi');
}
export default () =>... |
rojak-ui-web/src/App.js | bobbypriambodo/rojak | import React from 'react';
import { Provider } from 'react-redux';
import { ReduxRouter } from 'redux-router';
import routes from './routes';
import store from './store';
import createRojakClient from './app/utils/createRojakClient';
class App extends React.Component {
static childContextTypes = {
rojakCli... |
packages/cockpit/ui/src/components/Pagination.js | iurimatias/embark-framework | import React from 'react';
import {Pagination as RPagination, PaginationItem, PaginationLink} from 'reactstrap';
import PropTypes from 'prop-types';
const NB_PAGES_MAX = 8;
const Pagination = ({currentPage, numberOfPages, changePage}) => {
let max = currentPage + NB_PAGES_MAX / 2;
if (max > numberOfPages) {
m... |
src/components/general/WebView.js | eventures-io/ldn-retail-demo | /**
* Web View
*
* <WebView url={"http://google.com"} />
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
WebView,
StyleSheet,
InteractionManager,
} from 'react-native';
// Consts an... |
app/javascript/mastodon/features/compose/components/poll_button.js | lindwurm/mastodon | import React from 'react';
import IconButton from '../../../components/icon_button';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
const messages = defineMessages({
add_poll: { id: 'poll_button.add_poll', defaultMessage: 'Add a poll' },
remove_poll: { id: 'poll_button... |
webpack/scenes/AnsibleCollections/Details/AnsibleCollectionDetails.js | snagoor/katello | import React, { Component } from 'react';
import BreadcrumbsBar from 'foremanReact/components/BreadcrumbBar';
import { PropTypes } from 'prop-types';
import { translate as __ } from 'foremanReact/common/I18n';
import api from '../../../services/api';
import ContentDetails from '../../../components/Content/Details/Conte... |
docs/src/app/components/pages/components/Paper/ExampleSimple.js | nathanmarks/material-ui | import React from 'react';
import Paper from 'material-ui/Paper';
const style = {
height: 100,
width: 100,
margin: 20,
textAlign: 'center',
display: 'inline-block',
};
const PaperExampleSimple = () => (
<div>
<Paper style={style} zDepth={1} />
<Paper style={style} zDepth={2} />
<Paper style={s... |
docs/client.js | sheep902/react-bootstrap | import 'bootstrap/less/bootstrap.less';
import './assets/docs.css';
import './assets/style.css';
import './assets/carousel.png';
import './assets/logo.png';
import './assets/favicon.ico';
import './assets/thumbnail.png';
import './assets/thumbnaildiv.png';
import 'codemirror/mode/htmlmixed/htmlmixed';
import 'codemir... |
app/containers/LocaleToggle/index.js | zuban/zuban-boilerplate | /*
*
* LanguageToggle
*
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import Toggle from 'components/Toggle';
import Wrapper from './Wrapper';
import messages from './messages';
import { appLocales } from '../../i18n';
import { changeLocale } from ... |
src/svg-icons/av/skip-previous.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvSkipPrevious = (props) => (
<SvgIcon {...props}>
<path d="M6 6h2v12H6zm3.5 6l8.5 6V6z"/>
</SvgIcon>
);
AvSkipPrevious = pure(AvSkipPrevious);
AvSkipPrevious.displayName = 'AvSkipPrevious';
AvSkipPrevious.mu... |
app/components/EyesProtect/EyesNotify.js | SuperDOgePx/chrome-extension-react | import React, { Component } from 'react';
import { unmountComponentAtNode } from 'react-dom';
import { setChromeLocalStore, getChromeLocalStore } from '../../utils/settings';
export default class EyesNotify extends Component {
constructor(props) {
super(props);
this.state = { timer: 30 };
this.notiInterva... |
docs/app/Examples/addons/Radio/Types/RadioExampleRadio.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Radio } from 'semantic-ui-react'
const RadioExampleRadio = () => (
<Radio label='Make my profile visible' />
)
export default RadioExampleRadio
|
src/layouts/index.js | getinsomnia/insomnia.rest | import React from 'react';
import Helmet from 'react-helmet';
import './styles/index.less';
import Navbar from '../partials/navbar';
import Footer from '../partials/footer';
import Title from '../partials/title';
import { isLoggedIn } from '../lib/session';
import { site } from '../config';
import { parse as urlParse }... |
src/public/js/main.js | datalocale/dataviz-finances-gironde | import { createStore } from 'redux';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { Record, Map as ImmutableMap, List, Set as ImmutableSet } from 'immutable';
import { csv, xml, json } from 'd3-fetch';
import page from 'page';
import {urls, FINANCE_DATA, A... |
src/components/thumbnail.js | menthena/project-a | import React from 'react';
import { Link } from 'react-router';
const Thumbnail = ({ thumbnailURL }) => (
<div className="thumbnail">
<img src={thumbnailURL} />
</div>
);
Thumbnail.propTypes = {
thumbnailURL: React.PropTypes.string.isRequired
};
export default Thumbnail;
|
src/scripts/Playlist.js | Ribeiro/yoda | 'use strict';
import React from 'react';
import PlaylistHeader from './PlaylistHeader';
import PlaylistVideos from './PlaylistVideos';
const PureRenderMixin = React.addons.PureRenderMixin;
export default React.createClass({
propTypes: {
playlist: React.PropTypes.array.isRequired,
},
mixins: [PureRenderMix... |
example/example/index.android.js | JimmyDaddy/doctorstrange-updater | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Alert
} from 'react-native';
import DoctorstrangeUpdater from 'doctorstrange-updater';
console.log(DoctorstrangeUpdater);
export d... |
src/components/type-link.js | tylerchilds/pokedex | import React from 'react';
import { Link } from 'react-router';
export default class TypeLink extends React.Component {
render() {
const type = this.props.type.name || this.props.type;
return (
<Link to={`/type/${type}`} className={`type ${type.toLowerCase()}`}>{type}</Link>
);
}
}
|
src/js/containers/NotFound/index.js | ClubExpressions/poc-expression.club | import React, { Component } from 'react';
import { Link } from 'react-router';
export default class NotFound extends Component {
render () {
return (
<div className='container text-center'>
<h1>This is a demo 404 page!</h1>
<hr />
<Link to='/'>Back To Home View</Link>
</div>
... |
src/components/app.js | jameswatkins77/React-Blogger-App | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<div>
{this.props.children}
</div>
);
}
}
|
src/main.js | vesparny/react-kickstart | import 'sanitize.css/sanitize.css'
import React from 'react'
import ReactDOM from 'react-dom'
const rootEl = document.getElementById('root')
let render = () => {
const Root = require('./components/Root').default
ReactDOM.render(<Root />, rootEl)
}
if (module.hot) {
const renderApp = render
const renderError ... |
blueprints/smart/files/__root__/containers/__name__.js | donnycrash/react-redux-electron-starter-kit | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
type Props = {
}
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render() {
return (
<div></div>
)
}
}
const mapStateToProps = (state) => {
return {}
}
const ... |
material-ui/src/cookbook/2-appbar/AppbarWithComplexMenu.js | Muzietto/react-playground | import React from 'react';
import { fade, makeStyles } from '@material-ui/core/styles';
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
import IconButton from '@material-ui/core/IconButton';
import Typography from '@material-ui/core/Typography';
import InputBase from '@ma... |
src/svg-icons/editor/format-color-text.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatColorText = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".36" d="M0 20h24v4H0z"/><path d="M11 3L5.5 17h2.25l1.12-3h6.25l1.12 3h2.25L13 3h-2zm-1.38 9L12 5.67 14.38 12H9.62z"/>
</SvgIcon>
);... |
src/containers/Address/index.js | wvfan/HSBC | import * as F from 'firebase';
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { withRouter } from 'react-router';
import Page from 'components/Page';
import Header from 'components/Page/Header';
import Body from '... |
src/widgets/JSONForm/widgets/TimePicker.js | sussol/mobile | /* eslint-disable no-console */
import React from 'react';
import { TextInput } from 'react-native';
import moment from 'moment';
import PropTypes from 'prop-types';
import { DatePickerButton } from '../../DatePickerButton';
import { FlexRow } from '../../FlexRow';
import { useJSONFormOptions } from '../JSONFormContex... |
app/src/display/DisplaySearch.js | sfelderman/inverted-index | import React from 'react';
import {connect} from 'react-redux';
import {clean} from '../util/createDict';
import FileBlock from './FileBlock';
let DisplaySearch = ({dict, files, query}) => {
let result = dict[query.toLowerCase()];
if (!result) {
result = dict[clean(query)];
}
if (!result) {
result = ''... |
fluxible-router/app.js | eriknyk/flux-examples | /**
* Copyright 2014, Yahoo! Inc.
* Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
*/
import React from 'react';
import Fluxible from 'fluxible';
import Application from './components/Application';
import RouteStore from './stores/RouteStore';
import ApplicationStore from... |
ui/src/main/js/pages/Home.js | apache/aurora | import React from 'react';
import Breadcrumb from 'components/Breadcrumb';
import Loading from 'components/Loading';
import RoleList from 'components/RoleList';
export default class HomePage extends React.Component {
constructor(props) {
super(props);
this.state = {cluster: '', roles: [], loading: true};
... |
app/src/App.js | kawallis/omni_mock | import React, { Component } from 'react';
import './App.css';
import NavBar from './components/navbar';
import DateTimeContainer from './DateSelector/DateTimeContainer';
class App extends Component {
render() {
return (
<div className="App">
<NavBar />
<div className="DateContainer">
... |
MobileApp/App/components/closetradenext.js | VowelWeb/CoinTradePros.com | /**
* CoinTradePros.com React Native App
* http://www.cointradepros.com/
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
View,
Image,
TouchableOpacity,
PixelRatio,
Text,
TouchableHighlight,
ScrollView,
TextInput,
Picker,
} from 'react-native';
import ImagePicker ... |
src/components/block-types/block-types.js | xutou12/draft-richer |
import React from 'react';
import Icon from '../icons';
import Header from './header';
import Button from '../button';
import ButtonPopover from '../button-popover';
/**
* Draft.DefaultDraftBlockRenderMap
* <h1/> header-one
* <h2/> header-two
* <h3/> header-three
* <h4/> header-four
* <h5/> header-five
* <h... |
packages/mineral-ui-icons/src/IconEnhancedEncryption.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconEnhancedEncryption(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {..... |
docs/app/Examples/collections/Menu/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'
// TODO: Add example with <Popup> after it will be added
const Types = () => {
return (
<ExampleSection title='Types'>
<C... |
components/stories/header.js | kadira-samples/react-storybook-demo | import React from 'react';
import Header from '../Header';
import { storiesOf, action } from '@kadira/storybook';
storiesOf('Header', module)
.add('default view', () => {
return (
<div className="todoapp">
<Header addTodo={action('Add Todo')}/>
</div>
);
});
|
packages/reactor-kitchensink/src/examples/Charts/Area/FullStackedArea/FullStackedArea.js | dbuhrman/extjs-reactor | import React, { Component } from 'react';
import { Container } from '@extjs/ext-react';
import { Cartesian } from '@extjs/ext-react-charts';
import ChartToolbar from '../../ChartToolbar';
export default class FullStackedAreaChartExample extends Component {
constructor(){
super();
}
store = Ext.cre... |
actor-apps/app-web/src/app/components/ToolbarSection.react.js | webwlsong/actor-platform | import React from 'react';
import ReactMixin from 'react-mixin';
import { IntlMixin } from 'react-intl';
import classnames from 'classnames';
import ActivityActionCreators from 'actions/ActivityActionCreators';
import DialogStore from 'stores/DialogStore';
import ActivityStore from 'stores/ActivityStore';
//import A... |
packages/material-ui-icons/src/AirlineSeatLegroomExtra.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let AirlineSeatLegroomExtra = props =>
<SvgIcon {...props}>
<path d="M4 12V3H2v9c0 2.76 2.24 5 5 5h6v-2H7c-1.66 0-3-1.34-3-3zm18.83 5.24c-.38-.72-1.29-.97-2.03-.63l-1.09.5-3.41-6.98c-.34-.68-1.03-1.12-1.79-1.... |
src/scotch-night/App.js | SeattleScotchSociety/ScotchNight | // @flow
import React, { Component } from 'react';
import Expo from 'expo';
import { Provider } from 'react-redux';
import Store from './app/Store';
import ScotchNight from './app/ScotchNight';
export default class App extends Component {
constructor() {
super();
this.state = {
isLoadi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.