path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/SideMenu/SideMenu.js | deltaidea/planning-app | import React, { Component } from 'react';
import { NavLink } from 'react-router-dom';
import './SideMenu.css';
import photoUrl from './profile-photo.png';
import iconSettings from './icon-settings.png';
import iconUpload from './icon-upload.png';
import iconSchedule from './icon-schedule.png';
import iconClient from '... |
node_modules/native-base/src/basic/Fab.js | odapplications/WebView-with-Lower-Tab-Menu | /* @flow */
import React, { Component } from 'react';
import { Button } from './Button';
import { Platform, Animated, TouchableOpacity } from 'react-native';
// import View from './View';
import { Icon } from './Icon';
// import Badge from './Badge';
import { IconNB } from './IconNB';
// import Text from './Text';
im... |
src/components/Settings.react.js | luigiplr/photon-wallpaper | import React from 'react'
import {
SelectField, MenuItem, RaisedButton, Toggle
}
from 'material-ui'
import ThemeManager from 'material-ui/lib/styles/theme-manager'
import Themer from '../themes/themer'
import wallpaperUtil from '../utils/wallpaperUtil'
import providers from '../providers'
import BingSettings from './... |
soon/react-boilerplate/app/containers/FeaturePage/index.js | rmevans9/reactotron | /*
* FeaturePage
*
* List all the features
*/
import React from 'react';
import Helmet from 'react-helmet';
import messages from './messages';
import { FormattedMessage } from 'react-intl';
import H1 from 'components/H1';
import List from './List';
import ListItem from './ListItem';
import ListItemTitle from './Li... |
src/routes/Publications/Hero.js | arvigeus/studentlife | // @flow
import React from 'react';
import Helmet from 'react-helmet';
import Picture from '../../components/Picture';
import original from './covers/publications.jpg';
import lg from './covers/publications-lg.jpg';
import md from './covers/publications-md.jpg';
import sm from './covers/publications-sm.jpg';
import x... |
src/components/Cell.js | joellanciaux/Griddle | import React from 'react';
const Cell = ({ value, onClick, onMouseEnter, onMouseLeave, style, className }) => (
<td
onClick={onClick}
onMouseEnter={onMouseEnter}
onMouseLeave={onMouseLeave}
style={style}
className={className}
>
{value}
</td>
);
export default Cell;
|
lts/deps/npm/docs/src/components/Accordion.js | enclose-io/compiler | import React from 'react'
import styled from 'styled-components'
import downCarrot from '../images/down-carrot.svg'
import upCarrot from '../images/up-carrot.svg'
const SectionButton = styled.button`
outline: none;
background-color: transparent;
cursor: pointer;
color: red;
border: none;
font-size: 18px;
... |
docs/app/Examples/elements/List/Variations/ListExampleCelledHorizontal.js | mohammed88/Semantic-UI-React | import React from 'react'
import { List } from 'semantic-ui-react'
const ListExampleCelledHorizontal = () => (
<List celled horizontal>
<List.Item>About Us</List.Item>
<List.Item>Contact</List.Item>
<List.Item>Support</List.Item>
</List>
)
export default ListExampleCelledHorizontal
|
src/pages/home/RouteBoxer.js | PranavRam/pfrally | import React, { Component } from 'react';
import async from 'async';
import {Marker} from "react-google-maps";
class RouteBoxer extends Component {
state = {
locations: []
};
componentDidMount() {
let self = this;
let map = this.props.mapHolderRef.getMap();
let {boxes, types} = this.props;
let service = ... |
public/javascripts/app.js | alayii/fishi | // import particlesJS from 'particles.js';
import React from 'react';
import Root from 'containers/Root';
import 'normalize.css';
import 'fontello.css';
import '_logo.scss';
import '_base.scss';
React.render(
<Root />,
document.getElementById('fishi')
);
// React.render(<Router routes={routes} />, document.getEle... |
src/App.js | ryanwiemer/cal-factor | import React, { Component } from 'react';
import Calculator from './components/Calculator';
import About from './components/About';
import './style.css';
class App extends Component {
render() {
return (
<div className="App">
<Calculator/>
<About/>
</div>
);
}
}
export default ... |
node_modules/react-icons/md/store-mall-directory.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdStoreMallDirectory = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 30v-6.6h-10v6.6h10z m15-6.6h-1.6v10h-3.4v-10h-6.6v10h-16.8v-10h-1.6v-3.4l1.6-8.4h26.8l1.6 8.4v3.4z m-1.6-16.8v3.4h-26.8v-3.4h26.8z"/></g>
</Icon>
)... |
src/components/Root/Root.dev.js | garrettn/pacecalc | import React from 'react'
import { Provider } from 'react-redux'
import PacecalcApp from 'components/PacecalcApp/PacecalcApp'
import DevTools from 'containers/DevTools'
import styles from './Root.css'
export default function Root ({ store }) {
return (
<Provider store={store}>
<div className={styles.contai... |
packages/reactor-kitchensink/src/examples/Charts/Bar/StackedBar/StackedBar.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';
import createData from './createData';
Ext.require([
'Ext.chart.interactions.PanZoom',
'Ext.chart.series.Bar',
'Ext.cha... |
src/App.js | weixing2014/redux-todo | import React, { Component } from 'react';
import SearchBar from './components/search-bar'
import VideoDetail from './components/video-detail'
import VideoList from './components/video-list'
import styles from './App.css'
import YTSearch from 'youtube-api-search'
const API_KEY = "AIzaSyAmKhrf4poUt3yMTqvYwcPGjMC3wggxxi4... |
src/Main/Layout/Footer.js | hasseboulen/WoWAnalyzer | import React from 'react';
import DiscordButton from '../DiscordButton';
import PatreonButton from '../PatreonButton';
import GithubButton from '../GithubButton';
import './Footer.css';
class Footer extends React.PureComponent {
render() {
return (
<footer>
<div className="container text-center" ... |
docs/app/Examples/collections/Table/Variations/TableExampleVerticalAlign.js | koenvg/Semantic-UI-React | import React from 'react'
import { Table } from 'semantic-ui-react'
const TableExampleVerticalAlign = () => {
return (
<Table striped>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>Not... |
quiver_engine/quiverboard/src/components/Header/Header.js | dan-1d/quiver | import React from 'react';
import { IndexLink } from 'react-router';
import './Header.scss';
export const Header = () => (
<div>
</div>
);
export default Header;
|
packages/material-ui/src/internal/svg-icons/KeyboardArrowLeft.js | cherniavskii/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
/**
* @ignore - internal component.
*/
let KeyboardArrowLeft = props => (
<SvgIcon {...props}>
<path d="M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z" />
</SvgIcon>
);
KeyboardArrowLeft = pure(KeyboardArro... |
app/assets/scripts/components/assets-section-row.js | orma/openroads-vn-analytics | 'use strict';
import React from 'react';
const AssetsSectionRow = React.createClass({
'displayName': 'AssetsSectionRow',
propTypes: {
data: React.PropTypes.array,
onMouseOver: React.PropTypes.func,
onMouseOut: React.PropTypes.func
},
handleMouseOver: function () {
const { data, onMouseOver }... |
src/components/panel/panel_footer.js | woshisbb43/coinMessageWechat | import React from 'react';
import classNames from '../../utils/classnames';
/**
* Footer of Panel
*
*/
export default class PanelFooter extends React.Component {
render() {
const {className, children, ...others} = this.props;
const Component = this.props.href ? 'a' : 'div';
const cls = c... |
src/svg-icons/maps/local-pharmacy.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalPharmacy = (props) => (
<SvgIcon {...props}>
<path d="M21 5h-2.64l1.14-3.14L17.15 1l-1.46 4H3v2l2 6-2 6v2h18v-2l-2-6 2-6V5zm-5 9h-3v3h-2v-3H8v-2h3V9h2v3h3v2z"/>
</SvgIcon>
);
MapsLocalPharmacy = pure... |
node_modules/semantic-ui-react/src/elements/Button/ButtonContent.js | SuperUncleCat/ServerMonitoring | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
useKeyOnly,
} from '../../lib'
/**
* Used in some Button types, such as `animated`.
*/
function ButtonContent(props) {
const {
children,
cla... |
docs/app/Examples/modules/Checkbox/Types/CheckboxExampleShorthandElement.js | shengnian/shengnian-ui-react | import React from 'react'
import { Checkbox } from 'shengnian-ui-react'
const CheckboxExampleShorthandElement = () => (
<Checkbox label={<label>Make my profile visible</label>} />
)
export default CheckboxExampleShorthandElement
|
app/containers/UGVerifyEmailPage/index.js | perry-ugroop/ugroop-react-dup2 | /**
* Created by Yang on 16/12/16.
*/
import React from 'react';
import { VerifyEmailView } from 'react-stormpath';
import { connect } from 'react-redux';
import { Grid, Row, Col } from 'react-bootstrap';
import H3 from 'components/H3';
export class UGVerifyEmailPage extends React.Component { // eslint-disable-line ... |
src/components/Auth/RegisterForm.js | franciskim722/crypy | import React from 'react';
import PropTypes from 'prop-types';
const RegisterForm = ({register, registerUser, onRegisterChange}) => {
return (
<div className="pt-card pt-interactive">
<h3 style={{textAlign: "center"}}>Sign Up</h3>
<div className="pt-input-group crypy-input-group">
<input clas... |
app/main.js | ikafire/OpenObjectMarker | import React from 'react';
import Router from 'react-router';
import routes from './routes';
Router.run(routes, Router.HistoryLocation, function(Handler) {
React.render(<Handler />, document.getElementById('app'));
});
|
packages/react-events/src/dom/Scroll.js | yiminghe/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 type {
ReactDOMEventResponder,
ReactDOMResponderEvent,
ReactDOMResponderContext,
PointerType,
} from 's... |
client/src/components/ItemForm/index.js | jordonmckoy/product-tracker | import React, { Component } from 'react';
import {
Button,
FormLayout,
TextField
} from '@shopify/polaris';
class ItemForm extends Component {
render() {
return (
<FormLayout>
<TextField
label="Amazon URL"
/>
<Button>
Track product price
</Button>
... |
src/applications/static-pages/health-care-manage-benefits/refill-track-prescriptions-page/components/App/index.js | department-of-veterans-affairs/vets-website | // Node modules.
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { isEmpty } from 'lodash';
// Relative imports.
import AuthContent from '../AuthContent';
import UnauthContent from '../UnauthContent';
import { isAuthenticatedWithSSOe } from 'platform/user/aut... |
Libraries/Components/TextInput/TextInput.js | lprhodes/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... |
ui/iphone/index.js | DannyvanderJagt/portfolio | import React from 'react';
import Telescope from 'telescope';
import Config from '../../../portfolio.config';
class Iphone extends Telescope.Component{
render(){
let style = {
backgroundImage: 'url(/assets/images/iphone_5s_template.png)'
};
let className = ['iphone'];
if(this.props.size){
... |
services/ui/src/components/Header/index.js | amazeeio/lagoon | import React from 'react';
import Link from 'next/link';
import getConfig from 'next/config';
import { AuthContext } from 'lib/Authenticator';
import { color } from 'lib/variables';
import lagoonLogo from '!svg-inline-loader?classPrefix!./lagoon.svg';
const { publicRuntimeConfig } = getConfig();
/**
* Displays the h... |
templates/src/MyComponent.story.js | Personare/react-component-generator | import React from 'react'
import { storiesOf } from '@kadira/storybook'
import <%= camelName %> from './index'
const stories = storiesOf('<%= camelName %>', module)
stories.addWithInfo('Without properties', () => (
<<%= camelName %> />
), { propTables: [<%= camelName %>], inline: true, header: false })
|
src/components/Loader.js | gcanti/tcomb-spa-example | import React from 'react'
import { t, props } from 'tcomb-react'
@props({
active: t.Boolean
})
export default class Loader extends React.Component {
constructor(initProps) {
super(initProps)
this.state = {
width: 0
}
}
componentWillReceiveProps(newProps) {
if (this.state.width === 0 && ... |
examples/typeahead/test/components/TypeAhead.spec.js | jairtrejo/madera | import test from 'ava';
import React from 'react';
import { shallow } from 'enzyme';
import sinon from 'sinon';
import { TypeAhead } from '../../src/components/TypeAhead.jsx';
const someHeroes = [
{id: '1', name: 'Spider-Man'},
{id: '2', name: 'Spider-Woman'}
];
test('it provides an empty text input', t =>... |
admin/client/App/screens/Home/components/ListTile.js | Yaska/keystone | import React from 'react';
import { Link } from 'react-router';
/**
* Displays information about a list and lets you create a new one.
*/
var ListTile = React.createClass({
propTypes: {
count: React.PropTypes.string,
hideCreateButton: React.PropTypes.bool,
href: React.PropTypes.string,
label: React.PropType... |
admin/client/App/screens/List/components/Filtering/ListFiltersAdd.js | linhanyang/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import Transition
from 'react-addons-css-transition-group';
import classnames from 'classnames';
import ListFiltersAddForm from './ListFiltersAddForm';
import Popout from '../../../../shared/Popout';
import PopoutList from '../../../../shared/Popout/P... |
src/Parser/DeathKnight/Blood/Modules/Features/Checklist.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
//import ITEMS from 'common/ITEMS';
import SpellLink from 'common/SpellLink';
import Wrapper from 'common/Wrapper';
import CoreChecklist, { Rule, Requirement } from 'Parser/Core/Modules/Features/Checklist';
import { PreparationRule } from 'Parser/Core/Mo... |
src/components/PortfolioCard.js | Oluwasetemi/Oluwasetemi.github.io | import {Link} from 'gatsby'
import React from 'react'
import styled from 'styled-components'
const PortfolioCardStyles = styled.div`
display: flex;
align-items: center;
.card-image a {
img {
max-width: ${props => {
return props.size === 'small' ? '350px' : '500px'
}};
min-height: 10... |
react-flux-mui/js/material-ui/src/svg-icons/communication/chat-bubble.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationChatBubble = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z"/>
</SvgIcon>
);
CommunicationChatBubble = pure(CommunicationChatBubble)... |
client/homepageIndex.js | BostonGlobe/elections-2017 | // This is the app's client-side entry point. Webpack starts here when
// bundling the entire codebase.
/* eslint-disable global-require, no-unused-vars */
import React from 'react'
import ReactDOM from 'react-dom'
import configureStore from './../common/store/configureStore.js'
import css from './../common/styles/hp-... |
src/components/SplashScreen/SplashScreen.js | momomods/momomods | import React, { Component } from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './SplashScreen.css';
class SplashScreen extends Component {
render() {
return (
<div className={s.splashContainer}>
<div className={s.logoContainer}>
<img src="/logo_... |
docs/src/app/components/pages/components/CircularProgress/ExampleDeterminate.js | frnk94/material-ui | import React from 'react';
import CircularProgress from 'material-ui/CircularProgress';
export default class CircularProgressExampleDeterminate extends React.Component {
constructor(props) {
super(props);
this.state = {
completed: 0,
};
}
componentDidMount() {
this.timer = setTimeout(() ... |
src/app/js/game/deck.js | TylerMcKenzie/Nertz | import React from 'react'
import Card from './card'
import CardData from './data/carddata'
import MathUtils from '../utils/math-utils'
var {shuffle} = MathUtils
class Deck {
constructor(playerId) {
this.playerId = playerId
this.cards = this.generateCards(playerId)
this.savedCards = this.cards.slice(0)
... |
app/containers/Register.js | Salomari1987/client-wall-app | import React from 'react';
import {Link} from 'react-router';
import RegisterStore from '../stores/RegisterStore';
import RegisterActions from '../actions/RegisterActions';
import FieldGroup from '../components/FieldGroup';
import { Col, Form, Button, FormGroup } from 'react-bootstrap';
import AlertComponent from '../c... |
curator-web/src/js/components/home/newUserPanel.js | rajeshnaroth/curator | import React from 'react'
import { Link } from 'react-router'
const NewUserPanel = () => (
<div className="row">
<div className="col-lg-12 col-md-12 text-center">
<h2>Hi there!</h2>
<div className="firstMove">
<p>Looks like you are new. Lets create your show.</p>
... |
ui/src/components/header/HeaderMenu.js | yahoo/athenz | /*
* Copyright 2020 Verizon Media
*
* 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 t... |
react/src/components/masthead/components/SprkMastheadSelector/SprkMastheadSelector.js | sparkdesignsystem/spark-design-system | /* global window */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import uniqueId from 'lodash/uniqueId';
import SprkIcon from '../../../icons/SprkIcon';
import SprkLink from '../../../../base/links/SprkLink';
class SprkMastheadSelector extends Compo... |
jqwidgets/jqwidgets-react/react_jqxlistmenu.js | UCF/IKM-APIM | /*
jQWidgets v5.6.0 (2018-Feb)
Copyright (c) 2011-2017 jQWidgets.
License: https://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxListMenu extends React.Component {
componentDidMount() {
let options = this.manag... |
docs/app/Examples/elements/Icon/Variations/IconExampleBordered.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Icon } from 'semantic-ui-react'
const IconExampleBordered = () => (
<div>
<Icon bordered name='users' />
<Icon bordered color='teal' name='users' />
<Icon bordered inverted color='black' name='users' />
<Icon bordered inverted color='teal' name='users' />
</div>
)... |
packages/react-static/templates/stress-test/src/containers/Post.js | nozzle/react-static | import React from 'react'
import { useRouteData } from 'react-static'
import { Link } from '@reach/router'
//
let styled
if (process.env.STYLE_SYSTEM === 'emotion') {
styled = require('react-emotion').default
} else if (process.env.STYLE_SYSTEM === 'styled') {
styled = require('styled-components').default
}
cons... |
app/js/pages/Items.js | JeffRisberg/RE03 | import React, { Component } from 'react';
import { Medium, LessThanMedium } from '../toolkit';
import ItemListContainer from '../components/Items/ItemListContainer';
import ItemFormContainer from '../components/Items/ItemFormContainer';
class Items extends Component {
render() {
const id = this.props.match.para... |
src/containers/home.js | justrossthings/anon-texts | import React from 'react';
import { connect } from 'react-redux';
import { Grid, Row, Col, Button } from 'react-bootstrap';
import Select from 'react-select';
import _ from 'lodash'
// components
import NumberField from '../components/number_field';
// actions
import { navigateSend } from '../actions/index';
const c... |
packages/cf-component-card/src/CardDrawers.js | mdno/mdno.github.io | import React from 'react';
import PropTypes from 'prop-types';
import CardSection from './CardSection';
import CardToolbar from './CardToolbar';
import CardToolbarLink from './CardToolbarLink';
import CardPropTypes from './CardPropTypes';
let UNIQUE_ID = 0;
class CardDrawers extends React.Component {
constructor(pr... |
src/index.js | flibertigibet/react-redux-starter-kit-custom | /* eslint-disable import/default */
import React from 'react';
import { render } from 'react-dom';
import { browserHistory } from 'react-router';
import { AppContainer } from 'react-hot-loader';
import Root from './components/Root';
import './styles/core.scss'; // Yep, that's right. You can import SASS/CSS files too!... |
node_modules/react-router/es6/RouteContext.js | ddigioia/react_router_practice_1 | import warning from './routerWarning';
import React from 'react';
var object = React.PropTypes.object;
/**
* The RouteContext mixin provides a convenient way for route
* components to set the route in context. This is needed for
* routes that render elements that want to use the Lifecycle
* mixin to prevent trans... |
src/issue/screens/pull-merge.screen.js | Antoine38660/git-point | /* eslint-disable no-shadow */
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { View, ScrollView, StyleSheet, TextInput, Alert } from 'react-native';
import { ListItem, Icon } from 'react-native-elements';
import ActionSheet from 'reac... |
geonode/monitoring/frontend/monitoring/src/components/organisms/geonode-analytics/index.js | tomkralidis/geonode | /*
#########################################################################
#
# Copyright (C) 2019 OSGeo
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# ... |
components/autocomplete/Autocomplete.js | rubenmoya/react-toolbox | /* eslint-disable */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import classnames from 'classnames';
import { themr } from 'react-css-themr';
import { AUTOCOMPLETE } from '../identifiers.js';
import InjectChip from '../chip/Chip.js';
import InjectInpu... |
client/modules/Poll/components/PollModal/PollModal.js | maicongil/fcc_voting_app | import React from 'react';
import {Grid, Form, Radio, Label, Button, Header, Image, Modal, Divider, Card } from 'semantic-ui-react';
import { Pie } from 'react-chartjs';
const PollModal = (props) => (
<Modal trigger={<Label as="a">{props.poll.title}</Label>}>
<Modal.Header>{props.poll.title}</Modal.Header>
<... |
src/components/App.js | recursiveElk/finnoco.com | import React from 'react';
import Banner from './Banner/Banner';
import InProgressPage from './InProgress/InProgressPage';
export default function App() {
return (
<div className="container-fluid">
<Banner title="finnoco.com" />
</div>
);
}
|
hunt/src/components/EventValue.js | StamusNetworks/scirius | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Icon } from 'patternfly-react';
import EventValueInfo from 'hunt_common/components/EventValueInfo';
import { sections } from 'hunt_common/constants';
import { OverlayTrigger, Tooltip } from 'react-bootstrap';
... |
frontend/src/App.js | maurocchi/chesslave | import React from 'react'
import { hot } from 'react-hot-loader'
import { MuiThemeProvider, createMuiTheme, withStyles } from '@material-ui/core/styles'
import AppBar from '@material-ui/core/AppBar'
import Button from '@material-ui/core/Button'
import Toolbar from '@material-ui/core/Toolbar'
import Typography from '@ma... |
app/javascript/mastodon/features/direct_timeline/components/column_settings.js | unarist/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import SettingText from '../../../components/setting_text';
const messages = defineMessages({
filter_regex: { id: 'home... |
html.js | admah/c4tkg | import React from 'react'
import DocumentTitle from 'react-document-title'
import { prefixLink } from 'gatsby-helpers'
const BUILD_TIME = new Date().getTime()
module.exports = React.createClass({
displayName: 'HTML',
propTypes: {
body: React.PropTypes.string,
},
render() {
const {body,... |
src/interface/icons/WoWAnalyzer.js | sMteX/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
const Icon = ({ mainColor, arrowColor, ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" className="icon" {...other}>
<path
d="M11.4842 102.243L1.02185 84.2455L49.9996 -7.62939e-06L98.9777 84.2461L88.5199 102.236L87... |
es/components/UserCard/UserCard.js | welovekpop/uwave-web-welovekpop.club | import _jsx from "@babel/runtime/helpers/builtin/jsx";
import React from 'react';
import PropTypes from 'prop-types';
import Typography from "@material-ui/core/es/Typography";
import Card from "@material-ui/core/es/Card/Card";
import CardHeader from "@material-ui/core/es/CardHeader";
import CardActions from "@material-... |
apps/acm-voucher/apps/invoice-rule/action.js | fengzhike/acm_engine | import React from 'react'
import ReactDOM from 'react-dom'
import { action as MetaAction, AppLoader } from 'mk-meta-engine'
import config from './config'
import { Input, DataGrid, DatePicker, Select } from 'mk-component'
import { Map } from 'immutable'
import moment from 'moment'
class action {
constructor(option)... |
app/components/ListItem/index.js | hieubq90/react-boilerplate-3.4.0 | import React from 'react';
import PropTypes from 'prop-types';
import Item from './Item';
import Wrapper from './Wrapper';
function ListItem(props) {
return (
<Wrapper>
<Item>
{props.item}
</Item>
</Wrapper>
);
}
ListItem.propTypes = {
item: PropTypes.any,
};
export default ListItem... |
src/components/ToggleButton.js | zwhitchcox/redux-game-of-life | import React, { Component } from 'react';
import cn from 'classnames';
const NO_OP = () => null;
export default class ToggleButton extends Component {
constructor(props) {
super(props);
this.state = {
on: props.on
};
}
render() {
const iconClasses = cn('fa', 'fa-lg', {
'active': th... |
src/components/Icon/Icon.js | propertybase/react-lds | import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import IconSVG from './IconSVG';
const iconClass = (sprite, icon) => icon.replace(/_/g, '-');
const Icon = (props) => {
const {
background,
className,
div,
icon,
size,
sprite,
svgClassName,
t... |
app/javascript/mastodon/features/video/index.js | pixiv/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { fromJS } from 'immutable';
import { throttle } from 'lodash';
import classNames from 'classnames';
import { isFullscreen, requestFullscreen, exitFullscreen } from '../ui/uti... |
example/demo-next/components/EssayForm.js | orangebook/FlyLab | import React, { Component } from 'react';
export default class EssayForm extends Component {
constructor(props) {
super(props);
// this.state.value 初始化于构造函数中,因此文本区域默认有初值
this.state = {
value: '请撰写一篇关于你喜欢的 DOM 元素的文章。',
};
this.handleChange = this.handleChange.bind(this);
this.handleSubmi... |
docs/app/Examples/views/Statistic/Variations/StatisticExampleFloated.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Segment, Statistic } from 'semantic-ui-react'
const StatisticExampleFloated = () => (
<Segment>
<Statistic floated='right' label='Views' value='2,204' />
<p>
Te eum doming eirmod, nominati pertinacia argumentum ad his. Ex eam alia facete scriptorem, est autem aliquip... |
src/refer/ListItem.react.js | tigerandgirl/ssc-refer | 'use strict';
import cx from 'classnames';
import {noop} from 'lodash';
import React from 'react';
import getOptionLabel from './utils/getOptionLabel';
import menuItemContainer from '../containers/menuItemContainer';
const BaseListItem = React.createClass({
displayName: 'BaseListItem',
getDefaultProps() {
... |
5.2.4/src/routes.js | erikras/redux-form-docs | import React from 'react'
import { Router, Route, hashHistory } from 'react-router'
import markdownPage from 'components/markdownPage'
import App from 'pages/App'
import Home from 'pages/Home'
import Simple from 'pages/examples/Simple'
import ComplexValues from 'pages/examples/ComplexValues'
import File from 'pages/exa... |
test/helpers/shallowRenderHelper.js | Dasiys/gallery-by-react | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
src/components/customer_comments.js | etchoi/theTenSpot | import React from 'react';
const CustomerComments = () => {
return (
<section className="customer-comments">
<div className="row">
<div className="col s12">
<h4 className="center-align">Find the top selling, best reviewed items without all the research.</h4>
</div>
</div>
... |
src/examples/styles/cssmodules-className/index.js | vinogradov/spa-starter-kit | import React from 'react';
import ReactDOM from 'react-dom';
import style from './style.css';
function CssModulesClassName() {
return (
<div className={style.myBlock} />
);
}
ReactDOM.render(
<CssModulesClassName />,
document.querySelector('#app')
);
|
ajax/libs/react-instantsearch/4.0.0-beta.3/Dom.js | BenjaminVanRyseghem/cdnjs | /*! ReactInstantSearch 4.0.0-beta.3 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof def... |
example/examples/CachedMap.js | wannyk/react-native-maps | import React from 'react';
import {
Text,
View,
Dimensions,
StyleSheet,
ListView,
TouchableOpacity,
} from 'react-native';
import MapView, { ProviderPropType, Marker } from 'react-native-maps';
import flagImg from './assets/flag-blue.png';
const HORIZONTAL_PADDING = 12;
const VERTICAL_PADDING = 6;
class ... |
templates/rubix/rubix-bootstrap/src/Form.js | jeffthemaximum/jeffline | import React from 'react';
import BForm from 'react-bootstrap/lib/Form';
import FormGroup from './FormGroup';
import FormControl from './FormControl';
export default class Form extends React.Component {
static propTypes = {
allowAutoComplete: React.PropTypes.bool,
};
static defaultProps = {
allowAutoCom... |
client/app/components/RestaurantPage/Business/DishEdit.js | maekks/menu-plus | import React from 'react';
import PropTypes from 'prop-types';
const propTypes = {
openModal: PropTypes.func.isRequired,
dish: PropTypes.object.isRequired,
setDishEditing: PropTypes.object.isRequired,
};
class DishEdit extends React.PureComponent {
constructor(props) {
super(props);
this.onClick = thi... |
docs/src/app/components/pages/components/DropDownMenu/ExampleLabeled.js | verdan/material-ui | import React from 'react';
import DropDownMenu from 'material-ui/DropDownMenu';
import MenuItem from 'material-ui/MenuItem';
export default class DropDownMenuLabeledExample extends React.Component {
constructor(props) {
super(props);
this.state = {value: 2};
}
handleChange = (event, index, value) => th... |
detox/test/src/Screens/Orientation.js | simonracz/detox | import React, { Component } from 'react';
import {
Text,
View,
TouchableOpacity
} from 'react-native';
export default class Orientation extends Component {
constructor(props) {
super(props);
this.state = {
horizontal: false
};
console.log('Orientation react component constructed (console... |
src/components/common/icons/Glike.js | goodjoblife/GoodJobShare | import React from 'react';
/* eslint-disable */
const Glike = (props) => (
<svg {...props} width="148" height="148" viewBox="0 0 148 148">
<g fillRule="evenodd" transform="translate(25)">
<path d="M31.1149089,122.893731 C26.6674205,117.906016 24.2182868,111.158309 24.2182868,103.891725 C24.2182868,96.62049... |
src/js/components/icons/base/FormLock.js | odedre/grommet-final | /**
* @description FormLock SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @p... |
client/trello/src/app/components/PopOver/PopOver.js | Madmous/Trello-Clone | import React from 'react';
import FontAwesome from 'react-fontawesome';
import PropTypes from 'prop-types';
import './PopOver.css';
const propTypes = {
fullName: PropTypes.string.isRequired
}
export default function PopOver(props) {
const hidePopOver = () => {
props.popOverActions.hidePopOver();
}
const ... |
NavigationReact/sample/isomorphic/server.js | grahammendick/navigation | import express from 'express';
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import { NavigationHandler } from 'navigation-react';
import getStateNavigator from './getStateNavigator';
import { searchPeople, getPerson } from './Data';
import App from './App';
var app = express();
app.use(ex... |
node_modules/react-router/es6/IndexRedirect.js | dulik06/ReduxStarter | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import Redirect from './Redirect';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.string;
var object = _React$PropTypes.object;
/**
* An <IndexRedir... |
app/containers/index.js | laynemcnish/walksafely-react | import React from 'react';
import PureComponent from 'react-pure-render/component';
import store from '../store';
import initRootComponent from '../util/init_root_component';
import Header from './header';
import MapCanvas from './map-canvas';
require("../styles/application.css");
class Root extends PureComponent {
... |
src/app/index.js | mohsen1565/ReactProjects | import React from 'react';
import { render } from 'react-dom';
import { Header } from "./components/Header";
import { Home } from "./components/Home";
class App extends React.Component {
constructor() {
super();
this.age = 27;
}
onSayHello() {
alert("Hello!");
}
render() ... |
src/pages/conference/people/participant/participantDetail/index.js | sunway-official/acm-admin | import React, { Component } from 'react';
import ParticipantDetail from './participantDetail';
class Index extends Component {
render() {
const participantDetail = this.props.participantDetail;
return (
<div>
<ParticipantDetail participantDetail={participantDetail} />
</div>
);
}
}
... |
app/javascript/mastodon/components/dropdown_menu.js | clworld/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import IconButton from './icon_button';
import Overlay from 'react-overlays/lib/Overlay';
import Motion from '../features/ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
imp... |
frontend/src/Calendar/Legend/LegendIconItem.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React from 'react';
import Icon from 'Components/Icon';
import styles from './LegendIconItem.css';
function LegendIconItem(props) {
const {
name,
icon,
kind,
tooltip
} = props;
return (
<div
className={styles.legendIconItem}
title={toolt... |
src/components/mobile_userCenter.js | YMFL/reactNews | /**
* Created by YangQianHui on 2017/4/10.
*/
import React from 'react';
import {Tabs,Row,Col } from 'antd';
import MobileHeader from './mobile_header';
import MobileFooter from './mobile_footer';
const TabPane=Tabs.TabPane;
class MobileUserCenter extends React.Component {
render() {
return (
... |
src/icons/StrokeCube.js | ipfs/webui | import React from 'react'
const StrokeCube = props => (
<svg viewBox='0 0 100 100' {...props}>
<path d='M84.173 64.865v-29.1a4.48 4.48 0 1 0-4.4-7.63l-25.35-14.61a4.7 4.7 0 0 0 0-1.5 4.485 4.485 0 0 0-8.86 1.4v.17l-25 14.85a4.48 4.48 0 1 0-4.74 7.32v29.08a4.48 4.48 0 0 0 1.5 8.71 4.14 4.14 0 0 0 .7-.06 4.24 4.24... |
App/index.js | bretth18/PresidioWallet | 'use strict';
/* Router component */
import React, { Component } from 'react';
import { connect, Provider } from 'react-redux';
import store from './Store/Store';
import { Router, Scene, Modal } from 'react-native-router-flux';
import HomeContainer from './Containers/HomeContainer';
import PassphraseModalContainer fro... |
src/components/tabs/Tabs.js | lany9527/react-explore | /**
* Created by littlestone on 2017/3/24.
*/
import React from 'react';
import {Link} from 'react-router-dom';
import './Tabs.css';
export default class Tabs extends React.Component {
// constructor(props) {
// super(props);
// }
state = {
tabs: [
{title: '全部', tag: 'all'},
{title: '精华', t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.