path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
app/counter/containers/download.js
littlethree/demo
/************************************************************************* * Description: 下载列表DEMO * Author: raojia * Mail: raojia@le.com * Created Time: 2017-01-26 ************************************************************************/ 'use strict'; import React, { Component } from 'react'; import { StyleSh...
frontend/capitolwords-spa/src/components/SearchResultItem/SearchResultItem.story.js
sunlightlabs/Capitol-Words
import React from 'react'; import { storiesOf } from '@storybook/react'; import g from 'glamorous'; import SearchResultItem from './SearchResultItem'; const ItemList = g.ul({ listStyle: 'none', padding: '0', margin: '0 auto', maxWidth: '600px', }); const items = [ { "id": "id-CREC-2017-05-22-pt1-PgH4...
test/src/attach/index.js
yummies/core-components
import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import chai, { expect } from 'chai'; import { renderOnce } from 'test/helpers/render'; import Attach from '#attach'; describe('attach', () => { describe('basic', () => { it('exists', () => { ...
src/pages/conference/add/addConference/addForm.js
sunway-official/acm-admin
import React from 'react'; import { reduxForm, Field, reset } from 'redux-form'; import { RaisedButton } from 'material-ui'; import validate, { renderTextField, renderDatePicker } from './../validate'; import normalizePhone from './../helpers/normalizePhone'; import { style } from './../style/style.css'; // import AppM...
app/javascript/mastodon/features/ui/components/embed_modal.js
maa123/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { defineMessages, FormattedMessage, injectIntl } from 'react-intl'; import api from 'mastodon/api'; import IconButton from 'mastodon/components/icon_button'; const messages = defin...
config/componentData.js
miker169/ps-react-miker169
module.exports = /* eslint-disable */ [{"name":"EyeIcon","description":"SVG Eye Icon","code":"import React from 'react';\n\n/** SVG Eye Icon */\nfunction EyeIcon() {\n return (\n <svg width=\"16\" height=\"16\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 22 22\">\n <g transform=\"matrix(.02146 0 0 .0214...
frontend/src/components/controls/RemoteBrowserUI/index.js
webrecorder/webrecorder
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Alert } from 'react-bootstrap'; import WebSocketHandler from 'helpers/ws'; import { getStorage } from 'helpers/utils'; import { toggleAutopilot } from 'store/modules/automation'; import { createRemoteBrowser } from 'store/modules/r...
src/svg-icons/device/bluetooth-disabled.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBluetoothDisabled = (props) => ( <SvgIcon {...props}> <path d="M13 5.83l1.88 1.88-1.6 1.6 1.41 1.41 3.02-3.02L12 2h-1v5.03l2 2v-3.2zM5.41 4L4 5.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l4.29-4.29 2.3 2.29...
components/react-semantify/src/modules/rating.js
react-douban/douban-book-web
import React from 'react'; import ClassGenerator from '../mixins/classGenerator'; let defaultClassName = 'ui rating'; const Rating = React.createClass({ mixins: [ClassGenerator], render: function () { let {className, rating, maxRating, ...other} = this.props; return ( <div {...other} cla...
app/javascript/mastodon/main.js
PlantsNetwork/mastodon
import * as registerPushNotifications from './actions/push_notifications'; import { default as Mastodon, store } from './containers/mastodon'; import React from 'react'; import ReactDOM from 'react-dom'; import ready from './ready'; const perf = require('./performance'); function main() { perf.start('main()'); i...
js/jqwidgets/demos/react/app/datatable/localization/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDataTable from '../../../jqwidgets-react/react_jqxdatatable.js'; class App extends React.Component { render() { let data = generatedata(250); let source = { localdata: data, dataFie...
src/routes/not-found/index.js
willchertoff/Ben-Kinde
import React from 'react'; import Layout from '../../components/Layout'; import NotFound from './NotFound'; const text = `Ooops we couldn't find anything!`; function action() { return { chunks: ['not-found'], title: 'Not Found', component: <Layout><NotFound text={text} /></Layout>, status: 404, };...
src/svg-icons/content/redo.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentRedo = (props) => ( <SvgIcon {...props}> <path d="M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/> </Sv...
example/nextjs/with-layout.js
lipp/login-with
import React from 'react' import Head from 'next/head' import Header from './components/Header' import Footer from './components/Footer' export default (Component) => ( class WithLayout extends React.Component { state = { origin: '' } static async getInitialProps (args) { return Component.ge...
src/index.js
averted/react-transform-boilerplate
import React from 'react'; import { App } from './App'; React.render(<App />, document.getElementById('root'));
packages/xo-web/src/xo-app/settings/servers/index.js
vatesfr/xo-web
import _, { messages } from 'intl' import ActionButton from 'action-button' import Component from 'base-component' import Icon from 'icon' import React from 'react' import SortedTable from 'sorted-table' import StateButton from 'state-button' import Tooltip from 'tooltip' import { addSubscriptions } from 'utils' import...
src/collections/BootTable/BootTable.js
shengnian/shengnian-ui-react
import React from 'react' import PropTypes from 'prop-types' import cx from 'classnames' import { mapToCssModules } from '../../lib/' const propTypes = { className: PropTypes.string, cssModule: PropTypes.object, size: PropTypes.string, bordered: PropTypes.bool, striped: PropTypes.bool, inverse: PropTypes.b...
js/components/Home/Header.js
scaphold-io/react-relay-starter-kit
import React from 'react'; import Relay from 'react-relay'; import {hashHistory} from 'react-router'; import {Navbar, Nav, NavItem, NavDropdown, MenuItem} from 'react-bootstrap'; import Logout from './Logout'; class Header extends React.Component { constructor(props) { super(props); this.goToGraphiQL = this....
src/components/Day.js
mberneti/react-datepicker2
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { persianNumber } from '../utils/persian'; export default class Day extends Component { static propTypes = { day: PropTypes.object.isRequired, isCurrentMonth: PropTypes.bool, disabled...
packages/netlify-cms-widget-list/src/__tests__/ListControl.spec.js
netlify/netlify-cms
import React from 'react'; import { fireEvent, render } from '@testing-library/react'; import { fromJS } from 'immutable'; import ListControl from '../ListControl'; jest.mock('netlify-cms-widget-object', () => { const React = require('react'); class MockObjectControl extends React.Component { render() { ...
src/app/components/Pages/Checkout/index.js
allangrds/Pagarme-Front-Jr
import React, { Component } from 'react'; import { Container, Row, Col, Button, Table, Alert } from 'reactstrap'; import styles from './Checkout.styl'; import { actions, store } from './../../../flux'; import Numeral from './../../../helpers/Numeral'; import classNames from 'classnames'; import pagarme from 'pagarme'; ...
src/components/Header/Header.js
anthonyraymond/react-redux-starter-kit
import React from 'react' import { IndexLink, Link } from 'react-router' import classes from './Header.scss' export const Header = () => ( <div> <h1>React Redux Starter Kit</h1> <IndexLink to='/' activeClassName={classes.activeRoute}> Home </IndexLink> {' · '} <Link to='/counter'...
src/components/Panel.js
codaco/Network-Canvas
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; /** * Renders a side panel, with a title and `props.children`. */ class Panel extends Component { constructor() { super(); this.state = { collapsed: false }; } toggleCollapsed = () => { th...
js/jqwidgets/demos/react/app/dropdownlist/filtering/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js'; class App extends React.Component { render() { let shirtFileNames = ['2-sided-dodgers-bankrupt-t-shirt-ash', 'black-retro-rock-band-guitar-controller', ...
packages/demos/demo/src/components/Login/Input.js
garth/cerebral
import React from 'react' export default function Input({ fieldType, icon, message, placeholder, showError, value, onChange, onEnter, }) { const onKeyPress = e => { if (e.key === 'Enter') { e.preventDefault() onEnter(e) } } return ( <p className="control has-icon"> <...
data-browser-ui/public/app/components/tableComponents/td/booleanTdComponent.js
CloudBoost/cloudboost
import React from 'react'; import ReactDOM from 'react-dom'; import Checkbox from 'material-ui/Checkbox'; class BooleanTdComponent extends React.Component { constructor(){ super() this.state = {} } changeHandler(e,data){ this.props.updateElement(data) this.props.updateObject() } render() { l...
src/components/ComponentizeContent.js
dlindahl/stemcell
import { node, object, oneOfType, string } from 'prop-types' import Bit from './Bit' import Code from './Code' import HTML from 'html-parse-stringify' import React from 'react' import reactify from '../util/reactify' import Image from './Image' import Rule from './Rule' import Paragraph from './Paragraph' const DEFAUL...
src/index.js
garipov/example-react-charts
import React from 'react'; import ReactDOM from 'react-dom'; import './styles/main.scss'; import {configureStore} from './store/configureStore'; import {Root} from './containers/Root'; require('es6-promise').polyfill(); require('isomorphic-fetch'); const store = configureStore(); ReactDOM.render( <Root store={sto...
src/components/Ripple.js
ev-ui/ev-ui
import React from 'react' import {render} from 'react-dom' import styled,{keyframes} from 'styled-components' const ripple=keyframes` from{ transform: scale(.2); } to{ transform: scale(2); opacity: 0; } `; const Root=styled.div` position: relative; overflow: hidden; .ripple-layer{ border-rad...
wail-ui/containers/wailCrawlView.js
N0taN3rd/wail
import React from 'react' import { namedPure } from '../util/recomposeHelpers' import WailCrawls from '../components/wailCrawls' const enhance = namedPure('WailCrawlView') function WailCrawlView () { return ( <div className='widthHeightHundoPercent' id='wViewContainer'> <WailCrawls /> </div> ) } ex...
app/javascript/mastodon/components/autosuggest_textarea.js
foozmeat/mastodon
import React from 'react'; import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container'; import AutosuggestEmoji from './autosuggest_emoji'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { isRtl } from '../rtl'; import Im...
src/Parser/Mage/Frost/Modules/Features/ThermalVoid.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import Wrapper from 'common/Wrapper'; import { formatNumber } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import Combatants from...
src/components/settings/stats/Provider.js
golemfactory/golem-electron
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Tooltip from '@tippy.js/react'; import isEmpty from 'lodash/isEmpty'; import * as Actions from './../../../actions'; const mapStateToProps = state => ({ stats: state.stats.stats, unsupported_st...
src/svg-icons/action/thumbs-up-down.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionThumbsUpDown = (props) => ( <SvgIcon {...props}> <path d="M12 6c0-.55-.45-1-1-1H5.82l.66-3.18.02-.23c0-.31-.13-.59-.33-.8L5.38 0 .44 4.94C.17 5.21 0 5.59 0 6v6.5c0 .83.67 1.5 1.5 1.5h6.75c.62 0 1.15-.38 1...
assets/js/components/tweet_box.js
arineto/twitter_monitor
import React from 'react'; // eslint-disable-next-line react/prefer-stateless-function class TweetBox extends React.Component { render() { const tweet = this.props.tweet; return ( <div className="row"> <div className="col-sm-12"> <div className="tweet-box"> <p>@{tweet.u...
example/src/pages/Viewer.js
ethanselzer/react-lazy-tree
import React, { Component } from 'react'; import { Col, Grid, Jumbotron, Row } from 'react-bootstrap'; import SyntaxHighlighter, { registerLanguage } from 'react-syntax-highlighter/dist/light'; import js from 'highlight.js/lib/languages/javascript'; import solarized from 'react-syntax-highlighter/dist/s...
webpack/scenes/Subscriptions/Details/SubscriptionDetailProduct.js
johnpmitsch/katello
import React from 'react'; import PropTypes from 'prop-types'; import { Row, Col } from 'patternfly-react'; import { translate as __ } from 'foremanReact/common/I18n'; const SubscriptionDetailProduct = ({ content }) => ( <Row key={content.id}> <Col sm={12}> <Row> <u>{content.name}</u> </Row> ...
client/routes.js
vladmokryi/Nation-Forecast
/* eslint-disable global-require */ import React from 'react'; import { Route, IndexRoute, IndexRedirect } from 'react-router'; import App from './modules/App/App'; // require.ensure polyfill for node if (typeof require.ensure !== 'function') { require.ensure = function requireModule(deps, callback) { callback(r...
src/components/Navbar/Navbar.js
ExtraGains/XLBS
import React from 'react' import PropTypes from 'prop-types' import { Icon } from 'antd' import { Link } from 'react-router-dom' import './Navbar.less' const iconStyle = { display: 'block', width: 55, height: 40, fontSize: 40, background: '#fff', color: '#a9a6a6', borderRadius: 8, border: '1px solid #c...
src/parser/mage/arcane/modules/features/ArcaneOrb.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import { formatNumber } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import AbilityTracker from 'parser/shared/module...
src/index.js
Montana-Code-School/LifeCoach
import 'bootstrap/dist/css/bootstrap.css'; import React from 'react'; import App from './components/App'; import { Router, Route, browserHistory, IndexRoute } from 'react-router'; import { render } from 'react-dom'; import Home from './components/Home'; import LifeGoals from './components/LifeGoals'; import Navigation ...
examples/create-react-app/src/App.js
carbon-design-system/carbon-components-react
import 'carbon-components/scss/globals/scss/styles.scss'; import React, { Component } from 'react'; import { Accordion, AccordionItem } from 'carbon-components-react'; import logo from './logo.svg'; import './App.scss'; class App extends Component { render() { return ( <div> <div className="App"> ...
app/javascript/mastodon/features/ui/components/column_subheading.js
yukimochi/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const ColumnSubheading = ({ text }) => { return ( <div className='column-subheading'> {text} </div> ); }; ColumnSubheading.propTypes = { text: PropTypes.string.isRequired, }; export default ColumnSubheading;
src/parser/druid/feral/modules/talents/Predator.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import SpellUsable from '../features/SpellUsable'...
components/ArticleReplyFeedbackControl/ButtonGroupDisplay.js
cofacts/rumors-site
import React from 'react'; import { t } from 'ttag'; import gql from 'graphql-tag'; import { makeStyles } from '@material-ui/core/styles'; import { ButtonGroup, Button } from '@material-ui/core'; import useCurrentUser from 'lib/useCurrentUser'; import { ThumbUpIcon, ThumbDownIcon } from 'components/icons'; import cx fr...
app/screen/Species/SpeciesItem.js
Mrsunsunshine/wetland
import React, { Component } from 'react'; import { StyleSheet, Image, TouchableOpacity,Text,View } from 'react-native'; import { screen} from '../../common/screen' export default class SpeciesItem extends Component { render() { return ( <TouchableOpacity style={styles.container} ...
app/javascript/mastodon/components/autosuggest_emoji.js
Kirishima21/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import unicodeMapping from '../features/emoji/emoji_unicode_mapping_light'; import { assetHost } from 'mastodon/utils/config'; export default class AutosuggestEmoji extends React.PureComponent { static propTypes = { emoji: PropTypes.object.isRequire...
release/darwin-x64/shokushu-darwin-x64/shokushu.app/Contents/Resources/app/app/components/Detail.js
y-takey/shokushu
import _ from 'lodash'; import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import LeftNav from 'material-ui/lib/left-nav'; import Card from 'material-ui/lib/card/card'; import CardActions from 'material-ui/lib/card/card-actions'; import FlatButton from 'material-ui/lib/flat-button'; import Card...
src/IncidentTable.js
danriti/pagerduty-review
import _ from 'underscore'; import classNames from 'classnames'; import moment from 'moment-timezone'; import React from 'react'; import { Link } from 'react-router' import pagerduty from './pagerduty'; export default class IncidentTable extends React.Component { render() { let { subdomain, token } = this.prop...
components/streams_search.js
kapone89/MonteOfficeExpo
import React, { Component } from 'react'; import { observer } from 'mobx-react/native'; import { Container, Header, Content, Icon, Input, Button, Spinner, Text, Item } from 'native-base'; import { Item as CnItem, ItemIcon, ItemContent, ItemText, Note, List } from 'carbon-native'; import streamsStore from '../stores/str...
app/javascript/mastodon/components/icon.js
danhunsaker/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class Icon extends React.PureComponent { static propTypes = { id: PropTypes.string.isRequired, className: PropTypes.string, fixedWidth: PropTypes.bool, }; render () { const { id, c...
src/components/Main.js
zzy348429898/gallery-by-react
// require('normalize.css/normalize.css'); require('styles/main.scss'); import React from 'react'; var imageDatas = require('../data/imageDatas.json'); //利用自执行函数,将图片名信息转成图片URL路径 imageDatas = (function genImageURL(imageDataArr){ for(var i = 0, j = imageDataArr.length; i < j;i++){ var singleImageData = imageData...
src/views/components/util/ConfirmModal.js
Domiii/project-empire
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Alert, Button, Modal } from 'react-bootstrap'; import FAIcon from 'src/views/components/util/FAIcon'; import autoBind from 'react-autobind'; export function DefaultButtonCreator({open, iconName, className}) { return ( <But...
app/containers/App.js
FermORG/FermionJS
// @flow import React, { Component } from 'react'; import type { Children } from 'react'; import styles from '../components/photon.scss'; export default class App extends Component { props: { children: Children }; render() { return ( <div className={styles.window}> {this.props.children} ...
client/modules/videos/components/nominated_video.js
gotrecillo/daw-euskalvideo
import React from 'react'; import { Card, CardActions } from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; import FontIcon from 'material-ui/FontIcon'; import VideoCore from './video_core'; import { styles } from './styles'; class NominatedVideo extends React.Component { constructor(props) { ...
lib/components/map/connected-transit-vehicle-overlay.js
opentripplanner/otp-react-redux
// TODO: Typescript /* eslint-disable react/prop-types */ /** * This overlay is similar to gtfs-rt-vehicle-overlay in that it shows * realtime positions of vehicles on a route using the otp-ui/transit-vehicle-overlay. * * However, this overlay differs in a few ways: * 1) This overlay retrieves vehicle locations fr...
modules/components/Home/index.js
hmltnbrn/classroom-library
import React from 'react'; import DocumentTitle from 'react-document-title'; import SearchBar from './../SearchBar'; import Paginator from './../Paginator'; import BookList from './components/BookList'; import * as libraryService from './../../services/library-service'; class Home extends React.Component { cons...
src/components/error-dialog.js
josebigio/PodCast
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { hideError } from '../actions' class ErrorDialog extends Component { handleRetry() { this.props.retryList.forEach((fun) => { fun(); }); this.pr...
packages/wix-style-react/src/AddressInput/docs/index.story.js
wix/wix-style-react
import React from 'react'; import { header, tabs, tab, description, importExample, title, divider, example as baseExample, playground, api, testkit, } from 'wix-storybook-utils/Sections'; import LinkTo from '@storybook/addon-links/react'; import { storySettings } from '../test/storySettings'; im...
es/components/Chat/NotificationMessages/JoinMessage.js
welovekpop/uwave-web-welovekpop.club
import _jsx from "@babel/runtime/helpers/builtin/jsx"; import React from 'react'; import PropTypes from 'prop-types'; import UserNotificationMessage from './UserNotificationMessage'; var JoinMessage = function JoinMessage(_ref) { var user = _ref.user, timestamp = _ref.timestamp; return _jsx(UserNotificationM...
src/blog/index.js
t-kelly/react-static-boilerplate
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React from 'react'; export default class { render() { return ( <div> <h1>Blog</h1> <p>Coming soon.</p> </div> ); } };
src/app/routes/graphs/containers/FlotCharts.js
backpackcoder/world-in-flames
import React from 'react' import FlotChart from '../../../components/graphs/flot/FlotChart' import request from 'then-request' import {Stats, BigBreadcrumbs, WidgetGrid, JarvisWidget} from '../../../components' export default class FlotCharts extends React.Component { state = {}; componentWillMount() { ...
src/App.js
flare-app/client
import React, { Component } from 'react'; import './App.css'; global.jQuery = require('jquery'); global.Tether = require('tether'); require('bootstrap'); require('bootstrap/dist/css/bootstrap.css'); class App extends Component { render() { return ( <div className="container-fluid"> <h1>Welcom...
react/test-driven-react/test-driven-carousel/src/CarouselButton.js
saramic/learning
import React from 'react'; import propTypes from 'prop-types'; const CarouselButton = props => <button {...props} />; CarouselButton.propTypes = { children: propTypes.node.isRequired, }; export default CarouselButton;
src/components/CustomTimePicker.js
mberneti/react-datepicker2
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import momentJalaali from 'moment-jalaali'; import TimePicker from './TimePicker'; import { persianNumber } from '../utils/persian'; const disabledMinutes = () => { return [...Array(60)].map((v, i) => i).filter(v => v % 5 !== 0); }; expor...
docs/app/Examples/views/Advertisement/Types/AdvertisementExampleSmallButton.js
shengnian/shengnian-ui-react
import React from 'react' import { Advertisement } from 'shengnian-ui-react' const AdvertisementExampleSmallButton = () => ( <Advertisement unit='small button' test='Small Button' /> ) export default AdvertisementExampleSmallButton
src/components/chart.js
yonarbel/reactWeatherApp
import _ from 'lodash' import React from 'react'; import {Sparklines, SparklinesLine, SparklinesReferenceLine} from 'react-sparklines'; export default(props) => { function average(data) { return _.round(_.sum(data) / data.length) } return ( <div> <Sparklines data={props.data} width={200} height={20...
test/containers/CounterPage.spec.js
echohubio/hubber
// import React from 'react'; // import Enzyme, { mount } from 'enzyme'; // import Adapter from 'enzyme-adapter-react-16'; // import { Provider } from 'react-redux'; // import { createBrowserHistory } from 'history'; // import { ConnectedRouter } from 'react-router-redux'; // import CounterPage from '../../app/containe...
src/styles/muiThemeable.js
igorbt/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import getMuiTheme from './getMuiTheme'; let DEFAULT_THEME; function getDefaultTheme() { if (!DEFAULT_THEME) { DEFAULT_THEME = getMuiTheme(); } return DEFAULT_THEME; } export default function muiThemeable() { return (Component) => { const...
example/src/Error.js
ryo33/redux-pages
import React from 'react' export default () => ( <div> <h2>Error</h2> </div> )
node_modules/react-taco-table/site/src/components/ExampleColumnGroups.js
Sweetgrassbuffalo/ReactionSweeGrass-v2
import React from 'react'; import { TacoTable, DataType, SortDirection, Formatters } from 'react-taco-table'; import cellLinesData from '../data/cell_lines.json'; import './ExampleColumnGroups.scss'; /** * An example demonstrating how to use column groups */ const columns = [ { id: 'name', value: rowData...
sample/front-end/src/Common/Components/simple-content/simple-content.component.js
asmagin/sitecore-js-presentation
require('./simple-content.styles.sass'); import React from 'react'; import { Grid, Row, Col } from 'react-bootstrap' import logo from '../../static/images/sample.png'; class SimpleContent extends React.Component { render() { return ( <Grid className='simple-content'> <div style={{fontSize: '8px',...
app/index.js
tgirgin23/osm-electron-editor
import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import Root from './containers/Root'; import { configureStore, history } from './store/configureStore'; import './app.global.css'; const store = configureStore(); render( <AppContainer> <Root store={s...
src/components/ContextSubMenu.js
sparkdesignsystem/spark-design-system
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'gatsby'; import { SprkLink } from '@sparkdesignsystem/spark-react'; function ContextSubMenu({ heading, collection, directory }) { const ProcessedSublinks = collection.filter( (item) => item.node.parent.name !== 'guides', ); ...
src/components/MediaList/AddToPlaylistAction.js
u-wave/web
import React from 'react'; import PropTypes from 'prop-types'; import { useDispatch } from 'react-redux'; import AddIcon from '@mui/icons-material/Add'; import { addMediaMenu } from '../../actions/PlaylistActionCreators'; import { useMediaListContext } from './BaseMediaList'; import MediaAction from './MediaAction'; c...
src/pages/createCollective.js
OpenCollective/frontend
import React from 'react'; import PropTypes from 'prop-types'; import CreateCollective from '../components/CreateCollective'; import ErrorPage from '../components/ErrorPage'; import { addCollectiveCoverData } from '../graphql/queries'; import withData from '../lib/withData'; import withIntl from '../lib/withIntl'; i...
src/Dialog/Dialog.js
react-mdl/react-mdl
import React from 'react'; import PropTypes from 'prop-types'; import { findDOMNode } from 'react-dom'; import classNames from 'classnames'; const propTypes = { className: PropTypes.string, onCancel: PropTypes.func, onBackdropClick: PropTypes.func, open: PropTypes.bool }; const defaultProps = { on...
docs/app/Examples/modules/Dropdown/Variations/DropdownExampleMenuDirectionLeft.js
vageeshb/Semantic-UI-React
import React from 'react' import { Dropdown } from 'semantic-ui-react' const DropdownExampleMenuDirectionLeft = () => ( <Dropdown text='Menu' floating labeled button className='icon'> {/* <i class="dropdown icon"></i> */} <Dropdown.Menu className='left'> <Dropdown.Item> <i className='dropdown i...
src/Button/ButtonGroup.js
ctco/rosemary-ui
/* TODO: either use: this.props.children.map(c => React.cloneElement(c, {className: classNames(child.props.className, 'btn--grouped')})) OR fix _button.scss:106 .btn--grouped {..} to .btn--grouped > .btn {..} */ import React from 'react'; export default class ButtonGroup extends React.Component { rende...
app/components/LoadingIndicator/index.js
Princess310/react-chat-exp
import React from 'react'; import Circle from './Circle'; import Wrapper from './Wrapper'; const LoadingIndicator = () => ( <Wrapper> <Circle /> <Circle rotate={30} delay={-1.1} /> <Circle rotate={60} delay={-1} /> <Circle rotate={90} delay={-0.9} /> <Circle rotate={120} delay={-0.8} /> <Cir...
src/components/widgets/md/Form.web.js
saas-plat/saas-plat-appfx
import React from 'react'; import {View} from 'react-native'; import { Form, Row, Col, Input, Menu, Button, Dropdown, Table, Popconfirm, message } from 'antd'; import Icon from '../Icon'; class EditableCell extends React.Component { state = { value: this.props.value, editable: false } ...
src/components/Bottom/index.js
hwclass/propelled
// Libraries import React from 'react'; // Components import Footer from 'grommet/components/Footer'; import Logo from 'grommet/components/icons/base/3d'; import Paragraph from 'grommet/components/Paragraph'; import Menu from 'grommet/components/Menu'; import Anchor from 'grommet/components/Anchor'; const Bottom = ()...
src/client.js
ReactPoland/react-community
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import createStore from './redux/create'; import ApiClient from './helpers/ApiClient'; import io from 'socket.io-client'; import...
actor-apps/app-web/src/app/components/Login.react.js
cnbin/actor-platform
import _ from 'lodash'; import React from 'react'; import classNames from 'classnames'; import { Styles, RaisedButton, TextField } from 'material-ui'; import { AuthSteps } from 'constants/ActorAppConstants'; import Banner from 'components/common/Banner.react'; import LoginActionCreators from 'actions/LoginActionCre...
src/svg-icons/action/history.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHistory = (props) => ( <SvgIcon {...props}> <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 ...
Rate.UI/app/components/SearchFlick.js
tanos90/Rate
import React from 'react'; import { Link, browserHistory, Router } from 'react-router'; import FlickActions from "../actions/FlickActions"; export default class SearchFlick extends React.Component { constructor(props) { super(props); this.state = { searchText: 'search' }; } ...
src/components/Navigation/Navigation.js
ImanMh/react-proto
/** * 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 cx from 'classnames';...
src/components/StyledInputGroup.js
OpenCollective/frontend
import React from 'react'; import styled from 'styled-components'; import PropTypes from 'prop-types'; import { themeGet } from 'styled-system'; import { withState } from 'recompose'; import { get } from 'lodash'; import Container from './Container'; import { Span } from './Text'; import StyledInput from './StyledInpu...
src/components/App.js
pekkis/kino-kobros
import React from 'react'; import Header from './Header'; import Footer from './Footer'; import styles from './App.pcss'; export default class App extends React.Component { render() { return ( <section className={styles.root}> {this.props.children} </section> ...
src/components/NameRow.js
bedoherty/NameGame
import React, { Component } from 'react'; import '../styles/NameRow.css'; // Importing components //https://placehold.it/340x340 // Importing custom graphics import loading from '../assets/img/loading.gif' class NameRow extends Component { constructor(props) { super(props); } render() { return ( ...
src/Popover.js
dongtong/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; const Popover = React.createClass({ mixins: [ BootstrapMixin ], propTypes: { /** * An html id attribute, necessary for accessibility ...
src/components/input/text/index.js
bobinette/papernet-front
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import './text.scss'; class Text extends Component { static propTypes = { className: PropTypes.string, onChange: PropTypes.func.isRequired, onKeyPress: PropTypes.func, onFocus: PropTypes.func, password: PropTypes.bool,...
dist/lib/carbon-fields/assets/js/fields/components/map/google-map.js
ArtFever911/statrer-kit
/** * The external dependencies. */ import React from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import observeResize from 'observe-resize'; class GoogleMap extends React.Component { /** * Lifecycle hook. * * @return {void} */ componentDidMount() { this.node = ReactDOM...
client/node_modules/react-router/es/MemoryRouter.js
bourdakos1/Visual-Recognition-Tool
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 &...
src/ContentBlocks/Shared/MarkdownHelp.js
grommet/grommet-cms-content-blocks
import React from 'react'; import Box from 'grommet/components/Box'; import Heading from 'grommet/components/Heading'; import Header from 'grommet/components/Header'; export default function index() { return ( <Box direction="column" className="markdown-guide"> <Header> <Heading tag="h2" margin="no...
src/components/pages/user/new.js
jackblandin/react_express_template
import React from 'react' import UserActions from 'actions/user-actions' export default class NewUser extends React.Component { static defaultPropTypes = { } constructor(props) { super(props) this.state = { } this.handleFirstNameChange = this.handleFirstNameChange.bind(this) this.handleLast...
admin/src/components/metadata/tests/metaarray.spec.js
mparlak/mparlak.github.io
import React from 'react'; import { Link } from 'react-router'; import expect from 'expect'; import { mount } from 'enzyme'; import MetaArray from '../MetaArray'; import MetaArrayItem from '../MetaArrayItem'; const defaultProps = { fieldKey: 'students', fieldValue: ['Mert', 'Ankur'], nameAttr: 'metadata["studen...
etc/beaconpi-react/src/Selection.js
co60ca/beaconpi
import React, { Component } from 'react'; import * as cfg from './config.js'; import {FormGroup, FormControl, ControlLabel} from 'react-bootstrap'; // import Datetime from 'react-datetime'; // import 'react-datetime/css/react-datetime.css' // Data should be loaded into // id, description, data // required props: // ...
client/src/pages/index.js
otavioarc/freeCodeCamp
import React from 'react'; import { Grid, Row, Col, Image } from '@freecodecamp/react-bootstrap'; import FontAwesomeIcon from '@fortawesome/react-fontawesome'; import { faHtml5, faCss3Alt, faJs, faGithub, faNodeJs, faReact } from '@fortawesome/free-brands-svg-icons'; import { faDatabase } from '@fortawesome...
src/components/ColorBox.js
selrond/coloreact
import React, { Component } from 'react'; import Generate from './Generate' import styled from 'styled-components'; const ColorLayout = styled.div` background-color: ${props => props.exactColor}; transition: background-color .3s ease-in-out; width: 400px; height: 400px; display: flex; justify-content: center; a...