path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
js/src/App.js
syslo/file_publisher
import React from 'react' import Toolbar from './Toolbar' import Folder from './Folder' import File from './File' import Loading from './Loading' import NoAccess from './NoAccess' import generate_actions from './actions' import {renderDialogs, getDialogsState} from './dialogs' export default class App extends React...
src/parser/shared/modules/items/bfa/dungeons/LadyWaycrestsMusicBox.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import Analyzer from 'parser/core/Analyzer'; import ItemHealingDone from 'interface/ItemHealingDone'; import ItemDamageDone from 'interface/ItemDamageDone'; import ItemStatistic from 'interface/statistics/ItemStatistic'; i...
src/svg-icons/action/subject.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSubject = (props) => ( <SvgIcon {...props}> <path d="M14 17H4v2h10v-2zm6-8H4v2h16V9zM4 15h16v-2H4v2zM4 5v2h16V5H4z"/> </SvgIcon> ); ActionSubject = pure(ActionSubject); ActionSubject.displayName = 'Acti...
src/quote.js
lv10/quote_machine
import React from 'react'; import axios from 'axios'; import TheButton from './button.js'; let quotesPerPage = 25; let URL = 'https://quotesondesign.com/wp-json/posts'; let twitterLogo = 'https://goo.gl/eb4yeX'; class Quote extends React.Component { constructor () { super(); this.state = { ...
react-flux-mui/js/material-ui/src/svg-icons/maps/add-location.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsAddLocation = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm4 8h-3v3h-2v-3H8V8h3V5h2v3h3v2z"/> </SvgIcon> ); MapsAddLocation = pure(Map...
src/Table.js
aabenoja/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const Table = React.createClass({ propTypes: { striped: React.PropTypes.bool, bordered: React.PropTypes.bool, condensed: React.PropTypes.bool, hover: React.PropTypes.bool, responsive: React.PropTypes.bool }, render() { let c...
gadget-system-teamwork/src/components/gadgets/CreateCommentPage.js
TeodorDimitrov89/JS-Web-Teamwork-2017
import React from 'react' import CreateCommentForm from './CreateCommentForm' import FormHelpers from '../common/forms/FormHelpers' import ValidateHelpers from '../common/ValidateHelpers' import commentActions from '../../actions/CommentActions' import commentStore from '../../stores/CommentStore' import toastr...
modules/users/client/components/InterfaceLanguagePanel.component.js
Trustroots/trustroots
import React from 'react'; import LanguageSwitch from '@/modules/core/client/components/LanguageSwitch'; import '@/config/client/i18n'; import { useTranslation } from 'react-i18next'; export default function InterfaceLanguagePanel() { const { t } = useTranslation('users'); return ( <div className="panel panel...
src/components/Company/CompanyPageProvider.js
goodjoblife/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import R from 'ramda'; import { createStructuredSelector } from 'reselect'; import { withProps, lifecycle, compose, setStatic } from 'recompose'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { Switch, Route, Redi...
packages/cf-component-input/src/Input.js
jroyal/cf-ui
import React from 'react'; import PropTypes from 'prop-types'; import { createComponent } from 'cf-style-container'; const styles = ({ theme }) => ({ zIndex: theme.zIndex, width: theme.width, height: theme.height, margin: theme.margin, padding: theme.padding, border: theme.border, borderRadius: theme.bor...
src/components/appStructure/additionalInfo/newBlogs.js
Jguardado/ComponentBase
import React from 'react'; const NewBlogs = () => { return ( <div className='newcomp two'> <div className="box-heading">New Blog Posts</div> <h4> <ul className="list-items"><a href='https://medium.com/@juanguardado/redux-single-source-of-truth-e1fe1fb6ffec#.k7bgyf2uu'>Redux: Art of the State<...
frontend/src/System/Events/LogsTableDetailsModal.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React from 'react'; import Button from 'Components/Link/Button'; import Modal from 'Components/Modal/Modal'; import ModalBody from 'Components/Modal/ModalBody'; import ModalContent from 'Components/Modal/ModalContent'; import ModalFooter from 'Components/Modal/ModalFooter'; im...
components/fields/forked-react-dates/src/components/DayPicker.js
Mudano/m-dash-ui
import React from 'react'; import PropTypes from 'prop-types'; import shallowCompare from 'react-addons-shallow-compare'; import ReactDOM from 'react-dom'; import { forbidExtraProps, nonNegativeInteger } from 'airbnb-prop-types'; import moment from 'moment'; import cx from 'classnames'; import throttle from 'lodash/thr...
classic/src/scenes/mailboxes/src/Scenes/AppScene/Welcome/WaveboxWelcome/WelcomePane.js
wavebox/waveboxapp
import React from 'react' import { userStore, userActions } from 'stores/user' import { withStyles } from '@material-ui/core/styles' import { Button, IconButton, Tooltip } from '@material-ui/core' import WaveboxSigninButton from 'wbui/SigninButtons/WaveboxSigninButton' import GoogleSigninButton from 'wbui/SigninButtons...
src/routes/ResourceState/components/mainContent/Filters.js
shinja/react-redux-c3
import React from 'react' import applyEachSeries from 'async/applyEachSeries' import CSSModules from 'react-css-modules' import Select from 'components/Common/Select' import ResourceCheckBox from 'components/Common/ResourceCheckBox' import { FETCH_PERIODS_ASYNC, FETCH_RESOURCE_STATE_DATA_ASYNC, FILTER_PERIODS_ST...
nailgun/static/views/root.js
eayunstack/fuel-web
/* * Copyright 2015 Mirantis, Inc. * * 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 ...
public/src/containers/transMotion/transMotion.js
white87332/react-redux
import React from 'react'; import { TransitionMotion, spring } from 'react-motion'; class TransMotion extends React.Component { constructor() { super(); this.state = { items: [ { key: 'a', width: 100, height: 100, opacity: 1 }, { key: 'b', width: 100,...
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...
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...
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...
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' }; } ...