path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
JotunheimenPlaces/node_modules/react-native/local-cli/templates/HelloNavigation/views/chat/ChatScreen.js | designrad/Jotunheimen-tracking | 'use strict';
import React, { Component } from 'react';
import {
ActivityIndicator,
Button,
ListView,
StyleSheet,
Text,
TextInput,
View,
} from 'react-native';
import KeyboardSpacer from '../../components/KeyboardSpacer';
import Backend from '../../lib/Backend';
export default class ChatScreen extends C... |
src/components/webpack/plain/WebpackPlain.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './WebpackPlain.svg'
/** WebpackPlain */
function WebpackPlain({ width, height, className }) {
return (
<SVGDeviconInline
className={'WebpackPlain' + ' ' + className... |
src/components/filters/lookup.js | thinktopography/reframe | import PropTypes from 'prop-types'
import React from 'react'
import _ from 'lodash'
class LookupPanel extends React.Component {
static propTypes = {
format: PropTypes.function,
label: PropTypes.string,
multiple: PropTypes.bool,
name: PropTypes.string,
options: PropTypes.array,
results: PropT... |
src/js/components/_threads/SetThreadTitlePopup.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import translate from '../../i18n/Translate';
import Input from '../ui/Input';
import FullWidthButton from '../ui/FullWidthButton';
import Framework7Service from '../../services/Framework7Service';
@translate('SetThreadTitlePopup')
export de... |
src/helpers/IsScrolling.js | Sekhmet/busy | /* eslint-disable no-undef */
import React from 'react';
const IsScrollingHoC = TheComponent =>
class IsScrolling extends React.Component {
constructor(props) {
super(props);
this.state = {
isScrolling: false,
};
}
setScrollOn = () => {
if (!this.state.isScrolling) {
this.setState({ ... |
packages/react-devtools-shared/src/devtools/views/ReactLogo.js | chenglou/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import React from 'react';
import styles from './ReactLogo.css';
type Props = {|
className?: string,
|};
export d... |
docs/app/Examples/elements/Reveal/States/index.js | clemensw/stardust | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const RevealStatesExamples = () => (
<ExampleSection title='States'>
<ComponentExample
title='Active'
description='A... |
demos/todomvc/src/components/Todo/index.js | FWeinb/cerebral | import React from 'react'
import classNames from 'classnames'
import { connect } from 'cerebral/react'
import {state, signal, props} from 'cerebral/tags'
export default connect({
todo: state`app.todos.${props`todoRef`}.*`,
todoDoubleClicked: signal`app.todoDoubleClicked`,
newTitleChanged: signal`app.todoNewTitle... |
admin/frontend/pages/groups/list.js | latteware/marble-seed | import React from 'react'
import Link from '~base/router/link'
import moment from 'moment'
import env from '~base/env-variables'
import ListPageComponent from '~base/list-page-component'
import { loggedIn } from '~base/middlewares/'
import CreateGroup from './create'
class GroupsList extends ListPageComponent {
fin... |
src/svg-icons/av/queue-play-next.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvQueuePlayNext = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h2v-2H3V5h18v8h2V5c0-1.11-.9-2-2-2zm-8 7V7h-2v3H8v2h3v3h2v-3h3v-2h-3zm11 8l-4.5 4.5L18 21l3-3-3-3... |
Libraries/Components/Keyboard/Keyboard.js | farazs/react-native | /**
* 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/plugin-hooks/useFilters.js | tannerlinsley/react-table | import React from 'react'
import {
getFirstDefined,
getFilterMethod,
shouldAutoRemoveFilter,
} from '../utils'
import {
actions,
useGetLatest,
functionalUpdate,
useMountedLayoutEffect,
} from '../publicUtils'
import * as filterTypes from '../filterTypes'
// Actions
actions.resetFilters = 'resetFilters... |
packages/material-ui-icons/src/ErrorOutline.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let ErrorOutline = props =>
<SvgIcon {...props}>
<path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.5... |
src/client/js/admin/match/KickEvents.js | GoodBoy123/crendorianinvitational | import React from 'react';
class KickEvents extends React.Component {
constructor(props) {
super(props)
}
render() {
const kickEvents = this.props.kickEvents.map((event, index) => {
return (
<div key={index}>
<label htmlFor={`name${index}`}>Name</label>
<select id={`nam... |
packages/icons/src/md/communication/StopScreenShare.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdStopScreenShare(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M42.44 35.58l4 4H48v-4h-5.56zm1.54-4l.02-20c0-2.22-1.8-4-4-4H14.44L24.9 18.04c.36-.08.72-.14 1.1-.2v-4.26l8 7.46-3.16 2.94 11.08 11.08a3.965 ... |
src/svg-icons/hardware/phone-android.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwarePhoneAndroid = (props) => (
<SvgIcon {...props}>
<path d="M16 1H8C6.34 1 5 2.34 5 4v16c0 1.66 1.34 3 3 3h8c1.66 0 3-1.34 3-3V4c0-1.66-1.34-3-3-3zm-2 20h-4v-1h4v1zm3.25-3H6.75V4h10.5v14z"/>
</SvgIcon>
... |
examples/todo/js/components/TodoListFooter.js | gabelevi/relay | /**
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNES... |
src/decorators/withViewport.js | bbonny/movie-matching | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default si... |
components/CellDatePicker.js | lodev09/react-native-cell-components | import React from 'react';
import PropTypes from 'prop-types';
import DatePicker from './DatePicker';
import Cell from './Cell';
import {
View
} from 'react-native';
class CellDatePicker extends React.Component {
static defaultProps = {
mode: 'datetime',
date: new Date()
}
static proptTypes = {
... |
src/pages/paper/review/paperReview/selectPoint.js | sunway-official/acm-admin | import React, { Component } from 'react';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
import { Field } from 'redux-form';
const renderSelectField = ({
input,
label,
meta: { touched, error },
children,
...custom
}) => (
<SelectField
floatingLabelText={... |
src/app/Day.js | DictumMortuum/dictum | /*eslint no-console: "off"*/
import React from 'react'
import {Card, CardHeader, CardText} from 'material-ui/Card'
import DictumDoc from './Doc'
export default class DictumDay extends React.Component {
constructor(props) {
super(props)
this.state = {
docs: props.docs,
date: props.date,
ex... |
src/utils/CustomPropTypes.js | adampickeral/react-bootstrap | import React from 'react';
import warning from 'react/lib/warning';
import childrenToArray from './childrenToArray';
const ANONYMOUS = '<<anonymous>>';
/**
* Create chain-able isRequired validator
*
* Largely copied directly from:
* https://github.com/facebook/react/blob/0.11-stable/src/core/ReactPropTypes.js#L9... |
client/src/components/UsedOnTable/tests/UsedOnTable-story.js | silverstripe/silverstripe-admin | import React from 'react';
// eslint-disable-next-line import/no-extraneous-dependencies
import { storiesOf } from '@storybook/react';
import { Component as UsedOnTable } from 'components/UsedOnTable/UsedOnTable';
storiesOf('Admin/UsedOnTable', module)
.add('Loading state', () => (
<UsedOnTable loading />
))
... |
loc8-react-redux-front-end/src/components/Article/ArticleMeta.js | uberslackin/django-redux-loc8-ARweb | import ArticleActions from './ArticleActions';
import { Link } from 'react-router';
import React from 'react';
const ArticleMeta = props => {
const article = props.article;
return (
<div className="article-meta">
<Link to={`@${article.author.username}`}>
<img src={article.author.image} />
<... |
app/components/MoveableList.js | oeb25/colio | import React from 'react';
import assign from 'object-assign';
import Spring from 'react-motion';
import MoveableListItem from './MoveableListItem'
export default class MoveableList extends React.Component {
constructor() {
super();
this.height = 0;
}
getStyles() {
return {
list: {
pos... |
src/containers/Root.js | dfala/high-club | import React from 'react'
import { Provider } from 'react-redux'
import { Router } from 'react-router'
export default class Root extends React.Component {
static propTypes = {
history: React.PropTypes.object.isRequired,
routes: React.PropTypes.element.isRequired,
store: React.PropTypes.object.isRequired
... |
src/components/site-header/site-header.js | jl-/bronote | import React from 'react';
import CLSNS from 'classnames';
import './site-header.scss';
class SiteHeader extends React.Component {
render() {
var wrapperClsn = CLSNS('site-header', 'site-header--dark');
var navItemClsn = CLSNS('site-header__nav-item');
return (
<div className={wrapperClsn}>
... |
src/js/components/Dashboard/ConfirmLayer.js | grommet/grommet-cms-boilerplate | import React from 'react';
import Layer from 'grommet/components/Layer';
import Form from 'grommet/components/Form';
import Header from 'grommet/components/Header';
import FormFields from 'grommet/components/FormFields';
export default function ConfirmLayer(props) {
return (
<Layer onClose={props.onClose} close... |
src/components/Icons/YouTube/index.js | jmikrut/keen-2017 | import React from 'react';
import '../icons.css';
const YouTube = (props) => {
this.color = props.color ? props.color : '#4df7ca';
return (
<svg className="youtube" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40">
<path fill={this.color} d="M37.63,13.08A44.14,44.14,0,0,1,38,18.8v2.61l-.37,5.71a7.73,7.... |
src/main.js | sonofbjorn/circle-ci-test | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import './styles/main.scss'
// Store Initialization
// ------------------------------------
const store = createStore(window.__INITIAL_STATE__)
// Render Setup
// ------------------------------------
const MOUNT_N... |
src/routes/app.js | vincentdd/crm | /* global window */
import React from 'react'
import NProgress from 'nprogress'
import PropTypes from 'prop-types'
import pathToRegexp from 'path-to-regexp'
import { connect } from 'dva'
import { Layout, Loader } from 'components'
import { classnames, config } from 'utils'
import { Helmet } from 'react-helmet'
import '... |
src/components/DrawerLayoutAndroid.js | lelandrichardson/react-native-mock | /**
*https://github.com/facebook/react-native/blob/master/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js
*/
import React from 'react';
import NativeMethodsMixin from '../mixins/NativeMethodsMixin';
import View from './View';
import UIManager from '../NativeModules/UIManager';
import ColorPropType f... |
src/packages/@ncigdc/theme/icons/Download.js | NCI-GDC/portal-ui | // @flow
import React from 'react';
export default ({ className = '', ...props }) => (
<i className={`${className} fa fa-download`} {...props} />
);
|
app/javascript/mastodon/features/report/components/status_check_box.js | riku6460/chikuwagoddon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Toggle from 'react-toggle';
import noop from 'lodash/noop';
import StatusContent from '../../../components/status_content';
import { MediaGallery, Video } from '../../ui/util/async-component... |
modules/folder/client/routes/folder.client.menuBAK.js | dimitriaguera/playlist-app | /**
* Created by Dimitri Aguera on 21/09/2017.
*/
import React from 'react';
import { NavLink } from 'react-router-dom';
export const menuItems = [
{
component: () => (
<NavLink to="/folder" activeClassName="nav-selected">
Folder
</NavLink>
),
menuId: 'main'
}
];
|
tests/react_native_tests/test_data/native_code/SVGComponent/app/components/UserConnect/index.js | ibhubs/sketch-components | /**
* @flow
*/
import React from 'react'
import PropTypes from 'prop-types'
import { observer } from 'mobx-react/native'
import styles from './styles'
import UserConnect from './component'
@observer
class UserConnectWrapper extends React.Component {
render() {
return (
<UserConnect
{...this.prop... |
geonode/contrib/monitoring/frontend/src/components/cels/cpu/index.js | timlinux/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend } from 'recharts';
import styles from './styles';
class CPU extends React.Component {
static propTypes = {
data: PropTypes.array.isRequired,
}
render() {
return (
... |
src/containers/hoc-twitter.js | MoveOnOrg/mop-frontend | import React from 'react'
import PropTypes from 'prop-types'
import { petitionShortCode } from '../lib'
export function withTwitter(WrappedComponent) {
class Twitter extends React.Component {
constructor(props) {
super(props)
this.getTweet = this.getTweet.bind(this)
this.shareTwitter = this.sha... |
Website/src/pages/Static/contact.js | ameyjain/WallE- | import React, { Component } from 'react';
import { ContactContent } from '../../components/Contact';
export default class Contact extends Component {
render() {
return (
<div>
<ContactContent/>
</div>
);
}
}
|
app/containers/Home/HomeContainer.js | StuartPearlman/duckr | import React from 'react'
import { Home } from 'components'
const HomeContainer = React.createClass({
render () {
return (
<Home />
)
},
})
export default HomeContainer
|
src/components/views/auth/VectorAuthPage.js | vector-im/riot-web | /*
Copyright 2019, 2020 New Vector Ltd
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 in writing, sof... |
src/Lumines.js | tobice/flux-lumines | import React from 'react';
import Immutable from 'immutable';
import {Dispatcher} from 'flux';
import styles from './styles/styles.less';
import debug from './misc/debug.js';
import State from './misc/State.js';
import GameInterface from './components/GameInterface.js';
import ConfigStore from './stores/ConfigStore.j... |
js/components/about/index.js | marcpechaitis/ForestWatch | import React, { Component } from 'react';
import { Platform } from 'react-native';
import { connect } from 'react-redux';
import { Actions } from 'react-native-router-flux';
import {
Card,
Container,
Header,
Title,
Content,
Text,
Button,
Icon,
Left,
Body,
Right
} from 'native-base';
import { open... |
src/js/components/PostFeedItem/index.js | grommet/grommet-cms-boilerplate | /* @flow */
import React from 'react';
import Box from 'grommet/components/Box';
import Anchor from 'grommet/components/Anchor';
import Heading from 'grommet/components/Heading';
import Section from 'grommet/components/Section';
import Label from 'grommet/components/Label';
import { formatPrettyDate } from 'grommet-cms... |
ExampleApp/index.android.js | joonhocho/react-native-linkedin-sdk | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableHighlight
} from 'react-native';
import LinkedInSDK from 'react-native-linkedin-sdk';
export default class ExampleApp exten... |
app/javascript/mastodon/features/favourites/index.js | glitch-soc/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { fetchFavourit... |
src/views/components/RoomsScreen.js | physiii/home-gateway | import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {compose} from 'redux';
import {Switch, Redirect} from 'react-router-dom';
import {Route, withRoute} from './Route.js';
import NavigationScreen from './NavigationScreen.js';
import List from './List.js';
import Bl... |
app/javascript/src/components/charts/pie.js | michelson/chaskiq | import React from 'react'
import { ResponsivePie } from '@nivo/pie'
// make sure parent container have a defined height when using
// responsive component, otherwise height will be 0 and
// no chart will be rendered.
// website examples showcase many properties,
// you'll often use just a few of them.
export default f... |
Libraries/Components/MapView/MapView.js | nickhudkins/react-native | /**
* 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... |
examples/cra-storybook/src/stories/Button.js | shilman/storybook | import React from 'react';
import PropTypes from 'prop-types';
const buttonStyles = {
border: '1px solid #eee',
borderRadius: 3,
backgroundColor: '#FFFFFF',
cursor: 'pointer',
fontSize: 15,
padding: '3px 10px',
margin: 10,
};
const Button = ({ children, onClick }) => (
<button style={buttonStyles} onC... |
app/components/newDefinitionWindow/ButtonToggle.js | sedooe/cevirgec | import React, { Component } from 'react';
import {Button} from 'semantic-ui-react';
import tr from '../../utils/Translation';
export default class ButtonToggle extends Component {
state = {}
handleClick = () => {
this.setState({ active: !this.state.active });
if (typeof this.props.onToggle == 'function') ... |
src/js/components/SwitchStation.js | ilken/LinkinParkRadio | import React from 'react';
import Station from './Station';
import StationData from '../data/StationData';
import * as Actions from '../actions/Actions';
export default class SwitchStation extends React.Component {
render () {
const inactiveStations = StationData.getInstance().getInactiveStations();
const Station... |
src/routes/profile/index.js | devcharleneg/twitter-react-app | import React from 'react';
import Profile from './Profile';
import Layout from '../../components/Layout';
const title = 'Profile';
function action() {
return {
title,
component: (
<Layout>
<Profile title={title} />
</Layout>
),
};
}
export default action;
|
src/FormsyToggle/FormsyToggle.spec.js | st-andrew/formsy-mui | import 'jsdom-global/register';
import React from 'react';
import PropTypes from 'prop-types';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import {Form} from 'formsy-react-2';
import Enzyme, { mount } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import Toggle from 'material-ui/Toggle'... |
src/components/Form/Input/index.js | ChluNetwork/chlu-demo | import React from 'react'
import PropTypes from 'prop-types'
import { withStyles, TextField } from '@material-ui/core';
function FormInput(props) {
const { input, meta: { touched, error }, ...others } = props
const hasError = touched && error
return <TextField
error={hasError && error}
{...input}
{... |
src/components/DriverDetailView.js | fkoester/tachograph-app | import React from 'react';
import {
ScrollView,
View,
Text,
TextInput,
StyleSheet,
TouchableOpacity,
Image,
Dimensions,
Alert,
} from 'react-native';
import { connect } from 'react-redux';
import Icon from 'react-native-vector-icons/FontAwesome';
import AwesomeButton from 'react-native-awesome-button'... |
packages/material-ui-icons/src/SettingsBluetooth.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><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.29 4.3-4.29zM13 3.83l1.88 1.88L13 7.59V3.83zm1.88 10.46L... |
examples/huge-apps/app.js | MattSPalmer/react-router | import React from 'react';
import { Router } from 'react-router';
import stubbedCourses from './stubs/COURSES';
var rootRoute = {
component: 'div',
childRoutes: [{
path: '/',
component: require('./components/App'),
childRoutes: [
require('./routes/Calendar'),
require('./routes/Course'),
... |
lib/react-native-flat-list/FlatList.js | lelandrichardson/react-native-in-depth | /**
* 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.
*
* @flow
*/... |
app/javascript/mastodon/components/column.js | dunn/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import detectPassiveEvents from 'detect-passive-events';
import { scrollTop } from '../scroll';
export default class Column extends React.PureComponent {
static propTypes = {
children: PropTypes.node,
label: PropTypes.string,
bindToDocument:... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ClassProperties.js | GreenGremlin/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
export default class extends Component {
static propTyp... |
template/src/index.js | patrickmarabeas/react-docker-dev-env | import React from 'react'
import ReactDOM from 'react-dom'
import { AppContainer } from 'react-hot-loader'
import App from './App'
const render = Component => {
ReactDOM.render(
<AppContainer>
<Component />
</AppContainer>,
document.getElementById('root')
)
}
render(App)
if (module.hot) {
mo... |
web/src/components/profile/ProfileDetail.js | fmiglianico/HaveYouMet | import React, { Component } from 'react';
import { connect } from 'react-redux'
import { withRouter } from 'react-router-dom'
import ProfileActionCreator from '../../actions/ProfileActionCreator';
import store from '../../stores/Store';
class ProfileDetail extends Component {
componentWillMount() {
this.initProfi... |
web/app/components/pages/StatPage.js | sunkeyhub/jedi_monitor | import React, { Component } from 'react';
import TopbarSection from '../sections/stat/TopbarSection';
import SidebarSection from '../sections/stat/SidebarSection';
export default class StatPage extends Component {
render() {
var minHeight = window.innerHeight - 110;
return (
<div class... |
react/features/local-recording/components/LocalRecordingInfoDialog.js | gpolitis/jitsi-meet | // @flow
import moment from 'moment';
import React, { Component } from 'react';
import type { Dispatch } from 'redux';
import { Dialog } from '../../base/dialog';
import { translate } from '../../base/i18n';
import {
PARTICIPANT_ROLE,
getLocalParticipant
} from '../../base/participants';
import { connect } fr... |
index/containers/Root.prod.js | JDRomano2/VenomKB | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import createHistory from 'history/createBrowserHistory';
import { ConnectedRouter } from 'react-router-redux';
import App from '../components/App';
const history = createHistory();
export default class Root extends Component {
ren... |
server/priv/js/components/Bench.react.js | avasenin/mzbench | import React from 'react';
import BenchStore from '../stores/BenchStore';
import BenchNav from './BenchNav.react';
import BenchOverview from './BenchOverview.react';
import BenchGraphs from './BenchGraphs.react';
import BenchReports from './BenchReports.react';
import BenchScenario from './BenchScenario.react';
import... |
src/containers/Home/Home.js | quicksnap/react-redux-universal-hot-example | import React, { Component } from 'react';
import { Link } from 'react-router';
import { CounterButton, GithubButton } from 'components';
import config from '../../config';
export default class Home extends Component {
render() {
const styles = require('./Home.scss');
// require the logo image both from clien... |
src/svg-icons/action/timeline.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTimeline = (props) => (
<SvgIcon {...props}>
<path d="M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07... |
src/MainView.js | lmylr/lmylr.github.io | import React from 'react';
import Paper from 'material-ui/Paper';
const styles = {
root:{
width: '100%',
height: '100%',
position: 'absolute',
color: '#ffffff',
},
bg: {
},
content:{
width: '100%',
textAlign: 'center',
left: 0,
top: 0,
padding: 16,
paddingTop: 100,
position: 'absolute',
},... |
src/components/header/header.js | HendrikCrause/crossword-creator | import React from 'react'
import AppBar from 'material-ui/AppBar'
import { APP_NAME } from '../../constants'
class Header extends React.Component {
render() {
return (
<AppBar
title={APP_NAME}
showMenuIconButton={false}
/>
)
}
}
export default Header
|
examples/js/pagination/demo.js | opensourcegeek/react-bootstrap-table | import React from 'react';
import DefaultPaginationTable from './default-pagination-table';
import CustomPaginationTable from './custom-pagination-table';
import PaginationHookTable from './pagination-hook-table';
class Demo extends React.Component {
render() {
return (
<div>
<div className="col-md... |
react/friendList/src/containers/App.js | kelvinji2009/learning_and_practice | import React, { Component } from 'react';
import { combineReducers } from 'redux';
import { Provider } from 'react-redux';
import { createStore, renderDevTools } from '../utils/devTools';
import FriendListApp from './FriendListApp';
import * as reducers from '../reducers';
const reducer = combineReducers(reducers);
... |
components/admin/tools/table/actions/EditAction.js | resource-watch/resource-watch | import React from 'react';
import PropTypes from 'prop-types';
import Link from 'next/link';
// Utils
import { substitution } from 'utils/utils';
class EditAction extends React.Component {
getParsedParams() {
const { data, action } = this.props;
return JSON.parse(substitution(JSON.stringify(action.params),... |
docs/app/Examples/elements/Button/Types/ButtonExampleBasic.js | koenvg/Semantic-UI-React | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleBasic = () => (
<div>
<Button basic>Standard</Button>
<Button basic color='red'>Red</Button>
<Button basic color='orange'>Orange</Button>
<Button basic color='yellow'>Yellow</Button>
<Button basic color='olive... |
examples/express/src/app.js | aranja/tux | import React from 'react'
import { createApp } from 'tux'
const app = createApp()
app.use(<h1>Hello world</h1>)
export default app
|
app/components/HomePage/index.js | OrenElad/picashare | /**
* Created by oren on 15/12/2016.
*/
import React from 'react';
import ReactPlayer from 'react-player';
class Header extends React.Component { // eslint-disable-line react/prefer-stateless-function
constructor(props) {
super(props);
this.state = { };
}
render() {
return (
<div style={{ ... |
renderer/components/Icon/BoltOnboarding.js | LN-Zap/zap-desktop | import React from 'react'
const SvgBoltOnboarding = props => (
<svg height="1em" viewBox="0 0 152 307" width="1em" {...props}>
<path
d="M142 98.235v-1.788L150.398 84h-83.06a.5.5 0 0 1-.414-.78l56-83a.5.5 0 0 1 .83.56L68.278 83h83.06a.5.5 0 0 1 .414.78L142 98.235zM30.238 263.5L.914 306.792a.5.5 0 1 1-.828-.... |
app/containers/HomePage.js | yashprit/mongoment | import React, { Component } from 'react';
import Home from '../components/Home';
export default class HomePage extends Component {
render() {
return (
<Home />
);
}
}
|
src-admin/src/Tabs/Background.js | ioBroker/ioBroker.admin | import React, { Component } from 'react';
import { withStyles } from '@material-ui/core/styles';
import PropTypes from 'prop-types';
import Dropzone from 'react-dropzone';
import I18n from '@iobroker/adapter-react/i18n';
import CustomCheckbox from '../Components/CustomCheckbox';
import CustomInput from '../Components... |
packages/neos-ui-validators/src/Uuid/index.js | dimaip/neos-ui | import React from 'react';
import I18n from '@neos-project/neos-ui-i18n';
/**
* Checks if the given value is a valid Uuid
*/
const Uuid = value => {
if (value.length !== 0 && value.match(/([a-f0-9]){8}-([a-f0-9]){4}-([a-f0-9]){4}-([a-f0-9]){4}-([a-f0-9]){12}/) === null) {
return <I18n id="content.inspect... |
app/components/GamesPage.js | mzanini/DeeMemory | import React from 'react'
import AllGamesList from '../containers/AllGamesList'
import NewGameNameInput from '../containers/NewGameNameInput';
const GamesPage = () => {
return (
<React.Fragment>
<AllGamesList/>
<NewGameNameInput/>
</React.Fragment>
)
}
export default GamesPage |
src/Pagination.js | lo1tuma/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import PaginationButton from './PaginationButton';
const Pagination = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
activePage: React.PropTypes.number,
items: React.PropTypes.number,... |
src/scripts/pages/ProjectConfigs.page.js | kodokojo/kodokojo-ui | import React from 'react'
import { connect } from 'react-redux'
import { compose } from 'redux'
import { browserHistory } from 'react-router'
import { intlShape, injectIntl, FormattedMessage } from 'react-intl'
// Component commons
import 'kodokojo-ui-commons/src/styles/_commons.less'
import utilsTheme from 'kodokojo-... |
react/features/base/react/components/native/Pressable.js | bgrozev/jitsi-meet | // @flow
import React, { Component } from 'react';
import { TouchableWithoutFeedback } from 'react-native';
/**
* The type of the React {@link Component} props of {@link Pressable}.
*/
type Props = {
children: React$Node,
/**
* Called when the touch is released, but not if cancelled (e.g. by a scroll
... |
ajax/libs/react-instantsearch/4.1.3/Dom.js | jonobr1/cdnjs | /*! ReactInstantSearch 4.1.3 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.... |
src/svg-icons/device/brightness-medium.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBrightnessMedium = (props) => (
<SvgIcon {...props}>
<path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6... |
src/components/Drawer/index.js | wpcfan/hello-react | import React from 'react';
import './style.css';
const Drawer = () => (
<div className="mdl-layout__drawer">
<span className="mdl-layout-title">Title</span>
<nav className="mdl-navigation">
<a className="mdl-navigation__link" href="">Link</a>
<a className="mdl-navigation__link" href="">Link</a>
... |
examples/all-possible-containers/src/components/ConnectedChildrenAFComponent.js | gaearon/react-hot-loader | import React from 'react';
import ChildrenAsFunctionComponent from './ChildrenAsFunctionComponent';
import { connect } from '../context';
import { EDIT_ME } from './_editMe';
const ConnectedChildrenAFComponent = ({ consumedValue }) => (
<ChildrenAsFunctionComponent>
{value => (
<fieldset>
<legend>
... |
demos/demo/src/components/Project/Input.js | idream3/cerebral | import React from 'react'
import {connect} from 'cerebral/react'
import {props, signal, state} from 'cerebral/tags'
import translations from '../../common/computed/translations'
export default connect(
{
// autoFocus
enterPressed: signal`projects.enterPressed`,
escPressed: signal`projects.escPressed`,
... |
docs/src/app/components/pages/customization/StylesOverridingInlineExample.js | hai-cea/material-ui | import React from 'react';
import Checkbox from 'material-ui/Checkbox';
const StylesOverridingInlineExample = () => (
<Checkbox
name="StylesOverridingInlineExample"
label="Checked the mail"
style={{
width: '50%',
margin: '0 auto',
border: '2px solid #FF9800',
backgroundColor: '#ff... |
src/components/common/svg-icons/maps/navigation.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsNavigation = (props) => (
<SvgIcon {...props}>
<path d="M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71z"/>
</SvgIcon>
);
MapsNavigation = pure(MapsNavigation);
MapsNavigation.displayName = 'MapsNavigation';
... |
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | jquiterio/jquiterio.github.io | 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'));
|
resources/assets/js/index.js | imgrbs/brownbag2017 | import React from 'react';
import ReactDom from 'react-dom';
import App from './app.jsx';
ReactDom.render(<App />, document.getElementById('root'));
|
docs/src/app/components/pages/components/LinearProgress/ExampleSimple.js | ruifortes/material-ui | import React from 'react';
import LinearProgress from 'material-ui/LinearProgress';
const LinearProgressExampleSimple = () => (
<LinearProgress mode="indeterminate" />
);
export default LinearProgressExampleSimple;
|
admin/client/components/ItemsTable/ItemsTableDragDropZoneTarget.js | tony2cssc/keystone | import React from 'react';
import { DropTarget } from 'react-dnd';
import CurrentListStore from '../../stores/CurrentListStore';
let timeoutID = false;
// drop target
var ItemsTableDragDropZoneTarget = React.createClass({
displayName: 'ItemsTableDragDropZoneTarget',
propTypes: {
className: React.PropTypes.string,... |
src/parser/monk/mistweaver/modules/talents/RisingMist.js | sMteX/WoWAnalyzer | import React from 'react';
import { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import { formatNumber, formatPercentage } from 'common/format';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import SPELLS from 'common/SPELLS';
import Analyzer from 'parser/core/Analyzer';
import Abil... |
app/jsx/shared/StudentGroupFilter.js | djbender/canvas-lms | /*
* Copyright (C) 2019 - 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... |
05_react_redux_server/client/Router.js | maximenajim/Universal-JavaScript-with-React-Node-and-Redux | /* global window, document */
import React from 'react';
import ReactDOM from 'react-dom';
import { renderToString, renderToStaticMarkup} from 'react-dom/server';
import { Router, match, RouterContext, browserHistory } from 'react-router';
import { Provider } from 'react-redux';
import routes from './Routes';
import Te... |
stories/ButtonSelection/ExampleControlled.js | skyiea/wix-style-react | import React from 'react';
import ButtonSelection from 'wix-style-react/ButtonSelection';
const style = {
display: 'inline-block',
padding: '0 5px',
width: '200px',
lineHeight: '22px',
marginTop: '10px'
};
class ControlledButtonSelection extends React.Component {
constructor(props) {
super(props);
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.