path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
webpack/ForemanTasks/Components/TasksDashboard/Components/TasksCardsGrid/TasksCardsGrid.js
theforeman/foreman-tasks
import React from 'react'; import PropTypes from 'prop-types'; import { CardGrid } from 'patternfly-react'; import { noop } from 'foremanReact/common/helpers'; import RunningTasksCard from './Components/RunningTasksCard/RunningTasksCard'; import PausedTasksCard from './Components/PausedTasksCard/PausedTasksCard'; impo...
node_modules/lite-server/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
manojdobbala/angular2
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/components/PhotoCarousel.js
sharkinsspatial/knowsnow
import React from 'react' import Carousel from 'react-bootstrap/lib/Carousel' import CarouselItem from 'react-bootstrap/lib/CarouselItem' class PhotoCarousel extends React.Component { constructor(props) { super(props) } render() { var activeIndex activeIndex = this.props.im...
docs/app/Examples/elements/Icon/States/IconExampleDisabled.js
aabustamante/Semantic-UI-React
import React from 'react' import { Icon } from 'semantic-ui-react' const IconExampleDisabled = () => ( <Icon disabled name='users' /> ) export default IconExampleDisabled
js/BaseComponents/Switch.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or *...
app/javascript/mastodon/features/list_adder/components/account.js
lindwurm/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { makeGetAccount } from '../../../selectors'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../components/avatar'; import DisplayName from...
src/js/tabs/test/test.js
HBM/md-components
/* global describe, xit, it */ import assert from 'assert' import React from 'react' import Tabs from '../' import {mount} from 'enzyme' import {MemoryRouter, NavLink} from 'react-router-dom' /** * Create parent component and include button. */ // class App extends React.Component { // render () { // var tabs...
examples/huge-apps/routes/Course/components/Dashboard.js
ksivam/react-router
import React from 'react' class Dashboard extends React.Component { render() { return ( <div> <h3>Course Dashboard</h3> </div> ) } } export default Dashboard
frontend/src/components/submitcast/CastRoleInput.js
tanzdervampire/website
// @flow import React from 'react'; import PropTypes from 'prop-types'; import { Card, CardHeader, CardText, CardActions } from 'material-ui/Card'; import Chip from 'material-ui/Chip'; import FlatButton from 'material-ui/FlatButton'; import FastForward from 'material-ui/svg-icons/av/fast-forward'; import Done from 'm...
app/scripts/main.js
mdesanti/github-dashboard
import React from 'react'; import Router from 'react-router'; import routes from './routes'; Router.run(routes, Handler => React.render(<Handler />, document.body));
jsx/modules/Repo.js
NickTaporuk/webpack_starterkit_project
import React from 'react' import { Link } from 'react-router'; export default React.createClass({ render() { return ( <div> <h2>{this.props.params.repoName}</h2> <ul role="nav"> <li><Link to="/">Go home</Link></li> </ul> ...
src/components/section/index.js
jesus9ias/diverdanger
import React from 'react'; import './section.css'; export default (props) => <div className="section"> {props.children} </div>;
src/components/icon/icons.js
enapupe/know-your-bundle
import React from 'react' import star from '../../images/star.svg' import fork from '../../images/fork.svg' import eye from '../../images/eye.svg' import legal from '../../images/legal.svg' import tag from '../../images/tag.svg' import Icon from '.' const Star = () => ( <Icon icon={star} /> ) const Fork = () => (...
examples/non_api/container.js
DigitalGlobe/jetset
import React from 'react'; import { container, Children } from '../../src/index'; @container({ active: false }) class Panels extends React.Component { getActive = () => this.props.container.get().active; setActive = selected => this.props.container.set({ active: selected }); render() { return Children({ ...
src/containers/contacts_list.js
Vincentgr/react-contacts
'use strict'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { loadContactsFromDatabase, deleteContact, editContact, changeContact, saveUpdatedContact, cancelContactUpdate, sortContacts } from '../actions/index'; import ReactCSSTransitionGroup from 'react-addons-css-transition-...
src/Label.js
mmarcant/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import { bsClass, bsStyles, getClassSet, splitBsProps } from './utils/bootstrapUtils'; import { State, Style } from './utils/StyleConfig'; class Label extends React.Component { hasContent(children) { let result = false; React.Children.forEac...
src/svg-icons/editor/format-italic.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatItalic = (props) => ( <SvgIcon {...props}> <path d="M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"/> </SvgIcon> ); EditorFormatItalic = pure(EditorFormatItalic); EditorFormatItalic.displayName ...
src/utils/typography.js
meerasahib/meerablog1
import ReactDOM from 'react-dom/server'; import React from 'react'; import Typography from 'typography'; import CodePlugin from 'typography-plugin-code'; import { MOBILE_MEDIA_QUERY } from 'typography-breakpoint-constants'; const options = { baseFontSize: '18px', baseLineHeight: 1.5, scaleRatio: 2.25, plugins:...
examples/src/components/DisabledUpsellOptions.js
SenecaSystems/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var DisabledUpsellOptions = React.createClass({ displayName: 'DisabledUpsellOptions', propTypes: { label: React.PropType...
app/javascript/mastodon/features/compose/components/doodle_button.js
vahnj/mastodon
import React from 'react'; import IconButton from '../../../components/icon_button'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; const messages = defineMessages({ doodle: { id: 'doodle_button.label',...
pages/index.js
BrontosaurusTails/Sovereign
import React from 'react'; import Footer from '../components/footer'; const footerProps = { url: 'https://github.com/BrontosaurusTails/Sovereign', date: new Date().getFullYear() } export default () => ( <div> <p>Hello World!</p> <Footer {...footerProps} /> </div> );
blueocean-dashboard/src/main/js/components/stories/RunDetailsHeaderStories.js
alvarolobato/blueocean-plugin
/* eslint-disable */ import React from 'react'; import {storiesOf, action} from '@kadira/storybook'; import { ModalView, ModalBody, ModalHeader, PageTabs, Progress, TabLink, } from '@jenkins-cd/design-language'; import WithContext from '@jenkins-cd/design-language/dist/js/stories/WithContext'; i...
admin/client/App/screens/List/components/ListControl.js
giovanniRodighiero/cms
import React from 'react'; import classnames from 'classnames'; var ListControl = React.createClass({ propTypes: { dragSource: React.PropTypes.func, onClick: React.PropTypes.func, type: React.PropTypes.oneOf(['check', 'delete', 'sortable']).isRequired, }, renderControl () { var icon = 'octicon octicon-'; ...
plugins/Terminal/js/components/commandline.js
NebulousLabs/Sia-UI
import React from 'react' import CommandHistoryList from '../containers/commandhistorylist.js' import CommandInput from '../containers/commandinput.js' import WalletPasswordPrompt from '../containers/walletpasswordprompt.js' import WalletSeedPrompt from '../containers/seedprompt.js' const CommandLine = ({ showCommandO...
app/desktop/ToolbarLink/index.js
christianalfoni/webpack-bin
import React from 'react'; import {Decorator as Cerebral} from 'cerebral-view-react'; import styles from './styles.css'; import classnames from 'classnames'; @Cerebral() class ToolbarButton extends React.Component { renderIconTextButton() { return ( <div className={styles.iconTitleWrapper}> {this.r...
js/jqwidgets/demos/react/app/chart/axisoffsettovalue/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxChart from '../../../jqwidgets-react/react_jqxchart.js'; class App extends React.Component { componentDidMount() { let cursorRedDotElement = null; this.refs.myChart.on('mousemove', (event) => { let position = this....
node_modules/native-base/src/backward/Widgets/Subtitle.js
odapplications/WebView-with-Lower-Tab-Menu
/* @flow */ import React, { Component } from 'react'; import { Text } from 'react-native'; import { connectStyle } from '@shoutem/theme'; import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames'; class Subtitle extends Component { render() { return ( <Text ref={c => this._root = c} {...this.pr...
react_frontend/chinook_consumer/src/components/DataTableControllerComponent.js
Limmen/chinook
/** * DataTableControllerComponent. * * Renders a list of links to datatables of different data. */ 'use strict'; import React from 'react'; import { Link } from 'react-router' require('styles//DataTableController.css'); class DataTableControllerComponent extends React.Component { render() { return ( ...
src/Overlay.js
azendoo/react-overlays
import React from 'react'; import Portal from './Portal'; import Position from './Position'; import RootCloseWrapper from './RootCloseWrapper'; import elementType from 'react-prop-types/lib/elementType'; /** * Built on top of `<Position/>` and `<Portal/>`, the overlay component is great for custom tooltip overlays. ...
src/shared/element-react/dist/npm/es6/src/popover/Popover.js
thundernet8/Elune-WWW
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import ReactDOM from 'react-dom'; import Popper from '../../libs/utils/popper';...
src/svg-icons/image/crop-square.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropSquare = (props) => ( <SvgIcon {...props}> <path d="M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H6V6h12v12z"/> </SvgIcon> ); ImageCropSquare = pure(ImageCropSquar...
app/javascript/mastodon/features/ui/components/bundle.js
mhffdq/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const emptyComponent = () => null; const noop = () => { }; class Bundle extends React.PureComponent { static propTypes = { fetchComponent: PropTypes.func.isRequired, loading: PropTypes.func, error: PropTypes.func, children: PropTypes.fu...
src/svg-icons/image/filter-4.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter4 = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm12 10h2V5h-2v4h-2V5h-2v6h4v4zm6-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14...
src/Avatar/Avatar.spec.js
hai-cea/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import Avatar from './Avatar'; import getMuiTheme from '../styles/getMuiTheme'; describe('<Avatar />', () => { const muiTheme = getMuiTheme(); const shallowWithContext = (node) => shallow(node, {context: ...
src/components/Header/test.js
sdwvit/coding-challenge-frontend-b
import React from 'react'; import renderer from 'react-test-renderer'; import Component from './'; describe('Component', () => { it('should render', () => { const wrapper = renderer.create(<Component />).toJSON(); expect(wrapper).toMatchSnapshot(); }); });
src/Spinner/index.js
techmsi/mental-health-app
// Component: Spinner import React from 'react'; // import 'Spinner/spinner.scss'; const Spinner = () => ( <div className='loading'> <div /> <div /> <div /> <div /> </div> ); export default Spinner;
web/components/FlatrisGame/FlatrisGame.js
skidding/flatris
/* global window */ // @flow import { throttle } from 'lodash'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { GAME_INACTIVE_TIMEOUT } from 'shared/constants/timeouts'; import { allPlayersReady, getCurPlayer, getOtherPlayer, getPlayer, isPlayer, } from 'shared/reduc...
src/components/modals/Settings/Settings.js
Convicted202/PixelShape
import React, { Component } from 'react'; import ModalWindow from '../../modalwindow/Modalwindow'; import ToggleCheckbox from '../../togglecheckbox/Togglecheckbox'; import CanvasAnchors from '../../../containers/canvasanchors/Canvasanchors'; import './settings.styl'; // TODO: take styles from apptoolbox and push in se...
docs/src/app/components/pages/components/IconButton/ExampleTouch.js
skarnecki/material-ui
import React from 'react'; import IconButton from 'material-ui/IconButton'; import ActionGrade from 'material-ui/svg-icons/action/grade'; const IconButtonExampleTouch = () => ( <div> <IconButton tooltip="bottom-right" touch={true} tooltipPosition="bottom-right"> <ActionGrade /> </IconButton> <IconB...
react/features/base/popover/components/Popover.web.js
jitsi/jitsi-meet
/* @flow */ import React, { Component } from 'react'; import { Drawer, JitsiPortal, DialogPortal } from '../../../toolbox/components/web'; import { isMobileBrowser } from '../../environment/utils'; import { connect } from '../../redux'; import { getContextMenuStyle } from '../functions.web'; /** * The type of the Re...
src/component/canvas/__test__/Gridlines-test.js
bigdatr/pnut
import React from 'react'; import {scaleLinear, scaleBand} from 'd3-scale'; import Gridlines, {GridlinesRenderable} from '../Gridlines'; const xScale = scaleLinear() .domain([0,100]) .range([0,200]); const yScale = scaleLinear() .domain([0,100]) .range([0,200]); const basicGridlinesRenderable = shall...
src/app/components/pages/home.js
jordanco/drafter-frontend
import React, { Component } from 'react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import EmailUnreplied from '../email_unreplied/index'; import Email from '../email/index'; import EmailSuggestion from '../email_suggestion/index'; // for not global organization bind here container and ...
src/App.js
choyt/react-accessible-components
import React from 'react'; import injectSheet from 'react-jss'; import update from 'immutability-helper'; import AutoComplete from './components/AutoComplete'; import ComboBox from './components/ComboBox'; import DataGrid from './components/DataGrid'; import ListBox from './components/ListBox'; import TabList from './c...
src/components/views/PolyLocks.js
dkadrios/zendrum-stompblock-client
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { Paper } from '@material-ui/core' import PolyLockInstructions from '../instructions/PolyLockInstructions' import PolyLockBank from '../polyLocks/PolyLockBank' import styl...
src/svg-icons/editor/insert-link.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertLink = (props) => ( <SvgIcon {...props}> <path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3...
app/javascript/mastodon/components/__tests__/display_name-test.js
tri-star/mastodon
import React from 'react'; import renderer from 'react-test-renderer'; import { fromJS } from 'immutable'; import DisplayName from '../display_name'; describe('<DisplayName />', () => { it('renders display name + account name', () => { const account = fromJS({ username: 'bar', acct: 'bar@baz', ...
stories/Switcher.js
ecmadao/light-ui
import React from 'react'; import { storiesOf } from '@storybook/react'; import SwitcherWrapper from '../examples/SwitcherWrapper'; storiesOf('Switcher', module) .add('basical', () => ( <SwitcherWrapper /> )) .add('disabled', () => ( <SwitcherWrapper disabled={true} /> ));
MobileApp/node_modules/react-native-elements/example/src/tabs/forms.js
VowelWeb/CoinTradePros.com
import Expo from 'expo'; import React, { Component } from 'react'; import { View, Text, StyleSheet } from 'react-native'; import { StackNavigator } from 'react-navigation'; import FormsHome from '../views/forms_home'; import FormsDetails from '../views/forms_details'; const FormsTabView = ({ navigation }) => <FormsH...
websites/members.svef.is/src/app/middlewares/react-async-component/index.js
svef/www
import React from 'react' import { AsyncComponentProvider, createAsyncContext, } from 'react-async-component' const async = () => session => { const asyncContext = createAsyncContext() const rehydrateState = typeof window === 'undefined' ? undefined : window.REACT_ASYNC_COMPONENT_STATE sessi...
src/client/container/quizz/ImportQuizzForm.js
JulienPradet/quizzALJP
import React from 'react' export default class QuizzForm extends React.Component { render() { return <div> Import a quizz from a json file </div> } }
app/javascript/mastodon/features/list_editor/components/search.js
mimumemo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { defineMessages, injectIntl } from 'react-intl'; import { fetchListSuggestions, clearListSuggestions, changeListSuggestions } from '../../../actions/lists'; import classNames from 'classnames'; const messages ...
src/svg-icons/action/toc.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionToc = (props) => ( <SvgIcon {...props}> <path d="M3 9h14V7H3v2zm0 4h14v-2H3v2zm0 4h14v-2H3v2zm16 0h2v-2h-2v2zm0-10v2h2V7h-2zm0 6h2v-2h-2v2z"/> </SvgIcon> ); ActionToc = pure(ActionToc); ActionToc.displa...
app/components/sign/operations/types/delegation.js
aaroncox/vessel
// @flow import React, { Component } from 'react'; import { Redirect } from 'react-router'; import { Accordion, Button, Card, Checkbox, Divider, Dropdown, Form, Grid, Header, Icon, Image, Input, Label, Message, Radio, Segment, Statistic, Select, TextArea } from 'semantic-ui-react' import NumericLabel from '../../../../...
packages/reactor-kitchensink/src/examples/Toast/Toast.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import { Container, Button } from '@extjs/ext-react'; Ext.require('Ext.Toast'); export default function ToastExample() { return ( <Button ui="action" handler={() => Ext.toast('Hello World!')} text="Show Toast" /> )...
src/Parser/Hunter/BeastMastery/Modules/Features/TraitsAndTalents.js
hasseboulen/WoWAnalyzer
import React from 'react'; import StatisticsListBox from 'Main/StatisticsListBox'; import STATISTIC_ORDER from "Main/STATISTIC_ORDER"; import Analyzer from 'Parser/Core/Analyzer'; import Barrage from 'Parser/Hunter/Shared/Modules/Talents/Barrage'; import Volley from 'Parser/Hunter/Shared/Modules/Talents/Volley'; imp...
gatsby/src/pages/index.js
staystatic/staystatic
import React from 'react' import Link from 'gatsby-link' import links from '../data/links' // check rename to data.links - why? Why not? possible? import PostList from '../components/PostList' import LinkList from '../components/LinkList' export default ({data}) => { const posts = data.allMarkdo...
src/vendor/recharts/demo/component/BrushDemo.js
donal-crotty/fuzzy-telegram
import React from 'react'; import { Surface, Brush } from 'recharts'; export default React.createClass({ render () { let data = [ '2015-10-01', '2015-10-02', '2015-10-03', '2015-10-04', '2015-10-05', '2015-10-06', '2015-10-07', '2015-10-08', ...
src/svg-icons/communication/call-end.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCallEnd = (props) => ( <SvgIcon {...props}> <path d="M12 9c-1.6 0-3.15.25-4.6.72v3.1c0 .39-.23.74-.56.9-.98.49-1.87 1.12-2.66 1.85-.18.18-.43.28-.7.28-.28 0-.53-.11-.71-.29L.29 13.08c-.18-.17-.29-....
src/components/ColorBox/index.js
fatrossy/color_palette
import React, { Component } from 'react'; import ColorBar from '../ColorBar'; import ColorNameBar1 from '../ColorNameBar1'; import ColorNameBar2 from '../ColorNameBar2'; import { ColorBo } from './style'; function ColorBox (props) { const { data } = props; return ( <ColorBo> <ColorBar data={data[1]} ...
examples/05 Customize/Handles and Previews/index.js
konce/react-dnd
import React from 'react'; import Container from './Container'; export default class CustomizeHandlesAndPreviews { render() { return ( <div> <p> <b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/05%20Customize/Handles%20and%20Previews'>Browse the Source</a></b> ...
src/imports/ui/builder/components/product/ProductRemovedOverlay.js
hwillson/meteor-recommendation-builder
import React from 'react'; import { Button } from 'react-bootstrap'; const ProductRemovedOverlay = ({ product }) => { let overlay = null; if (!product.enabled) { overlay = ( <div className="product-removed-overlay"> <div className="item-removed"> <p>Item Removed</p> <Button ...
src/contentscript/tinymce/TinyMCEApp.js
emfmesquita/beyondhelp
import 'bootstrap/dist/css/bootstrap.css'; import 'bootstrap/dist/css/bootstrap-theme.css'; import './TinyMCEApp.scss'; import { MenuItem, Nav, NavDropdown, NavItem } from 'react-bootstrap'; import React, { Component } from 'react'; import C from "../../Constants"; import MessageService from "../../services/MessageSe...
stories/Hits.stories.js
algolia/react-instantsearch
import React from 'react'; import PropTypes from 'prop-types'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { Hits, Highlight, Panel, Snippet, Configure, } from 'react-instantsearch-dom'; import { connectHitInsights } from 'react-instantsearch-core'; ...
src/articles/2018-01-31-1st-Anniversary/TimelineItem.js
fyruna/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; const TimelineItem = ({ title, date, children }) => ( <div className="panel"> <div className="date"> {date} </div> <div className="panel-heading"> <h2>{title}</h2> </div> <div className="panel-body"> {children} <...
js/components/poets/alandolsi/index.js
Rebaiahmed/Alchaaer
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Actions } from 'react-native-router-flux'; import { Image } from 'react-native'; import { Container, Header, Title, Content, Button, Icon, Left, Right,Card, CardItem, Text, Body, List, ListItem,Thumbnail,InputGroup, Input ,Picker...
src/svg-icons/image/loupe.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLoupe = (props) => ( <SvgIcon {...props}> <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.49 2 2 6.49 2 12s4.49 10 10 10h8c1.1 0 2-.9 2-2v-8c0-5.51-4.49-10-10-10zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3....
src/Frontend/test/components/app/markup/DismissableAlertBoxSpec.js
Sententiaregum/Sententiaregum
/* * This file is part of the Sententiaregum project. * * (c) Maximilian Bosch <maximilian@mbosch.me> * (c) Ben Bieler <ben@benbieler.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ 'use strict'; import { shallow } from 'en...
src/applications/appeals/10182/content/issueSummary.js
department-of-veterans-affairs/vets-website
import React from 'react'; import { Link } from 'react-router'; import { contestableIssuesPath } from '../constants'; import { getSelected } from '../utils/helpers'; import { ShowIssuesList } from '../components/ShowIssuesList'; export const SummaryTitle = ({ formData }) => { const issues = getSelected(formData); ...
client/admin/settings/inputs/StringSettingInput.stories.js
iiet/iiet-chat
import { Field } from '@rocket.chat/fuselage'; import { action } from '@storybook/addon-actions'; import React from 'react'; import { StringSettingInput } from './StringSettingInput'; export default { title: 'admin/settings/inputs/StringSettingInput', component: StringSettingInput, decorators: [ (storyFn) => <Fi...
docs/app/Examples/modules/Rating/Variations/index.js
vageeshb/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const RatingVariationsExamples = () => ( <ExampleSection title='Variations'> <ComponentExample title='Size' descript...
src/svg-icons/device/wifi-tethering.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceWifiTethering = (props) => ( <SvgIcon {...props}> <path d="M12 11c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 2c0-3.31-2.69-6-6-6s-6 2.69-6 6c0 2.22 1.21 4.15 3 5.19l1-1.74c-1.19-.7-2-1.97-2-3.45 0-2.21...
app/components/Home.js
luketlancaster/github-notetaker
import React from 'react'; class Home extends React.Component { render() { return ( <h2 className="text-center"> Search by Github Username Above </h2> ) } } export default Home;
pollard/components/NavBar.js
spncrlkt/pollard
import React, { Component } from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; class NavBar extends Component { render() { const { viewSetlist, } = this.props; /** * If we have an existing playlist for this session * use that id in the nav link. ...
frontend/src/InteractiveImport/Confirmation/ConfirmImportModalContent.js
lidarr/Lidarr
import _ from 'lodash'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Alert from 'Components/Alert'; import Button from 'Components/Link/Button'; import LoadingIndicator from 'Components/Loading/LoadingIndicator'; import ModalBody from 'Components/Modal/ModalBody'; import ModalCon...
consoles/my-joy-instances/src/containers/instances/__tests__/tags.ui.js
yldio/joyent-portal
import React from 'react'; import { toMatchImageSnapshot } from 'jest-image-snapshot'; import screenshot from 'react-screenshot-renderer'; import { Tags } from '../tags'; import Theme from '@mocks/theme'; expect.extend({ toMatchImageSnapshot }); it('<Tags />', async () => { expect( await screenshot( <T...
src/components/PizzaList.js
wmaurer/frontend_pizza_react_redux
import React, { Component } from 'react'; import Pizza from './Pizza'; export default class PizzaList extends Component { render() { const { pizzas, actions } = this.props; return ( <div className="mdl-layout__content pizzas-container"> {pizzas.map(pizza => ...
src/ProjectSix/ProjectSix.js
brz0/folio-v11
import React from 'react'; import ReactTooltip from 'react-tooltip'; import Gallery from 'react-photo-gallery'; import LazyLoad from 'react-lazyload'; var Scroll = require('react-scroll'); var Link = Scroll.Link; var Element = Scroll.Element; var Events = Scroll.Events; var scroll = Scroll.animateScroll; var scroll...
src/app/App.js
diegoangel/erp-frontend
import React from 'react'; import { Component } from 'react'; import 'stylesheets/main.scss'; /** * * * @export * @class App * @extends {Component} */ export default class App extends Component { componentWillMount() { this.props.loadUserFromToken(); } render() { return ( <div className="co...
src/components/PayoutDetail.js
ryanbaer/busy
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, FormattedMessage } from 'react-intl'; import _ from 'lodash'; import USDDisplay from './Utils/USDDisplay'; import { calculatePayout } from '../vendor/steemitHelpers'; const AmountWithLabel = ({ id, defaultMessage, nonzero, amount }) =>...
src/frontend/forms/Invoice/form.js
Koleso/invoicer
import React from 'react'; import { Field, FieldArray, reduxForm } from 'redux-form'; import { browserHistory } from 'react-router'; import cx from 'helpers/classes'; import { subjectsForDropdown, subjectById } from 'helpers/subjects'; import dateFormat from 'dateformat'; // Notifications import { actions as notifAct...
7.2.3/examples/asyncValidation/dist/bundle.js
erikras/redux-form-docs
!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__e...
example/example-react/src/components/Infos/Purchasable/PurchasableList.js
kesslerdev/quarkit
import React from 'react' import PropTypes from 'prop-types' import "@material/list/dist/mdc.list.css" import { connect } from 'react-redux' import {gameObjectSelectors} from '../../../selectors' import Purchasable from './Purchasable' const PurchasableList = ({ market, player }) => ( <ul className="mdc-list mdc-li...
components/Camera.ios.js
kkwokwai22/snacktime
'use strict'; import React, { Component } from 'react'; import { Text, Image, TouchableHighlight, View } from 'react-native'; import Camera from 'react-native-camera'; import helpers from '../helpers/helpers.js'; var axios = require('axios'); import styles from '../styles.ios.js'; import GoogleResults from './G...
modules/Lifecycle.js
chunwei/react-router
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 ...
src/BurgerNav.js
Lafinboy/react-burger-nav
import React from 'react' import baseStyles from './baseStyles' import BurgerIcon from './BurgerIcon' import CrossIcon from './CrossIcon' const BurgerNav = React.createClass({ propTypes: { id: React.PropTypes.string, isOpen: React.PropTypes.bool, children: React.PropTypes.node }, ...
js/src/Renderer/Image/__test__/imageRendererTest.js
andresin87/react-draft-wysiwyg
/* @flow */ import React from 'react'; import { expect, assert } from 'chai'; import { shallow } from 'enzyme'; import { getAllBlocks } from 'draftjs-utils'; import Image from '../index'; import { convertFromHTML, Entity, AtomicBlockUtils, ContentState, EditorState } from 'draft-js'; describe('ImageRenderer test suit...
www/src/components/search/SearchInput.js
TaitoUnited/taito-cli
import React from 'react'; import styled from '@emotion/styled'; import { connectSearchBox } from 'react-instantsearch-dom'; import { FiSearch } from 'react-icons/fi'; import { media } from '../../utils'; const SearchInput = ({ refine, ...rest }) => { return ( <Form> <FiSearch /> <Input type...
src/App.js
AdamB59/Klient
import React, { Component } from 'react'; import { postAPI } from "./service/api" export default class App extends Component { constructor(){ super(); this.state = { username: "", password: "" } } _submit(e){ e.preventDefault(); postAPI("/user/login", {username : this.state.u...
src/components/shared/stated-menu.js
quanglam2807/webcatalog
import React from 'react'; import PropTypes from 'prop-types'; import Menu from '@material-ui/core/Menu'; class StatedMenu extends React.Component { constructor(props) { super(props); this.state = { anchorEl: undefined, open: false, }; this.handleClick = this.handleClick.bind(this); ...
src/Tooltip.js
xiaoking/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; const Tooltip = React.createClass({ mixins: [BootstrapMixin], propTypes: { /** * An html id attribute, necessary for accessibility * @...
assets/jqwidgets/demos/react/app/grid/fluidsize/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; class App extends React.Component { render() { let source = { localdata: generatedata(500), datafields: [ ...
src/svg-icons/action/settings-power.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsPower = (props) => ( <SvgIcon {...props}> <path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm2-22h-2v10h2V2zm3.56 2.44l-1.45 1.45C16.84 6.94 18 8.83 18 11c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-2.17 1.16-4.06 2.88-...
src/ThreeRender/story.js
appier/react-component-template
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import ThreeRender from './ThreeRender.js'; const stories = storiesOf('Three', module); stories.add('Default', () => ( <ThreeRender /> ));
examples/Api.js
bluespore/react-big-calendar
import React from 'react'; import metadata from 'component-metadata!react-big-calendar/Calendar'; import transform from 'lodash/object/transform'; function displayObj(obj){ return JSON.stringify(obj, null, 2).replace(/"|'/g, '') } let capitalize = str => str[0].toUpperCase() + str.substr(1); let cleanDocletValue = ...
qbot/ui/components/shape.js
dennisdunn/botlab
import React from 'react' /** * A drawable shape. * * Props: * styles={fillStyle:'blue'} * eventArgs={action:do_something, point:{r:0, theta:0}} */ export default class Shape extends React.Component { constructor(props) { super(props) this.getPath = this.getPath.bind(this) console.l...
src/interface/common/DragScroll.js
fyruna/WoWAnalyzer
/** * Created by joe on 16/9/2. * Source: https://raw.githubusercontent.com/qiaolb/react-dragscroll/master/src/DragScroll.jsx * This was cleaned up. A lot. */ import React from 'react'; import PropTypes from 'prop-types'; class DragScroll extends React.PureComponent { static propTypes = { children: PropType...
tests/components/Svg.spec.js
robcmills/svg-game
import React from 'react' import Svg from 'components/Svg/Svg' describe('(Component) Svg', () => { it('should exist', () => { }) })
ui/src/containers/VisualiseForm/StatementsForm/AxesEditor/QueryEditor.js
LearningLocker/learninglocker
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Map, List, fromJS } from 'immutable'; import Switch from 'ui/components/Material/Switch'; import QueryBuilder from 'ui/containers/QueryBuilder'; export default class QueryEditor extends Component { static propTypes = { timezon...
src/svg-icons/device/screen-lock-rotation.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceScreenLockRotation = (props) => ( <SvgIcon {...props}> <path d="M23.25 12.77l-2.57-2.57-1.41 1.41 2.22 2.22-5.66 5.66L4.51 8.17l5.66-5.66 2.1 2.1 1.41-1.41L11.23.75c-.59-.59-1.54-.59-2.12 0L2.75 7.11c-.59...
src/svg-icons/av/queue-music.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvQueueMusic = (props) => ( <SvgIcon {...props}> <path d="M15 6H3v2h12V6zm0 4H3v2h12v-2zM3 16h8v-2H3v2zM17 6v8.18c-.31-.11-.65-.18-1-.18-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3V8h3V6h-5z"/> </SvgIcon> ); AvQu...