path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
assets/containers/Home/index.js | simongfxu/react-starter-project | import React from 'react'
import {inject, observer} from 'mobx-react'
import {withRouter} from 'react-router-dom'
import PropTypes from 'prop-types'
import {translate} from 'react-i18next'
@translate('translations')
@inject('userStore')
@withRouter
@observer
export default class Home extends React.Component {
static... |
assets/javascripts/kitten/karl/pages/pre-deposit/components/triptych/card-with-button.js | KissKissBankBank/kitten | import React from 'react'
import {
Marger,
Title,
Text,
Paragraph,
HorizontalStroke,
parseHtml,
COLORS,
} from 'kitten'
export const CardWithButton = ({
imageProps,
titleProps,
title,
paragraph,
notice,
horizontalStroke,
marginBetweenImgAndContent,
}) => (
<div className="PreDeposit__trip... |
client/src/client-only-routes/ShowUser.js | otavioarc/freeCodeCamp | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { Link, navigate } from 'gatsby';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import {
Panel,
FormControl,
FormGroup,
ControlLabel,
Button,
C... |
src/components/Home.js | kgosse/erp2042 | /**
* Created by kevin on 03/03/2016.
*/
import React from 'react';
import styleable from 'react-styleable';
import AppBar from 'material-ui/lib/app-bar';
import IconButton from 'material-ui/lib/icon-button';
import NavigationClose from 'material-ui/lib/svg-icons/navigation/close';
import IconMenu from 'material-ui... |
app/javascript/mastodon/features/account/components/header.js | increments/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import IconButton from '../../../components/icon_button';
import Motion from '../../ui/util/optional_motion';
import sprin... |
client/src/components/sales/pricing-table.js | WebTalentTop/newsfere-mern | import React, { Component } from 'react';
import { Link } from 'react-router';
class PricingTable extends Component {
render() {
const componentStyle = {
backgroundColor: this.props.color || '#5BC0DE',
color: this.props.fontColor || '#FFF',
};
return (
<div className="pricing-table">
... |
app/containers/MapAssessments/MapAssessments.js | klpdotorg/tada-frontend | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Loadable from 'react-loadable';
import get from 'lodash.get';
// import { MapAssessmentsView } from '../../components/MapAssessments';
import { mapBoundariesToAssessments } from '../../actions';
... |
src/components/save/SavePage.js | cardano/dc-walking-skeleton | 'use strict';
import React, { Component } from 'react';
class SavePage extends Component {
render() {
return (
<div className="container">
<div className="row">
<h1>Saving to Internal Service</h1>
<p>Enter some text then click the button below to test the save feature.</p>
... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestAndDefault.js | GreenGremlin/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
function load({ id, ...rest } = { id: 0, user: { id: 42, ... |
frontend/app/security/pages/Login/Login.js | briancappello/flask-react-spa | import React from 'react'
import Helmet from 'react-helmet'
import { compose } from 'redux'
import { connect } from 'react-redux'
import reduxForm from 'redux-form/es/reduxForm'
import { parse } from 'query-string'
import { login } from 'security/actions'
import { DangerAlert, PageContent } from 'components'
import { ... |
src/routes/stats-board/index.js | fechy/retropie-web-gui | /**
* 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 from 'react';
import NotFound from '../notFou... |
app/components/SearchResultList/index.js | swmerko/bindee_frontend | /**
*
* SearchResultList
*
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
import messages from './messages';
class SearchResultList extends React.Component { // eslint-disable-line react/prefer-stateless-function
render() {
return (
<div>
<FormattedMessage {...messag... |
src/svg-icons/communication/location-off.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationLocationOff = (props) => (
<SvgIcon {...props}>
<path d="M12 6.5c1.38 0 2.5 1.12 2.5 2.5 0 .74-.33 1.39-.83 1.85l3.63 3.63c.98-1.86 1.7-3.8 1.7-5.48 0-3.87-3.13-7-7-7-1.98 0-3.76.83-5.04 2.15l3.19 ... |
src/charts/template/Component.js | Golodhros/britecharts-react | /* eslint-disable */
import React from 'react';
import PropTypes from 'prop-types';
import {{camelCase componentName}} from './{{camelCase componentName}}Chart';
import {loadingContainerWrapper} from '../loading/LoadingContainer';
class {{pascalCase componentName}} extends React.Component {
static propTypes = {
... |
storybook/config.js | heropunch/mastodon-ce | import { configure, setAddon } from '@kadira/storybook';
import IntlAddon from 'react-storybook-addon-intl';
import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { addLocaleData } from 'react-intl';
import en from 'react-intl/locale-data/en';
import '../app/assets/stylesheets/compone... |
client/src/index.js | AlexQianjin/aquarius | import React from 'react';
import { createRoot } from 'react-dom/client';
import './index.css';
import { BrowserRouter } from 'react-router-dom';
import App from './App';
import * as serviceWorker from './serviceWorker';
const container = document.getElementById('root');
const root = createRoot(container);
root.rende... |
src/svg-icons/av/mic-off.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvMicOff = (props) => (
<SvgIcon {...props}>
<path d="M19 11h-1.7c0 .74-.16 1.43-.43 2.05l1.23 1.23c.56-.98.9-2.09.9-3.28zm-4.02.17c0-.06.02-.11.02-.17V5c0-1.66-1.34-3-3-3S9 3.34 9 5v.18l5.98 5.99zM4.27 3L3 4.2... |
src/frontend/components/AdminCallAssignment.js | Bernie-2016/ground-control | import React from 'react';
import Relay from 'react-relay';
import {BernieText} from './styles/bernie-css';
import {Paper, List, ListItem} from 'material-ui';
import moment from 'moment';
import {Link} from 'react-router'
export class AdminCallAssignment extends React.Component {
render() {
return (
<div>
... |
frontend/src/components/profile/feed/posts-list/index.js | 1905410/Misago | // jshint ignore:start
import React from 'react';
import Post from './post';
import PostPreview from './post-preview';
export default function(props) {
if (!props.isReady) {
return (
<ul className="posts-list ui-preview">
<PostPreview />
</ul>
);
}
return (
<ul className="posts-l... |
frontend/src/Components/Menu/SelectedMenuItem.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Icon from 'Components/Icon';
import { icons } from 'Helpers/Props';
import MenuItem from './MenuItem';
import styles from './SelectedMenuItem.css';
class SelectedMenuItem extends Component {
//
// Listeners
onPress = () => {
... |
who_paid_what_2/imports/api/Payments.js | bburscher/who_paid_what | import { Mongo } from 'meteor/mongo'
import React, { Component } from 'react';
import { Meteor } from 'meteor/meteor';
import { Tracker } from 'meteor/tracker';
import SimpleSchema from 'simpl-schema';
import Remainders from './Remainders.js'
SimpleSchema.extendOptions(['autoform']);
const USER1 = {id: '8d6e2mDt5Ea6M... |
app/react-icons/fa/diamond.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaDiamond extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m4.1 17.5l12.1 12.9-5.8-12.9h-6.3z m15.8 15l6.7-15h-13.5z m-9.5-17.5l4-7.4h-... |
app/containers/tablaTabs.js | Judygc/Api_ActiveCollab | import React from 'react';
import axios from 'axios';
import _ from 'lodash';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as actionCreators from '../redux-stuff/reducers';
import Login from './Login';
import ReactDataGrid,{CheckboxEditor} from 'react-data-grid';
... |
src/Row.js | aabenoja/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const Row = React.createClass({
propTypes: {
componentClass: React.PropTypes.node.isRequired
},
getDefaultProps() {
return {
componentClass: 'div'
};
},
render() {
let ComponentClass = this.props.componentClass;
retu... |
project/LearnReact/node_modules/react-templates/playground3/src/fiddle.js | xzzw9987/Memos | 'use strict';
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import fiddleTemplate from './fiddle.rt';
import _ from 'lodash';
import Firebase from 'firebase';
import $ from 'jquery';
//var React = require('react');
//var fiddleTemplate = require('./fiddle.rt');
//var Fiddle = React.creat... |
src/containers/messages.js | jeetiss/client | import React from 'react'
import AutoScrollContainer from '../components/autoscrollcontainer'
import Header from '../components/header'
import { connect } from 'react-redux'
import { selectMessages, selectAnimationNeed, composeSelectors } from '../selectors'
import { Message } from '../components/message'
const needN... |
client/src/auth/withAuthentication.js | egdbear/simple-chat | import React from 'react';
import { isNull } from 'lodash';
import { connect } from 'react-redux';
export default (Component) => {
class WrappedAuthentication extends React.Component {
render() {
const { history } = this.props;
const { token } = this.props.auth;
if (isNull(token)) {
re... |
zanata-editor/src/app/containers/ParamPropDispatcher.js | Halcom/zanata-server | /**
* Component to dispatch props.params to get them into redux state.
*
* Cannot have any children - just put it as a sibling at the appropriate level
* Only triggers an update when props.location.pathname has changed, since that
* is where all the params should come from.
*
* This is for convenience, so that p... |
src/components/GameLobby.js | hostables/musicquiz | import React from 'react'
import {compose, lifecycle, withProps, withState} from "recompose"
import {withDatabaseSubscribe, withLoading} from "./hocs"
import GameUsersList from './GameUsersList'
import database from "../database";
import UserResponseScreen from "./UserResponseScreen";
import {
Screen,
ScreenHeade... |
src/Rating.component.js | zeusdeux/kebabful | import React from 'react'
import './Rating.css'
import greyKebab from './icon-kebab_grey.svg'
import redKebab from './icon-kebab_red.svg'
import halfKebab from './icon-kebab_half.svg'
const Rating = ({ rating }) => {
let kebabs = [kebab(greyKebab, 0), kebab(greyKebab, 1), kebab(greyKebab, 2), kebab(greyKebab, 3), ke... |
node_modules/react-bootstrap/es/Table.js | rblin081/drafting-client | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/routes.js | yang-zhang-syd/React-Wechat-E2E-Test-With-Fake-Api | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App';
import HomePage from './pages/home/HomePage';
import SearchPage from './pages/search/SearchPage';
import ListPage from './pages/list/ListPage';
import VoucherPage from './pages/voucher/VoucherPage';
import A... |
src/components/Counter/Counter.js | akossebestyen/getrecd-client-redux | import React from 'react'
import classes from './Counter.scss'
export const Counter = (props) => (
<div>
<h2 className={classes.counterContainer}>
Counter:
{' '}
<span className={classes['counter--green']}>
{props.counter}
</span>
</h2>
<button className='btn btn-default' ... |
src/form/SelectCompanyT1.js | philipzhou2009/amoy-rangers | import React from 'react'
import { graphql } from 'react-apollo'
import { Field } from 'redux-form'
import { companyListQuery } from '../graphql'
const SelectCompanyT1 = (props) => {
const { data: { loading, error, allArCompanies } } = props
const { options } = props
if (loading) {
return <p>Load... |
actor-apps/app-web/src/app/components/modals/InviteUser.react.js | tsdl2013/actor-platform | import _ from 'lodash';
import React from 'react';
import ActorClient from 'utils/ActorClient';
import { KeyCodes } from 'constants/ActorAppConstants';
import InviteUserActions from 'actions/InviteUserActions';
import ContactStore from 'stores/ContactStore';
import InviteUserStore from 'stores/InviteUserStore';
im... |
app/javascript/mastodon/features/ui/components/actions_modal.js | res-ac/mstdn.res.ac | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import StatusContent from '../../../components/status_content';
import Avatar from '../../../components/avatar';
import Relative... |
internals/templates/containers/HomePage/index.js | fenderface66/spotify-smart-playlists | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it and remove
* the l... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/FlowNone.js | jamesgpearce/flow | import React from 'react';
class MyComponent extends React.Component {
static defaultProps: DefaultProps = {};
props: Props;
state: State = {};
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extends React.Component {
st... |
src/components/Flag/Flag.js | wundery/wundery-ui-react | import React from 'react';
import classnames from 'classnames';
import ReactTooltip from 'react-tooltip';
import { randomString } from '../../utils';
import { spacingStyles } from '../Spacing/utils';
function Flag(props) {
const { margin, tooltip, code, text } = props;
const styles = margin
? spacingStyles({ ... |
assets/javascripts/kitten/components/graphics/icons-next/whatsapp-icon-next/index.js | KissKissBankBank/kitten | import React from 'react'
import PropTypes from 'prop-types'
export const WhatsappIconNext = ({ color, title, ...props }) => (
<svg
width="27"
height="27"
fill="none"
viewBox="0 0 27 27"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
{title && <title>{title}</title>}
<path
d=... |
server/sonar-web/src/main/js/apps/projects/filters/CoverageFilter.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/svg-icons/content/report.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentReport = (props) => (
<SvgIcon {...props}>
<path d="M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM12 17.3c-.72 0-1.3-.58-1.3-1.3 0-.72.58-1.3 1.3-1.3.72 0 1.3.58 1.3 1.3 0 .72-.58 1.3-1.3... |
src/client.js | moshie/universal-react-boilerplate | import ReactDOM from 'react-dom'
import React from 'react'
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import { BrowserRouter } from 'react-router-dom'
import App from './http/components/app'
const store = createStore((state) => state, window.PROPS)
ReactDOM.render(
<Provider store=... |
actor-apps/app-web/src/app/components/modals/CreateGroup.react.js | Havi4/actor-platform | import React from 'react';
import CreateGroupActionCreators from 'actions/CreateGroupActionCreators';
import CreateGroupStore from 'stores/CreateGroupStore';
import CreateGroupForm from './create-group/Form.react';
import Modal from 'react-modal';
import { KeyCodes } from 'constants/ActorAppConstants';
const appEl... |
node_modules/recharts/demo/component/BrushDemo.js | SerendpityZOEY/Solr-Search-React-UI | import React from 'react';
import { Surface, Brush } from 'recharts';
export default React.createClass({
render () {
let data = [
'2015-10-01',
'2015-10-02',
'2015-10-03',
'2015-10-04',
'2015-10-05',
'2015-10-06',
'2015-10-07',
'2015-10-08',
... |
src/component/password-quality-input.js | orhanmaden/react-password-quality-input | import React from 'react';
import ReactDOM from 'react-dom';
import zxcvbn from 'zxcvbn'
export default class PasswordQualityInput extends React.Component {
constructor(props) {
super(props);
this.state = {
quality: "VERY WEAK"
};
}
measureQuality(password) {
let result = zxcvbn(passwor... |
pages/logout.js | acorcutt/next-auth0-components | import React from 'react';
import Router from 'next/router';
import Login from '../components/Login';
class LogoutPage extends React.Component {
constructor(props) {
super(props);
}
componentDidMount(){
try{
window.localStorage.removeItem('auth0AccessToken');
window.localStorage.... |
examples/counter/containers/CounterApp.js | janraasch/redux | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'redux/react';
import Counter from '../components/Counter';
import * as CounterActions from '../actions/CounterActions';
@connect(state => ({
counter: state.counter
}))
export default class CounterApp extend... |
src/svg-icons/communication/call-end.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallEnd = (props) => (
<SvgIcon {...props}>
<path d="M12 9c-1.6 0-3.15.25-4.6.72v3.1c0 .39-.23.74-.56.9-.98.49-1.87 1.12-2.66 1.85-.18.18-.43.28-.7.28-.28 0-.53-.11-.71-.29L.29 13.08c-.18-.17-.29-.... |
aNowRedux/index.ios.js | archtechfl/reactNativeReduxTest | import React, { Component } from 'react';
import { AppRegistry, Text, StyleSheet, View } from 'react-native';
// Redux
import C from './constants';
import allReducers from './store/reducers'
import { createStore } from 'redux'
import { Provider, connect } from 'react-redux'
// Component
import GeoLocation from './com... |
website/src/components/typography.js | explosion/spaCy | import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import Tag from './tag'
import Button from './button'
import Icon from './icon'
import { isString, github, headingTextClassName } from './util'
import classes from '../styles/typography.module.sass'
export const H1 = ({ C... |
src/contentscript/references/ReferencesService.js | emfmesquita/beyondhelp | import $ from "jquery";
import React from 'react';
import ReactDOM from 'react-dom';
import ReferenceApp from "./ReferenceApp";
import HeaderToolbarService from "../../services/HeaderToolbarService";
const headersSelector = ".primary-content h1[id], .primary-content h2[id], .primary-content h3[id], .primary-content h4... |
src/js/components/Pagination/stories/NumberEdgePages.js | grommet/grommet | import React from 'react';
import { Box, Pagination, Text } from 'grommet';
export const NumberEdgePages = () => (
// Uncomment <Grommet> lines when using outside of storybook
// <Grommet theme={...}>
<Box pad="small" gap="medium">
<Box>
<Text>numberEdgePages = 2 (number of pages on start/end)</Text>
... |
src/Popover.js | roadmanfong/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import CustomPropTypes from './utils/CustomPropTypes';
const Popover = React.createClass({
mixins: [ BootstrapMixin ],
propTypes: {
/**
* An html id attribute, necessary for accessibility
... |
src/components/Sidebar/Sidebar.js | Gouthamve/BINS-FRONT | import React from 'react'
import { Image, ListGroup, ListGroupItem } from 'react-bootstrap'
import dp from 'img/dp.jpg';
const Sidebar = () => {
return <div>
<Image src={dp} responsive />
<ListGroup>
<ListGroupItem href='/dashboard'><i className='fa fa-home fa-3x'></i></ListGroupItem>
<ListGroup... |
pootle/static/js/auth/components/PasswordResetForm.js | translate/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 assign from 'object-assign';
import React from 'rea... |
analysis/demonhunterhavoc/src/modules/features/Checklist/Module.js | yajinni/WoWAnalyzer | import React from 'react';
import BaseModule from 'parser/shared/modules/features/Checklist/Module';
import CastEfficiency from 'parser/shared/modules/CastEfficiency';
import Combatants from 'parser/shared/modules/Combatants';
import ManaValues from 'parser/shared/modules/ManaValues';
import PreparationRuleAnalyzer fr... |
packages/generator-fluxible/app/templates/client.js | localnerve/fluxible | /*global document, window */
import ReactDOM from 'react-dom';
import React from 'react';
import debug from 'debug';
import { createElementWithContext } from 'fluxible-addons-react';
import app from './app';
const debugClient = debug('<%= name %>');
const dehydratedState = window.App; // Sent from the server
window.... |
src/ButtonGroup.js | insionng/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import CustomPropTypes from './utils/CustomPropTypes';
const ButtonGroup = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
vertical: React.PropTypes.bool,
justified: React.PropTypes.b... |
app/javascript/mastodon/components/autosuggest_emoji.js | ambition-vietnam/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import unicodeMapping from '../features/emoji/emoji_unicode_mapping_light';
const assetHost = process.env.CDN_HOST || '';
export default class AutosuggestEmoji extends React.PureComponent {
static propTypes = {
emoji: PropTypes.object.isRequired,
... |
src/common/components/vanilla/table-interactive/head.js | canonical-ols/build.snapcraft.io | import PropTypes from 'prop-types';
import React from 'react';
import styles from './table.css';
export default function Head(props) {
return (
<header className={ styles.head }>
{ props.children }
</header>
);
}
Head.propTypes = {
children: PropTypes.node
};
|
src/components/pages/tasks/TaskListItem.js | juandjara/open-crono | import React, { Component } from 'react';
import Icon from 'react-toolbox/lib/font_icon/FontIcon'
import IconButton from 'react-toolbox/lib/button/IconButton'
import styled from 'styled-components'
import {Link} from 'react-router'
import Initials from './Initials'
const SpaceBetween = styled.div`
display: flex;
j... |
src/App.js | Eastern-Research-Group/epa-digital-services-rfi-js | // Libraries
import React, { Component } from 'react';
import _ from 'lodash';
import './assets/styles/base.scss';
// Components
import { HeaderContainer } from './assets/scripts/components/containers/HeaderContainer';
import { DataMapContainer } from './assets/scripts/components/containers/DataMapContainer';
import {... |
src/svg-icons/av/volume-down.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVolumeDown = (props) => (
<SvgIcon {...props}>
<path d="M18.5 12c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM5 9v6h4l5 5V4L9 9H5z"/>
</SvgIcon>
);
AvVolumeDown = pure(AvVolumeDown);
AvVolumeD... |
09-hooks/src/NewTodo.js | dtanzer/react-basic-examples | import React from 'react';
export class NewTodo extends React.Component {
constructor(props) {
super(props);
this.state = {
input: "",
};
}
render() {
return (
<div>
<input type="text" value={this.state.input} onChange={e => this.setState({input: e.target.value})} />
<... |
src/svg-icons/av/slow-motion-video.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvSlowMotionVideo = (props) => (
<SvgIcon {...props}>
<path d="M13.05 9.79L10 7.5v9l3.05-2.29L16 12zm0 0L10 7.5v9l3.05-2.29L16 12zm0 0L10 7.5v9l3.05-2.29L16 12zM11 4.07V2.05c-2.01.2-3.84 1-5.32 2.21L7.1 5.69c1.... |
src/js/components/list/app-list-button.js | TheFixers/node-honeypot-client | /**
* Filename: 'app-list-button.js'
* Author: JMW <rabbitfighter@cryptolab.net>
* App list button component
*/
import React from 'react'
import AppStore from '../../stores/app-store'
import StoreWatchMixin from '../../mixins/StoreWatchMixin'
import { Link } from 'react-router'
const getListTotals = () => {
re... |
examples/example-2/index.js | aliaksandr-master/react-fractal-field | /* eslint-disable react/prop-types, react/jsx-no-bind, react/no-array-index-key, jsx-a11y/label-has-for */
import React from 'react';
import { render } from 'react-dom';
import omit from 'lodash/omit';
import { FieldSet, FieldList, Field } from '../../lib/index';
import { Wrapper, composeFilter, ErrorBlock, FieldCheckB... |
examples/huge-apps/routes/Course/routes/Announcements/components/Announcements.js | upraised/react-router | import React from 'react';
class Announcements extends React.Component {
render () {
return (
<div>
<h3>Announcements</h3>
{this.props.children || <p>Choose an announcement from the sidebar.</p>}
</div>
);
}
}
export default Announcements;
|
packages/react-scripts/fixtures/kitchensink/src/features/webpack/LinkedModules.js | g3r4n/create-esri-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import './assets/style.css';
import { test, version } from 'test-integrity';
export default () => {
const ... |
app/components/SearchGroupList/index.js | ScoutingIJsselgroep/Jotihunt | /**
*
* SearchGroupList
*
*/
import React from 'react';
import { Form, Text } from 'react-form';
// import styled from 'styled-components';
class SearchGroupList extends React.Component { // eslint-disable-line react/prefer-stateless-function
render() {
const myForm = (
<Form
onChange={(values) ... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ComputedProperties.js | liamhu/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
function load(prefix) {
return [
{ id: 1, [`${prefi... |
app/javascript/mastodon/features/ui/components/media_modal.js | musashino205/mastodon | import React from 'react';
import ReactSwipeableViews from 'react-swipeable-views';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Video from 'mastodon/features/video';
import classNames from 'classnames';
import { defineMessages, injectIntl } from 'react-intl';
i... |
src/Main/Gear.js | hasseboulen/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import Icon from 'common/Icon';
import ItemLink from 'common/ItemLink';
import ITEM_QUALITIES from 'common/ITEM_QUALITIES';
class Gear extends React.PureComponent {
static propTypes = {
selectedCombatant: PropTypes.object.isRequired,
};
render()... |
app/jsx/collaborations/CollaborationsToolLaunch.js | djbender/canvas-lms | /*
* Copyright (C) 2016 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
react/features/base/i18n/functions.js | gpolitis/jitsi-meet | // @flow
import React from 'react';
import { withTranslation } from 'react-i18next';
import i18next from './i18next';
/**
* Changes the main translation bundle.
*
* @param {string} language - The language e.g. 'en', 'fr'.
* @param {string} url - The url of the translation bundle.
* @returns {void}
*/
export as... |
src/ui/Client.js | scrollback/pure | /* @flow */
import './Client-base';
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { StyleRoot } from 'radium';
import AppContainer from './components/containers/AppContainer';
import Provider from '../modules/store/Provider';
import store from '../modules/store/store';
export defa... |
app/components/team/Members/role.js | fotinakis/buildkite-frontend | import React from 'react';
import PropTypes from 'prop-types';
import Chooser from '../../shared/Chooser';
import Dropdown from '../../shared/Dropdown';
import PermissionSelectOptionDescriptions from '../../shared/PermissionSelectOptionDescriptions';
import PermissionDescription from '../../shared/PermissionDescriptio... |
src/components/Footer/Footer.js | dontexpectanythingsensible/password-checker | import React from 'react';
export default class Footer extends React.Component {
shouldComponentUpdate () {
return false;
}
render () {
/* eslint-disable max-len */
return (
<footer className='footer'>
<p>This tool provides advice on creating a strong password and allows you to estimat... |
src/react/input/FancyGoogleButton.js | laundree/app | // @flow
import React from 'react'
import FancyImageTextButton from './FancyImageTextButton'
import { fancyGoogleButton } from '../../style'
const FancyGoogleButton = ({id, onPress, disabled}: { id: string, onPress: Function, disabled?: boolean }) => (
<FancyImageTextButton
style={fancyGoogleButton.button}
... |
client/omnichannel/realTimeMonitoring/counter/CounterItem.js | Sing-Li/Rocket.Chat | import React from 'react';
import { Box } from '@rocket.chat/fuselage';
const CounterItem = ({ title = '', count = '-', ...props }) => <Box
display='flex'
flexDirection='column'
justifyContent='space-between'
alignItems='center'
flexGrow={1}
{...props}
>
<Box fontScale='s1' textTransform='uppercase' color='hint... |
app/example/containers/Example.js | clariussystems/react-orderable | import classNames from 'classnames';
import Immutable from 'immutable';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ExampleItem from '../components/ExampleItem';
import Orderable from '../../../src/components/Orderable';
import React from 'react';
import styles from './Example.scss';
class Examp... |
src/app/components/chat/components/AsideChatUser.js | backpackcoder/world-in-flames | import React from 'react'
import {Popover, OverlayTrigger} from 'react-bootstrap'
import {bindActionCreators} from 'redux'
import {connect} from 'react-redux'
import * as ChatActions from '../ChatActions'
// import chatboxManager from 'chatbox'
import HtmlRender from '../../../components/utils/HtmlRender'
import {... |
reactjs/budget/client/components/LoginControl/LoginButton.js | Kevin-Huang-NZ/notes | import React, { Component } from 'react';
class LoginButton extends Component {
render() {
return (
<button type="button" onClick={this.props.onClick} className="btn btn-primary">
Login
</button>
);
}
}
export default LoginButton; |
docs/src/app/components/pages/components/Popover/ExampleConfigurable.js | ngbrown/material-ui | import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import RadioButton from 'material-ui/RadioButton';
import Popover from 'material-ui/Popover/Popover';
import {Menu, MenuItem} from 'material-ui/Menu';
const styles = {
h3: {
marginTop: 20,
fontWeight: 400,
},
block: {
dis... |
src/components/App.js | gbezyuk/redux-sandbox | import React, { Component } from 'react';
import { NICE, SUPER_NICE } from '../constants/colors';
import Counter from './Counter';
export default class App extends Component {
render() {
return (
<div>
<Counter increment={1} color={NICE} />
<Counter increment={5} color={SUPER_NICE} />
... |
public/js/components/admin/feedback/chat.react.js | MadushikaPerera/Coupley | /**
* Created by Isuru 1 on 07/02/2016.
*/
import React from 'react';
import Table from 'material-ui/lib/table/table';
import TableHeaderColumn from 'material-ui/lib/table/table-header-column';
import TableRow from 'material-ui/lib/table/table-row';
import TableHeader from 'material-ui/lib/table/table-header';
import... |
src/svg-icons/editor/format-strikethrough.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatStrikethrough = (props) => (
<SvgIcon {...props}>
<path d="M10 19h4v-3h-4v3zM5 4v3h5v3h4V7h5V4H5zM3 14h18v-2H3v2z"/>
</SvgIcon>
);
EditorFormatStrikethrough = pure(EditorFormatStrikethrough);
Edit... |
examples/counter/containers/CounterApp.js | STRML/redux | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'redux/react';
import Counter from '../components/Counter';
import * as CounterActions from '../actions/CounterActions';
@connect(state => ({
counter: state.counter
}))
export default class CounterApp {
render() {
co... |
src/components/FeaturedSet.js | JasonLunsford/LEGO_Tracker | import React from 'react';
import PropTypes from 'prop-types';
import { Alert } from 'reactstrap';
import _ from 'lodash';
import { LoadingScreen } from './ui/LoadingScreen';
import { AddToSetButton } from './ui/AddToSetButton';
import { extractThemeName } from '../lib/helpers';
export const FeaturedSet = (props) =... |
src/svg-icons/image/filter-9-plus.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter9Plus = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 7V8c0-1.11-.9-2-2-2h-1c-1.1 0-2 .89-2 2v1c0 1.11.9 2 2 2h1v1H9v2h3c1.1 0 2-.89 2-2zm-3-3V8h1v1h-1zm10-8H7c-1.1... |
src/components/news/NewsSection.js | evonsdesigns/markts-app | import React from 'react';
import lookupFaviconSrc from '../util/FaviconSrcLookupUtil';
function getHeadlines(content) {
if(content && content.articles) {
return content.articles.map((article, index) => {
const href = article.url || article.link;
const brief = article.description |... |
app/assets/javascripts/src/components/users/Profile.js | talum/creamery | import React from 'react'
import ReactCSSTransitionGroup from 'react-addons-css-transition-group'
import moment from 'moment'
import { connect } from 'react-redux'
import { oauthInstagram } from '../../adapters/creameryApi'
import { showUser, updateUser } from '../../actions/users'
import { showIceCreams } from '../../... |
src/Popover.js | chrishoage/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import CustomPropTypes from './utils/CustomPropTypes';
const Popover = React.createClass({
mixins: [ BootstrapMixin ],
propTypes: {
/**
* An html id attribute, necessary for accessibility
... |
src/interface/report/Results/EncounterStats.js | fyruna/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import SPECS from 'game/SPECS';
import ROLES from 'game/ROLES';
import ITEMS from 'common/ITEMS';
import fetchWcl from 'common/fetchWclApi';
import Icon from 'common/Icon';
import ItemLink from 'common/ItemLink';
import SpellLink from 'common/SpellLink';
i... |
app/components/app/components/DialogNewOrder.js | zetapath/trckr | import React from 'react';
import model from '../../../modules/model';
import { Button } from 'react-toolbox/lib/button';
import Dialog from 'react-toolbox/lib/dialog';
import Input from 'react-toolbox/lib/input';
export default class Orders extends React.Component {
constructor() {
super();
this.state = {
... |
client/src_old/components/App/index.js | Del7a/vehicle-finder | import React, { Component } from 'react';
import logo from './logo.svg';
import './index.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
... |
src/components/App/index.js | balintsoos/brickland | import React from 'react'
import Hero from 'components/Hero'
import Header from 'components/Header'
import Footer from 'components/Footer'
class App extends React.Component {
render() {
return (
<div className="app">
<Hero />
<Header />
<div className="content-wrapper">
... |
components/TournamentListing.js | turntwogg/esports-aggregator | import React from 'react';
import Link from 'next/link';
import { useTheme } from '@turntwo/react-ui';
import idx from 'idx';
import RaisedBox from './RaisedBox';
import ButtonGroup from './ButtonGroup';
import Button from './Button';
import Heading from './Heading';
import api from '../utils/api';
const TournamentL... |
ee/client/audit/AuditPageBase.js | VoiSmart/Rocket.Chat | import {
Box,
Field,
TextInput,
ButtonGroup,
Button,
Margins,
Tabs,
Flex,
} from '@rocket.chat/fuselage';
import { useMutableCallback } from '@rocket.chat/fuselage-hooks';
import React from 'react';
import Page from '../../../client/components/Page';
import { useTranslation } from '../../../client/contexts/Tra... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.