path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/docs/components/button/ButtonTileExample.js | grommet/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Tiles from 'grommet/components/Tiles';
import Tile from 'grommet/components/Tile';
import Button from 'grommet/components/Button';
import Example from '../../Example';
export default class ButtonTileE... |
app/src/screens/Todos/components/TodoItem.js | BlackBoxVision/react-native-redux-todo | import React from 'react';
import PropTypes from 'prop-types';
import { Button, Card, CardItem, Text, CheckBox, Left, Body, Right } from 'native-base';
import Icon from 'react-native-vector-icons/MaterialIcons';
import TextHelpers from '../../../common/text/TextHelpers';
export default class TodoItem extends React.Co... |
react/features/settings/components/web/SettingsDialog.js | bgrozev/jitsi-meet | // @flow
import React, { Component } from 'react';
import { getAvailableDevices } from '../../../base/devices';
import { DialogWithTabs, hideDialog } from '../../../base/dialog';
import { connect } from '../../../base/redux';
import { isCalendarEnabled } from '../../../calendar-sync';
import {
DeviceSelection,
... |
webapp-src/src/MainScreen/Dashboard.js | babelouest/taliesin | import React, { Component } from 'react';
import { PanelGroup, Panel, Row, Col, Button } from 'react-bootstrap';
import FontAwesome from 'react-fontawesome';
import StateStore from '../lib/StateStore';
import BrowsePlaylist from './BrowsePlaylist';
import ManageStream from './ManageStream';
import ElementPathIcon from... |
src/challenges/react-redux/React_Redux_04.js | bonham000/fcc-react-tests-module | /* eslint-disable */
import React from 'react'
import assert from 'assert'
import { transform } from 'babel-standalone'
import Enzyme from '../Enzyme';
const shallow = Enzyme.shallow;
const mount = Enzyme.mount;
const render = Enzyme.render;
export const QA = true;
// ---------------------------- define challenge t... |
stories/multiple.js | bokuweb/react-rnd | /* eslint-disable */
import React from 'react';
import Rnd from '../src';
const style = {
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
border: 'solid 1px #ddd',
background: '#f0f0f0',
};
export default () => (
<div
style={{
background: '#eee',
padding: '20px',
wi... |
src/routes.js | Alexoner/alexoner.github.com | import React from 'react';
import {IndexRoute, Route} from 'react-router';
import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth';
import {
App,
Chat,
Home,
Widgets,
About,
Login,
LoginSuccess,
Survey,
NotFound,
} from 'containers';
export default (store) ... |
src/icons/IosGameControllerBOutline.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosGameControllerBOutline extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<g>
<path d="M308.076,203.929c-11.058,0-20.076,9.014-20.076,20.104c0,11.089,9.019,20.107,20.076,20.107
... |
src/components/FieldView.js | mhallin/graphql-docs | // @flow
import React from 'react';
import { Field } from '../model';
import { DescriptionView } from './DescriptionView';
import { FieldSyntaxView } from './FieldSyntaxView';
import { FieldArgumentsTableView } from './FieldArgumentsTableView';
import * as StyleSheet from './FieldView.css';
export class FieldView ... |
docs/src/app/components/pages/components/Avatar/Page.js | pomerantsev/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import avatarReadmeText from './README';
import AvatarExampleSimple from './Exam... |
src/js/components/icons/base/User.js | linde12/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
src/Parser/Monk/Brewmaster/Modules/Features/Checklist.js | enragednuke/WoWAnalyzer | import React from 'react';
import Wrapper from 'common/Wrapper';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import SpellLink from 'common/SpellLink';
import ItemLink from 'common/ItemLink';
import CoreChecklist, { Rule, Requirement } from 'Parser/Core/Modules/Features/Checklist';
// import ... |
packages/slate-react/src/plugins/after.js | 6174/slate |
import Base64 from 'slate-base64-serializer'
import Debug from 'debug'
import Plain from 'slate-plain-serializer'
import React from 'react'
import getWindow from 'get-window'
import { Block, Inline, Text, coreSchema } from 'slate'
import EVENT_HANDLERS from '../constants/event-handlers'
import HOTKEYS from '../consta... |
StudyNotes/ReactNative_/js/lifecycle.js | coderZsq/coderZsq.target.swift | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity,
TextInput
} from 'react-native';
var LifeCycle = React.createClass({
//初始化属性 只读 不能修改
getDefaultProps() {
return {
name: 'Castiel'
}
},
//初始化属性 可读写
getIni... |
js/components/common/checkbox-with-text/index.js | justarrived/p2p-client | import React, { Component } from 'react';
import { StyleSheet, Text } from 'react-native';
import { ListItem, CheckBox, Body } from 'native-base';
import styles from './style';
export default class CheckBoxWithText extends Component {
static propTypes = {
title: React.PropTypes.string.isRequired,
isChecked: ... |
web/src/containers/Login.js | xiyanxiyan10/quant | import { ResetError } from '../actions';
import { UserLogin } from '../actions/user';
import React from 'react';
import { connect } from 'react-redux';
import { browserHistory } from 'react-router';
import { Button, Form, Input, Icon, Tooltip, notification } from 'antd';
class Login extends React.Component {
constru... |
src/components/Clan.js | TrueWill/embracer | import React from 'react';
import PropTypes from 'prop-types';
import { mapKeysToArray } from '../utils/mapUtils';
import { clans } from '../constants/clanOptions';
export default function Clan({ clan, updateClan }) {
const handleClanChange = e => {
updateClan(e.target.value);
};
const handleBloodlineChange... |
src/pages/cluster/detail.js | one-love/frontend | import React from 'react'
import PropTypes from 'prop-types'
import { observer } from 'mobx-react'
// Components
import Button from '@material-ui/core/Button'
import Paper from '@material-ui/core/Paper'
import TextField from '@material-ui/core/TextField'
import Tooltip from '@material-ui/core/Tooltip'
import store fr... |
src/js/views/Track.js | jaedb/Iris | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import Link from '../components/Link';
import ErrorMessage from '../components/ErrorMessage';
import Header from '../components/Header';
import Thumbnail from '../components/Thumbnail';
import LinksSente... |
client/components/customButton.js | TecProgPurrsuit/TeamBasedLearningApp | /**
* This file is responsible for creating custom buttons.
*
* @summary Create custom buttons.
* @class CustomButton
*/
import React from 'react';
function CustomButton(props) {
return (
<button type={props.type} className={props.className}>
<i className="material-icons left">{props.icon}</i>
{prop... |
docs/src/IntroductionPage.js | brynjagr/react-bootstrap | import React from 'react';
import CodeExample from './CodeExample';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
const IntroductionPage = React.createClass({
render() {
return (
<div>
<NavMain activePage="introduction" />
<... |
app/frontend/javascripts/containers/user-list.js | czyzykowski/chatroom | import {map} from 'ramda';
import React from 'react';
import {connect} from 'react-redux';
class UserList extends React.Component {
renderUser(user) {
return (
<li className="list-group-item" key={user}>
<strong>@{user}</strong>
</li>
);
}
render() {
const {users, height} = this.... |
react/src/Radio.js | Chalarangelo/react-mini.css | import React from 'react';
import generateUniqueId from './util/idGenerator';
// Module constants (change according to your flavor file)
var inputGroupClassName = 'input-group';
// Radio component.
export function Radio (props){
var outProps = Object.assign({}, props);
if (typeof outProps.labelText === 'undefined')... |
src/containers/Charts/reactChart2/components/polar/polar.js | EncontrAR/backoffice | import React from 'react';
import {Polar} from 'react-chartjs-2';
import {data} from './polarConfig';
class PolarChart extends React.Component {
render() {
return (
<Polar
data={data}
height={230}
/>
);
}
};
export default PolarChart;
|
packages/mineral-ui-icons/src/IconDirectionsSubway.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconDirectionsSubway(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...i... |
src/index.js | esantelises/seriesly-web | import React from 'react';
import { render } from 'react-dom';
import './index.css';
import Root from './components/Root';
import registerServiceWorker from './registerServiceWorker';
render(<Root />, document.getElementById('root'));
registerServiceWorker();
|
file-browser-ui/dev/js/components/drawer/cloudUser.js | CloudBoost/cloudboost | import React from 'react'
import ReactDOM from 'react-dom'
import { Card, CardActions, CardHeader, CardMedia, CardTitle, CardText } from 'material-ui/Card'
class CloudUser extends React.Component {
constructor() {
super()
this.state = {
}
}
copyToClipboard(element) {
var ... |
templates/full/javascript/src/client/app/view/NameLoader.js | peterjuras/slush-azure-node | import React, { Component } from 'react';
import NameLoaderView from './NameLoaderView';
// React component that handles the button click
export default class NameLoader extends Component {
constructor(...props) {
super(...props);
this.state = { appName: '' };
this.handleClick = this.handleClick.bind(th... |
example/src/components/ButtonBar.js | redux-autoform/redux-autoform-next | import React from 'react';
import { RaisedButton } from 'material-ui';
const ButtonBar = (props) => (
<RaisedButton
disabled={props.submitting || props.pristine}
label='Submit'
type='submit'
fullWidth
primary
/>
);
export default ButtonBar; |
boxroom/archive/backup-js-surface-2018-01-28/boxroom/archive/2017-10-27-glow/js-glow/src/performance/dbmon/react/app.js | js-works/js-surface | /** @jsx React.createElement */
import ENV from '../shared/env.js';
import React from 'react';
import ReactDOM from 'react-dom';
export default class DBMon extends React.Component {
constructor(props) {
super(props);
this.state = {
databases: []
};
}
loadSamples()... |
src/parser/hunter/beastmastery/modules/talents/SpittingCobra.js | FaideWW/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import ItemDamageDone from 'interface/others/ItemDamageDone';
import ResourceIcon from 'common/ResourceIcon';
import RESOURCE_TYPES from 'game... |
react-components/src/library/components/materials-bin/materials-bin.js | concord-consortium/rigse | import React from 'react'
import MBMaterialsCategory from './materials-category'
import MBCollections from './collections'
import MBOwnMaterials from './own-materials'
import MBMaterialsByAuthor from './materials-by-author'
export default class MaterialsBin extends React.Component {
constructor (props) {
super(... |
sample-files/react.react.js | Restuta/seti-syntax | import config from '../config';
import React from 'react';
import {Link} from 'react-router';
@withStyles(styles)
class SoundCloud extends SoundCloudAudio {
static propTypes = {
to: PropTypes.string.isRequired,
children: PropTypes.element.isRequired,
state: PropTypes.object,
onClick: PropTypes.func
... |
src/components/todo/screens/TodoAdd/TodoAddScreen.js | yasavbrain/yasav | import React from 'react';
import I18n from 'yasav/locales/i18n';
import TodoAddContainer from './containers/TodoAddContainer';
export default class TodoAddScreen extends React.Component {
// FIXME : Here the parameters from the navigation are called navParams
// but in ActivityDisplayScreen this is called stateP... |
app/components/Settings.js | protonproject/proton-player | /**
* @flow
*/
import React, { Component } from 'react';
class Settings extends Component {
render() {
return (
<div>
Settings Page
</div>
);
}
}
export default Settings;
|
src/screens/search/components/ActivitySearch/ActivitySearch.js | vio-lets/Larkyo-Client | import React from 'react';
// import './PeopleSearch.css';
export default class ActivitySearch extends React.Component {
constructor() {
super();
this.state = {}
}
render() {
return(
<div className="activitySearchContainer">
<h2>Activity search is coming... |
app/containers/ReguliVot/index.js | code4romania/monitorizare-vot-votanti-client | import React from 'react';
import Helmet from 'react-helmet';
import * as _ from 'lodash';
import styled from 'styled-components';
import rules from './rules';
import Hero from './components/hero';
import ItemRule from './components/item-rule';
const Content = styled.div`
margin: 30px 0 120px;
`;
const Scroller =... |
src/components/forms/FormError.js | zebras-filming-videos/streamr-web | import React from 'react'
export default ({
children
}) => (
<p className='form-error'>{children}</p>
)
|
frontend-new/src/js/components/dashboard/resources/index.js | leapfrogtechnology/vyaguta-resource | /*
*
* Created by Sparsha
*/
import React from 'react';
import AvailableResourceService from '../../../service/resources';
import * as resourceConstants from '../../../constants/resourceConstants';
import CustomPagination from '../../common/pagination';
import AvailableResourceRow from './AvailableResourceRow';
im... |
src/Parser/Mage/Fire/Modules/Items/DarcklisDragonfireDiadem.js | enragednuke/WoWAnalyzer | import React from 'react';
import ITEMS from 'common/ITEMS';
import SPELLS from 'common/SPELLS';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import getDamageBonus from 'Parser/Mage/Shared/Modules/GetDamageBonus';
import ItemDamageDone from 'Main/ItemDamageDone'... |
app/components/AddTask/GMaps/index.js | prudhvisays/season | import React from 'react';
import './MapStyle.css';
let searchBox;
export default class GMaps extends React.Component { //eslint-disable-line
constructor(props) {
super(props);
this.geolocate = this.geolocate.bind(this);
this.initAutocomplete = this.initAutocomplete.bind(this);
this.searchBoxPlaces ... |
src/icons/AllOutIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class AllOutIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M32 8l8 8V8zm8 24l-8 8h8zm-24 8l-8-8v8zM8 16l8-8H8zm25.9-1.9c-5.47-5.47-14.33-5.47-19.8 0s-5.47 14.33 0 19.... |
src/shared/components/BalanceTotal/index.js | rvboris/finalytics | import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { get } from 'lodash';
import MoneyFormat from '../MoneyFormat';
const BalanceTotal = ({ total, currencyId }) => (
<MoneyFormat sum={total} currencyId={currencyId} />
);
BalanceTotal.propTypes = {
... |
examples/with-monorepo-without-workspaces/basic-2/src/server.js | jaredpalmer/razzle | import path from 'path';
import App from './App';
import React from 'react';
import express from 'express';
import { renderToString } from 'react-dom/server';
const assets = require(process.env.RAZZLE_ASSETS_MANIFEST);
const cssLinksFromAssets = (assets, entrypoint) => {
return assets[entrypoint] ? assets[entrypoin... |
viewer/core/static/js/app/components/containers/dataset-datestamp-container.js | openjck/distribution-viewer | import React from 'react';
import { connect } from 'react-redux';
import DatasetDatestamp from '../views/dataset-datestamp';
class DatasetDatestampContainer extends React.Component {
constructor(props) {
super(props);
this.gotDataset = false;
}
shouldComponentUpdate() {
return this.gotDataset ? fa... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DefaultParameters.js | HelpfulHuman/helpful-react-scripts | /**
* 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, { Component } from 'react';
import PropTypes from 'prop-types';
function load(id = 0) {
return [
{ id: id + 1, name... |
packages/showcase/misc/synced-charts.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... |
src/js/components/EventDisplay.js | alexbance/rp-centre | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Grid, Row, Col } from 'react-flexbox-grid';
import { Link } from 'react-router-dom';
import { connect } from 'react-firebase';
import axios from 'axios';
import moment from 'moment';
import Event from './Event';
import RefreshIndica... |
examples/react-pokedex/src/index.js | SmartImpulse/dispersive | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/components/Main-base.js | MaxMooc/react-gallery | require('normalize.css/normalize.css');
require('styles/App.css');
import React from 'react';
class Avatar extends React.Component{
render(){
return (
<img className="Avatar"
src={this.props.author.avatarUrl}
alt={this.props.author.name} />
)
}
}
class UserInfo... |
app/javascript/mastodon/features/home_timeline/components/column_settings.js | masarakki/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { injectIntl, FormattedMessage } from 'react-intl';
import SettingToggle from '../../notifications/components/setting_toggle';
export default @injectIntl
class ColumnSettings extends React.... |
src/Containers/ChartContainer/ChartModal.js | sirjuan/harmonical-oscillation | import React from 'react';
import { Button, Modal, ModalHeader, ModalBody } from 'reactstrap';
import AddChartForm from './AddChartForm';
class ModalExample extends React.Component {
constructor(props) {
super(props);
this.state = {
modal: false
};
this.toggle = this.toggle.bind(thi... |
app/javascript/mastodon/features/compose/components/autosuggest_account.js | imomix/mastodon | import React from 'react';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
class AutosuggestAccount extends ImmutablePureComponen... |
packages/ringcentral-widgets-docs/src/app/pages/Components/Switch/Demo.js | u9520107/ringcentral-js-widget | import React from 'react';
// eslint-disable-next-line
import Switch from 'ringcentral-widgets/components/Switch';
const props = {};
/**
* A example of `Switch`
*/
const SwitchDemo = () => (
<Switch
{...props}
/>
);
export default SwitchDemo;
|
demo/js/components/body.js | rolyatmax/redux-resource-manager | // FIXME: figure out why eslint is messed up here
import React from 'react'; // eslint-disable-line
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux'; // eslint-disable-line
import store from '../store';
import { connectResourceManager } from '../../../src';
import { setUser } from '../a... |
frontend/src/Artist/Details/ArtistDetailsSeasonConnector.js | lidarr/Lidarr | /* eslint max-params: 0 */
import _ from 'lodash';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { setAlbumsSort, setAlbumsTableOption, toggleAlbumsMonitored } from 'Store/Actions/albumActions';
impo... |
src/components/Counter/Counter.js | SHBailey/echo-mvp | import React from 'react'
import classes from './Counter.scss'
export const Counter = (props) => (
<div>
<h2 className={classes.counterContainer}>
Counter:
{' '}
<span className={classes['counter--green']}>
{props.counter}
</span>
</h2>
<button className='btn btn-default' ... |
packages/material-ui-icons/src/Restore.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 ... |
src/views/application.js | zenoamaro/psd-viewer | /* @flow */
import PSD from 'psd';
import React from 'react';
import Preview from './preview';
import Editor from './editor';
import getLayerId from '../utils/get-layer-id';
export default React.createClass({
getInitialState() {
return {};
},
enableFileDrop(event) {
event.preventDefault();
},
async dropFi... |
styleguide/sections/Grids.js | scott-riley/loggins | import React, { Component } from 'react';
import Section from '../components/Section';
import styles from '../styleguide.css';
export default class GridSection extends Component {
render() {
return (
<Section name="Grids" href="https://github.com/PactCoffee/loggins/blob/master/styleguide/sections/Grids.js... |
src/containers/search_bar.js | JorgeHernandez/reduxWorkshop | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { fetchWeather } from '../actions/index';
class SearchBar extends Component {
constructor(props){
super(props);
this.state = { term: '' };
this.onInputChange = this.onInputChange.b... |
src/svg-icons/notification/airline-seat-recline-extra.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatReclineExtra = (props) => (
<SvgIcon {...props}>
<path d="M5.35 5.64c-.9-.64-1.12-1.88-.49-2.79.63-.9 1.88-1.12 2.79-.49.9.64 1.12 1.88.49 2.79-.64.9-1.88 1.12-2.79.49zM16 19H8.93c-1.48 0... |
jenkins-design-language/src/js/components/material-ui/svg-icons/editor/format-paint.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const EditorFormatPaint = (props) => (
<SvgIcon {...props}>
<path d="M18 4V3c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6h1v4H9v11c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-9h8V4h-3z"/>
</SvgIcon>
);
EditorFormatPaint.displayNa... |
client/src/app/components/pages/MessageList.js | mtiger2k/graphql-tutorial | import React from 'react';
import AddMessage from './AddMessage';
const MessageList = ({ messages }) => {
return (
<div className="messagesList">
{ messages.map( message =>
(<div key={message.id} className={'message ' + (message.id < 0 ? 'optimistic' : '')}>
{message.text}
</di... |
src/components/Input.js | andresilveira/stendebach_pillows | import React from 'react';
import { connect } from 'react-redux';
import { updateAttribute } from '../actions';
class Input extends React.PureComponent {
constructor(props) {
super(props);
this.onChangeHandler = this.onChangeHandler.bind(this);
}
isChecked() {
return this.isCheckable() && (this.pr... |
src/js/components/IssueList.js | aleross/maroon-joule | import React from 'react';
import { Link } from 'react-router';
import { browserHistory } from 'react-router';
import { loadFromGithub } from '../utils';
import Pagination from './Pagination';
export default class IssueList extends React.Component {
// Todo:
// - progress indicator
// - error message
... |
components/date-picker/range-calendar.js | TDFE/td-ui | /**
* @Author: Zhengfeng.Yao <yzf>
* @Date: 2017-06-28 11:30:03
* @Last modified by: yzf
* @Last modified time: 2017-06-28 11:30:05
*/
import React from 'react';
import moment from 'moment';
import Button from '../button';
import Calendar from './calendar';
const ButtonGroup = Button.Group;
export default c... |
client/components/navbar.js | LivenUp/livenup | import React, { Component } from 'react';
import AppBar from 'material-ui/lib/app-bar';
import routeActions, { push } from 'react-router-redux';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import LogInOut from './logInOut';
import injectTapEventPlugin from 'react-tap-event-plugin'... |
src/pages/user-favorites.js | voidxnull/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2015 Loki Education (Social Enterprise)
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 License, o... |
project/src/scenes/Account/Preferences/Preferences.js | strues/boldr | /* @flow */
import React, { Component } from 'react';
import Helmet from 'react-helmet';
// internal
import { Col, Row, Grid } from '@boldr/ui/Layout';
import EditProfile from './components/EditProfile';
type Props = {
currentUser: Object,
uploadProfileImg: () => void,
uploadAvatarImg: () => void,
handleDrawer... |
src/svg-icons/device/battery-20.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBattery20 = (props) => (
<SvgIcon {...props}>
<path d="M7 17v3.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V17H7z"/><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7... |
app/screens/settings/notification_settings_mobile/notification_settings_mobile.android.js | mattermost/mattermost-mobile | // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
/* eslint-disable max-lines */
import deepEqual from 'deep-equal';
import PropTypes, {string} from 'prop-types';
import React from 'react';
import {injectIntl} from 'react-intl';
import {
Alert,
Mod... |
node_modules/react-router/modules/Lifecycle.js | fyafighter/informifly | import React from 'react'
import invariant from 'invariant'
const { object } = React.PropTypes
/**
* The Lifecycle mixin adds the routerWillLeave lifecycle method to a
* component that may be used to cancel a transition or prompt the user
* for confirmation.
*
* On standard transitions, routerWillLeave receives ... |
ui/src/pages/PeopleImportPage/index.js | LearningLocker/learninglocker | import React from 'react';
import { connect } from 'react-redux';
import { withProps, compose, withHandlers } from 'recompose';
import { fromJS, Map } from 'immutable';
import { withModels } from 'ui/utils/hocs';
import ModelList from 'ui/containers/ModelList';
import { addModel } from 'ui/redux/modules/models';
import... |
app/scripts/components/node-details/node-details-health-overflow-item.js | hustbill/autorender-js | import React from 'react';
import { formatMetric } from '../../utils/string-utils';
function NodeDetailsHealthOverflowItem(props) {
return (
<div className="node-details-health-overflow-item">
<div className="node-details-health-overflow-item-value">
{formatMetric(props.value, props)}
</div>... |
src/components/image.js | antholord/poe-livesearch | /**
* Created by Anthony Lord on 2017-04-24.
*/
import React from 'react';
let r = {};
class Socket extends React.Component {
/* constructor(props) {
super(props);
this.getClassColor = this.getClassColor.bind(this);
}
getClassColor() {
}
*/
render(){
return (
<... |
client/src/research/LoginPage.js | mit-teaching-systems-lab/threeflows | import React, { Component } from 'react';
import './LoginPage.css';
import BackgroundColor from './BackgroundColor.js';
// The page for users to login for accessing research data.
class LoginPage extends Component {
constructor(props) {
super(props);
this.state = {
email: "",
message: ""
};... |
definitions/npm/react-joyride_v1.x.x/flow_v0.16.x-v0.52.x/react-joyride_v1.x.x.js | mkscrg/flow-typed | import React from 'react';
type ReactJoyride$LocaleOption = {
back?: string,
close?: string,
last?: string,
next?: string,
skip?: string,
}
type ReactJoyride$DefaultProps = {
debug: bool,
keyboardNavigation: bool,
locale: ReactJoyride$LocaleOption,
resizeDebounce: bool,
resizeDebounceDelay: number... |
docs/src/Anchor.js | Terminux/react-bootstrap | import React from 'react';
const Anchor = React.createClass({
propTypes: {
id: React.PropTypes.oneOfType([
React.PropTypes.string,
React.PropTypes.number
])
},
render() {
return (
<a id={this.props.id} href={'#' + this.props.id} className="anchor">
<span className="anchor-ic... |
stories/lineupStory.js | nvbf/pepper | import React from 'react';
import { storiesOf } from '@storybook/react';
import { withKnobs, number } from '@storybook/addon-knobs';
import { host } from 'storybook-host';
import VolleyNet from '../components/lineup/VolleyNet';
import VolleyCourt from '../components/lineup/VolleyCourt';
import Lineup from '../component... |
blueocean-material-icons/src/js/components/svg-icons/editor/strikethrough-s.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const EditorStrikethroughS = (props) => (
<SvgIcon {...props}>
<path d="M7.24 8.75c-.26-.48-.39-1.03-.39-1.67 0-.61.13-1.16.4-1.67.26-.5.63-.93 1.11-1.29.48-.35 1.05-.63 1.7-.83.66-.19 1.39-.29 2.18-.29.81 0 1.54.11 2.21.34.66.22 1.23.54 1.69.94.47.... |
src/index.js | EpicEpidemic/EpicLanConnectSite | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
admin/client/App/shared/Popout/PopoutListHeading.js | danielmahon/keystone | /**
* Render a popout list heading
*/
import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var PopoutListHeading = React.createClass({
displayName: 'PopoutListHeading',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
},
... |
node_modules/semantic-ui-react/src/modules/Modal/ModalContent.js | SuperUncleCat/ServerMonitoring | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
childrenUtils,
createShorthandFactory,
customPropTypes,
getElementType,
getUnhandledProps,
META,
useKeyOnly,
} from '../../lib'
/**
* A modal can contain content.
*/
function ModalContent(props) {
const... |
src/components/playground/tester.js | javflores/dtl-react-training | import React from 'react';
const Tester = () => {
return (
<div className="container">
<div className="row">
<div className="page-header">
<h1><img src="https://bucket.cdndtl.co.uk/bc/ICONS_70x70/icon-LineRentalIncluded.png"/>
Fast Broadba... |
internals/templates/containers/App/index.js | vinhtran19950804/procure_react | /**
*
* App.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 hot
... |
frontend/src/Settings/Profiles/Metadata/ReleaseStatusItem.js | lidarr/Lidarr | import classNames from 'classnames';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import CheckInput from 'Components/Form/CheckInput';
import styles from './TypeItem.css';
class ReleaseStatusItem extends Component {
//
// Listeners
onAllowedChange = ({ value }) => {
const {... |
react-release/dominion-js/src/components/molecules/Molecule.playerCard.js | ExplosiveHippo/Dominion.js | import React, { Component } from 'react';
import imageMap from '../../imageMap';
import AtomplayButton from '../atoms/Atom.playButton'
export default class playerCard extends Component {
render() {
return (
<div className="playerCard">
<img src={imageMap.large[this.props.cardData.name]} role="presentat... |
src/index.js | williamcabrera4/chrome-app-websocket-tester | import 'core-js/fn/object/assign';
import 'normalize.css';
import 'styles/App.scss'; // eslint-disable-line
import injectTapEventPlugin from 'react-tap-event-plugin';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import MuiThemeProvider from 'material-ui/styles/Mui... |
app/javascript/mastodon/features/blocks/index.js | tri-star/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debounce } from 'lodash';
import PropType... |
src/svg-icons/action/verified-user.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionVerifiedUser = (props) => (
<SvgIcon {...props}>
<path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z"/>
</SvgIcon>
);
ActionVerif... |
app/components/DonateAside/index.js | Blacksage959/Michael.McCann | /**
*
* DonateAside
*
*/
import React from 'react';
import FlatButton from 'material-ui/FlatButton';
import FavoriteBorderIcon from 'material-ui/svg-icons/action/favorite-border';
import {Link} from "react-router";
class DonateAside extends React.PureComponent {
handleNav = (location) => {
this.context.router.... |
src/svg-icons/notification/airline-seat-recline-normal.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatReclineNormal = (props) => (
<SvgIcon {...props}>
<path d="M7.59 5.41c-.78-.78-.78-2.05 0-2.83.78-.78 2.05-.78 2.83 0 .78.78.78 2.05 0 2.83-.79.79-2.05.79-2.83 0zM6 16V7H4v9c0 2.76 2.24 5... |
src/mui/detail/Tab.js | azureReact/AzureReact | import React from 'react';
import Labeled from '../input/Labeled';
const Tab = ({ label, icon, children, ...rest }) => (
<span>
{React.Children.map(
children,
field =>
field && (
<div
key={field.props.source}
... |
src/holders/Table.js | toplan/react-hold | import React from 'react'
import PropTypes from 'prop-types'
import shapes from '../shapes'
import { CENTER } from '../align'
import { warn } from '../utils'
const COLS = 2
const ROWS = 2
const GAP = 2
const $nbsp = '\u00A0'
const blankLength = 10
const computeCellSide = (total, number, gap) => {
if (total <= 0) re... |
src/website/app/Logo.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
type Props = {
fill?: string,
title?: string
};
const Logo = (props: Props) => {
const { fill, title, ...restProps } = props;
const fillColor = fill || 'currentColor';
return (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 457.93 570.83"
{.... |
packages/react-scripts/template/src/index.js | Antontsyk/react_vk | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/svg-icons/action/swap-vertical-circle.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSwapVerticalCircle = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM6.5 9L10 5.5 13.5 9H11v4H9V9H6.5zm11 6L14 18.5 10.5 15H13v-4h2v4h2.5z"/>
... |
lib/MultiColumnList/stories/CheckboxSelect.js | folio-org/stripes-components | import React from 'react';
import MultiColumnList from '../MultiColumnList';
import Checkbox from '../../Checkbox';
import { asyncGenerate, syncGenerate } from './service';
export default class CheckboxSelect extends React.Component {
constructor() {
super();
this.state = {
data: syncGenerate(100, 0),... |
app/javascript/mastodon/features/community_timeline/index.js | verniy6462/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import {
refreshCommunityTimeline,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.