path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
examples/js/sort/reusable-custom-sort-table.js
prajapati-parth/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
client/admin/settings/inputs/LanguageSettingInput.js
iiet/iiet-chat
import { Box, Field, Flex, Select } from '@rocket.chat/fuselage'; import React from 'react'; import { useLanguages } from '../../../contexts/TranslationContext'; import { ResetSettingButton } from '../ResetSettingButton'; export function LanguageSettingInput({ _id, label, value, placeholder, readonly, autocompl...
docs/app/Examples/views/Card/Types/CardExampleCard.js
aabustamante/Semantic-UI-React
import React from 'react' import { Card, Icon, Image } from 'semantic-ui-react' const CardExampleCard = () => ( <Card> <Image src='/assets/images/avatar/large/matthew.png' /> <Card.Content> <Card.Header> Matthew </Card.Header> <Card.Meta> <span className='date'> Jo...
fields/types/password/PasswordFilter.js
wustxing/keystone
import React from 'react'; import { SegmentedControl } from 'elemental'; const OPTIONS = [ { label: 'Is Set', value: true }, { label: 'Is NOT Set', value: false } ]; var PasswordFilter = React.createClass({ getInitialState () { return { checked: this.props.value || true }; }, toggleChecked (checked) { ...
src/svg-icons/action/alarm-off.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAlarmOff = (props) => ( <SvgIcon {...props}> <path d="M12 6c3.87 0 7 3.13 7 7 0 .84-.16 1.65-.43 2.4l1.52 1.52c.58-1.19.91-2.51.91-3.92 0-4.97-4.03-9-9-9-1.41 0-2.73.33-3.92.91L9.6 6.43C10.35 6.16 11.16 6...
example/src/components/SetUserLocationVerticalAlignment.js
bsudekum/react-native-mapbox-gl
import React from 'react'; import MapboxGL from '@mapbox/react-native-mapbox-gl'; import sheet from '../styles/sheet'; import {onSortOptions} from '../utils'; import BaseExamplePropTypes from './common/BaseExamplePropTypes'; import TabBarPage from './common/TabBarPage'; class SetUserLocationVerticalAlignment extends...
src/browser/extension/inject/index.js
xcambar/octodo
import React from 'react'; import { render } from 'react-dom'; import Root from 'app/containers/Root'; import configureStore from 'app/store/configureStore'; let injectDiv; configureStore(store => { window.addEventListener('load', () => { injectDiv = document.createElement('div'); injectDiv.style.width = '...
app/javascript/mastodon/features/account_timeline/containers/header_container.js
palon7/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { makeGetAccount } from '../../../selectors'; import Header from '../components/header'; import { followAccount, unfollowAccount, blockAccount, unblockAccount, muteAccount, unmuteAccount, } from '../../../actions/accounts'; import { me...
src/parser/monk/windwalker/modules/spells/ComboBreaker.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage } from 'common/format'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import Analyzer from 'parser/core/Analyzer'; import Stat...
src/svg-icons/communication/import-contacts.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationImportContacts = (props) => ( <SvgIcon {...props}> <path d="M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 2...
src/svg-icons/image/filter-1.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter1 = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 10h2V5h-4v2h2v8zm7-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 16H7V3h14v14z"/> ...
src/views/HomeView.js
nitrog7/nl-fluid
import React from 'react'; import * as components from 'components'; const { Container } = components; export default class HomeView extends React.Component { constructor(props) { super(props); this.state = {}; } render() { return ( <Container direction="column"> <h1>NL Fluid</h...
react/features/chat/components/web/ChatButton.js
gpolitis/jitsi-meet
// @flow import React from 'react'; import { translate } from '../../../base/i18n'; import { IconChat } from '../../../base/icons'; import { connect } from '../../../base/redux'; import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components'; import ChatCounter from './ChatCounter'; /**...
js-old/src/ui/Features/features.js
destenson/ethcore--parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: 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 // (at your option) any lat...
src/modules/Search/SearchCategoryLayout.js
Semantic-Org/Semantic-UI-React
import PropTypes from 'prop-types' import React from 'react' function SearchCategoryLayout(props) { const { categoryContent, resultsContent } = props return ( <> <div className='name'>{categoryContent}</div> <div className='results'>{resultsContent}</div> </> ) } SearchCategoryLayout.propTyp...
src/packages/@ncigdc/components/SurvivalPlotWrapper.js
NCI-GDC/portal-ui
import React from 'react'; import { compose, lifecycle, setDisplayName, withState, } from 'recompose'; import { isEqual, isNumber, pick, sum, uniqueId, } from 'lodash'; import { scaleOrdinal, schemeCategory10 } from 'd3'; import Color from 'color'; import { renderPlot } from '@oncojs/survivalplot'; i...
examples/counter/containers/CounterApp.js
michaelcontento/redux
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'redux/react'; import Counter from '../components/Counter'; import * as CounterActions from '../actions/CounterActions'; @connect(state => ({ counter: state.counter })) export default class CounterApp extend...
src/app/routes/routes/Test/routes/Forms/components/Forms.js
cchamberlain/redux-webpack-boilerplate
import React from 'react' export default ({ children, params }) => ( <div> <h2>Form Tests</h2> {params.id ? <span>{params.id}</span> : null} {children} </div> )
client/components/about/AboutPage.js
andela-fmustapha/document-management
import React from 'react'; /** * * * @class AboutPage * @extends {React.Component} */ class AboutPage extends React.Component { /** * * * @returns {void} JSX content * * @memberof AboutPage */ render() { return ( <div className="about" id="page-padding"> <h1>About</h1> ...
react/src/UserLink.js
mswieboda/tabster
import React from 'react'; import { Link } from 'react-router-dom'; import { toURL } from './utils/url'; const ANONYMOUS_USERNAME = "anonymous"; function UserLink({ children, username }) { const encodedUrl = () => { return `/users/${toURL(username)}`; }; if (username === ANONYMOUS_USERNAME) { return(ch...
examples/js/custom/search/fully-custom-search-clear-button.js
prajapati-parth/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ /* eslint no-alert: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn, ClearSearchButton } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quant...
src/components/TrendingListItem.js
GreaterMKEMeetup/snap-bid-site
import React from 'react'; import { Link } from 'react-router'; import './TrendingListItem.css'; export default ({auction}) => { return ( <div className="trending-list-item-container"> <div className="row"> <div className="container-header col-md-7"><Link to={`/auction/${auction.id}`}>{auction.name...
src/components/competitions/competitions-list.js
sunpietro/LeagueManager
import React, { Component } from 'react'; import CompetitionListItem from './competition-list-item'; import CompetitionForm from '../forms/competition-form'; import DefaultLayout from '../layouts/default'; import WPAPI from '../../tools/wpapi'; import '../../css/components/competitions/competitions.css'; class Compet...
app/addons/config/routes.js
michellephung/couchdb-fauxton
// Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
src/Label.js
brynjagr/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Label = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'label', bsStyle: 'default' }; }, render() { let classes = this.getBsClassSe...
src/svg-icons/file/folder-open.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileFolderOpen = (props) => ( <SvgIcon {...props}> <path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"/> </SvgIcon> ); FileFolderOpen = pure(F...
classic/src/scenes/traypopout/src/Scenes/UnreadScene/UnreadMailboxList/UnreadMailboxList.js
wavebox/waveboxapp
import React from 'react' import PropTypes from 'prop-types' import shallowCompare from 'react-addons-shallow-compare' import { accountStore, accountActions } from 'stores/account' import { List, Divider } from '@material-ui/core' import UnreadMailboxListItem from './UnreadMailboxListItem' import { WB_FOCUS_MAILBOXES_W...
src/svg-icons/device/gps-not-fixed.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceGpsNotFixed = (props) => ( <SvgIcon {...props}> <path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.17 3.77 7.48 7.94 7.94V23h2v-2.06c4.17-.46 7.48-3.77 7...
packages/cf-component-icon/src/reactsvgs/Sad.js
jroyal/cf-ui
import React from 'react'; import PropTypes from 'prop-types'; const Sad = ({ className, label }) => ( <svg className={className} aria-label={label} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" > <circle cx="5.397" cy="6.67" r="0.948" /> <circle cx="10.591" cy="6.67" r="0.948" /> ...
node_modules/react-bootstrap/es/MediaListItem.js
caughtclean/but-thats-wrong-blog
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/client/router.js
nicolaschaillot/electron-events
import React from 'react'; import { render } from 'react-dom'; import { Router, Route, hashHistory } from 'react-router'; import App from './app.js'; render(( <Router history={hashHistory}> <Route path="/" component={App} /> </Router> ), document.getElementById('wrapper'));
definitions/npm/@kadira/storybook_v1.x.x/test_storybook_v1.x.x.js
echenley/flow-typed
// @flow import React from 'react'; import { action, storiesOf } from '@kadira/storybook'; storiesOf('div', module) .add('empty', () => ( <div onClick={action('click')} /> )) // $ExpectError .aad('empty', () => ( <div /> ));
react-ui/src/components/SuccessAlert/SuccessAlert.js
hokustalkshow/find-popular
import React, { Component } from 'react'; import IosCheckmarkEmpty from 'react-icons/io/ios-checkmark-empty'; class SuccessAlert extends Component { render() { if (this.props.successMessage) { return <div className="alert alert-success"><IosCheckmarkEmpty /> {this.props.successMessage}</div> } else { return...
docs/general/flex/index.js
aruberto/react-foundation-components
import React from 'react'; import { FlexParent, FlexChild } from '../../../src/flex'; const rowStyle = { border: 'solid 1px #c6c6c6', marginTop: '0.5rem', marginBottom: '0.5rem' }; const styleOdd = { background: '#eee', minWidth: '250px' }; const styleEven = { background: '#e1e1e1', minWidth: '250px' }; const FlexPa...
src/DropdownStateMixin.js
asiniy/react-bootstrap
import React from 'react'; import domUtils from './utils/domUtils'; import EventListener from './utils/EventListener'; /** * Checks whether a node is within * a root nodes tree * * @param {DOMElement} node * @param {DOMElement} root * @returns {boolean} */ function isNodeInRoot(node, root) { while (node) { ...
node_modules/react-native-pathjs-charts/example/src/tree/TreeChartBasic.js
Stoneski93/GymDiary
/* Copyright 2016 Capital One Services, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing...
src/components/input/select/index.js
KleeGroup/focus-components
//dependencies import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { translate } from 'focus-core/translation'; import { v4 as uuid } from 'uuid'; import isUndefined from 'lodash/lang/isUndefined'; import isNull from 'lodash/lang/isNull'; import union from 'lodash/array/union'; import ...
src/svg-icons/action/view-module.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewModule = (props) => ( <SvgIcon {...props}> <path d="M4 11h5V5H4v6zm0 7h5v-6H4v6zm6 0h5v-6h-5v6zm6 0h5v-6h-5v6zm-6-7h5V5h-5v6zm6-6v6h5V5h-5z"/> </SvgIcon> ); ActionViewModule = pure(ActionViewModule)...
app/javascript/components/provider-dashboard-charts/provider-dashboard-utilization-chart/utilizationMemoryDonutChart.js
ManageIQ/manageiq-ui-classic
import React from 'react'; import PropTypes from 'prop-types'; import { DonutChart, AreaChart } from '@carbon/charts-react'; import { getConvertedData } from '../helpers'; import EmptyChart from '../emptyChart'; const UtilizationMemoryDonutChart = ({ data, config }) => { const memoryData = data.memory ? data.memory ...
client/src/app/parts/admin/userComponent.js
Einsteinish/DumbNode
import _ from 'lodash'; import React from 'react'; import tr from 'i18next'; import Spinner from 'components/spinner'; import Debug from 'debug'; let debug = new Debug("components:user"); const Item = ({name, value}) =>( <div><div>{name}</div><div>{value}</div></div> ) Item.propTypes = { name: React.PropTypes.s...
examples/js/pagination/custom-pagination-table.js
rolandsusans/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
app/javascript/mastodon/components/status_list.js
tootsuite/mastodon
import { debounce } from 'lodash'; import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import StatusContainer from '../containers/status_container'; import ImmutablePureComponent from 'react-immutable-pure-component'; import LoadGap from './load_gap...
app/javascript/flavours/glitch/components/permalink.js
Kirishima21/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class Permalink extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; static propTypes = { className: PropTypes.string, href: PropTypes.string.isRequired, to: PropTypes.string.isRequired, ...
frontend/src/Settings/Tags/Tag.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Card from 'Components/Card'; import ConfirmModal from 'Components/Modal/ConfirmModal'; import { kinds } from 'Helpers/Props'; import translate from 'Utilities/String/translate'; import TagDetailsModal from './Details/TagDetailsModal'; ...
examples/shared-root/app.js
arasmussen/react-router
import React from 'react' import { createHistory, useBasename } from 'history' import { Router, Route, Link } from 'react-router' const history = useBasename(createHistory)({ basename: '/shared-root' }) class App extends React.Component { render() { return ( <div> <p> This illustrates ...
app/GUI/helpers/help.js
bgrsquared/places
import React from 'react'; export const Help = () => (<div> <h3 style={{ marginTop: '0px' }}>Idea</h3> <div>This application allows you to analyze the relative density of patterns in place names per country. </div> <h3>How does it work?</h3> <div>Generally speaking, you have two modes: <ul> <li...
src/containers/Home/Home.js
noraesae/yomiko
import React, { Component } from 'react'; import { Link } from 'react-router'; export default class Home extends Component { render() { const styles = require('./Home.scss'); // require the logo image both from client and server return ( <div className={styles.home}> <div className={styles....
src/svg-icons/image/filter-8.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter8 = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-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 16H7V3h14v14zm-8-2h2c1.1 0 2-.89 2-2v-1...
src/svg-icons/image/timer-3.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTimer3 = (props) => ( <SvgIcon {...props}> <path d="M11.61 12.97c-.16-.24-.36-.46-.62-.65-.25-.19-.56-.35-.93-.48.3-.14.57-.3.8-.5.23-.2.42-.41.57-.64.15-.23.27-.46.34-.71.08-.24.11-.49.11-.73 0-.55-.09-1....
src/main.js
3a-classic/score
import React from 'react' import ReactDOM from 'react-dom' import createBrowserHistory from 'history/lib/createBrowserHistory' import { useRouterHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import createStore from './store/createStore' import AppContainer from './containers/Ap...
src/ModalHeader.js
laran/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalHeader extends React.Component { render() { return ( <div {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> { this.props.closeButton && <button cla...
docs/app/Examples/elements/Button/Content/ButtonExampleConditionalsCustom.js
aabustamante/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleConditionalsCustom = () => ( <Button.Group> <Button>un</Button> <Button.Or text='ou' /> <Button positive>deux</Button> </Button.Group> ) export default ButtonExampleConditionalsCustom
test/index.android.js
MonkeyKingPlus/react-native-picker
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Navigator } from 'react-native'; import Index from './app'; export default class ReactNativeComponents extends Component ...
components/HtmlTemplate/TypeKitScript.js
ben181231/skygear-doc
import React from 'react'; const TypeKitScript = () => { const typekitScript = 'try{Typekit.load({ async: true });}catch(e){}'; return ( <section> <script src="https://use.typekit.net/oof1hhz.js" /> <script dangerouslySetInnerHTML={{ __html: typekitScript }} /> </section> ); }; export defau...
app/components/Slider/index.js
ReelTalkers/reeltalk-web
/** * * Slider * */ import React from 'react' import styles from './styles.css' function Slider(props) { return ( <div className={styles.slider}> {props.children} </div> ) } export default Slider
src/svg-icons/device/bluetooth-connected.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBluetoothConnected = (props) => ( <SvgIcon {...props}> <path d="M7 12l-2-2-2 2 2 2 2-2zm10.71-4.29L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1....
src/Components/LatestArticles.js
Zangriev/Kentico
import React, { Component } from 'react'; import ArticleStore from '../Stores/Article'; import { Link } from 'react-router' import dateFormat from 'dateformat'; const articleCount = 5; let getState = (props) => { return { articles: ArticleStore.getArticles(articleCount) }; }; class LatestArticles extends Com...
src/icons/Levels.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class Levels extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M127,99.2V80c0-8.8-7.2-16-16-16s-16,7.2-16,16v21.5c-8.5,5.8-14,15.5-14,26.5s5.5,20.7,14,26.5V432c0,8.8,7.2,16,16,16 ...
anubis/ui/components/scratchpad/PanelButtonComponent.js
KawashiroNitori/Anubis
import React from 'react'; import classNames from 'classnames'; export default function PanelButtonComponent(props) { const { className, children, ...rest, } = props; const cn = classNames(className, 'scratchpad__panel-button'); return ( <button {...rest} className={cn}>...
src/components/course/CourseForm.js
m0t0r/course-manager-app
import React from 'react'; import TextInput from '../common/TextInput'; import SelectInput from '../common/SelectInput'; const CourseForm = ({course, allAuthors, onSave, onChange, saving, errors}) => { return ( <form> <h1>Manage Course</h1> <TextInput name="title" label="Title" ...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/LinkedModules.js
amido/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import './assets/style.css'; import { test, version } from 'test-integrity'; export default () => { const ...
src/components/pager/index.js
manweill/dna-ebook
import { Dimensions, FlatList } from 'react-native' import { EnumPlayerState } from 'utils/enums' import PagerItem from './PagerItem' import PropTypes from 'prop-types' import React from 'react' import moment from 'moment' const deviceWidth = Dimensions.get('window').width export default class Pager extends React.Co...
src/svg-icons/editor/multiline-chart.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorMultilineChart = (props) => ( <SvgIcon {...props}> <path d="M22 6.92l-1.41-1.41-2.85 3.21C15.68 6.4 12.83 5 9.61 5 6.72 5 4.07 6.16 2 8l1.42 1.42C5.12 7.93 7.27 7 9.61 7c2.74 0 5.09 1.26 6.77 3.24l-2.88 3...
src/list/selection/list.js
KleeGroup/focus-components
// Dependencies import React from 'react'; import builder from 'focus-core/component/builder'; import types from 'focus-core/component/types'; import reduce from 'lodash/collection/reduce'; import isArray from 'lodash/lang/isArray'; //Add a ref to the props if the component is not pure add nothing in the other case. ...
packages/react/components/actions.js
AdrianV/Framework7
import React from 'react'; import Mixins from '../utils/mixins'; import Utils from '../utils/utils'; import __reactComponentWatch from '../runtime-helpers/react-component-watch.js'; import __reactComponentEl from '../runtime-helpers/react-component-el.js'; import __reactComponentDispatchEvent from '../runtime-helpers/r...
src/components/decorators/withViewport.js
DenisIzmaylov/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'react/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default s...
frontend/src/components/MessageInput.js
daGrevis/msks
import _ from 'lodash' import fp from 'lodash/fp' import React from 'react' import { connect } from 'react-redux' import classNames from 'classnames' import { getLinkToFront, getLinkToChannel } from '../routing/links' import { push } from '../store/actions/router' import { sendMessage, pushMessageInputHistory } from '...
app/javascript/mastodon/features/compose/components/poll_form.js
musashino205/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import IconButton from 'mastodon/components/icon_butt...
project_react_template/src/App.js
Mikeysax/mikey
// Import Project Dependencies import React from 'react'; import ReactDOM from 'react-dom'; // Import CSS/SCSS import './css/application.scss'; // Router Dependencies import { Router, browserHistory } from 'react-router'; import routes from './routes'; // Router const router = ( <Router history={browserHistory}...
client/src/containers/SignInFormContainer.js
uramen/apartments
import React from 'react'; import { withRouter } from 'react-router'; import { graphql } from 'react-apollo'; import gql from 'graphql-tag'; import { connect } from 'react-redux'; import SignInForm from '../components/Forms/SignInForm'; import { signIn } from '../actions'; class SignInFormContainer extends React.Comp...
src/components/Todo.js
SaKKo/react-redux-todo-boilerplate
import React from 'react'; const Todo = ({ onClick, completed, text }) => ( <li onClick={onClick} style={{ textDecoration: completed ? 'line-through' : 'none' }} className={ completed ? 'completed' : '' } > {text} </l...
lib/components/BlameLine.js
alexcorre/git-blame
'use babel'; import React from 'react'; import strings from '../locales/strings'; const HASH_LENGTH = 7; const colours = {}; function word(str, index) { const words = str.split(' '); return words[index < 0 ? words.length + index : index]; } function stringToColour(str) { if (colours[str]) { return colours...
src/components/AddTodo.js
jhegedus42/egghead-redux-playaround
// @flow // AddTodo component import React from 'react'; import {connect} from 'react-redux'; import type {A_ADD_TODO} from '../reducers/actions' import {mk_A_ADD_TODO} from '../reducers/actions' const AddTodoPres = ( arg : {dispatch: Function}): React$Element<any> =>{ const dispatch= arg.dispatch let input; r...
node_modules/react-icons/io/reply-all.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoReplyAll = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m23.6 15c11.9 0 12.4 16.3 12.4 16.3-4-7.3-7.1-8-12.4-8v7.2l-11.9-10.5 11.9-11.2v6.2z m-20.1 5l11.3-10.6v4.4l-6.5 6.2 6.5 5.3v4.5z"/></g> </Icon> ) export defaul...
src/Parser/Core/Modules/Features/Images/Health.js
enragednuke/WoWAnalyzer
import React from 'react'; const icon = props => ( <svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="16 16 32 32" {...props}> <g> <path d="M32.105,26.297c-3.863-9.098-14.842-6.841-14.914,3.719c-0.04,5.799,3.176,8.808,14.937,16.919 c10.688-7.172,14.945-11.183,14.905-16.982C46.96,19.367,35.789...
imports/ui/views/signup.js
dklisiaris/boomabu
import React from 'react'; import { Meteor } from 'meteor/meteor'; import { Accounts } from 'meteor/accounts-base'; import { Link } from 'react-router'; import { browserHistory } from 'react-router'; import { renderErrorsFor } from '../../modules/utils'; import {addFolder} from '../../api/folders/methods'; export clas...
website/src/index.js
uber-common/deck.gl
import React from 'react'; import {Home} from 'gatsby-theme-ocular/components'; import {withPrefix} from 'gatsby'; import styled from 'styled-components'; import HeroExample from './examples/home-demo'; const FeatureImage = styled.div` position: absolute; height: 100%; width: 50%; top: 0; right: 0; z-index: -1; borde...
docs/client.js
adampickeral/react-bootstrap
import 'bootstrap/less/bootstrap.less'; import './assets/docs.css'; import './assets/style.css'; import './assets/carousel.png'; import './assets/logo.png'; import './assets/favicon.ico'; import './assets/thumbnail.png'; import './assets/thumbnaildiv.png'; import 'codemirror/mode/htmlmixed/htmlmixed'; import 'codemir...
lib/Paneset/PaneResizeCursor.js
folio-org/stripes-components
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import css from './PaneResize.css'; const PaneResizeCursor = React.forwardRef(({ visible, xpos }, ref) => { // the cursor hover aria is expanded by a transparent container div that's 20px wide. // the dotted ...
examples/counter/components/counter.js
maksimsco/redux-process
import React from 'react'; class Counter extends React.Component { render() { const {count, decrease, increase} = this.props; return ( <div className="container"> <h2>This is counter</h2> <p>Counter: <span className="count">{count}</span></p> <button className="button-decrease...
packages/react-widgets/src/SelectListItem.js
haneev/react-widgets
import React from 'react'; import PropTypes from 'prop-types'; import ListOption from './ListOption'; class SelectListItem extends React.Component { static propTypes = { type: PropTypes.string.isRequired, name: PropTypes.string.isRequired, disabled: PropTypes.bool, readOnly: PropTypes.bool, data...
src/containers/app.js
andrei-cacio/redux-github-explorer
import React from 'react'; import { connect } from 'react-redux'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import Login from '../components/login'; import RepoList from './repos-list'; const AppTheme = () => getMuiTheme({ palette: {...
webui/pages/admin/specifications/new.js
stiftungswo/izivi_relaunch
import React from 'react'; import Router from 'next/router'; import { Container, Header, Divider } from 'semantic-ui-react'; import App from '../../../components/AppContainer'; import FormSpecification from '../../../components/admin/FormSpecificationContainer'; const redirect = ({ _id }) => { if (_id) { alert('...
src/icons/Looks4Icon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class Looks4Icon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M38 6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zm-8 28h-4v-8h-8V...
src/components/App.js
SLP-KBIT/react15-hot-loading-webpack-umd-boilerplate
import React from 'react'; export default class SampleComponent extends React.Component { constructor(props) { super(props); } render() { return ( <div> hello react. </div> ) } }
src/Components/Projects.js
morselapp/shop_directory
import React, { Component } from 'react'; import ProjectItem from './ProjectItem'; class Projects extends Component { render() { let projectItems; if (this.props.projects) { projectItems = this.props.projects.map(project => { return (<ProjectItem key = {project.title} project={project}/> ...
ajax/libs/react-instantsearch/5.1.0/Connectors.js
sufuf3/cdnjs
/*! ReactInstantSearch 5.1.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :...
src/index.js
nprail/nprail.github.io
import React from 'react' import ReactDOM from 'react-dom' import './themes/green-white.css' // import "./themes/red-white.css"; // import "./themes/grey-white.css"; // import "./themes/white-indigo."; // import "./themes/white-blue.css"; // import "./themes/white-grey.css"; // import "./themes/white-red.css"; // impo...
app/javascript/mastodon/features/compose/components/upload.js
vahnj/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { defineMessages, injec...
packages/react-instantsearch-dom-maps/src/GeoSearch.js
algolia/react-instantsearch
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { LatLngPropType, BoundingBoxPropType } from './propTypes'; import Connector from './Connector'; import Provider from './Provider'; import GoogleMaps from './GoogleMaps'; class GeoSearch extends Component { static propTypes = { ...
React Fundamentals/EXAM_19.11.2017/exam-app - Copy/src/index.js
NikiStanchev/SoftUni
import React from 'react'; import ReactDOM from 'react-dom'; import './style/bootstrap.min.css' import './style/site.css' import App from './App'; import registerServiceWorker from './registerServiceWorker'; import { BrowserRouter as Router } from 'react-router-dom'; import '../node_modules/toastr/build/toastr.min.css'...
app/components/routes.js
newtext/timer
// import React from 'react'; // import { Route } from 'react-router'; // import App from './app'; // // export default ( // <Route path="/" components={App} /> // );
website/src/components/SecondaryNav.js
plouc/mozaik
import React from 'react' import Link from 'gatsby-link' import styled from 'styled-components' const Root = styled.aside` position: fixed; top: ${props => props.theme.headerHeight}px; width: ${props => props.theme.sidebarWidth}px; background: ${props => props.theme.contentBackgroundColor}; height:...
front-end/src/components/CommentCard/EditCommentForm.js
mkalpana/km-react-reddit-clone
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Field, reduxForm } from 'redux-form'; import { commentsValidate } from '../../utils/validationHelper'; import { renderInputField, renderTextAreaField } from "../../utils/formHelper"; import { uniqueId } from 'lodash'; import './Comme...
src/frontend/components/AdminCallAssignment.js
al3x/ground-control
import React from 'react'; import Relay from 'react-relay'; import {BernieText} from './styles/bernie-css'; import {Paper, List, ListItem} from 'material-ui'; import moment from 'moment'; export class AdminCallAssignment extends React.Component { render() { return ( <div> <div style={BernieText.tit...
app/client/src/components/Navbar/index.js
barahuang/rss-news-reader
import React from 'react'; import { NavLink } from 'react-router-dom'; import anime from '../Anime'; import './index.css'; import Text from '../Text'; const animateNews = () => { anime('#news .featured-text-letter', 'lettering'); }; const animateFavorite = () => { anime('#favorite .featured-text-letter', 'letteri...
Libraries/Components/TextInput/TextInput.windows.js
lbochenek/react-native-windows
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
app/components/IssueIcon/index.js
c-dagostino/react-boilerplate-example
import React from 'react'; function IssueIcon(props) { return ( <svg height="1em" width="0.875em" className={props.className} > <path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v...
fields/types/number/NumberFilter.js
benkroeger/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import { Form, FormField, FormInput, FormSelect, Grid, } from '../../../admin/client/App/elemental'; const MODE_OPTIONS = [ { label: 'Exactly', value: 'equals' }, { label: 'Greater Than', value: 'gt' }, { label: 'Less Than', value: 'lt' }, { ...
src/containers/Uielements/Popover/index.js
EncontrAR/backoffice
import React, { Component } from 'react'; import { Row, Col } from 'antd'; import Popover from '../../../components/uielements/popover'; import Button from '../../../components/uielements/button'; import PageHeader from '../../../components/utility/pageHeader'; import Box from '../../../components/utility/box'; import ...