path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
js/ClientApp.js | jbarbettini/intro-to-react-workshop | import React from 'react'
import { render } from 'react-dom'
import { BrowserRouter } from 'react-router'
import App from './App'
render(<BrowserRouter><App /></BrowserRouter>, document.getElementById('app'))
|
src/svg-icons/hardware/watch.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareWatch = (props) => (
<SvgIcon {...props}>
<path d="M20 12c0-2.54-1.19-4.81-3.04-6.27L16 0H8l-.95 5.73C5.19 7.19 4 9.45 4 12s1.19 4.81 3.05 6.27L8 24h8l.96-5.73C18.81 16.81 20 14.54 20 12zM6 12c0-3.31 2.... |
docs-ui/components/platformIcon.stories.js | beeftornado/sentry | import React from 'react';
import styled from '@emotion/styled';
import PlatformIcon from 'platformicons';
import {withInfo} from '@storybook/addon-info';
const StyledPlatformIcon = styled(PlatformIcon)`
margin: 0 15px 15px 0;
`;
export default {
title: 'Core/Style/Icons',
};
export const _PlatformIcon = withInf... |
app/containers/Login/index.js | matteoterrinoni/portfolio | /**
*
* Login
*
*/
import React from 'react';
import { connect } from 'react-redux';
import { Helmet } from 'react-helmet';
import { createStructuredSelector } from 'reselect';
import { compose } from 'redux';
import injectSaga from 'utils/injectSaga';
import injectReducer from 'utils/injectReducer';
import { mak... |
code/workspaces/web-app/src/components/modal/EditAssetDialog.js | NERC-CEH/datalab | import React from 'react';
import PropTypes from 'prop-types';
import Dialog from '@material-ui/core/Dialog';
import DialogTitle from '@material-ui/core/DialogTitle';
import DialogContent from '@material-ui/core/DialogContent';
import Typography from '@material-ui/core/Typography';
import { makeStyles } from '@material... |
tests/flow/react_modules/es6class-proptypes-callsite.js | lydell/prettier | /* @flow */
import React from 'react';
import Hello from './es6class-proptypes-module';
class HelloLocal extends React.Component<void, {name: string}, void> {
defaultProps = {};
propTypes = {
name: React.PropTypes.string.isRequired,
};
render(): React.Element<*> {
return <div>{this.props.name}</div>;
... |
src/pages/404.js | mnbbrown/mnbbrown.github.io | import React from 'react';
import Layout from '../components/layout';
import SEO from '../components/seo';
const NotFoundPage = ({ location }) => (
<Layout>
<SEO title="404: Not found" location={location} />
<h1>NOT FOUND</h1>
<p>You just hit a route that doesn't exist... the sadness.</p>
</Layout... |
docs/wp-content/themes/Divi/includes/builder/frontend-builder/gutenberg/blocks/placeholder/edit.js | laurybueno/laurybueno.github.io | import { hot } from 'react-hot-loader';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { DIVI, GUTENBERG } from 'gutenberg/constants';
import { lock, unlock } from 'gutenberg/editor';
import { switchEditor, getGBContent } from 'gutenberg/controller';
import { subscribe, withDispatc... |
react/features/filmstrip/components/native/RaisedHandIndicator.js | jitsi/jitsi-meet | // @flow
import React from 'react';
import { View } from 'react-native';
import { IconRaisedHand } from '../../../base/icons';
import { BaseIndicator } from '../../../base/react';
import { connect } from '../../../base/redux';
import AbstractRaisedHandIndicator, {
type Props,
_mapStateToProps
} from '../Abstr... |
webapp/src/app/resetPassword/screens/ResetPassword.js | cpollet/itinerants | import React from 'react';
import Alert from '../../../widgets/Alert';
import Form from '../../../widgets/Form';
import FormRow from '../../../widgets/FormRow';
import FormLabel from '../../../widgets/FormLabel';
import FormField from '../../../widgets/FormField';
import TextInput from '../../../widgets/TextInput';
imp... |
examples/huge-apps/components/Dashboard.js | emmenko/react-router | import React from 'react';
import { Link } from 'react-router';
class Dashboard extends React.Component {
render () {
var { courses } = this.props;
return (
<div>
<h2>Super Scalable Apps</h2>
<p>
Open the network tab as you navigate. Notice that only the amount of
y... |
docs/src/NavMain.js | yyssc/ssc-grid | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router';
import { Navbar, Nav } from 'react-bootstrap';
const NAV_LINKS = {
components: {
link: '/components.html',
title: '组件列表'
}
};
// We don't want to include react-router-bootstrap as a dependency here, so we
/... |
docs/src/app/components/pages/components/Slider/Page.js | nathanmarks/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 sliderReadmeText from './README';
import SliderExampleSimple from './Exam... |
frontend/src/components/GithubIcon.js | tanzdervampire/website | import React from 'react';
import SvgIcon from 'material-ui/SvgIcon';
const GithubIcon = (props) => (
<SvgIcon viewBox="0 0 16 16" {...props}>
<path d="M8 0C3.58 0 0 3.582 0 8c0 3.535 2.292 6.533 5.47 7.59.4.075.547-.172.547-.385 0-.19-.007-.693-.01-1.36-2.226.483-2.695-1.073-2.695-1.073-.364-.924-.89-1.17... |
src/common/ColorIconPicker/ColorIconPicker.js | Syncano/syncano-dashboard | import React from 'react';
import { Tabs, Tab } from 'material-ui';
import { colors as Colors } from 'material-ui/styles/';
import PreviewCircle from './PreviewCircle';
import PreviewHexagon from './PreviewHexagon';
import ColorPicker from './ColorPicker';
import IconPicker from './IconPicker';
const ColorIconPicker =... |
scripts/views/HomeView.js | wattsbn/ReactReader | import React from 'react';
class HomeView extends React.Component {
render() {
return (
<div className="container">
<h1>Welcome to React Reader</h1>
</div>
);
}
}
export default HomeView; |
src/svg-icons/communication/chat.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationChat = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"/>
</SvgIcon>
);
Communicatio... |
src/routes/error/index.js | stanxii/laiico | /**
* 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 ErrorPage from './Err... |
src/Icons/Megaphone.js | hasseboulen/WoWAnalyzer | import React from 'react';
// https://thenounproject.com/term/megaphone/1399378/
// Created by Jony from the Noun Project
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" {...other}>
<path d="M77.2,7c-3.5,0-6.4,2.4-7.1,5.8L28.7,27.7H14.8c-4.4,0-8,3.6-8,8v22.8c0,0.2,0... |
src/Button/Button.js | nirhart/wix-style-react | import React from 'react';
import styles from './Button.scss';
import WixComponent from '../WixComponent';
import ButtonLayout from '../ButtonLayout/ButtonLayout';
import omit from 'lodash.omit';
class Button extends WixComponent {
constructor(props) {
super(props);
this.addPrefix = this.addPrefix.bind(this... |
app/javascript/mastodon/features/hashtag_timeline/index.js | imas/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import ColumnSettingsContainer from './... |
example/examples/DraggableMarkers.js | jiaminglu/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Dimensions,
} from 'react-native';
import MapView from 'react-native-maps';
import PriceMarker from './PriceMarker';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 31.23295;
const LONGITUDE = 121.38... |
src/react/StateCheckRedirectRoute.js | laundree/laundree | // @flow
import React from 'react'
import { Route, Redirect } from 'react-router'
import type { ComponentType } from 'react'
import type { State } from '../../node_modules/laundree-sdk/lib/redux'
import { connect } from 'react-redux'
type StateCheckRedirectRouteProps = {
path: string,
component: ComponentType<*>,
... |
src/components/DropDownMenu.js | j-der/pickmeup-ui | import React from 'react';
import IconMenu from 'material-ui/lib/menus/icon-menu';
import MenuItem from 'material-ui/lib/menus/menu-item';
import IconButton from 'material-ui/lib/icon-button';
import MoreVertIcon from 'material-ui/lib/svg-icons/navigation/more-vert';
import ContentFilter from 'material-ui/lib/svg-icons... |
src/stores/CountryCountStore.js | alexmasselot/medlineGeoWebFrontend | import React from 'react';
import {EventEmitter} from 'events';
import assign from 'object-assign';
import httpClient from '../core/HttpClient';
import dispatcher from '../core/Dispatcher';
import Constants from '../constants/Constants';
import BaseStore from './BaseStore'
var _data = {};
const store = assign({}, Ba... |
src/components/Pagination/PaginationPage.js | wundery/wundery-ui-react | import React from 'react';
// Utils
import classnames from 'classnames';
const PaginationPage = (props) => {
const children = props.children;
return (
<div className={classnames('ui-pagination-page')}>
{children}
</div>
);
};
PaginationPage.propTypes = {
children: React.PropTypes.node,
};
exp... |
src/components/App.js | AgtLucas/css-modules-playground | import styles from './App.css';
import React from 'react';
import Logo from './0-Logo/Logo';
import ScopedSelectorsDemo from './1-ScopedSelectors/ScopedSelectorsDemo';
import GlobalSelectorsDemo from './2-GlobalSelectors/GlobalSelectorsDemo';
import ClassCompositionDemo from './3-ClassComposition/ClassCompositionDemo... |
react/src/components/messages/ErrorMessage.js | VREMSoftwareDevelopment/bwmon | /*
* Copyright (C) 2010 - 2020 VREM Software Development <VREMSoftwareDevelopment@gmail.com>
*
* 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: //w... |
DatecsPrinterExample/index.ios.js | renancsoares/react-native-datecs-printer | import React, { Component } from 'react';
import { AppRegistry, StyleSheet, Text, View } from 'react-native';
export default class DatecsPrinterExample extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.android}>Only for Android :/</Text>
</View>
);
}
}
const s... |
client/src/containers/Confirmation.js | jeffersonsteelflex69/mytv | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { CognitoUser } from 'amazon-cognito-identity-js';
import Confirmation from '../components/Confirmation';
const mapDispatchToProps = (dispatch) => {
return {
confirmUser: (userPool, email, code) => {
let userData = {
User... |
node_modules/react-bootstrap/es/DropdownButton.js | acalabano/get-committed | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from... |
src/js/people/addPerson.js | globin/drinkup | import React from 'react';
import { RaisedButton, TextField } from 'material-ui';
import ValueLink from '../utils/valueLink';
import PeopleActions from './peopleActions';
@ValueLink
class AddPerson extends React.Component {
state = {
name: '',
};
render() {
const styles = {
bu... |
src/RatingEditWidget.js | arunchaganty/briefly | import React, { Component } from 'react';
import {Alert, Button, ButtonGroup, Glyphicon, Table} from 'react-bootstrap';
import NaryAnswer from './NaryAnswer';
import EditableDocument from './EditableDocument.js'
import SelectableDocument from './SelectableDocument';
import update from 'immutability-helper';
import leve... |
public/js/components/chat/ChatCC.react.js | rajikaimal/Coupley | import React from 'react';
import Paper from 'material-ui/lib/paper';
import TextField from 'material-ui/lib/text-field';
import FlatButton from 'material-ui/lib/flat-button';
import ThreadStore from '../../stores/ThreadStore';
import LoginStore from '../../stores/LoginStore';
import Emojis from './emojis';
var socket ... |
app/javascript/mastodon/features/compose/components/navigation_bar.js | h3zjp/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ActionBar from './action_bar';
import Avatar from '../../../components/avatar';
import Permalink from '../../../components/permalink';
import IconButton from '../../../components/icon_button... |
js/src/dapps/registry.js | immartian/musicoin | // Copyright 2015, 2016 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any la... |
src/App.js | Arto13/chatapp | import './stylesheets/components.scss';
import React from 'react';
import ChatModel from './models/ChatModel';
import ChatForm from './components/ChatForm';
import ChatList from './components/ChatList';
class App extends React.Component {
constructor() {
super();
this.chats = new ChatModel();
}
ren... |
static/src/index.js | ValentinAlexandrovGeorgiev/ReactApp | import React from 'react';
import ReactDOM from 'react-dom';
import Detail from './pages/Detail';
ReactDOM.render(
<Detail message="Test Message"/>,
document.getElementById('app')
); |
src/svg-icons/device/network-wifi.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceNetworkWifi = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M3.53 10.95l8.46 10.54.01.0... |
src/lib/client/app.js | dankennedy/testwebpack | 'use strict';
import React from 'react';
import Notifications from './components/Notify';
import Nav from './components/Nav';
export default class App extends React.Component {
render() {
return (
<div>
<Nav />
<Notifications />
<div className="content-wrapper">
{this.pro... |
frontend/src/Components/Modal/ModalError.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import ErrorBoundaryError from 'Components/Error/ErrorBoundaryError';
import Button from 'Components/Link/Button';
import ModalBody from 'Components/Modal/ModalBody';
import ModalContent from 'Components/Modal/ModalContent';
import ModalFooter from 'Compone... |
app/react-icons/fa/chevron-circle-left.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaChevronCircleLeft extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m23.3 31.1l2.3-2.2q0.4-0.5 0.4-1t-0.4-1l-6.9-6.9 6.9-6.9q0.4-0.4 0... |
testCode/Components/EmployeeList.js | Aznachang/CompanyPersonelReactJS | import React from 'react';
import CompanyEmployeeList from '../Containers/company-employee-list.js';
import { Router, Route, Switch } from 'react-router-dom';
const App = () => (
<div>
<CompanyEmployeeList />
</div>
);
export default App;
|
packages/vulcan-core/lib/modules/containers/withEdit.js | acidsound/Telescope | /*
Generic mutation wrapper to edit a document in a collection.
Sample mutation:
mutation moviesEdit($documentId: String, $set: MoviesInput, $unset: MoviesUnset) {
moviesEdit(documentId: $documentId, set: $set, unset: $unset) {
...MoviesEditFormFragment
}
}
Arguments:
- documentId: the id of... |
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch06/06_05/start/src/index.js | yevheniyc/C | import React from 'react'
import { render } from 'react-dom'
import './stylesheets/ui.scss'
import './stylesheets/index.scss'
import { App } from './components/App'
import { Whoops404 } from './components/Whoops404'
import { Router, Route, hashHistory } from 'react-router'
window.React = React
render(
<Router histor... |
src/components/Logo/Logo.js | tinnguyenhuuletrong/react-metronic-dashboard | import React from 'react'
import LogoImg from '../../static/assets/layouts/layout/img/logo.png'
export const Logo = () => (
<div className="page-logo">
<a href="index.html">
<img src={LogoImg} alt="logo" className="logo-default" /> </a>
<div className="menu-toggler sidebar-toggler">
<span></span>
... |
src/browser/todos/TodosPage.react.js | rkoberg/rihpl | import Buttons from './Buttons.react';
import Component from 'react-pure-render/component';
import Helmet from 'react-helmet';
import NewTodo from './NewTodo.react';
import React from 'react';
import Todos from './Todos.react';
import linksMessages from '../../common/app/linksMessages';
import { injectIntl, intlShape }... |
src/svg-icons/av/note.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvNote = (props) => (
<SvgIcon {...props}>
<path d="M22 10l-6-6H4c-1.1 0-2 .9-2 2v12.01c0 1.1.9 1.99 2 1.99l16-.01c1.1 0 2-.89 2-1.99v-8zm-7-4.5l5.5 5.5H15V5.5z"/>
</SvgIcon>
);
AvNote = pure(AvNote);
AvNote.... |
cm19/ReactJS/your-first-react-app-exercises-master/exercise-16/complete/theme/Switcher.js | Brandon-J-Campbell/codemash | import React from 'react';
import ThemeContext from './context';
import styles from './Switcher.css';
export default function() {
return (
<ThemeContext.Consumer>
{({ theme, onThemeChanged }) => (
<button className={styles.switcher} onClick={onThemeChanged}>
Change Theme
</butto... |
docs/src/components/Sandbox/Preview/RenderJsx/RenderJsx.js | seekinternational/seek-asia-style-guide | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { transform } from 'buble';
import scopeEval from 'scope-eval';
export default class RenderJsx extends Component {
static displayName = 'RenderJsx';
static propTypes = {
jsx: PropTypes.string.isRequired,
scope: PropTypes.... |
src/js/components/pages/ErrorPage.js | at-ishikawa/paintlive | import React from 'react';
class ErrorPage extends React.Component {
render() {
return (
<div>
<div style={{
"background-color": "white",
"font-size": "2rem",
"padding": "32px",
"text-align": "center"
}}>
Sorry, the requested page was not fo... |
src/playground/DemoPage.react.js | Indoqa/indoqa-rebass-components | import React from 'react'
import {Divider, Heading, Space} from 'rebass'
import Anchor from '../main/components/Anchor.react'
import AnchorLink from '../main/components/AnchorLink.react'
import Div from '../main/components/Div.react'
import List from '../main/components/List.react'
import ListItem from '../main/compone... |
fmi-2022-05-react-todos/src/HelloFunc.js | iproduct/course-node-express-react | import React from 'react';
export default (props) =>
(<div className="hello">
<h2>Hello, {props.name}</h2>
</div>); |
src/svg-icons/notification/no-encryption.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationNoEncryption = (props) => (
<SvgIcon {...props}>
<path d="M21 21.78L4.22 5 3 6.22l2.04 2.04C4.42 8.6 4 9.25 4 10v10c0 1.1.9 2 2 2h12c.23 0 .45-.05.66-.12L19.78 23 21 21.78zM8.9 6c0-1.71 1.39-3.1 3.1... |
client/components/game_form.js | AlaMurkan-FIFA-Boyz-2017-Dremz2Lyf/Game-Manager-V2 | import React from 'react';
import { connect } from 'react-redux';
import { Field, reduxForm, getFormSyncErrors } from 'redux-form';
import {
Form,
FormGroup,
FormControl,
ControlLabel,
Row,
Col,
Popover,
OverlayTrigger,
Button,
HelpBlock
} from 'react-bootstrap';
import { getValidationState, requir... |
src/components/post-title.js | prodigygod0209/prodigygod0209.github.io | import React from 'react';
import styled , { injectGlobal, keyframes } from 'styled-components';
const Title = styled.h1`
font-size: 40px;
font-family: 'Noto Sans TC', sans-serif;
text-align: center;
animation: ${keyframes`from { opacity: 0; }`} 1s both;
`;
export default function PostTitle(props){... |
app/components/H3/index.js | jwarning/react-ci-test | import React from 'react';
function H3(props) {
return (
<h3 {...props} />
);
}
export default H3;
|
src/routes/index.js | birkir/react-typescript-iso-kit | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from '../containers/app';
import Home from './home';
import About from './about';
const routes = (
<Route path="/" component={App}>
<IndexRoute component={Home} />
<Route path="about" component={About} />
</Route>
);
e... |
src/svg-icons/image/flash-on.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFlashOn = (props) => (
<SvgIcon {...props}>
<path d="M7 2v11h3v9l7-12h-4l4-8z"/>
</SvgIcon>
);
ImageFlashOn = pure(ImageFlashOn);
ImageFlashOn.displayName = 'ImageFlashOn';
ImageFlashOn.muiName = 'SvgIco... |
src/components/PerformanceFrame.js | mg4tv/mg4tv-web | import React from 'react'
import { compose, withHandlers, withState } from 'recompose'
import VideoStream, { videoStates } from './videos/VideoStream'
import VideoControls from './videos/VideoControls'
const enhance = compose(
withState('loadedVideos', 'updateLoadedVideos', new Set([])),
withState(
'performa... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | iwilsonq/whales-r-us | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/vendor/recharts/demo/component/Rectangle.js | happyboy171/Feeding-Fish-View- | import React, { Component } from 'react';
import { Surface, Rectangle } from 'recharts';
class RectangleDemo extends Component {
state = {
x: 50,
y: 50,
width: 80,
height: 100,
};
changeSize() {
this.setState({
x: Math.random() * 50,
y: Math.random() * 50,
width: Math.rando... |
client/src/components/AboutPage.js | yegor-sytnyk/contoso-express | import React from 'react';
import {connect} from 'react-redux';
import StudentStatisticsList from './student/StudentStatisticsList';
import {loadStudentsStatistics} from '../actions/studentActions';
class AboutPage extends React.Component {
constructor(props, context) {
super(props, context);
this... |
src/pages/packages_overview/PackageOverviewRootPage.js | belaczek/BeerCheese-client | import React from 'react';
import { Container, Row, Col } from 'reactstrap';
import PackageOverviewNav from '../../components/navigation/PackageOverviewNav';
import PriceCalculation from '../../components/packageOverview/PriceCalculation';
const packageOverviewRootPage = (props) => (
<Container>
<PackageOv... |
packages/node_modules/@webex/react-component-incoming-call/src/index.js | adamweeks/react-ciscospark-1 | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import PresenceAvatar from '@webex/react-container-presence-avatar';
import ButtonControls from '@webex/react-component-button-controls';
import styles from './styles.css';
const propTypes = {
answerButtonLabel: Prop... |
public/assets/scripts/components/navigation/topNav.js | luisfbmelo/reda | import React from 'react';
import { Component } from 'react';
import Link from 'react-router/lib/Link'
// Utils
import { toggleClass, removeClass } from '@/utils';
// Components
import { Nav, Navbar, NavItem } from 'react-bootstrap';
import LoginButton from '@/components/auth/loginButton';
import LogoutButton from '@... |
frontend/app/js/components/service/details/externalurl.js | serverboards/serverboards | import React from 'react'
function ExternalUrl({url}){
return (
<iframe src={url} className="ui full height"></iframe>
)
}
export default ExternalUrl
|
src/containers/organizations/components/OrganizationIntegrationDetailsSectionComponent.js | dataloom/gallery | import React from 'react';
import Immutable, { Map } from 'immutable';
import { Modal } from 'react-bootstrap';
import styled from 'styled-components';
import { Models } from 'lattice';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import InfoButton from '../../../components/butto... |
geonode/contrib/monitoring/frontend/src/components/cels/ws-data/index.js | MapStory/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import AverageResponseTime from '../../molecules/average-response-time';
import MaxResponseTime from '../../molecules/max-response-time';
import TotalRequests from '../../molecules/total-requests';
import WSServiceSele... |
docs/app/Examples/collections/Message/Variations/MessageSizeExample.js | ben174/Semantic-UI-React | import React from 'react'
import { Message } from 'semantic-ui-react'
const MessageColorExample = () => (
<div>
<Message size='mini'>This is a mini message.</Message>
<Message size='tiny'>This is a tiny message.</Message>
<Message size='small'>This is a small message.</Message>
<Message size='large'>... |
app/javascript/mastodon/features/compose/components/text_icon_button.js | res-ac/mstdn.res.ac | import React from 'react';
import PropTypes from 'prop-types';
export default class TextIconButton extends React.PureComponent {
static propTypes = {
label: PropTypes.string.isRequired,
title: PropTypes.string,
active: PropTypes.bool,
onClick: PropTypes.func.isRequired,
ariaControls: PropTypes.s... |
src/components/Header/Header.js | johnrenko/React | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './Header.css';
import withStyles from '../../decorators/withStyles';
import Link from '../../utils/Link';
import Navigation from '../Navigation';
@withStyles(styles)
class Header {
render() {
... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/index.js | dewmini/carbon-apimgt | /*
* Copyright (c) 2017, 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/components/Clients/Clients.js | 0xcdc/rfb-client-app | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/withStyles';
import { Badge, OverlayTrigger, Table, Tooltip } from 'react-bootstrap';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faChevronRight, faPencilAlt } fro... |
app/js/containers/Full/Full.js | jagatjeevan/dakiya | import React, { Component } from 'react';
import { Switch, Route, Redirect } from 'react-router-dom';
import Header from '../../components/Header/';
import Sidebar from '../../components/Sidebar/';
import Breadcrumb from '../../components/Breadcrumb/';
import Footer from '../../components/Footer/';
import Dashboard fr... |
fixtures/kitchensink/template/src/features/syntax/CustomInterpolation.js | d3ce1t/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';
const styled = ([style]) =>
style
.trim()
.spli... |
src/components/label-item.js | titoesteves/react_practice2 | import React from 'react'
import ampersandMixin from 'ampersand-react-mixin'
export default React.createClass({
mixins: [ampersandMixin],
onDeleteClick (event) {
event.preventDefault()
this.props.label.destroy()
},
onCancelClick (event) {
event.preventDefault()
const {label} = this.props
... |
app/templates/components/Html.js | v2018z/generator-fluxible | import React from 'react';
import ApplicationStore from '../stores/ApplicationStore';
class Html extends React.Component {
render() {
return (
<html>
<head>
<meta charSet="utf-8" />
<title>{this.props.context.getStore(ApplicationStore).getPageTitle()}... |
src/components/App.js | tmshv/k2 | import React from 'react';
import merge from 'merge';
import MapController from '../core/MapController'
import Building from '../models/Building'
import {map as config_map, endpoint} from '../config'
export default class App extends React.Component {
constructor() {
super();
var query = new Map(l... |
src/svg-icons/editor/show-chart.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorShowChart = (props) => (
<SvgIcon {...props}>
<path d="M3.5 18.49l6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"/>
</SvgIcon>
);
EditorShowChart = pure(EditorShowChart);
EditorShowChart.displayNa... |
src/Container.js | vire/resit | import React, { Component } from 'react';
import { DragDropContext } from 'react-dnd';
import HTML5Backend, { NativeTypes } from 'react-dnd/modules/backends/HTML5';
import Dustbin from './Dustbin';
import Box from './Box';
import update from 'react/lib/update';
import Store from './Store';
@DragDropContext(HTML5Backen... |
test/components/checkbox.js | energy-data/market-opportunities | import React from 'react'
import test from 'ava'
import { shallow } from 'enzyme'
import sinon from 'sinon'
import classes from '../helpers/classes'
import Checkbox from '../../app/assets/scripts/components/checkbox'
test('indicator test', t => {
const spy = sinon.spy()
const component = shallow(<Checkbox
val... |
example/original/index.ios.js | fukuball/react-native-orientation-loading-overlay | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import OrientationLoadingOverlay from 'react-native-orientation-loading-overlay';
export default class original ... |
src/components/common/Button2.js | brianyamasaki/rideshare | import React from 'react';
import { Text, TouchableOpacity } from 'react-native';
const Button = (props) => {
const { buttonStyle, textStyle } = styles;
return (
<TouchableOpacity onPress={props.onPress} style={buttonStyle}>
<Text style={textStyle}>
{props.children}
</Text>
</Touchable... |
test/integration/image-component/default/pages/invalid-placeholder-blur.js | zeit/next.js | import React from 'react'
import Image from 'next/image'
const Page = () => {
return (
<div>
<Image
id="invalid-placeholder-blur"
src="/test.png"
placeholder="blur"
width={200}
height={200}
/>
</div>
)
}
export default Page
|
src/containers/Home/Home.js | vizidrixfork/react-redux-universal-hot-example | import React, { Component } from 'react';
import { Link } from 'react-router';
import { CounterButton, GithubButton } from 'components';
export default class Home extends Component {
render() {
const styles = require('./Home.scss');
// require the logo image both from client and server
const logoImage = ... |
node_modules/react-router/es6/RoutingContext.js | fahidRM/aqua-couch-test | import React from 'react';
import RouterContext from './RouterContext';
import warning from './routerWarning';
var RoutingContext = React.createClass({
displayName: 'RoutingContext',
componentWillMount: function componentWillMount() {
process.env.NODE_ENV !== 'production' ? warning(false, '`RoutingContext` has... |
src/components/About.js | urre/staytube | import React from 'react'
import Helmet from 'react-helmet'
import ReactGA from 'react-ga'
import createBrowserHistory from 'history/lib/createBrowserHistory'
import GoMarkGithub from 'react-icons/lib/go/mark-github'
const history = createBrowserHistory()
history.listen((location, action) => {
ReactGA.set({ page: l... |
app/javascript/mastodon/components/button.js | tootcafe/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default class Button extends React.PureComponent {
static propTypes = {
text: PropTypes.node,
onClick: PropTypes.func,
disabled: PropTypes.bool,
block: PropTypes.bool,
secondary: PropTypes.... |
frontend/src/Components/Scroller/Scroller.js | geogolem/Radarr | import classNames from 'classnames';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { scrollDirections } from 'Helpers/Props';
import styles from './Scroller.css';
class Scroller extends Component {
//
// Lifecycle
constructor(props, context) {
super(props, context);
... |
techCurriculum/ui/solutions/4.7/src/components/Title.js | tadas412/EngineeringEssentials | /**
* 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... |
src/svg-icons/hardware/gamepad.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareGamepad = (props) => (
<SvgIcon {...props}>
<path d="M15 7.5V2H9v5.5l3 3 3-3zM7.5 9H2v6h5.5l3-3-3-3zM9 16.5V22h6v-5.5l-3-3-3 3zM16.5 9l-3 3 3 3H22V9h-5.5z"/>
</SvgIcon>
);
HardwareGamepad = pure(Hardw... |
src/svg-icons/places/room-service.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesRoomService = (props) => (
<SvgIcon {...props}>
<path d="M2 17h20v2H2zm11.84-9.21c.1-.24.16-.51.16-.79 0-1.1-.9-2-2-2s-2 .9-2 2c0 .28.06.55.16.79C6.25 8.6 3.27 11.93 3 16h18c-.27-4.07-3.25-7.4-7.16-8.21z"... |
src/svg-icons/device/battery-80.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBattery80 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V9h10V5.33z"/><path d="M7 9v11.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1... |
src/js/components/icons/base/Capacity.js | odedre/grommet-final | /**
* @description Capacity SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @p... |
src/components/Link.js | oguennec/react-native-redux-todos | import React from 'react';
import * as PropTypes from 'prop-types';
import { StyleSheet, Text, View } from 'react-native';
import { Icon } from 'react-native-elements';
const Link = ({ active, color, iconName, underlayColor, reverseColor, onClick }) => {
return (
<View style={styles.container}>
<Icon
... |
examples/js/selection/externally-managed-selection.js | dana2208/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
sam-front/src/components/Attributes.js | atgse/sam | import React from 'react';
import JSONEditor from 'jsoneditor';
import '../../node_modules/jsoneditor/dist/jsoneditor.css';
const Attributes = React.createClass({
componentWillReceiveProps(nextProps) {
const { attributes } = nextProps;
if (this.editor) {
this.editor.set(attributes);
... |
docs/app/examples/modals/sidebar-modal.js | Sandreu/react-mf-modal | import React from 'react';
/* example
import SidebarModal from 'react-mf-modal/themes/{{theme}}/sidebar-modal';
*/
/* real
import All from '../all-themes';
const { SidebarModal } = All[window.theme] || {};
*/
export default class SidebarModalExample extends React.Component {
handleUnderstood = () => {
this.props... |
Realization/frontend/czechidm-core/src/content/role/RoleTreeNodes.js | bcvsolutions/CzechIdMng | import React from 'react';
import Helmet from 'react-helmet';
import _ from 'lodash';
//
import * as Basic from '../../components/basic';
import SearchParameters from '../../domain/SearchParameters';
import RoleTreeNodeTableComponent, { RoleTreeNodeTable } from './RoleTreeNodeTable';
/**
* Automatic roles by tree str... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.