path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
docs/src/app/pages/components/Checkbox/Page.js
GetAmbassador/react-ions
import React from 'react' import PropsList from 'private/modules/PropsList' import docs from '!!docgen!react-ions/lib/components/Checkbox/Checkbox' import CodeExample from 'private/modules/CodeExample' import ExampleCheckboxDefault from './ExampleCheckboxDefault' import exampleCheckboxDefaultCode from '!raw!./ExampleCh...
components/DashboardTeam.js
turntwogg/final-round
import React from 'react'; import { useTheme } from '@turntwo/react-ui'; import Link from './Link'; import Typography from './Typography'; import FollowButton from './FollowButton'; import Image from './Image'; const DashboardTeam = ({ team, ...rest }) => { const { title, fieldSlug: slug, fieldTeamGame:...
src/components/TableQuerySwitch/index.js
cantonjs/re-admin
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { observer } from 'mobx-react'; import panelsStore from 'stores/panelsStore'; import withStore from 'hocs/withStore'; import localize from 'hocs/localize'; import { Checkbox } from 'antd'; @withStore() @localize('TableQuerySwitch') @o...
client/components/DashboardSection.js
mmazzarolo/numvalidate
/* @flow */ import React from 'react'; import Spinner from './Spinner'; import Button from './Button'; import style from './DashboardSection.css'; type Props = { title: string, subtitle: string, rightElement?: any, rightButtonText?: string, rightButtonType?: string, onRightButtonClick?: () => mixed, load...
packages/react/src/components/organisms/GenTeaser/TeaserSearch/index.js
massgov/mayflower
/** * TeaserSearch module. * @module @massds/mayflower-react/TeaserSearch * @requires module:@massds/mayflower-assets/scss/01-atoms/button-with-icon * @requires module:@massds/mayflower-assets/scss/01-atoms/button-search * @requires module:@massds/mayflower-assets/scss/01-atoms/input-typeahead * @requires module:...
src/Parser/MarksmanshipHunter/Modules/Features/AlwaysBeCasting.js
mwwscott0/WoWAnalyzer
import React from 'react'; import CoreAlwaysBeCasting from 'Parser/Core/Modules/AlwaysBeCasting'; import SPELLS from 'common/SPELLS'; import Icon from 'common/Icon'; import { formatPercentage } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import SpellLink from 'common/Spell...
test/ButtonSpec.js
JimiHFord/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Button from '../src/Button'; describe('Button', function () { it('Should output a button', function () { let instance = ReactTestUtils.renderIntoDocument( <Button> Title </Button> ); assert.equal(...
src/Comment.js
diginatu/nagome-webui
import React, { Component } from 'react'; import {ngm} from './NagomeConn.js'; import CommentList from './CommentList.js'; import DropArea from './DropArea.js'; export default class Comment extends Component { constructor() { super(); this.state = { data: [ //{"no":70,...
src/components/Main.js
pierlo-upitup/polyrhythmical
import React from 'react'; import { Button, Panel} from 'muicss/react'; import WebMidi from 'webmidi'; import Clock from './Clock'; import StepSequencer from './StepSequencer'; const TO_BIND = [ 'handleOnClockTick', 'handleAddSequencer', 'handleDestroySequencer', 'handleOnClockReset', 'onWebMidiDisconnect...
src/components/video_list_item.js
akh000/YoutubeApp
import React from 'react'; const VideoListItem = ({ video, onVideoSelect }) => { const imgUrl = video.snippet.thumbnails.default.url; const title = video.snippet.title; return( <li className='list-group-item' onClick={()=>onVideoSelect(video)} > <div className='video-list media'> <div...
src/App.js
jamesbibby/reactnd_project_mybooks
import React from 'react' import * as BooksAPI from './BooksAPI' import SearchBooks from './SearchBooks' import BookshelfGrid from './BookshelfGrid' import { Route } from 'react-router-dom' import Notifications, { notify } from 'react-notify-toast' import './App.css' class BooksApp extends React.Component { // this w...
src/components/MenuBar.js
cannc4/Siren
import React from 'react'; import { inject, observer } from 'mobx-react'; // import _ from 'lodash' // CSS Imports import '../styles/App.css'; import '../styles/Layout.css'; import '../styles/MenuBar.css'; import '../styles/Help.css'; // import Popup from "reactjs-popup"; @inject('menubarStore', 'pulseSt...
src/parser/warlock/destruction/modules/features/Havoc.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Enemies from 'parser/shared/modules/Enemies'; import Events from 'parser/core/Events'; import SPELLS from 'common/SPELLS'; import { formatThousands, formatNumber, formatPercentage } from 'common/format'; import Statis...
client/DevTools.js
cavnak/throneteki
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; const DevTools = createDevTools( // Monitors are individually adjustable with props. // Consult their repositories to learn about...
src/Routes.js
material-components/material-components-web-catalog
import React from 'react'; import {Route} from 'react-router-dom'; import ButtonCatalog from './ButtonCatalog'; import CardCatalog from './CardCatalog'; import CheckboxCatalog from './CheckboxCatalog'; import ChipsCatalog from './ChipsCatalog'; import DataTableCatalog from './DataTableCatalog'; import DialogCatalog fr...
docs/src/app/components/pages/components/TextField/ExampleCustomize.js
andrejunges/material-ui
import React from 'react'; import TextField from 'material-ui/TextField'; import {orange500, blue500} from 'material-ui/styles/colors'; const styles = { errorStyle: { color: orange500, }, underlineStyle: { borderColor: orange500, }, floatingLabelStyle: { color: orange500, }, floatingLabelFocu...
stories/EditProfileCategory.stories.js
nekuno/client
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { linkTo } from '@storybook/addon-links' import EditProfileCategory from '../src/js/components/ui/EditProfileCategory/EditProfileCategory.js'; storiesOf('EditProfileCategory', module) ...
tests/routes/Home/components/HomeView.spec.js
alexblacksnow/alexblacksnow.github.io
import React from 'react' import { HomeView } from 'routes/Home/components/HomeView' import { render } from 'enzyme' describe('(View) Home', () => { let _component beforeEach(() => { _component = render(<HomeView />) }) it('Renders a welcome message', () => { const welcome = _component.find('h4') ...
node_modules/_rc-calendar@9.0.4@rc-calendar/es/calendar/CalendarHeader.js
ligangwolai/blog
import React from 'react'; import createReactClass from 'create-react-class'; import PropTypes from 'prop-types'; import MonthPanel from '../month/MonthPanel'; import YearPanel from '../year/YearPanel'; import toFragment from 'rc-util/es/Children/mapSelf'; function goMonth(direction) { var next = this.props.value.cl...
packages/cf-component-checkbox/example/basic/component.js
manatarms/cf-ui
import React from 'react'; import { Checkbox, CheckboxGroup } from 'cf-component-checkbox'; class CheckboxComponent extends React.Component { constructor(props) { super(props); this.state = { checkbox1: true, checkbox2: false, checkboxValues: ['option1'] }; this.onCheckboxGroupChang...
src/main.js
nordsoftware/react-starter
/*eslint no-undef: 0*/ import React from 'react'; import { render } from 'react-dom'; import { Router, browserHistory } from 'react-router'; import { Provider } from 'react-redux'; import { syncHistoryWithStore } from 'react-router-redux'; import { buildStore } from './helpers/store'; import getRoutes from './routes'...
examples/pinterest/app.js
fanhc019/react-router
import React from 'react'; import { Router, Route, IndexRoute, Link } from 'react-router'; var PICTURES = [ { id: 0, src: 'http://placekitten.com/601/601' }, { id: 1, src: 'http://placekitten.com/610/610' }, { id: 2, src: 'http://placekitten.com/620/620' } ]; var Modal = React.createClass({ styles: { posi...
server/sonar-web/src/main/js/app/components/nav/global/GlobalNavUser.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact 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...
node_modules/@material-ui/core/es/Table/TableContext.js
pcclarke/civ-techs
import React from 'react'; /** * @ignore - internal component. */ const TableContext = React.createContext(); export default TableContext;
lib/Datepicker/stories/BasicUsage.js
folio-org/stripes-components
/** * Datepicker: Basic Usage */ import React from 'react'; import DatepickerDemo from './DatepickerDemo'; const BasicUsage = () => ( <div> <DatepickerDemo /> </div> ); export default BasicUsage;
docs/app/components/preview/index.js
react-toolbox/react-toolbox
/* eslint-disable no-eval*/ import React from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import { transform } from 'babel-standalone'; import * as ReactToolbox from 'react-toolbox'; import style from './style.css'; const ERROR_TIMEOUT = 500; const Preview = React.createClass({ pr...
src/routes/ui/dropOption/index.js
liufulin90/react-admin
import React from 'react' import { DropOption } from '../../../components' import { Table, Row, Col, Card, message } from 'antd' const DropOptionPage = () => <div className="content-inner"> <Row gutter={32}> <Col lg={8} md={12}> <Card title="默认"> <DropOption menuOptions={[{ key: '1', name: '编辑' }, ...
test/components/Counter.spec.js
Lucassios/simple-video-library-react
import { spy } from 'sinon'; import React from 'react'; import { shallow } from 'enzyme'; import { BrowserRouter as Router } from 'react-router-dom'; import renderer from 'react-test-renderer'; import Counter from '../../app/components/Counter'; function setup() { const actions = { increment: spy(), incremen...
src/CreateGoalPanel1/index.js
DuckyTeam/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import SectionHeaderGeneral from '../SectionHeaderGeneral'; import GoalMenuItem from '../GoalMenuItem'; import Spacer from '../Spacer'; import styles from './styles.css'; import SectionFooterNew from '../SectionFooterNew'; function CreateGoalPanel1(props)...
docs/src/app/components/pages/components/Menu/ExampleSimple.js
lawrence-yu/material-ui
import React from 'react'; import Paper from 'material-ui/Paper'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; const style = { display: 'inline-block', margin: '16px 32px 16px 0', }; const MenuExampleSimple = () => ( <div> <Paper style={style}> <Menu> <Menu...
generators/electron/modules/test/components/Counter.spec.js
sahat/megaboilerplate
/* eslint no-unused-expressions: 0 */ import { expect } from 'chai'; import { spy } from 'sinon'; import React from 'react'; import { renderIntoDocument, scryRenderedDOMComponentsWithTag, findRenderedDOMComponentWithClass, Simulate } from 'react-addons-test-utils'; import Counter from '../../app/components/Coun...
client/node_modules/uu5g03/dist-node/forms/auto-complete.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, ContentMixin} from './../common/common.js'; import {Link, Backdrop} from './../bricks/bricks.js'; import $ from 'jquery'; import './auto-complete.less'; export default React.createClass({ mixins: [ BaseMixin, ElementaryMixin, ContentMixin ...
app/javascript/mastodon/features/ui/components/column.js
imas/mastodon
import React from 'react'; import ColumnHeader from './column_header'; import PropTypes from 'prop-types'; import { debounce } from 'lodash'; import { scrollTop } from '../../../scroll'; import { isMobile } from '../../../is_mobile'; export default class Column extends React.PureComponent { static propTypes = { ...
src/components/hero_stats/HeroRowPro.js
byronsha/open_dota
import React from 'react' import {TableRow, TableRowColumn} from 'material-ui/Table' import { blueA200, greenA700, redA700 } from 'material-ui/styles/colors'; import CountBar from '../CountBar' import PercentageBar from '../PercentageBar' const BASE_URL = 'https://api.opendota.com' const styles = { column8: {...
src/routes/Home/components/HomeView.js
loaclhostjason/react-redux-admin
import React from 'react' import DuckImage from '../assets/Duck.jpg' import './HomeView.scss' export const HomeView = () => ( <div> <h4>Welcome!</h4> <img alt='This is a duck, because Redux!' className='duck' src={DuckImage} /> </div> ) export default HomeView
src/components/upload/picture-controls.js
xutou12/draft-richer
import React from 'react'; import itis from 'whatitis'; import Upload from 'rc-upload'; import PropTypes from 'prop-types'; import { AtomicBlockUtils, EditorState } from 'draft-js'; import Icon from '../icons'; import Button from '../button'; import { prefixCls } from '../../config'; class PictureControls extends R...
assets/javascripts/kitten/components/layout/dashboard-layout/test.js
KissKissBankBank/kitten
import React from 'react' import renderer from 'react-test-renderer' import 'jest-styled-components' import '../../../config/__mocks__/matchMediaMock.js' import { DashboardLayout } from './index' describe('<DashboardLayout />', () => { let component describe('with default props', () => { beforeEach(() => { ...
jenkins-design-language/src/js/components/material-ui/svg-icons/action/trending-flat.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionTrendingFlat = (props) => ( <SvgIcon {...props}> <path d="M22 12l-4-4v3H3v2h15v3z"/> </SvgIcon> ); ActionTrendingFlat.displayName = 'ActionTrendingFlat'; ActionTrendingFlat.muiName = 'SvgIcon'; export default ActionTrendingFlat;
public/javascripts/container/mainContainer/app.js
MarvenChi/React_Redux_Express
import React from 'react'; import './app.css'; import {connect} from 'react-redux' class App extends React.Component{ constructor(props){ super(props); this.state={ } } componentWillMount(){ console.log('yoyouyoyoyou',this.props.store); } render(){ return...
client/test/components/CreateDocumentModal.js
andela-ksolomon/DocumentManagementSys
import React from 'react';
components/common/Thumbnail.js
slidewiki/slidewiki-platform
import React from 'react'; /* Read https://slidewiki.atlassian.net/wiki/display/SWIK/How+To+Use+Slide+Thumbnail to know the details */ class Thumbnail extends React.Component { render() { const altText = this.props.alt === undefined ? '' : this.props.alt; return ( <span> <im...
client/components/menu/dropdown.js
ZeHiro/kresus
import React from 'react'; import { NavLink } from 'react-router-dom'; import URL from '../../urls'; import { translate as $t } from '../../helpers'; import DisplayIf from '../ui/display-if'; class DropdownContent extends React.PureComponent { componentDidMount() { document.addEventListener('keydown', th...
src/js/components/Object.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import CSSClassnames from '../utils/CSSClassnames'; const CLASS_ROOT = CSSClassnames.OBJECT; const LIST_ITEM = CSSClassnames.LIST_ITEM; export default class GrommetObject...
node_modules/react-bootstrap/es/SplitToggle.js
ivanhristov92/bookingCalendar
import _extends from 'babel-runtime/helpers/extends'; 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 DropdownToggle fr...
src/containers/DevToolsWindow.js
hoop33/warnerxmas
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; export default createDevTools( <LogMonitor /> );
src/components/basic/Span.js
casesandberg/react-mark
'use strict'; import React from 'react'; export class SPAN extends React.Component { render() { return <span>{ this.props.children }</span>; } } export default SPAN;
app/javascript/mastodon/components/relative_timestamp.js
tri-star/mastodon
import React from 'react'; import { injectIntl, defineMessages } from 'react-intl'; import PropTypes from 'prop-types'; const messages = defineMessages({ today: { id: 'relative_time.today', defaultMessage: 'today' }, just_now: { id: 'relative_time.just_now', defaultMessage: 'now' }, seconds: { id: 'relative_time...
test4/src/containers/UserDetailApp/index.js
fengnovo/webpack-react
import React from 'react' class UserDetailApp extends React.Component { constructor (props) { super (props) let {userId} = this.props.routeParams; console.log(userId); } render (){ return ( <div>UserDetailApp</div> ) } } export default UserDetailApp
src/components/forms/StartEnd.js
muiradams/plantogo
import _ from 'lodash'; import React, { Component } from 'react'; import moment from 'moment'; import Toggle from 'material-ui/Toggle'; import { TextField, DatePicker, TimePicker } from 'redux-form-material-ui'; import { Field } from 'redux-form'; import { Row, Column } from 'react-cellblock'; // Validation function f...
app/components/common/button/Button.js
rvpanoz/luna
import React from 'react'; import { withStyles } from '@material-ui/core/styles'; import Button from '@material-ui/core/Button'; import PropTypes, { string, bool } from 'prop-types'; import cn from 'classnames'; import styles from './styles'; const AppButton = ({ classes, color, round, border, children, f...
test/LabelSpec.js
pandoraui/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Label from '../src/Label'; describe('Label', function () { it('Should output a label with message', function () { let instance = ReactTestUtils.renderIntoDocument( <Label> <strong>Message</strong> </Labe...
entry_types/scrolled/package/spec/frontend/useEventContextData-spec.js
codevise/pageflow
import React from 'react'; import {useEventContextData, EventContextDataProvider} from 'frontend/useEventContextData'; import {renderHookInEntry} from 'support'; describe('useEventContextData', () => { it('returns an object with current section and chapter index', () => { const {result} = renderHookInEntry((pr...
src/Parser/Warlock/Affliction/Modules/Items/Legendaries/StretensSleeplessShackles.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Enemies from 'Parser/Core/Modules/Enemies'; import Combatants from 'Parser/Core/Modules/Combatants'; import calculateEffectiveDamage from 'Parser/Core/calculateEffectiveDamage'; import ITEMS from 'common/ITEMS'; import ItemDamageDone from...
src/CarouselItem.js
albertojacini/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import TransitionEvents from './utils/TransitionEvents'; const CarouselItem = React.createClass({ propTypes: { direction: React.PropTypes.oneOf(['prev', 'next']), onAnimateOutEnd: React.PropTypes.func, active: React.PropTypes.bool, anima...
src/components/video-list-item.js
romashka50/ReactReduxModern
import React from 'react'; const VideoItem = ({ video, onSelectVideo }) => { const { snippet: { thumbnails: { default: { url } }, title, } } = video; return ( <li className="list-group-item" onClick={() => {onSelectVideo(video)}} > <div className="vide...
packages/react/src/components/FieldsetArray.js
wq/wq.app
import React from 'react'; import { useComponents } from '../hooks'; import PropTypes from 'prop-types'; export default function FieldsetArray({ label, children, addRow }) { const { View, Button } = useComponents(); return ( <View> {children} {addRow && ( <Button...
frontend/components/Behavioral.js
ParroApp/parro
import React from 'react'; import Navbar from './Navbar'; import TypeWriter from 'react-typewriter'; import Timer from './Timer'; import { captureUserMedia, takePhoto, uploadImage, uploadAudio, mergeAndAnalyze } from './AppUtils'; import RecordRTC from 'recordrtc'; const StereoAudioRecorder = RecordRTC.StereoAudioReco...
index.android.js
Abrax20/snap-react
// @flow import React, { Component } from 'react'; import { AppRegistry } from 'react-native'; import App from './src/App.js'; export default class reactSnap extends Component { render() { return ( <App /> ); } } AppRegistry.registerComponent('reactSnap', () => reactSnap);
client/index.js
vronic/weather-spa
import { Router, Route, browserHistory } from 'react-router' import { Provider } from 'react-redux' import { render } from 'react-dom' import React from 'react' import App from './containers/App' import configure from './store' const store = configure() render( <Provider store={store}> <Router history={browse...
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js
cybrespace/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components'; import Overlay from 'react-overlays/lib/Overlay'; import classNames from 'classnames'; import ImmutablePropTypes from ...
node_modules/react-bootstrap/es/TabContainer.js
mohammed52/door-quote-automator
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'r...
jenkins-design-language/src/js/components/material-ui/svg-icons/navigation/chevron-left.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const NavigationChevronLeft = (props) => ( <SvgIcon {...props}> <path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/> </SvgIcon> ); NavigationChevronLeft.displayName = 'NavigationChevronLeft'; NavigationChevronLeft.muiName = 'SvgIcon'; export...
_experiment/react-fetch-github-repo/v2-fetch-in-react-didmount/src/App.js
David-JC/react-testing
import React from 'react'; import ReactDOM from 'react-dom'; class FetchDemo extends React.Component { constructor(props) { super(props); // la parola 'super' è usata per chiamare funzioni dal parente di un oggetto // inizializzo lo state this.state = { repos: [] // setto l'array dei repo come vuoto }; }...
src/svg-icons/av/music-video.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvMusicVideo = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.0...
src/containers/tests/Species.spec.js
adrianha/swapii
import React from 'react'; import { shallow } from 'enzyme'; import { expect } from 'chai'; import { Species } from '../Species'; describe('<Species />', () => { it('should have a class .species', () => { const props = { specieses: { isFetching: false, detail: { name: 'Luke Skywal...
app/javascript/flavours/glitch/features/following/index.js
vahnj/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from 'flavours/glitch/components/loading_indicator'; import { fetchAccount, fetchFollowing, expandFollowing, } from 'flavours/gl...
src/ReturnButton.js
PSilling/StudentHubUIDevelopment
import React, { Component } from 'react'; import Button from 'react-toolbox/lib/button/Button.js'; /** * Renders the return to university list Button. * @param returnCallback() defines the return function to call onClick */ class ReturnButton extends Component { render() { return( <span> ...
src/icons/SettingsBackupRestoreIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class SettingsBackupRestoreIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M28 24c0-2.21-1.79-4-4-4s-4 1.79-4 4 1.79 4 4 4 4-1.79 4-4zM24 6C14.06 6 6 14.06 6 24H0l8 8 ...
src/tabs/Tab.js
kosiakMD/react-native-elements
/*eslint-disable no-console */ import React from 'react'; import TabNavigator from 'react-native-tab-navigator'; const Tab = props => { console.warn( `Warning: Tab has been deprecated and will be removed in a future version of React Native Elements. For a complete navigation solution that includes Tabs as well a...
src/components/pc_index.js
nanhaishiyounan/css3
import React from 'react'; import PCHeader from './pc_header'; import PCContainer from './pc_container'; import PCNewsBlock from './pc_news_block'; import PCNewsDetails from './pc_news_details'; import PCCSSHTML from './pc_csshtml'; import { Router, Route, Link, hashHistory} from 'react-router'; export default class...
pages/less.js
elliotec/LnL
import React from 'react' import './example.less' import Helmet from 'react-helmet' import { config } from 'config' export default class Less extends React.Component { render () { return ( <div> <Helmet title={`${config.siteTitle} | Hi lessy friends`} /> <h1 cla...
src/svg-icons/av/videocam-off.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVideocamOff = (props) => ( <SvgIcon {...props}> <path d="M21 6.5l-4 4V7c0-.55-.45-1-1-1H9.82L21 17.18V6.5zM3.27 2L2 3.27 4.73 6H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.21 0 .39-.08.54-.18L19.73 21 21 19.73 3...
src/views/UserManage/index.js
halo-design/halo-optimus
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { Row, Col } from 'antd' import BranchTree from 'COMPONENT/BranchTree' import InputSearch from 'COMPONENT/InputSearch' import UserQuery from './UserQuery' import UserTable from './UserTable' import { initBr...
src/routes/about/index.js
ChrisWC/MaterL
import React from 'react'; import About from './About'; import fetch from '../../core/fetch'; export default { path: '/about', async action() { return <About />; }, };
src/containers/Switcher/index.js
LeoVitale/express-beer
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import universal from 'react-universal-component'; const UniversalComponent = universal(({ page }) => import(`../${page}`), { minDelay: 500, loading: () => ( <div> <div /> </div> ), error: () => ...
src/routes/error/ErrorPage.js
takahashik/todo-app
/** * 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 PropTypes from 'prop-...
src/components/Dashboard/sendButton.js
ChronoBank/ChronoWAVES
import log from 'loglevel'; import React from 'react'; import FlatButton from 'material-ui/FlatButton'; import Popover from 'material-ui/Popover'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; import {SendIcon} from '../Icons'; import {Link} from 'react-router'; const styles = { ...
node_modules/semantic-ui-react/dist/es/elements/Reveal/Reveal.js
SuperUncleCat/ServerMonitoring
import _extends from 'babel-runtime/helpers/extends'; import cx from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { customPropTypes, getElementType, getUnhandledProps, META, useKeyOnly } from '../../lib'; import RevealContent from './RevealContent'; /** * A reveal displays addi...
packages/benchmarks/src/implementations/emotion/Dot.js
necolas/react-native-web
import React from 'react'; import { css } from '@emotion/css'; const Dot = ({ size, x, y, children, color }) => ( <div className={css([ styles.root, { borderBottomColor: color, borderRightWidth: `${size / 2}px`, borderBottomWidth: `${size / 2}px`, borderLeftWidth: `${s...
app/javascript/mastodon/features/direct_timeline/index.js
5thfloor/ichiji-social
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import { mountConversations, unmountConversations, expandConversations } from '../../actions/conversations'; impo...
lib/ui/src/containers/nav.js
storybooks/react-storybook
import { DOCS_MODE } from 'global'; import React from 'react'; import memoize from 'memoizerific'; import { Badge } from '@storybook/components'; import { Consumer } from '@storybook/api'; import { shortcutToHumanString } from '../libs/shortcut'; import ListItemIcon from '../components/sidebar/ListItemIcon'; import ...
node_modules/react-scripts/template/src/index.js
jlbooker/shop-hours-demo
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/components/AdminPage.js
vladpolonskiy/news-feed-react-redux
import React from 'react'; export default class AdminPage extends React.Component { render() { return ( <div> <div className="app-header"> <h1>Admin Page</h1> </div> <h3>Attention</h3> <p>It's just test page to show role capabilities.</p> </div> ); } }
dist/lib/carbon-fields/assets/js/containers/components/container/tabs.js
ArtFever911/statrer-kit
/** * The external dependencies. */ import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; /** * The internal dependencies. */ import ContainerBase from 'containers/components/container/base'; /** * Render the tabs of the container. * * @param {Object} props * @par...
js/webui/src/app.js
hyperblast/beefweb
import React from 'react' import { PanelHeader } from './elements' import ControlBar from './control_bar' import PlaylistSwitcher from './playlist_switcher' import PlaylistMenu from './playlist_menu' import PlaylistContent from './playlist_content' import FileBrowser from './file_browser' import FileBrowserHeader from ...
test/specs/lib/AutoControlledComponent-test.js
shengnian/shengnian-ui-react
/* eslint-disable no-console */ import faker from 'faker' import _ from 'lodash' import React from 'react' import { AutoControlledComponent } from 'src/lib' import { consoleUtil } from 'test/utils' let TestClass /* eslint-disable */ const createTestClass = (options = {}) => class Test extends AutoControlledComponent...
src/esm/components/form/field/examples.js
KissKissBankBank/kitten
import React from 'react'; import { Field } from '.'; var FieldBase = function FieldBase(_ref) { var tooltip = _ref.tooltip, tooltipId = _ref.tooltipId, tooltipProps = _ref.tooltipProps, label = _ref.label, id = _ref.id, error = _ref.error, errorMessage = _ref.errorMessage, ...
pootle/static/js/auth/index.js
claudep/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import $ from 'jquery'; import assign from 'object-assign'...
src/js/components/icons/base/Dashboard.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/routes/app/routes/ui/routes/testimonials/components/Testimonials.js
ahthamrin/kbri-admin2
import React from 'react'; import classnames from 'classnames'; import QueueAnim from 'rc-queue-anim'; const testimonials = [ { content: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Eaque ratione consequuntur ut placeat.', avatar: 'assets/images-demo/avatars/1.jpg', name: 'Jason Bourne', ...
lms/static/js/student_account/components/spec/PasswordResetConfirmation_spec.js
gsehub/edx-platform
/* globals setFixtures */ import ReactDOM from 'react-dom'; import React from 'react'; import sinon from 'sinon'; // eslint-disable-line import/no-extraneous-dependencies import { PasswordResetConfirmation } from '../PasswordResetConfirmation'; describe('PasswordResetConfirmation', () => { beforeEach(() => { se...
client/src/pages/software-resources-for-nonprofits.js
HKuz/FreeCodeCamp
import React from 'react'; import { Grid } from '@freecodecamp/react-bootstrap'; import Helmet from 'react-helmet'; import Layout from '../components/layouts/Default'; import FullWidthRow from '../components/helpers/FullWidthRow'; import { Spacer } from '../components/helpers'; function SoftwareResourcesForNonProfits...
js-old/src/modals/CreateWallet/createWallet.spec.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...
app/containers/CarsPage/index.js
ddobby94/szakdoge_admin
import React from 'react'; import Helmet from 'react-helmet'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import HeaderLink from 'components/Header/HeaderLink'; import { makeSelectLoading, makeSelectError, allCars } from '../App/select...
src/components/Grid/Grid.js
RetroGameNight/rgn-ui
/* * Retro Game Night * Copyright (c) 2015 Sasha Fahrenkopf, Cameron White * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import './Grid.less' import React from 'react' import Radium from 'radium' @Radium export default class G...
frontend/src/components/eois/filters/eoiUnFilter.js
unicef/un-partner-portal
import R from 'ramda'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { reduxForm } from 'redux-form'; import { connect } from 'react-redux'; import { browserHistory as history, withRouter } from 'react-router'; import { withStyles } from 'material-ui/styles'; import Grid from 'mat...
src/components/services.js
barrierandco/barrierandco
import React from 'react' import styled from 'styled-components' import frontend from '../assets/images/service-frontend.svg' import management from '../assets/images/service-management.svg' import uxui from '../assets/images/service-uxui.svg' const ServicesCard = styled.div` background: white; border-radius: ${p...
test/WellSpec.js
cgvarela/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Well from '../src/Well'; describe('Well', () => { it('Should output a well with content', () => { let instance = ReactTestUtils.renderIntoDocument( <Well> <strong>Content</strong> </Well> ); asser...
src/svg-icons/action/zoom-in.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionZoomIn = (props) => ( <SvgIcon {...props}> <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 1...
Front-End/components/explorercell.component.js
brandonrninefive/prIDE
import React from 'react'; import ReactDOM from 'react-dom'; import {Cell} from 'fixed-data-table'; class ExplorerCell extends React.Component { constructor(props){ super(props); this.state = { }; this.handleClick = this.handleClick.bind(this); } handleClick(){ if(this.props.contents.charAt(this.props.conte...