path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
example/basic/components/Main.js | didierfranc/react-sc | import React from 'react'
import { Main, Link } from './Styled'
export default () => (
<Main>
<Link
weird={true}
href="https://github.com/didierfranc/react-sc"
htmlFor="box"
>
react-sc
</Link>
</Main>
)
|
src/web/components/CreateList.js | faalsh/LamaDesktop | import React from 'react';
import { connect } from 'react-redux'
import * as LamaActions from '../../common/actions'
import { bindActionCreators } from 'redux'
import { StyleSheet, css } from 'aphrodite'
class CreateList extends React.Component {
constructor(props) {
super(props);
this.state = {
... |
src/TimePicker/ClockMinutes.js | pradel/material-ui | import React from 'react';
import ClockNumber from './ClockNumber';
import ClockPointer from './ClockPointer';
import {getTouchEventOffsetValues, rad2deg} from './timeUtils';
class ClockMinutes extends React.Component {
static propTypes = {
initialMinutes: React.PropTypes.number,
onChange: React.PropTypes.fu... |
src/templates/blog-post.js | lvjing2/liangcloud | import React from 'react';
import Helmet from 'react-helmet';
// import '../css/blog-post.css'; // make it pretty!
export default function Template({
data // this prop will be injected by the GraphQL query we'll write in a bit
}) {
const { mark... |
src/svg-icons/action/visibility-off.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionVisibilityOff = (props) => (
<SvgIcon {...props}>
<path d="M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.7... |
src/components/editor/editor-toolbar.js | stevegood/stringer | import React from 'react'
import {
IconButton,
Toolbar,
ToolbarGroup,
ToolbarSeparator
} from 'material-ui'
// svg icons
import FormatBold from 'material-ui/svg-icons/editor/format-bold'
import FormatUnderlined from 'material-ui/svg-icons/editor/format-underlined'
import FormatItalic from 'material-ui/svg-icon... |
examples/http/index.js | rayshih/fun-react | // @flow
import React from 'react'
import ReactDOM from 'react-dom'
import {Observable} from 'rx'
import {
createTypes,
caseOf,
createView,
createProgram,
} from '../../src'
import type {UpdateFnR, Reaction} from '../../src'
type Model = {
topic: string,
gifUrl: string
}
/**
* This is an example ported... |
node_modules/react-router/es6/withRouter.js | jwhite4870/moreReactRedux | 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; };
import invariant from 'invariant';
import React from 'react';... |
packages/react-dom/src/test-utils/ReactTestUtils.js | apaatsio/react | /**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import ReactDOM from 'react-dom';
import {findCurrentFiberUsingSlowPath} from 'react-reconciler/reflection';
... |
js/jqwidgets/demos/react/app/combobox/defaultfunctionality/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxComboBox from '../../../jqwidgets-react/react_jqxcombobox.js';
class App extends React.Component {
render() {
let source = new Array();
for (let i = 0; i < 10; i++) {
let movie = 'avatar.png';
let title ... |
src/components/machine-profiles.js | DarklyLabs/LaserWeb4 | import React from 'react';
import { dispatch, connect } from 'react-redux';
import {FormGroup, FormControl, ControlLabel, Button, InputGroup, Glyphicon, ButtonGroup, ButtonToolbar} from 'react-bootstrap'
import { addMachineProfile, delMachineProfileId } from '../actions/settings';
import stringify from 'json-stringif... |
addons/graphql/src/components/FullScreen/index.js | jribeiro/storybook | import React from 'react';
import PropTypes from 'prop-types';
import style from './style';
export default function FullScreen(props) {
return (
<div style={style.wrapper}>
{props.children}
</div>
);
}
FullScreen.defaultProps = { children: null };
FullScreen.propTypes = { children: PropTypes.node };... |
newclient/scripts/components/user/entities/entities/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... |
src/components/TableContainer.js | GriddleGriddle/Griddle | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from '../utils/griddleConnect';
import compose from 'recompose/compose';
import mapProps from 'recompose/mapProps';
import getContext from 'recompose/getContext';
import { classNamesForComponentSelector, stylesForComponentSelector, dataL... |
web/portal/src/components/Popup/ReImportL10n/index.js | trendmicro/serverless-survey-forms |
// CSS
import styles from './style.css';
import React from 'react';
import PureComponent from 'react-pure-render/component';
import Mixins from '../../../mixins/global';
import Button from '../../Button';
class ReImportL10n extends PureComponent {
constructor(props) {
super(props);
this._btnCl... |
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/utils/ValidComponentChildren.js | Akkuma/npm-cache-benchmark | // TODO: This module should be ElementChildren, and should use named exports.
import React from 'react';
/**
* Iterates through children that are typically specified as `props.children`,
* but only maps over children that are "valid components".
*
* The mapFunction provided index will be normalised to the compone... |
src/SheetViewer.js | Walther/jazzy | import React from 'react';
class SheetViewer extends React.Component {
writeScale = scale =>
scale
.simple()
.map(name => (name = name[0].toUpperCase() + name.slice(1)))
.join(', ');
writeChords = chords => {
return chords.map(chord => (
<span cla... |
app/shared/wrapped-text/WrappedText.js | fastmonkeys/respa-ui | import PropTypes from 'prop-types';
import React from 'react';
import Linkify from 'react-linkify';
function renderParagraph(text, index, openLinksInNewTab) {
const properties = openLinksInNewTab
? {
rel: 'noopener noreferrer',
target: '_blank',
}
: {};
return (
<div key={index}>
... |
packages/ringcentral-widgets/components/Draggable/index.js | u9520107/ringcentral-js-widget | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import styles from './styles.scss';
/* eslint { "react/no-unused-state": 0 } */
class Draggable extends Component {
constructor(props) {
super(props);
this.state = {
dragging: false,
... |
pootle/static/js/admin/components/Project/ProjectController.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 Search from '../Search'... |
src/docs/Props.js | wsherman67/UBA | import React from 'react';
import PropTypes from 'prop-types';
const Props = ({props}) => {
return (
<table className="props">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
<th>Type</th>
<th>Default</th>
<th>Required</th>
</tr>
</the... |
src/app.js | jordilondoner/todos | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import configureStore from './redux/store';
import Header from './components/Header';
import ItemCreator from './components/ItemCreator';
import ItemsList from './components/ItemsList';
import './app.css';
const store = configureStore();... |
src/index.js | fullstackreact/google-maps-react | import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import {camelize} from './lib/String';
import {makeCancelable} from './lib/cancelablePromise';
const mapStyles = {
container: {
position: 'absolute',
width: '100%',
height: '100%'
},
map: {
position: ... |
src/modules/widget/Filter.js | lenxeon/react | 'use strict'
import React from 'react'
import classnames from 'classnames'
//import { forEach } from '../utils/objects'
import Button from './Button'
import FilterItem from './FilterItem'
import clickAway from './higherorder/clickaway'
import { requireCss } from './themes'
requireCss('filter')
import {getLang, setLa... |
admin/client/components/EditForm.js | Ftonso/keystone | import React from 'react';
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 InvalidFieldType from './InvalidFieldType';
import { Button... |
imports/ui/components/app-navigation.js | hanstest/hxgny | import React from 'react'
import { Segment } from 'semantic-ui-react'
import PublicNavigation from './public-navigation'
import AuthenticatedNavigation from './authenticated-navigation'
export class AppNavigation extends React.Component {
static renderNavigation(hasUser) {
return hasUser ? <AuthenticatedNavigati... |
src/view/user/detail/index.js | fishmankkk/mircowater2.0 | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'dva'
import styles from './index.less'
const Detail = ({ userDetail }) => {
const { data } = userDetail
const content = []
for (let key in data) {
if ({}.hasOwnProperty.call(data, key)) {
content.push(<div key={key} c... |
src/components/Item/Details/counter.js | zeachco/rockplusinc.com | import React from 'react';
import { connect } from 'react-redux';
// import { bindActionCreators } from 'redux';
// import { updateItemQuantity, removeFromCart } from '../../../store/actions/cart';
class Counter extends React.Component {
handleClick(e) {
e.preventDefault();
const {item} = this.props;
if... |
packages/react-server-website/components/Markdown.js | emecell/react-server | import PropTypes from 'prop-types';
import React from 'react';
import Remarkable from 'remarkable';
import hljs from '../lib/highlight.js';
import {logging, navigateTo} from 'react-server';
import './Markdown.less';
const logger = logging.getLogger(__LOGGER__);
export default class Markdown extends React.Component... |
client/src/components/Draftail/blocks/EmbedBlock.js | rsalmaso/wagtail | import PropTypes from 'prop-types';
import React from 'react';
import { gettext } from '../../../utils/gettext';
import MediaBlock from '../blocks/MediaBlock';
/**
* Editor block to display media and edit content.
*/
const EmbedBlock = (props) => {
const { entity, onEditEntity, onRemoveEntity } = props.blockProps... |
src/Pagination.js | oPauloChaves/controle-frotas | import React from 'react'
import Pagination from 'react-bootstrap/lib/Pagination'
const BasicPagination = ({ totalCount, activePage, onChangePage }) => {
const pages = Math.ceil(totalCount / 5)
return (
<div className="AppPagination">
<Pagination
prev={<span className="BtnPrev" aria-label="Prev"... |
app/components/Roster.js | BeAce/react-babel-webpack-eslint-boilerplate | import React from 'react';
import { Switch, Route } from 'react-router-dom';
import FullRoster from './FullRoster';
import Player from './Player';
// The Roster component matches one of two different routes
// depending on the full pathname
const Roster = () =>
(<Switch>
<Route exact path="/roster" component={Fu... |
src/components/app_home.js | leapon/office-finder | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
class Home extends Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="jumbotron">
<h1 className="display-3">Looking for an office? We can help</h1>
<p className="lead... |
src/components/UserInfo.js | dkadrios/zendrum-stompblock-client | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { Avatar } from '@material-ui/core'
import Gravatar from 'react-gravatar'
import Popover from 'react-popover'
import UserRegistration from './UserRegistration'
import User... |
src/jsx/todoapp.js | MingXingTeam/React-Demo | /**
"this.props" can ref the React Component Attr Object
"getInitialState" is default React method,which contains the state of React Component
"{}" is used to write React Program
**/
/**
how to bind event on DOM in React:
<input onChange={this.onChange} value={this.state.text}>
**/
import React from 'react';
React.... |
packages/wix-style-react/src/ListItemEditable/test/ListItemEditable.visual.js | wix/wix-style-react | import React from 'react';
import { storiesOf } from '@storybook/react';
import ListItemEditable, { listItemEditableBuilder } from '../ListItemEditable';
import DropdownLayout from '../../DropdownLayout';
import { storyOfAllPermutations } from '../../../test/utils/visual/utils';
const commonProps = {
onApprove: () =... |
app/decorators/connect.js | luizvidoto/survivejs-kanban-tutorial | import React from 'react';
const connect = (Component, store) => {
return class Connect extends React.Component {
constructor(props){
super(props);
this.storeChanged = this.storeChanged.bind(this);
this.state = store.getState();
store.listen(this.storeChanged);
}
componentWillUn... |
node_modules/react-bootstrap/es/NavbarBrand.js | chenjic215/search-doctor | 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 ... |
frontend/src/InteractiveImport/Quality/SelectQualityModalContent.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Form from 'Components/Form/Form';
import FormGroup from 'Components/Form/FormGroup';
import FormInputGroup from 'Components/Form/FormInputGroup';
import FormLabel from 'Components/Form/FormLabel';
import Button from 'Components/Link/Bu... |
src/components/base/Base.js | saas-plat/saas-plat-appfx | import React from 'react';
export default class Base extends React.Component {
state = {}
render() {
return null;
}
}
|
src/components/board/cell/delete/index.js | ecolman/sudokujs | import React from 'react';
import { Raphael, Set, Path, Text } from 'react-raphael';
import { useDispatch, useSelector } from 'react-redux';
import { actions as boardsActions, selectors as boardsSelectors } from 'redux/boards';
import './styles.less';
function Delete(props) {
const { col, hide, index, row, x, y } ... |
src/svg-icons/action/accessible.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAccessible = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="4" r="2"/><path d="M19 13v-2c-1.54.02-3.09-.75-4.07-1.83l-1.29-1.43c-.17-.19-.38-.34-.61-.45-.01 0-.01-.01-.02-.01H13c-.35-.2-.75-.3-1.19... |
src/App.js | aldhsu/missile-command | import React, { Component } from 'react';
import Main from './game/main';
export class App extends Component {
constructor() {
super();
this.width = 800;
this.height = 480;
this.maxParticles = 20;
this.handleClick = this.handleClick.bind(this);
}
componentDidMount() {
this.canvas = this... |
examples/hello-world/pages/about.js | dstreet/next.js | import React from 'react'
export default () => (
<div>About us</div>
)
|
node_modules/react-icons/fa/tree.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaTree = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m36.6 32.9q0 0.5-0.5 1t-1 0.4h-10.3q0.1 0.4 0.2 1.9t0.1 2.5q0 0.5-0.4 0.9t-1 0.4h-7.1q-0.6 0-1-0.4t-0.4-0.9q0-0.9 0.1-2.5t0.2-1.9h-10.4q-0.5 0-1-0.4t-0.4-1 0.4-1l9-9h-5.... |
app/components/group/group.js | dfmcphee/pinnr | import React from 'react';
import Post from '../post/post.js';
import GroupStore from '../../stores/group-store';
import PostStore from '../../stores/post-store';
import AuthenticationStore from '../../stores/authentication-store';
import { Card } from 'semantic-ui-react';
export default class Group extends React.Comp... |
src/components/FacebookLogin/FacebookLogin.js | PhilNorfleet/pBot | import React, { Component } from 'react';
import PropTypes from 'prop-types';
class FacebookLogin extends Component {
static propTypes = {
onLogin: PropTypes.func.isRequired,
appId: PropTypes.string.isRequired,
xfbml: PropTypes.bool,
cookie: PropTypes.bool,
scope: PropTypes.string,
autoLoad: ... |
Cordial/app/components/splash-screen.js | AwesomePossum446/Cordial | import React from 'react';
import { View, Image, StyleSheet } from 'react-native';
import { Actions, ActionConst } from 'react-native-router-flux';
import {User} from '../models/Model';
const SPLASH_TIME = 500;
const styles = StyleSheet.create({
logo: {
flexDirection: 'row',
alignSelf: 'center',
height: 70,
... |
packages/vx-demo/components/codeblocks/SimpleLineGlyphCode.js | Flaque/vx | import React from 'react';
import Codeblock from './Codeblock';
export default ({}) => {
return (
<Codeblock>
{`// SimpleLineWithGlyphsChart.js
function SimpleLineWithGlyphsChart({
margin,
dataset,
screenWidth,
screenHeight,
}) {
if (!Array.isArray(dataset)) dataset = [dataset];
const allData ... |
src/js/components/LargePictureIcon/LargePictureIcon.js | shane-arthur/react-redux-and-more-boilerplate | import React, { Component } from 'react';
import PictureWithFrame from '../PictureWithFrame/PictureWithFrame';
import SelectedRadioButton from '../SelectedRadioButton/SelectedRadioButton';
const style = {
display: 'inline-block'
};
export default class LargePictureIcon extends Component {
_formPanelHeader() {... |
src/components/Delegate.js | seripap/wedding.seripap.com | import React, { Component } from 'react';
import { Link } from 'react-router';
import DocumentTitle from 'react-document-title';
import Header from './Header';
export default class Delegate extends Component {
constructor(props) {
super(props);
}
render() {
return (
<DocumentTitle title="Amanda ... |
packages/reactor-kitchensink/src/examples/DragAndDrop/Data/Data.js | markbrocato/extjs-reactor | import React, { Component } from 'react';
import { Panel } from '@extjs/ext-react';
import './styles.css';
Ext.require(['Ext.drag.*']);
export default class Data extends Component {
render() {
return (
<Panel
ref="mainPanel"
padding={5}
shadow... |
src/client/auth/login.react.js | cazacugmihai/este | import './login.styl';
import Component from '../components/component.react';
import React from 'react';
import exposeRouter from '../components/exposerouter';
import {focusInvalidField} from '../lib/validation';
@exposeRouter
export default class Login extends Component {
static propTypes = {
actions: React.Pr... |
src/client/Utils/LinkButton.js | KleeGroup/interactive-box | import React from 'react';
var LinkButton = React.createClass({
render: function(){
var labelStyle = {
fontSize: '200%',
textTransform: 'none',
verticalAlign: 'middle',
};
// Au click, le bouton appelle la fonction définie dans sa props "handleLinkClick"
ret... |
src/components/dropdown.js | netlify/staticgen | import React from 'react'
import styled from '@emotion/styled'
/**
* Dropdown design credit: http://codepen.io/Thibaut/pen/Jasci
*/
const DropdownContainer = styled.div`
display: block;
width: 100%;
height: 48px;
position: relative;
overflow: hidden;
background: #f2f2f2;
border: 1px solid;
border-co... |
src/components/Header/index.js | wpcfan/hello-react | import React from 'react';
import { Link } from 'react-router';
import './style.css';
const Header = () => (
<header className="mdl-layout__header">
<div className="mdl-layout__header-row">
<span className="mdl-layout-title">My Todo App</span>
<div className="mdl-layout-spacer"></div>
<nav clas... |
public/app/components/DuckDapp.js | cesardeazevedo/duckdapp | import Home from './Home'
import React from 'react'
import { Link } from 'react-router'
class DuckDapp extends React.Component {
render() {
return (
<div>
<ul>
<li>
<Link to={`/home`}>Home</Link>
</li>
... |
react-app/src/components/TopMappers/TopMappers.js | grumd/osu-pps | import React, { Component } from 'react';
import toBe from 'prop-types';
import { connect } from 'react-redux';
import classNames from 'classnames';
import { withRouter } from 'react-router-dom';
import prizeGold from './prize_gold.png';
import prizeSilver from './prize_silver.png';
import prizeBronze from './... |
src/components/App.js | BrisklyPapers/react | import React from 'react';
import Navigation from '../containers/Navigation';
import ResultPage from '../containers/ResultPage';
import FileUploadPage from '../containers/FileUploadPage';
import SearchResults from '../containers/SearchResults';
import DropZone from '../containers/DropZone';
import IndexPageHead from '.... |
src/components/navbar.js | kbrgl/kbrgl.github.io | import React from 'react'
import { Link, graphql, StaticQuery } from 'gatsby'
import Image from 'gatsby-image'
import { Container } from './grid'
import externalIcon from '../images/external.svg'
import styles from './navbar.module.css'
const Navbar = () => (
<StaticQuery
query={graphql`
query NavbarQuer... |
blueocean-material-icons/src/js/components/svg-icons/av/video-call.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvVideoCall = (props) => (
<SvgIcon {...props}>
<path d="M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4zM14 13h-3v3H9v-3H6v-2h3V8h2v3h3v2z"/>
</SvgIcon>
);
AvVideoCall.displayName = 'AvVi... |
fields/types/textarray/TextArrayFilter.js | ONode/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import {
FormField,
FormInput,
FormSelect,
} from '../../../admin/client/App/elemental';
const MODE_OPTIONS = [
{ label: 'Contains', value: 'contains' },
{ label: 'Exactly', value: 'exactly' },
{ label: 'Begins with', value: 'beginsWith' },
{ ... |
app/components/ArtistPanel.js | cqlanus/bons | import React from 'react'
import { Link } from 'react-router'
const ArtistPanel = function(props) {
return (
<div>
<Link to={`/artists/${props.artist.id}`}>
<h4>{props.artist.name}</h4>
</Link>
{/* <div className="panel panel-default">
<div className="panel-heading">
<L... |
packages/icons/src/dv/Angular.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function DvAngular(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M4.176 9.954L23.936 3l19.888 6.831L40.7 35.72 23.957 45 7.3 35.844 4.176 9.954zm28.137 23.772h4.22L23.89 6.567 11.673 33.726h4.558l2.449-6.19h10.95l2... |
src/components/news/highlight.js | adrienlozano/stephaniewebsite | import React from 'react';
import Typography from '~/components/typography';
import LinkButton from '~/components/link-button';
import { Box, Flex } from 'rebass';
import styled from 'styled-components';
import format from 'date-fns/format';
const StyledImage = styled.img`
max-width: 100%;
`
export default ({clas... |
packages/react-scripts/fixtures/kitchensink/src/features/env/ExpandEnvVariables.js | liamhu/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
export default () => (
<span>
<span id="feature-expand-env-1">{process.env.REACT_APP_BASIC}</span>
... |
react/ShowMore/ShowMore.js | seekinternational/seek-asia-style-guide | import styles from './ShowMore.less';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Button, ChevronIcon } from 'seek-asia-style-guide/react';
import classnames from 'classnames';
const COLOR_GREY = 'grey';
const COLOR_WHITE = 'white';
const POSITION_CENTER = 'center';
const POS... |
src/components/source/mediaSource/form/SourceFeedForm.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { Field, reduxForm } from 'redux-form';
import { FormattedMessage, injectIntl } from 'react-intl';
import { Row, Col } from 'react-flexbox-grid/lib';
import MenuItem from '@material-ui/core/MenuItem';
import withIntlForm from '../../../common/hocs/In... |
packages/flow-runtime-docs/src/components/InstallInstruction.js | codemix/flow-runtime | /* @flow */
import React, { Component } from 'react';
import {observable, computed} from 'mobx';
import {observer} from 'mobx-react';
type Props = {
devPackageNames?: string[];
packageNames?: string[];
};
@observer
export default class InstallInstruction extends Component<Props, void> {
@observable showYarn: b... |
app/javascript/mastodon/features/compose/components/upload.js | pointlessone/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { defineMessages, injec... |
analysis/warlockaffliction/src/modules/soulshards/SoulShardDetails.js | yajinni/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import ResourceBreakdown from 'parser/shared/modules/resources/resourcetracker/ResourceBreakdown';
import SPELLS from 'common/SPELLS';
import { Panel } from 'interface';
import STATISTIC_ORDER from 'parser/ui/STATISTIC_ORDER';
import Statistic f... |
src/Dropdown.js | mattBlackDesign/react-materialize | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import idgen from './idgen';
import cx from 'classnames';
const classes = {
'dropdown-content': true
};
class Dropdown extends Component {
constructor (props) {
super(props);
this.renderTrigger = this.renderTrigger.bind(this);
... |
front_end/src/pages/Tiles/TileCreatePage.js | mozilla/splice | import React, { Component } from 'react';
import { connect } from 'react-redux';
import reactMixin from 'react-mixin';
import { Link, Lifecycle } from 'react-router';
import { updateDocTitle } from 'actions/App/AppActions';
import { fetchHierarchy } from 'actions/App/BreadCrumbActions';
import { fetchAccounts } from '... |
fields/components/NestedFormField.js | Adam14Four/keystone | import React from 'react';
import { StyleSheet, css } from 'aphrodite/no-important';
import { FormField, FormLabel } from 'elemental';
import theme from '../../admin/client/theme';
function NestedFormField ({ children, className, label, ...props }) {
return (
<FormField {...props}>
<FormLabel className={css(clas... |
node_modules/react-router-dom/es/HashRouter.js | Sweetgrassbuffalo/ReactionSweeGrass-v2 | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
packages/es-components/src/components/containers/notification/MessageNotification.js | jrios/es-components | import React from 'react';
import PropTypes from 'prop-types';
import { noop } from 'lodash';
import { useNotification } from './useNotification';
const Notification = useNotification('messageOnly');
function MessageNotification(props) {
return <Notification {...props} />;
}
MessageNotification.propTypes = {
/*... |
docs/app/Examples/elements/List/Variations/index.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Message } from 'semantic-ui-react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const ListVariations = () => (
<ExampleSection title='Types'>
<ComponentExample
... |
src/repository/screens/repository-code-list.screen.js | Antoine38660/git-point | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { StyleSheet, FlatList, View, Text } from 'react-native';
import { ListItem } from 'react-native-elements';
import { ViewContainer, LoadingListItem } from 'components';
import { colors, f... |
src/components/SCSmallEntry/SCSmallEntry.js | bbonny/movie-matching | import React, { Component } from 'react';
import $ from 'jquery';
import Col from 'react-bootstrap/lib/Col';
import Row from 'react-bootstrap/lib/Row';
import Button from 'react-bootstrap/lib/Button';
class SCSmallEntry extends Component {
addToWishList = (id) => {
$.post('/api/whish?movie_id=' + this.props.res... |
client/src/components/Home/Leaderboard.js | patteri/slave-cardgame | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router';
import { Row, Col } from 'react-bootstrap';
import StatList from '../Stats/StatList';
const Leaderboard = ({ stats, ...props }) => (
<Row className="Leaderboard">
<Col {...props}>
<StatList
header="L... |
tests/react_imports/es-default.js | JonathanUsername/flow | import React from 'react';
(React.Component: Object); // OK
(React.Component: number); // Error
('Hello, world!': React.Node); // Error: Not in default export.
({}: React.Node); // Error: Not in default export.
(null: React.Missing); // Error: Not in default export.
|
Ethereum-based-Roll4Win/node_modules/react-bootstrap/es/Table.js | brett-harvey/Smart-Contracts | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose";
import classNames from 'classnames';
import React from 'react';
import { createBootstrapC... |
page/src/containers/Body.js | swpark6/Dumbledore | import React, { Component } from 'react';
import { Grid, Search, Loader, Sticky } from 'semantic-ui-react';
import _ from 'lodash';
import Table from '../components/Table';
import { getBot, getAllStudent } from '../helper/fetch';
import './Body.css';
class Body extends Component {
constructor(props) {
super(prop... |
lib/browserRequirements.js | jirokun/survey-designer-js | /* eslint-env browser,jquery */
import React from 'react';
export function RequiredBrowserNoticeForEditor() {
return (
<div>
<p>
ご利用の環境ではこのページを表示することができません。<br />
以下のいずれかのブラウザをご利用ください。</p>
<ul>
<li>Google Chrome 最新版</li>
<li>Firefox 最新版</li>
<li>Microsoft Edge</li>... |
dashboard-ui/app/components/drawer/cloudTable.js | CloudBoost/cloudboost | import React from 'react';
import { Card, CardHeader, CardMedia, CardTitle, CardText } from 'material-ui/Card';
class CloudTable extends React.Component {
constructor () {
super();
this.state = {
};
}
copyToClipboard = (element) => () => {
var $temp = $('<input>');
$('body').append($temp);
... |
src/svg-icons/communication/speaker-phone.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationSpeakerPhone = (props) => (
<SvgIcon {...props}>
<path d="M7 7.07L8.43 8.5c.91-.91 2.18-1.48 3.57-1.48s2.66.57 3.57 1.48L17 7.07C15.72 5.79 13.95 5 12 5s-3.72.79-5 2.07zM12 1C8.98 1 6.24 2.23 4.25 ... |
actor-apps/app-web/src/app/components/modals/Preferences.react.js | wangkang0627/actor-platform | import React from 'react';
import Modal from 'react-modal';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import { Styles, FlatButton, RadioButtonGroup, RadioButton, DropDownMenu } from 'material-ui';
import { KeyCodes } from 'constants/ActorAppConstants';
import Actor... |
app/components/PilotCard/index.js | prudhvisays/newsb | import React from 'react';
import profileImage from '../../Assets/profile-image.gif';
export default class PilotCard extends React.Component { //eslint-disable-line
render() {
const { detailedInfo, pilotName, pilotStatus, totalTask, completedTask, pilotDistance } = this.props;
return (
<a onClick={deta... |
src/containers/MealsContainer/index.js | cernanb/personal-chef-react-app | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Container } from 'semantic-ui-react';
import PropTypes from 'prop-types';
import { Link, Route, Switch } from 'react-router-dom';
import { css } from 'glamor';
import NewMeal from '../../components/NewMeal';
import Meal from '../.... |
src/routes/home/Home.js | jaruesink/ruesinkdds | /**
* 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-... |
app/containers/LanguageProvider/index.js | balintsoos/app.rezsi.io | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createSelector } from 'reselect'... |
app/javascript/mastodon/features/ui/components/upload_area.js | h3zjp/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import { FormattedMessage } from 'react-intl';
export default class UploadArea extends React.PureComponent {
static propTypes = {
active: PropTypes.boo... |
Realization/frontend/czechidm-core/src/components/advanced/Icon/IdentitySwitchIcon.js | bcvsolutions/CzechIdMng | import React from 'react';
//
import AbstractIcon from './AbstractIcon';
import * as Basic from '../../basic';
/**
* Identity icon - switch uiser.
*
* @author Radek Tomiška
* @since 10.5.0
*/
export default class IdentitySwitchIcon extends AbstractIcon {
renderIcon() {
return (
<Basic.Icon icon="fa:u... |
packages/icons/src/md/device/ScreenLockPortrait.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdScreenLockPortrait(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M20 32a2 2 0 0 1-2-2v-6a2 2 0 0 1 2-2v-2c0-2.21 1.79-4 4-4s4 1.79 4 4v2a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-8zm1.6-12v2h4.8v-2a2.4 2.4 0 0 0-4.... |
src/components/Sidebar/SimulateMenu.js | funkBuild/machinist | import React, { Component } from 'react';
import TabbedSection from '../common/TabbedSection';
import SimManager from '../../models/sim_manager';
import PathManager from '../../models/path_manager';
import './SimulateMenu.css';
class SimulateMenu extends Component {
constructor(props){
super(props);
Si... |
src/parser/deathknight/blood/modules/features/BloodPlagueUptime.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import Enemies from 'parser/shared/modules/Enemies';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/Sta... |
imports/api/client/index.js | mikowals/simple_rss | import React from 'react';
import { hydrateRoot } from 'react-dom';
import { BrowserRouter, Route, Routes, Link } from 'react-router-dom';
import { Meteor } from 'meteor/meteor';
import { ApolloClient, InMemoryCache, ApolloProvider } from '@apollo/client';
import { BatchHttpLink } from "@apollo/client/link/batch-http";... |
wrappers/json.js | amni/alanmni-portfolio | import React from 'react'
import Helmet from 'react-helmet'
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
route: React.PropTypes.object,
}
},
render () {
const data = this.props.route.page.data
return (
<div>
<Helmet
tit... |
webapp/react/browser.js | isucon/isucon6-final | import React from 'react';
import { render } from 'react-dom';
import { Router, browserHistory } from 'react-router';
import routes from './routes';
import AsyncProps from 'async-props';
// for material-ui https://www.npmjs.com/package/material-ui
import injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEve... |
admin/src/components/AltText.js | udp/keystone | import React from 'react';
import blacklist from 'blacklist';
import vkey from 'vkey';
var AltText = React.createClass({
getDefaultProps () {
return {
component: 'span',
modifier: '<alt>',
normal: '',
modified: ''
};
},
getInitialState () {
return {
modified: false
};
},
componentDidMount (... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.