path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/screens/types/TopTabs.js | nanomish/a9 | import React from 'react';
import {PixelRatio} from 'react-native';
class TopTabs extends React.Component {
static navigatorStyle = {
topTabTextColor: '#ffffff',
selectedTopTabTextColor: '#ff505c',
// Icons
topTabIconColor: '#ffffff',
selectedTopTabIconColor: '#ff505c',
// Tab indicator
... |
src/routes/chart/barChart/index.js | cuijiaxu/react-front | import React from 'react'
import PropTypes from 'prop-types'
import { Row, Col, Card, Button } from 'antd'
import Container from '../Container'
import {
BarChart,
Bar,
XAxis,
YAxis,
CartesianGrid,
Tooltip,
Legend,
} from 'recharts'
const data = [
{
name: 'Page A',
uv: 4000,
pv: 2400,
am... |
actor-apps/app-web/src/app/components/modals/Preferences.react.js | daodaoliang/actor-platform | import _ from 'lodash';
import React from 'react';
import Modal from 'react-modal';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import { Styles, FlatButton, RadioButtonGroup, RadioButton, DropDownMenu } from 'material-ui';
import { KeyCodes } from 'constants/ActorAp... |
appcode/App.js | blumanski/react-native-firebase-facebook-login-example | import React, { Component } from 'react';
import {
StyleSheet,
Switch,
Text,
TextInput,
TouchableHighlight,
View,
Navigator
} from 'react-native'
// third party
import {FBLogin, FBLoginManager} from 'react-native-facebook-login'
import DrawerLayout from 'react-native-drawer-layout'
// menu
import SideMen... |
app/javascript/mastodon/features/pinned_statuses/index.js | Chronister/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchPinnedStatuses } from '../../actions/pin_statuses';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../compon... |
src/components/TempProdVsCost/index.js | hackoregon/housing-frontend | import React from 'react';
import StoryCard from '@hackoregon/component-library/lib/StoryCard/StoryCard';
import LineChart from './LineChart';
import eastData from './east.json';
import northData from './north.json';
import allData from './all.json';
const colors = [undefined, '#a7a7a7', '#99b2ce', '#3b5d85', '#ab07... |
packages/material-ui-icons/src/OndemandVideo.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let OndemandVideo = props =>
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-6l-7 4V7z" />
</SvgIcon>;
Ond... |
test/client/components/input.js | berkeley-homes/near-miss-positive-intervention | import test from 'tape'
import React from 'react'
import { shallow } from 'enzyme'
import NameInput from '../../../src/client/components/input.js'
test('Name input component includes input', t => {
let valueSet
let value = 'value'
let label = 'label'
let onChange = () => {
valueSet = newValue
}
const w... |
ajax/libs/react-instantsearch/4.1.0-beta.2/Connectors.js | tholu/cdnjs | /*! ReactInstantSearch 4.1.0-beta.2 | © 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' && ... |
src/components/HomepageComponent.js | cised-ca/se-dir-frontend-react | 'use strict';
import React from 'react';
import { Link, withRouter } from 'react-router';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
import SearchForm from './SearchFormComponent.js';
import SearchResults from './SearchResultsComponent.js';
import { translate } from 'react-i18next';
cl... |
local-cli/templates/HelloNavigation/views/welcome/WelcomeScreen.js | shrutic123/react-native | 'use strict';
import React, { Component } from 'react';
import {
Image,
Platform,
StyleSheet,
} from 'react-native';
import ListItem from '../../components/ListItem';
import WelcomeText from './WelcomeText';
export default class WelcomeScreen extends Component {
static navigationOptions = {
title: 'Welc... |
src/js/components/icons/base/DocumentPpt.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
src/svg-icons/av/pause.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPause = (props) => (
<SvgIcon {...props}>
<path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/>
</SvgIcon>
);
AvPause = pure(AvPause);
AvPause.displayName = 'AvPause';
AvPause.muiName = 'SvgIcon';
export default AvP... |
docs/src/modules/components/AdCarbon.js | lgollut/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import loadScript from 'docs/src/modules/utils/loadScript';
import AdDisplay from 'docs/src/modules/components/AdDisplay';
import { adStylesObject } from 'docs/src/modules/components/ad.styles';
const useStyles = makeStyles((theme) => {
... |
clients/packages/admin-client/src/mobrender/components/navbar/menu-items.js | nossas/bonde-client | import PropTypes from 'prop-types';
import React from 'react';
import classnames from 'classnames';
// Dependency modules
import { DropdownMenu } from '../../../components/dropdown-menu';
import { NavbarEditionWrapper } from '../../../components/navigation/navbar';
const MenuItems = ({ blocks, mobile, ...menuProps })... |
components/time_picker/ClockHand.js | rubenmoya/react-toolbox | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { angle360FromPositions } from '../utils/utils';
import events from '../utils/events';
import prefixer from '../utils/prefixer';
class Hand extends Component {
static propTypes = {
angle: PropTypes.number,
className: PropTyp... |
web/src/js/__tests__/ducks/tutils.js | mhils/mitmproxy | import React from 'react'
import { combineReducers, applyMiddleware, createStore as createReduxStore } from 'redux'
import thunk from 'redux-thunk'
import configureStore from 'redux-mock-store'
import { ConnectionState } from '../../ducks/connection'
import TFlow from './_tflow'
const mockStore = configureStore([thunk... |
app/containers/App/index.js | Chaos-Zero/GoemonInternational | /**
*
* 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)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
src/components/slider/slides/slide/section/candidates/candidate/Candidate.js | yajiex/douban-Annual | import React from 'react';
import './Candidate.css';
const Candidate = (props) => (
<a href={props.link}
className={props.isPeopleSection ? "" : "candidate"}
target="_blank"
title={props.name}>
<div className="candidate-num">
<span>{props.num}</span>
</div>
<svg className="candidate-... |
src/svg-icons/content/link.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentLink = (props) => (
<SvgIcon {...props}>
<path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.... |
src/components/ListViewWithStatus.js | richeterre/jumu-nordost-react-native | // @flow
import React from 'react'
import { ListView, RefreshControl, StyleSheet, View } from 'react-native'
import ListStatusView from './ListStatusView'
import Separator from './Separator'
type Props = {
dataSource: ListView.DataSource,
onRefresh: () => any,
refreshing: boolean,
renderRow: (rowData: any, s... |
wwwroot/app/src/components/MyRecipesPage/AddNewRecipe.js | AlinCiocan/PlanEatSave | import React, { Component } from 'react';
import { ApiRequest } from '../../services/ApiRequest';
import Routes from '../../services/Routes';
import TopBar from '../TopBar/TopBar';
import Recipe from './Recipe';
import EmptyRecipeNameAlert from './EmptyRecipeNameAlert';
export default class AddNewRecipe extends Compon... |
src/js/containers/DevTools.js | mariano54/startuply | import React from 'react';
import { createDevTools } from 'redux-devtools';
// Monitors are separate packages, and you can make a custom one
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
import SliderMonitor from 'redux-slider-monitor';
// createDevTools t... |
app/javascript/mastodon/features/compose/index.js | Arukas/mastodon | import React from 'react';
import ComposeFormContainer from './containers/compose_form_container';
import NavigationContainer from './containers/navigation_container';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import { mountCom... |
assets/jqwidgets/demos/react/app/tabs/collapsible/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxTabs from '../../../jqwidgets-react/react_jqxtabs.js';
class App extends React.Component {
render () {
let tabsHTML = `
<ul>
<li style="margin-left: 30px;">Node.js</li>
<li>JavaServer Pages</li>
... |
src/containers/statistics/statistics.js | kovalchukevgeny/wallet | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import CurrencyRate from './../../components/currency-rate/currency-rate.jsx';
import TransactionsGraph from './../../components/transactions-graph/transactions-graph.jsx';
import TransactionsResults from './../../com... |
components/animals/levhartCejlonsky.adult.js | marxsk/zobro | import React, { Component } from 'react';
import { Text } from 'react-native';
import styles from '../../styles/styles';
import InPageImage from '../inPageImage';
import AnimalText from '../animalText';
import AnimalTemplate from '../animalTemplate';
const IMAGES = [
require('../../images/animals/levhartCejlonsky/0... |
app/javascript/mastodon/components/avatar.js | nonoz/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class Avatar extends React.PureComponent {
static propTypes = {
src: PropTypes.string.isRequired,
staticSrc: PropTypes.string,
size: PropTypes.number.isRequired,
style: PropTypes.object,
animate: PropTypes.bool,
in... |
docs/app/Examples/collections/Grid/Variations/GridExampleVerticalAlignmentRow.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Grid, Image } from 'semantic-ui-react'
const GridExampleVerticalAlignmentRow = () => (
<Grid columns={4} centered>
<Grid.Row verticalAlign='top'>
<Grid.Column>
<Image src='http://semantic-ui.com/images/wireframe/image.png' />
</Grid.Column>
<Grid.Colum... |
examples/pinterest/app.js | jamiehill/react-router | import React from 'react';
import { Router, Route, IndexRoute, Link } from 'react-router';
var PICTURES = [
{ id: 0, src: 'http://placekitten.com/601/601' },
{ id: 1, src: 'http://placekitten.com/610/610' },
{ id: 2, src: 'http://placekitten.com/620/620' }
];
var Modal = React.createClass({
styles: {
posi... |
src/containers/LoseBillAnalysis/ScaleAnalysis/ScaleAnalysis.js | UncleYee/crm-ui | import React from 'react';
import ReduxTableSelect from 'components/Form/NoLabel/ReduxTableSelect';
import DateRangePicker from 'components/DatePicker/DateRangePicker';
import ScaleChart from './ScaleChart';
import ScaleTable from './ScaleTable';
import Funnel from 'components/SVG/Funnel';
import Button from 'react-boo... |
src/components/containers/micro-board-brokerage-gain-details-container.js | HuangXingBin/goldenEast | import React from 'react';
import { Button, AutoComplete ,DatePicker } from 'antd';
import './user-list-container.css';
import UserListTable from '../views/board-market-brokerage-gain-details-table';
import { connect } from 'react-redux';
import store from '../../store';
import { updateMicroBoardBrokerageUserDetailSear... |
react-js/redux-blog/src/index.js | vanyaland/react-demos | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { Router, browserHistory } from 'react-router';
import promise from 'redux-promise';
import reducers from './reducers';
import routes from './routes';
const... |
components/RegisterForm/index.js | bmagic/acdh-client | import React from 'react'
import PropTypes from 'prop-types'
import { Field, reduxForm } from 'redux-form/immutable'
import validate from './validate'
import RenderField from 'components/RenderField'
let RegisterForm = (props) => {
const { handleSubmit, invalid } = props
return (
<form onSubmit={handleSubmit}>... |
src/parser/monk/brewmaster/modules/spells/azeritetraits/StaggeringStrikes.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import { calculateAzeriteEffects } from 'common/stats';
import { formatNumber } from 'common/format';
import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox';
import ItemHealingDo... |
src/svg-icons/action/favorite-border.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFavoriteBorder = (props) => (
<SvgIcon {...props}>
<path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 2... |
email-contacts/src/components/app.js | WendySanarwanto/udemy-modern-react-with-redux | import React, { Component } from 'react';
import EmailList from './email-list';
export default class App extends Component {
render() {
return (
<div className="container">
<h3>Email Directory</h3>
<EmailList />
</div>
);
}
}
|
src/Search/Search.js | skyiea/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import InputWithOptions from '../InputWithOptions';
import Search2 from '../Icons/dist/components/Search2';
import WixComponent from '../BaseComponents/WixComponent';
import styles from './Search.scss';
/**
* Search component with suggestions based on i... |
src/components/Main/Main.js | ArvinH/react-pwa-starterkit | import React from 'react';
import PropTypes from 'prop-types';
import AppBar from 'material-ui/AppBar';
const Main = props => (
<div>
<AppBar
title="Github Finder"
showMenuIconButton={false}
/>
<div>
{props.children}
</div>
</div>
);
Main.propTypes = {
children: PropTypes.objec... |
src/react/puppeteer/src/js/views/add-device-modal/HostInputView.js | nicholastmosher/pa_puppeteer | /**
* @author Nick Mosher <nicholastmosher@gmail.com>
*/
import React from 'react';
import classNames from 'classnames';
export default function HostnameInputView(props) {
const helpText = props.validHost ? null :
<span id="helpHost" className="help-block">Invalid hostname</span>;
return (
<div className... |
src/routes/Home/components/HomeView.js | taikongfeizhu/webpack-develop-startkit | import React from 'react'
import PropTypes from 'prop-types'
import CustomCard from 'components/CustomCard'
import './HomeView.less'
class HomeView extends React.Component {
constructor (props) {
super(props)
}
render () {
// const { location, params } = this.props
return (
<div className='gut... |
src/component/layout/SideBarMenuItem.js | babizhu/webApp | /**
* 菜单条目信息
* Created by liu_k on 2015/12/10.
*/
import React, { Component } from 'react';
import ReactDom from "react-dom"
import { Icon } from 'antd';
import SideBarSubMenu from './SideBarSubMenu';
class SideBarMenuItem extends Component {
state = {
showSubMenu: false,//此开关专用于鼠标滑过导致 子菜单的显示与否
... |
index.android.js | buildreactnative/assemblies | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class assembliesTutorial extends Component {
render() {
return (
<View style={styles.container}>
... |
entry_types/scrolled/package/src/widgets/defaultNavigation/LegalInfoMenu.js | tf/pageflow | import React from 'react';
import classNames from 'classnames';
import headerStyles from "./DefaultNavigation.module.css";
import styles from "./LegalInfoMenu.module.css";
import InfoIcon from './icons/information.svg';
import {
Tooltip,
useFileRights,
useLegalInfo,
useCredits,
useI18n
} from 'pageflow-scrol... |
packages/react-error-overlay/src/components/NavigationBar.js | 0xaio/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.
*/
/* @flow */
import React from 'react';
import { red, redTransparent } from '../styles';
const navigationBarStyle = {
marginBottom: '0... |
sundin/index.ios.js | tkfeng/mppCalc | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry
} from 'react-native';
import Application from './source/application';
AppRegistry.registerComponent('sundin', () => Application);
|
client/routes.js | acguanacaste/liomysSalvini | /* eslint-disable global-require */
import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './modules/App/App';
import FormCsv from './components/FormCsv';
// require.ensure polyfill for node
if (typeof require.ensure !== 'function') {
require.ensure = function requireModule(dep... |
frontend/src/Components/Link/IconButton.js | Radarr/Radarr | import classNames from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import Icon from 'Components/Icon';
import Link from './Link';
import styles from './IconButton.css';
function IconButton(props) {
const {
className,
iconClassName,
name,
kind,
size,
isSpinning... |
src/main/resources/static/components/schedule.js | dempey/pioneer | import React from 'react';
export default class Schedule extends React.Component {
render() {
return (
<div>
<p>Schedule a walking route here</p>
</div>
)
}
} |
src/client.js | TribeMedia/react-redux-universal-hot-example | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createStore from './redux/create';
import ApiClient from './helpers/ApiClient';
import {Provider} from 'react-redux';
imp... |
src/routes.js | gihrig/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,
Widgets,
About,
Login,
LoginSuccess,
Survey,
NotFound,
} from 'containers';
export default (store) ... |
src/components/antd/rate/index.js | hyd378008136/olymComponents | import React from 'react';
import PropTypes from 'prop-types';
import RcRate from 'rc-rate';
import Icon from '../icon';
export default class Rate extends React.Component {
render() {
return React.createElement(RcRate, Object.assign({}, this.props));
}
}
Rate.propTypes = {
prefixCls: PropTypes.strin... |
src/components/common/svg-icons/image/leak-add.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLeakAdd = (props) => (
<SvgIcon {...props}>
<path d="M6 3H3v3c1.66 0 3-1.34 3-3zm8 0h-2c0 4.97-4.03 9-9 9v2c6.08 0 11-4.93 11-11zm-4 0H8c0 2.76-2.24 5-5 5v2c3.87 0 7-3.13 7-7zm0 18h2c0-4.97 4.03-9 9-9v-2c-... |
stepper-wof-react-web/src/App.js | jforge/stepper-wof-react | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
var Tinkerforge = require('tinkerforge');
var deg = 0;
var maxVelocity = 15000;
var maxAccel = 50000;
var maxDecel = 4000;
function getRandomInt(min, max) {
min = Math.ceil(min);
max = Math.floor(m... |
content/gocms/src/admin/components/basicComponent/BasicComponent.js | menklab/goCMS | 'use strict';
import React from 'react';
import {connect} from 'react-redux'
class BasicComponent extends React.Component {
constructor(props) {
super(props);
this.state = {};
}
componentDidMount() {
}
render() {
return (
<p className="basic-component">Basic ... |
demo/examples/RowColumn.js | OnsenUI/react-onsenui | import React from 'react';
import {
Page,
Row,
Col
} from '../../src/index.js';
import MyToolbar from './MyToolbar';
export default class extends React.Component {
constructor(props) {
super(props);
this.state = {
modifier: 'material'
};
}
toggleModifier() {
this.setState({
... |
app/react-icons/fa/chevron-circle-up.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaChevronCircleUp extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m29 25.4l2.3-2.3q0.4-0.4 0.4-1t-0.4-1l-10.2-10.1q-0.4-0.4-1-0.4t-1 0... |
src/DetailsSection/CardList/DateDisplay.js | conferenceradar/list | import React from 'react';
import { dateFormat } from '../../utils/stringFormat';
import { DateWrapper } from './styles';
const DateDisplay = ({start, end, title}) => {
if (!start) {
return null;
}
return (
<DateWrapper>
<small>{dateFormat(start)}</small>
<small>{dateFormat(end)}</small>
... |
packages/react-router-website/modules/components/SourceViewer.js | justjavac/react-router-CN | /*eslint-disable react/no-danger*/
import React from 'react'
import 'prismjs/themes/prism-tomorrow.css'
import { Block } from 'jsxstyle'
const SourceViewer = ({ code, ...rest }) => (
<Block
component="pre"
background="rgb(45, 45, 45)"
color="white"
margin="0"
overflow="auto"
{...rest}
>
... |
storiesDatatypes/helpers/SixHrScaleSVGDecorator.js | tidepool-org/viz | /*
* == BSD2 LICENSE ==
* Copyright (c) 2017, Tidepool Project
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the associated License, which is identical to the BSD 2-Clause
* License as published by the Open Source Initiative at opensource.org.
*
* This program ... |
src/browser/auth/Email.js | TheoMer/este | // @flow
import type { State } from '../../common/types';
import React from 'react';
import buttonsMessages from '../../common/app/buttonsMessages';
import emailMessages from '../../common/auth/emailMessages';
import { FormattedMessage, injectIntl } from 'react-intl';
import { compose } from 'ramda';
import { connect }... |
src/index.js | dotNomad/ignota-dice-roller | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import Ignota from './Ignota';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(<Ignota />, document.getElementById('root'));
// If you want your app to work offline and load faster, you can change
// unregister() to r... |
apps/marketplace/components/BuyerBriefFlow/Overview/OverviewHeaderDraftActionsList.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react'
import PropTypes from 'prop-types'
import { hasPermission } from 'marketplace/components/helpers'
import { rootPath } from 'marketplace/routes'
import styles from '../Overview.scss'
const OverviewHeaderDraftActionsList = props => {
const { brief, onDeleteClick, isPartOfTeam, isTeamLead, t... |
packages/forms/src/UIForm/fields/Text/displayMode/TextMode.component.js | Talend/ui | import PropTypes from 'prop-types';
import React from 'react';
import { TextMode as FieldTemplate } from '../../FieldTemplate';
export default function TextMode(props) {
const { id, schema, value } = props;
const { title, labelProps, type } = schema;
return (
<FieldTemplate id={id} label={title} labelProps={labe... |
examples/todomvc/containers/TodoApp.js | Creamov/redux | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { Connector } from 'redux/react';
import Header from '../components/Header';
import MainSection from '../components/MainSection';
import * as TodoActions from '../actions/TodoActions';
export default class TodoApp extends Comp... |
examples/with-firebase-functions/src/client.js | jaredpalmer/react-production-starter | import React from 'react';
import { hydrate } from 'react-dom';
import App from './App';
hydrate(<App />, document.getElementById('root'));
if (module.hot) {
module.hot.accept();
}
|
src/index.js | davitk/storica | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { Router, Route, IndexRoute, browserHistory} from 'react-router';
import App from './components/app';
import Home from './containers/home';
import About from... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/PureComponent.js | facebook/flow | // @flow
import React from 'react';
class MyComponent extends React.PureComponent<DefaultProps, Props, State> {
static defaultProps: DefaultProps = {};
state: State = {};
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extend... |
shared/components/DemoApp/AsyncAboutRoute/AboutRoute.js | diondirza/react-universally | import React from 'react';
import Helmet from 'react-helmet';
function AboutRoute() {
return (
<div style={{ textAlign: 'center' }}>
<Helmet>
<title>About</title>
</Helmet>
<p>Produced with ❤️</p>
<p>
View our contributors list on our
{' '}
<a href="https... |
src/svg-icons/action/rowing.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRowing = (props) => (
<SvgIcon {...props}>
<path d="M8.5 14.5L4 19l1.5 1.5L9 17h2l-2.5-2.5zM15 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 20.01L18 24l-2.99-3.01V19.5l-7.1-7.09c-.31.05-.61.07-.91.07v-... |
src/svg-icons/maps/local-parking.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalParking = (props) => (
<SvgIcon {...props}>
<path d="M13 3H6v18h4v-6h3c3.31 0 6-2.69 6-6s-2.69-6-6-6zm.2 8H10V7h3.2c1.1 0 2 .9 2 2s-.9 2-2 2z"/>
</SvgIcon>
);
MapsLocalParking = pure(MapsLocalParking... |
src/components/SettingsDictionaries.js | rsimmons/immersion-player | import React, { Component } from 'react';
import Button from './Button';
import './SettingsDictionaries.css';
export default class SettingsDictionaries extends Component {
handleMove = (idx, direction) => {
const names = [...this.props.dictionaries.keys()];
if (direction === -1) {
if (idx === 0) {
... |
src/client/components/quizz/QuizzStepHead.js | JulienPradet/quizzALJP | import React from 'react'
import StepPathForm from './StepPathForm'
import AddStepForm from './AddStepForm'
import Block from '../ui/Block'
import StepButton from '../ui/form/Step'
import { Button } from '../ui/FormBase'
import { FormGroup } from '../ui/FormLayout'
export default class QuizzStepHead extends React.Com... |
src/views/components/Switch.js | physiii/open-automation | import React from 'react';
import PropTypes from 'prop-types';
import './Switch.css';
export const Switch = (props) => {
const {isOn, showLabels, offLabel, onLabel, ...inputProps} = {...props};
return (
<div styleName={'container' + (props.disabled ? ' isDisabled' : '')}>
{showLabels && <span styleName="offLab... |
mxcube3/ui/components/SampleQueue/SampleQueueSearch.js | mguijarr/mxcube3 | import React, { Component } from 'react';
import { reduxForm } from 'redux-form';
import { Input, Button, Glyphicon } from 'react-bootstrap';
class SampleQueueSearch extends Component {
render() {
const { fields: { sampleName } } = this.props;
const innerSearchIcon = (
<Button><Glyphicon glyph="searc... |
newclient/scripts/components/dynamic-icons/plus-icon/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
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
Lic... |
app.js | jacobhamblin/drew | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import 'babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
import Location from '.... |
gallery-by-react/src/index.js | ice139999361/mohoo | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
imports/ui/pages/Account/pages/VerifyEmail/index.js | ShinyLeee/meteor-album-app | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import ViewLayout from '/imports/ui/layouts/ViewLayout';
import PrimaryNavHeader from '/imports/ui/components/NavHeader/Primary';
import { Content } from './styles';
export default class VerifyEmailPa... |
src/components/calendarBody.js | cheeki/react-calendar | /**
* Created by 1001196 on 16. 1. 20..
*/
import React from 'react';
import CalendarLabel from './calendarLabel';
import CalendarCell from './calendarCell'
export default class CalendarBody extends React.Component {
constructor () {
super ();
}
shouldComponentUpdate (nextProps, nextState) {
... |
src/shared/components/authenticatedRoute/authenticatedRoute.js | miaket/operationcode_frontend | import React from 'react';
import PropTypes from 'prop-types';
import { Route, Redirect } from 'react-router-dom';
const AuthenticatedRoute = (props) => {
if (!props.isLoggedIn) {
return <Redirect to="/login" />;
}
return <Route component={props.component} {...props} />;
};
AuthenticatedRoute.propTypes = {
... |
app/javascript/components/conditions/DisplayLogicFormField/injector.js | thecartercenter/elmo | import React from 'react';
import PropTypes from 'prop-types';
import { Provider } from 'mobx-react';
import ConditionSetModel from '../ConditionSetFormField/model';
import { provideConditionSetStore } from '../ConditionSetFormField/utils';
import DisplayLogicFormField from './component';
let forcedResetNonce = 0;
/... |
src/components/App/setViewport.js | masterfung/react-twitter | /*
* React.js Starter Kit
* Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC.
*
* 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, { Component } from 'react'; // eslint-disable-line no-unused-vars
import { ... |
pootle/static/js/admin/components/ItemTable.js | dwaynebailey/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 ItemTableRow from './It... |
client/src/components/TextField/tests/TextField-story.js | silverstripe/silverstripe-admin | import React from 'react';
// eslint-disable-next-line import/no-extraneous-dependencies
import { setAddon, storiesOf } from '@storybook/react';
import { withKnobs, number, text } from '@storybook/addon-knobs';
import JSXAddon from 'storybook-addon-jsx';
setAddon(JSXAddon);
import TextField from 'components/TextField... |
src/components/header.js | thepeted/dungeon-crawler | import React from 'react';
export default ({level}) => {
return (
<div className="strip">
<h1>
<span
className={`title title-${level}`}
>
THE GRID
</span> - Roguelike
</h1>
</div>
);
};
|
12/notes/src/App.js | nanohop/hop_into_react | import React, { Component } from 'react';
import './App.css';
import Notes from './Notes';
class App extends Component {
render() {
return (
<Notes />
)
}
}
export default App;
|
react-redux-demo/todos-flow/src/index.js | fengnovo/webpack-react | // @flow
import React from 'react'
import { render } from 'react-dom'
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import App from './components/App'
import reducer from './reducers'
import type { Store } from './types'
const store: Store = createStore(reducer)
render(
<Provider store=... |
src/svg-icons/notification/no-encryption.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationNoEncryption = (props) => (
<SvgIcon {...props}>
<path d="M21 21.78L4.22 5 3 6.22l2.04 2.04C4.42 8.6 4 9.25 4 10v10c0 1.1.9 2 2 2h12c.23 0 .45-.05.66-.12L19.78 23 21 21.78zM8.9 6c0-1.71 1.39-3.1 3.1... |
ui/src/main/js/components/JobStatus.js | rdelval/aurora | import React from 'react';
import CronJobPreview from 'components/CronJobPreview';
import JobConfig from 'components/JobConfig';
import PanelGroup from 'components/Layout';
import Tabs, { Tab } from 'components/Tabs';
import TaskList from 'components/TaskList';
import { isNully, sort } from 'utils/Common';
import { i... |
src/shared/components/grid/gridItem.js | namroodinc/contentful-react-mobx-post | import React from 'react';
export default class GridItem extends React.Component {
render() {
const { col, title, align } = this.props;
const alignClassName = align === 'right' && align !== 'left' ? `grid--align-right` : `grid--align-left`;
const className = col ? `grid grid__${col} ${alignClassName}` : ... |
src/svg-icons/image/panorama-wide-angle.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePanoramaWideAngle = (props) => (
<SvgIcon {...props}>
<path d="M12 6c2.45 0 4.71.2 7.29.64.47 1.78.71 3.58.71 5.36 0 1.78-.24 3.58-.71 5.36-2.58.44-4.84.64-7.29.64s-4.71-.2-7.29-.64C4.24 15.58 4 13.78 4 12... |
docs/server.js | nickuraltsev/react-bootstrap | /* eslint no-console: 0 */
import 'colors';
import React from 'react';
import express from 'express';
import path from 'path';
import Router from 'react-router';
import routes from './src/Routes';
import httpProxy from 'http-proxy';
import metadata from './generate-metadata';
import ip from 'ip';
const development =... |
react/features/base/react/components/native/Button.js | bgrozev/jitsi-meet | /* @flow */
import React, { Component } from 'react';
import { Text, TouchableOpacity } from 'react-native';
type Props = {
/**
* React Elements to display within the component.
*/
children: React$Node | Object,
/**
* Handler called when the user presses the button.
*/
onValueCha... |
client/src/components/Tabs/Tab.js | silverstripe/silverstripe-admin | import React from 'react';
import { NavItem, NavLink } from 'reactstrap';
import classnames from 'classnames';
import PropTypes from 'prop-types';
/**
* Render an individual link for the tabset.
* @param {string} title
* @param {boolean} disabled
* @param {boolean} active
* @param {string} tabClassName
* @param ... |
cheesecakes/admin/admin/src/components/SupportUsBanner/index.js | strapi/strapi-examples | /**
*
* SupportUsBanner
*
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
import SupportUsTitle from 'components/SupportUsTitle';
import SupportUsCta from 'components/SupportUsCta';
import styles from './styles.scss';
function SupportUsBanner() {
return (
<div className={styles... |
js/components/fab/basic.js | YeisonGomez/RNAmanda |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { View, Platform } from 'react-native';
import { Container, Header, Title, Fab, Button, IconNB, Left, Right, Body, Icon } from 'native-base';
import { Actions } from ... |
Console/app/node_modules/rc-tree-select/es/Select.js | RisenEsports/RisenEsports.github.io | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _toConsumableArray from 'babel-runtime/helpers/toConsumableArray';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-ru... |
components/search-input.js | sgmap/inspire | import {format} from 'url'
import React from 'react'
import PropTypes from 'prop-types'
import {withRouter} from 'next/router'
import {translate} from 'react-i18next'
class SearchInput extends React.PureComponent {
static propTypes = {
router: PropTypes.shape({
push: PropTypes.func.isRequired,
query... |
client/src/Game/Prototype02/Walker/index.js | hold-the-door-game/Prototypes | import React from 'react';
import bind from 'react-autobind';
import WalkerSprite from './sprite';
import Game from 'Game/index.js'
class Walker extends React.Component {
constructor(props) {
super(props);
bind(this);
this.loadAnimations();
this.createSprite();
const canOpen = false;
const co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.