path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
packages/material-ui-icons/src/WbSunny.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let WbSunny = props =>
<SvgIcon {...props}>
<path d="M6.76 4.84l-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91l-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7l1.... |
stories/StaticToolbar/ThemedToolbarEditor/index.js | dagopert/draft-js-plugins | import React, { Component } from 'react';
import Editor, { createEditorStateWithText } from 'draft-js-plugins-editor';
import createToolbarPlugin from 'draft-js-static-toolbar-plugin';
import editorStyles from './editorStyles.css';
import buttonStyles from './buttonStyles.css';
import toolbarStyles from './toolbarSty... |
examples/counter/index.js | kaezarrex/redux | import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
</Provider>,
document.getElementById('root')
);
|
src/Footer.react.js | z-vr/react-popup | import React from 'react';
import PropTypes from 'prop-types';
import ButtonsSpace from './ButtonsSpace.react';
const Component = (props) => {
if (props.buttons) {
return (
<footer className={props.className}>
<ButtonsSpace
buttonClick={props.buttonClick}
... |
react-app/src/Person/Person.js | Joel-Torres/joel-torres.github.io | import React from 'react';
import './Person.css';
const person = (props) => {
return (
<div className="Person">
<p onClick={props.click}>I'm {props.name} and I am {props.age} years old!</p>
<p>{props.children}</p>
<input type="text" onChange={props.changed} value={props.name}/>
</div>
... |
test/integration/basic/pages/dynamic/bundle.js | BlancheXu/test | import React from 'react'
import dynamic from 'next/dynamic'
import Router from 'next/router'
import PropTypes from 'prop-types'
const HelloBundle = dynamic({
modules: props => {
const components = {
HelloContext: import('../../components/hello-context'),
Hello1: import('../../components/hello1'),
... |
src/modules/editor/components/blocks/EmbedBlock/EmbedBlock.js | CtrHellenicStudies/Commentary | import React from 'react'
import axios from "axios"
import { connect } from 'react-redux';
// redux
import editorActions from '../../../actions';
// lib
import updateDataOfBlock from '../../../lib/updateDataOfBlock';
class EmbedBlock extends React.Component {
constructor(props) {
super(props)
this.state = {
... |
src/common/index.js | canonical-ols/my.ubuntu.com | // import global stylesheets before app renders
import '../../node_modules/normalize.css/normalize.css';
import './style/base.css';
import React from 'react';
import { render } from 'react-dom';
import Root from './root';
render(<Root />, document.getElementById('content'));
|
index.js | caleb-tolu/react-native-multiple-tags | import React, { Component } from 'react';
import { View, TextInput, Text, TouchableOpacity, FlatList, Dimensions } from 'react-native';
import PropTypes from 'prop-types';
import Icon from 'react-native-vector-icons/Ionicons';
const { width } = Dimensions.get('window');
const styles = {
showTagsWrapper: {
minHe... |
src/universal/pages/EventsList/Drawer/index.js | sanchitgangwar/remind-plus | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import Drawer from 'material-ui/Drawer';
import Divider from 'material-ui/Divider';
import {
closeDrawerAction
} from 'Universal/actions/drawer';
import... |
app/containers/WhatIsSafetyPage.js | gidich/votrient-kiosk | import React, { Component } from 'react';
import Timeout from '../components/Timeout';
export default class WhatIsSafetyPage extends Component {
render() {
return (
<Timeout>
{this.props.children}
</Timeout>
);
}
}
|
node_modules/react-bootstrap/es/ControlLabel.js | firdiansyah/crud-req | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/containers/Charts/reactVis/charts/index.js | EncontrAR/backoffice | import React from 'react';
import Async from '../../../../helpers/asyncComponent';
const LineSeries = (props) => <Async load={import(/* webpackChunkName: "react-vis-lineSeries" */ './lineSeries')} componentProps={props} />;
const LineMark = (props) => <Async load={import(/* webpackChunkName: "react-vis-lineMark" */ '.... |
server/boot/react.js | codeman869/FreeCodeCamp | import React from 'react';
import { RouterContext } from 'react-router';
import debug from 'debug';
import { renderToString } from 'redux-epic';
import createApp from '../../common/app';
import provideStore from '../../common/app/provide-store';
const log = debug('fcc:react-server');
// add routes here as they slow... |
day29_redux_todoapp/source_code/components/TodoAddForm.js | eyesofkids/ironman2017 | //@flow
import React from 'react'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import { onFecthAddItem } from '../actions/items'
//匯入Props靜態類型的定義
import type { TodoAddFormProps } from '../definitions/TodoTypeDefinition.js'
const TodoAddForm = ({ placeholderText, onFecthAddItem }: T... |
src/js/components/ProductInfoModal.js | vbence86/project-bea | /* global $ */
import React from 'react';
export default class ProductInfoModal extends React.Component {
static propTypes = {
title: React.PropTypes.string.isRequired,
description: React.PropTypes.string.isRequired,
modelId: React.PropTypes.string.isRequired
}
static defaultProps = {
title: '... |
client/admin/oauthApps/OAuthAppsRoute.js | iiet/iiet-chat | import React from 'react';
import { usePermission } from '../../contexts/AuthorizationContext';
import NotAuthorizedPage from '../../components/NotAuthorizedPage';
import OAuthAppsPage from './OAuthAppsPage';
export default function MailerRoute() {
const canAccessOAuthApps = usePermission('manage-oauth-apps');
if ... |
Rosa_Madeira/Revendedor/src/components/common/card_produto/Button.js | victorditadi/IQApp | import React from 'react';
import { Text, TouchableOpacity } from 'react-native';
const Button = ({ onPress, children }) => {
const { buttonStyle, textStyle } = styles;
return (
<TouchableOpacity onPress={onPress} style={buttonStyle}>
<Text style={textStyle}>
{children}
</Text>
</Touch... |
examples/01 Dustbin/Stress Test/Container.js | nickknw/react-dnd | import React, { Component } from 'react';
import { DragDropContext } from 'react-dnd';
import HTML5Backend, { NativeTypes } from 'react-dnd/modules/backends/HTML5';
import Dustbin from './Dustbin';
import Box from './Box';
import ItemTypes from './ItemTypes';
import shuffle from 'lodash/collection/shuffle';
import upda... |
patcher/src/index.js | rsimmons/rindel3 | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import './index.css';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
examples/huge-apps/app.js | stshort/react-router | import React from 'react'
import { render } from 'react-dom'
import { Router, browserHistory } from 'react-router'
import withExampleBasename from '../withExampleBasename'
import './stubs/COURSES'
const rootRoute = {
childRoutes: [ {
path: '/',
component: require('./components/App'),
childRoutes: [
... |
www/static/src/admin/components/UserPage.js | songguangyu/firekylin | import React from 'react';
import autobind from 'autobind-decorator';
import BaseComponent from './BaseComponent';
@autobind
class UserPage extends BaseComponent {
componentDidMount() {
this.subscribe(
);
}
render() {
return (
<div className="UserPage page">
<div className="tit... |
react_docs/src/components/section.js | GobHash/GobHash-Backend | import React from 'react';
import remark from 'remark';
import PropTypes from 'prop-types';
import remarkHTML from 'remark-html';
import remarkHighlight from '../highlight';
import { postHighlight, remarkPlugins } from '../custom';
function renderHighlighted(nodes) {
return {
__html: postHighlight(remark()
... |
gatsby-ssr.js | emero/gatsby-redux-styled-starter | import React from 'react'
import { renderToString } from 'react-dom/server'
import { Provider } from 'react-redux'
import { ServerStyleSheet, StyleSheetManager } from 'styled-components'
import createStore from './src/stores'
exports.replaceRenderer = ({ bodyComponent, replaceBodyHTMLString, setHeadComponents }) => {
... |
src/MenuItem.js | simonliubo/react-ui | import React from 'react';
import classNames from 'classnames';
import SafeAnchor from './SafeAnchor';
const MenuItem = React.createClass({
propTypes: {
header: React.PropTypes.bool,
divider: React.PropTypes.bool,
href: React.PropTypes.string,
title: React.PropTypes.string,
target: ... |
app/index.js | qiu-deqing/car-model | import React from 'react'
import ReactDOM from 'react-dom'
import App from './components/App'
ReactDOM.render(
<App/>,
document.getElementById('root')
) |
src/todoCanvasView.js | massimiliano-mantione/react-3dui | import React from 'react'
import {Layer, Stage, Group, Rect, Text} from './react-konva'
import {Styler} from 'debonair'
import {listElementScale, listElementPosition} from './listElementScale'
const ROW_HEIGTH = 40
const LINE_HEIGTH = 50
const GAP_HEIGTH = 10
const LIST_SIZE = 3.50
const LIST_HEIGTH = LIST_SIZE * ROW... |
src/components/common/svg-icons/av/replay-30.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvReplay30 = (props) => (
<SvgIcon {...props}>
<path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-2.4 8.5h.4c.2 0 .4-.1.5-.2s.2-.2.2-.4v-.2s-.1-.1-.1-.2-.1-.... |
src/js/components/filter__list/index.js | Arlefreak/web_client.afk | import PropTypes from 'prop-types';
import React from 'react';
import Row from '../filter__row';
const FilterList = ({
items,
onClick,
className,
active,
allActive,
clearAll,
all,
}) => {
let allClass = allActive ? 'active' : '';
return (
<ul className={className}>
{all && (
<Row
... |
js/App.js | nathanjameshill/ReefWatchPrototype | import React from 'react'
import { Link } from 'react-router'
import DisplaySelectedSurvey from './components/DisplaySelectedSurvey'
import PubSub from './helpers/pubsub'
import config from "../config"
import * as services from "../data/services"
export default React.createClass({
getInitialState: function() {
... |
src/MenuItem.js | adampickeral/react-bootstrap | import React from 'react';
import classnames from 'classnames';
import CustomPropTypes from './utils/CustomPropTypes';
import SafeAnchor from './SafeAnchor';
export default class MenuItem extends React.Component {
constructor(props) {
super(props);
this.handleClick = this.handleClick.bind(this);
}
hand... |
react-flux-mui/js/material-ui/src/svg-icons/image/timer-off.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTimerOff = (props) => (
<SvgIcon {...props}>
<path d="M19.04 4.55l-1.42 1.42C16.07 4.74 14.12 4 12 4c-1.83 0-3.53.55-4.95 1.48l1.46 1.46C9.53 6.35 10.73 6 12 6c3.87 0 7 3.13 7 7 0 1.27-.35 2.47-.94 3.49l1.... |
src/client.js | samdenicola/react-starter-kit | /**
* 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 'babel-polyfill';
import React from 'react';
import... |
actor-apps/app-web/src/app/components/common/MessageItem.react.js | Jaeandroid/actor-platform | import _ from 'lodash';
import React from 'react';
import { PureRenderMixin } from 'react/addons';
import memoize from 'memoizee';
import classNames from 'classnames';
import emojify from 'emojify.js';
import hljs from 'highlight.js';
import marked from 'marked';
import emojiCharacters from 'emoji-named-characters';
... |
src/components/EmptyScrobbleListFiller.js | elamperti/OpenWebScrobbler | import React from 'react';
import { Trans } from 'react-i18next';
import { Jumbotron } from 'reactstrap';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faQuestion, faUserAstronaut } from '@fortawesome/free-solid-svg-icons';
export default function EmptyScrobbleListFiller() {
return (
... |
web/__mocks__/react-relay.js | gladly-team/tab | /* eslint-env jest */
import React from 'react'
import PropTypes from 'prop-types'
// A gist with mock for Relay Modern:
// https://gist.github.com/robrichard/ad838e599d828a89978f54faaa2070a8
const RelayMock = jest.genMockFromModule('react-relay')
/*
Mock createFragmentContainer, createRefetchContainer, and
crea... |
src/Pulsante.js | fondazionebordoni/misurainternet-ui | import React from 'react';
const Pulsante = (props) => {
return (
<div className="text-xs-center">
<button
id='mistButton'
className="btn btn-outline-primary btn-lg pr-3 pl-3"
style={{borderRadius: 3}}
onClick={props.onClick}>
START
</button>
</div>
)
}... |
src/components/TasksList.js | olontsev/react-redux-bootcamp | import React from 'react';
import TasksListItem from '../components/TasksListItem';
class ToDoList extends React.Component {
render() {
var tasks = [
{ id:1, text: "Task 1", done: true },
{ id:2, text: "Task 2", done: true },
{ id:3, text: "Task 3", done: false },
{ id:5, text: "Task 5" ... |
docs/app/Examples/collections/Table/Variations/TableExampleVeryBasic.js | clemensw/stardust | import React from 'react'
import { Table } from 'semantic-ui-react'
const TableExampleVeryBasic = () => {
return (
<Table basic='very'>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>No... |
react/reactRouter/modules/NavLink.js | sabertazimi/st-proj | import React from 'react';
import { Link } from 'react-router';
export default React.createClass({
render() {
return (
<Link {...this.props} activeClassName="active" />
);
}
});
|
src/ListGroupItem.js | reactstrap/reactstrap | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { mapToCssModules, tagPropType } from './utils';
const propTypes = {
tag: tagPropType,
active: PropTypes.bool,
disabled: PropTypes.bool,
color: PropTypes.string,
action: PropTypes.bool,
className: Pro... |
src/components/PetitionLinksField/index.js | iris-dni/iris-frontend | import React from 'react';
import styles from './petition-links-field.scss';
import domOnlyProps from 'form/domOnlyProps';
import fieldIsInvalid from 'form/fieldIsInvalid';
import getLinkInputErrors from 'form/getLinkInputErrors';
import getFieldClassname from 'form/getFieldClassname';
import wrapPetitionLinks from 'he... |
src/svg-icons/hardware/speaker.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSpeaker = (props) => (
<SvgIcon {...props}>
<path d="M17 2H7c-1.1 0-2 .9-2 2v16c0 1.1.9 1.99 2 1.99L17 22c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5 2c1.1 0 2 .9 2 2s-.9 2-2 2c-1.11 0-2-.9-2-2s.89-2 2-2zm0 16c... |
admin/client/components/List/ListControl.js | qwales1/keystone | import React from 'react';
import classnames from 'classnames';
var ListControl = React.createClass({
propTypes: {
dragSource: React.PropTypes.func,
onClick: React.PropTypes.func,
type: React.PropTypes.oneOf(['check', 'delete', 'sortable']).isRequired,
},
renderControl () {
var icon = 'octicon octicon-';
... |
src/js/components/AnimatedCube.js | HAZARDU5/aframe-test | import React from 'react';
import { Entity } from 'aframe-react';
const {
Component,
PropTypes,
} = React;
export class AnimatedCube extends Component {
constructor(props) {
super(props);
this.state = {color: 'red'};
}
changeColor() {
const colors = ['red', 'orange', ... |
_archive/HelloWorld/src/app.js | dsuryd/dotnetify-react-demo-vs2017 | import React from 'react';
import ReactDOM from 'react-dom';
import HelloWorld from './HelloWorld.jsx';
ReactDOM.render(<HelloWorld />, document.getElementById('Content'));
|
src/components/Logout.js | DarwinSmith/tentara-pelajar-client | import React from 'react'
import { Redirect } from 'react-router-dom'
const Logout = () => {
window.localStorage.clear()
return (
<Redirect to='/login' />
)
}
export default Logout
|
client/src/Assistant/Presentation/Calculation.js | ciex/mietlimbo | // @flow
import React from 'react'
import { FormattedMessage, defineMessages } from 'react-intl'
import type {Data} from '../Assistant'
export const LocalRentLevel = (props: Data) => {
const messages = defineMessages({
LocalRentLevelTitle: {
id: 'Calculation.LocalRentLevelTitle',
defaultMessage: 'Ö... |
node_modules/react-bootstrap/es/DropdownButton.js | premcool/getmydeal | 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... |
packages/material-ui-icons/src/RoomService.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let RoomService = props =>
<SvgIcon {...props}>
<path d="M2 17h20v2H2zm11.84-9.21c.1-.24.16-.51.16-.79 0-1.1-.9-2-2-2s-2 .9-2 2c0 .28.06.55.16.79C6.25 8.6 3.27 11.93 3 16h18c-.27-4.07-3.25-7.4-7.16-8.21z" />
... |
src/html.js | buts-butler/web-ui | import React from 'react'
import Helmet from 'react-helmet'
let stylesStr
if (process.env.NODE_ENV === 'production') {
try {
stylesStr = require('!raw-loader!../public/styles.css')
} catch (e) {
console.log(e)
}
}
export default class HTML extends React.Component {
render() {
const head = Helmet.r... |
src/svg-icons/av/movie.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvMovie = (props) => (
<SvgIcon {...props}>
<path d="M18 4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4z"/>
</SvgIcon>
);
AvMovie = pure(AvMovie);
Av... |
client/src/HeaderWishlist.js | WesleydeSouza/graphql-awesome-meetups | import gql from 'graphql-tag';
import React, { Component } from 'react';
import { graphql } from 'react-apollo';
import { Link } from 'react-router-dom';
import './HeaderWishlist.css';
class HeaderWishlist extends Component {
constructor() {
super();
this.state = {
wishlistOpen: false,
};
th... |
node_modules/antd/es/avatar/index.js | yhx0634/foodshopfront | import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possib... |
src/plugins/local/components/NextButtonContainer.js | ttrentham/Griddle | import React from 'react';
import { connect } from '../../../utils/griddleConnect';
import { textSelector, hasNextSelector, classNamesForComponentSelector, stylesForComponentSelector } from '../selectors/localSelectors';
import { getNext } from '../../../actions';
const enhance = OriginalComponent => connect(state =>... |
src/components/loading-indicators/loading-user-list-item.component.js | housseindjirdeh/git-point | import React, { Component } from 'react';
import { StyleSheet, Animated, View } from 'react-native';
import { colors } from 'config';
import { loadingAnimation } from 'utils';
const styles = StyleSheet.create({
container: {
paddingTop: 10,
paddingRight: 10,
paddingBottom: 10,
borderBottomColor: '#ed... |
src/components/body/menu/boxes/box/Box.js | TechyFatih/Nuzlog | import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import { Panel, ToggleButtonGroup, ToggleButton } from 'react-bootstrap';
import { connect } from 'react-redux';
import './Box.css'
import PokeSlot from 'components/pokemon/slot/PokeSlot';
class Box extends React.Compone... |
src/components/util/FilePanel.js | mailvelope/mailvelope | /**
* Copyright (C) 2017-2019 Mailvelope GmbH
* Licensed under the GNU Affero General Public License version 3
*/
import React from 'react';
import PropTypes from 'prop-types';
import * as l10n from '../../lib/l10n';
import Alert from './Alert';
import {extractFileExtension, extractFileNameWithoutExt} from '../../l... |
app/src/client/routes.js | TeamLambda/DockDev | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './containers/app/App';
import Home from './components/app/Home';
import AddProject from './containers/app/AddProject';
import ProjectDetails from './containers/project/ProjectDetails';
// import ProjectSettings from './compon... |
src/svg-icons/action/card-travel.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCardTravel = (props) => (
<SvgIcon {...props}>
<path d="M20 6h-3V4c0-1.11-.89-2-2-2H9c-1.11 0-2 .89-2 2v2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zM9 4h6v2H9V4zm11 15H... |
packages/react-vis/src/plot/series/bar-series.js | uber-common/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
src/js/components/icons/base/Robot.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
src/react/installation/pages/Step7.component.js | formtools/core | import React, { Component } from 'react';
import { withRouter } from 'react-router-dom';
import styles from '../Layout/Layout.scss';
import Button from '../../components/Buttons';
import { NotificationPanel } from '../../components';
class Step7 extends Component {
constructor (props) {
super(props);
this.notifi... |
src/client/assets/javascripts/app/DevTools.js | yknx4/aleworld | import React from 'react';
import { createDevTools } from 'redux-devtools';
// Monitors are separate packages, and you can make a custom one
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
import SliderMonitor from 'redux-slider-monitor';
// createDevTools t... |
django/webcode/webcode/frontend/node_modules/react-bootstrap/es/InputGroupAddon.js | OpenKGB/webcode | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
Realization/frontend/czechidm-core/src/content/form/FormProjectionRoutes.js | bcvsolutions/CzechIdMng | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import * as Basic from '../../components/basic';
import * as Advanced from '../../components/advanced';
import * as Utils from '../../utils';
import { FormProjectionManager } from '..... |
desktop-application/node_modules/react-router/es6/IndexRedirect.js | santosh-surya/pcb-cnc-machine | 'use strict';
import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import Redirect from './Redirect';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.string;
var object = _React$PropTypes.object;
/**
*... |
src/test/app/js/main.js | cluelessjoe/heroesdesk-front-web | 'use strict';
import React from 'react';
import Router from 'react-router';
import {I18n} from './i18n/i18n.js';
require('../less/main.less');
const appNode = document.getElementById("app");
var {
Route,
Redirect,
RouteHandler,
Link
} = Router;
var App = React.createClass({
render: function () {
re... |
src/components/show_room.js | Helabs/handup-web | import _ from 'lodash';
import React, { Component } from 'react';
import { graphql, compose } from 'react-apollo';
import gql from 'graphql-tag';
import { Link } from 'react-router-dom';
import Line from './line';
import LogoutButton from './logout_button';
class ShowRoom extends Component {
componentWillReceivePro... |
src/pages/index.js | muhammad-saleh/msaleh.me | import React from 'react'
import Link from 'gatsby-link'
const IndexPage = () => (
<div>
<h1>Hi people</h1>
<p>Welcome to your new Gatsby site.</p>
<p>Now go build something great.</p>
<Link to="/page-2/">Go to page 2</Link>
</div>
)
export default IndexPage
|
app/javascript/mastodon/features/notifications/components/column_settings.js | cybrespace/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage } from 'react-intl';
import ClearColumnButton from './clear_column_button';
import SettingToggle from './setting_toggle';
export default class ColumnSettings extends Reac... |
docs/src/app/components/pages/components/Snackbar/ExampleSimple.js | nathanmarks/material-ui | import React from 'react';
import Snackbar from 'material-ui/Snackbar';
import RaisedButton from 'material-ui/RaisedButton';
export default class SnackbarExampleSimple extends React.Component {
constructor(props) {
super(props);
this.state = {
open: false,
};
}
handleTouchTap = () => {
th... |
addons/themes/defaultTheme/default/layouts/Search.js | rendact/rendact | import React from 'react'
import Header from '../includes/Header'
import Footer from '../includes/Footer'
import Sidebar from '../includes/Sidebar';
import moment from 'moment';
import {Link} from 'react-router';
import Halogen from 'halogen';
class Search extends React.Component {
componentDidMount(){
require('... |
node_modules/react-native/Libraries/Modal/Modal.js | gunaangs/Feedonymous | /**
* 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/InputWithOptions/InputWithOptions.driver.js | skyiea/wix-style-react | import React from 'react';
import ReactTestUtils from 'react-dom/test-utils';
import inputDriverFactory from '../Input/Input.driver';
import dropdownLayoutDriverFactory from '../DropdownLayout/DropdownLayout.driver';
import ReactDOM from 'react-dom';
const inputWithOptionsDriverFactory = ({element, wrapper, component}... |
stories/Checkbox/index.js | skyiea/wix-style-react | import React from 'react';
import story from '../utils/Components/Story';
import CodeExample from '../utils/Components/CodeExample';
import ExampleStandard from './ExampleStandard';
import ExampleStandardRaw from '!raw-loader!./ExampleStandard';
import ExampleIndeterminate from './ExampleIndeterminate';
import Exampl... |
src/browser/todos/TodosPage.react.js | SidhNor/este-cordova-starter-kit | import Buttons from './Buttons.react';
import Component from 'react-pure-render/component';
import Helmet from 'react-helmet';
import NewTodo from './NewTodo.react';
import React from 'react';
import Todos from './Todos.react';
import linksMessages from '../../common/app/linksMessages';
import { injectIntl, intlShape }... |
front-end/src/index.js | aravindio/readable | import React from 'react'
import ReactDOM from 'react-dom'
import { BrowserRouter as Router, Route } from 'react-router-dom'
import { createStore, applyMiddleware, compose } from 'redux'
import { Provider } from 'react-redux'
import thunk from 'redux-thunk'
import App from './components/app'
import reducer from './redu... |
client/src/components/Button.js | Nauktis/inab | import React from 'react';
export default class Button extends React.Component {
static propTypes = {
children: React.PropTypes.node.isRequired,
onClick: React.PropTypes.func
};
handleClick(e) {
e.preventDefault();
if (this.props.onClick) {
this.props.onClick();
}
}
render() {
... |
src/components/Contacts/Contacts.js | mminutel/upkeep | import React, { Component } from 'react';
import './Contacts.css';
class Contacts extends Component {
render() {
return (
<div>
</div>
);
}
}
export default Contacts;
|
cerberus-dashboard/src/components/IamPrincipalPermissionsFieldSet/IamPrincipalPermissionsFieldSet.js | Nike-Inc/cerberus-management-service | /*
* Copyright (c) 2020 Nike, 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 to ... |
pages/projects/index.js | DarcyChan/darcychan.com | import React from 'react';
import { getArtworksFromRoute } from 'utils';
import { PageWrapper, PageJumbotron } from 'components/page';
import { PreviewList } from 'components/preview';
/* eslint-disable quotes */
exports.data = {
id: 0,
path: `/projects/`,
category: `project`,
showInMenu: true,
ti... |
app/javascript/mastodon/features/follow_requests/components/account_authorize.js | mecab/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Permalink from '../../../components/permalink';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import emojify from '../../../emo... |
threeforce/node_modules/react-bootstrap/es/SafeAnchor.js | wolfiex/VisACC | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/svg-icons/social/mood.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialMood = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.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.58 8 8-3.58 8-8 8zm3.5-9c.83 ... |
imports/ui/components/versions/VersionEditor.js | KyneSilverhide/team-manager | import React from 'react';
import { FormGroup, ControlLabel, FormControl, Button } from 'react-bootstrap';
import FontAwesome from 'react-fontawesome';
import { browserHistory } from 'react-router';
import versionEditor from './version-editor.js';
import dateFaIcons from '../../../modules/date-fa-icons.js';
const back... |
src/svg-icons/maps/near-me.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsNearMe = (props) => (
<SvgIcon {...props}>
<path d="M21 3L3 10.53v.98l6.84 2.65L12.48 21h.98L21 3z"/>
</SvgIcon>
);
MapsNearMe = pure(MapsNearMe);
MapsNearMe.displayName = 'MapsNearMe';
MapsNearMe.muiName... |
ajax/libs/react-instantsearch/4.1.2/Dom.js | sashberd/cdnjs | /*! ReactInstantSearch 4.1.2 | © 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/app/views/oils.js | benigeri/soapee-ui | import React from 'react';
import DocMeta from 'react-doc-meta';
import GridOil from 'components/gridOil';
export default React.createClass( {
render() {
document.title = 'Soapee - Oils';
return (
<div id="oils">
<DocMeta tags={ this.tags() } />
<GridO... |
src/svg-icons/device/wifi-lock.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceWifiLock = (props) => (
<SvgIcon {...props}>
<path d="M20.5 9.5c.28 0 .55.04.81.08L24 6c-3.34-2.51-7.5-4-12-4S3.34 3.49 0 6l12 16 3.5-4.67V14.5c0-2.76 2.24-5 5-5zM23 16v-1.5c0-1.38-1.12-2.5-2.5-2.5S18 13.... |
src/components/pages/UserProfilePage/index.js | SIB-Colombia/biodiversity_catalogue_v2_frontend | import React from 'react';
import {PageTemplate, Header, Footer, UserProfile} from 'components';
// import {isAuthenticated, getUser} from '../../../auth';
// import * as FileService from '../../../services/FileService';
class UserProfilePage extends React.Component {
constructor(props) {
super(props);
thi... |
packages/vulcan-core/lib/modules/containers/create.js | VulcanJS/Vulcan | /*
Generic mutation wrapper to insert a new document in a collection and update
a related query on the client with the new item and a new total item count.
Sample mutation:
mutation createMovie($data: CreateMovieData) {
createMovie(data: $data) {
data {
_id
name
__typename
... |
public/client/lib/widgetRegistry.js | nearform/concorda-dashboard | 'use strict'
import React from 'react'
const _ = require('lodash')
var widgets = {}
var getWidget = function (user) {
//var PersonalAddress = React.createClass(require('../routes/editUser/components/personalAddressFields'))
//var OfficeAddress = React.createClass(require('../routes/editUser/components/officeAdd... |
jenkins-design-language/src/js/components/material-ui/svg-icons/av/pause-circle-outline.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvPauseCircleOutline = (props) => (
<SvgIcon {...props}>
<path d="M9 16h2V8H9v8zm3-14C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm1-4h2V8h-2v8z"/>
</SvgIcon>
);
AvPau... |
src/components/SvgStore/SvgStore.js | logger-app/logger-app | import React, { Component } from 'react';
// TODO ## Remove this temporary disable
/* eslint react/no-unknown-property:0 */
export default class SvgStore extends Component {
shouldComponentUpdate() {
// Should never update, doesn't receive any props
return false;
}
render() {
return (
<div>
... |
src/Parser/Core/Modules/CooldownTracker.js | mwwscott0/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import Module from 'Parser/Core/Module';
import Tab from 'Main/Tab';
import CooldownOverview from 'Main/CooldownOverview';
const debug = false;
export const BUILT_IN_SUMMARY_TYPES = {
HEALING: 'HEALING',
OVERHEALING: 'OVERHEALING',
ABSORBED: 'ABS... |
docs/src/app/components/pages/components/Divider/Page.js | kasra-co/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import dividerReadmeText from './README';
import DividerExampleForm from './Exam... |
client/components/MatchPage.js | oshirodk/dogMatch | import React from 'react';
import dogInformation from './dogInformation';
export default React.createClass({
render() {
return (
<div>
<h1>
Your top Match is...
<div>
<dogInformation />
</div>
</h1>
</div>
)
}
});
|
src/components/Main.js | ericfu88/humanapitestclient | require('normalize.css');
require('styles/App.css');
require('fetch');
var ActititySummary = require('./ActivitySummary');
var network = require('../utils/network');
import {Input, ButtonInput} from 'react-bootstrap';
import React from 'react';
var HumanApi = require('./HumanApi');
var AppComponent = React.createCla... |
modules/IndexLink.js | nvartolomei/react-router | import React from 'react'
import Link from './Link'
/**
* An <IndexLink> is used to link to an <IndexRoute>.
*/
const IndexLink = React.createClass({
render() {
return <Link {...this.props} onlyActiveOnIndex={true} />
}
})
export default IndexLink
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.