path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
Realization/frontend/czechidm-core/src/content/audit/identity/AuditIdentityLoginTable.js | bcvsolutions/CzechIdMng | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import moment from 'moment';
//
import * as Utils from '../../../utils';
import * as Basic from '../../../components/basic';
import * as Advanced from '../../../components/advanced';
import { AuditManager } from '../..... |
frontend/src/Components/Router/Switch.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { Switch as RouterSwitch } from 'react-router-dom';
import { map } from 'Helpers/elementChildren';
import getPathWithUrlBase from 'Utilities/getPathWithUrlBase';
class Switch extends Component {
//
// Render
render() {
con... |
src/main.js | morgangiraud/react-chat | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, hashHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import { Provider } from 'react-redux';
import MuiThemeProvider from 'material-ui/lib/MuiThemeProvider';
import injectTapEventPlugin from 'react-tap-... |
src/client/todos/todo.react.js | gaearon/este | import * as actions from './actions';
import Component from '../components/component.react';
import Editable from '../components/editable.react';
import React from 'react';
import immutable from 'immutable';
class Todo extends Component {
onEditableSave(todo, title, hide) {
actions.saveTitle(todo.id, title).the... |
src/svg-icons/device/battery-charging-80.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryCharging80 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V9h4.93L13 7v2h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9L11... |
analysis/druidguardian/src/modules/features/FrenziedRegenGoEProcs.js | anom0ly/WoWAnalyzer | import { formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS';
import { SpellIcon } from 'interface';
import Analyzer from 'parser/core/Analyzer';
import BoringValueText from 'parser/ui/BoringValueText';
import Statistic from 'parser/ui/Statistic';
import STATISTIC_ORDER from 'parser/ui/STATISTIC... |
src/components/theme-legacy/error500.js | MoveOnOrg/mop-frontend | import React from 'react'
// See /docs/EXPLANATION--error-handling.md for how errors can be shown
export const Error500 = () => (
<div className='container background-moveon-white bump-top-1'>
<div className='row'>
<div className='span6 offset3'>
<div className='well'>
<h1 className='lege... |
src/Actions.js | FaridSafi/react-native-gifted-messenger | /* eslint no-use-before-define: ["error", { "variables": false }] */
import PropTypes from 'prop-types';
import React from 'react';
import { StyleSheet, Text, TouchableOpacity, View, ViewPropTypes } from 'react-native';
import Color from './Color';
export default class Actions extends React.Component {
constructor... |
client/modules/auth/Profile/Profile.js | ncrmro/reango | /* eslint-disable jsx-a11y/href-no-hash */
import React from 'react';
import { Grid, Cell, Textfield, Button } from 'react-mdl';
import Page from '../../../components/Page/PageComponent';
import RequireAuth from '../RequireAuth/RequireAuth';
import styles from './Profile.scss';
class Profile extends React.Component {... |
examples/normalization/src/components/SingleTweet.js | lore/lore | import React from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
import { connect } from 'lore-hook-connect';
import PayloadStates from '../constants/PayloadStates';
import Tweet from './Tweet';
export default connect(function(getState, props){
return {
tweet: get... |
example/index.android.js | brh55/react-native-masonry | import React, { Component } from 'react';
import {
AppRegistry
} from 'react-native';
import example from './App/Container/app';
AppRegistry.registerComponent('example', () => example);
|
components/PageHeader.js | turntwogg/esports-aggregator | import React from 'react';
import classNames from 'classnames';
import { Container } from '@turntwo/react-ui';
import Heading from './Heading';
import { useTheme } from '@turntwo/react-ui';
const PageHeader = ({
children,
flex,
flexCenter,
flexMobile,
noFlex,
title,
...rest
}) => {
const theme = useT... |
react-flux-mui/js/material-ui/src/svg-icons/hardware/keyboard-hide.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardHide = (props) => (
<SvgIcon {...props}>
<path d="M20 3H4c-1.1 0-1.99.9-1.99 2L2 15c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 3h2v2h-2V6zm0 3h2v2h-2V9zM8 6h2v2H8V6zm0 3h2v2H8V9zm-1 2H... |
src/routes/home/index.js | Tim-Thomas/beer-board | /**
* 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 Home from './Home';
i... |
src/components/MainLayout.js | W01fw00d/w01fw00d_portfolio | import React, { Component } from 'react';
import { BrowserRouter, Switch, Route} from 'react-router-dom';
import AppHeader from './AppHeader';
import ProfessionalPage from './ProfessionalPage';
import TechsPage from './TechsPage';
import '../stylesheets/MainLayout.css';
class MainLayout extends Component {
compo... |
docs/app/Examples/elements/Button/Types/ButtonExampleIcon.js | ben174/Semantic-UI-React | import React from 'react'
import { Button, Icon } from 'semantic-ui-react'
const ButtonExampleIcon = () => (
<Button icon>
<Icon name='world' />
</Button>
)
export default ButtonExampleIcon
|
example/examples/AnimatedNavigation.js | lelandrichardson/react-native-maps | import React, { Component } from 'react';
import { View, StyleSheet, TouchableOpacity, Text } from 'react-native';
import MapView from 'react-native-maps';
import carImage from './assets/car.png';
export default class NavigationMap extends Component {
constructor(props) {
super(props);
this.state = {
... |
Native/moiveList/index.ios.js | renxlWin/React-Native_Demo | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
Image,
ListView,
StyleSheet,
Text,
View
} from 'react-native';
var REQUEST_URL = 'https://raw.githubusercontent.com/facebook/react-native/master/docs/Movi... |
app/containers/Home/index.js | audoralc/pyxis | /*
*
* Home
*
*/
import React from 'react';
import Helmet from 'react-helmet';
import HomeHeadingContainer from 'components/HomeHeadingContainer';
import ExampleBoxes from 'components/ExampleBoxes';
import TierSystem from 'components/TierSystem';
import HowItWorks from 'components/HowItWorks';
import HomeSignUpRi... |
public/src/components/LandingIndex/LandingIndex.react.js | hugonasciutti/Challenge | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { CircularProgress, RaisedButton } from 'material-ui';
import { findShotById, getShots, openModal, updateImgClick, getUser, defineTokenRedux, getLike } from '../../actions/index';
import Modal from '../Modal/Mod... |
src/components/Markdown/index.js | jonahjoughin/blog.jough.in | import React from 'react';
import marked from '../../parser';
import addFirstLastProps from '../../utilities/addFirstLastProps';
const MarkdownOuter = ({text}) => (
<MarkdownInner>
{marked(text)}
</MarkdownInner>
);
const MarkdownInner = ({children}) => (
<div>
{addFirstLastProps(children)}
</div>
);
... |
packages/generator-fluxible/app/templates/components/Nav.js | pablolmiranda/fluxible | import React from 'react';
import { NavLink } from 'fluxible-router';
class Nav extends React.Component {
render() {
const selected = this.props.currentRoute;
const links = this.props.links;
const linkHTML = Object.keys(links).map((name) => {
var className = '';
var... |
modules/IndexRoute.js | ArmendGashi/react-router | import React from 'react'
import invariant from 'invariant'
import warning from 'warning'
import { createRouteFromReactElement } from './RouteUtils'
import { component, components, falsy } from './PropTypes'
const { bool, func } = React.PropTypes
/**
* An <IndexRoute> is used to specify its parent's <Route indexRout... |
src/Parser/Monk/Brewmaster/Modules/Core/HealingReceived.js | enragednuke/WoWAnalyzer | import React from 'react';
import { formatThousands, formatNumber } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
class HealingReceived extends Analyzer {
HealingReceivedExternal = 0;
HealingReceivedSelf = 0;
on_initialized()... |
src/components/Accordion.js | mikebarkmin/gestyled | import React from 'react';
import styled from 'styled-components';
import LabeledContainer from './LabeledContainer';
import PropTypes from 'prop-types';
import withStyle from './Base';
import Paper from './Paper';
const StyledAccordion = styled(Paper)`
box-sizing: border-box;
width: 100%;
border: 1px solid #ddd... |
index.js | itinance/react-native-ikon | 'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Image, Platform, Dimensions, StyleSheet, TouchableOpacity } from 'react-native';
const IMG_CENTER_MODE = Platform.OS === 'ios' ? 'center' : 'contain';
export class Ikon extends Component {
constructor(props) {
... |
src/components/FlatList.js | Root-App/react-native-mock-render | import React from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
import VirtualizedList from './VirtualizedList';
import ScrollView from './ScrollView';
import styleSheetPropType from '../propTypes/StyleSheetPropType';
import View from './View';
import ViewStylePropTypes... |
src/components/Header.js | dave-89/react-template | import React from 'react';
class Header extends React.Component {
constructor(props) {
super(props);
this.state = {
title : this.props.title
};
}
render() {
return(
<div className="Header">{this.state.title}</div>
);
}
}
export default Header;
|
src/pages/NewSensor/TabContainer.js | sussol/mobile | import React from 'react';
import PropTypes from 'prop-types';
import { View } from 'react-native';
import { BLUE_WHITE } from '../../globalStyles';
export const TabContainer = ({ children }) => <View style={localStyles.container}>{children}</View>;
TabContainer.propTypes = { children: PropTypes.node.isRequired };
c... |
app/react-icons/fa/calendar-times-o.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaCalendarTimesO extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m26.3 30.9l-1 1q-0.2 0.2-0.5 0.2t-0.5-0.2l-4.2-4.2-4.2 4.2q-0.2 0.2-0... |
packages/ringcentral-widgets/components/ReplyWithMessage/index.js | u9520107/ringcentral-js-widget | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import isBlank from 'ringcentral-integration/lib/isBlank';
import Button from '../Button';
import styles from './styles.scss';
import i18n from './i18n';
const CALL_YOU = 0;
const CALL_ME = 1;
const ON_... |
public/js/cat_source/es6/components/outsource/AssignToTranslator.js | Ostico/MateCat | import React from 'react'
import GMTSelect from './GMTSelect'
class AssignToTranslator extends React.Component {
constructor(props) {
super(props)
this.state = {
timezone: Cookies.get('matecat_timezone'),
}
}
shareJob() {
//Check email and validations errors
let date = $(this.dateInp... |
classic/src/scenes/wbfa/generated/FASExclamation.free.js | wavebox/waveboxapp | import React from 'react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faExclamation } from '@fortawesome/free-solid-svg-icons/faExclamation'
export default class FASExclamation extends React.Component {
render () {
return (<FontAwesomeIcon {...this.props} icon={faExclamation} />)
}... |
app/components/pageNotFound/index.js | imankit/dashboard-ui | 'use strict';
import React from 'react';
class Component extends React.Component {
constructor(props) {
super(props);
console.log('hi');
}
render() {
return (
<div className="dashproject app-dashproject" id="app-dashproject">
<div className="container">
... |
src/routes.js | guiconti/Buildev | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import * as routes from './constants/routesNames';
import App from './components/App';
import HomePage from './components/HomePage';
import LoginPageContainer from './containers/auth/LoginPageContainer';
import RegisterPageContainer from './co... |
app/screens/thread/thread.android.js | mattermost/mattermost-mobile | // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import React from 'react';
import {Animated, View} from 'react-native';
import KeyboardLayout from '@components/layout/keyboard_layout';
import Loading from '@components/loading';
import PostDraft from '@co... |
src/pages/fashionista.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Fashionista' />
)
|
src/views/Components/Switches/Switches.js | haromy/appSO | import React, { Component } from 'react';
class Switches extends Component {
render() {
return (
<div className="animated fadeIn">
<div className="row">
<div className="col-md-12">
<div className="card">
<div className="card-header">
3d Switch
... |
misc/webgui/src/components/Stateservice.js | ChainsAutomation/chains | /*
UNUSED
*/
import React from 'react';
import StateDevice from '../components/Statedevice';
import {devTimer, devUnknown, devTemperature, devHumidity} from '../chains/devtypes';
// Per service render
export default class StateService extends React.Component {
dtype(data) {
/*
console.log('device typ... |
src/containers/auth/AuthenticateView.js | jeanlescure/detox-react-native-demo | /**
* Authenticate Screen
* - Entry screen for all authentication
* - User can tap to login, forget password, signup...
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import {
View,
Image,
StyleSheet,
} from 'react-native';
... |
src/Route.js | lin2jie2/react-hash-router | import React from 'react'
import PropTypes from 'prop-types'
import { observer, history } from './h'
// route
const Route = () => {}
Route.propTypes = {
path: PropTypes.string.isRequired,
component: PropTypes.func.isRequired,
}
export default Route
// route container
export class Container extends React.Componen... |
frontend/app/js/components/board/edit_widget.js | serverboards/serverboards | import React from 'react'
import GenericForm from 'app/components/genericform'
import rpc from 'app/rpc'
import {Error, FormatError, ErrorBoundary} from 'app/components/error'
import Flash from 'app/flash'
import {set_modal} from 'app/utils/store'
import cache from 'app/utils/cache'
import plugin from 'app/utils/plugin... |
src/components/Pomodoro/AlertBox.js | allanesquina/react-pomodoro | import React from 'react'
import classes from './AlertBox.scss'
import ActionButton from './ActionButton'
export const AlertBox = (props) => (
<div className={classes.box}>
<p>It's time to relax ;-)</p>
<ActionButton onClick={props.onClick} text='Close' />
</div>
)
AlertBox.propTypes = {
onClick: React.... |
packages/react-scripts/fixtures/kitchensink/src/features/env/NodePath.js | Bogala/create-react-app-awesome-ts | /**
* 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';
import load from 'absoluteLoad';
export default class ext... |
app/javascript/mastodon/features/ui/components/column.js | ambition-vietnam/mastodon | import React from 'react';
import ColumnHeader from './column_header';
import PropTypes from 'prop-types';
import { debounce } from 'lodash';
import { scrollTop } from '../../../scroll';
import { isMobile } from '../../../is_mobile';
export default class Column extends React.PureComponent {
static propTypes = {
... |
src/entries/app.js | dingzhang/OpenDay | import './app.less';
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import routes from '../routes/route';
import configureStore from '../store/configureStore';
import { syncHistoryWithStore } from 'react-route... |
react-flux-mui/js/material-ui/src/svg-icons/device/signal-cellular-connected-no-internet-0-bar.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularConnectedNoInternet0Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M20 22h2v-2h-2v2zm0-12v8h2v-8h-2z"/>
</SvgIcon>
);
DeviceSignalCellularC... |
client/modules/Post/__tests__/components/PostList.spec.js | SwanCourses/Mokryi-Vlad | import React from 'react';
import test from 'ava';
import { shallow } from 'enzyme';
import PostList from '../../components/PostList';
const posts = [
{ name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: 'f34gb2bh24b24b2', content: "All cats meow 'mern!'" },
{ name: 'Mayank', title: 'Hi Mern', slug: ... |
04/EW/trding/trding/src/components/common/Footer.js | rgllm/uminho | import React from 'react';
import './Footer.css';
const Footer = () => {
return(
<div className="Footer">
<span className="Footer-copy">Made for Web Engineering - 2018.</span>
</div>
);
}
export default Footer;
|
redux-distributed/counter-pouchdb/src/counter/App.js | jurassix/react-examples | import React from 'react';
import {render} from 'react-dom';
import {Provider, connect} from 'react-redux';
import {createStore, applyMiddleware, compose} from 'redux';
import reducers from './reducers';
import thunk from 'redux-thunk';
import CounterContainer from './CounterContainer';
import pouchdbStoreEnhancer from... |
src/js/components/header/header.js | kukua/farmer-weather-analytics | import React from 'react'
import Menu from './menu'
export default class Header extends React.Component {
render () {
return (
<div>
<Menu location={this.props.location} />
</div>
)
}
}
Header.propTypes = {
location: React.PropTypes.shape({
pathname: React.PropTypes.string.isRequired,
}).isRequir... |
app/components/Table/index.js | clairealmozinos/marvel-univers | //
// Component <table></table>
//
import React from 'react';
import Tr from 'components/Tr';
import Th from 'components/Th';
import Td from 'components/Td';
import './styles.css';
/* eslint-disable react/prefer-stateless-function */
export default class Table extends React.Component {
render() {
return (
... |
front/src/components/body/chat/contacts-list/ContactsList.js | litleleprikon/ds_chat | /**
* Created by litleleprikon on 15/11/2016.
* ___ __ ___ ___ __
* /\_ \ __/\ \__/\_ \ /\_ \ __/\ \
* \//\ \ /\_\ \ ,_\//\ \ __\//\ \ __ _____ _ __ /\_\ \ \/'\ ___ ___
* \ \ \ \/\ \ \ \/ \ \ \ /'__`\\ ... |
webapp/src/widgets/FormField.js | cpollet/itinerants | import React from 'react';
import styles from './FormField.less';
class FormField extends React.Component {
render() {
return (
<div className={styles.component}>
{this.props.children}
</div>
);
}
}
FormField.propTypes = {
children: React.PropTypes.n... |
webapp/src/components/Header/Header.js | wfriesen/jerryatric | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import s from '.... |
src/common/components/PageHeader.js | TheoMer/este | // @flow
import Box from './Box';
import Heading from './Heading';
import Paragraph from './Paragraph';
import React from 'react';
type PageHeaderProps = {|
heading: string,
description?: string,
|};
const PageHeader = ({ heading, description }: PageHeaderProps) => (
<Box
borderBottomWidth={2}
borderSty... |
packages/ui-toolkit/src/breadcrumb/index.js | yldio/joyent-portal | import React from 'react';
import styled from 'styled-components';
import { Row, Col } from 'joyent-react-styled-flexboxgrid';
import { Padding } from 'styled-components-spacing';
import remcalc from 'remcalc';
import Container from '../layout/view-container';
const BreadcrumContianer = styled(Container)`
border-bo... |
src/app/components/App.js | DavidBanksNZ/react-redux-minesweeper | import React from 'react';
import {Provider} from 'react-redux';
import Game from './Game';
import store from '../store';
const App = () => (
<Provider store={store}>
<div className="app">
<Game/>
</div>
</Provider>
);
export default App;
|
src/svg-icons/action/perm-scan-wifi.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermScanWifi = (props) => (
<SvgIcon {...props}>
<path d="M12 3C6.95 3 3.15 4.85 0 7.23L12 22 24 7.25C20.85 4.87 17.05 3 12 3zm1 13h-2v-6h2v6zm-2-8V6h2v2h-2z"/>
</SvgIcon>
);
ActionPermScanWifi = pure(A... |
node_modules/antd/es/transfer/search.js | prodigalyijun/demo-by-antd | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import Icon from ... |
src/components/video_detail.js | julianomoreira/ReduxSimpleStarter | import React from 'react';
const VideoDetail = ({video}) => {
if (!video) {
return <div>Loading....</div>
}
const videoId = video.id.videoId;
// String interpolation - ES6 magic below
//const url = 'https://www.youtube.com/embed/' + videoId;
const url = `https://www.youtube.com/embed/${videoId}`;
re... |
src/svg-icons/av/note.js | pancho111203/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.... |
src/lib/formatter.js | rocket-internet-berlin/RocketDashboard | import React from 'react';
import RelativeTime from 'react-relative-time';
/**
* Custom widget formatter functions
*/
const formatter = {
formatStockPrice(n) {
if (n && !isNaN(parseFloat(n))) {
return parseFloat(n).toFixed(2);
}
return n;
},
formatWidgetUpdatedTimestamp(updated) {
if (up... |
frontend/src/components/organizationProfile/common/profileConfirmation.js | unicef/un-partner-portal | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { compose } from 'ramda';
import { withStyles } from 'material-ui/styles';
import Typography from 'material-ui/Typography';
import Checkbox from 'material-ui/Checkbox';
import ProfileViewLink from './profileView... |
definitions/npm/react-toastify_v3.2.x/test_react-toastify_v3.2.x.js | splodingsocks/FlowTyped | import React from 'react'
import { ToastContainer, toast, style } from 'react-toastify'
const toastContent = <div>Toast!</div>
// $FlowExpectedError
toast(toastContent, { type: toast.TYPE.SUCCES })
toast(toastContent, { type: toast.TYPE.SUCCESS })
// $FlowExpectedError
toast.success(toastContent, { onOpen: false })
... |
src/containers/AddEntity.js | lxanders/react-clientside-example | import React from 'react';
import { connect } from 'react-redux';
import { Button, Form, FormControl } from 'react-bootstrap';
import { storeEntity } from '../actions/index';
class AddEntity extends React.Component {
constructor(...args) {
super(...args);
this.state = {
inputValue: ''
... |
src/components/components/Mixins.js | fernandojsg/aframe-inspector | import React from 'react';
import PropTypes from 'prop-types';
const Events = require('../../lib/Events.js');
function trim (s) {
s = s.replace(/(^\s*)|(\s*$)/gi, '');
s = s.replace(/[ ]{2,}/gi, ' ');
s = s.replace(/\n /, '\n');
return s;
}
export default class Mixin extends React.Component {
static propTy... |
frontend/src/views/Jobs/Jobs.js | rocknsm/docket | /*
* Copyright (c) 2017, 2018 RockNSM.
*
* This file is part of RockNSM
* (see http://rocknsm.io).
*
* 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/licens... |
packages/javascript/reactjs/react-redux/sequencer/src/App.js | sharkspeed/dororis | import React, { Component } from 'react';
import './App.css';
import Pads from './components/Pads'
import Controls from './components/Controls'
// At the most basic level we’re going to want a controls component and an area to contain the pads.
class App extends Component {
constructor() {
super()
this.st... |
src/client/components/Root.js | aaronpanch/hercules | import React from 'react';
import ajax from '../ajax';
import AppsList from './AppsListComponent';
import union from 'lodash/union';
import find from 'lodash/find';
class Root extends React.Component {
constructor(props) {
super(props);
this.state = {
apps: this.props.initialData,
isFocused: fal... |
src/components/search_bar.js | tousif101/YouTube-Clone-React | import React, { Component } from 'react';
//React components can show other components
//Index.js need to use this file, so need to export
//There is a class function. When you need some sort of state.
//Render method has to return JSX
class SearchBar extends Component {
constructor(props) {
super(props... |
src/routes/app/routes/ui/routes/components/components/Tabs.js | ahthamrin/kbri-admin2 | import React from 'react';
import {Tabs, Tab} from 'material-ui/Tabs';
import Slider from 'material-ui/Slider';
const styles = {
padding: '12px 18px',
marginBottom: 12,
fontWeight: 400,
};
function handleActive(tab) {
console.log(`A tab with this route property ${tab.props.route} was activated.`);
}
const Tabs... |
src/Async.js | Craga89/react-select | import React from 'react';
import Select from './Select';
import stripDiacritics from './utils/stripDiacritics';
let requestId = 0;
function initCache (cache) {
if (cache && typeof cache !== 'object') {
cache = {};
}
return cache ? cache : null;
}
function updateCache (cache, input, data) {
if (!cache) return... |
react-router-demo/lessons/08-index-routes/index.js | zhangjunhd/react-examples | import React from 'react'
import { render } from 'react-dom'
import { Router, Route, hashHistory } from 'react-router'
import App from './modules/App'
import About from './modules/About'
import Repos from './modules/Repos'
import Repo from './modules/Repo'
render((
<Router history={hashHistory}>
<Route path="/" ... |
src/svg-icons/image/filter-5.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter5 = (props) => (
<SvgIcon {...props}>
<path d="M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-2c0-1.11-.9-2-2-2h-... |
packages/v4/src/content/developer-resources/accessibility-datalist.js | patternfly/patternfly-org | import React from 'react';
import {
Button,
DataList,
DataListItem,
DataListItemRow,
DataListCell,
DataListAction,
DataListToggle,
DataListContent,
DataListItemCells,
Dropdown,
DropdownItem,
DropdownPosition,
KebabToggle,
} from '@patternfly/react-core';
import AngleDownIcon from '@patternfly/... |
assets/frontend/js/app.js | alincode/sails-react-sample | import React from 'react';
import ReactDom from 'react-dom';
import Root from './Root';
ReactDom.render(<Root/>, document.getElementById('main'));
|
src/Table/Table.js | skarnecki/material-ui | import React from 'react';
function getStyles(props, context) {
const {
baseTheme,
table,
} = context.muiTheme;
return {
root: {
backgroundColor: table.backgroundColor,
padding: `0 ${baseTheme.spacing.desktopGutter}px`,
width: '100%',
borderCollapse: 'collapse',
borderS... |
src/components/story/TwoPostImageResp.js | danpersa/remindmetolive-react | import React from 'react';
import TwoImages from './TwoImages';
import buildSrcResp from './buildSrcResp';
import PropTypes from 'prop-types';
const TwoPostImageResp = (props) => {
return (
<TwoImages src1={buildSrcResp(props.dirPath, "SW", "image", props.number1)}
src2={buildSrcResp(props.dirPath... |
src/Sidebar.js | mbarton/sonic-quiche | import React from 'react';
import { List } from 'semantic-ui-react'
function EventItem({ icon, header, timestamp }) {
return <List.Item>
<List.Icon name={icon} size='large' verticalAlign='middle' />
<List.Content>
<List.Header as='a'>{header}</List.Header>
<List.Description ... |
src/NotFound.js | lin2jie2/react-hash-router | import React from 'react'
export default (props) => (<div>
<p>Page Not Found</p>
<hr />
<p>{props.uri}</p>
</div>)
|
src/containers/video_detail.js | mattstuhring/youtube_redux | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { selectVideo } from '../actions/action_select_video';
class VideoDetail extends Component {
render() {
console.log(this.props.videos, 'video detail');
if (!this.props.video) {... |
node_modules/react-bootstrap/es/DropdownMenu.js | superKaigon/TheCave | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _Array$from from 'babel-runtime/core-js/array/from';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtim... |
admin/client/App/components/Navigation/Mobile/index.js | creynders/keystone | /**
* The mobile navigation, displayed on screens < 768px
*/
import React from 'react';
import Transition from 'react-addons-css-transition-group';
import MobileSectionItem from './SectionItem';
const ESCAPE_KEY_CODE = 27;
const MobileNavigation = React.createClass({
displayName: 'MobileNavigation',
propTypes: ... |
app/js/pages/Kai_xue_dian_li.js | arcsecw/auto_writing |
//开学典礼
import React from 'react';
import {
Container,
Input,
FormGroup,
ButtonToolbar,
Tabs,
Item,
ModalTrigger,
DateTimeInput,
} from 'amazeui-react';
import {Editor, EditorState} from 'draft-js';
import { withRouter } from 'react-router'
import { myConfig } from '../components/config.js';
import {po... |
docs/src/layouts/redirect.js | aldanor/nuclear-js | import React from 'react'
export default React.createClass({
render() {
const redirectTo = this.props.to || '/'
const redirectJS = {
__html: "window.location = '" + redirectTo + "'",
}
return (
<html lang="en">
<head>
<meta httpEquiv="Content-Type" content="text/html; ch... |
app/javascript/mastodon/features/compose/components/upload_progress.js | unarist/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import { FormattedMessage } from 'react-intl';
export default class UploadProgress extends React.PureComponent {
static propTypes = {
active: PropTypes... |
src/containers/DevToolsWindow.js | GovReady/GovReady-Agent-Client | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
export default createDevTools(
<LogMonitor />
);
|
src/components/Home/index.js | topguru/React-Equiaction | import React, { Component } from 'react';
import {
Text,
View,
ScrollView,
Image,
TouchableHighlight,
AsyncStorage
} from 'react-native';
import { Actions } from 'react-native-router-flux';
import PremiumHorse from '../PremiumHorse';
import styles from './style';
import Tabs from 'react-native-tabs';
impor... |
src/js/screens/Meter.js | grommet/next-sample | import React, { Component } from 'react';
import { Box, Meter, Stack, Text } from 'grommet';
import doc from 'grommet/components/Meter/doc';
import Doc from '../components/Doc';
const desc = doc(Meter).toJSON();
const SINGLE_VALUE = [
{ value: 60, label: 'sixty', onClick: () => alert('60') },
];
const MULTIPLE_VA... |
spec/components/icon_menu.js | rubenmoya/react-toolbox | import React from 'react';
import { MenuItem, IconMenu, MenuDivider } from '../../components/menu';
class IconMenuTest extends React.Component {
state = {
selected: undefined,
};
handleShow = () => {
console.log('Showing menu...');
};
handleHide = () => {
console.log('Hiding menu...');
};
... |
src/components/ComboBoxItem.js | nikgraf/belle | import React, { Component } from 'react';
import PropTypes from 'prop-types';
/**
* Belle internal component to wrap an Option in a ComboBox.
*
* This component exists to avoid binding functions in JSX.
*/
export default class ComboBoxItem extends Component {
static displayName = 'ComboBoxItem';
static propT... |
src/esm/components/graphics/icons/filter-icon/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["color", "duration", "type", "name", "begin", "animated", "title"];
import React from 'react';
import COLORS from '../../../../constants/colors-config'... |
src/routes.js | ESTEBANMURUZABAL/bananaStore | /**
* Imports
*/
import React from 'react';
import {DefaultRoute, NotFoundRoute, Route} from 'react-router';
// Required components
import Application from './components/pages/Application/Application';
import NotFound from './components/pages/NotFound/NotFound';
import Homepage from './components/pages/Homepage/Hom... |
src/icons/ExposureZeroIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class ExposureZeroIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M32.28 25c0 2-.2 3.7-.59 5.1-.39 1.4-.95 2.53-1.67 3.41-.72.87-1.59 1.51-2.6 1.9-1.01.39-2.14.59-3.39... |
example/app.js | jadekler/git-react-left-nav | import React from 'react'
import ReactDOM from 'react-dom'
import LeftNav from 'react-left-nav'
const links = [
{
active: true,
url: '#',
text: 'Hello world!'
},
{
active: false,
url: '#',
text: 'Foo!'
},
{
active: false,
url: '#',
... |
app/components/splash.js | BAMason/HI | import { Link } from 'react-router';
import React from 'react';
export default class Splash extends React.Component {
constructor(props) {
super(props);
this.handleClick = this.handleClick.bind(this);
}
handleClick() {
window.location = `/game`;
}
render() {
return <div className="splash ro... |
docs/src/pages/components/buttons/TextButtons.js | lgollut/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Button from '@material-ui/core/Button';
const useStyles = makeStyles((theme) => ({
root: {
'& > *': {
margin: theme.spacing(1),
},
},
}));
export default function TextButtons() {
const classes = useStyles();
... |
src/components/NoMatch.js | yyssc/ssc_web-boilerplate | import React from 'react';
export default class NoMatch extends React.Component {
render() {
return (
<div>404, 你要请求的内容未找到...</div>
);
}
};
|
src/js/main.js | kukua/farmer-weather-analytics | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { createStore, applyMiddleware } from 'redux'
import thunk from 'redux-thunk'
import reducers from './reducers/'
import Router from './components/router'
import { instance as user } from './lib/user'
import _ from... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.