path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
replay/components/overrideRecord.js | olegccc/network-record-replay | import React from 'react';
import {ListItem} from 'material-ui/List';
import DeleteIcon from 'material-ui/svg-icons/action/delete';
import * as OverrideActions from '../actions/override';
import {connect} from 'react-redux';
const OverrideRecord = ({record, dispatch}) => {
function selectFile() {
dispatch... |
modules/RouteUtils.js | batmanimal/react-router | import React from 'react'
import warning from 'warning'
function isValidChild(object) {
return object == null || React.isValidElement(object)
}
export function isReactChildren(object) {
return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild))
}
function checkPropTypes(componentName, p... |
app/javascript/mastodon/features/notifications/components/setting_toggle.js | robotstart/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Toggle from 'react-toggle';
const SettingToggle = ({ settings, settingKey, label, onChange, htmlFor = '' }) => (
<label htmlFor={htmlFor} className='setting-toggle__label'>
<Toggle ch... |
packages/core/email/admin/src/pages/Settings/components/EmailHeader.js | wistityhq/strapi | import React from 'react';
import { useIntl } from 'react-intl';
import { SettingsPageTitle } from '@strapi/helper-plugin';
import { HeaderLayout } from '@strapi/design-system/Layout';
import getTrad from '../../../utils/getTrad';
const EmailHeader = () => {
const { formatMessage } = useIntl();
return (
<>
... |
client/src/containers/HistoryList/HistoryItem.js | open-sausages/silverstripe-asset-admin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
class HistoryItem extends Component {
constructor(props) {
super(props);
this.handleClick = this.handleClick.bind(this);
}
handleClick(e) {
e.preventDefault();
if (typeof this.props.onClick === 'function') {
thi... |
src/svg-icons/av/playlist-add.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlaylistAdd = (props) => (
<SvgIcon {...props}>
<path d="M14 10H2v2h12v-2zm0-4H2v2h12V6zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM2 16h8v-2H2v2z"/>
</SvgIcon>
);
AvPlaylistAdd = pure(AvPlaylistAdd);
AvPlaylistAdd... |
app/containers/App/index.js | ryanau/doc_now_client | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
src/components/sketch/SketchPresetColors.js | casesandberg/react-color | import React from 'react'
import PropTypes from 'prop-types'
import reactCSS from 'reactcss'
import { Swatch } from '../common'
export const SketchPresetColors = ({ colors, onClick = () => {}, onSwatchHover }) => {
const styles = reactCSS({
'default': {
colors: {
margin: '0 -10px',
padding... |
app/redux-tools/DevTools.js | developer-townhall-fy17/react-router-redux | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor
toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-r"
fluid={false}
def... |
docs/app/Examples/modules/Progress/Content/index.js | ben174/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const ProgressContentExamples = () => (
<ExampleSection title='Content'>
<ComponentExample
title='Bar'
description='A... |
actor-apps/app-web/src/app/components/SidebarSection.react.js | liuzwei/actor-platform | import React from 'react';
//import { Styles, Tabs, Tab } from 'material-ui';
//import ActorTheme from 'constants/ActorTheme';
import HeaderSection from 'components/sidebar/HeaderSection.react';
import RecentSection from 'components/sidebar/RecentSection.react';
//import ContactsSection from 'components/sidebar/Conta... |
src/components/source/collection/form/CollectionMediaForm.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import Link from 'react-router/lib/Link';
import { FieldArray, Field, reduxForm, formValueSelector } from 'redux-form';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { Row, Col } from 'react-flexbox-grid/lib';
... |
src/plugins/mediaQueries.js | tuckerconnelly/uranium | import React from 'react'
import { URANIUM_CLASSNAME } from './copyStyles'
import makeClassName from '../utils/makeClassName'
import { expandStyle, createCSSDeclarations } from '../utils/expandCSS'
import isWeb, { isWebVoidElement } from '../utils/isWeb'
const mqls = new Map()
export default (element, forceUpdate) =... |
node_modules/react-icons/md/arrow-forward.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdArrowForward = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 6.6l13.4 13.4-13.4 13.4-2.3-2.4 9.3-9.4h-20.4v-3.2h20.4l-9.3-9.4z"/></g>
</Icon>
)
export default MdArrowForward
|
src/icons/font/FlagIcon.js | skystebnicki/chamel | import React from 'react';
import PropTypes from 'prop-types';
import FontIcon from '../../FontIcon';
import ThemeService from '../../styles/ChamelThemeService';
/**
* Flag button
*
* @param props
* @param context
* @returns {ReactDOM}
* @constructor
*/
const FlagIcon = (props, context) => {
let theme =
c... |
src/components/home/Project.js | psongpin/Personal-Website-v2 | import React from 'react'
import { Col } from 'reactstrap'
const Project = ({ name, imgUrl, liveUrl }) => (
<Col className='portfolio-list-item' xs='12' md='6' lg='4'>
<div className='profolio-bg' style={{backgroundImage: `url(${imgUrl})`}}>
<a className='link-overlay' href={ liveUrl } target='_blank'>
... |
WorldMoodTracker/js/components/WorldMoodTracker.js | kavithaenair/kavithaenair.github.io | import React from 'react';
import Header from './Header';
import WorldMap from './WorldMap';
import Footer from './Footer';
import ScaleBar from './ScaleBar';
export default class WorldMoodTracker extends React.Component {
render() {
return (
<div>
<Header/>
<Wor... |
app/javascript/mastodon/features/ui/components/actions_modal.js | cobodo/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import StatusContent from '../../../components/status_content';
import Avatar from '../../../components/avatar';
import Relative... |
app/javascript/mastodon/features/notifications/components/setting_toggle.js | ikuradon/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Toggle from 'react-toggle';
export default class SettingToggle extends React.PureComponent {
static propTypes = {
prefix: PropTypes.string,
settings: ImmutablePropTypes.map.isReq... |
app/js/app.js | marvinroger/homie-server | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import classNames from 'classnames';
import { Provider, connect } from 'react-redux';
import store, {setProperty} from './store';
import Menu from './homie/menu';
import DeviceContainer from './homie/device-container';
@connect(state => ({
... |
node_modules/react-icons/md/beach-access.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdBeachAccess = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m29.1 14.7c-5.3-5.2-12.5-7-19.1-4.8 5-0.6 11.4 2 16.6 7.2l-9.5 9.5c-5.2-5.2-7.8-11.6-7.2-16.6-2.2 6.6-0.4 13.8 4.8 19.1l-4.8 4.7c-6.5-6.5-6.5-17.2 0-23.8 0-0.1 0-... |
src/svg-icons/maps/local-atm.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalAtm = (props) => (
<SvgIcon {...props}>
<path d="M11 17h2v-1h1c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1h-3v-1h4V8h-2V7h-2v1h-1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1h3v1H9v2h2v1zm9-13H4c-1.11 0-1.99.89-1.99 2L2 1... |
public/assets/js/node_modules/react-redux-form/src/native/index.js | ngocson8b/6jar | import React from 'react';
import Form from '../components/form-component';
import { createFieldClass } from '../components/field-component';
const View = process.env.NODE_ENV !== 'test'
? require('react-native').View
: 'div';
const NativeField = createFieldClass({
MapView: props => ({
onRegionChange: prop... |
src/server.js | chrisslater/snapperfish | import Express from 'express';
// import sslRedirect from 'heroku-ssl-redirect';
import React from 'react';
import ReactDOM from 'react-dom/server';
// import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import path from 'path';
import createStore from './redux/cre... |
src/components/Profile.js | jainvabhi/PWD | import React from 'react';
import PropTypes from 'prop-types';
import Webcam from '../actions/webcam';
import BioGraphy from './BioGraphy';
import Timeline from './Timeline';
import { connect } from 'react-redux';
import { showBio, showTimeline, logout } from '../actions';
const Profile = ({ user, logout, ti... |
app/components/Header/index.js | olivia-leach/jaylivia-react | import React from 'react';
import { FormattedMessage } from 'react-intl';
import HeaderLink from './HeaderLink';
import messages from './messages';
import LogoInverse from './logo_simp.png';
// import moment from 'moment/moment'
// import Rosie from './rosiehead.png'
import Map from '../Map'
const Scroll = require('... |
analysis/shaman/src/MaelstromDetails.js | anom0ly/WoWAnalyzer | import { t } from '@lingui/macro';
import { formatPercentage } from 'common/format';
import { Icon } from 'interface';
import Analyzer from 'parser/core/Analyzer';
import ResourceBreakdown from 'parser/shared/modules/resources/resourcetracker/ResourceBreakdown';
import Panel from 'parser/ui/Panel';
import StatisticBox,... |
src/App.js | breath103/watchmen | import React, { Component } from 'react';
import { withRouter } from 'react-router'
import _ from 'underscore';
import AppBar from 'material-ui/AppBar';
import styles from './app.css';
import gridStyles from './grid.css';
import Sites from './sites';
import moment from 'moment';
import TimeFormatHelper from './time... |
blueocean-material-icons/src/js/components/svg-icons/device/access-alarms.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const DeviceAccessAlarms = (props) => (
<SvgIcon {...props}>
<path d="M22 5.7l-4.6-3.9-1.3 1.5 4.6 3.9L22 5.7zM7.9 3.4L6.6 1.9 2 5.7l1.3 1.5 4.6-3.8zM12.5 8H11v6l4.7 2.9.8-1.2-4-2.4V8zM12 4c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ObjectSpread.js | Antontsyk/react_vk | import React from 'react'
function load(baseUser) {
return [
{ id: 1, name: '1', ...baseUser },
{ id: 2, name: '2', ...baseUser },
{ id: 3, name: '3', ...baseUser },
{ id: 4, name: '4', ...baseUser }
];
}
export default class extends React.Component {
constructor(props) {
super(props);
... |
src/index.js | andrewthehan/idk | import React from 'react';
import ReactDOM from 'react-dom';
import { IndexRoute, Redirect, Route, Router, browserHistory } from 'react-router';
import Clipboard from 'clipboard';
import * as firebase from 'firebase';
import About from './container/About';
import Frame from './container/Frame';
import Group from './c... |
app/components/action.react.js | Cron-J/Rule-Engine | /**
* Created by Eswer on 9/2/2015
*/
// import Rule from 'rule.js';
import React from 'react';
export default class ActionComponent extends React.Component{
render() {
return (
<div>
<pre>Action</pre>
</div>
);
}
construcor() {
this.action = this.props.action;
};
}
ActionCom... |
src/app/index.js | mobbarley/simple-react-todo-app | import React from 'react';
import ReactDOM from 'react-dom';
import ToDoList from './to-do-list.jsx';
//Put the components into HTML
ReactDOM.render(<ToDoList/>, document.getElementById('todo-wrapper'));
|
src/stories/panel/normal-panel.js | kemuridama/rectangle | import React from 'react';
export default class NormalPanel extends React.Component {
render() {
return (
<div className="con">
<div className="p">
<h1 className="p__header p__header--without-bottom-padding">Panel Header</h1>
<div className="p__body">
<p>
... |
src/components/index.js | OssamaZ/canvas-play | import React, { Component } from 'react';
import { connect } from 'react-redux';
import _ from 'lodash';
// Actions
import {
makeComponentActive,
updateCanvasComponent
} from '../actions/canvasActions';
import RectangleComponent from './RectangleComponent';
import CircleComponent from './CircleComponent';
// Map... |
src/components/NotFound/NotFound.react.js | DeveloperAlfa/chat.susi.ai | import React, { Component } from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import { Link } from 'react-router-dom';
import './NotFound.css';
import LogoImg from '../../images/susi-logo.svg';
import UserPreferencesStore from '../../stores/UserPreferencesStore';
import Login from '../Auth/Login/Login.... |
techCurriculum/ui/solutions/5.1/src/components/Card.js | jennybkim/engineeringessentials | /**
* Copyright 2017 Goldman Sachs.
* 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... |
src/svg-icons/maps/pin-drop.js | ichiohta/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>
);
... |
frontend/src/map.js | rarellano/socializa | import React from 'react';
import QRCode from 'qrcode.react'
import { hashHistory } from 'react-router'
import { Link } from 'react-router'
import ol from 'openlayers'
import { storeUser, user, logout } from './auth';
import API from './api';
import GEO from './geo';
export default class Map extends React.Component ... |
node_modules/_react-router@3.2.0@react-router/es/Link.js | ligangwolai/blog | 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 _objectWithoutProperties(obj, keys) { var target = {... |
src/routes/not-found/index.js | hmeinertrita/MyPlanetGirlGuides | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../co... |
AwesomeProject/components/AboutPage.js | victorditadi/IQApp | import React, { Component } from 'react';
import { Text, View, Button} from 'react-native';
import HeaderIQMail from './Faixa';
export default class AboutPage extends Component{
constructor(){
super();
}
render(){
return(
<View>
<HeaderIQMail></HeaderIQMail>
<Text>About</Text>
... |
ui/src/pages/PeopleImportPage/stages/ColumnHeaderEditor/index.js | LearningLocker/learninglocker | import React from 'react';
import styled from 'styled-components';
import InputFields from './InputFields';
import { TableData } from './TableData';
const TableHeader = styled.th`
background-color: #525252;
color: #FFFFFF;
text-align: left;
padding: 8px;
`;
const Table = styled.table`
tbody tr:nth-child(odd... |
js/components/loaders/Spinner.ios.js | bsisic/Mobilux | /* @flow */
import React from 'react';
import { ActivityIndicatorIOS } from 'react-native';
import NativeBaseComponent from 'native-base/Components/Base/NativeBaseComponent';
import computeProps from 'native-base/Utils/computeProps';
export default class SpinnerNB extends NativeBaseComponent {
prepareRootProps() ... |
newclient/scripts/components/config/sidebar/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... |
index.js | craigspaeth/baobab-spike | import path from 'path'
import express from 'express'
import React from 'react'
import babelify from 'babelify'
import { renderToString } from 'react-dom/server'
import rewire from 'rewire'
import socket from 'socket.io'
import http from 'http'
import sharify from 'sharify'
import esv from 'express-react-views'
import ... |
app/components/sidebar/tabs/history/History.js | rvpanoz/luna | import path from 'path';
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import IconButton from '@material-ui/core/IconButton';
import Tooltip from '@material-ui/core/Tooltip';
import Typography from '@material-ui/core/Typography';
import Divider fro... |
src/ButtonGroup.js | xuorig/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import CustomPropTypes from './utils/CustomPropTypes';
const ButtonGroup = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
vertical: React.PropTypes.bool,
justified: React.PropTypes.b... |
src/components/Text/Text.js | wundery/wundery-ui-react | import React from 'react';
import classnames from 'classnames';
import { spacingStyles } from '../Spacing/utils';
function Text(props) {
const {
block,
bold,
center,
children,
margin,
muted,
padding,
small,
theme,
left,
right,
italic,
large
} = props;
const st... |
src/demo/stories/callbacks/start.js | chybatronik/react_sortable | import React, { Component } from 'react';
import {default_order_diff} from "../demo_data";
import SortableReact from '../../../lib/SortableReact';
import Markdown from 'react-markdown';
const code = `
Param onCellDragStart is function with one parameter. This parameter is active item.
\`\`\`js
<SortableReact
mode={... |
src/routes/notFound/NotFound.js | LeraSavchenko/Maysternia | /**
* 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-... |
packages/react-vis/src/plot/gradient-defs.js | uber-common/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
packages/wix-style-react/src/DragAndDrop/docs/SortableList/MultiAreaListWithSortableColumnsWithAnimations/MultiAreaListWithSortableColumnsWithAnimations.js | wix/wix-style-react | import React from 'react';
import classNames from 'classnames';
import {
dndStyles as defaultDndStyles,
SortableList,
DragDropContextProvider,
} from 'wix-style-react';
import { classes } from './MultiAreaListWithSortableColumnsWithAnimations.st.css';
import { stVars } from '../../../../Foundation/stylable/easing... |
frontend/jqwidgets/jqwidgets-react/react_jqxtabs.js | yevgeny-sergeyev/nexl-js | /*
jQWidgets v5.7.2 (2018-Apr)
Copyright (c) 2011-2018 jQWidgets.
License: https://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxTabs extends React.Component {
componentDidMount() {
let options = this.manageAtt... |
src/components/Stop/StopList.js | mark4carter/react-hrtbus | import React from 'react'
import Radium from 'radium'
import Stop from './Stop'
import {
fetchStops
} from './../../redux/modules/stops/stop-actions'
import {
toggleFaveStop
} from './../../redux/modules/favorites/fave-stop-actions'
import { connect } from 'react-redux'
class StopList extends React.Component {
... |
src/Footer/Footer.js | brz0/folio-v11 | import React from 'react';
import FooterPath from '../img/footer.jpg';
const FooterBg = {backgroundImage: 'url(' + FooterPath + ')'}
export default class Footer extends React.Component {
getYear() {
return new Date().getFullYear();
}
render() {
return (
<div className="footerWrap" style={FooterBg... |
tests/format/flow-repo/react_modules/es6class-types-callsite.js | rattrayalex/prettier | /* @flow */
import React from 'react';
import Hello from './es6class-types-module';
type Props = {name: string};
class HelloLocal extends React.Component<void, Props, void> {
props: Props;
render(): React.Element<*> {
return <div>{this.props.name}</div>;
}
}
class Callsite extends React.Component<void, Pr... |
src/Well.js | collinwu/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Well = React.createClass({
mixins: [BootstrapMixin],
getDefaultProps() {
return {
bsClass: 'well'
};
},
render() {
let classes = this.getBsClassSet();
return (
<di... |
dashboard/components/EnvironmentForm.js | dbrabera/laika | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Form from './Form';
import Input from './Input';
import Card from './Card';
export default class FeatureForm extends Component {
constructor(props) {
super(props);
this.state = {};
this.handleChange = this.handleChang... |
admin/src/react/template-add-page/option-box.js | sggdv/vegan | import React, { Component } from 'react';
import {
Row,
Col,
FormGroup,
ControlLabel,
} from 'react-bootstrap';
import Option from './option';
class OptionList extends Component {
constructor(props) {
super(props);
this.handleOptionChange = this.handleOptionChange.bind(this);
this.handleOptionRemove = this... |
src/index.js | timmathews/react-liquid-gauge | import React from 'react';
import App from './App';
React.render(<App />, document.getElementById('root'));
|
src/server/processRoute.js | fervorous/fervor | import React from 'react';
import { getDataFromTree } from 'react-apollo';
import { Helmet } from 'react-helmet';
import ReactDOMServer from 'react-dom/server';
import load from '../shared/utils/load';
import resolveRoutes from './utils/resolveRoutes';
import requestStateBuilder from './utils/requestStateBuilder';
imp... |
src/index.js | humancatfood/bat-fe-test | import React from 'react';
import ReactDOM from 'react-dom';
import { version } from '../package.json';
import './style.css';
import App from './App';
window.console.log('version:', version, '-', process.env.NODE_ENV);
ReactDOM.render(<App />, document.getElementById('root'));
|
packages/material-ui-icons/src/SpeakerGroup.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let SpeakerGroup = props =>
<SvgIcon {...props}>
<path d="M18.2 1H9.8C8.81 1 8 1.81 8 2.8v14.4c0 .99.81 1.79 1.8 1.79l8.4.01c.99 0 1.8-.81 1.8-1.8V2.8c0-.99-.81-1.8-1.8-1.8zM14 3c1.1 0 2 .89 2 2s-.9 2-2 2-2-.... |
src/Interpolate.js | Terminux/react-bootstrap | // https://www.npmjs.org/package/react-interpolate-component
// TODO: Drop this in favor of es6 string interpolation
import React from 'react';
import ValidComponentChildren from './utils/ValidComponentChildren';
const REGEXP = /\%\((.+?)\)s/;
const Interpolate = React.createClass({
displayName: 'Interpolate',
... |
actor-apps/app-web/src/app/components/common/Document.react.js | winiceo/actor-platform | import React from 'react';
import classnames from 'classnames';
class Document extends React.Component {
static propTypes = {
content: React.PropTypes.object.isRequired,
className: React.PropTypes.string
};
constructor(props) {
super(props);
}
render() {
const { content, className } = this.... |
fiveRows/components/NewsFeed.js | chngws/User-Interface | import React, { Component } from 'react';
import { AppRegistry, ScrollView, Image, Text } from 'react-native'
export default class NewsFeed extends Component {
render(){
return(
<ScrollView style={{backgroundColor : 'white'}}>
<Image source={require('../images/Social-comm.png')} style={{width:360,h... |
src/index.js | vtkamiji/react-aula3 | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import ReduxPromise from 'redux-promise';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware(... |
actor-apps/app-web/src/app/components/common/AvatarItem.react.js | zomeelee/actor-platform | import React from 'react';
import classNames from 'classnames';
class AvatarItem extends React.Component {
static propTypes = {
image: React.PropTypes.string,
placeholder: React.PropTypes.string.isRequired,
size: React.PropTypes.string,
title: React.PropTypes.string.isRequired
};
constructor(pro... |
src/components/SidebarItem/SidebarItem-stories.js | wfp/ui | import React from 'react';
import markdown from './README.mdx';
import SidebarItem from './SidebarItem';
import Tag from '../Tag';
export default {
title: 'Components/UI Elements/SidebarItem',
component: SidebarItem,
parameters: {
componentSubtitle: 'Component',
status: 'released',
mdx: markdown,
... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/PureComponent.js | claudiopro/flow | // @flow
import React from 'react';
class MyComponent extends React.PureComponent<DefaultProps, Props, State> {
static defaultProps: DefaultProps = {};
state: State = {};
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extend... |
client/src/components/generic/TextInput.js | mfasman95/HTTP-API-project | import React from 'react';
import { InputGroup, FormControl, Button } from 'react-bootstrap';
/**
* @class TextInput
* @extends {React.Component}
*
* @prop title - The title of the input field
* @prop placeholder - The placeholder text for the input field
* @prop value - The value that's being maintained in the... |
actor-apps/app-web/src/app/components/modals/CreateGroup.react.js | tsdl2013/actor-platform | import React from 'react';
import CreateGroupActionCreators from 'actions/CreateGroupActionCreators';
import CreateGroupStore from 'stores/CreateGroupStore';
import CreateGroupForm from './create-group/Form.react';
import Modal from 'react-modal';
import { KeyCodes } from 'constants/ActorAppConstants';
const appEl... |
scripts/src/pages/meetingsList.js | Twogether/just-meet-frontend | import ReactDOM from 'react-dom';
import React from 'react';
import view from './views/meetingList';
import { Link } from 'react-router';
import Api from '../utils/api';
import menu from '../utils/menu';
import Moment from 'react-moment';
class MeetingsList extends React.Component {
constructor(props) {
s... |
src/component/game.js | heroinedor/tictactoe | import React from 'react';
import ReactDOM from 'react-dom';
import Board from './board'
import calculateWinner from '../util/func'
export default class Game extends React.Component {
constructor(){
super();
this.state = {
history: [{
squares: Array(9).fill(null)
... |
src/svg-icons/av/videocam.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVideocam = (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 4z"/>
</SvgIcon>
);
AvVideocam = pure(AvVideocam);
Av... |
src/map/js/components/AnalysisPanel/EsriSearch.js | wri/gfw-water | import {analysisActions} from 'actions/AnalysisActions';
import AnalysisHelper from 'helpers/AnalysisHelper';
import GraphicsHelper from 'helpers/GraphicsHelper';
import {analysisStore} from 'stores/AnalysisStore';
import {mapStore} from 'stores/MapStore';
import {analysisPanelText} from 'js/config';
import Search from... |
spec/components/tabs.js | showings/react-toolbox | import React from 'react';
import { Tabs, Tab } from '../../components/tabs';
class TabsTest extends React.Component {
state = {
index: 1,
fixedIndex: 1,
inverseIndex: 1,
};
handleTabChange = (index) => {
this.setState({ index });
};
handleFixedTabChange = (index) => {
this.setState({ f... |
src/main/resources/site/src/pages/Filter.js | oci-pronghorn/TwitterCleaner | import React from 'react';
import {List, ListItem} from 'material-ui/List';
import Divider from 'material-ui/Divider';
import Checkbox from 'material-ui/Checkbox';
import Subheader from 'material-ui/Subheader';
const Filter = () => (
<List>
<Subheader>Clear all older than</Subheader>
<ListItem primaryText="O... |
app/javascript/mastodon/features/list_adder/components/list.js | salvadorpla/mastodon | 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... |
rn-15-DrawerNavigator/screens/FirstScreen.js | KyoungRan/react-native-ex-NDH | import React, { Component } from 'react';
import { Text, View, Button, Image } from 'react-native';
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
export default class FirstScreen extends Component {
static navigationOptions = {
tabBarLabel: 'Screen 1',
drawerIcon: ({ tintColor }) => {
... |
src/main/index.js | FranckErnewein/socrates-craft-rochegude | import React from 'react';
import Grid from './Grid.jsx';
let grid = React.createElement(Grid, {});
React.render(grid, document.getElementById('content'));
|
components/ExportMenu.js | dawnlabs/carbon | import React from 'react'
import { withRouter } from 'next/router'
import { useCopyTextHandler, useOnline, useKeyboardListener } from '@dawnlabs/tacklebox'
import { COLORS, EXPORT_SIZES } from '../lib/constants'
import Button from './Button'
import Input from './Input'
import Popout, { managePopout } from './Popout'
... |
src/interface/icons/Suggestion.js | yajinni/WoWAnalyzer | import React from 'react';
// https://thenounproject.com/search/?q=idea&i=252366
// Idea by Gregor Cresnar from the Noun Project
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" className="icon" {...other}>
<path d="M38.7,90v-2.9c0-1.5,1.2-2.8,2.8-2.8h16.9c1.5,0.1,2.... |
imports/ui/pages/Cart/CartHome.js | haraneesh/mydev | import React from 'react';
import PropTypes from 'prop-types';
import CartDetails from '../../components/Cart/CartDetails';
const CartHome = ({ history, loggedInUser, match, roles }) => (
<CartDetails
history={history}
loggedInUser={loggedInUser}
orderId={match.params.id}
roles={roles}
/>
);
CartH... |
src/component/EpgDataSet.js | bertrandmartel/caipy-dashboard | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import Paper from 'material-ui/Paper';
import Table, { TableBody, TableCell, TableHead, TableRow } from 'material-ui/Table';
import MobileStepper from 'material-ui/MobileStepper';
import Button from 'material... |
MobileApp/mstudentApp/components/subsViews/SubjectRow.js | FresnoState/mobilestudentintranet | import React, { Component } from 'react';
import {
View,
ListView,
Switch,
Text
} from 'react-native';
import subscription from '../../modules/subscription';
export default class SubjectRow extends Component {
constructor(props){
super(props);
this.state = {subscribed: this.props.s... |
frontend/src/components/file-view/comment-panel.js | miurahr/seahub | import React from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import { processor } from '@seafile/seafile-editor/dist/utils/seafile-markdown2html';
import { Button, Dropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap';
import { gettext } from '../../utils/constants';
im... |
src/components/faction-table/faction-table.js | mpigsley/sectors-without-number | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Measure from 'react-measure';
import { FormattedMessage, intlShape } from 'react-intl';
import {
RotateCcw,
Minus,
ChevronUp,
ChevronDown,
EyeOff,
} from 'react-feather';
import FactionNo... |
app/components/AccountListItem.js | thomasantony/budget-app-legacy | import React from 'react';
const AccountListItem = ({account, active, onSelect}) => {
let {name, type, openingBalance} = account;
let icons = {
checking: 'briefcase',
creditCard: 'credit-card',
autoLoan: 'rocket', // why not? ^_^
}
return (
<span className={'nav-group-item '+(active ? 'active':... |
src/frontend/components/EventCreate.js | Bernie-2016/ground-control | import React from 'react';
import Relay from 'react-relay';
import SideBarLayout from './SideBarLayout.js'
import GCTextField from './forms/GCTextField.js'
import GCSelectField from './forms/GCSelectField.js'
import moment from 'moment'
import {Paper} from 'material-ui'
import {BernieText} from './styles/bernie-css'
c... |
techCurriculum/ui/solutions/4.5/src/components/Title.js | AnxChow/EngineeringEssentials-group | /**
* Copyright 2017 Goldman Sachs.
* 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... |
js/components/ListItem.js | mattwills8/react-list-voter | //core
import React, { Component } from 'react';
import { withCookies, Cookies } from 'react-cookie';
import RemoveButton from './RemoveButton';
import ListItemContent from './ListItemContent';
class ListItem extends Component {
constructor(props) {
super(props);
this.cookies = new Cookies;
this.cooki... |
app/App.js | marchi-martius/FreemarketRn | import React from 'react';
import PropTypes from 'prop-types';
import { createStore, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import logger from 'redux-logger';
import createSagaMiddleware from 'redux-saga';
import rootReducer from './reducers';
import rootSaga from './sagas';
const sag... |
frontend/src/components/BackupConfig/Review.js | XiaocongDong/mongodb-backup-manager | import React, { Component } from 'react';
import Form from '../Form';
import { hashHistory } from 'react-router'
//utility
import input from 'utility/input';
import object from 'utility/object';
import time from 'utility/time';
import backupConfigUtil from 'utility/backupConfig';
import { SUBMITSTATES } from 'constant... |
src/svg-icons/communication/comment.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationComment = (props) => (
<SvgIcon {...props}>
<path d="M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM18 14H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/>
</SvgIcon>
);
Co... |
src/client/routes.js | busyorg/busy | import React from 'react';
import { Switch } from 'react-router-dom';
import { renderRoutes } from 'react-router-config';
import routes from '../common/routes';
export default <Switch onUpdate={() => window.scrollTo(0, 0)}>{renderRoutes(routes)}</Switch>;
|
docs/src/app/components/pages/components/Popover/ExampleAnimation.js | w01fgang/material-ui | import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import {Popover, PopoverAnimationVertical} from 'material-ui/Popover';
import Menu from 'material-ui/Menu';
import MenuItem from 'material-ui/MenuItem';
export default class PopoverExampleAnimation extends React.Component {
constructor(... |
src/server.js | Alexoner/alexoner.github.com | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
import ApiC... |
lib/Components/CurrentWeather.js | Kalikoze/weatherly | import React from 'react';
export const CurrentWeather = props => {
const weatherImage = props.weatherData.current_observation.icon;
const city = props.weatherData.location.city + ', ' + props.weatherData.location.state;
const date = props.weatherData.forecast.simpleforecast.forecastday[0].date.pretty;
const c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.