path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
examples/inbox.js | marudhupandiyang/react-hold-button | import React from 'react';
import HoldButton from '../main';
require('./inbox.scss');
class Inbox extends React.Component {
constructor(props) {
super(props);
this.state = {
messages: [
{
subject: 'Party at 8 today',
time: '4:00 PM',
id: 1,
},
{
... |
fields/explorer/components/FieldSpec.js | vokal/keystone | import Domify from 'react-domify';
import React from 'react';
import { Form } from '../../../admin/client/App/elemental';
import Col from './Col';
import Row from './Row';
const ExplorerFieldType = React.createClass({
getInitialState () {
return {
filter: this.props.FilterComponent.getDefaultValue(),
value: ... |
src/svg-icons/av/video-library.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVideoLibrary = (props) => (
<SvgIcon {...props}>
<path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8 12.5v-9l6 4.5-6 4.5z"/>
</SvgIcon>... |
ui/src/containers/WaypointForm/index.js | LearningLocker/learninglocker | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Map, List } from 'immutable';
import isEmpty from 'lodash/isEmpty';
import Switch from 'ui/components/Material/Switch';
import QueryBuilder from 'ui/containers/QueryBuilder';
class WaypointForm extends Component {
static propTypes... |
app/assets/scripts/components/join-fold.js | openaq/openaq.github.io | 'use strict';
import React from 'react';
import { Link } from 'react-router';
var JoinFold = React.createClass({
displayName: 'JoinFold',
render: function () {
return (
<section className='join-fold'>
<div className='inner'>
<header className='join-fold__header'>
<h1 classN... |
src/SelectBox/SelectBox.js | abouthiroppy/scuba | // @flow
import type { CommonProps } from '../CommonTypes';
import React from 'react';
import classnames from 'classnames';
import styles from './style';
type SelectBoxProps = {
width?: number | string;
listHeight: number | string;
disabled?: boolean; // 未実装
listPosition?: 'top' | 'bottom';
onChange?: Func... |
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/NavbarBrand.js | Akkuma/npm-cache-benchmark | 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 ... |
app/components/Logo/Nutz.js | VonIobro/ab-web | import React from 'react';
import PropTypes from 'prop-types';
const Nutz = ({ width, height }) => (
<svg
width={`${width}px`}
height={`${height}px`}
viewBox="0 0 228 450"
version="1.1"
xmlns="http://www.w3.org/2000/svg"
>
<title id="nutz-logo">Nutz Logo</title>
<g id="Page-1" stroke="n... |
docs/app/Examples/views/Card/Content/ExtraContent.js | jcarbo/stardust | import React from 'react'
import { Card, Icon } from 'stardust'
const description = [
'Amy is a violinist with 2 years experience in the wedding industry.',
'She enjoys the outdoors and currently resides in upstate New York.',
].join(' ')
const ExtraContent = () => (
<Card>
<Card.Content header='About Amy' ... |
tethys-ui-react/src/main/frontend/components/navigation/Navigation.js | fridayy/tethys | /**
*
* Stateless functional presentation component
*
* Created by bnjm on 12/17/16.
*/
import React from 'react';
import {Link} from 'react-router';
import './navigation.css';
const Navigation = () => {
let icon = <i className="fa fa-angle-double-right" aria-hidden="true"></i>
return (
<div cl... |
src/index.js | jayendra-sharan/json-grid-react | import React from 'react';
import ReactDOM from 'react-dom';
import JSONgrid from './components/JSONgrid';
import './index.css';
import 'bootstrap/dist/css/bootstrap.min.css';
import * as data from './data.js';
// let data = [
// {
// 'firstname': 'Jennifer',
// 'lastname': 'Lawrence',
// 'email... |
app/src/components/Icon.js | cs-cordero/mtgls | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import cards from '../images/cards.png';
import creature from '../images/symbol_creature.png';
import sorcery from '../images/symbol_sorcery.png';
import instant from '../images/symbol_instant.png';
import enchantment fr... |
blueprints/dumb/files/__root__/components/__name__/__name__.js | mleonard87/merknera-ui | import React from 'react'
type Props = {
};
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render () {
return (
<div></div>
)
}
}
export default <%= pascalEntityName %>
|
examples/history/index.js | ashutoshrishi/slate | import { Value } from 'slate'
import { Editor } from 'slate-react'
import React from 'react'
import initialValue from './value.json'
/**
* Toolbar button component.
*
* @type {Function}
*/
const ToolbarButton = props => (
<span className="button" onMouseDown={props.onMouseDown}>
<span className="material-i... |
src/components/common/forms/QuantitySelector.js | ESTEBANMURUZABAL/bananaStore | /**
* Imports
*/
import React from 'react';
// Instantiate logger
let debug = require('debug')('bananaCat');
/**
* Component
*/
class QuantitySelector extends React.Component {
//*** Initial State ***//
state = {
value: this.props.value || 0
};
//*** Component Lifecycle ***//
compo... |
react-router-demo/lessons/07-more-nesting/modules/Repos.js | zhangjunhd/react-examples | import React from 'react'
import { Link } from 'react-router'
export default React.createClass({
render() {
return (
<div>
<h2>Repos</h2>
<ul>
<li><Link to="/repos/reactjs/react-router">React Router</Link></li>
<li><Link to="/repos/facebook/react">React</Link></li>
... |
src/routes/games/index.js | loganfreeman/react-is-fun | import React from 'react';
import Games from './Games';
export default {
path: '/games',
action() {
let menus = [{
text: 'Sudoku',
key: 'sudoku'
}, {
text: 'Tetris',
key: 'tetris'
}, {
text: 'MineSweeper',
key: 'minesweeper'
}];
return <Games title="Games" m... |
presentation/index.js | iansinnott/react-static-presentation | // Import React
import React from 'react';
import classnames from 'classnames/bind';
import 'react-fa';
import s from './index.styl';
const cx = classnames.bind(s);
// Import Spectacle Core tags
import {
Appear,
BlockQuote,
Cite,
Code,
CodePane,
Deck,
Fill,
Heading,
Image,
Layout,
Link,
ListIt... |
es/components/SidePanels/PanelContainer.js | welovekpop/uwave-web-welovekpop.club | import _jsx from "@babel/runtime/helpers/builtin/jsx";
import cx from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
var PanelContainer = function PanelContainer(_ref) {
var selected = _ref.selected,
children = _ref.children;
return _jsx("div", {
className: cx('SidePanel-pan... |
src/routes/error/ErrorPage.js | kevinchau321/TReactr | /**
* 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 PropTypes from 'prop-... |
src/components/layout/Config.js | PsychoLlama/luminary | import { TouchableOpacity, ScrollView } from 'react-native';
import styled from 'styled-components/native';
import { createSelector } from 'reselect';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import React from 'react';
import R from 'ramda';
import * as colors from '../../constants/co... |
js/routes.js | choosenvictim/soundmobx | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App.js';
import Home from './components/Home.js';
import Callback from './components/Callback.js';
import NotFound from './components/NotFound.js';
export default () => {
return (
<Route path="/" comp... |
app/packs/src/components/inbox/DatasetContainer.js | ComPlat/chemotion_ELN | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import { DragSource } from 'react-dnd';
import { Button, ButtonGroup, Tooltip } from 'react-bootstrap';
import AttachmentContainer from './AttachmentContainer';
import DragDropItemTypes from '../DragDropItemTypes'... |
admin/client/App/screens/List/components/ListColumnsForm.js | giovanniRodighiero/cms | import React from 'react';
import assign from 'object-assign';
import Popout from '../../../shared/Popout';
import PopoutList from '../../../shared/Popout/PopoutList';
import { FormInput } from '../../../elemental';
import ListHeaderButton from './ListHeaderButton';
import { setActiveColumns } from '../actions';
var... |
src/svg-icons/action/view-stream.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewStream = (props) => (
<SvgIcon {...props}>
<path d="M4 18h17v-6H4v6zM4 5v6h17V5H4z"/>
</SvgIcon>
);
ActionViewStream = pure(ActionViewStream);
ActionViewStream.displayName = 'ActionViewStream';
Acti... |
client/src/components/common/TextField.js | alexandernanberg/luncha | import React from 'react'
import styled from 'styled-components'
import { rgba } from 'polished'
import { colors } from '../../style'
const Input = styled.input`
display: block;
padding: 8px 12px;
width: 100%;
border: solid 2px ${colors.gray300};
border-radius: 3px;
font-size: 1.6rem;
color: ${colors.gra... |
app/components/IssueIcon/index.js | talal7860/punch-assignment-react | import React from 'react';
function IssueIcon(props) {
return (
<svg
height="1em"
width="0.875em"
className={props.className}
>
<path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v... |
src/TextField/TextFieldUnderline.js | igorbt/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import transitions from '../styles/transitions';
const propTypes = {
/**
* True if the parent `TextField` is disabled.
*/
disabled: PropTypes.bool,
/**
* Override the inline-styles of the underline when parent `TextField` is disabled.
*/
... |
src/MultiMonthView.js | erisnuts/react-date-picker | import React from 'react'
import Component from 'react-class'
import { Flex } from 'react-flex'
import InlineBlock from 'react-inline-block'
import assign from 'object-assign'
import clampRange from './clampRange'
import NavBar from './NavBar'
import toMoment from './toMoment'
import join from './join'
import isInRa... |
src/modules/definitions/components/DefinitionWord/DefinitionWord.js | cltk/cltk_frontend | import React from 'react';
import PropTypes from 'prop-types';
class DefinitionWord extends React.Component {
constructor(props) {
super(props);
this.state = {
showMore: false,
};
}
toggleShowMore() {
this.setState({
showMore: !this.state.showMore,
});
}
render() {
const { showMore } = this.... |
node_modules/react-router/es6/RouterContext.js | tousif101/YouTube-Clone-React | var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
var _extends = Object.assign || function (target) { for (var i = 1; i < argum... |
src/react/Tab.js | onap-sdc/sdc-ui | import React from 'react';
class Tab extends React.Component {
render() {
const {
activeTab,
tabId,
title,
onClick,
disabled,
className = ''
} = this.props;
const dataTestId = this.props['data-test-id'];
return ... |
frontend/node_modules/react-error-overlay/lib/containers/StackTrace.js | rootweiller/morichal | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des... |
source/Interaction.js | halt-hammerzeit/react-responsive-ui | import React from 'react'
import classNames from 'classnames'
/**
* .rrui__interaction--pointer {
* outline: none;
* box-shadow: none;
* }
* <Interaction><input .../></Interaction>
* <Interaction><button .../></Interaction>
*/
export default class Interaction extends React.Component {
state = {}
onFocus =... |
src/svg-icons/maps/pin-drop.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsPinDrop = (props) => (
<SvgIcon {...props}>
<path d="M18 8c0-3.31-2.69-6-6-6S6 4.69 6 8c0 4.5 6 11 6 11s6-6.5 6-11zm-8 0c0-1.1.9-2 2-2s2 .9 2 2-.89 2-2 2c-1.1 0-2-.9-2-2zM5 20v2h14v-2H5z"/>
</SvgIcon>
);
... |
web/components/screens/GetReady/index.fixture.js | skidding/flatris | // @flow
import React from 'react';
import { getSampleUser } from '../../../utils/test-helpers';
import { getBlankPlayer } from 'shared/reducers/game';
import GetReady from '.';
const user = getSampleUser();
const otherPlayer = getBlankPlayer('1337', user);
export default {
default: (
<GetReady
disabled=... |
src/svg-icons/hardware/power-input.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwarePowerInput = (props) => (
<SvgIcon {...props}>
<path d="M2 9v2h19V9H2zm0 6h5v-2H2v2zm7 0h5v-2H9v2zm7 0h5v-2h-5v2z"/>
</SvgIcon>
);
HardwarePowerInput = pure(HardwarePowerInput);
HardwarePowerInput.dis... |
modules/Router.js | chf2/react-router | import React from 'react'
import warning from 'warning'
import createHashHistory from 'history/lib/createHashHistory'
import { createRoutes } from './RouteUtils'
import RoutingContext from './RoutingContext'
import useRoutes from './useRoutes'
import { routes } from './PropTypes'
const { func, object } = React.PropTyp... |
src/components/Post/Author/Author.js | bapti/blog | // @flow strict
import React from 'react';
import { getContactHref } from '../../../utils';
import styles from './Author.module.scss';
import { useSiteMetadata } from '../../../hooks';
const Author = () => {
const { author } = useSiteMetadata();
return (
<div className={styles['author']}>
<p className={... |
src/svg-icons/communication/chat.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationChat = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"/>
</SvgIcon>
);
Communicatio... |
app/javascript/mastodon/features/ui/components/modal_loading.js | MitarashiDango/mastodon | import React from 'react';
import LoadingIndicator from '../../../components/loading_indicator';
// Keep the markup in sync with <BundleModalError />
// (make sure they have the same dimensions)
const ModalLoading = () => (
<div className='modal-root__modal error-modal'>
<div className='error-modal__body'>
... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Apis.js | rswijesena/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
js/ncoda-init.js | nCoda/julius | // -*- coding: utf-8 -*-
//-------------------------------------------------------------------------------------------------
// Program Name: Julius
// Program Description: User interface for the nCoda music notation editor.
//
// Filename: js/ncoda-init.js
// Purpose: Initiali... |
scripts/app.js | anaptfox/imessage-search | import React from 'react';
import ReactDOM from 'react-dom';
import Main from '../components/main.jsx';
window.onload = function() {
ReactDOM.render( < Main / > , document.getElementById('app'));
}
|
test/integration/scss-fixtures/nested-global/pages/_app.js | flybayer/next.js | import React from 'react'
import App from 'next/app'
import '../styles/global1.scss'
import '../styles/global2.scss'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
src/components/Navigation/partials/LanguageSelector.js | elamperti/OpenWebScrobbler | import React from 'react';
import { useDispatch, useSelector } from 'react-redux';
import { languageList } from 'utils/i18n'; // ToDo: remove i18n and get current language from elsewhere
import ReactGA from 'react-ga';
import { UncontrolledDropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap';
import... |
src/components/phone/group2/Statuses.js | kairatz/resource-frontend-server | import React from 'react'
import { DropdownButton, MenuItem } from 'react-bootstrap'
const Statuses = ({ phone, driver, onStatusSelect }) => (
<div className="well">
<h2 id="client-name"> <i className="glyphicon glyphicon-user"></i> { `${driver[0].first_name} ${driver[0].last_name}` } </h2>
<h2 id... |
webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/TasksCardsGrid.js | theforeman/foreman-tasks | import React from 'react';
import PropTypes from 'prop-types';
import { CardGrid } from 'patternfly-react';
import { noop } from 'foremanReact/common/helpers';
import RunningTasksCard from './Components/RunningTasksCard/RunningTasksCard';
import PausedTasksCard from './Components/PausedTasksCard/PausedTasksCard';
impo... |
node_modules/lite-server/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | manojdobbala/angular2 | 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'));
|
src/components/PhotoCarousel.js | sharkinsspatial/knowsnow | import React from 'react'
import Carousel from 'react-bootstrap/lib/Carousel'
import CarouselItem from 'react-bootstrap/lib/CarouselItem'
class PhotoCarousel extends React.Component {
constructor(props) {
super(props)
}
render() {
var activeIndex
activeIndex = this.props.im... |
docs/app/Examples/elements/Icon/States/IconExampleDisabled.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Icon } from 'semantic-ui-react'
const IconExampleDisabled = () => (
<Icon disabled name='users' />
)
export default IconExampleDisabled
|
js/BaseComponents/Switch.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... |
app/javascript/mastodon/features/list_adder/components/account.js | lindwurm/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { makeGetAccount } from '../../../selectors';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Avatar from '../../../components/avatar';
import DisplayName from... |
examples/huge-apps/routes/Course/components/Dashboard.js | ksivam/react-router | import React from 'react'
class Dashboard extends React.Component {
render() {
return (
<div>
<h3>Course Dashboard</h3>
</div>
)
}
}
export default Dashboard
|
frontend/src/components/submitcast/CastRoleInput.js | tanzdervampire/website | // @flow
import React from 'react';
import PropTypes from 'prop-types';
import { Card, CardHeader, CardText, CardActions } from 'material-ui/Card';
import Chip from 'material-ui/Chip';
import FlatButton from 'material-ui/FlatButton';
import FastForward from 'material-ui/svg-icons/av/fast-forward';
import Done from 'm... |
app/scripts/main.js | mdesanti/github-dashboard | import React from 'react';
import Router from 'react-router';
import routes from './routes';
Router.run(routes, Handler => React.render(<Handler />, document.body));
|
jsx/modules/Repo.js | NickTaporuk/webpack_starterkit_project | import React from 'react'
import { Link } from 'react-router';
export default React.createClass({
render() {
return (
<div>
<h2>{this.props.params.repoName}</h2>
<ul role="nav">
<li><Link to="/">Go home</Link></li>
</ul>
... |
src/components/section/index.js | jesus9ias/diverdanger | import React from 'react';
import './section.css';
export default (props) => <div className="section">
{props.children}
</div>;
|
src/components/icon/icons.js | enapupe/know-your-bundle | import React from 'react'
import star from '../../images/star.svg'
import fork from '../../images/fork.svg'
import eye from '../../images/eye.svg'
import legal from '../../images/legal.svg'
import tag from '../../images/tag.svg'
import Icon from '.'
const Star = () => (
<Icon icon={star} />
)
const Fork = () => (... |
examples/non_api/container.js | DigitalGlobe/jetset | import React from 'react';
import { container, Children } from '../../src/index';
@container({ active: false })
class Panels extends React.Component {
getActive = () => this.props.container.get().active;
setActive = selected => this.props.container.set({ active: selected });
render() {
return Children({
... |
src/containers/contacts_list.js | Vincentgr/react-contacts | 'use strict';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { loadContactsFromDatabase, deleteContact, editContact, changeContact, saveUpdatedContact, cancelContactUpdate, sortContacts } from '../actions/index';
import ReactCSSTransitionGroup from 'react-addons-css-transition-... |
src/Label.js | mmarcant/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import { bsClass, bsStyles, getClassSet, splitBsProps }
from './utils/bootstrapUtils';
import { State, Style } from './utils/StyleConfig';
class Label extends React.Component {
hasContent(children) {
let result = false;
React.Children.forEac... |
src/svg-icons/editor/format-italic.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatItalic = (props) => (
<SvgIcon {...props}>
<path d="M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"/>
</SvgIcon>
);
EditorFormatItalic = pure(EditorFormatItalic);
EditorFormatItalic.displayName ... |
src/utils/typography.js | meerasahib/meerablog1 | import ReactDOM from 'react-dom/server';
import React from 'react';
import Typography from 'typography';
import CodePlugin from 'typography-plugin-code';
import { MOBILE_MEDIA_QUERY } from 'typography-breakpoint-constants';
const options = {
baseFontSize: '18px',
baseLineHeight: 1.5,
scaleRatio: 2.25,
plugins:... |
examples/src/components/DisabledUpsellOptions.js | SenecaSystems/react-select | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var DisabledUpsellOptions = React.createClass({
displayName: 'DisabledUpsellOptions',
propTypes: {
label: React.PropType... |
app/javascript/mastodon/features/compose/components/doodle_button.js | vahnj/mastodon | import React from 'react';
import IconButton from '../../../components/icon_button';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
const messages = defineMessages({
doodle: { id: 'doodle_button.label',... |
pages/index.js | BrontosaurusTails/Sovereign | import React from 'react';
import Footer from '../components/footer';
const footerProps = {
url: 'https://github.com/BrontosaurusTails/Sovereign',
date: new Date().getFullYear()
}
export default () => (
<div>
<p>Hello World!</p>
<Footer {...footerProps} />
</div>
);
|
blueocean-dashboard/src/main/js/components/stories/RunDetailsHeaderStories.js | alvarolobato/blueocean-plugin | /* eslint-disable */
import React from 'react';
import {storiesOf, action} from '@kadira/storybook';
import {
ModalView,
ModalBody,
ModalHeader,
PageTabs,
Progress,
TabLink,
} from '@jenkins-cd/design-language';
import WithContext from '@jenkins-cd/design-language/dist/js/stories/WithContext';
i... |
admin/client/App/screens/List/components/ListControl.js | giovanniRodighiero/cms | 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-';
... |
plugins/Terminal/js/components/commandline.js | NebulousLabs/Sia-UI | import React from 'react'
import CommandHistoryList from '../containers/commandhistorylist.js'
import CommandInput from '../containers/commandinput.js'
import WalletPasswordPrompt from '../containers/walletpasswordprompt.js'
import WalletSeedPrompt from '../containers/seedprompt.js'
const CommandLine = ({ showCommandO... |
app/desktop/ToolbarLink/index.js | christianalfoni/webpack-bin | import React from 'react';
import {Decorator as Cerebral} from 'cerebral-view-react';
import styles from './styles.css';
import classnames from 'classnames';
@Cerebral()
class ToolbarButton extends React.Component {
renderIconTextButton() {
return (
<div className={styles.iconTitleWrapper}>
{this.r... |
js/jqwidgets/demos/react/app/chart/axisoffsettovalue/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxChart from '../../../jqwidgets-react/react_jqxchart.js';
class App extends React.Component {
componentDidMount() {
let cursorRedDotElement = null;
this.refs.myChart.on('mousemove', (event) => {
let position = this.... |
node_modules/native-base/src/backward/Widgets/Subtitle.js | odapplications/WebView-with-Lower-Tab-Menu | /* @flow */
import React, { Component } from 'react';
import { Text } from 'react-native';
import { connectStyle } from '@shoutem/theme';
import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames';
class Subtitle extends Component {
render() {
return (
<Text ref={c => this._root = c} {...this.pr... |
react_frontend/chinook_consumer/src/components/DataTableControllerComponent.js | Limmen/chinook | /**
* DataTableControllerComponent.
*
* Renders a list of links to datatables of different data.
*/
'use strict';
import React from 'react';
import { Link } from 'react-router'
require('styles//DataTableController.css');
class DataTableControllerComponent extends React.Component {
render() {
return (
... |
src/Overlay.js | azendoo/react-overlays | import React from 'react';
import Portal from './Portal';
import Position from './Position';
import RootCloseWrapper from './RootCloseWrapper';
import elementType from 'react-prop-types/lib/elementType';
/**
* Built on top of `<Position/>` and `<Portal/>`, the overlay component is great for custom tooltip overlays.
... |
src/shared/element-react/dist/npm/es6/src/popover/Popover.js | thundernet8/Elune-WWW | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import ReactDOM from 'react-dom';
import Popper from '../../libs/utils/popper';... |
src/svg-icons/image/crop-square.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropSquare = (props) => (
<SvgIcon {...props}>
<path d="M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H6V6h12v12z"/>
</SvgIcon>
);
ImageCropSquare = pure(ImageCropSquar... |
app/javascript/mastodon/features/ui/components/bundle.js | mhffdq/mastodon | import React from 'react';
import PropTypes from 'prop-types';
const emptyComponent = () => null;
const noop = () => { };
class Bundle extends React.PureComponent {
static propTypes = {
fetchComponent: PropTypes.func.isRequired,
loading: PropTypes.func,
error: PropTypes.func,
children: PropTypes.fu... |
src/svg-icons/image/filter-4.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter4 = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14... |
src/Spinner/index.js | techmsi/mental-health-app | // Component: Spinner
import React from 'react';
// import 'Spinner/spinner.scss';
const Spinner = () => (
<div className='loading'>
<div />
<div />
<div />
<div />
</div>
);
export default Spinner;
|
web/components/FlatrisGame/FlatrisGame.js | skidding/flatris | /* global window */
// @flow
import { throttle } from 'lodash';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { GAME_INACTIVE_TIMEOUT } from 'shared/constants/timeouts';
import {
allPlayersReady,
getCurPlayer,
getOtherPlayer,
getPlayer,
isPlayer,
} from 'shared/reduc... |
src/components/modals/Settings/Settings.js | Convicted202/PixelShape | import React, { Component } from 'react';
import ModalWindow from '../../modalwindow/Modalwindow';
import ToggleCheckbox from '../../togglecheckbox/Togglecheckbox';
import CanvasAnchors from '../../../containers/canvasanchors/Canvasanchors';
import './settings.styl';
// TODO: take styles from apptoolbox and push in se... |
docs/src/app/components/pages/components/IconButton/ExampleTouch.js | skarnecki/material-ui | import React from 'react';
import IconButton from 'material-ui/IconButton';
import ActionGrade from 'material-ui/svg-icons/action/grade';
const IconButtonExampleTouch = () => (
<div>
<IconButton tooltip="bottom-right" touch={true} tooltipPosition="bottom-right">
<ActionGrade />
</IconButton>
<IconB... |
react/features/base/popover/components/Popover.web.js | jitsi/jitsi-meet | /* @flow */
import React, { Component } from 'react';
import { Drawer, JitsiPortal, DialogPortal } from '../../../toolbox/components/web';
import { isMobileBrowser } from '../../environment/utils';
import { connect } from '../../redux';
import { getContextMenuStyle } from '../functions.web';
/**
* The type of the Re... |
src/app/components/pages/home.js | jordanco/drafter-frontend | import React, { Component } from 'react';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
import EmailUnreplied from '../email_unreplied/index';
import Email from '../email/index';
import EmailSuggestion from '../email_suggestion/index';
// for not global organization bind here container and ... |
src/App.js | choyt/react-accessible-components | import React from 'react';
import injectSheet from 'react-jss';
import update from 'immutability-helper';
import AutoComplete from './components/AutoComplete';
import ComboBox from './components/ComboBox';
import DataGrid from './components/DataGrid';
import ListBox from './components/ListBox';
import TabList from './c... |
src/components/views/PolyLocks.js | dkadrios/zendrum-stompblock-client | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { Paper } from '@material-ui/core'
import PolyLockInstructions from '../instructions/PolyLockInstructions'
import PolyLockBank from '../polyLocks/PolyLockBank'
import styl... |
src/svg-icons/editor/insert-link.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorInsertLink = (props) => (
<SvgIcon {...props}>
<path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3... |
stories/Switcher.js | ecmadao/light-ui | import React from 'react';
import { storiesOf } from '@storybook/react';
import SwitcherWrapper from '../examples/SwitcherWrapper';
storiesOf('Switcher', module)
.add('basical', () => (
<SwitcherWrapper />
))
.add('disabled', () => (
<SwitcherWrapper disabled={true} />
));
|
MobileApp/node_modules/react-native-elements/example/src/tabs/forms.js | VowelWeb/CoinTradePros.com | import Expo from 'expo';
import React, { Component } from 'react';
import { View, Text, StyleSheet } from 'react-native';
import { StackNavigator } from 'react-navigation';
import FormsHome from '../views/forms_home';
import FormsDetails from '../views/forms_details';
const FormsTabView = ({ navigation }) => <FormsH... |
websites/members.svef.is/src/app/middlewares/react-async-component/index.js | svef/www | import React from 'react'
import {
AsyncComponentProvider,
createAsyncContext,
} from 'react-async-component'
const async = () => session => {
const asyncContext = createAsyncContext()
const rehydrateState =
typeof window === 'undefined'
? undefined
: window.REACT_ASYNC_COMPONENT_STATE
sessi... |
src/client/container/quizz/ImportQuizzForm.js | JulienPradet/quizzALJP | import React from 'react'
export default class QuizzForm extends React.Component {
render() {
return <div>
Import a quizz from a json file
</div>
}
}
|
app/javascript/mastodon/features/list_editor/components/search.js | mimumemo/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { defineMessages, injectIntl } from 'react-intl';
import { fetchListSuggestions, clearListSuggestions, changeListSuggestions } from '../../../actions/lists';
import classNames from 'classnames';
const messages ... |
src/svg-icons/action/toc.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionToc = (props) => (
<SvgIcon {...props}>
<path d="M3 9h14V7H3v2zm0 4h14v-2H3v2zm0 4h14v-2H3v2zm16 0h2v-2h-2v2zm0-10v2h2V7h-2zm0 6h2v-2h-2v2z"/>
</SvgIcon>
);
ActionToc = pure(ActionToc);
ActionToc.displa... |
app/components/sign/operations/types/delegation.js | aaroncox/vessel | // @flow
import React, { Component } from 'react';
import { Redirect } from 'react-router';
import { Accordion, Button, Card, Checkbox, Divider, Dropdown, Form, Grid, Header, Icon, Image, Input, Label, Message, Radio, Segment, Statistic, Select, TextArea } from 'semantic-ui-react'
import NumericLabel from '../../../../... |
packages/reactor-kitchensink/src/examples/Toast/Toast.js | dbuhrman/extjs-reactor | import React, { Component } from 'react';
import { Container, Button } from '@extjs/ext-react';
Ext.require('Ext.Toast');
export default function ToastExample() {
return (
<Button
ui="action"
handler={() => Ext.toast('Hello World!')}
text="Show Toast"
/>
)... |
src/Parser/Hunter/BeastMastery/Modules/Features/TraitsAndTalents.js | hasseboulen/WoWAnalyzer | import React from 'react';
import StatisticsListBox from 'Main/StatisticsListBox';
import STATISTIC_ORDER from "Main/STATISTIC_ORDER";
import Analyzer from 'Parser/Core/Analyzer';
import Barrage from 'Parser/Hunter/Shared/Modules/Talents/Barrage';
import Volley from 'Parser/Hunter/Shared/Modules/Talents/Volley';
imp... |
gatsby/src/pages/index.js | staystatic/staystatic | import React from 'react'
import Link from 'gatsby-link'
import links from '../data/links' // check rename to data.links - why? Why not? possible?
import PostList from '../components/PostList'
import LinkList from '../components/LinkList'
export default ({data}) => {
const posts = data.allMarkdo... |
src/vendor/recharts/demo/component/BrushDemo.js | donal-crotty/fuzzy-telegram | import React from 'react';
import { Surface, Brush } from 'recharts';
export default React.createClass({
render () {
let data = [
'2015-10-01',
'2015-10-02',
'2015-10-03',
'2015-10-04',
'2015-10-05',
'2015-10-06',
'2015-10-07',
'2015-10-08',
... |
src/svg-icons/communication/call-end.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallEnd = (props) => (
<SvgIcon {...props}>
<path d="M12 9c-1.6 0-3.15.25-4.6.72v3.1c0 .39-.23.74-.56.9-.98.49-1.87 1.12-2.66 1.85-.18.18-.43.28-.7.28-.28 0-.53-.11-.71-.29L.29 13.08c-.18-.17-.29-.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.