path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/TwilioVideoParticipantView.android.js
gaston23/react-native-twilio-video-webrtc
/** * Component for Twilio Video participant views. * * Authors: * Jonathan Chang <slycoder@gmail.com> */ import { requireNativeComponent } from 'react-native' import PropTypes from 'prop-types' import React from 'react' class TwilioRemotePreview extends React.Component { static propTypes = { trackIdenti...
src/templates/category-template.js
apalhu/website
// @flow strict import React from 'react'; import { graphql } from 'gatsby'; import Layout from '../components/Layout'; import Sidebar from '../components/Sidebar'; import Feed from '../components/Feed'; import Page from '../components/Page'; import Pagination from '../components/Pagination'; import { useSiteMetadata }...
src/components/logs/logsDashboard/logsDashboardComponent.js
tombolaltd/ecs-monitor
import React, { Component } from 'react'; import LogViewer from '../logViewer/logViewerComponent'; import { getLogs, getLogEvents } from '../../../dataRequests/logRequests'; import { Event, progressBarEvent$ } from '../../../pubsub/eventStreams'; import './logsDashboardComponent.css'; class LogsDashboard extends Compo...
templates/rubix/laravel/laravel-seed/src/routes/Home.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import { Link } from 'react-router'; import { Row, Col, Grid, Panel, PanelBody, PanelContainer, } from '@sketchpixy/rubix'; export default class Home extends React.Component { render() { return ( <PanelContainer> <Panel> <PanelBody style={{paddingT...
app/javascript/mastodon/features/account_timeline/index.js
pointlessone/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 ...
pkg/interface/groups/tile/tile.js
ngzax/urbit
import React, { Component } from 'react'; import classnames from 'classnames'; import _ from 'lodash'; export default class ContactTile extends Component { render() { const { props } = this; let data = _.get(props.data, "invites", false); let inviteNum = 0; if (data && "/contacts" in data) { ...
packages/carbon-react/src/components/Tag/Tag.stories.js
carbon-design-system/carbon-components
/** * 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 React from 'react'; import { Tag } from 'carbon-components-react'; export default { title: 'Components/Tag', parameters: { co...
app/containers/NotFoundPage/index.js
Jasonlucas724/SWASH
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * */ import React from 'react'; export default class NotFound extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function render() { return ( <h1> 404: Not Found ...
examples/basic/app.js
xiaohuij/react-magnifier-gallery
import React from 'react' import { render } from 'react-dom' import Gallery from '../../src/index' const imgUrl = [ {thumb: 'https://dummyimage.com/60x40/000/fff', full: 'https://dummyimage.com/1000x800/000/fff.png'}, {thumb: 'https://dummyimage.com/60x40/5ff011/0011ff', full: 'https://dummyimage.com/800x800/5ff01...
src/components/common/NavButton/index.js
bitmoremedia/mygi-app
import React from 'react'; import { NAV_ICON_SIZE } from '../../../config'; import { Button, Text, StyledIcon } from './styled-components'; const NavButton = ({ title, onPress, icon }) => { let content = <Text>{title}</Text>; if (icon) { switch (icon) { case 'search': content = <StyledIcon name...
src/components/exercises/ExplanationText.stories.js
cognostics/serlo-abc
import React from 'react'; import { storiesOf } from '@storybook/react-native'; import ExplanationText from './ExplanationText'; storiesOf('exercises/ExplanationText', module).add('Repeat letter', () => ( <ExplanationText text="Wiederholen Sie den Buchstaben." sound={require('../../assets/sounds/exercises/w...
information/blendle-frontend-react-source/app/modules/timeline/components/UpgradeBulletin/index.js
BramscoChill/BlendleParser
import React from 'react'; import { bool, number, string, func } from 'prop-types'; import classNames from 'classnames'; import { CloseIcon } from '@blendle/lego'; import Message from './Message'; import CtaButton from './CtaButton'; import CSS from './style.scss'; function UpgradeBulletin({ daysLeft, name, hadP...
docs/src/NavMain.js
zanjs/react-bootstrap
import React from 'react'; import { Link } from 'react-router'; import Navbar from '../../src/Navbar'; import Nav from '../../src/Nav'; const NAV_LINKS = { 'introduction': { link: 'introduction', title: 'Introduction' }, 'getting-started': { link: 'getting-started', title: 'Getting started' }, ...
examples/react-firebase-redux/src/routes/Account/components/AccountForm/AccountForm.js
prescottprue/generator-react-firebase
import React from 'react' import PropTypes from 'prop-types' import { useForm } from 'react-hook-form' import { styled } from '@mui/material/styles' import TextField from '@material-ui/core/TextField' import Typography from '@material-ui/core/Typography' import Button from '@material-ui/core/Button' import { validateEm...
breezy/lib/components/Nav.js
jho406/Breezy
import React from 'react' import { urlToPageKey, pathWithoutBZParams } from '../utils' import { REMOVE_PAGE, HISTORY_CHANGE } from '../actions' import PropTypes from 'prop-types' class Nav extends React.Component { constructor(props) { super(props) const { history, initialPageKey } = this.props this.hist...
src/tests/setup.js
feedcast/hurley
import React from 'react'; jest.mock('react-i18next', () => ({ // this mock makes sure any components using the translate HoC receive the t function as a prop translate: () => Component => props => <Component t={(key) => key} {...props} />, }));
src/routes.js
laurazenc/react-marvel-comics
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import {App, Home, CharacterDetail, Favorites} from './containers/'; import {NotFound} from './components/'; export default ( <Route path="/" component={App}> <IndexRoute component={Home}/> <Route path="/details/:id" component={Cha...
app/components/StudentGroup/StudentGroupActions.js
klpdotorg/tada-frontend
import React from 'react'; import PropTypes from 'prop-types'; const StudentGroupActions = ({ isPrimary, hasPermissions, viewStudent, showBulkAdd }) => { if (isPrimary) { return ( <div className="col-md-4 pull-right"> <button className="btn btn-orange" onClick={showBulkAdd} ...
src/Parser/Mage/Fire/Modules/Features/HeatingUp.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import Wrapper from 'common/Wrapper'; import { formatMilliseconds, formatPercentage } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'...
js/Toolbar.js
dmitriykovalev/slovareg
import React from 'react'; import {Glyphicon, Button, InputGroup, FormControl, ButtonGroup, ButtonToolbar, DropdownButton, MenuItem} from 'react-bootstrap'; const Toolbar = React.createClass({ propTypes: { selection: React.PropTypes.array.isRequired, mo...
docs/src/ComponentsPage.js
deerawan/react-bootstrap
/* eslint react/no-did-mount-set-state: 0 */ import React from 'react'; import getOffset from 'dom-helpers/query/offset'; import css from 'dom-helpers/style'; import Affix from '../../src/Affix'; import Nav from '../../src/Nav'; import SubNav from '../../src/SubNav'; import NavItem from '../../src/NavItem'; import N...
Realization/frontend/czechidm-core/src/components/advanced/Form/RichTextAreaFormAttributeRenderer.js
bcvsolutions/CzechIdMng
import React from 'react'; // import RichTextArea from '../RichTextArea/RichTextArea'; import TextFormAttributeRenderer from './TextFormAttributeRenderer'; /** * RichTextArea form value component * * @author Radek Tomiška */ export default class RichTextAreaFormAttributeRenderer extends TextFormAttributeRenderer {...
packages/lightning-components/Box/index.js
DaReaper/lightning-app
import React from 'react' import reactCSS from 'reactcss' import _ from 'lodash' import { colors, css, fonts, spacing } from '../helpers' // can look for close values. if padding="3px" it would suggest you to use 'xs' const keys = ['display', 'direction', 'color', 'background', 'padding', 'paddingTop', 'paddingRigh...
src/esm/components/graphics/icons/video-icon/index.js
KissKissBankBank/kitten
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["color", "title"]; import React from 'react'; import PropTypes from 'prop-types'; export var VideoIcon = function VideoIcon(_ref) { var color = _ref....
app/containers/NavigationContainer/index.js
oliv37/vocab-front
/* * * NavigationContainer * */ import React from 'react'; import { connect } from 'react-redux'; import selectNavigationContainer from './selectors'; import Navigation from '../../components/Navigation'; import { startAdd, startQuizz, goHome } from './actions'; export class NavigationContainer extends React.Comp...
www/src/containers/FetchingContainer.js
cygwin255/SimpleSurvey
import 'styles/spinner.css' import React from 'react' import { connect } from 'react-redux' import { isFetchingSelector } from 'reducers/fetchReducer/index' let FetchingContainer = ({isFetching}) => { if (!isFetching) { return null } return <div id='fetching' > <div className='spinner'> <div clas...
src/ModalHeader.js
JimiHFord/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalHeader extends React.Component { render() { return ( <div {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> { this.props.closeButton && <button cla...
app/DialogItem.js
yanxyans/dominion
import React from 'react'; import { ListItem } from 'material-ui/List'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import TextField from 'material-ui/TextField'; export default class DialogItem extends React.Component { constructor(props) { super(props); ...
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-router/4.1.1/es/Router.js
JamieMason/npm-cache-benchmark
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _classCallCheck(instance, Constructor) { if (!(insta...
src/withForm/WithForm.js
Elecweb/react-craftform
import React from 'react'; import { validateControl,isObject,bindControlToRule } from './../utils/utils'; const withForm = function(Wrappedcomp,controls, formpropname="form"){ if(!isObject(controls) || Object.keys(controls).length <= 0){ throw new Error('you need to provide controls in secocde parameter'); ...
app/containers/AboutPage/index.js
nypl-spacetime/where
import React from 'react' import { connect } from 'react-redux' import { createSelector } from 'reselect' import Helmet from 'react-helmet' import { selectItem, selectCollections, selectAnimals } from 'containers/App/selectors' import Table from 'components/Table' import Page from 'components/Page' import Foote...
client/client.js
KristinaMatuleviciute/reactapp
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, IndexRoute, hashHistory } from 'react-router'; import Index from './components/Index'; import Profile from './components/Profile'; import Gallery from './components/Gallery'; import Layout from './components/Layout'; im...
src/scenes/home/landing/membership/membership.js
tskuse/operationcode_frontend
import React from 'react'; import Section from 'shared/components/section/section'; import IconCard from 'shared/components/iconCard/iconCard'; import styles from './membership.css'; const Membership = () => ( <Section title="Membership" theme="white"> <div className={styles.intro}> <p> Joining Op-...
app/containers/HomePage.js
lumibloc/tabloc
// @flow import React, { Component } from 'react'; import Home from '../components/Home'; export default class HomePage extends Component { render() { return ( <Home /> ); } }
frontend/src/lib/mui-components/ModalController.js
jf248/scrape-the-plate
import React from 'react'; import * as PowerPlug from 'lib/react-powerplug'; ModalController.defaultProps = { initial: false, }; function ModalController(props) { const { initial } = props; const renderFunc = ({ state, setState }) => { const onOpenWithProps = (props = {}) => { setState({ open: true, ...
public/app.js
josephfinlayson/react-berlin-css-modules
import React from 'react' import ReactDOM from 'react-dom' import { Router, Route } from 'react-router' import injectTapEventPlugin from 'react-tap-event-plugin' import Home from './routes/home' import { IntlProvider, addLocaleData } from 'react-intl' import en from 'react-intl/lib/locale-data/en' addLocaleData(en) // ...
src/injectAce.js
ambassify/react-ace-cdn
import React from 'react'; import loadAce, { available as hasAce } from './load'; export default (Component) => class InjectAce extends React.Component { componentDidMount() { this.mounted = true; if (!hasAce()) loadAce(() => { if (this.mounted) this.forceUpdate(); }); } comp...
ajax/libs/recompose/0.20.1/Recompose.js
sreym/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["Recompose"] = facto...
docs/app/Examples/collections/Table/Variations/TableExampleBasic.js
shengnian/shengnian-ui-react
import React from 'react' import { Table } from 'shengnian-ui-react' const TableExampleBasic = () => ( <Table basic> <Table.Header> <Table.Row> <Table.HeaderCell>Name</Table.HeaderCell> <Table.HeaderCell>Status</Table.HeaderCell> <Table.HeaderCell>Notes</Table.HeaderCell> </Ta...
app/containers/LanguageProvider/index.js
rapicastillo/beautifulrising-client
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector, createStructuredSelector } from 'reselect'; import {...
static/src/components/NotFound.js
idahu29/payment-redis
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as actionCreators from '../actions/auth'; function mapStateToProps(state) { return { token: state.auth.token, userName: state.auth.userName, isAuthenticated: state.auth.is...
app/components/selector/index.js
izonder/weather
// imports Style import Style from './style.pcss'; // imports Base import React from 'react'; export default class Selector extends React.Component { componentDidMount() { this.changeHandler(); } renderOptions() { let {options} = this.props; return options.map((item) => { ...
app/javascript/mastodon/features/reblogs/index.js
vahnj/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 { fetchReblogs } from '../../actions/interactions'; import { ScrollContainer } from ...
node_modules/antd/es/slider/index.js
yhx0634/foodshopfront
import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
src/main/app/src/components/CommentList.js
pugnascotia/spring-react-boilerplate
/* @flow */ import React from 'react'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { refreshComments } from '../data/modules/comments'; import type { Comment as CommentType } from '../data/modules/comments'; import Comment from './Comment'; import './CommentList.less'; type...
src/js/components/map/index.js
Arlefreak/web_client.afk
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { render } from 'react-dom'; let Map; let TileLayer; let Marker; let Popup; let Polyline; let CircleMarker; let ToolTip; class LeafletMap extends Component { constructor(props) { super(props); this.GetPolyLines = ...
ee/client/omnichannel/additionalForms/BusinessHoursMultiple.stories.js
Sing-Li/Rocket.Chat
import React from 'react'; import { Box, Skeleton } from '@rocket.chat/fuselage'; import { BusinessHoursMultiple } from './BusinessHoursMultiple'; export default { title: 'omnichannel/businessHours/ee/BusinessHoursMultiple', component: BusinessHoursMultiple, }; const departmentList = [ [1, 'Support'], [2, 'Marke...
src/static/index.js
samrose3/eventhunt
import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import Root from './containers/Root/Root'; import configureStore from './store/configureStore'; import { browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; const target = document.getEle...
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/SplitButton.js
Akkuma/npm-cache-benchmark
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...
docs/src/pages/components/pagination/PaginationButtons.js
lgollut/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Pagination from '@material-ui/lab/Pagination'; const useStyles = makeStyles((theme) => ({ root: { '& > *': { marginTop: theme.spacing(2), }, }, })); export default function PaginationButtons() { const classes ...
app/routes.js
yesmeck/hotelbar
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './containers/App/App'; import ListPage from './containers/ListPage'; import OutputPage from './containers/OutputPage'; export default ( <Route path="/" component={App}> <IndexRoute component={ListPage} /> <Route pat...
client/app/core/util.js
tyrsius/tuner-react
import React from 'react'; class AutoBindComponent extends React.Component { constructor(...args){ super(...args); debugger; } } React.AutoBindComponent = AutoBindComponent; export default React
src/components/header/Header.js
dbertella/react-hot-reload-starter
import React, { Component } from 'react'; import { Link } from 'react-router'; class Header extends Component { render() { return ( <header id="main_header" className="cf"> <div className="wrapper_wide"> <nav> <ul> <li> <Link to="/">Home</Link> ...
docs/app/Examples/collections/Breadcrumb/index.js
mohammed88/Semantic-UI-React
import React from 'react' import Types from './Types' import Content from './Content' import Variations from './Variations' const BreadcrumbExamples = () => ( <div> <Types /> <Content /> <Variations /> </div> ) export default BreadcrumbExamples
modules/IndexLink.js
clloyd/react-router
import React from 'react' import Link from './Link' const IndexLink = React.createClass({ render() { return <Link {...this.props} onlyActiveOnIndex={true} /> } }) export default IndexLink
src/components/controls/Buttons/ButtonStack.js
TTCErembodegem/TTC-React-Front
import React from 'react'; import PropTypes from '../../PropTypes.js'; import cn from 'classnames'; import MenuItem from 'react-bootstrap/lib/MenuItem'; import DropdownButton from 'react-bootstrap/lib/DropdownButton'; export const ButtonStack = ({small, config, activeView, onClick, id = 'team-view'}) => { if (small)...
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/actual.js
wolfzero1314/ReactDemo
import React from 'react'; const First = React.createNotClass({ displayName: 'First' }); class Second extends React.NotComponent {}
src/styleable.js
splodingsocks/react-styleable
import assign from 'lodash/object/assign' import getDisplayName from './utils/get-display-name' import invariant from 'invariant' import React from 'react' function getSelectorsNotInStylesheet(cssProps, stylesheet) { const propKeys = Object.keys(cssProps) const cssKeys = Object.keys(stylesheet) return propKeys.f...
node_modules/react-router/es6/Redirect.js
mbestwick/medication-search
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { formatPattern } from './PatternUtils'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.st...
src/components/swatches/SwatchesGroup.js
JedWatson/react-color
'use strict' /* @flow */ import React from 'react' import ReactCSS from 'reactcss' import SwatchesColor from './SwatchesColor' export class SwatchesGroup extends ReactCSS.Component { constructor() { super() this.handleClick = this.handleClick.bind(this) } classes(): any { return { 'default...
public/app.js
mifarse/discrete-eltech
import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { Router, Route, IndexRoute, browserHistory } from 'react-ro...
webapp/app/components/ImageManagement/index.js
EIP-SAM/SAM-Solution-Server
// // Image management page main components // import React from 'react'; import { PageHeader } from 'react-bootstrap'; import ListImage from 'containers/ImageManagement/ListImage'; import NewImage from 'containers/ImageManagement/NewImage'; import AddImage from 'containers/ImageManagement/AddImage'; /* eslint-disabl...
app/components/children/dashboard-children/formNode-children/DeleteForm.js
asconwe/formulate
import React from 'react'; import axios from 'axios'; class DeleteForm extends React.Component { constructor() { super(); this.handleCancel = this.handleCancel.bind(this); this.handleClick = this.handleClick.bind(this); } handleClick() { axios.delete(`api/delete/${this....
app/js/containers/Auth.js
jakereps/qiime-studio
// ---------------------------------------------------------------------------- // Copyright (c) 2016-2021, QIIME 2 development team. // // Distributed under the terms of the Modified BSD License. // // The full license is in the file LICENSE, distributed with this software. // -----------------------------------------...
app/javascript/mastodon/components/admin/Counter.js
maa123/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import api from 'mastodon/api'; import { FormattedNumber } from 'react-intl'; import { Sparklines, SparklinesCurve } from 'react-sparklines'; import classNames from 'classnames'; import Skeleton from 'mastodon/components/skeleton'; const percIncrease = (a,...
source/Table/defaultHeaderRenderer.js
cesarandreu/react-virtualized
/** @flow */ import React from 'react' import SortIndicator from './SortIndicator' import type { HeaderRendererParams } from './types' /** * Default table header renderer. */ export default function defaultHeaderRenderer ({ columnData, dataKey, disableSort, label, sortBy, sortDirection }: HeaderRendererP...
src/app/components/team/Languages/index.js
meedan/check-web
import React from 'react'; import { QueryRenderer, graphql } from 'react-relay/compat'; import Relay from 'react-relay/classic'; import PropTypes from 'prop-types'; import LanguagesComponent from './LanguagesComponent'; const renderQuery = ({ error, props }) => { if (!error && props) { return <LanguagesComponent...
src/components/footer/Footer.js
pmachowski/INF-App
import React, { Component } from 'react'; export default class Footer extends Component { render() { return ( <footer className="footer"> <div className="container"> <span className="text">&#9825; coded</span> <span className="spacer">·</span> <span className="text">P...
components/PieChart.js
Jpadilla1/react-native-ios-charts
import React, { Component } from 'react'; import { requireNativeComponent } from 'react-native'; import { globalCommonProps, pieRadarCommonProps, commonDataSetProps } from '../utils/commonProps'; import { processColors } from '../utils/commonColorProps'; const RNPieChart = requireNativeComponent('RNPieChartSw...
app/scripts/MainViews/Playlist.js
nthitz/mashupfm
import React from 'react' import request from 'superagent' import SortableMixin from '../mixins/react-sortable-mixin' import RefluxActions from '../RefluxActions' import GrabButton from '../CommonControls/GrabButton' import RemoveButton from '../CommonControls/RemoveButton' var mediaRoot = '/media/' class Song exten...
src/shared/components/Landing/Landing.js
jferrettiboke/universal-react-boilerplate
import React from 'react'; import Helmet from 'react-helmet'; import Counter from '../../containers/Counter'; export default () => ( <div> <Helmet title="Landing" meta={[ { name: 'description', content: 'Landing' } ]} /> Landing <Counter /> </div> );
docs/app/Examples/elements/Divider/Variations/DividerExampleHidden.js
shengnian/shengnian-ui-react
import React from 'react' import { Divider, Segment } from 'shengnian-ui-react' const DividerExampleHidden = () => ( <Segment> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore... <Divider hidden /> Lorem ipsum dolor sit amet, consectetur adipiscing elit,...
src/entypo/Phone.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Phone'; let EntypoPhone = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M11.229,11.229c-1.583,1.582-3.417,3.096-4.142,2.371c-1.037-1.037-1.677-1.941-3.965-0.102c-2.287,1.838-0...
app/javascript/mastodon/components/status.js
Ryanaka/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Avatar from './avatar'; import AvatarOverlay from './avatar_overlay'; import AvatarComposite from './avatar_composite'; import RelativeTimestamp from './relative_timestamp'; import DisplayNa...
components/JRConf/JRConfCommiteeHeader.js
yudazilian/VisualJusticeTW
import React from 'react'; import ReactDOM from 'react-dom'; import ReactRouter from 'react-router'; export default class JRConfHeader extends React.Component { render() { return ( <header className="row jrcf-header"> <div className="col-md-12 title"> <span>看見思法司法改革國是會議觀測站-委員名單</span> </div> </...
src/views/containers/pages/search_results_page/search_results_page.js
michaelBenin/react-ssr-spa
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Link from 'react-router-dom/Link'; import withRouter from 'react-router/withRouter'; import get from 'lodash/get'; import loadData from './search_results_data_fetch'; import Footer from './../../...
js/DigiApp.js
digisquare/mobile
import React, { Component } from 'react'; import { View, StatusBar, StyleSheet, Platform } from 'react-native'; import { Provider } from 'react-redux'; import store from './reducers'; import { initNotifications } from './actions/settings'; import DigiColors from './common/DigiColors'; import Tabs from './scenes/tab...
app/javascript/flavours/glitch/components/admin/Counter.js
glitch-soc/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import api from 'flavours/glitch/util/api'; import { FormattedNumber } from 'react-intl'; import { Sparklines, SparklinesCurve } from 'react-sparklines'; import classNames from 'classnames'; import Skeleton from 'flavours/glitch/components/skeleton'; const...
src/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
patrisampe/killer-app
import React from 'react'; // 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'; React.render(<HelloWorld />, document.getElementById('react-root'));
public/js/components/comments/Comment.react.js
IsuruDilhan/Coupley
import React from 'react'; import CommentAction from '../../actions/ActivityFeed/CommentAction'; import CommentStore from '../../stores/CommentStore'; import Card from 'material-ui/lib/card/card'; import ListItem from 'material-ui/lib/lists/list-item'; import List from 'material-ui/lib/lists/list'; import Divider from ...
src/password-reset/containers/PasswordResetApp.js
u-wave/web
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { createTheme, ThemeProvider } from '@mui/material/styles'; import { TranslateProvider } from '@u-wave/react-translate'; import { resetPassword } from '../act...
src/app/property/Properties.js
cityofasheville/simplicity2
import React from 'react'; import ButtonGroup from '../../shared/ButtonGroup'; import Button from '../../shared/Button'; import LinkButton from '../../shared/LinkButton'; import PageHeader from '../../shared/PageHeader'; import PropertiesByStreet from './PropertiesByStreet'; import PropertiesByNeighborhood from './Prop...
src/CartItem.js
wlto/shopping-cart
import React from 'react'; const CartItem = (props) => { const item = props.item; return ( <tr> <td>{item.name}</td> <td>{item.quantity}</td> <td><span>$</span>{item.totalPrice.toFixed(2)}</td> <td className="cart-item-remove-btn"> <button onClick={() => props.onRemoveFromCart(i...
src/svg-icons/editor/format-line-spacing.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatLineSpacing = (props) => ( <SvgIcon {...props}> <path d="M6 7h2.5L5 3.5 1.5 7H4v10H1.5L5 20.5 8.5 17H6V7zm4-2v2h12V5H10zm0 14h12v-2H10v2zm0-6h12v-2H10v2z"/> </SvgIcon> ); EditorFormatLineSpacing =...
app/containers/AdminFournisseurInfos/containers/InfosFormContainer.js
Proxiweb/react-boilerplate
import React from 'react'; import PropTypes from 'prop-types'; import { createStructuredSelector } from 'reselect'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { isPristine, change } from 'redux-form'; import { makeSelectPending } from 'containers/App/selectors'; import { ...
src/MultiSelect/MultiSelect.js
nirhart/wix-style-react
import React from 'react'; import InputWithOptions from '../InputWithOptions/InputWithOptions'; import InputWithTags from './InputWithTags'; import last from 'lodash.last'; import difference from 'lodash.difference'; import uniqueId from 'lodash.uniqueid'; import remove from 'lodash.remove'; class MultiSelect extends ...
client/components/FlassCommon/Video/VideoModal/VideoModalCompletedSingleChoice/VideoModalCompletedSingleChoiceComponent.js
Nexters/flass
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import autobind from 'autobind-decorator'; import { CompletedSingleChoice } from './VideoModalCompletedSingleChoiceStyled'; const { shape, bool, string, number } = PropTypes; const propTypes = { singleChoiceValue: shape({ isAnswer:...
cdap-ui/app/cdap/components/CdapHeader/index.js
caskdata/cdap
/* * Copyright © 2016 Cask Data, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
react/features/lobby/components/native/LobbyModeSwitch.js
jitsi/jitsi-meet
// @flow import React from 'react'; import { Switch, View } from 'react-native'; import { translate } from '../../../base/i18n'; import { connect } from '../../../base/redux'; import { DISABLED_TRACK_COLOR, ENABLED_TRACK_COLOR, THUMB_COLOR } from '../../../welcome/components/native/settings/components/sty...
example/index.android.js
Durgaprasad-Budhwani/azure-activedirectory-library-for-react-native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, View, Button } from 'react-native'; import AzureAdal from 'react-native-azure-adal'; const authority = "https://login.windows.net/ariaserver.onmi...
src/js/components/NoMatch.js
holderdeord/hdo-cards
import React from 'react'; export default (props) => <p className="lead text-xs-center">Siden ble ikke funnet.</p>;
docs/src/app/components/pages/components/CircularProgress/ExampleSimple.js
w01fgang/material-ui
import React from 'react'; import CircularProgress from 'material-ui/CircularProgress'; const CircularProgressExampleSimple = () => ( <div> <CircularProgress /> <CircularProgress size={60} thickness={7} /> <CircularProgress size={80} thickness={5} /> </div> ); export default CircularProgressExampleSim...
day14_react_env/src/index.js
eyesofkids/ironman2017
import React from 'react' import ReactDOM from 'react-dom' import App from './App' ReactDOM.render(<App />, document.getElementById('root'))
spec/javascripts/jsx/external_apps/components/ExternalToolPlacementButtonSpec.js
venturehive/canvas-lms
/* * Copyright (C) 2017 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
src/client/feed/SubFeed.js
busyorg/busy
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { withRouter } from 'react-router'; import Cookie from 'js-cookie'; import _ from 'lodash'; import { showPostModal } from '../app/appActions'; import { getFeedContent, getMoreFeedContent } from './feedActions'; ...
server/sonar-web/src/main/js/apps/component-measures/details/history/MeasureHistory.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
front/components/item.js
ssig33/pig-media-server
import React from 'react'; import NewFlag from './new_flag' import {Watch, ChromeCast} from './watch' class CustomLinks extends React.Component{ render(){ return <span dangerouslySetInnerHTML={{__html: this.props.item.custom_links}}/> } } export default class Item extends React.Component { mtime(){ r...
src/components/Feedback/Feedback.js
langpavel/react-starter-kit
/** * 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 withStyles from 'isom...
developers.diem.com/src/theme/DocItem/Pagination/index.js
libra/libra
import React from 'react'; import ArrowLeft from 'img/shared/arrow-left.svg'; import ArrowRight from 'img/shared/arrow-right.svg'; import classnames from 'classnames'; import styles from './styles.module.css'; const Pagination = ({metadata}) => { const previousLink = metadata; if (!metadata.previous && !metadat...
imports/ui/pages/RecoverPassword.js
GreatFallz/base
import React from 'react'; import { Row, Col, Alert, FormGroup, FormControl, Button } from 'react-bootstrap'; import handleRecoverPassword from '../../modules/recover-password'; export default class RecoverPassword extends React.Component { componentDidMount() { handleRecoverPassword({ component: this }); } ...