path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/Ratio.js
tomek-f/tomekf
import React, { Component } from 'react'; import ratio from 'cmnjs/number/ratio'; import styles from './Ratio.module.scss'; class Ratio extends Component { state = { a: 10, b: 20, c: 5, x: 10, }; onChange = ({ target: { name, value } }) => { value = parseInt(value, 10); if (Number.isNa...
src/route/notification/promotion-step2.js
simors/yjbAdmin
import React from 'react'; import {connect} from 'react-redux'; import {Row, Col, Icon, Button} from 'antd'; import {action} from './redux'; import Result from '../../component/Result'; class System extends React.Component { constructor(props) { super(props); } onClick = () => { this.props.updateStep({c...
js/Nux/ExperienceNuxApp.js
jolicloud/exponent
/** * Copyright 2015-present 650 Industries. All rights reserved. * * @providesModule ExperienceNuxApp */ 'use strict'; import React from 'react'; import NuxContextualMenuOverlay from 'NuxContextualMenuOverlay'; export default class ExperienceNuxApp extends React.Component { render() { return ( <NuxC...
src/svg-icons/notification/network-locked.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationNetworkLocked = (props) => ( <SvgIcon {...props}> <path d="M19.5 10c.17 0 .33.03.5.05V1L1 20h13v-3c0-.89.39-1.68 1-2.23v-.27c0-2.48 2.02-4.5 4.5-4.5zm2.5 6v-1.5c0-1.38-1.12-2.5-2.5-2.5S17 13.12 17 1...
src/components/menu_bar.js
tszyszko1/Epicodezadanie
import React from 'react'; import { Link } from 'react-router-dom'; import AppBar from 'material-ui/AppBar'; import IconMenu from 'material-ui/IconMenu'; import IconButton from 'material-ui/IconButton'; import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert'; import MenuItem from 'material-ui/MenuItem';...
src/stories/Button.js
StormBlade97/BaeCountdown
import React from 'react'; const buttonStyles = { border: '1px solid #eee', borderRadius: 3, backgroundColor: '#FFFFFF', cursor: 'pointer', fontSize: 15, padding: '3px 10px', margin: 10, }; const Button = ({ children, onClick }) => ( <button style={buttonStyles} onClick={onClick} > {chil...
src/Table/TableHeader.js
rscnt/material-ui
import React from 'react'; import Checkbox from '../Checkbox'; import TableHeaderColumn from './TableHeaderColumn'; function getStyles(props, context) { const {tableHeader} = context.muiTheme; return { root: { borderBottom: `1px solid ${tableHeader.borderColor}`, }, }; } class TableHeader extends...
lib/components/MapPolyline.js
j0ergo/react-native-maps
import PropTypes from 'prop-types'; import React from 'react'; import { ViewPropTypes, } from 'react-native'; import decorateMapComponent, { USES_DEFAULT_IMPLEMENTATION, SUPPORTED, } from './decorateMapComponent'; const propTypes = { ...ViewPropTypes, /** * An array of coordinates to describe the polygon...
reloby-app-client/src/components/AppliedRoute.js
hwclass/reloby
import React from 'react'; import { Route } from 'react-router-dom'; export default ({ component: C, props: cProps, ...rest }) => ( <Route {...rest} render={ props => <C {...props} {...cProps} /> } /> );
app/main.js
ellheat/devtalk-testing-exercise
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
docs/app/Examples/collections/Table/Variations/TableExampleInvertedColors.js
clemensw/stardust
import React from 'react' import { Table } from 'semantic-ui-react' const colors = [ 'red', 'orange', 'yellow', 'olive', 'green', 'teal', 'blue', 'violet', 'purple', 'pink', 'brown', 'grey', 'black', ] const TableExampleInvertedColors = () => ( <div> {colors.map(color => ( <Table color={color} key={colo...
test/helpers/fullRenderHelper.js
abbr/ShowPreper
import { mount } from 'enzyme' import App from 'components/app' import Impress from 'components/show/impress' import React from 'react' const AppMap = { App, Impress } let appWrapper export default function(appNm){ let TheApp = AppMap[appNm] appWrapper && appWrapper.unmount() appWrapper = mount(<TheApp />, { ...
src/svg-icons/device/battery-std.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryStd = (props) => ( <SvgIcon {...props}> <path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4z"/> </SvgIcon> ); D...
src/svg-icons/navigation/fullscreen-exit.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationFullscreenExit = (props) => ( <SvgIcon {...props}> <path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/> </SvgIcon> ); NavigationFullscreenExit = pure(NavigationF...
actor-apps/app-web/src/app/components/activity/UserProfileContactInfo.react.js
greatdinosaur/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class UserProfileContactInfo extends React.Component { static propTypes = { phones: React.PropTypes.arr...
examples/forms-bootstrap/src/components/dialogs-create-wizard-generic/Hook.js
lore/lore-forms
import React from 'react'; import createReactClass from 'create-react-class'; import config from './config'; export default createReactClass({ displayName: 'Hook', render: function() { return ( <div style={{ padding: '20px' }}> <button className="btn btn-primary" onClick={() ...
src/components/TextRotator.js
dkozar/react-data-menu
import React, { Component } from 'react'; import WrappyText from 'react-wrappy-text'; const texts = [ 'This menu is data driven (hierarchy is not hardcoded).', 'Open the drop-down menu on top.', 'Check out the bottom menu.', 'Right-click the application background for context menu.', ...
app/edit/index.js
hukaibaihu/dogsay
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { StyleSheet, Text, View } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; export default class Edit extends Component { constructor(props){ ...
client/src/app/app.js
DukeNLIDB/NLIDB
import React, { Component } from 'react'; import styled from 'styled-components'; import Form from '../common/form'; import SearchBar from './components/search-bar'; import buttonStyle from '../styles/button'; const Wrapper = styled.div` max-width: 1200px; margin: auto; `; const Title = styled.h1` text-align: c...
src/index.js
chrisrzhou/chris-and-monika
import React from 'react'; import {render} from 'react-dom'; import App from './components/app'; render( <App />, document.getElementById('root'), );
src/pages/chart/ECharts/ChartWithEventComponent.js
zuiidea/antd-admin
import React from 'react' import ReactEcharts from 'echarts-for-react' const ChartWithEventComponent = () => { const onChartReady = echart => { /* eslint-disable */ console.log('echart is ready', echart) } const onChartLegendselectchanged = (param, echart) => { console.log(param, echart) } const ...
src/helpers/component-config.js
express-labs/pure-react-carousel
/* eslint {'import/no-named-as-default': 0, 'import/no-named-as-default-member': 0} */ import React from 'react'; import ButtonBack from '../ButtonBack/ButtonBack'; import ButtonFirst from '../ButtonFirst/ButtonFirst'; import ButtonLast from '../ButtonLast/ButtonLast'; import ButtonNext from '../ButtonNext/ButtonNext'...
src/svg-icons/device/battery-alert.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryAlert = (props) => ( <SvgIcon {...props}> <path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4zM13 18h-2v-2h2v2zm0...
src/components/MultiLine.js
linxlad/tracksy-client
import React from 'react'; export const MultiLine = (text) => { return ( text.split('<br />').map((item, key) => { return <span key={key}>{item.trim()}<br/></span>; }) ); }; export default MultiLine;
entry_types/scrolled/package/src/frontend/AudioPlayer/AudioStructuredData.js
tf/pageflow
import React from 'react'; import {ensureProtocol} from '../utils/urls'; import {formatTimeDuration} from '../utils/iso8601'; import {useEntryMetadata} from '../../entryState'; import {StructuredData} from '../StructuredData'; export function AudioStructuredData({file}) { const entryMedadata = useEntryMetadata(); ...
modules/gui/src/widget/widget.js
openforis/sepal
import {Layout} from 'widget/layout' import {compose} from 'compose' import Label from 'widget/label' import PropTypes from 'prop-types' import React from 'react' import styles from './widget.module.css' import withForwardedRef from 'ref' export class _Widget extends React.Component { render() { const {for...
client/src/javascript/components/modals/torrent-details-modal/TorrentPeers.js
jfurrow/flood
import {FormattedMessage} from 'react-intl'; import React from 'react'; import Badge from '../../general/Badge'; import Size from '../../general/Size'; import Checkmark from '../../icons/Checkmark'; const checkmark = <Checkmark />; export default class TorrentPeers extends React.Component { constructor() { sup...
src/routes.js
yomolify/cc_material
import React from 'react'; import {IndexRoute, Route} from 'react-router'; import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth'; import { App, Home, Results, Widgets, About, Login, LoginSuccess, Survey, NotFound, } from 'containers'; export default (stor...
examples/async/index.js
dsimmons/redux
import 'babel-core/polyfill'; import React from 'react'; import Root from './containers/Root'; React.render( <Root />, document.getElementById('root') );
tests/lib/rules/vars-on-top.js
DavidAnson/eslint
/** * @fileoverview Tests for vars-on-top rule. * @author Danny Fritz * @author Gyandeep Singh */ "use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const rule = require(".....
src/components/root.js
polovi/react-baobab
import React from 'react' import {getDisplayName} from '../utils' import PropTypes from '../types' export default function root(tree) { return (Component) => { class ComposedComponent extends React.Component { static displayName = `BaobabRoot(${getDisplayName(Component)})`; static childContextTypes ...
admin/src/components/ListColumnsForm.js
lojack/keystone
import classnames from 'classnames'; import React from 'react'; import Transition from 'react-addons-css-transition-group'; var CurrentListStore = require('../stores/CurrentListStore'); var Popout = require('./Popout'); var PopoutList = require('./PopoutList'); var { Button, Checkbox, InputGroup, SegmentedControl } = ...
example/containers/LoggedIn.js
johanneslumpe/redux-history-transitions
import React from 'react'; const LoggedInContainer = () => ( <div> You are logged in, yay! :) </div> ); export default LoggedInContainer;
src/MenuItem.js
sheep902/react-bootstrap
import React from 'react'; import classnames from 'classnames'; import CustomPropTypes from './utils/CustomPropTypes'; import SafeAnchor from './SafeAnchor'; export default class MenuItem extends React.Component { constructor(props) { super(props); this.handleClick = this.handleClick.bind(this); } hand...
packages/babel-plugin-transform-react-constant-elements/test/fixtures/constant-elements/compound-assignment/actual.js
claudiopro/babel
import React from 'react'; import Loader from 'loader'; const errorComesHere = () => <Loader className="full-height"/>, thisWorksFine = () => <Loader className="p-y-5"/>;
src/components/video_detail.js
hr2204/react_apps
import React from 'react'; const VideoDetail = ({video}) => { if (!video){ return <div>Loading...</div> } const videoId = video.id.videoId; const url = `https://www.youtube.com/embed/${videoId}`; return ( <div className="video-detail col-md-8"> <div className="embed-res...
stories/MatchingBars.stories.js
nekuno/client
import React from 'react'; import { storiesOf } from '@storybook/react'; import MatchingBars from '../src/js/components/ui/MatchingBars/MatchingBars.js'; storiesOf('MatchingBars', module) .add('condensed', () => ( <MatchingBars similarity={0.15} matching={0.30} condensed={true} /> )) .add('expanded...
src/svg-icons/image/filter-3.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter3 = (props) => ( <SvgIcon {...props}> <path d="M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-1.5c0-.83-.67-1.5-1...
app/components/DateRangeInput/index.js
Ennovar/clock_it
/** * * DateRangeInput * */ import React from 'react'; import styled from 'styled-components'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; const DatePicker = styled.div` margin-bottom: 8px; margin-top: 8px; `; const Picker = styled.input` height: 29px; margin-left: 8px; ...
website/src/PageWithSidebar.js
half-shell/react-navigation
import React, { Component } from 'react'; import Link from "./Link"; import { NavigationActions, addNavigationHelpers } from 'react-navigation'; const LinkableLi = Link.Linkable(props => <li {...props} />); function getConfig(router, state, action, configName) { if (action) { state = router.getStateForAction(...
src/svg-icons/image/details.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageDetails = (props) => ( <SvgIcon {...props}> <path d="M3 4l9 16 9-16H3zm3.38 2h11.25L12 16 6.38 6z"/> </SvgIcon> ); ImageDetails = pure(ImageDetails); ImageDetails.displayName = 'ImageDetails'; export de...
libs/pureComponent/index.js
eleme/element-react
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; export default class PureComponent extends React.PureComponent { classNames(...args) { return classnames(args); } className(...args) { const { className } = this.props; return this.classNames.apply(th...
src/svg-icons/image/crop-rotate.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropRotate = (props) => ( <SvgIcon {...props}> <path d="M7.47 21.49C4.2 19.93 1.86 16.76 1.5 13H0c.51 6.16 5.66 11 11.95 11 .23 0 .44-.02.66-.03L8.8 20.15l-1.33 1.34zM12.05 0c-.23 0-.44.02-.66.04l3.81 3.81...
src/app.js
jonatassaraiva/learn-react-native-manager
import React, { Component } from 'react'; import { View } from 'react-native'; import { Provider } from 'react-redux'; import firebase from 'firebase'; import { firebaseSetting } from '../settings'; import store from './store'; import Router from './router'; class App extends Component { constructor(props) { s...
src/components/Header/Header.js
blackshade91/daf-dataportal
import React, { Component } from 'react'; import { Dropdown, DropdownMenu, DropdownItem } from 'reactstrap'; import PropTypes from 'prop-types' import { Redirect } from 'react-router' import { Link } from 'react-router-dom'; import { connect } from 'react-redux' import { loadDatasets, unloadDatasets, datasetDetai...
pages/about.js
cable729/react-blog
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; export default class extends Component { render() { return ( <div> <h1>About Us</h1> <p>Coming s...
src/components/ActivityListMembers/ActivityListMembersKick.js
nolawi/champs-dialog-sg
/** * Copyright 2017 dialog LLC <info@dlg.im> * @flow */ import React from 'react'; import { Text } from '@dlghq/react-l10n'; import Spinner from '../Spinner/Spinner'; import Tooltip from '../Tooltip/Tooltip'; import Icon from '../Icon/Icon'; import styles from './ActivityListMembers.css'; import errorToString from...
src/js/components/ui/PasswordInput.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import shouldPureComponentUpdate from 'react-pure-render/function'; export default class PasswordInput extends Component { static propTypes = { placeholder: PropTypes.string.isRequired }; shouldComponentUpdate = shouldP...
src/modules/referenceWorks/components/ReferenceWorkDetail/ReferenceWorkDetail.js
CtrHellenicStudies/Commentary
import React from 'react'; import PropTypes from 'prop-types'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; // components import BackgroundImageHolder from '../../../shared/components/BackgroundImageHolder'; import CommentsRecent from '.....
src/svg-icons/maps/map.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsMap = (props) => ( <SvgIcon {...props}> <path d="M20.5 3l-.16.03L15 5.1 9 3 3.36 4.9c-.21.07-.36.25-.36.48V20.5c0 .28.22.5.5.5l.16-.03L9 18.9l6 2.1 5.64-1.9c.21-.07.36-.25.36-.48V3.5c0-.28-.22-.5-.5-.5zM15 ...
node_modules/react-icons/io/lock-combination.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoLockCombination = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m30 13.8c3 2.8 5 6.7 5 11.2 0 8.3-6.7 15-15 15s-15-6.7-15-15c0-4.5 2-8.4 5-11.2v-3.8c0-5.5 4.5-10 10-10s10 4.5 10 10v3.8z m-17.5-3.8v2c2.2-1.2 4.8-2 7.5-2s5.3...
src/js/components/FileInput/stories/CustomThemed/Custom.js
HewlettPackard/grommet
import React from 'react'; import { Box, Grommet, FileInput, Text } from 'grommet'; import { Trash } from 'grommet-icons'; const customTheme = { fileInput: { button: { hover: { color: 'accent-2', }, border: { color: 'skyblue', width: '1px', }, pad: { ...
packages/lore-react-forms-bootstrap/src/fields/select.js
lore/lore-forms
import React from 'react'; import _ from 'lodash'; import { Field } from 'lore-react-forms'; import { Connect } from 'lore-hook-connect'; export default function(form, props, name) { const { options, label, optionLabel, description, ...other } = props; return ( <Field name={name}> ...
src/components/custom-components/MusicList/MusicList.js
ArtyomVolkov/music-search
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; // actions import * as playerAction from '../../../actions/player'; import * as system from '../../../actions/system'; // Components import ArtistList from '../ArtistList/ArtistList'; import Trac...
spec/components/navigation.js
VACO-GitHub/vaco-components-library
import React from 'react'; import Navigation from '../../components/navigation'; import Link from '../../components/link'; const actions = [ { label: 'Alarm', raised: true, icon: 'access_alarm'}, { label: 'Location', raised: true, accent: true, icon: 'room'} ]; const NavigationTest = () => ( <section> <h5>N...
public/js/components/profile/visitor/activityfeed/activitySharedList.react.js
rajikaimal/Coupley
import React from 'react'; import Card from 'material-ui/lib/card/card'; import CardMedia from 'material-ui/lib/card/card-media'; import CardText from 'material-ui/lib/card/card-text'; import ListItem from 'material-ui/lib/lists/list-item'; import Divider from 'material-ui/lib/divider'; import Avatar from 'material-ui/...
src/js/index.js
damianjaniszewski/iot-dashboard
import 'whatwg-fetch'; import { polyfill as promisePolyfill } from 'es6-promise'; import React from 'react'; import ReactDOM from 'react-dom'; import '../scss/index.scss'; import App from './App'; promisePolyfill(); const element = document.getElementById('content'); ReactDOM.render(<App />, element); document.bo...
examples/files/core_components/scrollview.js
dabbott/react-native-express
import React from 'react' import { ScrollView, StyleSheet, View } from 'react-native' export default function App() { return ( <ScrollView style={styles.container}> <View style={styles.large} /> <ScrollView horizontal> <View style={styles.small} /> <View style={styles.small} /> ...
.storybook/style/storybook-info.styles.js
Sage/carbon
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; const StoryHeader = styled.h1` border-bottom: 1px solid #E6EBED; font-size: 24px; margin: 24px 0px; padding: 0px 0px 5px; `; const StoryCode = styled.code` background-color: #EBEFF0; display: ${props => ...
webpack/scenes/ContentViews/Table/tableDataGenerator.js
snagoor/katello
import React from 'react'; import { fitContent, expandable, sortable } from '@patternfly/react-table'; import { Link } from 'react-router-dom'; import { urlBuilder } from 'foremanReact/common/urlHelpers'; import { translate as __ } from 'foremanReact/common/I18n'; import LongDateTime from 'foremanReact/components/commo...
src/svg-icons/image/leak-add.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLeakAdd = (props) => ( <SvgIcon {...props}> <path d="M6 3H3v3c1.66 0 3-1.34 3-3zm8 0h-2c0 4.97-4.03 9-9 9v2c6.08 0 11-4.93 11-11zm-4 0H8c0 2.76-2.24 5-5 5v2c3.87 0 7-3.13 7-7zm0 18h2c0-4.97 4.03-9 9-9v-2c-...
src/index.js
amoghesturi/react-news-app
// Application entrypoint. // Load up the application styles require('../styles/application.scss'); // Render the top-level React component import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.js'; ReactDOM.render(<App />, document.getElementById('root'));
server/middleware/uniRouter.js
osenvosem/react-mobx-boilerplate
import path from 'path'; import React from 'react'; import { renderToString } from 'react-dom/server'; import { match, RouterContext } from 'react-router'; import routes from '../../app/routes'; import { config } from '../../package.json'; // javascript links const jsLinks = [ path.join(config.assetsPublicPath, 'v...
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js
KnzkDev/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 ...
src/ContentBlocks/Shared/VideoPlayer/ProgressBar.js
grommet/grommet-cms-content-blocks
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import Box from 'grommet/components/Box'; import CSSClassnames from 'grommet/utils/CSSClassnames'; const CLASS_ROOT = CSSClassnames.V...
app/index.js
htanjo/server-app
// @flow import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, hashHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import routes from './routes'; import configureStore from './store/configureStore'; import './app...
packages/components/src/Actions/ActionButton/Button.stories.js
Talend/ui
import React from 'react'; import { action } from '@storybook/addon-actions'; import withPropsCombinations from 'react-storybook-addon-props-combinations'; import ActionButton from './ActionButton.component'; import theme from './Button.stories.scss'; const myAction = { label: 'Click me', icon: 'talend-dataprep', ...
frontend/app/components/Phrasebook/create.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' // import ProviderHelpers from 'common/ProviderHelpers' import StateLoading from 'components/Loading' import StateErrorBoundary from 'components/ErrorBoundary' import StateSuccessDefault from './states/successCreate' import StateCreate from './states/create' ...
docs/src/GettingStartedPage.js
yuche/react-bootstrap
import React from 'react'; import CodeExample from './CodeExample'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; export default class Page extends React.Component { render() { return ( <div> <NavMain activePage="getting-started"...
app/containers/App/index.js
bsherrill480/website-asd-init
/** * * App * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) */ import React from 'react'; import Helmet from 'react-helmet'; import styled from 'styled-components'; import Header from 'containers/Header'; import F...
admin/client/App/shared/Popout/PopoutList.js
cermati/keystone
/** * Render a popout list. Can also use PopoutListItem and PopoutListHeading */ import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; const PopoutList = React.createClass({ displayName: 'PopoutList', propTypes: { children: React.PropTypes.node.isRequired, classNam...
src/components/TodoInput.js
johny/react-redux-todo-app
import React from 'react'; import { connect } from 'react-redux'; import { addTodo } from '../actions/actions.js'; let TodoInput = ({dispatch}) => { // key handler for input const onKeyUp = (event) => { if (event.keyCode === 13) { let input = event.target; dispatch(addTodo(input.value)) inpu...
client/modules/App/__tests__/App.spec.js
phumberdroz/pizzastore
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import { shallow, mount } from 'enzyme'; import { App } from '../App'; import styles from '../App.css'; import { toggleAddPost } from '../AppActions'; const children = <h1>Test</h1>; const dispatch = sinon.spy(); const props = { children, ...
stories/babylonjs/Integrations/reactSpring.stories.js
brianzinn/react-babylonJS
import React from 'react' import { Engine, Scene, useHover, CustomPropsHandler, PropChangeType, useCustomPropsHandler, } from '../../../dist/react-babylonjs' import { Vector3, Color3 } from '@babylonjs/core/Maths/math'; import { useSprings, useSpring, animated } from 'react-babylon-spring'; import 'react-ba...
packages/react-scripts/template/src/App.js
sThig/jabbascrypt
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <div className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h2>Welcome to React</h2> ...
app/javascript/mastodon/features/bookmarked_statuses/index.js
h3zjp/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { fetchBookmarkedStatuses, expandBookmarkedStatuses } from '../../actions/bookmarks'; import Column from '../ui/components/column'; import ColumnHeader...
src/MessageBox/MessageBoxFixedHeaderFooter.js
skyiea/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import * as styles from './MessageBoxFixedHeaderFooter.scss'; import WixComponent from '../BaseComponents/WixComponent'; class MessageBoxFixedHeaderFooter extends WixComponent { render() { const { children, width, prefixContent, ...
information/blendle-frontend-react-source/app/components/UserTooltip.js
BramscoChill/BlendleParser
import { includes } from 'lodash'; import React from 'react'; import PropTypes from 'prop-types'; import Link from 'components/Link'; import Translate from 'components/shared/Translate'; import FollowButton from 'components/buttons/Follow'; import Auth from 'controllers/auth'; import AvatarImage from 'components/Avatar...
examples/fractals/index.js
elpic/react-pdf
/* eslint react/prop-types: 0, react/jsx-sort-props: 0 */ import React from 'react'; import ReactPDF from '../../packages/react-pdf-node'; import { Page, Document } from '../../packages/react-pdf'; import Fractal from './Fractal'; const doc = ( <Document title="Fractals" author="John Doe" subject="Rende...
packages/web/src/components/Markdown/Markdown.js
hengkx/note
import React from 'react'; import PropTypes from 'prop-types'; import MarkdownIt from 'markdown-it'; import markdownItTaskLists from 'markdown-it-task-lists'; import markdownItGithubToc from 'markdown-it-github-toc'; import markdownItFootnote from 'markdown-it-footnote'; import markdownItDeflist from 'markdown-it-defli...
src/Avatar/Avatar.js
ctco/rosemary-ui
import React from 'react'; import PropTypes from 'prop-types'; const PROPERTY_TYPES = { text: PropTypes.string, avatarImgUrl: PropTypes.string, testId: PropTypes.any }; class Avatar extends React.Component { render() { return ( <div data-test-id={this.props.testId} className="avata...
src/svg-icons/action/thumb-up.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionThumbUp = (props) => ( <SvgIcon {...props}> <path d="M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-...
src/Game/UI/Panel/Save.js
digijin/space-station-sim
// @flow import * as engine from 'Game/engine'; import { connect } from 'react-redux'; import React from 'react'; import Draggable from 'react-draggable' import Header from './Component/Header' import listSaves from 'Game/State/listSaves' import save from 'Game/State/save' import load from 'Game/State/load' class S...
src/Parser/Warrior/Fury/CONFIG.js
enragednuke/WoWAnalyzer
import React from 'react'; import { Maldark } from 'MAINTAINERS'; import SPECS from 'common/SPECS'; import SPEC_ANALYSIS_COMPLETENESS from 'common/SPEC_ANALYSIS_COMPLETENESS'; import CombatLogParser from './CombatLogParser'; import CHANGELOG from './CHANGELOG'; export default { spec: SPECS.FURY_WARRIOR, maint...
js/components/tab/basicTab.js
onderveli/EmlakAPP
import React, { Component } from 'react'; import { Container, Header, Title, Button, Icon, Tabs, Tab, Right, Left, Body } from 'native-base'; import TabOne from './tabOne'; import TabTwo from './tabTwo'; import TabThree from './tabThree'; class BasicTab extends Component { // eslint-disable-line render() { retu...
src/Components/Foot.js
jsmankoo/SPATemplate
import React from 'react'; import {connect} from 'react-redux'; import MediaQuery from 'react-responsive'; import marked from 'marked'; const Foot = ({Copyright,Information,Developer,Facebook,Twitter,Instagram})=>( <div className='Foot'> <MediaQuery maxDeviceWidth={767}> <div className="Mobile"> <d...
packages/react-devtools-shared/src/devtools/views/Components/HocBadges.js
rickbeerendonk/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import React from 'react'; import { ElementTypeForwardRef, ElementTypeMemo, } from 'react-devtools-shared/src/type...
information/blendle-frontend-react-source/app/components/notifications/PremiumCanceledNotification.js
BramscoChill/BlendleParser
import React from 'react'; import PropTypes from 'prop-types'; import { Notification, NotificationTitle, NotificationBody } from '@blendle/lego'; const PremiumCanceledNotification = ({ endDate, ...rest }) => ( <Notification {...rest}> <NotificationTitle>Je abonnement is beëindigd</NotificationTitle> <Notific...
frontend/src/Calendar/iCal/CalendarLinkModalContent.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Form from 'Components/Form/Form'; import FormGroup from 'Components/Form/FormGroup'; import FormInputButton from 'Components/Form/FormInputButton'; import FormInputGroup from 'Components/Form/FormInputGroup'; import FormLabel from 'Com...
example/pages/icons/index.js
n7best/react-weui
import React from 'react'; import {Icon} from '../../../build/packages'; import Page from '../../component/page'; import './icons.less'; const IconBox = (props) => ( <div className="icon-box"> {props.icon} <div className="icon-box__ctn"> <h3 className="icon-box__title">{props.title}</h3...
Realization/frontend/czechidm-core/src/content/automaticrole/attribute/AutomaticRoleAttributeRuleDetail.js
bcvsolutions/CzechIdMng
import PropTypes from 'prop-types'; import React from 'react'; import _ from 'lodash'; // import * as Basic from '../../../components/basic'; import * as Advanced from '../../../components/advanced'; import { AutomaticRoleAttributeRuleManager, FormAttributeManager, FormDefinitionManager } from '../../../redux'; import ...
packages/react-server-examples/code-splitting/components/Header.js
redfin/react-server
import React from 'react'; import {logging} from 'react-server'; import PropTypes from "prop-types"; const logger = logging.getLogger(__LOGGER__); const Header = ({ headerText }) => { logger.info("rendering the header"); return ( <div className="header"> React-Server { headerText } </div> ); }; Header.prop...
blueocean-material-icons/src/js/components/svg-icons/toggle/star-half.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ToggleStarHalf = (props) => ( <SvgIcon {...props}> <path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"/> </SvgIcon> ); ToggleStarH...
src/treemap/treemap-svg.js
Apercu/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
src/commons/Button.js
zenria/react-redux-sandbox
import React from 'react'; const Button = ({ onClick, text, disabled})=> ( <input type="button" onClick={onClick} value={text} disabled={disabled}/> ) export default Button;
src/web/containers/NotFoundPage/index.js
lukemarsh/react-redux-boilerplate
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route */ import React from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import messages from './messages'; import Button from 'web/components/Button'; export const NotFound...
src/components/webstorm/plain-wordmark/WebstormPlainWordmark.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './WebstormPlainWordmark.svg' /** WebstormPlainWordmark */ function WebstormPlainWordmark({ width, height, className }) { return ( <SVGDeviconInline className={'Webs...
src/react/comments.js
googlearchive/sample-framework-boot
/*! * * Copyright 2016 Google Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
src/svg-icons/action/info.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionInfo = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/> </SvgIcon> ); ActionInfo = pure(ActionInfo); ActionI...
app/assets/scripts/components/modal-vote.js
openaq/openaq.github.io
'use strict'; import React from 'react'; import { connect } from 'react-redux'; import c from 'classnames'; import OpenAQ from 'openaq-design-system'; const { Modal, ModalHeader, ModalBody } = OpenAQ.Modal; var ModalVote = React.createClass({ displayName: 'ModalVote', propTypes: { onModalClose: React.PropType...