path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
examples/builder/FormBuilder.js
nikitka/react-redux-form
import React from 'react'; import { Field, Control, Form, actions, track, } from 'react-redux-form'; import { connect } from 'react-redux'; import uniqueId from 'lodash/uniqueId'; import get from 'lodash/get'; const controlMap = { text: <input type="text" /> }; const createField = () => ({ id: uniqueId(...
example/TouchExample/index.android.js
Raizlabs/react-native-touch-sensor
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, View, Text, Button } from 'react-native'; import Touch from 'react-native-touch-sensor' export default class TouchExample extends Component { ...
app/components/LoadingIndicator/index.js
andresol/homepage
import React from 'react'; import Circle from './Circle'; import Wrapper from './Wrapper'; const LoadingIndicator = () => ( <Wrapper> <Circle /> <Circle rotate={30} delay={-1.1} /> <Circle rotate={60} delay={-1} /> <Circle rotate={90} delay={-0.9} /> <Circle rotate={120} delay={-0.8} /> <Cir...
src/entypo/AddUser.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--AddUser'; let EntypoAddUser = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M15.989,19.129C16,17,13.803,15.74,11.672,14.822c-2.123-0.914-2.801-1.684-2.801-3.334c0-0.989,0.648-...
src/MenuItem.js
insionng/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import SafeAnchor from './SafeAnchor'; const MenuItem = React.createClass({ propTypes: { header: React.PropTypes.bool, divider: React.PropTypes.bool, href: React.PropTypes.string, title: React.PropTypes.string, target: ...
src/components/NavBar.js
kbeathanabhotla/react-safari
import React from 'react'; class NavBar extends React.Component { render() { return ( <nav className="navbar navbar-default"> <div className="container-fluid"> <div className="navbar-header"> <button type="button" className="navbar-toggle collapsed" data-toggle="collapse" dat...
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...
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) ...
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: '编辑' }, ...
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...
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...
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...
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...
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 ...
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', ...
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...
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...
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...
es6/RoutingContext.js
fis-components/react-router
'use strict'; import React from 'react'; import RouterContext from './RouterContext'; import warning from './routerWarning'; var RoutingContext = React.createClass({ displayName: 'RoutingContext', componentWillMount: function componentWillMount() { process.env.NODE_ENV !== 'production' ? warning(false, '`Rou...
src/svg-icons/device/signal-cellular-4-bar.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellular4Bar = (props) => ( <SvgIcon {...props}> <path d="M2 22h20V2z"/> </SvgIcon> ); DeviceSignalCellular4Bar = pure(DeviceSignalCellular4Bar); DeviceSignalCellular4Bar.displayName = 'DeviceSign...
src/components/BigDrink/BigDrink.js
hrnik/roofbar
import React from 'react' import PropTypes from 'prop-types' import Delay from 'react-delay' import Button from 'components/Button' import { DRINK_STATUS_AVAILABLE } from 'store/bar' import Loader from 'components/Loader' import classNames from 'classnames' import './BigDrink.scss' const BigDrink = ({ name, drink...
wegas-app/src/main/node/wegas-react-form/src/Script/modules/Condition.js
Heigvd/Wegas
import PropTypes from 'prop-types'; import React from 'react'; import { types } from 'recast'; import Impact, { ErrorCatcher } from './Impact'; import { methodDescriptor, extractMethod } from './method'; import { methodDescriptor as globalMethodDescriptor } from './globalMethod'; import ConditionOperator from './Condit...
src/containers/EventsPage/EventsPage.js
ReactPoland/react-community
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import _partition from 'lodash/partition'; import { loadEvents, addEvent, editEvent, removeEvent } from 'redux/modules/eventsModule'; // COMPONENTS import { Map } from ...
app/containers/Store/index.js
monkeyzealer/Webstore-FrontEnd
/* * * Store * */ import React from 'react'; import Helmet from 'react-helmet'; import {Link} from 'react-router'; import Avatar from 'material-ui/Avatar'; import FileFolder from 'material-ui/svg-icons/file/folder'; import FontIcon from 'material-ui/FontIcon'; import List from 'material-ui/List/List'; impo...