path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/routes/Character/components/CharacterTitle/CharacterTitle.js | warcraftlfg/warcrafthub-client | import React from 'react'
import classNames from 'classnames'
import './CharacterTitle.scss'
import horde from './assets/horde.png'
import alliance from './assets/alliance.png'
import { Media } from 'react-bootstrap'
export const CharacterTitle = (props) => (
<div className='character-title'>
<div className='con... |
step03/App/src/components/Questions/index.js | grokbot/intro-to-react-native | import React, { Component } from 'react';
import { Text, View, ScrollView, TouchableHighlight } from 'react-native';
import { Theme } from '../../theme';
import Results from '../Results';
export default class Questions extends Component {
renderChoices(choices, step) {
let newStep = step + 1;
let Component = Ques... |
packages/react-server-website/pages/docs.js | redfin/react-server | import React from 'react';
import {join} from "path";
import {RootContainer} from "react-server";
import Repo from "../lib/repo";
import DocTitle from "../components/page-title";
import DocBody from "../components/doc-body";
import DocContents from "../components/doc-contents";
import DataBundleCacheManager from '../m... |
examples/src/components/CustomComponents.js | mcls/react-select | import React from 'react';
import Select from 'react-select';
import Gravatar from 'react-gravatar';
const USERS = require('../data/users');
const GRAVATAR_SIZE = 15;
const GravatarOption = React.createClass({
propTypes: {
children: React.PropTypes.node,
className: React.PropTypes.string,
isDisabled: React.Pro... |
app/components/ReOrder/DeliveryLocation.js | theterra/newsb | import React from 'react';
import './ReSearch.css';
let searchBox;
export default class DeliveryLocation extends React.Component { //eslint-disable-line
constructor(props) {
super(props);
this.geolocate = this.geolocate.bind(this);
this.initAutocomplete = this.initAutocomplete.bind(this);
... |
src/components/app.js | Szalbik/reacttodos | import React, { Component } from 'react';
import AddTodoForm from './add_todo_form';
import TodoList from './todo_list';
export default class App extends Component {
render() {
return (
<div>
<AddTodoForm />
<TodoList />
</div>
);
}
}
|
src/components/Home/app.js | pritchardtw/ReactPersonalSite | import React, { Component } from 'react';
import HomeSection from './homesection';
import AboutSection from './aboutsection';
import ProjectsSection from './projectssection';
import ContactSection from './contactsection';
import Break from './break';
export default class App extends Component {
componentDidMount ()... |
src/svg-icons/communication/stay-primary-landscape.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationStayPrimaryLandscape = (props) => (
<SvgIcon {...props}>
<path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/>
</SvgIcon>
);
Communicat... |
src/components/nav/nav.js | darcyclarke/react-insta-feed | import React from 'react'
import styles from './nav.styles'
import r from 'r-dom'
class Nav extends React.Component {
constructor (props) {
super(props)
}
render () {
return (
r.nav({ className: 'nav' }, [])
)
}
}
export default Nav
|
react-components/src/library/components/shared/modal-dialog.js | concord-consortium/rigse | import React from 'react'
import Modal from './modal'
import css from './modal-dialog.scss'
export default class ModalDialog extends React.Component {
render () {
const { title, children } = this.props
return (
<Modal>
<div className={css.dialog}>
<div className={css.title}>{title}... |
app/javascript/mastodon/features/lists/index.js | 5thfloor/ichiji-social | 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... |
ajax/libs/react-instantsearch/4.1.1/Dom.js | tholu/cdnjs | /*! ReactInstantSearch 4.1.1 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.... |
Public/patternlab/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | docmak/TYPO3Styleguide-Landingpage | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/Parser/Hunter/BeastMastery/Modules/Talents/AMurderOfCrows.js | hasseboulen/WoWAnalyzer | import React from 'react';
import Combatants from 'Parser/Core/Modules/Combatants';
import Analyzer from 'Parser/Core/Analyzer';
import SPELLS from 'common/SPELLS';
import SpellUsable from 'Parser/Core/Modules/SpellUsable';
import SPECS from 'common/SPECS';
import StatisticBox from 'Main/StatisticBox';
import SpellIco... |
examples/js/column-filter/number-filter-with-default-value.js | dana2208/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
src/components/ui/ListItem.js | OlivierVillequey/hackathon | /**
* List Items
*
<ListItem title={'Hello World'} />
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { ListItem } from 'react-native-elements';
// Consts and Libs
import { AppColors, A... |
lib/index.js | dylanavery720/shoot-the-breeze | import React from 'react';
import Application from './components/Application';
import firebase from './firebase';
require('./reset.scss');
require('./style.scss');
|
src/components/Post/Comments/Comments.js | Amine-H/Amine-H.github.io | // @flow strict
import React from 'react';
import ReactDisqusComments from 'react-disqus-comments';
import { useSiteMetadata } from '../../../hooks';
type Props = {
postTitle: string,
postSlug: string
};
const Comments = ({ postTitle, postSlug }: Props) => {
const { url, disqusShortname } = useSiteMetadata();
... |
src/renderServer.js | stoffern/koa-universal-relay-router | import React from 'react'
import Relay from 'react-relay'
import Helmet from 'react-helmet'
import {match} from 'react-router'
import ReactDOMServer from 'react-dom/server'
import IsomorphicRouter from 'isomorphic-relay-router'
export default (options) => {
// Validate options
if (!options.routes) throw ... |
local-cli/templates/HelloNavigation/views/chat/ChatScreen.js | dikaiosune/react-native | import React, { Component } from 'react';
import {
ActivityIndicator,
Button,
FlatList,
StyleSheet,
Text,
TextInput,
View,
} from 'react-native';
import KeyboardSpacer from '../../components/KeyboardSpacer';
import Backend from '../../lib/Backend';
export default class ChatScreen extends Component {
s... |
src/containers/NotFound/NotFound.js | TackleboxBeta/betabox-seed | import React from 'react';
export default function NotFound() {
return (
<div className="container">
<h1>Doh! 404!</h1>
<p>These are <em>not</em> the droids you are looking for!</p>
</div>
);
}
|
app/components/ListItem/index.js | ScoutingIJsselgroep/Jotihunt | import React from 'react';
import Item from './Item';
import Wrapper from './Wrapper';
function ListItem(props) {
return (
<Wrapper>
<Item>
{props.item}
</Item>
</Wrapper>
);
}
ListItem.propTypes = {
item: React.PropTypes.any,
};
export default ListItem;
|
src/svg-icons/device/signal-wifi-3-bar.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi3Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M3.53 10.95l8.46 10.54.0... |
example/CustomView.js | ianlin/react-native-gifted-messenger | import PropTypes from 'prop-types';
import React from 'react';
import {
Linking,
Platform,
StyleSheet,
TouchableOpacity,
ViewPropTypes,
} from 'react-native';
import MapView from 'react-native-maps';
export default class CustomView extends React.Component {
render() {
if (this.props.currentMessage.loca... |
examples/js/sort/disable-sort-indicator-table.js | pvoznyuk/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
test/integration/css-fixtures/bad-custom-configuration-arr-6/pages/_app.js | zeit/next.js | import React from 'react'
import App from 'next/app'
import '../styles/global.css'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
src/components/Post/Post.js | wpioneer/gatsby-starter-lumen | // @flow strict
import React from 'react';
import { Link } from 'gatsby';
import Author from './Author';
import Comments from './Comments';
import Content from './Content';
import Meta from './Meta';
import Tags from './Tags';
import styles from './Post.module.scss';
import type { Node } from '../../types';
type Props... |
internals/templates/appContainer.js | PeterKow/clientAurity | /**
*
* 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';
function App(props) {
return (
<div>
{ props.children }
</div>
);
}
export default App;
|
examples/async/containers/Root.js | Lucifier129/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import configureStore from '../store/configureStore';
import AsyncApp from './AsyncApp';
const store = configureStore();
export default class Root extends Component {
render() {
return (
<Provider store={store}>
{() ... |
blueocean-material-icons/src/js/components/svg-icons/action/find-in-page.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionFindInPage = (props) => (
<SvgIcon {...props}>
<path d="M20 19.59V8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c.45 0 .85-.15 1.19-.4l-4.43-4.43c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5c0 1.02-.31 1.96-.83... |
stories/babylonjs/Textures/fresnelparameters.stories.js | brianzinn/react-babylonJS | import React from 'react'
import { Engine, Scene, Skybox } from '../../../dist/react-babylonjs'
import { Vector3, Color3 } from '@babylonjs/core/Maths/math'
import '../../style.css'
import { FresnelParameters } from '@babylonjs/core'
export default { title: 'Textures' };
/**
* Insipration Playground: https://www.bab... |
src/components/Header.js | markgreenburg/acquisitiontracker | // @flow
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { changeTab } from '../actions/index';
/**
* React component that displays the page header and navigation
*/
class Header extends Component {
constructor(props) {
super(props);
... |
src/ModalBody.js | glenjamin/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import { elementType } from 'prop-types-extra';
import { createBootstrapComponent } from './ThemeProvider';
class ModalBody extends React.Component {
static propTypes = {
bsPrefix: PropTypes.string,
as: eleme... |
src/components/HeaderToolbar/index.js | afoninsky/cerebral-bolierplate | import React from 'react'
// import {Decorator as Cerebral} from 'cerebral-react';
import Toolbar from 'material-ui/lib/toolbar/toolbar'
import ToolbarSeparator from 'material-ui/lib/toolbar/toolbar-separator'
import ToolbarGroup from 'material-ui/lib/toolbar/toolbar-group'
import SphereSelectControl from '../SphereS... |
src/components/chips/ChipContact.js | isogon/material-components | import React from 'react'
import PropTypes from 'prop-types'
import { ChipContactImg, ChipContactSpan } from './Chip.style'
export default function ChipContact({ text, src, ...props }) {
return src ? (
<ChipContactImg src={src} {...props} />
) : (
<ChipContactSpan {...props}>{text}</ChipContactSpan>
)
}... |
app/client.js | jonathannen/canary-react | // (C) Copyright Jon Williams 2015 - See LICENSE file
//
// Client bootstraps the JavaScript that is delivered to the browser via
// app.js. It's the representation of the React router and components
// for the client side.
import React from 'react'
import { render } from 'react-dom'
import { Router, browserHistory } ... |
monitor/health.js | buckie/juno | import React from 'react';
import d3 from 'd3';
const width = 500;
const height = 40;
function clusterStatus(data) {
const cluster = data.juno.cluster;
return {
quorum: cluster.quorum_size.val,
avail: cluster.available_size.val,
size: cluster.size.val,
term: data.juno.consensus.term.val,
};
}
e... |
priv/phoenix_reactor.js | jacek-adamek/phoenix_reactor | import React from 'react'
import ReactDOM from 'react-dom'
const instantiateComponent = (container) => {
const componentName = container.getAttribute('data-react-component')
const reactClass = window.reactComponents && window.reactComponents[componentName]
if (reactClass != null) {
const propsJson = containe... |
examples/IconSizes.js | react-materialize/react-materialize | import React from 'react';
import Section from '../src/Section';
import Icon from '../src/Icon';
import Row from '../src/Row';
import Col from '../src/Col';
export default
<Section>
<Row className='center'>
<Col s={3}>
<Icon tiny>insert_chart</Icon>
<p>tiny</p>
</Col>
<Col s={3}>
<Icon ... |
lib/DevTools.js | knopjesmuseum/resilient-network-simulator | import React from 'react';
// Exported from redux-devtools
import { createDevTools } from 'redux-devtools';
// Monitors are separate packages, and you can make a custom one
import LogMonitor from 'redux-devtools-log-monitor';
import SliderMonitor from 'redux-devtools-slider-monitor';
import DockMonitor from 'redux-de... |
src/components/picker/picker_group.js | n7best/react-weui | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from '../../utils/classnames';
class PickerGroup extends Component {
static propTypes = {
height: PropTypes.number,
itemHeight: PropTypes.number,
indicatorTop: PropTypes.number,
indicator... |
Realization/frontend/czechidm-core/src/content/audit/event/EntityEvents.js | bcvsolutions/CzechIdMng | import React from 'react';
import Helmet from 'react-helmet';
import { connect } from 'react-redux';
//
import * as Basic from '../../../components/basic';
import { EntityEventManager, DataManager, SecurityManager } from '../../../redux';
import SearchParameters from '../../../domain/SearchParameters';
import EntityEve... |
app/javascript/mastodon/features/account/components/header.js | dunn/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Button from 'mastodon/components/button';
import ImmutablePureComponent from 'react-immutable-pure-component';
impo... |
src/views/dictionary/nound/NoundPanel.js | bostontrader/senmaker | // @flow
import React from 'react'
import NoundTable from './NoundTable'
import NoundAEForm from './addedit/NoundAEForm'
import NoundActions from '../../../data/dictionary/nound/NoundActions'
/*
The NoundPanel is responsible for displaying everything about our list of nound. Such
the table of Nound, and the add o... |
src/pages/expenses.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import ExpensesWithData from '../apps/expenses/components/ExpensesWithData';
import ExpensesStatsWithData from '../apps/expenses/components/ExpensesStatsWithData';
import Header from '../components/Header';
i... |
src/js/components/input/datefilter/input_datefilter_body.js | working-minds/realizejs | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import PropTypes from '../../../prop_types';
import i18n from '../../../i18n';
import { autobind, mixin } from '../../../utils/decorators';
import { compact } from 'lodash';
import {
Button,
Input,
} from '../../../components';
import { C... |
src/components/EventPage/EventPage.js | RetroGameNight/rgn-ui | /*
* Retro Game Night
* Copyright (c) 2015 Sasha Fahrenkopf, Cameron White
*
* 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' // eslint-disable-line no-unused-vars
import flux from '../../flux/flux'
import... |
public/js/components/activityfeed/activityMain.react.js | TRomesh/Coupley | import React from 'react';
import StatusBox from './activityBox.react';
import ActivityContainer from './activityContainer.react';
import ActivityList from './activityListComp.react';
const ActivityMain = React.createClass({
render: function () {
return (
<div>
<div>
... |
website-prototyping-tools/playground.js | vedmalex/relay | import 'babel/polyfill';
import React from 'react'; window.React = React;
import ReactDOM from 'react/lib/ReactDOM';
import RelayPlayground from './RelayPlayground';
import queryString from 'query-string';
var queryParams = queryString.parse(location.hash);
if (
/^https?:\/\/facebook.github.io\//.test(document.re... |
Lab9/solution.js | prpatel/react-workshop-day1 | import React from 'react';
import ReactDOM from 'react-dom';
import moment from 'moment';
import Bootstrap from 'react-bootstrap';
import Jumbotron from 'react-bootstrap/lib/Jumbotron';
import Panel from 'react-bootstrap/lib/Panel';
import Input from 'react-bootstrap/lib/Input';
import Label from 'react-bootstrap/lib/L... |
front/src/wdyr.js | EcrituresNumeriques/stylo | import React from 'react';
if (import.meta.env.DEV) {
const {default: whyDidYouRender} = await import('@welldone-software/why-did-you-render');
const ReactRedux = await import('react-redux/lib')
whyDidYouRender(React, {
trackAllPureComponents: true,
trackExtraHooks: [
[ReactRedux, 'useSelector'],
... |
src/components/ResponsiveText.js | w01fgang/elemental | import React from 'react';
import blacklist from 'blacklist';
import E from '../constants';
module.exports = React.createClass({
displayName: 'ResponsiveText',
propTypes: {
hiddenLG: React.PropTypes.string,
hiddenMD: React.PropTypes.string,
hiddenSM: React.PropTypes.string,
hiddenXS: React.PropTypes.string,
... |
src/ButtonToolbar.js | modulexcite/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const ButtonToolbar = React.createClass({
mixins: [BootstrapMixin],
getDefaultProps() {
return {
bsClass: 'button-toolbar'
};
},
render() {
let classes = this.getBsClassSet();
... |
src/web/components/Header.js | TeodorKolev/Help | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
Nav,
Navbar,
Collapse,
DropdownMenu,
DropdownItem,
NavbarToggler,
DropdownToggle,
UncontrolledDropdown,
} from 'reactstrap';
import { Link, withRouter } from 'react-router-dom';
import Config from '../../constants/con... |
src/views/StatsView.js | todvora/extrade | import React from 'react'
import Product from 'components/Product'
import ProductNavigation from 'components/ProductNavigation'
import { connect } from 'react-redux'
import { actions as apiActions } from '../redux/modules/api'
const mapStateToProps = (state) => ({
progress: state.api.progress,
products: state.api... |
packages/material-ui-icons/src/EventSeat.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let EventSeat = props =>
<SvgIcon {...props}>
<path d="M4 18v3h3v-3h10v3h3v-6H4zm15-8h3v3h-3zM2 10h3v3H2zm15 3H7V5c0-1.1.9-2 2-2h6c1.1 0 2 .9 2 2v8z" />
</SvgIcon>;
EventSeat = pure(EventSeat);
EventSeat.m... |
app/components/elements/PopoverLabel.js | tidepool-org/blip | import React from 'react';
import PropTypes from 'prop-types';
import InfoRoundedIcon from '@material-ui/icons/InfoRounded';
import { Text, Flex, FlexProps } from 'rebass/styled-components';
import {
usePopupState,
bindHover,
bindPopover,
bindToggle,
} from 'material-ui-popup-state/hooks';
import Popover from... |
src/components/shared/information-modal.js | gabrielecker/animapp | import React, { Component } from 'react';
import { Button, Modal, Icon } from 'semantic-ui-react';
class InformationModal extends Component {
render() {
const { open, confirmButton, informationButton, cancelButton, information } = this.props;
return (
<Modal open={open}>
<Modal.Header><Icon nam... |
app/components/UsersActions/ActionsDirectionFilter.js | CaptainFact/captain-fact-frontend | import React from 'react'
import { Trans, withNamespaces } from 'react-i18next'
import UserAppellation from '../Users/UserAppellation'
import { Link } from 'react-router'
const ActionsDirectionFilter = ({ user, value, t }) => {
const baseLink = `/u/${user.username}/activity`
const getLinkProps = (filterValue) => (... |
docs/src/examples/elements/Image/Groups/ImageExampleGroupSize.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Divider, Image } from 'semantic-ui-react'
const src = '/images/wireframe/image.png'
const ImageExampleGroupSize = () => (
<div>
<Image.Group size='tiny'>
<Image src={src} />
<Image src={src} />
<Image src={src} />
<Image src={src} />
</Image.Group>
... |
components/GoogleAnalytics/GoogleAnalytics.js | cable729/react-blog | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React, { Component } from 'react';
import { googleAnalyticsId } from '../../config';
const trackingCode = { __html:
`(function(b,o,i,l,e,r){b.GoogleAnalyticsO... |
app/javascript/mastodon/features/compose/components/character_counter.js | Kirishima21/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { length } from 'stringz';
export default class CharacterCounter extends React.PureComponent {
static propTypes = {
text: PropTypes.string.isRequired,
max: PropTypes.number.isRequired,
};
checkRemainingText (diff) {
if (diff < 0)... |
docs/src/app/components/pages/components/Snackbar/Page.js | ngbrown/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 SnackbarReadmeText from './README';
import SnackbarExampleSimple from './... |
actor-apps/app-web/src/app/components/Deactivated.react.js | webwlsong/actor-platform | import React from 'react';
class Deactivated extends React.Component {
render() {
return (
<div className="deactivated row center-xs middle-xs">
<div className="deactivated__window">
<h2>Tab deactivated</h2>
<p>
Oops, you have opened another tab with Actor, so we had... |
app/addons/fauxton/notifications/components/NotificationPanelWithTransition.js | michellephung/couchdb-fauxton | // Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy of
// the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed un... |
src/containers/Sales/CustomDetail/Business/Usage.js | UncleYee/crm-ui | import React from 'react';
import Highcharts from 'highcharts';
import {connect} from 'react-redux';
import {queryKeyFunc} from 'redux/modules/custom';
const styles = {
root: {
width: '100%',
padding: '18px 14px',
height: 435,
},
title: {
margin: 0,
padding: 0,
fontSize: 16,
marginBot... |
src/browser/cards/Turns.js | xiankai/triple-triad-solver | import React from 'react';
import {
Text,
} from '../app/components';
const Turns = ({
isPlayerTurn,
}) => (
<Text
bold
style={{
color: isPlayerTurn ? '#4AC8E6' : '#E27062',
transform: 'scale(2,1)',
}}
>
{ isPlayerTurn ? 'YOUR TURN' : 'OPPONENT\'S TURN' }
</Text>
);
export defau... |
packages/mineral-ui-icons/src/IconOndemandVideo.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 IconOndemandVideo(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...icon... |
WebDev/BE/JS/electron/chatApp/src/Components/UserList/UserList.js | ParkDyel/practice | import React, { Component } from 'react';
export default class UserListComponent extends Component{
render(){
return(
<div className={this.props.isActive?'active':'deactive'}>
<h2>UserList</h2>
<ul>
{
this.props.users.map((user) => {
return <li key={user.... |
client/src/app/components/common/Header.js | zraees/sms-project | /**
* Created by griga on 11/17/15.
*/
import React from 'react'
import FullScreen from './FullScreen'
import ToggleMenu from './ToggleMenu'
import SpeechButton from '../voice-control/components/SpeechButton'
import SearchMobile from './SearchMobile'
import Activities from '../activities/components/Activities'
imp... |
simul/app/components/enter.js | sf-red-pandas-2016/simul-react-native | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Image,
TouchableHighlight,
} from 'react-native';
import Home from './home.js'
import General from '../styles/general.js'
import I18n from 'react-native-i18n'
class Enter extends Component{
constructor(props) {
super(props);
... |
src/modules/textNodes/components/TextNodesEditor/TextNodesEditor.js | CtrHellenicStudies/Commentary | import React from 'react';
import PropTypes from 'prop-types';
import { compose } from 'react-apollo';
import Select from 'react-select';
import autoBind from 'react-autobind';
import {
ControlLabel,
FormGroup,
} from 'react-bootstrap';
import TextField from 'material-ui/TextField';
// graphql
import { editionsQuery... |
src/components/Inputs/Checkbox/CheckBox.js | macdja38/pvpsite | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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, { Component } from 'react';
import PropTypes... |
Libraries/Image/Image.ios.js | Bhullnatik/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
photos/static/js/components/album.js | dpetzold/django-react-djangocon2015 | import React from 'react'
import {Grid, Col, Row} from 'react-bootstrap'
import PhotoPanel from './photo-panel'
import FavoritePanel from './favorite-panel'
const Album = React.createClass({
render() {
return (
<Grid>
<Row>
<Col md={10} sm={10}>
<PhotoPanel
ph... |
example/DoneContent/index.js | srankmeng/react-wizard-step | import React from 'react'
import WizardStep from 'react-wizard-step'
import Check from './check.png'
const TestComponent = ({ children }) => (<div>{ children }</div>)
const DoneComponent = () => (
<div style={{ textAlign: 'center' }}>
<img width="100" src={Check} />
<h4>Success</h4>
</div>
)
const DoneCont... |
client/pages/user/ResetPassword.js | collectiveidea/rails_relay_authentication | /* eslint-disable */
import React from 'react'
import PropTypes from 'prop-types'
import { routerShape } from 'found/lib/PropTypes'
import { createFragmentContainer, graphql } from 'react-relay'
import Formsy from 'formsy-react'
import { FormsyText } from 'formsy-material-ui'
import RaisedButton from 'material-ui/Rais... |
examples/05 Customize/Handles and Previews/Container.js | zetkin/react-dnd | import React, { Component } from 'react';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd/modules/backends/HTML5';
import BoxWithImage from './BoxWithImage';
import BoxWithHandle from './BoxWithHandle';
@DragDropContext(HTML5Backend)
export default class Container extends Component {
... |
src/Send.js | Chatnbook/react-native-gifted-chat | import PropTypes from 'prop-types';
import React from 'react';
import {
StyleSheet,
Text,
TouchableOpacity,
View,
ViewPropTypes,
} from 'react-native';
export default class Send extends React.Component {
// shouldComponentUpdate(nextProps, nextState) {
// if (this.props.text.trim().length === 0 && next... |
stories/index.js | n1207n/guess-the-sentence | import React from 'react';
import { storiesOf, action, linkTo } from '@kadira/storybook';
import { withKnobs, text, boolean, number } from '@kadira/storybook-addon-knobs';
import { WithNotes } from '@kadira/storybook-addon-notes';
import { muiTheme } from 'storybook-addon-material-ui';
import Button from './Button';
... |
packages/icons/src/md/editor/FormatLineSpacing.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdFormatLineSpacing(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M13 14h5l-7-7-7 7h5v20H4l7 7 7-7h-5V14zm8-4v4h24v-4H21zm0 28h24v-4H21v4zm0-12h24v-4H21v4z" />
</IconBase>
);
}
export default MdForm... |
apps/react/components/App.js | router5/examples | import React from 'react';
import Nav from './Nav';
import Main from './Main';
export default function App(props) {
return (
<div className='mail-client'>
<aside>
<Nav />
</aside>
<main>
<Main />
</main>
</div>
);
... |
assets/jqwidgets/demos/react/app/progressbar/righttoleftlayout/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxProgressBar from '../../../jqwidgets-react/react_jqxprogressbar.js';
class App extends React.Component {
render() {
return (
<JqxProgressBar ref='horizontalProgressBar'
rtl={true}
width={250}... |
src/components/common/svg-icons/hardware/headset-mic.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareHeadsetMic = (props) => (
<SvgIcon {...props}>
<path d="M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h4v1h-7v2h6c1.66 0 3-1.34 3-3V10c0-4.97-4.03-9-9-9z"/>
... |
app/javascript/mastodon/features/ui/components/focal_point_modal.js | dwango/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { connect } from 'react-redux';
import ImageLoader from './image_loader';
import classNames from 'classnames';
import { changeUploadCompose } from '../../../... |
src/components/common/MessageInput/index.js | kcliu/chatroom-frontend | import React, { Component } from 'react';
import moment from 'moment';
import './styles.css';
export default class MessageBox extends Component {
state = {
text: '',
}
handleKeyPress = (e) => {
if (e.key === 'Enter' && !e.shiftKey) {
e.preventDefault()
if (this.state.text === '') { return }... |
stories/Icons/RTLIcon.js | skyiea/wix-style-react | import React from 'react';
import {Duplicate2} from 'wix-style-react/Icons';
import s from './style.scss';
export default () => {
return (
<div className="rtl">
<div className={s.iconList}>
<div className={s.singleIconView}>
<span><Duplicate2 size="3em"/></span>
<span className=... |
src/components/modal/ModalHeader.js | ProAI/react-essentials | import React from 'react';
import PropTypes from 'prop-types';
import BaseView from '../../utils/rnw-compat/BaseView';
const propTypes = {
children: PropTypes.node.isRequired,
titleId: PropTypes.string,
};
const ModalHeader = React.forwardRef((props, ref) => (
<BaseView {...props} ref={ref} essentials={{ classN... |
src/components/Pagination/index.js | calpa/blog | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'gatsby';
import Dropdown from './Dropdown';
import { getPages } from '../../api';
import { handlePreviousPage, handleNextPage } from '../../api/url';
const PageItem = ({ number, content }) => (
<li className={`page-item${number < ... |
examples/with-grommet/pages/index.js | BlancheXu/test | import React from 'react'
import { Anchor, Box, Heading, Paragraph } from 'grommet'
export default () => (
<Box align='center' margin='large'>
<Heading>Grommet is awesome!</Heading>
<Paragraph>
Find out more at{' '}
<Anchor href='https://v2.grommet.io/'>https://v2.grommet.io/</Anchor>
</Parag... |
src/index.js | rogeliog/react-filters | import React from 'react';
import { App } from './App';
React.render(<App />, document.getElementById('root'));
|
exercises/isomorphic/solution/app.js | marocchino/learnyoureact | import React from 'react';
import ReactDOM from 'react-dom';
import TodoBox from './views/index.jsx';
let data = JSON.parse(document.getElementById('initial-data').getAttribute('data-json'));
ReactDOM.render(<TodoBox data={data} />, document.getElementById("app")); |
Frontend/src/index/invite_list.js | zsefvlol/threedegrees |
"use strict";
import React from 'react';
import { render } from 'react-dom';
import WeUI from 'react-weui';
import Ajax from '../lib/Ajax';
const {Cells, CellsTitle, CellBody, Cell, Button, CellFooter} = WeUI;
export default class InviteList extends React.Component {
state = {
invite_list : this.props.u... |
packages/netlify-cms-core/src/components/Editor/EditorPreviewPane/EditorPreview.js | netlify/netlify-cms | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import styled from '@emotion/styled';
function isVisible(field) {
return field.get('widget') !== 'hidden';
}
const PreviewContainer = styled.div`
font-family: Roboto, 'Helvetica Neue', Helvet... |
packages/bonde-admin/src/mobilizations/widgets/components/finish-message-custom.js | ourcities/rebu-client | import PropTypes from 'prop-types'
import React from 'react'
// Global module dependencies
import EditorDraft from '@/components/editor-draft-js'
import { EditorSlate } from '@/mobilizations/widgets/__plugins__/content/components'
const FinishMessageCustom = ({ readOnly, widget }) => {
const {
settings: {
... |
client/src/app/install/install-step-1-language.js | opensupports/opensupports | import React from 'react';
import {connect} from 'react-redux';
import history from 'lib-app/history';
import i18n from 'lib-app/i18n';
import ConfigActions from 'actions/config-actions';
import LanguageSelector from 'app-components/language-selector';
import Button from 'core-components/button';
import Header from '... |
server/sonar-web/src/main/js/apps/quality-profiles/home/PageHeader.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
src/infopages/EmailModal.js | VasilyShelkov/scikic-app | import React from 'react';
const EmailModal = () => {
let sender, content;
return (
<div className="ui modal" style={{ right: 'auto', bottom: 'auto' }}>
<div className="header">Drop us an Email</div>
<div className="content">
<div className="ui form">
<input placeholder="Your Email Address" ref={n... |
backend/dynamic-web-apps/voting-app/client/src/components/App.js | mkermani144/freecodecamp-projects | import React, { Component } from 'react';
import { Route, Link } from 'react-router-dom';
import AppBar from 'material-ui/AppBar';
import FlatButton from 'material-ui/FlatButton';
import { blue500, blue600, grey50, grey600 } from 'material-ui/styles/colors';
import HomeContainer from './HomeContainer';
import Dashboard... |
src/post/Post.js | ryanbaer/busy | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import VisibilitySensor from 'react-visibility-sensor';
import { getPostContent, getIsFetching, getIsPostEdited } from '../reducers';
import { getContent } from './postActions';
import Comments from '../comments/Commen... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.