path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
server/sonar-web/src/main/js/apps/quality-profiles/compare/__tests__/ComparisonForm-test.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
client/src/app/components/layout/Sidebar.js
mtiger2k/graphql-tutorial
import React from 'react'; import SidebarWrapper from '../../../lib/sidebar/SidebarWrapper'; import UserPanel from '../../containers/sidebar/UserPanel'; import SidebarSearch from '../../containers/sidebar/SidebarSearch'; import SidebarMenu from '../../containers/sidebar/SidebarMenu'; export default function Sidebar()...
fields/components/columns/IdColumn.js
creynders/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var IdColumn = React.createClass({ displayName: 'IdColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, list: React.PropTypes.obje...
src/svg-icons/action/home.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHome = (props) => ( <SvgIcon {...props}> <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/> </SvgIcon> ); ActionHome = pure(ActionHome); ActionHome.displayName = 'ActionHome'; ActionHome.muiName = 'SvgIcon...
src/components/Footer.js
hunt-genes/gwasc
import React from 'react'; import ExternalLink from './ExternalLink'; import Link from './Link'; export default class Footer extends React.Component { static propTypes = { requests: React.PropTypes.object, } render() { const statistics = this.props.requests ? <div>{this.props.requests.loca...
src/components/Application.js
leonardoelias/social-media-profile
import React, { Component } from 'react'; import { connect } from 'react-redux'; import FeedList from './FeedList'; import FriendList from './FriendList'; import Profile from './Profile'; import Tweet from './Tweet'; import { fetchFriends, fetchFeed } from '../actions'; import { Container, Columns, Column } from 're-b...
app/javascript/mastodon/features/following/index.js
KnzkDev/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debounce } from 'lodash'; import LoadingIndicator from '../../components/loading...
src/components/AddToScheduleButton/index.js
r1cebank/EventCore
/* eslint-disable import/no-unresolved */ import React from 'react'; import LinearGradient from 'react-native-linear-gradient'; import { Animated, View, TouchableOpacity, Image } from 'react-native'; import { Components, Assets } from '../../global/globalIncludes'; const { Text } = Components.Text; import Styles from ...
app/jsx/assignments/GradeSummary/components/ReleaseButton.js
djbender/canvas-lms
/* * Copyright (C) 2018 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
RN/ImageDemo/NewComponent/Message.js
puyanLiu/LPYFramework
import React, { Component } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; class Message extends Component { render() { return ( <View></View> ); } } module.exports = Message;
accounts-ui/app/components/changePassword.js
CloudBoost/cloudboost
import React from 'react'; import { Link } from 'react-router' import axios from 'axios' import CircularProgress from 'material-ui/CircularProgress' class ChangePassword extends React.Component { constructor(){ super() this.state = { errorMessage:'', success: false, password:"...
client/components/settings/emails/index.js
ZeHiro/kresus
import React from 'react'; import { connect } from 'react-redux'; import { get } from '../../../store'; import { translate as $t } from '../../../helpers'; import Alerts from './alert-list'; import EmailConfig from './config'; import Reports from './report-list'; import DisplayIf from '../../ui/display-if'; function...
app/javascript/mastodon/features/search/index.js
salvadorpla/mastodon
import React from 'react'; import SearchContainer from 'mastodon/features/compose/containers/search_container'; import SearchResultsContainer from 'mastodon/features/compose/containers/search_results_container'; const Search = () => ( <div className='column search-page'> <SearchContainer /> <div className='...
src/components/Bio.js
HorusGoul/horuslugo.com
import React from 'react' // Import typefaces // import 'typeface-montserrat' // import 'typeface-merriweather' import profilePic from './profile-pic.png' import { rhythm } from '../utils/typography' class Bio extends React.Component { render() { const { children } = this.props return ( <div ...
app/scripts/components/node-details/node-details-relatives-link.js
hustbill/network-verification-ui
import React from 'react'; import { connect } from 'react-redux'; import { clickRelative } from '../../actions/app-actions'; import { trackMixpanelEvent } from '../../utils/tracking-utils'; import MatchedText from '../matched-text'; class NodeDetailsRelativesLink extends React.Component { constructor(props, contex...
src/password-reset/components/PasswordResetSuccessPage/index.js
u-wave/web
import React from 'react'; import { useTranslator } from '@u-wave/react-translate'; import Paper from '@mui/material/Paper'; import Typography from '@mui/material/Typography'; function PasswordResetSuccessPage() { const { t } = useTranslator(); return ( <Paper className="PasswordReset"> <Typography vari...
plugins/Wallet/js/main.js
NebulousLabs/Sia-UI
import React from 'react' import createSagaMiddleware from 'redux-saga' import { createStore, applyMiddleware } from 'redux' import { Provider } from 'react-redux' import rootReducer from './reducers/index.js' import rootSaga from './sagas/index.js' import { fetchData } from './actions/wallet.js' import WalletApp from ...
public/js/components/CvForm/index.js
nowordforfree/react-cv
import React from 'react'; import { Field } from 'redux-form'; import { Chip, IconButton, RaisedButton, Snackbar } from 'material-ui'; import AddIcon from 'material-ui/svg-icons/content/add'; import BlockExperience from './BlockExperience'; import BlockProjects from './BlockProjects'; import renderTextField fr...
tests/lib/rules/indent.js
bgw/eslint
/** * @fileoverview This option sets a specific tab width for your code * @author Dmitriy Shekhovtsov * @author Gyandeep Singh * @copyright 2014 Dmitriy Shekhovtsov. All rights reserved. * @copyright 2015 Gyandeep Singh. All rights reserved. */ "use strict"; //----------------------------------------------------...
ui/src/main/frontend/src/containers/Employee.js
Dokuro-YH/alice-projects
import React, { Component } from 'react'; import { Button } from 'react-bootstrap'; import axios from 'axios'; import EmployeeTable from '../components/EmployeeTable'; import EmployeeModal from '../components/EmployeeModal'; class Employee extends Component { static API = '/api/employee'; state = { showModal:...
docs/components/docs/Docs.js
casesandberg/reactcss
'use strict' import React from 'react' import { Shell } from '../layout' import DocsBody from './DocsBody' import DocsFeature from './DocsFeature' export const Docs = () => { return <Shell feature={ DocsFeature } body={ DocsBody } nav="documentation" /> } export default Docs
actor-apps/app-web/src/app/components/modals/create-group/ContactItem.react.js
allengaller/actor-platform
import React from 'react'; import AvatarItem from 'components/common/AvatarItem.react'; class ContactItem extends React.Component { static propTypes = { contact: React.PropTypes.object, onToggle: React.PropTypes.func } constructor(props) { super(props); this.onToggle = this.onToggle.bind(this)...
src/examples/player.js
gajus/react-outside-event
import React from 'react'; import ReactOutsideEvent from './..'; class Player extends React.Component { constructor (...args) { super(...args); this.state = { lastEventName: null }; } onOutsideEvent = (event) => { this.setState({ lastEventName: even...
app/web/containers/Dashboard.web.js
Nakan4u/pokemons-finder
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import { ActionCreators } from '../../actions'; import Badge from '../components/Badge'; import Dashboard from '../../containers/Dashboard'; impor...
example/src/index.js
redux-autoform/redux-autoform-next
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
src/Layout.js
luzeduardo/luzeduardo.github.io
import React from 'react'; import Scanner from './Scanner'; import Result from './Result'; import {List} from 'material-ui/List'; import LinearProgress from 'material-ui/LinearProgress'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import TextField from 'material-ui/TextFie...
node_modules/react-native-material-textfield/src/components/helper/test.js
RahulDesai92/PHR
import 'react-native'; import React from 'react'; import renderer from 'react-test-renderer'; import Helper from '.'; /* eslint-env jest */ const text = 'helper'; it('renders helper', () => { let helper = renderer .create(<Helper>{text}</Helper>) .toJSON(); expect(helper) .toMatchSnapshot(); });
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js
fiture/react-router
import React from 'react'; import { Link } from 'react-router'; class Sidebar extends React.Component { render () { var assignments = COURSES[this.props.params.courseId].assignments return ( <div> <h3>Sidebar Assignments</h3> <ul> {assignments.map(assignment => ( ...
app/routes.js
JCombee/wallet
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './containers/App'; import HomePage from './containers/HomePage'; import CounterPage from './containers/CounterPage'; export default ( <Route path="/" component={App}> <IndexRoute component={HomePage} /> <Route path...
src/components/LoginHeader/index.js
morrishopkins/test_spa
import React, { Component } from 'react'; import { browserHistory } from 'react-router'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import AppBar from 'material-ui/AppBar'; import LeftNav from 'material-ui/Drawer'; import MenuItem from 'material-ui/MenuItem'; import FlatButton fr...
app/components/App.js
passionn/react-isomorphic
import React from 'react' import SwipeableViews from 'react-swipeable-views'; // const App = () => ( // <SwipeableViews> // <div style={Object.assign({}, styles.slide, styles.slide1)}> // slide n°1 // </div> // <div style={Object.assign({}, styles.slide, styles.slide2)}> // slide n°2 // <...
src/containers/Asians/BreaksCalculator/BreakingTeamPointsDistribution/BreakPointsTable/index.js
westoncolemanl/tabbr-web
import React from 'react' import { BarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts' import returnTableData from './returnTableData' export default ({ result, numberOfRounds, numberOfBreakingTeams }) => { const tableData = returnTableData( ...
packages/material-ui-icons/src/LocalDrink.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let LocalDrink = props => <SvgIcon {...props}> <path d="M3 2l2.01 18.23C5.13 21.23 5.97 22 7 22h10c1.03 0 1.87-.77 1.99-1.77L21 2H3zm9 17c-1.66 0-3-1.34-3-3 0-2 3-5.4 3-5.4s3 3.4 3 5.4c0 1.66-1.34 3-3 3zm6.33...
app/components/Organisms/Tweet/Tweet.js
shibe97/worc
import React from 'react'; import Meta from '../../Molecules/Meta/Meta'; import Triggers from '../../Molecules/Triggers/Triggers'; import Text from '../../Atoms/Text/Text'; import styles from './tweet.css'; export default ({ tweet = {}, setUser }) => ( <dl> <dt> <Meta tweet={tweet} setUser={setUser} /> ...
packages/neos-ui-validators/src/StringLength/index.js
dimaip/neos-ui
import React from 'react'; import I18n from '@neos-project/neos-ui-i18n'; import logger from '@neos-project/utils-logger'; /** * Checks if the given value is a valid string (or can be cast to a string * if an object is given) and its length is between minimum and maximum * specified in the validation options. */ c...
examples/huge-apps/routes/Profile/components/Profile.js
SpainTrain/react-router
import React from 'react'; class Profile extends React.Component { render () { return ( <div> <h2>Profile</h2> </div> ); } } export default Profile;
client/app/components/ListItem/index.js
gustblima/what-can-i-play-with-my-friends
import React from 'react'; import Item from './Item'; import Wrapper from './Wrapper'; function ListItem(props) { return ( <Wrapper> <Item> {props.item} </Item> </Wrapper> ); } ListItem.propTypes = { item: React.PropTypes.any, }; export default ListItem;
src/DDPConnector.js
theclinician/ddp-connector
import React from 'react'; import EventEmitter from 'eventemitter3'; import { SHA256, } from '@theclinician/toolbelt'; import ResourcesManager from './ResourcesManager.js'; import { setConnected, setLoggingIn, setUser, clearUser, setRestoring, createQuery, deleteQuery, updateQuery, createSubscrip...
httpdocs/theme/react/hooks-app/opendesktop-home/components/Product.js
KDE/ocs-webserver
import React, { Component } from 'react'; class Product extends React.Component { render(){ let projectUrl = this.props.baseUrlStore+"/p/"+this.props.product.project_id; const scoreDisplay=( <div className="score-info"> <div className="score-number"> {(this.props.prod...
src/svg-icons/content/low-priority.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentLowPriority = (props) => ( <SvgIcon {...props}> <path d="M14 5h8v2h-8zm0 5.5h8v2h-8zm0 5.5h8v2h-8zM2 11.5C2 15.08 4.92 18 8.5 18H9v2l3-3-3-3v2h-.5C6.02 16 4 13.98 4 11.5S6.02 7 8.5 7H12V5H8.5C4.92 5 2 7....
node_modules/react-native/local-cli/generator/templates/__tests__/index.ios.js
15chrjef/mobileHackerNews
import 'react-native'; import React from 'react'; import Index from '../index.ios.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
App/src/features/calendar/MonthSelector.js
DupK/dashboard-epitech
/** * Created by Utilisateur on 25/01/2017. */ import React, { Component } from 'react'; import _ from 'lodash'; import { Text, View, TouchableOpacity, StyleSheet } from 'react-native'; import { observer } from 'mobx-react/native'; import IconFA from 'react-native-vector-icons/FontAwesome'; import IconIO from 'react...
containers/ProductDetail.js
goominc/goommerce-seller-native
'use strict'; import React from 'react'; import { ListView, StyleSheet, Text, View } from 'react-native'; import { connect } from 'react-redux'; import { productActions } from 'goommerce-redux'; import EmptyView from '../components/EmptyView'; import ProductVariantCell from '../components/ProductVariantCell'; const ...
app/javascript/mastodon/components/autosuggest_input.js
cobodo/mastodon
import React from 'react'; import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container'; import AutosuggestEmoji from './autosuggest_emoji'; import AutosuggestHashtag from './autosuggest_hashtag'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from...
app/javascript/mastodon/features/notifications/components/column_settings.js
imas/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import ClearColumnButton from './clear_column_button'; import GrantPermissionButton from './grant_permission_button'; import SettingToggle from './set...
css-constructor/button.js
MicheleBertoli/css-in-js
import React, { Component } from 'react'; import { render } from 'react-dom'; import css from 'css-constructor'; class Container extends Component { @css` text-align: center; `; render() { return <div>{this.props.children}</div>; } } class Button extends Component { @css` background-color: #...
app/view/home.js
togayther/react-stock
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import Carousel from 'nuka-carousel'; import * as ArticleAction from '../action/article'; import * as RecommendAction from '../action/recommend'; import Container from '.....
src/bookmarks/Bookmarks.js
Sekhmet/busy
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { FormattedMessage } from 'react-intl'; import Feed from '../feed/Feed'; import { getFeedContentFromState, getFeedLoadingFromState, getFeedHasMoreFromState } from '../helpers/stateHelpers'; import * as bookmarksActions from '....
src/components/chart.js
kristingreenslit/react-redux-weather-browser
import React from 'react'; import { Sparklines, SparklinesLine, SparklinesReferenceLine } from 'react-sparklines'; import _ from 'lodash'; function average(data) { return _.round(_.sum(data)/data.length); } export default (props) => { return ( <div> <Sparklines height={120} width={180} data={props.data}> ...
src/main/javascript/components/Page.js
epitschke/react-redux-starter
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { fetchMessage } from './../actions/message'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; class Page extends Component { componentWillMount() { this.props.fetchMessage(); } render() { ...
packages/ringcentral-widgets-docs/src/app/pages/Components/RecipientsInput/index.js
u9520107/ringcentral-js-widget
import React from 'react'; import { parse } from 'react-docgen'; import CodeExample from '../../../components/CodeExample'; import ComponentHeader from '../../../components/ComponentHeader'; import PropTypeDescription from '../../../components/PropTypeDescription'; import Demo from './Demo'; // eslint-disable-next-lin...
src/components/FrenchToastQuestion.spec.js
raq929/react-french-toast
import chai from 'chai'; import cheerio from 'cheerio'; import AboutPage from './AboutPage'; import React from 'react'; import ReactDOMServer from 'react/lib/ReactDOMServer'; chai.should();
client/src/components/monitoring/Monitoring.js
DjLeChuck/recalbox-manager
import React from 'react'; import PropTypes from 'prop-types'; import Loader from 'react-loader'; import { translate } from 'react-i18next'; import Col from 'react-bootstrap/lib/Col'; import Row from 'react-bootstrap/lib/Row'; import ProgressBar from 'react-bootstrap/lib/ProgressBar'; import Table from 'react-bootstrap...
src/svg-icons/communication/stay-current-landscape.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStayCurrentLandscape = (props) => ( <SvgIcon {...props}> <path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/> </SvgIcon> ); Communicat...
docs/src/sections/ValidateRefersBasicSection.js
yyssc/ssc-grid
import React from 'react'; import Anchor from '../Anchor'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function ValidateRefersBasicSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> <Anchor id="validate-refers-...
modules/main.js
fjacob21/dmatrix
import React from 'react' import { render } from 'react-dom' import { Router, Route, Link , hashHistory } from 'react-router' import Home from './home' import App from './app' hljs.initHighlightingOnLoad(); render(( <Router history={hashHistory}> <Route path="/" component={App} > <Route path...
assets/javascripts/kitten/components/form/select/dropdown-phone-select/test.js
KissKissBankBank/kitten
import React from 'react' import renderer from 'react-test-renderer' import { DropdownPhoneSelect } from './index' describe('<DropdownPhoneSelect />', () => { it('should match its snapshot with props', () => { const tree = renderer .create( <DropdownPhoneSelect id="dropdown-phone-select-t...
app/javascript/mastodon/features/hashtag_timeline/index.js
NS-Kazuki/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import { expandHashtagTimeline } from '...
client/src/app/components/forms/SigninForm.js
mtiger2k/graphql-tutorial
import React, { Component } from 'react'; import { reduxForm, Field } from 'redux-form'; import { renderTextField } from './formHelpers' const validate = values => { const errors = {} if (!values.username) { errors.username = 'Required' } if (!values.password) { errors.password = 'Required' } else if...
PixelatedDesigns.Arena.Website/src/index.js
pedrotheexplorer/Arena
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
fields/types/select/SelectFilter.js
mikaoelitiana/keystone
import React from 'react'; import { Checkbox, FormField, SegmentedControl } from 'elemental'; import PopoutList from '../../../admin/client/components/PopoutList'; const TOGGLE_OPTIONS = [ { label: 'Matches', value: false }, { label: 'Does NOT Match', value: true } ]; function getDefaultValue () { return { inver...
zwdemoRect/src/components/nomatch.js
send2ocean/nodelearn
import React, { Component } from 'react'; const NoMatch = React.createClass({ render() { return ( <div> <h2>URL NOT FOUND!</h2> {/* etc. */} </div> ) } }); export default NoMatch;
client/app/scripts/components/node-details/node-details-health.js
dilgerma/scope
import React from 'react'; import ShowMore from '../show-more'; import NodeDetailsHealthOverflow from './node-details-health-overflow'; import NodeDetailsHealthItem from './node-details-health-item'; export default class NodeDetailsHealth extends React.Component { constructor(props, context) { super(props, con...
gui/src/app/components/simulation-parameters-dialog.js
mbonvini/LambdaSim
import React from 'react'; import log from 'loglevel'; import TextField from 'material-ui/TextField'; import Dialog from 'material-ui/Dialog'; import Chip from 'material-ui/Chip'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; import { Table, TableBody, TableRo...
app/react-icons/fa/instagram.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaInstagram extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m33.4 31.8v-14.4h-3q0.4 1.4 0.4 2.9 0 2.8-1.4 5.2t-3.9 3.7-5.3 1.4q-4.4 0-...
entry_types/scrolled/package/src/frontend/VideoPlayer/index.js
tf/pageflow
import React from 'react'; import {MediaPlayer} from '../MediaPlayer'; import {useTextTracks} from '../useTextTracks'; import {useMediaMuted} from '../useMediaMuted'; import {useVideoQualitySetting} from '../useVideoQualitySetting'; import {sources} from './sources' import {VideoStructuredData} from './VideoStructured...
packages/cmf/src/cmfConnect.js
Talend/ui
/** * This module connect your component in the CMF environment. * @module react-cmf/lib/cmfConnect * @example import { cmfConnect } from '@talend/react-cmf'; function MyComponent(props) { const onClick = (event) => { props.dispatchActionCreator('myaction', event, { props: props }); }; return <button onClick={...
src/components/Tabs/Tab.js
propertybase/react-lds
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { getAriaLabel, getTabsClass } from './utils'; const Tab = (props) => { const { children, className, id, isActive, scoped, renderTitle: _, title: __, ...rest } = props; return ( ...
front_end/src/pages/Campaigns/CampaignCreatePage.js
oyiptong/splice
import React, { Component } from 'react'; import { connect } from 'react-redux'; import reactMixin from 'react-mixin'; import { Link, Lifecycle } from 'react-router'; import { updateDocTitle } from 'actions/App/AppActions'; import { fetchHierarchy } from 'actions/App/BreadCrumbActions'; import { fetchAccounts } from '...
src/tNumber.js
queicherius/react-globe
const debug = require('debug')('react-globe:tNumber') import React from 'react' import {FormattedNumber} from 'react-intl' // Formats a number const tNumber = (number, options = {}) => { debug(`formatting number: ${number}`) return <FormattedNumber value={number} {...options} /> } export default tNumber
pages/api/snackbar-content.js
cherniavskii/material-ui
import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './snackbar-content.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRoot(Page);
app/features/analysis/protocol/OneRMProtocolView.js
squatsandsciencelabs/OpenBarbellApp
import React, { Component } from 'react'; import { Text, StyleSheet, View, } from 'react-native'; import { Slider } from 'react-native'; import { SETTINGS_PANEL_STYLES } from 'app/appearance/styles/GlobalStyles'; class OneRMProtocoView extends Component { render() { const title = "How to Calcu...
src/Thumbnail.js
roderickwang/react-bootstrap
import React from 'react'; import classSet from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import SafeAnchor from './SafeAnchor'; const Thumbnail = React.createClass({ mixins: [BootstrapMixin], propTypes: { alt: React.PropTypes.string, href: React.PropTypes.string, src: React.PropTyp...
examples/src/components/Cities.js
taifen/react-select
import React from 'react'; import VirtualizedSelect from 'react-virtualized-select'; const DATA = require('../data/cities'); var CitiesField = React.createClass({ displayName: 'CitiesField', getInitialState () { return {}; }, updateValue (newValue) { this.setState({ selectValue: newValue }); }, render ...
src/components/login/LoginForm.spec.js
pisgrupo9/ash_web
import { expect } from 'chai'; import React from 'react'; import { shallow } from 'enzyme'; import sinon from 'sinon'; import LoginForm from './LoginForm'; const setup = (form, loading, submit) => { let props = { form, loading: loading, error: '', onChange: () => {}, onKeyPress: () => {}, onS...
test/ProgressBarSpec.js
brynjagr/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ProgressBar from '../src/ProgressBar'; import {shouldWarn} from './helpers'; const getProgressBarNode = function (wrapper) { return React.findDOMNode(ReactTestUtils.findRenderedDOMComponentWithClass(wrapper, 'progress-bar')); };...
src/components/QuestionUserResult.js
donjar/learn-latex
import React from 'react'; import LatexMath from './LatexMath'; class QuestionUserResult extends React.Component { render() { return ( <div className="QuestionUserResult"> <LatexMath display={this.props.display} math={this.props.text} /> </div> ); } } export default QuestionUserResult;...
react/features/connection-indicator/components/native/ConnectionIndicator.js
bgrozev/jitsi-meet
// @flow import React from 'react'; import { IconSignalLevel0, IconSignalLevel1, IconSignalLevel2 } from '../../../base/icons'; import { BaseIndicator } from '../../../base/react'; import { connect } from '../../../base/redux'; import AbstractConnectionIndicator, { type Props, type State } from '../AbstractC...
src/components/common/admin/story/TagListContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { FormattedMessage, injectIntl } from 'react-intl'; import messages from '../../../../resources/messages'; import DataCard from '../../DataCard'; import { TAG_SET_NYT_THEMES, TAG_SET_CLIFF_ORGS, TAG_SET_CLIFF_PEOPLE } from '../../../../lib/tagUtil'; ...
src/components/PlainListRow.js
ontappl/rn
import React from 'react'; import { TouchableNativeFeedback, View, Text, StyleSheet, } from 'react-native'; import {colors,} from './styles'; export const PlainListRow = ({text, onPress,}) => ( <TouchableNativeFeedback onPress={onPress} background={TouchableNativeFeedback.Ripple(c...
envkey-react/src/components/assoc_manager/assoc_row/assoc_row.js
envkey/envkey-app
import React from 'react' import R from 'ramda' import h from "lib/ui/hyperscript_with_helpers" import SmallLoader from 'components/shared/small_loader' import KeyGeneratable from './traits/key_generatable' import { imagePath } from 'lib/ui' const targetId = props => R.path(["relation", "id"], props.assoc) || props.as...
src/routes/admin/index.js
muriloreis/drfarm
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../co...
app/components/CurrencyChooser.js
schwuk/fx_u_like
import React from 'react'; export default class CurrencyChooser extends React.Component { constructor(props) { super(props); this.handleChange = this.handleChange.bind(this); } handleChange(event) { this.props.handleChange(this.props.direction, event.target.value); } render() { const value ...
assets/Columns/Checkbox.js
rmccue/new-list-tables
import React from 'react'; const checkboxId = item => `cb-select-${item.id}`; export default class Checkbox extends React.Component { render() { const { item } = this.props; const id = checkboxId( item ); return <th className="check-column" scope="row"> <label className="screen-reader-text" htmlFor...
src-rx/src/components/JsonConfigComponent/ConfigPanel.js
ioBroker/ioBroker.admin
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import clsx from 'clsx'; import Grid from '@material-ui/core/Grid'; import Accordion from '@material-ui/core/Accordion'; import AccordionSummary from '@material-ui/core/AccordionSummary'; import Accord...
actor-apps/app-web/src/app/components/DialogSection.react.js
Jeremy-Meng/actor-platform
import _ from 'lodash'; import React from 'react'; import { PeerTypes } from 'constants/ActorAppConstants'; import MessagesSection from 'components/dialog/MessagesSection.react'; import TypingSection from 'components/dialog/TypingSection.react'; import ComposeSection from 'components/dialog/ComposeSection.react'; i...
rhyme-react/src/index.js
petroleyum/rhyme-schemer
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
client/app/libs/testHelper.js
szyablitsky/react-webpack-rails-tutorial
/* eslint-disable import/no-extraneous-dependencies */ import React from 'react'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai from 'chai'; import chaiImmutable from 'chai-immutable'; const doc = jsdom.jsdom('<!doctype html><html><body></body></html>'); const win = doc.defaul...
app/containers/Web3Alerts/NoWeb3.js
acebusters/ab-web
import React from 'react'; import A from '../../components/A'; import { Wrapper } from './styles'; const NoWeb3Alert = () => ( <Wrapper theme="warning"> <h2>Please install MetaMask</h2> <p> In order to use our app you need to install the <A href="https://metamask.io/" target="_blank">MetaMask Extension...
src/components/Radial.react.js
nVitius/kitematic
import React from 'react'; import classNames from 'classnames'; var Radial = React.createClass({ render: function () { var percentage; if ((this.props.progress !== null && this.props.progress !== undefined) && !this.props.spin && !this.props.error) { percentage = ( <div className="percentage"><...
src/botPage/view/TradeInfoPanel/index.js
aminmarashi/binary-bot
import React, { Component } from 'react'; import { observer as globalObserver } from 'binary-common-utils/lib/observer'; import { translate } from '../../../common/i18n'; import { tradePanelAccount } from '../style'; import Summary from './Summary'; import TradeTable from './TradeTable'; export default class TradeInfo...
src/main.js
awebdev/react-nivasdevelopers
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import AppContainer from './containers/AppContainer' // ======================================================== // Store Instantiation // ======================================================== const initialState...
test/unit/src/common/components/share/t_share.js
canonical-ols/build.snapcraft.io
import React from 'react'; import expect from 'expect'; import { shallow } from 'enzyme'; import { CopyToClipboard } from '../../../../../../src/common/components/share'; describe('<CopyToClipboard />', function() { let wrapper; beforeEach(function() { wrapper = shallow(<CopyToClipboard copyme={'hello'} />, ...
src/svg-icons/action/view-agenda.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewAgenda = (props) => ( <SvgIcon {...props}> <path d="M20 13H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zm0-10H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V4c0-.5...
static/src/containers/Dashboard.js
cas-x/cas-server
/** * @Author: BingWu Yang <detailyang> * @Date: 2016-04-20T23:43:35+08:00 * @Email: detailyang@gmail.com * @Last modified by: detailyang * @Last modified time: 2016-04-21T00:34:05+08:00 * @License: The MIT License (MIT) */ import React from 'react'; import { Nav, Header } from '../components'; import { connect ...
packages/ringcentral-widgets-docs/src/app/pages/Components/SettingsPanel/index.js
ringcentral/ringcentral-js-widget
import React from 'react'; import { parse } from 'react-docgen'; import CodeExample from '../../../components/CodeExample'; import ComponentHeader from '../../../components/ComponentHeader'; import PropTypeDescription from '../../../components/PropTypeDescription'; import Demo from './Demo'; // eslint-disable-next-lin...
src-client/scripts/modal-window.js
iLuggit/iLuggit
import React from 'react' let ModalWindow = React.createClass({ render:function(){ let modalClassName = 'modal-container' if (this.props.modalSettings.isShowing ===false){ modalClassName = 'modal-container is-hidden ' } console.log(this.props); return( <div className...
test/year_dropdown_options_test.js
mitchrosu/react-datepicker
import React from 'react' import YearDropdownOptions from '../src/year_dropdown_options.jsx' import { mount } from 'enzyme' describe('YearDropdownOptions', () => { var yearDropdown, handleChangeResult var mockHandleChange = function (changeInput) { handleChangeResult = changeInput } beforeEach(() => {...
src/app/components/Footer.js
blobor/skipass.site
import React from 'react' import { ActionSearch, ContentSave, ActionInfoOutline } from 'material-ui/svg-icons' import BottomNavigationLink from './BottomNavigationLink' const Footer = () => { return ( <footer className='app__footer'> <nav className='bottom-navigation'> <BottomNavigationLink ...
examples/basic/nested_modals/index.js
springload/react-modal
import React, { Component } from 'react'; import Modal from 'react-modal'; class Item extends Component { constructor(props) { super(props); this.state = { isOpen: false }; } toggleModal = index => event => { console.log("NESTED MODAL ITEM", event); this.setState({ itemNumber: !t...