path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
src/components/ChatApp/HardwareComponent.js | madhavrathi/chat.susi.ai | import React, { Component } from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import PropTypes from 'prop-types';
import TextField from 'material-ui/TextField';
import Paper from 'material-ui/Paper';
import * as Actions from '../../actions/';
import UserPreferencesStore from '../../stores/UserPreferenc... |
src/main/internal/adaption/react/ChildrenUtils.js | mcjazzyfunky/js-surface | // external imports
import React from 'react'
// --- ChildrenUtils ------------------------------------------------
const ChildrenUtils = {
forEach: React.Children.forEach,
toArray: React.Children.toArray,
count: React.Children.count
}
// --- exports ------------------------------------------------------
expo... |
src/svg-icons/maps/local-car-wash.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalCarWash = (props) => (
<SvgIcon {...props}>
<path d="M17 5c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2.7c0 .83.67 1.5 1.5 1.5zm-5 0c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2... |
src/components/TextInput/TextInput.js | joshblack/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';
import { settings } from 'carbon-componen... |
packages/mcs-lite-ui/src/P/P.js | MCS-Lite/mcs-lite | import React from 'react';
import PropTypes from 'prop-types';
import styled, { css } from 'styled-components';
import R from 'ramda';
import isString from '../utils/isString';
const getBaseComponent = R.ifElse(isString, R.always('p'), R.always('div'));
const Component = ({ children, ...otherProps }) =>
React.creat... |
src/index.js | nreoch25/react-package-dev | import React from 'react';
import ReactDOM from 'react-dom';
import Docs from "./docs/Docs";
import './index.css';
import '../node_modules/highlight.js/styles/ocean.css';
ReactDOM.render(<Docs />, document.getElementById('root'));
|
docs/src/app/components/pages/components/IconMenu/Page.js | hai-cea/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 iconMenuReadmeText from './README';
import IconMenuExampleSimple from './... |
node_modules/react-bootstrap/es/MediaListItem.js | Technaesthetic/ua-tools | 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 ... |
app/screens/Options.js | rakasiwi23/currency-converter | import React, { Component } from 'react';
import { ScrollView, StatusBar, Platform, Linking } from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
import PropTypes from 'prop-types';
import { ListItem, Separator } from '../components/List';
import { connectAlert } from '../components/Alert';
co... |
src/app/components/user/UserTooltip.js | meedan/check-web | import React from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import { FormattedHTMLMessage, FormattedDate } from 'react-intl';
import { Link } from 'react-router';
import Avatar from '@material-ui/core/Avatar';
import LaunchIcon from '@material-ui/icons/Launch';
import styled ... |
__tests__/index.ios.js | tausifmuzaffar/bisApp | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/svg-icons/notification/wifi.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationWifi = (props) => (
<SvgIcon {...props}>
<path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9... |
fields/types/markdown/MarkdownField.js | asifiqbal84/keystone | import Field from '../Field';
import React from 'react';
import { FormInput } from 'elemental';
/**
* TODO:
* - Remove dependency on jQuery
*/
// Scope jQuery and the bootstrap-markdown editor so it will mount
var $ = require('jquery');
require('./lib/bootstrap-markdown');
// Append/remove ### surround the select... |
src/pages/404.js | growcss/growcss-site | import React from 'react';
import Box from 'components/box';
import Layout from 'components/layout';
const NotFound = () => (
<Layout>
<Box>Not found.</Box>
</Layout>
);
export default NotFound;
|
src/components/Home/SiteInfo.js | mattschwartz/mattschwartz | import React from 'react'
export default () => (
<>
<h3 className="section-header">Site Info</h3>
<p>Click <a className="fancy-link" href="https://github.com/mattschwartz/www">here</a> to see the source code</p>
<p>Powered by React and served fresh by AWS</p>
<p>Written by Matt Sch... |
src/svg-icons/image/crop.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCrop = (props) => (
<SvgIcon {...props}>
<path d="M17 15h2V7c0-1.1-.9-2-2-2H9v2h8v8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7z"/>
</SvgIcon>
);
ImageCrop = pure(ImageCrop);
ImageCrop.displayNam... |
editor/components/FloatPaper.js | conundrumer/sim-seq | import React from 'react'
import { Paper } from 'material-ui'
import classNames from 'classnames'
export default class FloatPaper extends React.Component {
render() {
return (
<Paper
className={classNames('float-paper', this.props.className)}
circle={this.props.circle}
style={{boxSh... |
src/components/ProfileIntro.js | planningFor/react-build | import React, { Component } from 'react';
require('../css/ProfileIntro.scss');
/**
* Header component in index page.
*/
const Introduction = () => (
<section className="profile-intro">
<h3>关于我</h3>
<p>大家好,我叫杨雯杰。本科毕业与成都信息工程大学,现就读于电子科技大学计算机科学与工程学院。</p>
<p>我觉得前端是一门多性质的工作,从本科开始就对前端有很大的兴趣。但是很... |
react/src/server/frontend/ServerFetchProvider.js | janprasil/mi-vmm-product-quality-rating | import React from 'react';
class ServerFetchProvider extends React.Component {
static childContextTypes = {
serverFetchPromises: React.PropTypes.array,
};
getChildContext() {
return {
serverFetchPromises: this.props.promises,
};
}
props: {
// github.com/facebook/flow/issues/1964
chi... |
packages/material-ui-icons/src/SimCardAlert.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5 15h-2v-2h2v2zm0-4h-2V8h2v5z" /></g>
, 'SimCardAlert');
|
src/js/pages/LoginPage.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import TopNavBar from '../components/ui/TopNavBar';
import SocialBox from '../components/ui/SocialBox';
import translate from '../i18n/Translate';
import LoginActionCreators from '../actions/LoginActionCreators';
import LoginStore from '../st... |
server/index.js | amitpaperg/roadmap-planner | import path from 'path'
import http from 'http'
import express from 'express'
import helmet from 'helmet'
import bodyParser from 'body-parser'
import morgan from 'morgan'
import compression from 'compression'
import hpp from 'hpp'
import throng from 'throng'
import React from 'react'
import ReactDOM from 'react-dom/se... |
app/javascript/mastodon/features/notifications/index.js | increments/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import { expandNotifications, scrollTopNotifications ... |
redux/js/todo/containers/RouteFilterLink.js | quiaro/js-playground | import React from 'react';
import { Link } from 'react-router';
const RouteFilterLink = ({ filter, children }) => (
<Link
to={filter === 'all' ? '' : filter}
activeStyle={{
textDecoration: 'none',
color: 'black',
}}
>
{children}
</Link>
);
export default RouteFilterLink;
|
src/components/marketingStatusLabel/MarketingStatusLabel.js | teamleadercrm/teamleader-ui | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Box from '../box';
import Icon from '../icon';
import cx from 'classnames';
import theme from './theme.css';
import { IconLockSmallFilled } from '@teamleader/ui-icons';
import { UITextBody, UITextSmall } from '../typography';
class Ma... |
src/components/app.js | TonCoder/react-music-player | import React, { Component } from 'react';
import MusicPlayer from './MusicPlayer/MusicPlayer';
export default class App extends Component {
constructor(props){
super(props);
this.state = {
"Albums":[
{
"artist": "Trinit... |
app/javascript/mastodon/features/ui/components/video_modal.js | lindwurm/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Video from 'mastodon/features/video';
import ImmutablePureComponent from 'react-immutable-pure-component';
import Footer from 'mastodon/features/picture_in_picture/components/footer';
import... |
src/App.js | rahulpyd/react-dnd-sort-example | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<h1>Hello, world.</h1>
);
}
}
|
src/svg-icons/editor/format-align-center.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatAlignCenter = (props) => (
<SvgIcon {...props}>
<path d="M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z"/>
</SvgIcon>
);
EditorFormatAlignCenter = pure(EditorFormatAli... |
examples/timeline-airtable/src/main.js | weaintplastic/react-sketchapp | import React from 'react';
import PropTypes from 'prop-types';
import { render, Artboard, Text, View, StyleSheet } from 'react-sketchapp';
const API_ENDPOINT_URL =
'https://api.airtable.com/v0/appFs7J3WdgHYCDxD/Features?api_key=keyu4dudakWLI0vAh&&sort%5B0%5D%5Bfield%5D=Target+Launch+Date&sort%5B0%5D%5Bdirection%5D=a... |
src/components/auth/signup.js | RaulEscobarRivas/client | import React, { Component } from 'react';
import { reduxForm } from 'redux-form';
import * as actions from '../../actions';
class SignUp extends Component {
handleFormSubmit({ email, password }) {
this.props.signupUser(email, password);
}
renderErrorMessage(subject) {
return subject.touche... |
ios/versioned-react-native/ABI11_0_0/Libraries/Components/WebView/WebView.ios.js | jolicloud/exponent | /**
* 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... |
src/TPA/Button/Button.js | skyiea/wix-style-react | import React from 'react';
import {any, oneOf, string} from 'prop-types';
import omit from 'omit';
import classNames from 'classnames';
import WixComponent from '../../BaseComponents/WixComponent';
import tpaStyleInjector from '../TpaStyleInjector';
let styles = {locals: {}};
try {
styles = require('!css-loader?modu... |
app/src/components/Header/SubHeader.js | fikrimuhal/animated-potato | import React from 'react';
import styles from './style';
const SubHeader = ({children}) => {
return <h2 className={styles.tagline}>
{children.split(' ').map((word,idx) => {
const arr = word.split('');
return (<span key={idx}><strong>{arr.shift()}</strong>{arr.join('')} </span>);
})}
</h2>;
};
... |
src/App.js | liuli0803/myapp | import React, { Component } from 'react';
import './App.css';
import RouteMap from "./RouteMap";
class App extends Component {
render() {
return (
<div>
<RouteMap />
</div>
);
}
}
export default App;
|
form/AddressField.js | ExtPoint/yii2-frontend | import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {change, getFormInitialValues} from 'redux-form';
import {saveToCache} from 'extpoint-yii2/actions/formList';
import {view, resource, locale} from 'components';
import AddressHel... |
slides/the-speaker/components/AudienseLogo.js | javivelasco/scaffolding-react-apps-slides | import React from 'react';
const AudienseLogo = (props) => (
<svg viewBox="0 0 200 48" version="1.1" {...props}>
<g id="Page-1" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
<g id="200-width" fill="#000000">
<path d="M18.134715,11.2025374 L23.9390953,11.2025374 L23.9390953,34.772932... |
client/js/components/ui/formik/Error.js | khlieng/name_pending | import React from 'react';
import { ErrorMessage } from 'formik';
const Error = props => (
<ErrorMessage component="div" className="form-error" {...props} />
);
export default Error;
|
sc/src/main/javascript/bundles/gene-search/src/GeneSearchRouter.js | gxa/atlas | import React from 'react'
import PropTypes from 'prop-types'
import { BrowserRouter, Route } from 'react-router-dom'
import GeneSearch from './GeneSearch'
const GeneSearchRouter = ({atlasUrl, basename}) =>
<BrowserRouter basename={basename}>
<Route
path={`/search`}
render={
({match, location... |
test/helpers/shallowRenderHelper.js | jezzasan/taproom-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'... |
web/src/layout/leftpanel/zonelistpanel.js | corradio/electricitymap | import React from 'react';
import { useTranslation } from '../../helpers/translation';
import { dispatchApplication } from '../../store';
import SearchBar from '../../components/searchbar';
import ZoneList from '../../components/zonelist';
import InfoText from './infotext';
const documentSearchKeyUpHandler = (key, ... |
src/Page1.js | babizhu/webApp | /**
* Created by liu_k on 2015/11/24.
*/
import React, { Component } from 'react';
import { Icon,Menu, Breadcrumb,Affix } from 'antd';
const SubMenu = Menu.SubMenu;
import App from './App';
import styles from "./page1.css";
//import astyles1 from "./css/test.scss";
class Page1 extends Component {
render() {... |
app/common/routes.js | Kaniwani/KW-Frontend | import React from 'react';
import { Switch, Route, Redirect } from 'react-router-dom';
import { hasToken } from 'common/utils/auth';
import LandingPage from 'pages/LandingPage/Loadable';
import HomePage from 'pages/HomePage/Loadable';
import VocabLevelsPage from 'pages/VocabLevelsPage/Loadable';
import VocabLevelPage... |
packages/ringcentral-widgets-docs/src/app/pages/Components/TabNavigationView/Demo.js | ringcentral/ringcentral-js-widget | import React, { Component } from 'react';
// eslint-disable-next-line
import TabNavigationView from 'ringcentral-widgets/components/TabNavigationView';
import DialPadIcon from 'ringcentral-widgets/assets/images/DialPadNav.svg';
import CallsIcon from 'ringcentral-widgets/assets/images/Calls.svg';
import MessageIcon from... |
app/javascript/mastodon/features/ui/components/column_header.js | increments/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default class ColumnHeader extends React.PureComponent {
static propTypes = {
icon: PropTypes.string,
type: PropTypes.string,
active: PropTypes.bool,
onClick: PropTypes.func,
columnHeaderId... |
src/static/index.js | CRUDNS/CRUDNS | import React from 'react';
import ReactDOM from 'react-dom';
import { browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import Root from './containers/Root/Root';
import configureStore from './store/configureStore';
import { authLoginUserSuccess } from './actions/auth';
... |
src/Card.js | HJBowers/drunk-grenadier-120-Set-Game | import React, { Component } from 'react';
import './Card.css';
export default class Card extends Component {
constructor(props) {
super(props)
this.clickHandler = this.clickHandler.bind(this)
}
clickHandler() {
this.props.selectedCard(this.props)
}
render() {
return (
<div className... |
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/devportal/source/Tests/setupTests.js | jaadds/carbon-apimgt | /*
* Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
src/browser/app/Header.js | chad099/react-native-boilerplate | // @flow
import type { State, User } from '../../common/types';
import React from 'react';
import linksMessages from '../../common/app/linksMessages';
import { Box } from '../../common/components';
import { FormattedMessage } from 'react-intl';
import { Link } from '../components';
import { compose } from 'ramda';
impo... |
src/routes.js | andbet39/reactPress | import React from 'react';
import {IndexRoute, Route} from 'react-router';
import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth';
import {
App,
Blog,
Chat,
Home,
Widgets,
About,
Login,
LoginSuccess,
Survey,
NotFound,
Posts,
Post,
} from 'contai... |
source/shared/components/message/index.js | gacosta89/knightsTour | import React from 'react';
const spanStyle = {
padding: 5
},
messageStyle = {
border: '3px solid',
fontSize: 35,
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
borderRadius: 4,
margin: 5,
cursor: 'default'
},
successStyle = {
...messageStyle,
color: 'blue',
borderColor... |
dva/porsche-e3/src/routes/GuidePage.js | imuntil/React | import React from 'react'
// import PropTypes from 'prop-types'
import { connect } from 'dva'
import { Carousel } from 'antd-mobile'
import TopBanner from '../components/TopBanner'
import BottomBar from '../components/BottomBar'
import './GuidePage.scss'
const GuidePage = () => {
console.log('guide:')
return (
... |
client/src/app/admin/panel/staff/admin-panel-departments.js | ivandiazwm/opensupports | import React from 'react';
import _ from 'lodash';
import {connect} from 'react-redux';
import i18n from 'lib-app/i18n';
import API from 'lib-app/api-call';
import ConfigActions from 'actions/config-actions';
import AreYouSure from 'app-components/are-you-sure';
import DepartmentDropDown from 'app-components/departm... |
foodprintReactNative/__tests__/index.ios.js | jwunder127/foodprint | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/components/tweet/tweet_media.js | camboio/ibis | import React from 'react';
export default class TweetMedia extends React.Component {
renderMedia(){
const media = this.props.media.map((medium) =>{
// you should probably put a switch statement here when you need to handle other media types
// just sayin'
if(medium.type === 'photo')... |
app/containers/App.js | bird-system/bs-label-convertor | // @flow
import React, { Component } from 'react';
export default class App extends Component {
props: {
children: HTMLElement
};
render() {
return (
<div>
{this.props.children}
</div>
);
}
}
|
src/views/icons/ShieldCrossedIcon.js | physiii/open-automation | import React from 'react';
import IconBase from './IconBase.js';
export const ShieldCrossedIcon = (props) => (
<IconBase {...props} viewBox="0 0 20 20">
<path d="M1.9 1.3c.2-.2.5-.2.7 0l15.5 15.5c.2.2.2.5 0 .7-.2.2-.5.2-.7 0L1.8 1.9c-.3-.2.1-.6.1-.6zM14.7 17.3c-1.1 1-2.6 1.8-4.5 2.7h-.4c-8.3-3.5-8.1-8.2-7.7-15.2v-.... |
app/ui/src/components/NavbarCharacterInfo.js | pequalsnp/eve-isk-tracker | import React from 'react';
import { connect } from 'react-redux';
import {
gql,
graphql,
} from 'react-apollo';
import { withRouter } from 'react-router';
import { NavDropdown, Nav, MenuItem, NavItem } from 'react-bootstrap';
import Logout from './Logout';
const profileQuery = gql`
query ProfileQuery {
profil... |
layouts/Archive.js | ShashwatMittal/react-wordpress-theme | import React from 'react';
import {connect} from 'react-redux';
import PostList from '../components/PostList';
import {bindActionCreators} from 'redux';
import * as Actions from '../actions/actions';
import Header from '../components/Header';
import Sidebar from '../components/Sidebar';
import Footer from '../component... |
app/components/IssueIcon/index.js | mamaracas/MEventsRegistration | import React from 'react';
function IssueIcon(props) {
return (
<svg
height="1em"
width="0.875em"
className={props.className}
>
<path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v... |
src/snowflake.js | bartonhammond/snowflake | 'use strict'
/**
* # snowflake
* Snowflake 
*/
/**
* ## imports
*
*/
/**
* ### React
*
* Necessary components from ReactNative
*/
import React from 'react'
import {
AppRegistry,
StyleSh... |
packages/react-app/server/index.js | threepointone/glam | // @flow
import React from 'react';
const express = require('express');
import { renderToNodeStream } from 'react-dom/server';
import App from '../src/App';
const app = express();
app.get('/', (req, res) => {
// res.send('hello world');
//open tags
res.write(`<!doctype html>
<html>
<head>
<met... |
stargazer/assets/js/index.js | martynvandijke/Stargazer | //import App from './App';
import React from 'react';
import ReactDOM from 'react-dom';
import Split from './SplitApp';
ReactDOM.render(
<Split />,
document.getElementById('react-app')
);
/**
* Render the app to dom node
*
*
*/
|
src/encoded/static/components/cart/remove_multiple.js | ENCODE-DCC/encoded | /**
* Displays a button to remove a specific set of datasets from the cart.
*/
// node_modules
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
// libs/ui
import { Modal, ModalHeader, ModalBody, ModalFooter } from '../../libs/ui/modal';
// components
import { hasTy... |
src/routes/register/index.js | nicolascine/site | /**
* 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... |
src/interface/icons/GitHubMarkSmall.js | fyruna/WoWAnalyzer | import React from 'react';
// From the GitHub branding website.
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024 1000" className="icon" {...other}>
<path d="M512 0C229.25 0 0 229.25 0 512c0 226.25 146.688 418.125 350.156 485.812 25.594 4.688 34.938-11.125 34.938-24.625 0... |
src/shared/components/Footer.js | Grace951/ReactAU | import { contactData} from '../Data/ContactData';
import { PureList} from "./Shared/Shared";
import React from 'react';
const FooterContactDetail = (props) => (
<li className="">
<i className={props.iconClass} /> | {
(props.link)?( <a href={props.link}> <PureList da... |
src/svg-icons/action/settings-bluetooth.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsBluetooth = (props) => (
<SvgIcon {...props}>
<path d="M11 24h2v-2h-2v2zm-4 0h2v-2H7v2zm8 0h2v-2h-2v2zm2.71-18.29L12 0h-1v7.59L6.41 3 5 4.41 10.59 10 5 15.59 6.41 17 11 12.41V20h1l5.71-5.71-4.3-4.... |
lib/FilterPaneSearch/FilterPaneSearch.js | folio-org/stripes-components | import React from 'react';
import PropTypes from 'prop-types';
import css from './FilterPaneSearch.css';
import Icon from '../Icon';
import FocusLink from '../FocusLink';
import IconButton from '../IconButton';
const propTypes = {
clearSearchId: PropTypes.string,
onChange: PropTypes.func,
onChangeIndex: PropType... |
src/browser/app/routeConfig.js | reedlaw/read-it | // @flow
import type { State } from '../../common/types';
import HttpError from 'found/lib/HttpError';
import React from 'react';
import queryFirebase from './queryFirebase';
import { makeRouteConfig, Route } from 'found/lib/jsx';
import { onUsersPresence } from '../../common/users/actions';
import { onLoadPosts, onLoa... |
packages/icons/src/md/hardware/KeyboardArrowDown.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdKeyboardArrowDown(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<polygon points="14.83 17 24 26.17 33.17 17 36 19.83 24 31.83 12 19.83" />
</IconBase>
);
}
export default MdKeyboardArrowDown;
|
client/src/app/components/ui/SmartNestable.js | zraees/sms-project | import React from 'react'
import {findDOMNode} from 'react-dom'
import 'script-loader!smartadmin-plugins/bower_components/jquery-nestable/jquery.nestable.js'
export default class SmartNestable extends React.Component {
componentDidMount() {
let element = $(findDOMNode(this))
let options = {};
if (th... |
src/svg-icons/action/speaker-notes-off.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSpeakerNotesOff = (props) => (
<SvgIcon {...props}>
<path d="M10.54 11l-.54-.54L7.54 8 6 6.46 2.38 2.84 1.27 1.73 0 3l2.01 2.01L2 22l4-4h9l5.73 5.73L22 22.46 17.54 18l-7-7zM8 14H6v-2h2v2zm-2-3V9l2 2H6zm14... |
src/components/todo/index.js | rldona/taskfire | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View
} from 'react-native';
import * as firebase from 'firebase';
import * as todoListService from '../../todolist.service';
import Checkbox from '../checkbox';
export default class Todo extends Component {
constructor(props, context) {
... |
src/containers/blankPage.js | EncontrAR/backoffice | import React, { Component } from 'react';
export default class extends Component {
render() {
return(<div className="isoLayoutContentWrapper" style={{height: "100vh"}}>
<div className="isoLayoutContent">
<h1>Blank Page</h1>
</div>
</div>);
}
};
|
build/server.js | IgorKilipenko/KTS_React | require("source-map-support").install();
module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
... |
app/javascript/mastodon/components/__tests__/button-test.js | tri-star/mastodon | import { render, fireEvent, screen } from '@testing-library/react';
import React from 'react';
import renderer from 'react-test-renderer';
import Button from '../button';
describe('<Button />', () => {
it('renders a button element', () => {
const component = renderer.create(<Button />);
const tree = com... |
components/MapModal.js | vaskort/react-native | import React, { Component } from 'react';
import { View, Text, Modal, StyleSheet} from 'react-native';
import MapView from 'react-native-maps';
import {Button, Icon} from 'react-native-elements';
import Promise from 'bluebird';
class MapModal extends React.Component {
state = {
firstTime: true,
region: {
... |
src/components/common/svg-icons/places/beach-access.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesBeachAccess = (props) => (
<SvgIcon {...props}>
<path d="M13.127 14.56l1.43-1.43 6.44 6.443L19.57 21zm4.293-5.73l2.86-2.86c-3.95-3.95-10.35-3.96-14.3-.02 3.93-1.3 8.31-.25 11.44 2.88zM5.95 5.98c-3.94 3.95... |
client/src/components/nav/NavLabel.js | JasonProcka/venos | import React from 'react';
export default class NavLabel extends React.Component {
render() {
return (
<li {...this.props} className="navLabel">{this.props.children}</li>
);
}
}
|
src/js/components/n-text.js | bradwoo8621/parrot2 | import React from 'react'
import ReactDOM from 'react-dom'
import jQuery from 'jquery'
import classnames from 'classnames'
let $ = jQuery;
import {Envs} from '../envs'
import {NComponent, NAddonComponent} from './n-component'
class NText extends NAddonComponent {
// lifecycle
postDidUpdate() {
let value = this.get... |
src/molecules/Breadcrumbs/breadcrumbs.stories.js | sjofartstidningen/bryggan | /* eslint-disable import/no-extraneous-dependencies */
import React, { Component } from 'react';
import { storiesOf } from '@storybook/react';
import Breadcrumbs from './index';
class Wrapper extends Component<*, *> {
state = {
path: '/blog/2018/123456',
};
routes = [
{ path: '/:root', title: ({ root })... |
old/view/indexOld.js | bburns/neomem | import React from 'react'
import ReactDOM from 'react-dom'
import App from './components/App'
ReactDOM.render(<App />, document.getElementById('root'))
|
client/components/organisms/ConfirmModal/ConfirmModal.js | djizco/boilerplate-react | import React from 'react';
import PropTypes from 'prop-types';
import Modal from 'react-bulma-companion/lib/Modal';
import ConfirmDeleteTodo from '_organisms/ConfirmDeleteTodo';
export default function ConfirmModal({ confirm, closeModal, deleteTodo }) {
return (
<Modal className="confirm-modal" active={confirm... |
sandbox-react-redux/src/components/pages/PageBar.js | ohtomi/sandbox | import React from 'react'
import HeaderContainer from '../organisms/HeaderContainer'
import CountContainer from '../organisms/CountContainer'
import CalcContainer from '../organisms/CalcContainer'
import Link from '../atoms/Link'
const PageBar = ({ state: { misc: { locked }, routing: { pathname } }, actions }) => {
... |
src/svg-icons/action/android.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAndroid = (props) => (
<SvgIcon {...props}>
<path d="M6 18c0 .55.45 1 1 1h1v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h2v3.5c0 .83.67 1.5 1.5 1.5s1.5-.67 1.5-1.5V19h1c.55 0 1-.45 1-1V8H6v10zM3.5 8C2.67 8... |
src/main/ScrollBox.js | smikhalevski/react-scroll-box | import React from 'react';
import {GenericScrollBox} from './GenericScrollBox';
export class ScrollBox extends React.Component {
render() {
return (
<GenericScrollBox {...this.props}>
<div className="scroll-box__viewport">
{this.props.children}
</div>
</GenericScrollBox>
... |
examples/real-world/index.js | javascriptjedi/redux-select | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { browserHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import Root from './containers/Root'
import configureStore from './store/configureStore'
const store = configureStore()
const hist... |
src/js/components/tests/editor-row-textbook-modal.js | daniel-madera/pijs | import React from 'react'
import { observer, inject } from 'mobx-react'
import { Modal, FormControl, FormGroup, Button, Form, ListGroup, ListGroupItem } from 'react-bootstrap'
import { SimpleInput } from '../others/form'
import { SimpleList } from '../others/lists'
@inject('testStore', 'textbookPublicStore', 'textbo... |
client/src/adventures/Adventures.js | petertrotman/adventurelookup | import React from 'react';
const Adventures = () => (
<div>
<h2>Adventures</h2>
<p>Getting this continuously deployed was a mini adventure :-D</p>
</div>
);
export default Adventures;
|
blog-post-4/src/www/js/components/demo-table.js | training4developers/react-flux-blog | 'use strict';
import React from 'react'; // eslint-disable-line no-unused-vars
import DemoRow from './demo-row'; // eslint-disable-line no-unused-vars
export default (props) => <table className='table table-striped'>
<thead>
<tr>
<th>Name</th>
<th>Description</th>
<th>Link</th>
</tr>
</thead>
<tbody>
... |
text-dream/webapp/src/components/cards/LayersComponent.js | PAIR-code/interpretability | /**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* 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 a... |
pages/counter.js | abhilashsajeev/shopping-cart-universal | import React from 'react';
import { store } from '../redux/store';
import { Counter } from '../components/Counter';
import { addNewCounter, removeCounter, incrementCounter, decrementCounter } from '../redux/actions/counterActions';
import { connectWithStore } from '../redux/connectWithStore';
import Layout from '../com... |
src/components/Footer/index.js | westoncolemanl/tabbr-web | import React from 'react'
import Responsive from 'react-responsive'
import LargeFooter from './LargeFooter'
import SmallFooter from './SmallFooter'
export default () =>
<div>
<Responsive
minWidth={961}
>
<LargeFooter />
</Responsive>
<Responsive
maxWidth={960}
minWidth={601}
... |
node_modules/semantic-ui-react/dist/es/elements/Step/StepTitle.js | SuperUncleCat/ServerMonitoring | import _extends from 'babel-runtime/helpers/extends';
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { childrenUtils, customPropTypes, getElementType, getUnhandledProps, META } from '../../lib';
/**
* A step can contain a title.
*/
function StepTitle(props) {
va... |
src/components/main.js | sourabh-garg/react-starter-kit | import React from 'react';
import {connect} from 'react-redux';
import Navbar from './CommonComponent/Navbar/navbar';
import Footer from './CommonComponent/Footer/footer';
class Main extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="container"... |
lib/index.js | openstardrive/flight-director | import React from 'react'
import { createStore, applyMiddleware } from 'redux'
import thunk from 'redux-thunk'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import reducer from './station/reducer'
import Station from './station'
require('./index.css')
let createStoreWithThunks ... |
app/javascript/mastodon/features/account_timeline/index.js | amazedkoumei/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { fetchAccount } from '../../actions/accounts';
import { expandAccountFeaturedTimeline, expandAccountTimeline } from '../../actions/timelines';
import ... |
docs/src/app/components/pages/components/Snackbar/Page.js | hai-cea/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import SnackbarReadmeText from './README';
import SnackbarExampleSimple from './... |
packages/components/src/List/ListComposition.stories.js | Talend/ui | import React from 'react';
import { action } from '@storybook/addon-actions';
import { simpleCollection } from './ListComposition/collection';
import ActionBar from '../ActionBar';
import List from '.';
const titleProps = rowData => ({
onClick: action('onTitleClick'),
'data-feature': `list.item.title.${rowData.id}`... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.