path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
app/extensions/safe/auth-web-app/components/account_info.js | joshuef/peruse | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import classNames from 'classnames';
export default class AccountInfo extends Component {
static propTypes = {
isLoading: PropTypes.bool.isRequired,
done: PropTypes.number.isRequired,
available: PropTypes.number,
refresh: P... |
src/components/contact/contact-form.js | adrienlozano/stephaniewebsite | import React from 'react';
import styled from 'styled-components';
import { darken } from 'polished';
import { Flex, Box, Label, Text, Button } from 'rebass';
import Input from "~/components/input";
import { curry } from 'ramda';
import { withHandlers, withState, withStateHandlers, compose } from 'recompose';
import { ... |
definitions/npm/react-helmet_v3.x.x/test_react-helmet.js | gaborsar/flow-typed | // @flow
import React from 'react';
import Helmet from 'react-helmet';
const HelmetComponent = () => (
<Helmet
htmlAttributes={{"lang": "en", "amp": undefined}} // amp takes no value
title="My Title"
titleTemplate="MySite.com - %s"
defaultTitle="My Default Title"
base={{"target": "_blank", "href":... |
client/js/BST.js | Firescar96/geometric-bst-visualizer | import React from 'react';
import { connect } from 'react-redux';
import StandardBSTGraph from './StandardBSTGraph.js';
import GeometricBSTGraph from './GeometricBSTGraph.js';
import {store} from './main.js';
require('../sass/bst.scss');
import {INSERT_NODE, ADD_POINT, SET_ROOT, CLEAR_POINTS} from './constants';
funct... |
frontend/jqwidgets/jqwidgets-react/react_jqxtextarea.js | liamray/nexl-js | /*
jQWidgets v5.7.2 (2018-Apr)
Copyright (c) 2011-2018 jQWidgets.
License: https://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxTextArea extends React.Component {
componentDidMount() {
let options = this.manag... |
src/routes/Onboard/components/SetupYourTests.js | TheTorProject/ooni-wui | import React from 'react'
import { FormattedMessage } from 'react-intl'
import Deck from '../../../components/Deck'
const SetupYourTests = ({ onNextClick, onDeckToggled, decks, initializing }) => {
return (
<div className='container'>
<div className='row text-xs-center'>
<div className='col-xs-12'... |
client/src/Make.js | 10000highfives/small-days | import React from 'react'
import Craft from './Craft'
export default React.createClass({
getInitialState() {
return {
craftList: [],
firstCraft: null,
currentFocus: 0
}
},
showCraft() {
let firstCraft = this.state.craftList[this.state.currentFocus];
this.setState({firstCraft: firstCraft});
},
... |
app/containers/Photos.js | sandim27/ReduxApp | import React from 'react';
import { Pagination } from 'react-bootstrap';
import PhotoGrid from '../components/PhotoGrid'
import 'bootstrapCss';
export default class Photos extends React.Component {
constructor(props) {
super(props);
this.changePage = this.props.changePage.bind(this);
}
render() {
co... |
src/routes/GithubStats/components/TimerangeSelector.js | RequestTimeout408/alba-task | import React from 'react'
import './TimerangeSelector.scss'
const options = [
{ value: '2016-10-01', label: 'Since Oct 2016' },
{ value: '2016-01-01', label: 'Since Jan 2016' },
{ value: '2015-01-01', label: 'Since Jan 2015' },
{ value: '2014-01-01', label: 'Since Jan 2014' }
]
export const TimerangeSelector ... |
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-bricks-loading.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import BaseMixin from '../common/base-mixin.js';
import ElementaryMixin from '../common/elementary-mixin.js';
import ContentMixin from '../common/content-mixin.js';
import ColorSchemaMixin from '../common/color-schema-mixin.js';
import './loading.less';
export const Loading = React.createCl... |
app/javascript/mastodon/components/attachment_list.js | theoria24/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { FormattedMessage } from 'react-intl';
import classNames from 'classnames';
import Icon from 'mastodon/components/icon';... |
docs/src/app/components/pages/components/RaisedButton/Page.js | mtsandeep/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 raisedButtonReadmeText from './README';
import raisedButtonExampleSimpleC... |
packages/core/src/icons/components/CrmAddress.js | iCHEF/gypcrete | import React from 'react';
export default function SvgCrmAddress(props) {
return (
<svg
width="1em"
height="1em"
viewBox="0 0 1000 1000"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
fillRule="evenodd"
clipRule="evenodd"
d="M781.3 437.5v343.... |
app/containers/LobbyPage.js | thirdicrypto/darkwallet-electron-ui | import React, { Component } from 'react';
import { Link } from 'react-router';
import ChannelList from '../components/ChannelList';
import Channel from '../components/Channel';
import Peers from '../components/Peers';
export default class SendPage extends Component {
render() {
return (
<div className="scr... |
frontend/src/App.js | kkoci/orthosie | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/... |
frontend/webapp/js/Login.js | damorton/dropwizardheroku-webgateway | import React from 'react';
import axios from 'axios';
import Navbar from '../js/Navbar'
import Header from '../js/Header'
class Login extends React.Component {
constructor(props) {
super(props);
this.state = {
username: '',
password: '',
webApiGatewayUrl: props.url
};
this.onSubmit = this.onSubmit.b... |
node_modules/react-bootstrap/es/Pagination.js | Chen-Hailin/iTCM.github.io | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
packages/icons/src/md/notification/OnDemandVideo.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdOnDemandVideo(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M42 6c2.21 0 4 1.79 4 4l-.02 24c0 2.21-1.77 4-3.98 4H32v4H16v-4H6c-2.21 0-4-1.79-4-4V10c0-2.21 1.79-4 4-4h36zm0 28V10H6v24h36zM32 22l-14 8V14l1... |
src/routes.js | ThatCheck/AutoLib | import React from 'react';
import {IndexRoute, Route} from 'react-router';
import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth';
import {
App,
Home,
Login,
Register,
Dashboard,
HomeDashboard,
DatatableClient,
ShowClient,
Map,
StationDatatables,
Stat... |
Console/app/node_modules/react-scripts/template/src/index.js | RisenEsports/RisenEsports.github.io | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
src/cats/index.js | tomalexing/QQ | import React from 'react'
import { connect } from 'react-redux'
import myTheme, { customStyles } from "./../theme";
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import Layout from './../../components/Layout'
import {GridList, GridTile} from 'material-ui/GridList';
import IconButton from 'material-ui/I... |
docs/app/Examples/elements/Loader/index.js | ben174/Semantic-UI-React | import React from 'react'
import Types from './Types'
import States from './States'
import Variations from './Variations'
const LoaderExamples = () => (
<div>
<Types />
<States />
<Variations />
</div>
)
export default LoaderExamples
|
src/assets/js/react/components/FontManager/TemplateTooltip.js | GravityPDF/gravity-forms-pdf-extended | /* Dependencies */
import React from 'react'
import PropTypes from 'prop-types'
import { sprintf } from 'sprintf-js'
/* Utilities */
import { adjustFontListHeight } from '../../utilities/FontManager/adjustFontListHeight'
/**
* @package Gravity PDF
* @copyright Copyright (c) 2021, Blue Liquid Designs
* @licens... |
modules/Router.js | malte-wessel/react-router | import createHashHistory from 'history/lib/createHashHistory'
import useQueries from 'history/lib/useQueries'
import React from 'react'
import createTransitionManager from './createTransitionManager'
import { routes } from './PropTypes'
import RouterContext from './RouterContext'
import { createRoutes } from './RouteU... |
test/support/NullComponent.js | JohnC-80/react-hotkeys | import React from 'react';
class NullComponent extends React.Component {
render() {
return null;
}
}
export default NullComponent; |
app/src/components/Tag/TagPanel.js | GetStream/Winds | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { withRouter } from 'react-router-dom';
import Panel from '../Panel';
import { ReactComponent as TagIcon } from '../../images/icons/tag.svg';
import { ReactComponent as... |
app/components/List/index.js | samit4me/react-boilerplate | import React from 'react';
import Ul from './Ul';
import Wrapper from './Wrapper';
function List(props) {
const ComponentToRender = props.component;
let content = (<div></div>);
// If we have items, render them
if (props.items) {
content = props.items.map((item, index) => (
<ComponentToRender key={... |
src/components/LoadingIndicator.js | opiskelija-dashboard/dashboard | import React from 'react';
export const LoadingIndicator = bool => (
<div style={{marginTop: '40%'}}>
</div>
)
|
src/components/App/index.js | nubstick27/idea-muscle | import React from 'react';
export default ({children}) => {
return (
<div id="container">
{children}
</div>
);
}
|
assets/jqwidgets/demos/react/app/editor/toolscustomization/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxEditor from '../../../jqwidgets-react/react_jqxeditor.js';
class App extends React.Component {
render() {
let tools = 'bold italic underline | font size | left center right | outdent indent';
let createCommand = (name) => {
... |
src/routes/not-found/index.js | nambawan/g-old | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present 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 Layout from '../../co... |
maodou/events/client/components/admin/index.js | ShannChiang/USzhejiang | import React from 'react';
export default (props) => {
return (
<div className="admin-package-wrapper">
{props.children}
</div>
);
}
|
app/screens/eCommerce/cards.js | andry-baka/dapur-ngebul-app | import React from 'react';
import {
StyleSheet,
FlatList,
View,
Image,
TouchableOpacity,
Modal
} from 'react-native';
import {
RkText,
RkCard,
RkButton,
RkStyleSheet,
RkTheme
} from 'react-native-ui-kitten';
import LinearGradient from 'react-native-linear-gradient';
import {data} from '../../data'... |
src/svg-icons/content/add-box.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentAddBox = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/>
</SvgIcon>
);
ContentAddBox = pu... |
shared/components/join/inputRow.react.js | marek-sed/cogni | import React from 'react';
const InputRow = ({id, placeholder, label, value, onChange}) => {
return (
<div className="form-row">
<label htmlFor={id}>{label}</label>
<input id={id} value={value}
className="form-item"
name={id}
placeholder={placeholder}
onChange={onChan... |
client/admin/import/ImportRoute.js | subesokun/Rocket.Chat | import React from 'react';
import { usePermission } from '../../contexts/AuthorizationContext';
import NotAuthorizedPage from '../NotAuthorizedPage';
import ImportHistoryPage from './ImportHistoryPage';
import NewImportPage from './NewImportPage';
import PrepareImportPage from './PrepareImportPage';
import ImportProgr... |
app/components/Charts/BarChart/index.js | prudhvisays/season | import React from 'react';
import { Bar } from 'react-chartjs-2';
const data = {
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
datasets: [
{
label: 'My First dataset',
backgroundColor: 'rgba(255,99,132,0.2)',
borderColor: 'rgba(255,99,132,1)',
borderWidth: 1,... |
packages/cf-builder-card/example/basic/component.js | mdno/mdno.github.io | import React from 'react';
import { CardBuilder } from 'cf-builder-card';
import { Table, TableBody, TableRow, TableCell } from 'cf-component-table';
import { Button } from 'cf-component-button';
const EXAMPLE_CARD = 'EXAMPLE_CARD';
const MyButton = (
<Button type="default" onClick={() => console.log('Button clicke... |
packages/wix-style-react/src/ComposerHeader/ComposerHeader.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import ArrowLeft from 'wix-ui-icons-common/ArrowLeft';
import { st, classes } from './ComposerHeader.st.css';
import TextButton from '../TextButton';
import Text from '../Text/Text';
import { dataHooks } from './constants';
const ComposerHeaderActions = (... |
src/svg-icons/places/business-center.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesBusinessCenter = (props) => (
<SvgIcon {...props}>
<path d="M10 16v-1H3.01L3 19c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2v-4h-7v1h-4zm10-9h-4.01V5l-2-2h-4l-2 2v2H4c-1.1 0-2 .9-2 2v3c0 1.11.89 2 2 2h6v-2h4v2h6c1... |
src/Button/story.js | rontav/material-react | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { withKnobs, boolean, select, number } from '@storybook/addon-knobs';
import Button from './index.jsx';
import '../_story.scss';
var stories = storiesOf('Button', module);
stories.addDeco... |
src/app/components/Meetings/Card.js | sphinxominator/councils-feathers | import React from 'react'
import styled from 'styled-components'
import Datepicker from '../Datepicker'
import Timepicker from '../Timepicker'
export default ({ date, name, color }) =>
<Card color={color}>
<Time>
<Datepicker disabled compact value={date} />
<Timepicker disabled compact value={date} ... |
docs/src/app/pages/components/Textarea/ExampleTextareaLabel.js | GetAmbassador/react-ions | import React from 'react'
import Textarea from 'react-ions/lib/components/Textarea'
const ExampleTextareaLabel = () => (
<Textarea label='Label here' value='' />
)
export default ExampleTextareaLabel
|
blueocean-material-icons/src/js/components/svg-icons/communication/chat-bubble.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const 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.displayName = 'CommunicationChatBubble';
CommunicationChatBubble... |
src/components/ChatApp/Settings/TextToSpeechSettings.react.js | uday96/chat.susi.ai | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Paper from 'material-ui/Paper';
import UserPreferencesStore from '../../../stores/UserPreferencesStore';
import MessageStore from '../../../stores/MessageStore';
import Slider from 'material-ui/Slider';
import FlatButton from 'material... |
resource/js/components/SearchPage/SearchResultList.js | crow-misia/crowi | import React from 'react';
import PageBody from '../Page/PageBody.js';
export default class SearchResultList extends React.Component {
constructor(props) {
super(props);
this.getHighlightBody = this.getHighlightBody.bind(this);
}
getHighlightBody(body) {
let returnBody = body;
this.props.sea... |
node_modules/@shoutem/theme/examples/Shapes.js | tausifmuzaffar/bisApp | import React from 'react';
import connectStyle from '../src/connectStyle';
import StyleProvider from '../src/StyleProvider';
import { INCLUDE } from '../src/resolveIncludes';
import { View, Text } from 'react-native';
const theme = (variables = {}) => ({
circle: {
width: variables.circleRadius,
height: varia... |
src/components/app.js | emersonbroga/ReactReduxBooksApplication | import React from 'react';
import { Component } from 'react';
import BookList from '../containers/book-list';
import BookDetail from '../containers/book-detail';
export default class App extends Component {
render() {
return (
<div>
<BookList />
<BookDetail />
</div>
);
}
}
|
src/components/ProfileFavorites.js | thinq4yourself/simply-social-in | import PostList from './PostList';
import { Profile, mapStateToProps } from './Profile';
import React from 'react';
import { Link } from 'react-router-dom';
import api from '../services/api';
import faker from 'faker';
import { connect } from 'react-redux';
import {
PROFILE_PAGE_LOADED,
PROFILE_PAGE_UNLOADED
} from... |
src/components/Header/Header.js | SHBailey/echo-mvp | import React from 'react'
import { IndexLink, Link } from 'react-router'
import classes from './Header.scss'
var loginButton;
var userLoggedIn = false // place holder until verification is complete
if(userLoggedIn) loginButton = 'Sign Out';
else loginButton = 'Sign In';
export const Header = () => (
<... |
docs/src/app/components/pages/components/Snackbar/ExampleTwice.js | xmityaz/material-ui | import React from 'react';
import Snackbar from 'material-ui/Snackbar';
import RaisedButton from 'material-ui/RaisedButton';
export default class SnackbarExampleTwice extends React.Component {
constructor(props) {
super(props);
this.state = {
message: 'Event 1 added to your calendar',
open: fals... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | plusvaliamarket/storable | 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'));
|
client/src/index.js | ruslan2k/web-password | import React from 'react';
import { compose, applyMiddleware, createStore } from 'redux';
import persistState from 'redux-localstorage';
import logger from 'redux-logger';
import thunk from 'redux-thunk';
import ReactDOM from 'react-dom';
import './index.css';
import Root from './Root';
import * as serviceWorker from '... |
src/routes/login/index.js | OSDLabs/swd | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present 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 Layout from '../../co... |
app/components/Store/Icons/CubesIcon.js | VineRelay/VineRelayStore | import React from 'react';
import Icon from 'react-icon-base';
const CubesIcon = (props) => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m11.7 33.4l7-3.5v-5.7l-7 3v6.2z m-1.2-8.3l7.4-3.1-7.4-3.2-7.4 3.2z m19.8 8.3l7-3.5v-5.7l-7 3v6.2z m-1.1-8.3l7.3-3.1-7.3-3.2-7.4 3.2z m-8.2-5.3l7-3v-4.9l-7 3v4.9z m-1.2-6... |
src/routes/error/index.js | siddhant3s/crunchgraph | /**
* 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 ErrorPage from './ErrorP... |
client/src/components/messageScreen.js | TeamAusDigital/apec-connect | import React, { Component } from 'react';
import AppBarMain from '../components/AppBarMain';
import Paper from 'material-ui/Paper';
import StarRating from '../components/starRating';
import RaisedButton from 'material-ui/RaisedButton';
import {indigo,white,red} from './apecConnectTheme';
import Logo from '../common/ass... |
classic/src/scenes/wbfa/generated/FASMinus.free.js | wavebox/waveboxapp | import React from 'react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faMinus } from '@fortawesome/free-solid-svg-icons/faMinus'
export default class FASMinus extends React.Component {
render () {
return (<FontAwesomeIcon {...this.props} icon={faMinus} />)
}
}
|
examples/dev.js | ericbiewener/react-global-events | import React from 'react'
import {render} from 'react-dom'
import GlobalEvents, {listenFor} from '../src/index.js'
const RootComponent = () => (
<div id="app-root" {...listenFor('mouseUp', 'mouseDown')}>
<MySubComponent />
</div>
)
const MySubComponent = React.createClass({
getInitialState: function() {
return... |
js/stat.js | CasperLaiTW/mlshb-people-stat | import React from 'react';
import _ from 'underscore';
export default class Stat extends React.Component {
constructor(props) {
super(props);
this.state = {
hide: false
}
}
handleHideAge() {
this.setState({hide: true});
}
handleShowAge() {
this.setState({hide: false});
}
rend... |
app/components/FilterFields/index.js | barbalex/kapla3 | /**
* using hooks here results in error:
* Hooks can only be called inside the body of a function component.
*/
import React from 'react'
import PropTypes from 'prop-types'
import moment from 'moment'
import $ from 'jquery'
import { observer, inject } from 'mobx-react'
import compose from 'recompose/compose'
import ... |
src/components/project/CreateIndex.js | iamraphson/mernmap | /**
* Created by Raphson on 10/4/16.
*/
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import MyInput from '../forms/Input';
import MyTextarea from '../forms/Textarea';
import Formsy from 'formsy-react';
export default class Create extends Component {
constructor() {
super()... |
src/components/home/Home.js | smbell/website | import React, { Component } from 'react';
import ReactMarkdown from 'react-markdown';
import homeMarkdown from './Home.md.js';
import './Home.css';
class Home extends Component {
render() {
return (
<ReactMarkdown className='home_content' source={homeMarkdown} />
)
}
}
export default Home;
|
generators/app/templates/src/components/Counter.js | delvallejonatan/generator-create-redux-app | import React from 'react'
import PropTypes from 'prop-types'
import styled from '@emotion/styled'
const Intro = styled.p`
font-size: large;
`
function Counter({ increment, incrementIfOdd, decrement, counter }) {
return (
<section>
<Intro>
To get started, edit <code>src/routes/index.js </code>
... |
src/components/common/svg-icons/maps/local-hotel.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalHotel = (props) => (
<SvgIcon {...props}>
<path d="M7 13c1.66 0 3-1.34 3-3S8.66 7 7 7s-3 1.34-3 3 1.34 3 3 3zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.21-1.79-4-4-4z"/>
</SvgIcon>
);
MapsLocalHotel = pu... |
src/svg-icons/notification/personal-video.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPersonalVideo = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12z"/>
</SvgIcon>
);
Notifi... |
examples/official-storybook/stories/addon-info/decorators.stories.js | storybooks/react-storybook | import React from 'react';
import { withInfo } from '@storybook/addon-info';
import BaseButton from '../../components/BaseButton';
export default {
title: 'Addons/Info/Decorator',
decorators: [withInfo('Info can take options via the global or local decorator as well.')],
};
export const UseInfo = () => <BaseButto... |
src/svg-icons/action/aspect-ratio.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAspectRatio = (props) => (
<SvgIcon {...props}>
<path d="M19 12h-2v3h-3v2h5v-5zM7 9h3V7H5v5h2V9zm14-6H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02z"/>
<... |
examples/sidebar/app.js | trotzig/react-router | import React from 'react';
import { Router, Route, Link } from 'react-router';
import data from './data';
var Category = React.createClass({
render() {
var category = data.lookupCategory(this.props.params.category);
return (
<div>
<h1>{category.name}</h1>
{this.props.children || (
... |
app/javascript/mastodon/features/ui/components/column_header.js | h-izumi/mastodon | import React from 'react';
import PropTypes from 'prop-types';
class ColumnHeader extends React.PureComponent {
static propTypes = {
icon: PropTypes.string,
type: PropTypes.string,
active: PropTypes.bool,
onClick: PropTypes.func,
hideOnMobile: PropTypes.bool,
columnHeaderId: PropTypes.string... |
app.js | wzxm/react-starter | import React from 'react';
import { Router, Route, hashHistory } from 'react-router';
import { render } from 'react-dom';
import Hello from './src/public/components/Hello/hello';
import About from './src/public/components/About/about';
import Repos from './src/public/components/Repos/repos';
render((
<Router histor... |
src/ActionSheetItem.js | jacklam718/react-native-action-sheet-component | // @flow
import React from 'react';
import { View, Text, Image, StyleSheet, TouchableHighlight } from 'react-native';
const DEFAULT_SELECTED_ICON: number = require('./img/checkmark.png');
const styles = StyleSheet.create({
container: {
// flex: 1,
flexDirection: 'row',
paddingTop: 20,
paddingBottom... |
public/creators-landing/src/components/icons/Mail.js | brave/publishers | import React from 'react'
export const MailIcon = () => (
<svg viewBox='0 0 32 32'>
<path
fill='#FFFFFF'
d='M25 23H7c-.551 0-1-.449-1-1V10.203l9.372 7.575a.996.996 0 0 0 1.256 0L26 10.203V22c0 .551-.449 1-1 1zm-.693-14L16 15.714 7.693 9h16.614zM25 7H7c-1.654 0-3 1.346-3 3v12c0 1.654 1.346 3 3 3h18c1.... |
es/components/Chat/Message.js | welovekpop/uwave-web-welovekpop.club | import _jsx from "@babel/runtime/helpers/builtin/jsx";
import cx from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import compose from 'recompose/compose';
import pure from 'recompose/pure';
import withHandlers from 'recompose/withHandlers';
import CircularProgress from "@material-ui/cor... |
techCurriculum/ui/solutions/4.6/src/components/Message.js | AnxChow/EngineeringEssentials-group | /**
* Copyright 2017 Goldman Sachs.
* 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... |
RNDemo/RNComment/node_modules/react-navigation/lib-rn/views/CardStack.js | 995996812/Web | import React, { Component } from 'react';
import clamp from 'clamp';
import { Animated, StyleSheet, PanResponder, Platform, View, I18nManager, Easing } from 'react-native';
import Card from './Card';
import Header from './Header';
import NavigationActions from '../NavigationActions';
import addNavigationHelpers from ... |
cra-memory-considerate-loading/src/App.js | GoogleChromeLabs/adaptive-loading | /*
* Copyright 2019 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
packages/cf-component-icon/src/reactsvgs/ResizeHorizontal.js | jroyal/cf-ui | import React from 'react';
import PropTypes from 'prop-types';
const ResizeHorizontal = ({ className, label }) => (
<svg
className={className}
aria-label={label}
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
>
<path d="M6.847,4.184,3.1,7.931a.279.279,0,0,0,0,.394l3.746,3.746a.279.279,0... |
js/components/About.js | doabit/react-relay-graphql-starter-kit | import React from 'react';
const About = () => (
<div>Rendering About component</div>
);
export default About; |
IQMail_App/src/components/LoginForm.js | victorditadi/IQApp | import React, { Component } from 'react';
import { Text } from 'react-native';
import firebase from 'firebase';
import { ButtonForm, Card, CardSection, Input, Spinner } from './common';
class LoginForm extends Component {
state = { email: '', password: '', error: '', loading: false } ;
onButtonPress() {
con... |
src/pages/404.js | alecgorge/alecgorge.com | import React from 'react'
const NotFoundPage = () => (
<div>
<h1>NOT FOUND</h1>
<p>You just hit a route that doesn't exist... the sadness.</p>
</div>
)
export default NotFoundPage
|
app/javascript/mastodon/features/notifications/components/column_settings.js | mimumemo/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage } from 'react-intl';
import ClearColumnButton from './clear_column_button';
import SettingToggle from './setting_toggle';
export default class ColumnSettings extends Reac... |
src/Components/DaySlot.js | gourie/ParkingPlaza | /*
* Author: Joeri Nicolaes
* version: alpha
*/
import React from 'react';
import moment from 'moment';
/**
* React Component: DaySlot
*/
export default class DaySlot extends React.Component {
/**
* Standard ES6 method
*/
constructor(props) {
super(props);
if (this.props.con... |
src/Parser/Druid/Restoration/Modules/Talents/CenarionWard.js | enragednuke/WoWAnalyzer | import React from 'react';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import { formatPercentage } from 'common/format';
import SpellIcon from 'common/SpellIcon';
import SPELLS from 'common/SPELLS';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatan... |
src/main/react/components/IconLabel.js | pesan/service-spy | import React from 'react'
export default function IconLabel({icon, label}) {
return (<span style={{display: 'inline-flex', alignItems: 'center'}}>
{icon} {label}
</span>)
} |
app/javascript/mastodon/features/lists/index.js | unarist/mastodon | 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... |
node_modules/react-icons/md/no-sim.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdNoSim = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m6.1 6.5l29.1 29-2.2 2.2-3.1-3.2q-0.9 0.5-1.5 0.5h-16.8q-1.3 0-2.3-1t-0.9-2.4v-18.6l-4.4-4.4z m25.5 1.9v19.4l-18.9-18.9 3.9-3.9h11.8q1.3 0 2.3 1t0.9 2.4z"/></g>
</I... |
dist/lib/carbon-fields/assets/js/fields/components/color/picker.js | ArtFever911/statrer-kit | /**
* The external dependencies.
*/
import React from 'react';
import PropTypes from 'prop-types';
import onClickOutside from 'react-onclickoutside';
import { SketchPicker } from 'react-color';
import { compose, withHandlers } from 'recompose';
/**
* Render a colorpicker popover.
*
* @param {Object} props... |
src/components/GithubButton/GithubButton.js | vidaaudrey/mindr | import React from 'react';
const GithubButton = (props) => {
const {user, repo, type, width, height, count, large} = props;
let src = `https://ghbtns.com/github-btn.html?user=${user}&repo=${repo}&type=${type}`;
if (count) src += '&count=true';
if (large) src += '&size=large';
return (
<iframe
src=... |
stories/default-size/basic.js | pionl/react-resizable-box | /* eslint-disable */
import React from 'react';
import Resizable from '../../src';
const style = {
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
border: 'solid 1px #ddd',
background: '#f0f0f0',
};
export default () => (
<Resizable
style={style}
defaultSize={{
width: 200,
... |
client/modules/comments/components/.stories/create_comment.js | mantrajs/meteor-mantra-kickstarter | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import CreateComment from '../create_comment';
storiesOf('comments.CreateComment', module)
.add('default view', () => {
return (
<div className='comments'>
<CreateComment postId='the-id' create={action('create comment... |
src/components/Picker/PointerCircle.js | rohan-deshpande/react-dat-gui | import React from 'react';
const PointerCircle = () => <div className='pointer-circle' />;
export default PointerCircle;
|
client/app/scripts/components/topology-options.js | kinvolk/scope | import React from 'react';
import { connect } from 'react-redux';
import { Set as makeSet, Map as makeMap } from 'immutable';
import includes from 'lodash/includes';
import { trackAnalyticsEvent } from '../utils/tracking-utils';
import { getCurrentTopologyOptions } from '../utils/topology-utils';
import { activeTopolo... |
src/core/pages/DetailsPage.js | kompot/rjanko | import React from 'react';
import _ from 'lodash';
import {branch} from 'baobab-react/decorators';
import Form from 'react-formal';
// no axios in components!
import axios from 'axios';
const debug = require('../logging/debug')(__filename);
import rjankoModels from '../../models';
let models = _.merge({}, rjankoModel... |
stories/Drawer.js | abouthiroppy/scuba | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import Container, { Drawer, Button } from '../src';
storiesOf('Drawer', module).add('normal', () => (
<div style={{ padding: 30 }}>
<Container theme="sea">
<Drawer opened>
<div>aaaa</div>
<div>aaaa</div>
<div>... |
Js/Ui/Components/Growl/DangerGrowl.js | Webiny/Webiny | import React from 'react';
import _ from 'lodash';
import Webiny from 'webiny';
import Growl from './Growl';
class DangerGrowl extends Webiny.Ui.Component {
}
DangerGrowl.defaultProps = {
title: null,
ttl: 3000,
sticky: true,
message: null,
type: 'danger',
renderer() {
return (
... |
app/javascript/mastodon/features/ui/components/columns_area.js | codl/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl } from 'react-intl';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ReactSwipeableViews from 'react-swipeable-views';
import { links, getIndex, get... |
src/components/Footer.js | ArturJS/ArturJS.github.io | import React from 'react'
import { Link } from 'gatsby'
import logo from '../img/logo.svg'
import facebook from '../img/social/facebook.svg'
import instagram from '../img/social/instagram.svg'
import twitter from '../img/social/twitter.svg'
import vimeo from '../img/social/vimeo.svg'
const Footer = class extends Reac... |
blueocean-material-icons/src/js/components/svg-icons/action/view-array.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionViewArray = (props) => (
<SvgIcon {...props}>
<path d="M4 18h3V5H4v13zM18 5v13h3V5h-3zM8 18h9V5H8v13z"/>
</SvgIcon>
);
ActionViewArray.displayName = 'ActionViewArray';
ActionViewArray.muiName = 'SvgIcon';
export default ActionViewArra... |
components/Foo.js | fjaguero/redux-auth | import React, { Component } from 'react';
export default class Foo extends Component {
render() {
return (<div>MyComponent</div>);
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.