path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
app/utils/injectSaga.js | rlagman/raphthelagman | import React from 'react';
import hoistNonReactStatics from 'hoist-non-react-statics';
import { ReactReduxContext } from 'react-redux';
import getInjectors from './sagaInjectors';
/**
* Dynamically injects a saga, passes component's props as saga arguments
*
* @param {string} key A key of the saga
* @param {funct... |
react/features/room-lock/components/PasswordRequiredPrompt.web.js | parisjulien/arkadin-jitsimeet | /* global APP */
import AKFieldText from '@atlaskit/field-text';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import UIEvents from '../../../../service/UI/UIEvents';
import { setPassword } from '../../base/conference';
import { Dialog } from '../../base/dialog';
import { translate... |
src/Fade.js | asiniy/react-bootstrap | import React from 'react';
import Transition from './Transition';
class Fade extends React.Component {
render() {
return (
<Transition
{...this.props}
className='fade'
enteredClassName='in'
enteringClassName='in'
>
{this.props.children}
</Transition>
... |
components/side-to-side/side-to-side.js | craigbilner/clash-of-animations | import React, { Component } from 'react';
import radium from 'radium';
class SideToSideComponent extends Component {
constructor(props) {
super(props);
const upAndDown = radium.keyframes({
'0%': {
transform: 'translateX(0)',
},
'100%': {
transform: 'translateX(5em)',
... |
node_modules/react-router/es/Router.js | webtutorial/builder | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _classCallCheck(instance, Constructor) { if (!(insta... |
client/forms/inputBaseLib.js | Cellarise/cell-cycle | "use strict";
import React from 'react';
import PropTypes from 'prop-types';
import R from 'ramda';
import classnames from 'classnames';
import ErrorMessageBase from './errorMessageBase.jsx';
import CharacterCounter from './characterCounter.jsx';
export function renderInputGroup(props, children) {
let inputGroupTab... |
newclient/scripts/components/user/dashboard/review-table/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
Lic... |
actor-apps/app-web/src/app/components/sidebar/ContactsSectionItem.react.js | chieryw/actor-platform | import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import DialogActionCreators from 'actions/DialogActionCreators';
import AvatarItem from 'components/common/AvatarItem.react';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class ... |
src/app/components/activities/components/Notification.js | backpackcoder/world-in-flames | import React from 'react'
import classnames from 'classnames'
let Notification = React.createClass({
render: function () {
let item = this.props.item;
return (
<span className="padding-10">
<em className="badge padding-5 no-border-radius bg-color-blueLight pull-left marg... |
frontend/teg-web-ui/src/printer/manualControl/jog/JogDistanceButtons.js | tegh/tegh-daemon | import React from 'react'
import Grid from '@mui/material/Grid'
import Button from '@mui/material/Button'
import useStyle from './JogButtonDistanceButtons.styles'
const JogDistanceButtons = ({
className,
style,
distanceOptions,
input,
}) => {
const classes = useStyle()
return (
<Grid item xs={12} cl... |
client/src/App.js | tonyhualiu/grouping-app | import React, { Component } from 'react';
import injectTapEventPlugin from 'react-tap-event-plugin';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import MultiBackend from 'react-dnd-multi-backend';
import HTML5toTouch from 'react-dnd-multi-backend/lib/HTML5toTouch';
import { DragDropContext } f... |
src/svg-icons/action/settings-remote.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsRemote = (props) => (
<SvgIcon {...props}>
<path d="M15 9H9c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V10c0-.55-.45-1-1-1zm-3 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM7.05 6.05l1.41... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/PropsNotDefinedButUsed.js | ylu1317/flow | // @flow
import React from 'react';
class MyComponent1 extends React.Component {
state: State = {
initialValue: this.props.value,
};
}
class MyComponent2 extends React.Component {
render() {
return this.props.children;
}
}
class MyComponent3 extends React.Component {
render() {
const props = {... |
examples/async/containers/Root.js | Bernardstanislas/redux | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import configureStore from '../store/configureStore';
import AsyncApp from './AsyncApp';
const store = configureStore();
export default class Root extends Component {
render() {
return (
<Provider store={store}>
{() ... |
src/components/spinner.js | LINKIWI/react-elemental | import PropTypes from 'prop-types';
import React from 'react';
import { withCSS } from '@linkiwi/hoc';
import { colors } from 'styles/color';
const sizeMap = {
alpha: '26px',
beta: '18px',
gamma: '12px',
delta: '8px',
};
const Spinner = ({
size,
ringColor,
accentColor = colors.primary,
duration,
thi... |
example/App.js | nkbt/react-debounce-input | import React from 'react';
import {Controllable} from './Controllable';
import {Customizable} from './Customizable';
import {UndoRedo} from './UndoRedo';
import {Textarea} from './Textarea';
import {Ref} from './Ref';
import {DefaultValue} from './DefaultValue';
export function App() {
return (
<div className="... |
src/components/App.js | d0ublegunz/hello-world | import React from 'react';
import Header from './Header';
import ContestList from './ContestList';
import Contest from './Contest';
const pushState = (obj, url) =>
window.history.pushState(obj, '', url);
class App extends React.Component {
state = {
pageHeader: 'Naming Contests',
contests: this.props.init... |
js/jqwidgets/demos/react/app/dropdownbutton/defaultfunctionality/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxDropDownButton from '../../../jqwidgets-react/react_jqxdropdownbutton.js';
import JqxTree from '../../../jqwidgets-react/react_jqxtree.js';
import JqxCheckBox from '../../../jqwidgets-react/react_jqxcheckbox.js';
class App extends React.Component
... |
app/routes.js | tw00089923/kcr_bom | // @flow
import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './containers/App';
import HomePage from './containers/HomePage';
import CounterPage from './containers/CounterPage';
import Bom from './containers/Bom';
export default (
<Route path="/" component={App}>
<Index... |
Realization/frontend/czechidm-core/src/content/identity/IdentityDashboard.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import uuid from 'uuid';
//
import * as Basic from '../../components/basic';
import * as Advanced from '../../components/advanced';
import * as Utils from '../../utils';
import { IdentityManager, DataManager, Configura... |
src/routes/Counter/components/Counter.js | arcsin037/RGPP-React | import React from 'react'
export const Counter = (props) => (
<div style={{ margin: '0 auto' }} >
<h2>Counter: {props.counter}</h2>
<button className='btn btn-default' onClick={props.increment}>
Increment
</button>
{' '}
<button className='btn btn-default' onClick={props.doubleAsync}>
... |
app/javascript/mastodon/components/autosuggest_hashtag.js | ashfurrow/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ShortNumber from 'mastodon/components/short_number';
import { FormattedMessage } from 'react-intl';
export default class AutosuggestHashtag extends React.PureComponent {
static propTypes = {
tag: PropTypes.shape({
name: PropTypes.string... |
src/features/tab-view/home/index.js | rldona/react-native-tab-view-seed | import React, { Component } from 'react';
import {
ListView,
View,
StyleSheet,
ScrollView,
InteractionManager
} from 'react-native';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import * as historialActions from '../../../redux/actions/historialActions';
import * as fireba... |
node_modules/react-bootstrap/es/SplitButton.js | vitorgomateus/NotifyMe | 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... |
src/containers/auth/AuthenticateView.js | GlenHughes/thegymbuddy | /**
* 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/components/A.js | mikebarkmin/gestyled | import React from 'react';
import withStyle from './Base';
import { Link } from 'react-router-dom';
let reactRouterDom;
try {
reactRouterDom = require('react-router-dom');
} catch (e) {}
const A = ({ href, ...props }) => {
if (reactRouterDom && Link in reactRouterDom && !('http' in href)) {
const Link = react... |
addons/themes/phantom/layouts/Blog.js | rendact/rendact | import React from 'react'
import Header from '../includes/Header';
import FooterWidgets from '../includes/FooterWidgets';
import MenuItems from '../includes/MenuItems';
import Footer from '../includes/Footer';
class Single extends React.Component {
componentDidMount(){
require("../css/style.css")
document.bo... |
src/components/Boat/index.js | albertfdp/battleship | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import styles from './styles.css';
const times = n => {
let array = [];
for (let i = 0; i < n; i++) {
array.push(i);
}
return array;
};
const Boat = ({ player, size, score }) => {
return (
<div cla... |
src/index.js | herman113/workouts | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
src/App.js | XanderXAJ/ktane-password-solver | import React, { Component } from 'react';
import './App.css';
const PASSWORD_LENGTH = 5;
const PASSWORDS = ["about", "after", "again", "below", "could", "every", "first", "found", "great", "house", "large", "learn", "never", "other", "place", "plant", "point", "right", "small", "sound", "spell", "still", "study", "the... |
examples/draft-0-9-1/tex/js/components/TeXEditorExample.js | tonygentilcore/draft-js | /**
* Copyright (c) 2013-present, Facebook, Inc. All rights reserved.
*
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCL... |
components/ProjectPage/ProjectPage.js | EvanSimpson/evansimpson.github.io | import React, { Component } from 'react';
import ExternalLink from '../ExternalLink/ExternalLink';
import styles from './ProjectPage.module.css';
class ProjectPage extends Component {
render() {
return (
<article className={ styles.container }>
<header>
<h1>
{ this.props.tit... |
docs/src/new-components/basics/tooltip/TooltipMessage.stories.js | storybooks/react-storybook | import React from 'react';
import { storiesOf } from '@storybook/react';
import WithTooltip from './WithTooltip';
import TooltipMessage from './TooltipMessage';
storiesOf('basics/tooltip/TooltipMessage', module)
.addParameters({
component: TooltipMessage,
})
.addDecorator(storyFn => (
<div style={{ heig... |
src/components/atoms/button.js | jameslutley/jameslutley.com | import React from 'react'
import PropTypes from 'prop-types'
import Link from 'gatsby-link'
import styled from 'react-emotion'
import t from 'tachyons-js'
const ButtonLink = styled(Link)`
${t.ba};
${t.border_box};
${t.ttu};
${t.no_underline};
padding: calc(${props => props.theme.spacingSmallMedium} - 1px) ca... |
docs/src/app/components/pages/components/Dialog/ExampleAlert.js | ruifortes/material-ui | import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui/RaisedButton';
/**
* Alerts are urgent interruptions, requiring acknowledgement, that inform the user about a situation.
*/
export default class DialogExampleAler... |
frontend/app_v2/src/common/icons/Alphabet.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
/**
* @summary Alphabet
* @component
*
* @param {object} props
*
* @returns {node} jsx markup
*/
function Alphabet({ styling }) {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" className={styling}>
<title>Alphabet</tit... |
src/app/controllers/Planet.js | maullerz/eve-react | import React from 'react'
import {connect} from 'react-redux'
import {unmountPlanet, getScheme, updFalse, updPrice, recalculate} from '../actions/planetActions'
import {setHead} from '../actions/appActions'
import {map} from 'lodash'
// components
import TableResourses from './../components/resourses/planet/Tables'
im... |
app/javascript/mastodon/features/ui/components/boost_modal.js | kirakiratter/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Button from '../../../components/button';
import StatusContent from '../../../components/status_content';
import Av... |
examples/star-wars/js/components/StarWarsShip.js | almasakchabayev/relay | /**
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNES... |
src/popup/index.js | fluany/fluany | /**
* @fileOverview The application main to the popup.
* @name index.js<popup>
* @license GNU General Public License v3.0
*/
import React from 'react'
import App from './containers/App'
import configureStore from './store/configureStore'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
imp... |
src/components/HelpCopy.js | clhenrick/nyc-crash-mapper | import React from 'react';
const HelpCopy = () => (
<div className="help-panel">
<table>
<tbody>
<tr>
<td>
<iframe
title="Help-Navigation"
src="https://player.vimeo.com/video/254240475"
width="480"
height="270"
... |
modules/accessCheckDecorator.js | knyga/react-router-access | import React, { Component } from 'react';
import _ from 'lodash';
export const defaultNegativeRender = () => null;
const accessClassCheckDecorator = (Target, decorationFunction, negativeRender) => {
class DecoratedComponent extends Component {
render() {
if (!decorationFunction(this.props, this.state)) {
... |
app/javascript/mastodon/components/button.js | sylph-sin-tyaku/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default class Button extends React.PureComponent {
static propTypes = {
text: PropTypes.node,
onClick: PropTypes.func,
disabled: PropTypes.bool,
block: PropTypes.bool,
secondary: PropTypes.... |
webpack/components/AddedStatusLabel.js | snagoor/katello | import React from 'react';
import PropTypes from 'prop-types';
import { Label } from '@patternfly/react-core';
import { CheckCircleIcon } from '@patternfly/react-icons';
import { translate as __ } from 'foremanReact/common/I18n';
import InactiveText from '../scenes/ContentViews/components/InactiveText';
const AddedSta... |
src/components/common/main/Main.js | seyade/loggent | import React from 'react';
import { Link, Router, Route, Redirect, Switch } from 'react-router-dom';
import HomePage from '../../home/HomePage';
import RolesPage from '../../role/RolesPage';
const Main = (props) => {
return (
<div className="loggent-app">
<Switch>
<Route exact path="/" component={... |
app/javascript/mastodon/components/status.js | KnzkDev/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from './avatar';
import AvatarOverlay from './avatar_overlay';
import AvatarComposite from './avatar_composite';
import RelativeTimestamp from './relative_timestamp';
import DisplayNa... |
src/components/Search/Search.legacy.js | wfp/ui | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import classNames from 'classnames';
import Icon from '../Icon';
import { iconSearch, iconCloseGlyph } from '@wfp/icons';
import Input from '../Input/Input';
/** Search enables users to specify a word or a phrase to find particular relevant ... |
js/src/Decorators/Link/index.js | understory-dev/react-draft-wysiwyg | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from './styles.css'; // eslint-disable-line no-unused-vars
import openlink from '../../../../images/openlink.svg';
function findLinkEntities(contentBlock, callback, contentState) {
contentBlock.findEntityRanges(
(characte... |
project/src/scenes/Admin/Content/ContentType/CreateContainer.js | boldr/boldr | /* @flow */
// import React, { Component } from 'react';
import { connect } from 'react-redux';
import { graphql } from 'react-apollo';
import CREATE_CONTENT_TYPE_MUTATION from '../gql/createContentType.graphql';
import CreateContentType from './CreateContentType';
// $FlowIssue
const withMutation = graphql(CREATE_CON... |
client/pages/Page404.js | rockchalkwushock/photography-frontend | import React from 'react';
import { withTranslate } from 'react-redux-multilingual';
const Page404 = ({ translate }) => (
<div className="page404">
<h1>{translate('404')}</h1>
</div>
);
export default withTranslate(Page404);
|
src/components/views/messages/MessageTimestamp.js | aperezdc/matrix-react-sdk | /*
Copyright 2015, 2016 OpenMarket Ltd
Copyright 2018 Michael Telatynski <7t3chguy@gmail.com>
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 ... |
Commentsinglereply.js | sharjilk/Comment-widget-using-react | import React from 'react';
class Commentsinglereply extends React.Component{
render(){
console.log(this.props.comments);
return <div className="col-lg-12">
<strong className="pull-left primary-font">{this.props.comments.name}</strong>
<small className="pull-right text-muted">
... |
app/packs/src/components/elements/ElementFieldDropTarget.js | ComPlat/chemotion_ELN | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { DropTarget } from 'react-dnd';
import DragDropItemTypes from '../DragDropItemTypes';
const fieldTarget = {
drop(targetProps, monitor) {
const targetTag = { field: targetProps.field, layerKey: targetProps.layerKey };
const ... |
pootle/static/js/admin/components/Project/ProjectController.js | phlax/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 Search from '../Search'... |
src/js/components/ui/Breadcrumbs.js | knowncitizen/tripleo-ui | /**
* Copyright 2018 Red Hat 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... |
app/components/sidebar/SiteMapIcon.js | BenGoldstein88/hitch-frontend | import React from 'react';
export default class SiteMapIcon extends React.Component {
render() {
return (
<div style={{
// border: '1px red solid',
height: '33.3%',
// width: '250px',
marginTop: '.5%',
backgroundRepeat: 'no-repeat',
backgroundImage: 'url("../../... |
src/client/components/console/shortcuts/shortcutTable.js | uuchat/uuchat | import React, { Component } from 'react';
import { Table } from 'antd';
import ActionDropDown from '../common/actionDropDown';
import { emptyTableLocale } from '../common/constants';
import { sortFilterByProps, formatDate } from '../common/utils';
export default class ShortcutTable extends Component {
renderActio... |
src/components/yourGroups.js | SwimmyApp/project-swimmy-mockup | import React from 'react';
import {observer} from 'mobx-react';
import GroupListItem from './groupListItem';
import DevTool from 'mobx-react-devtools';
@observer
export default class YourGroups extends React.Component {
render() {
const {rootStore} = this.props;
const user = rootStore.userStore.user;
c... |
src/Components/Footer/index.js | gabriel-lopez-lopez/gll-billin-code-challenge | /**
* Componente pie de la aplicación
*
*/
import React, { Component } from 'react';
class Footer extends Component {
render () {
return (
<footer>
<p>
<span>© 2017</span>
<span>
<a href="https://github.com... |
src/routes/academia/academiaArticleList/index.js | ykx456654/hr_admin | import React from 'react'
import PropTypes from 'prop-types'
import { Link,router } from 'dva/router'
import { connect } from 'dva'
import {
Button,
Pagination,
Table,
Icon,
Modal
} from 'antd'
import style from '../academia.less'
function academiaArticleList ({ academia,dispatch }) {
const... |
src/svg-icons/communication/no-sim.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationNoSim = (props) => (
<SvgIcon {...props}>
<path d="M18.99 5c0-1.1-.89-2-1.99-2h-7L7.66 5.34 19 16.68 18.99 5zM3.65 3.88L2.38 5.15 5 7.77V19c0 1.1.9 2 2 2h10.01c.35 0 .67-.1.96-.26l1.88 1.88 1.27-1.... |
stories/components/accordian/index.js | hollomancer/operationcode_frontend | import React from 'react';
import { storiesOf } from '@storybook/react';
import Accordian from 'shared/components/accordian/accordian';
import AccordianItem from 'shared/components/accordian/accordianItem/accordianItem';
storiesOf('shared/components/accordian', module)
.add('Default', () => (
<Accordian>
... |
src/client.js | egut/react-docker-demo | /**
* 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 ReactDOM from 'react-... |
src/svg-icons/image/edit.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageEdit = (props) => (
<SvgIcon {...props}>
<path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/>
... |
frontend/src/pages/org-admin/org-user-item.js | miurahr/seahub | import React from 'react';
import PropTypes from 'prop-types';
import { Dropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap';
import { gettext, siteRoot, orgID, username } from '../../utils/constants';
import { seafileAPI } from '../../utils/seafile-api';
import { Utils } from '../../utils/utils';
i... |
src/components/menus/index.js | guzmonne/react-pure-css | require('./menus.css')
import React from 'react'
import classnames from 'classnames'
import DefaultMenu from './Menu.js'
import Item from './Item.js'
import MenuHeading from './MenuHeading.js'
const Menu = DefaultMenu
export {Menu, Item, MenuHeading} |
app/components/Jumbotron/index.js | benz2012/cat-meow-side | import React from 'react'
export default function Jumbotron({children}) {
return (
<div className="jumbotron">
<h1>Cats Meow Side</h1>
<p>How Bow Dat</p>
<p>
<a className="btn btn-primary"
target='_blank'
href='https://github.com/benz2012/cat-meow-side'>
<i... |
demo/button/button.js | darkyen/react-mdl | import React from 'react';
import Button from '../../src/Button';
import FABButton from '../../src/FABButton';
import IconButton from '../../src/IconButton';
import Icon from '../../src/Icon';
class Demo extends React.Component {
render() {
return (
<div>
<h1>Colored FAB Button<... |
src/components/Region.js | NuCivic/react-dashboard | /**
* @@DEPRECATED
* @@DEPRECATED
* @@DEPRECATED
*
* All of this functionality has been moved
* to the Dashboard component
*/
import React, { Component } from 'react';
import Registry from '../utils/Registry';
import { DataHandler } from '../ReactDashboard';
import Card from './Card';
import { pick } from 'loda... |
examples/huge-apps/routes/Course/routes/Announcements/routes/Announcement/components/Announcement.js | wmyers/react-router | import React from 'react';
class Announcement extends React.Component {
//static loadProps (params, cb) {
//cb(null, {
//announcement: COURSES[params.courseId].announcements[params.announcementId]
//});
//}
render () {
//var { title, body } = this.props.announcement;
var { courseId, annou... |
src/index.js | raydecastro/shotokan | import 'bootstrap/dist/css/bootstrap.min.css';
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, browserHistory } from 'react-router'
import ShotokanPage from './ShotokanPage';
import KataPage from './KataPage';
browserHistory.listen( location => {
window.ga('send', 'pageview', l... |
src/containers/loading/loading_state.js | zerilliworks/snax | import React from 'react'
import ReactDOM from 'react-dom'
import _ from 'lodash'
const isNotEmpty = _.negate(_.isEmpty)
const LoadingState = React.createClass({
render() {
if(isNotEmpty(this.props.children)) {
return this.props.children
}
else {
return (
<div className={this.props.c... |
src/teaser-publish-date.js | economist-components/component-teaser | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import moment from 'moment-timezone';
export default function TeaserPublishDate({
className,
format = 'MMM Do YYYY, hh:mm:ss',
dateTime,
meta = false,
}) {
dateTime = new Date(dateTime);
const formatedDate =... |
docs/src/IntroductionPage.js | laran/react-bootstrap | import React from 'react';
import CodeExample from './CodeExample';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
const IntroductionPage = React.createClass({
render() {
return (
<div>
<NavMain activePage="introduction" />
<... |
HM2/test/support/mocks/react-native.js | StefanWallin/hm | import React from 'react';
function mockViewComponent(type) {
const Component = React.createClass({
displayName: type,
propTypes: { children: React.PropTypes.node },
render() { return React.DOM.div(this.props, this.props.children); },
});
return Component;
}
export const View = mockViewComponent('V... |
src/options.js | pd4d10/cpu-monitor | import React from 'react'
import { render } from 'react-dom'
import { storage } from './utils'
class Options extends React.Component {
state = {
ready: false,
popup: {},
}
setParams = params => {
const result = { ...this.state.popup, ...params }
this.setState({ popup: result }, () => {
sto... |
app/react-icons/fa/bullseye.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaBullseye extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m25.9 20q0 2.4-1.7 4t-4.1 1.7-4-1.7-1.7-4 1.7-4 4-1.7 4.1 1.7 1.7 4z m2.8 0... |
src/symbol.js | weaintplastic/react-sketchapp | import React from 'react';
import PropTypes from 'prop-types';
import type { SJSymbolMaster } from 'sketchapp-json-flow-types';
import { fromSJSONDictionary, toSJSON } from 'sketchapp-json-plugin';
import StyleSheet from './stylesheet';
import { generateID } from './jsonUtils/models';
import ViewStylePropTypes from './... |
src/Parser/Hunter/Survival/Modules/Items/UnseenPredatorsCloak.js | hasseboulen/WoWAnalyzer | import React from 'react';
import ITEMS from 'common/ITEMS';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import Wrapper from 'common/Wrapper';
import Enemies from 'Parser/Core... |
source/components/common/Header.js | raydecastro/express-react-redux-starter | import React from 'react';
import { Link, IndexLink } from 'react-router';
const Header = () => {
return (
<header>
<h1>Express React Redux Starter</h1>
<nav>
<IndexLink to="/" activeClassName="active">Home</IndexLink>
{" | "}
<Link to="/courses" activeClassName="active">Cours... |
views/decoration_toggle.js | Thundabrow/black-screen | import React from 'react';
export default React.createClass({
getInitialState() {
return {enabled: this.props.invocation.state.decorate};
},
handleClick(event) {
stopBubblingUp(event);
var newState = !this.state.enabled;
this.setState({enabled: newState});
this.prop... |
src/text/plaintextblock.js | govau/service-manual | import PropTypes from 'prop-types';
import Slugify from 'slugify';
import React from 'react';
/**
* The plaintextblock component
*/
const Plaintextblock = ( page ) => {
// replace <p> with /n
let template = page._body.props.dangerouslySetInnerHTML.__html.replace(/<\/p[\s\/]*>/gm, "\n");
// strip other tags
tem... |
src/widgets/TextField.js | anysome/objective | /**
* Created by Layman(http://github.com/anysome) on 16/3/3.
*/
import React from 'react'
import {TextInput, StyleSheet} from 'react-native'
import {colors} from '../views/styles'
export default class TextField extends React.Component {
constructor(props) {
super(props);
this._input = null;
this.valu... |
packages/editor/src/components/Controls/Embedded/EmbeddedLayout.js | strues/boldr | /* @flow */
import React from 'react';
import type { Node } from 'react';
import cn from 'classnames';
import { Video } from '../../Icons';
import { stopPropagation } from '../../../utils/common';
import Option from '../../Option';
export type Props = {
expanded: boolean,
onExpandEvent: Function,
doCollapse: Fu... |
src/svg-icons/places/pool.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesPool = (props) => (
<SvgIcon {...props}>
<path d="M22 21c-1.11 0-1.73-.37-2.18-.64-.37-.22-.6-.36-1.15-.36-.56 0-.78.13-1.15.36-.46.27-1.07.64-2.18.64s-1.73-.37-2.18-.64c-.37-.22-.6-.36-1.15-.36-.56 0-.78... |
docs/app/Examples/collections/Grid/ResponsiveVariations/GridExampleReversedMobileVertically.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Grid } from 'semantic-ui-react'
const GridExampleReversedMobileVertically = () => (
<Grid reversed='mobile vertically'>
<Grid.Row>
<Grid.Column>Mobile Row 4</Grid.Column>
</Grid.Row>
<Grid.Row>
<Grid.Column>Mobile Row 3</Grid.Column>
</Grid.Row>
<Gri... |
docs/src/pages/components/rating/HoverRating.js | lgollut/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Rating from '@material-ui/lab/Rating';
import Box from '@material-ui/core/Box';
const labels = {
0.5: 'Useless',
1: 'Useless+',
1.5: 'Poor',
2: 'Poor+',
2.5: 'Ok',
3: 'Ok+',
3.5: 'Good',
4: 'Good+',
4.5: 'Excelle... |
src/public/client.js | Fenykepy/simplepass | // import a promise polyfill
require('es6-promise').polyfill();
// import less files
require('less/controller.less')
import React from 'react'
import { render } from 'react-dom'
import { getCookie } from 'cookie-manager'
import { Provider } from 'react-redux'
import { createStoreWithMiddleware } from 'public/store'
... |
actor-apps/app-web/src/app/components/modals/CropAvatar.react.js | gaolichuang/actor-platform | /*
* Copyright (C) 2015 Actor LLC. <https://actor.im>
*/
import React, { Component } from 'react';
import { Container } from 'flux/utils';
import classnames from 'classnames';
import { dataURItoBlob } from 'utils/ImageUtils';
import Modal from 'react-modal';
import { KeyCodes } from 'constants/ActorAppConstants';
... |
docs/app/Examples/views/Comment/index.js | mohammed88/Semantic-UI-React | import React from 'react'
import Content from './Content'
import Types from './Types'
import States from './States'
import Variations from './Variations'
const CommentExamples = () => (
<div>
<Types />
<Content />
<States />
<Variations />
</div>
)
export default CommentExamples
|
src/parser/priest/shadow/modules/talents/AuspiciousSpirits.js | FaideWW/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS/index';
import { formatNumber } from 'common/format';
import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox';
import ItemDamageDone from 'interface/others/ItemDamageDone';
cons... |
src/svg-icons/device/signal-wifi-1-bar.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi1Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M6.67 14.86L12 21.49v.01... |
app/javascript/mastodon/features/list_adder/components/list.js | kazh98/social.arnip.org | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import IconButton from '../../../components/icon_button';
import { defineMessages, inject... |
src/components/LandingPages/Events/Group/presenter.js | ndlib/usurper | import React from 'react'
import PropTypes from 'prop-types'
import LandingPageWrapper from '../../Wrapper'
import EventCard from 'components/EventCard'
const Presenter = (props) => {
return (
<LandingPageWrapper
linkPath={'/events' + props.location.search}
linkText='Current Events'
pageTitle=... |
src/components/renderCheckboxes.js | Johj/cqdb | import React from 'react';
import {
Checkbox,
Col,
ControlLabel,
Form,
FormGroup,
} from 'react-bootstrap';
function renderCheckbox(handleCheckbox, checkboxFilters, category, label) {
const isChecked = checkboxFilters[category][label];
return (
<Checkbox defaultChecked={isChecked} inline key={`${labe... |
src/components/Reviews/Reviews.stories.js | Galernaya20/galernaya20.com | //@flow
import React from 'react'
import {storiesOf} from '@storybook/react'
import {Reviews} from './Reviews'
import fixture from '../pages/Studio/fixture'
const oneReview = [fixture.reviews[0]]
storiesOf('Reviews', module)
.add('one review', () => <Reviews reviews={oneReview} />)
.add('many reviews', () => <Revi... |
test/helpers/render.js | troybetz/react-soundcloud-widget | /**
* Module dependencies
*/
import expect from 'expect';
import proxyquire from 'proxyquire';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
/**
* Stub out SoundCloud
*/
function setup() {
const widgetStub = {
load: expect.createSpy(),
bin... |
lib/ui/src/modules/ui/components/stories_panel/text_filter.js | rhalff/storybook | import PropTypes from 'prop-types';
import React from 'react';
import { polyfill } from 'react-lifecycles-compat';
import debounce from 'lodash.debounce';
import { baseFonts } from '@storybook/components';
const defaultTextValue = '';
const mainStyle = {
...baseFonts,
border: '1px solid #ECECEC',
borderRadius: ... |
app/javascript/mastodon/features/status/components/action_bar.js | MitarashiDango/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import IconButton from '../../../components/icon_button';
import ImmutablePropTypes from 'react-immutable-proptypes';
import DropdownMenuContainer from '../../../containers/dropdown_menu_container';
import { defineMess... |
app/index.js | ClearwaterClinical/cwc-react-redux-starter | import React from 'react'
import 'babel-polyfill'
import { render } from 'react-dom'
import Root from './containers/Root'
import configureStore from './store/configureStore'
const store = configureStore()
render(
<Root store={store} />,
document.getElementById('root')
)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.