path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/navbar.js | mesqfel/react-blog | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import * as actions from '../actions';
class Navbar extends Component{
handleSignOut(){
this.props.signoutUser();
}
renderLinks(device){
if(this.props.authenticated){
... |
test/helpers/shallowRenderHelper.js | vijayee/Account-website | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | pmai6/pmai6.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'));
|
jenkins-design-language/src/js/components/material-ui/svg-icons/action/picture-in-picture.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionPictureInPicture = (props) => (
<SvgIcon {...props}>
<path d="M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98V5c0-1.1-.9-2-2-2zm0 16.01H3V4.98h18v14.03z"/>
</SvgIcon>
);
ActionPictureInPicture.display... |
src/client/components/exposerouter.react.js | lassecapel/este-isomorphic-app | import React from 'react';
// Higher order component exposing router.
// https://medium.com/@dan_abramov/mixins-are-dead-long-live-higher-order-components-94a0d2f9e750
export default function exposeRouter(Component) {
class ExposeRouter extends React.Component {
render() {
return <Component {...this.props... |
test/helpers/shallowRenderHelper.js | daibixiaohouzi/tangtang-image | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
app/components/Feedback/FeedbackForm.js | cdiezmoran/AlphaStage-desktop | // @flow
import React, { Component } from 'react';
import $ from 'jquery';
import toastr from 'toastr';
import swal from 'sweetalert';
import type { Game, Feedback } from '../../utils/globalTypes';
type Props = {
game: Game,
handleFeedback: (feedback: Feedback) => void,
userId: string
};
class FeedbackForm ext... |
src/routes/privacy/index.js | ImanMh/react-proto | /**
* 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 Layout from '../../co... |
examples/custom-pointer/src/index.js | casesandberg/react-color | import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
ReactDOM.render(
<App />,
document.getElementById('root'),
)
|
js/jqwidgets/demos/react/app/menu/defaultfunctionality/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxMenu from '../../../jqwidgets-react/react_jqxmenu.js';
import JqxCheckBox from '../../../jqwidgets-react/react_jqxcheckbox.js';
class App extends React.Component {
componentDidMount() {
this.refs.animation.on('change', (event) => {
... |
rest-ui-scripts/template/src/index.js | RestUI/create-rest-ui-app | import React from 'react';
import { render } from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import App from './App';
import './index.css';
injectTapEventPlugin();
render(<App />, document.getElementById('root'));
|
examples/counter/containers/CounterApp.js | hetony/redux-devtools | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Counter from '../components/Counter';
import * as CounterActions from '../actions/CounterActions';
class CounterApp extends Component {
render() {
const { counter, dispatch } = this... |
src/native/app/Root.js | VigneshRavichandran02/3io | /* @flow */
import App from './App';
import React from 'react';
import { MemoryRouter } from 'react-router';
import { Provider as Redux } from 'react-redux';
type Props = {
store: Object,
};
// Must be the ES6 class to ensure hot reload works for stateless components.
/* eslint-disable react/prefer-stateless-functi... |
website/core/WebPlayer.js | Livyli/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/frontend/screens/Invoice/delete.js | Koleso/invoicer | import React from 'react';
// Components
import { Grid, GridColumn } from 'components/Grid';
import Screen from 'components/Screen';
import Box from 'components/Box';
// Forms
import InvoiceContainer from 'containers/InvoiceContainer';
const DeleteInvoice = (props) => (
<Screen title="Faktury" pageTitle={`Faktura č... |
src/components/Header/index.js | nabigraphics/NCMS | import React, { Component } from 'react';
export default class Header_Index extends Component {
render() {
return (
<div className="Header">
{this.props.children}
</div>
);
}
} |
examples/flux-utils-todomvc/js/app.js | LeeChSien/flux | /**
* Copyright (c) 2014, 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
*/
'use s... |
packages/vulcan-voting/lib/containers/withVote.js | VulcanJS/Vulcan | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { graphql } from '@apollo/client/react/hoc';
import gql from 'graphql-tag';
import { performVoteClient } from '../modules/vote.js';
import { VoteableCollections } from '../modules/make_voteable.js';
export const withVote = component =... |
frontend/components/review/review_form_container.js | qydchen/SafeHavn | import React from 'react';
import { connect } from 'react-redux';
import ReviewForm from './review_form';
import { Link, withRouter } from 'react-router-dom';
import { closeModal } from '../../actions/modal_actions';
import { createReview } from '../../actions/review_actions';
const mapStateToProps = ({ session }) => ... |
src/frontend/web_application/server/express-react/create-engine.js | CaliOpen/CaliOpen | import React from 'react';
import ReactDOMServer from 'react-dom/server';
import template from '../../dist/server/template.html';
const renderTemplate = markup => [
{ key: '%MARKUP%', value: markup },
].reduce((str, current) => str.replace(current.key, current.value), template);
/**
* This engine uses react compon... |
fields/types/cloudinaryimages/CloudinaryImagesColumn.js | Tangcuyu/keystone | import React from 'react';
import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary';
import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue';
const moreIndicatorStyle =... |
src/client/story_list.js | damassi/hacker-menu | import React from 'react'
import Story from './story.js'
import _ from 'lodash'
export default class StoryList extends React.Component {
render () {
var onUrlClick = this.props.onUrlClick
var onMarkAsRead = this.props.onMarkAsRead
var storyNodes = _.map(this.props.stories, function (story, index) {
... |
pootle/static/js/admin/general/components/LiveEditor.js | r-o-b-b-i-e/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import _ from 'underscore';
im... |
example/examples/TakeSnapshot.js | jiaminglu/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
Image,
} from 'react-native';
import MapView from 'react-native-maps';
import flagBlueImg from './assets/flag-blue.png';
import flagPinkImg from './assets/flag-pink.png';
const { width, height } = Dimensions.get('win... |
src/routes/dashboard/components/cpu.js | zhangjingge/sse-antd-admin | import React from 'react'
import PropTypes from 'prop-types'
import styles from './cpu.less'
import { color } from '../../../utils'
import CountUp from 'react-countup'
import { LineChart, Line, XAxis, YAxis, CartesianGrid, ResponsiveContainer } from 'recharts'
const countUpProps = {
start: 0,
duration: 2.75,
use... |
classic/src/scenes/mailboxes/src/Scenes/SettingsScene/ProSettings/ProSettings.js | wavebox/waveboxapp | import PropTypes from 'prop-types'
import React from 'react'
import shallowCompare from 'react-addons-shallow-compare'
import { WaveboxWebView } from 'Components'
import { userStore } from 'stores/user'
import { withStyles } from '@material-ui/core/styles'
import classNames from 'classnames'
const styles = {
webview... |
resources/js/layout/Public.js | moeen-basra/laravel-react | //import libs
import React from 'react'
import PropTypes from 'prop-types'
// import components
import Navigation from '../common/navigation/index'
import ScrollTop from '../common/scroll-top/index'
import Footer from '../common/footer/index'
const containerStyle = {
paddingTop: '3.5rem',
}
const displayName = 'Pu... |
example/examples/CustomTiles.js | ksincennes/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
} from 'react-native';
import MapView, { MAP_TYPES, PROVIDER_DEFAULT } from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4... |
src/index.js | bryandesigning/ShippingInfo | import React from 'react';
import ReactDom from 'react-dom';
import { BrowserRouter } from 'react-router-dom'
import AppRoute from 'src/App/Route';
import configureStore from 'src/Redux/store';
import { Provider } from 'react-redux';
const store = configureStore();
ReactDom.render((
<Provider store={store}>
<Br... |
demo/GetNearestRectForPointDemo.js | rameshvk/j0 | 'use strict';
require('./GetNearestRectForPointDemo.less');
import BaseComponent from '../ux/BaseComponent.js';
import React from 'react';
import ReactDOM from 'react-dom';
import Demo from './Demo';
import DemoDescription from './DemoDescription.js';
import Movable from '../ux/Movable.js';
import MovableModel from '.... |
admin/client/components/Forms/EditForm.js | qwales1/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import moment from 'moment';
import ConfirmationDialog from './ConfirmationDialog';
import Fields from '../../fields';
import FormHeading from './FormHeading';
import AltText from './AltText';
import FooterBar from '../FooterBar';
import InvalidFieldTy... |
force_dir/node_modules/react-bootstrap/es/Tab.js | wolfiex/VisACC | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from 'babel-runtime/helpers/extends';
import React from 'react';
import TabContainer from... |
docs/app/Examples/modules/Popup/Variations/PopupExampleWide.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Icon, Popup } from 'semantic-ui-react'
const PopupExampleWide = () => (
<div>
<Popup trigger={<Icon circular name='heart' />} >
Hello. This is a regular pop-up which does not allow for lots
of content. You cannot fit a lot of words here as the
paragraphs will ... |
addons/events/src/components/Panel.js | enjoylife/storybook | import React, { Component } from 'react';
// import addons from '@storybook/addons';
import PropTypes from 'prop-types';
import { EVENTS } from '../constants';
import Event from './Event';
const styles = {
wrapper: {
margin: 10,
fontFamily: `
-apple-system, ".SFNSText-Regular", "San Francisco", "Robo... |
app/javascript/mastodon/features/compose/components/action_bar.js | dwango/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import DropdownMenuContainer from '../../../containers/dropdown_menu_container';
import { defineMessages, injectIntl } from 'react-intl';
const messages = defineMessages({
edit_profile: { id: 'a... |
src/components/Modal.js | elementalui/elemental | import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import { CSSTransitionGroup } from 'react-transition-group';
import blacklist from 'blacklist';
import classNames from 'classnames';
import createReactClass from 'create-react-class';
import { canUseDOM } from '../constant... |
src/svg-icons/navigation/menu.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationMenu = (props) => (
<SvgIcon {...props}>
<path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/>
</SvgIcon>
);
NavigationMenu = pure(NavigationMenu);
NavigationMenu.displayName = 'NavigationMenu';... |
src/app/components/Skipass.js | blobor/skipass.site | import React from 'react'
import isNil from 'lodash.isnil'
import SkipassInfo from './SkipassInfo'
import CircularProgress from 'material-ui/CircularProgress'
const Skipass = ({ skipass, error, isFetching = false }) => {
if (isFetching) {
return <CircularProgress size={90} thickness={5} />
} else if (!isNil(e... |
src/client/index.js | williammanco/PhongAshima | // @flow
import React from 'react'
import { render } from 'react-dom'
import Canvas from './canvas'
import state from 'shared_path/state'
require('font-awesome/css/font-awesome.css')
require('./assets/sass/main.sass')
export default class App extends React.Component {
componentWillMount(){
console.log('%c ||||... |
src/svg-icons/action/find-in-page.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFindInPage = (props) => (
<SvgIcon {...props}>
<path d="M20 19.59V8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c.45 0 .85-.15 1.19-.4l-4.43-4.43c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5... |
src/components/News/News.js | hanndbn/appDemo | import React from 'react';
import {Link} from 'react-router';
import '../../styles/home-page.css';
import {connect} from 'react-redux';
import Pagination from 'rc-pagination';
import '../../../node_modules/rc-pagination/assets/index.css';
import moment from 'moment';
import {bindActionCreators} from 'redux';
import * a... |
viewer/core/static/js/app/components/containers/app-container.js | openjck/distribution-viewer | import React from 'react';
import * as metricApi from '../../api/metric-api';
/**
* A container that does groundwork needed by several other components, like
* processing URL parameters.
*/
export default class extends React.Component {
constructor(props) {
super(props);
this._processProps(props);
}
... |
app/modules/common/pagination/last.js | theseushu/runcai | import React from 'react';
import IconButton from 'react-mdl/lib/IconButton';
export default (props) => <IconButton ripple name="last_page" {...props}>...</IconButton>;
|
src/svg-icons/action/settings-input-component.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsInputComponent = (props) => (
<SvgIcon {...props}>
<path d="M5 2c0-.55-.45-1-1-1s-1 .45-1 1v4H1v6h6V6H5V2zm4 14c0 1.3.84 2.4 2 2.82V23h2v-4.18c1.16-.41 2-1.51 2-2.82v-2H9v2zm-8 0c0 1.3.84 2.4 2 2.... |
test/Root.js | cantonjs/re-admin | import React, { Component } from 'react';
import * as offlineRuntime from 'offline-plugin/runtime';
import App from './App';
import { Alert, Spin, Icon } from 'antd';
export default class Root extends Component {
state = {
isReady:
navigator.serviceWorker &&
navigator.serviceWorker.controller &&
navigator.... |
src/utils/childUtils.js | igorbt/material-ui | import React from 'react';
export function extendChildren(children, extendedProps, extendedChildren) {
return React.Children.map(children, (child) => {
if (!React.isValidElement(child)) {
return child;
}
const newProps = typeof extendedProps === 'function' ?
extendedProps(child) : extendedPr... |
src/svg-icons/action/power-settings-new.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPowerSettingsNew = (props) => (
<SvgIcon {...props}>
<path d="M13 3h-2v10h2V3zm4.83 2.17l-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 ... |
Docker/KlusterKiteMonitoring/klusterkite-web/src/components/MigrationOperations/UpdateResources.js | KlusterKite/KlusterKite | import React from 'react';
import Relay from 'react-relay'
import Icon from 'react-fa';
import UpdateResourcesMutation from './mutations/UpdateResourcesMutation';
import './styles.css';
export class UpdateResources extends React.Component {
constructor(props) {
super(props);
this.state = {
isProcess... |
src/modules/Search/View-web/index.js | diegovargasg/reactjstest | //Component
import React from 'react';
import PropTypes from 'prop-types';
import Counter2 from '../../Counter2';
//Component events
var onChange = (e) => {
e.preventDefault();
};
const Counter = Counter2.Container;
//Component
const SearchView = ({fetchPosts, submit}) => {
return (
<form onSubmit={e => subm... |
client/js/components/pages/NotFound.js | x-team/x-map | import React, { Component } from 'react';
import { Link } from 'react-router';
import DocumentTitle from 'react-document-title';
class NotFound extends Component {
render() {
return (
<DocumentTitle title="Page Not Found | X-Map">
<article id="NotFound" className="page card">
<Link to="/"... |
client/index.js | Pennsy/todolist | import React from 'react'
import { render } from 'react-dom'
import App from './App'
import 'todomvc-app-css/index.css'
import { configureStore } from './store';
import { AppContainer } from 'react-hot-loader';
// Initialize store
const store = configureStore(window.__INITIAL_STATE__);
const mountApp = document.getEle... |
src/scenes/home/history/history.js | tskuse/operationcode_frontend | import React from 'react';
import Section from 'shared/components/section/section';
import QuoteBanner from 'shared/components/quoteBanner/quoteBanner';
import Timeline from './timeline/timeline';
const History = () => (
<div>
<QuoteBanner
author="Colin Powell"
quote="There are no secrets to success.... |
src/App.js | jrsalgado/web-app-demo | import React, { Component } from 'react';
import './App.css';
import superagent from 'superagent';
const giphy = {
start:'https://media.giphy.com/media/',
end: '/giphy.gif',
getId: (src) => src.replace(giphy.start,'').replace(giphy.end,''),
getURL: (id) => giphy.start + id + giphy.end
}
class App extends Comp... |
packages/reactor-kitchensink/src/examples/Charts/BoxPlot/BoxPlot.js | dbuhrman/extjs-reactor | import React, { Component } from 'react';
import { Container } from '@extjs/ext-react';
import { Cartesian } from '@extjs/ext-react-charts';
import ChartToolbar from '../ChartToolbar';
import data from './data';
Ext.require([
'Ext.chart.CartesianChart',
'Ext.chart.axis.Category',
'Ext.chart.axis.Numeric',
... |
src/svg-icons/image/straighten.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageStraighten = (props) => (
<SvgIcon {...props}>
<path d="M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H3V8h2v4h2V8h2v4h2V8h2v4h2V8h2v4h2V8h2v8z"/>
</SvgIcon>
);
ImageStr... |
src/containers/DevToolsWindow.js | realalexhomer/redux-react-todo | import React from 'react'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
export default createDevTools(
<LogMonitor />
)
|
fields/types/password/PasswordFilter.js | frontyard/keystone | import React from 'react';
import { SegmentedControl } from '../../../admin/client/App/elemental';
const EXISTS_OPTIONS = [
{ label: 'Is Set', value: true },
{ label: 'Is NOT Set', value: false },
];
function getDefaultValue () {
return {
exists: true,
};
}
var PasswordFilter = React.createClass({
propTypes:... |
src/svg-icons/device/battery-60.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBattery60 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V11h10V5.33z"/><path d="M7 11v9.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 ... |
client/lib/react-helpers/index.js | Kimsangcheon/wp-calypso | /**
* External dependencies
*/
import ReactDom from 'react-dom';
import React from 'react';
import { Provider as ReduxProvider } from 'react-redux';
export default {
renderWithReduxStore( reactElement, domContainer, reduxStore ) {
const domContainerNode = ( 'string' === typeof domContainer )
? document.getEle... |
src/routes/privacy/index.js | ACPK/react-starter-kit | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../co... |
src/routes/not-found/index.js | bobbybeckner/ha-catalyst-test | /**
* 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 Layout from '../../co... |
src/components/CompletedChallenges.js | jrzimmerman/bestrida-rn | import React from 'react';
import PropTypes from 'prop-types';
import {
Image,
FlatList,
RefreshControl,
StatusBar,
Text,
TouchableOpacity,
View
} from 'react-native';
import { connect } from 'react-redux';
import styles from '../styles/styles';
import * as challengeActions from '../actions/challenges';
... |
src/components/detailedbox.js | ereide/home_page_react | import React from 'react';
import { Row, Col, Image } from 'react-bootstrap';
/*
const box = (
<DetailedBox leftImage={false}
image={katta_uni}
heading = {""}
mutedheading = {""}
subheading = {""}
firstParagrap... |
src/parser/mage/fire/modules/features/HeatingUp.js | FaideWW/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import Analyzer, { SELECTED_PLAYER } from 'p... |
app/javascript/mastodon/features/ui/components/columns_area.js | blackle/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl } from 'react-intl';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ReactSwipeableViews from 'react-swipeable-views';
import { links, getIndex, get... |
src/admin/views/reset/password.js | ccetc/platform | import React from 'react'
import $ from 'jquery'
import { connect } from 'react-redux'
import * as actions from './actions'
class Password extends React.Component {
static contextTypes = {
flash: React.PropTypes.object,
router: React.PropTypes.object
}
static propTypes = {
error: React.PropTypes.st... |
risr-app/risr_proj/dashboard-fe/src/index.js | googleinterns/risr | /*
* Copyright 2020 Google LLC
*
* 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
*
* https: // www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
build/bundle.js | KutekGangster/MainWebsite | /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
components/ArticleReplyFeedbackControl/ArticleReplyFeedbackControl.stories.js | cofacts/rumors-site | import React from 'react';
import { MockedProvider } from '@apollo/react-testing';
import ArticleReplyFeedbackControl from './';
import { CREATE_REPLY_FEEDBACK } from './ArticleReplyFeedbackControl';
import { LOAD_FEEDBACKS } from './ReasonsDisplay';
import { USER_QUERY } from 'lib/useCurrentUser';
// Mocked objects
/... |
src/svg-icons/image/movie-creation.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageMovieCreation = (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>
);
ImageMovieCreati... |
src/svg-icons/toggle/radio-button-checked.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ToggleRadioButtonChecked = (props) => (
<SvgIcon {...props}>
<path d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3... |
examples/About.js | eriknyk/rforms | import React, { Component } from 'react';
//import logo from './logo.svg';
//import './App.css';
class About extends Component {
render() {
return (
<div>
<h1>About</h1>
</div>
);
}
}
export default About; |
src/client.js | brandondewitt/react-transform-boilerplate | import React from 'react';
import { render } from 'react-dom';
import { Router, Route, Link } from 'react-router';
import { Provider, connect } from 'react-redux';
import { store } from 'app/reducer';
import { ReduxRouter } from 'redux-router';
import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'... |
public/js/components/app.js | gonzochic/inox | import React from 'react';
import Overview from 'public/js/components/overview';
import Feed from 'public/js/components/feed';
import Navbar from 'public/js/components/navbar';
import Profile from 'public/js/components/profile';
import profileData from 'public/js/helper/profiledata'
import { Router, Route, Link } from... |
src/routes.js | radu-m/no-press-react | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import Home from './components/common/HomePage';
import App from './components/App';
export default (
<Route path="/" component={App} props={{data: {fds: 'sdgfsa'}}}>
<IndexRoute component={Home} />
</Route>
);
|
examples/auth-with-shared-root/components/Logout.js | taion/rrtr | import React from 'react'
import auth from '../utils/auth'
const Logout = React.createClass({
componentDidMount() {
auth.logout()
},
render() {
return <p>You are now logged out</p>
}
})
export default Logout
|
src/ReactReduxFirebaseProvider.js | prescottprue/react-redux-firebase | import React from 'react'
import PropTypes from 'prop-types'
import createFirebaseInstance from './createFirebaseInstance'
import ReactReduxFirebaseContext from './ReactReduxFirebaseContext'
import ReduxFirestoreProvider from './ReduxFirestoreProvider'
/**
* @description Provider for context containing extended fireb... |
src/Paper/Paper.js | rscnt/material-ui | import React from 'react';
import propTypes from '../utils/propTypes';
import transitions from '../styles/transitions';
function getStyles(props, context) {
const {
circle,
rounded,
transitionEnabled,
zDepth,
} = props;
const {
baseTheme,
paper,
} = context.muiTheme;
return {
ro... |
examples/js/manipulation/default-search-table.js | echaouchna/react-bootstrap-tab | /* eslint max-len: 0 */
/* eslint no-console: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
const fruits = [ 'banana', 'apple', 'orange', 'tomato', 'strawberries' ];... |
app/components/ProductBadge.js | Byte-Code/lm-digital-store-private-test | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { Map } from 'immutable';
import glamorous from 'glamorous';
import Image from './Image';
import { formatPrice } from '../utils/utils';
import { isNewOnMarket } from '../utils/marketingUtil... |
src/common/components/App.js | bopeng87/base_station_electron | import React from 'react';
export default ({children}) => {
return (
<div id="container">
{children}
</div>
);
}
|
client/components/map/bottombar/HelpRequestAccepted.js | LintLions/Respondr | import { connect } from 'react-redux';
import React, { Component } from 'react';
import {
View,
Text,
TouchableHighlight,
StyleSheet,
} from 'react-native';
import styles from '../../../styles/styles';
class HelpRequestAccepted extends Component {
constructor(props) {
super(props);
}
render() {
... |
app/containers/FlagModalContainer.js | waagsociety/tnl-relationizer | import React from 'react';
import { connect } from 'react-redux';
import FlagModal from '../components/FlagModal';
import api from '../utils/api';
import admin from '../utils/admin';
import { updateValue, toggleRelationFromTo, resetFlag } from '../actions/flag';
const FlagModalContainer = React.createClass({
compon... |
web/src/components/FileField.js | jaemk/transfer | import React from 'react';
import Form from 'react-bootstrap/lib/Form';
/**
* FileField
*
* @param title {string} - form field title
* @param domId {string} - id to assign to element
* @param disabled {boolean} - disable field
* @param required {boolean} - mark with a warning that field is required
*/
const Fi... |
src/collection/filterBar/collectionFilterBar.js | ikanedo/ecommerce-store-locator | import React from 'react';
import PropTypes from 'prop-types';
export default function CollectionFilterBar({ children, hasLocations }) {
if (!hasLocations) {
return null;
}
return (
<div className="collection-filter">
{children}
</div>
);
}
CollectionFilterBar.propTypes = {
hasLocations: ... |
fields/types/date/DateField.js | suryagh/keystone | import DateInput from '../../components/DateInput';
import Field from '../Field';
import moment from 'moment';
import React from 'react';
import { Button, InputGroup, FormInput } from 'elemental';
/*
TODO: Implement yearRange Prop, or deprecate for max / min values (better)
*/
const DEFAULT_INPUT_FORMAT = 'YYYY-MM-DD... |
threeforce/node_modules/react-bootstrap/es/Fade.js | wolfiex/VisACC | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import classNames from 'classnames';
import React fr... |
src/__tests__/fileMocks/multiUnnamed/Bold.js | react-cosmos/fs-playground | // @flow
import React, { Component } from 'react';
export default class Bold extends Component<{ name: string }> {
render() {
return <strong>{this.props.name}</strong>;
}
}
|
src/components/ChatApp/MessageComposer.react.js | isuruAb/chat.susi.ai | import * as Actions from '../../actions/';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Send from 'material-ui/svg-icons/content/send';
import Mic from 'material-ui/svg-icons/av/mic';
import UserPreferencesStore from '../../stores/UserPreferencesStore';
import MessageStore from '... |
client/scripts/application.js | hcchien/plate | import React from 'react';
import ReactDOM from 'react-dom';
import { Button, Form, FormField, FormInput } from 'elemental';
const App = React.createClass({
componentDidMount () {
ReactDOM.findDOMNode(this.refs.btn).focus();
},
gotoKeystone () {
window.location.href = '/keystone';
},
render () {
return (
... |
src/js/components/icons/base/SocialSkype.js | linde12/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... |
app/routes.js | hichameyessou/blip | import _ from 'lodash';
import React from 'react';
import { Route, IndexRoute } from 'react-router';
import AppComponent from './pages/app';
import BrowserWarning from './pages/browserwarning';
import ClinicianDetails from './pages/cliniciandetails';
import ConfirmPasswordReset from './pages/passwordreset/confirm';
im... |
src/components/ShareExperience/InterviewStepsForm/QAs/InterviewQas.js | goodjoblife/GoodJobShare | import React from 'react';
import PropTypes from 'prop-types';
import InterviewQa from './InterviewQa';
const InterviewQas = ({
interviewQas,
editQa,
removeQa,
submitted,
validator,
}) => (
<div>
{interviewQas.map((qa, i) => (
<div
key={qa.id}
style={{
marginBottom: '22... |
boilerplates/app/src/components/User/UserSearch.js | hexagonframework/antd-admin-cli | import React from 'react'
import PropTypes from 'prop-types'
import { Form, Row, Col, Input, Button } from 'antd'
const FormItem = Form.Item
const UserSearch = ({
keyword,
onSearch,
onReset,
form: {
getFieldDecorator,
validateFields,
getFieldsValue,
resetFields,
},
}) => {
function handleS... |
src/js/pages/Footer/index.js | trazyn/weweChat |
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import clazz from 'classname';
import classes from './style.css';
import Home from './Home';
import Contacts from './Contacts';
import Settings from './Settings';
export default class Footer extends Component {
render() {
... |
src/universal/pages/NotFound/index.js | sanchitgangwar/remind-plus | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import Typography from 'material-ui/Typography';
import LogoSmall from '../../../../assets/images/LogoSmall_131.png';
import styles from './index.css';
class NotFound extends Component {
render() {
return (
<di... |
admin/client/components/Lightbox.js | Ftonso/keystone | import React from 'react';
import blacklist from 'blacklist';
import Portal from './Portal';
import Transition from 'react-addons-css-transition-group';
const BODY = document.getElementsByTagName('body')[0];
var Lightbox = React.createClass({
displayName: 'Lightbox',
propTypes: {
backdropClosesModal: React.PropTy... |
src/index.js | neosepulveda/react-redux-weather-forecast | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import ReduxPromise from 'redux-promise';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware(... |
public/js/components/admin/graphs/tab.react.js | TRomesh/Coupley | /**
* Created by isuru on 3/17/16.
*/
import React from 'react';
import Tabs from 'material-ui/lib/tabs/tabs';
import Tab from 'material-ui/lib/tabs/tab';
import CustomerGraph from './customers.react';
import PieGraph from './pieChartCustomers.react';
import Item from './../graphs/adminPanel/admin.react';
import Se... |
docs/src/examples/elements/Segment/Groups/SegmentExampleRaisedSegments.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExampleRaisedSegments = () => (
<Segment.Group raised>
<Segment>Left</Segment>
<Segment>Middle</Segment>
<Segment>Right</Segment>
</Segment.Group>
)
export default SegmentExampleRaisedSegments
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.