path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
front-end/src/components/Navigation/Navigation.js
andriyspas/fruit-bouquets
import React, { Component } from 'react'; import Scroll from 'react-scroll'; let Link = Scroll.Link; class Navigation extends Component { constructor() { super(); this.state = { active: 'section_home' } }; handleSetActive = (to) => { this.setState({ active: to...
packages/react/src/components/Select/Select.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React from 'react'; import classNames from 'classnames'; import { ChevronDown16, WarningFilled...
client/modules/Post/__tests__/components/PostCreateWidget.spec.js
zivkaziv/MazorTech
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import { FormattedMessage } from 'react-intl'; import { PostCreateWidget } from '../../components/PostCreateWidget/PostCreateWidget'; import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper'; const props = { ...
test/helpers/shallowRenderHelper.js
Ariel-zhangyue/react-gallery
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
app/src/pages/Initialization/index.js
fikrimuhal/animated-potato
/** * Created by MYigit on 20.9.2016. */ import React from 'react' import {Row, Col} from 'react-flexbox-grid' import LinearProgress from 'material-ui/LinearProgress'; import Paper from 'material-ui/Paper' import RaisedButton from 'material-ui/RaisedButton' import Divider ...
node_modules/native-base/src/basic/Actionsheet.js
tausifmuzaffar/bisApp
/* @flow */ import React, { Component } from 'react'; import { View, Modal, Platform, ActionSheetIOS, TouchableOpacity } from 'react-native'; import { connectStyle } from '@shoutem/theme'; import { Text } from './Text'; import { Button } from './Button'; import { ViewNB } from './View'; import { Icon } from './Icon';...
src/components/Selection/SelectionView.native.js
ccfcheng/react-native-web-demo
import React, { Component } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; export default class SelectionView extends Component { render() { return ( <View style={styles.container}> <Text style={styles.welcome}>SelectionView</Text> </View> ); } } const styl...
fields/types/password/PasswordField.js
BlakeRxxk/keystone
import React from 'react'; import Field from '../Field'; import { Button, FormInput, InputGroup } from 'elemental'; module.exports = Field.create({ displayName: 'PasswordField', getInitialState () { return { passwordIsSet: this.props.value ? true : false, showChangeUI: this.props.mode === 'create' ? true :...
src/components/wallet/AddressGet.js
openvcash/vcash-electron
import React from 'react' import { translate } from 'react-i18next' import { inject, observer } from 'mobx-react' import { action, computed, extendObservable, reaction } from 'mobx' /** Ant Design */ import AutoComplete from 'antd/lib/auto-complete' import Button from 'antd/lib/button' import Input from 'antd/lib/inpu...
actor-apps/app-web/src/app/components/sidebar/RecentSectionItem.react.js
hmoraes/actor-platform
import React from 'react'; import classNames from 'classnames'; import DialogActionCreators from 'actions/DialogActionCreators'; import DialogStore from 'stores/DialogStore'; import AvatarItem from 'components/common/AvatarItem.react'; class RecentSectionItem extends React.Component { static propTypes = { di...
packages/logos/src/multiarch.js
geek/joyent-portal
import React from 'react'; export default props => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 42 42" {...props}> <title>Artboard 1 copy 43</title> <path fill="#1B3240" d="M19.11 22.13l-1.62 1.28a37.59 37.59 0 0 1-7.34 4.51.48.48 0 0 1-.71-.18 37.78 37.78 0 0 1-6.27-14.13A5.29 5.29 0 0...
node_modules/rc-collapse/es/PanelContent.js
prodigalyijun/demo-by-antd
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
stories/Image/index.js
Fineighbor/ui-kit
import React from 'react' import createStory from '../../storybook/createStory' import Image from '../../src/Image' const sourceUrl = 'https://raw.githubusercontent.com/Node-us/ui-kit/master/screenshots/web.png' createStory('Image', module) .add('with fit `contain`', () => <Image fit='contain' src={...
packages/icons/src/md/av/Movie.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdMovie(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M36 8l4 8h-6l-4-8h-4l4 8h-6l-4-8h-4l4 8h-6l-4-8H8c-2.21 0-3.98 1.79-3.98 4L4 36c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V8h-8z" /> </IconBase> ); }...
app/components/audit_log/Drawer/index.js
fotinakis/buildkite-frontend
import React from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay/classic'; import Spinner from '../../shared/Spinner'; import AuditLogEventSection from './eventSection'; import AuditLogSubjectSection from './subjectSection'; import AuditLogActorSection from './actorSection'; import AuditL...
definitions/npm/redux-forms-react_v0.11.x/flow_v0.34.x-v0.52.x/test_redux-forms-react_v0.11.x.js
mkscrg/flow-typed
/* @flow */ import React from 'react'; import { Form, Field, FieldArray } from 'redux-forms-react'; let el; /* ======== */ /* = Form = */ /* ======== */ el = ( <Form name="test" /> ); let f: HTMLFormElement; el = ( <Form name="test" persistent onSubmit={(values) => new Promise((resolve, reject) => {...
src/routes/public/signup/VerifyEmail.js
sk-iv/iva-app
import React from 'react'; // import PropTypes from 'prop-types'; import jwt from 'jsonwebtoken'; // import gql from 'graphql-tag'; import {graphql, compose} from 'react-apollo'; import СONFIRM_USER from '../../../mutations/СonfirmUser'; const VerifyEmail = (props) => { const { match, history } = props; ...
src/js/components/item-result.js
UNECE/Classification-Explorer
import React from 'react'; import { Link } from 'react-router'; import { uriToLink } from '../router-mapping'; export default function ItemResult({ item, itemLabel, predicate, match, code, coreContentNoteText, additionalContentNoteText, }) { return ( <Link to={uriToLink.itemDetails(item)}> {c...
src/test/helpers/shallowRenderHelper.js
adamarthurryan/personal-database
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
src/views/dictionary/pronound/PronoundPanel.js
bostontrader/senmaker
// @flow import React from 'react' import PronoundTable from './PronoundTable' import PronoundAEForm from './addedit/PronoundAEForm' import PronoundActions from '../../../data/dictionary/pronound/PronoundActions' /* The PronoundPanel is responsible for displaying everything about our list of pronound. Such the ta...
docs/src/components/PageLayout/PageLayout.js
seekinternational/seek-asia-style-guide
import React from 'react'; import PropTypes from 'prop-types'; import { PageBlock, AsidedLayout, Card, CardGroup, Section, Paragraph, Text, TextLink, Strong } from 'seek-asia-style-guide/react'; import Demo from '../Demo/Demo'; const BackgroundContainer = ({ component: DemoComponent, componentProps }) => ( <div styl...
docs/app/Examples/elements/Button/States/index.js
mohammed88/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const ButtonStatesExamples = () => ( <ExampleSection title='States'> <ComponentExample title='Active' description='A ...
docs/src/examples/modules/Popup/Usage/PopupExamplePopperDependencies.js
Semantic-Org/Semantic-UI-React
import faker from 'faker' import React from 'react' import { Button, Header, Placeholder, Popup } from 'semantic-ui-react' const PopupExamplePopperDependencies = () => { const [data, setData] = React.useState(null) const timer = React.useRef() return ( <Popup on='click' onClose={() => { ...
stories/Tooltip_New/Core/index.js
skyiea/wix-style-react
import React from 'react'; import {storiesOf} from '@storybook/react'; import Markdown from '../../utils/Components/Markdown'; import AutoDocs from '../../utils/Components/AutoDocs'; import CodeExample from '../../utils/Components/CodeExample'; import TabbedView from '../../utils/Components/TabbedView'; import ReadmeT...
src/views/Comment/Comment.js
Semantic-Org/Semantic-UI-React
import cx from 'clsx' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, customPropTypes, getElementType, getUnhandledProps, useKeyOnly, } from '../../lib' import CommentAction from './CommentAction' import CommentActions from './CommentActions' import CommentAuthor from './...
examples/todomvc/containers/TodoApp.js
Bernardstanislas/redux
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Header from '../components/Header'; import MainSection from '../components/MainSection'; import * as TodoActions from '../actions/todos'; class TodoApp extends Component { render() { ...
client/src/app/admin/panel/staff/admin-panel-departments.js
opensupports/opensupports
import React from 'react'; import _ from 'lodash'; import {connect} from 'react-redux'; import i18n from 'lib-app/i18n'; import API from 'lib-app/api-call'; import ConfigActions from 'actions/config-actions'; import SessionStore from 'lib-app/session-store'; import AreYouSure from 'app-components/are-you-sure'; impor...
src/svg-icons/device/signal-wifi-0-bar.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi0Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/> </SvgIcon> ); DeviceSignalWifi...
app/src/components/Header.js
wtfil/google-music-unofficial-client
import React from 'react'; import {connect} from 'react-redux'; import {Link, PropTypes} from 'react-router'; import {loadSuggest, iAmFeelingLucky} from '../actions'; import SearchInput from '../components/SearchInput'; @connect(state => state) export default class Header extends React.Component { static contextTypes...
src/components/ECharts/mapChart.js
joe-sky/flarej
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { registerComponent } from 'nornj'; import EChartsEnhance from './EChartsEnhance'; import 'echarts/lib/chart/map'; import template from './ECharts.t.html'; class MapChart extends Component { static propTypes = { type: PropTypes....
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
shamiksinha/udbodhan-laravel
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
src/components/Header/index.js
socialgorithm/ultimate-ttt-web
import React from 'react'; import { NavLink } from 'react-router-dom'; import { Menu, Icon } from 'semantic-ui-react'; import ServerContainer from '../../containers/ServerContainer'; import './index.scss'; class Header extends React.Component { constructor() { super(); this.sections = [ { url...
app/javascript/mastodon/features/ui/components/bundle_modal_error.js
riku6460/chikuwagoddon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import IconButton from '../../../components/icon_button'; const messages = defineMessages({ error: { id: 'bundle_modal_error.message', defaultMessage: 'Something went wrong while loading this comp...
src/GhostButton/index.js
Fineighbor/ui-kit
import React from 'react' import { Base } from './base' import defaultProps from './defaultProps' const GhostButton = ({ onClick, onPress, ...props }) => ( <span onClick={onClick || onPress}> <Base {...props} /> </span> ) GhostButton.defaultProps = defaultProps export default GhostButton
src/js/components/VideoItem.js
githayu/nicotunes
import React, { Component } from 'react'; import classNames from 'classnames'; import Utils from '../utils/Utils'; import PlayAnimation from '../containers/PlayAnimation'; export default class VideoItem extends Component { videoCategoryRender() { if (this.props.category) { return ( <p key...
src/index.js
villor/spotify-user-top
import React from 'react'; import {render} from 'react-dom'; import queryString from 'query-string'; import style from './stylesheets/main.scss'; import Start from './components/Start.js'; import App from './components/App.js'; import spotifyClientId from './spotify-client-id.js'; const spotifyAuthUri = 'https://acco...
blueocean-material-icons/src/js/components/svg-icons/device/signal-cellular-connected-no-internet-4-bar.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const DeviceSignalCellularConnectedNoInternet4Bar = (props) => ( <SvgIcon {...props}> <path d="M20 18h2v-8h-2v8zm0 4h2v-2h-2v2zM2 22h16V8h4V2L2 22z"/> </SvgIcon> ); DeviceSignalCellularConnectedNoInternet4Bar.displayName = 'DeviceSignalCellularCon...
src/svg-icons/places/fitness-center.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesFitnessCenter = (props) => ( <SvgIcon {...props}> <path d="M20.57 14.86L22 13.43 20.57 12 17 15.57 8.43 7 12 3.43 10.57 2 9.14 3.43 7.71 2 5.57 4.14 4.14 2.71 2.71 4.14l1.43 1.43L2 7.71l1.43 1.43L2 10.57 ...
src/svg-icons/communication/chat.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationChat = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"/> </SvgIcon> ); Communicatio...
src/components/utils.js
janimattiellonen/munkirjat-v4
import React from 'react'; import moment from 'moment'; import numeral from 'numeral'; import SmartSearch from 'smart-search'; import {List} from 'immutable'; import {Link} from 'react-router'; export function date_format(date, format = "D.M.YYYY") { return date != null && date != undefined ? moment(date).format(form...
src/mobile/src/app.js
douglascbarbosa/plankit
import React, { Component } from 'react'; import { View, Text } from 'react-native'; import firebase from 'firebase'; import { Header, Button, Spinner } from './components/common'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import reducers from './reducers'; import Red...
openex-front/src/private/components/exercises/lessons/PollForm.js
Luatix/OpenEx
import React, { Component } from 'react'; import * as PropTypes from 'prop-types'; import { Form } from 'react-final-form'; import Button from '@mui/material/Button'; import { TextField } from '../../../../components/TextField'; import inject18n from '../../../../components/i18n'; class PollForm extends Component { ...
client/extensions/woocommerce/app/settings/email/mailchimp/setup-mailchimp.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import { connect } from 'react-redux'; import { localize } from 'i18n-calypso'; import { pick, some, isEmpty } from 'lodash'; import PropTypes from 'prop-types'; import React from 'react'; /** * Internal dependencies */ import Dialog from 'components/dialog'; import {...
src/svg-icons/navigation/arrow-back.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowBack = (props) => ( <SvgIcon {...props}> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/> </SvgIcon> ); NavigationArrowBack = pure(NavigationArrowBack); NavigationArrowB...
project/src/scenes/Admin/Articles/ArticleListing/components/ArticleListHead/ArticleListHead.js
boldr/boldr
/* @flow */ import React from 'react'; import { Heading } from '@boldr/ui'; import styled from 'styled-components'; const ListHeader = styled.div` padding-left: 20px; padding-bottom: 1em; `; const ArticleListHead = () => { return ( <ListHeader> <Heading type="h4">All Articles</Heading> </ListHeader...
app/components/Loading.js
mapbox/osm-comments-frontend
import React from 'react'; var Loading = React.createClass({ render: function() { return ( <div className="loading" /> ); } }); export default Loading;
tp-3/marisol/src/components/FuelSavingsTextInput.js
solp/sovos-reactivo-2017
import React from 'react'; import PropTypes from 'prop-types'; const FuelSavingsTextInput = ({name, value, placeholder, onChange}) => { return ( <input className="small" name={name} type="text" placeholder={placeholder} value={value} onChange={onChange}/> ); }; const { stri...
library/src/pivotal-ui-react/mixins/mixins/scrim_mixin.js
sjolicoeur/pivotal-ui
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types';; function rootClick(e) { if (this.props.disableScrim || ReactDOM.findDOMNode(this).contains(e.target)) return; this.scrimClick(e); } const privates = new WeakMap(); export default ParentClass => { return class Scri...
src/index.js
chimo/se-dir-frontend-react
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; import { I18nextProvider } from 'react-i18next'; import i18n from './i18n'; // Render the main component into the dom ReactDOM.render( <I18nextProvider i18n={ i18n }><App /></I18nextP...
src/app/app.js
BerndWessels/react-freezer-webpack
/** * Manapaho (https://github.com/manapaho/) * * Copyright © 2015 Manapaho. 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 ReactDOM from 'react-dom'; import classnames fr...
src/routes/dashboard/components/cpu.js
shaohuawang2015/goldbeans-admin
import React from 'react' import PropTypes from 'prop-types' import styles from './cpu.less' import { color } from 'utils' import CountUp from 'react-countup' import { LineChart, Line, XAxis, YAxis, CartesianGrid, ResponsiveContainer } from 'recharts' const countUpProps = { start: 0, duration: 2.75, useEasing: t...
src/entry.js
CodeCommission/reunify
// Main application import path from 'path'; import React from 'react'; import {render, hydrate} from 'react-dom'; import {StaticRouter, BrowserRouter, Switch, Route, Link, withRouter} from 'react-router-dom'; import minimatch from 'minimatch'; import sortBy from 'lodash.sortby'; import Catch from './Catch'; const IS...
src/svg-icons/action/compare-arrows.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCompareArrows = (props) => ( <SvgIcon {...props}> <path d="M9.01 14H2v2h7.01v3L13 15l-3.99-4v3zm5.98-1v-3H22V8h-7.01V5L11 9l3.99 4z"/> </SvgIcon> ); ActionCompareArrows = pure(ActionCompareArrows); Acti...
forms-test/src/components/login/UserNameField.js
cnewfeldt/react-lab
import React from 'react'; class UserNameField extends React.Component { emailOnChange = e => { // Validation this.props.onHandleEmailChange(e); }; onBlurChange = e => { this.props.onHandleBlur('email'); }; render() { return ( <div> <div>login</div> <input cl...
src/Menu/Menu.js
AndriusBil/material-ui
// @flow // @inheritedComponent Popover import React from 'react'; import type { Node } from 'react'; import classNames from 'classnames'; import { findDOMNode } from 'react-dom'; import getScrollbarSize from 'dom-helpers/util/scrollbarSize'; import withStyles from '../styles/withStyles'; import Popover from '../Popov...
examples/04 Sortable/Simple/index.js
cesarandreu/react-dnd
import React from 'react'; import Container from './Container'; export default class SortableSimple { render() { return ( <div> <p> <b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/04%20Sortable/Simple'>Browse the Source</a></b> </p> <p> It i...
dva/wd2/src/components/Common/Shake.js
imuntil/React
import React from 'react' import TweenOne from 'rc-tween-one' import PropTypes from 'prop-types' const animation = { translateX: '4%', yoyo: true, repeat: 7, duration: 50 } const style = { boxShadow: '0 0 4px 2px #e47f87' } const Shake = ({ shake, ani, playingStyle, children, ...rest }) => { return ( <TweenOne a...
local-cli/generator/templates/index.android.js
tgoldenberg/react-native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class <%= name %> extends Component { render() { return ( <View style={styles.contain...
packages/icons/src/md/image/FilterVintage.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdFilterVintage(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M37.78 25.18c3.85 2.22 5.99 6.25 6 10.4-3.59 2.06-8.15 2.22-11.99 0-.56-.33-1.07-.7-1.56-1.09.09.62.16 1.24.16 1.89 0 4.44-2.42 8.3-6 10.38-3.5...
src/svg-icons/av/web-asset.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvWebAsset = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm0 14H5V8h14v10z"/> </SvgIcon> ); AvWebAsset = pure(AvWebAsset); AvWebAss...
scripts/components/TodoList.js
chentsulin/alt-exercise
import React from 'react' import connectToStores from 'alt/utils/connectToStores' import TodoStore from '../stores/TodoStore' @connectToStores class TodoList extends React.Component { static getStores(props) { return [TodoStore] } static getPropsFromStores(props) { return TodoStore.getState() } r...
docs/src/app/components/pages/discover-more/Contributing.js
xmityaz/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import contributingText from '../../../../../../CONTRIBUTING.md'; const Contributing = () => ( <div> <Title render={(previousTitle) => `Contributing - ${previousTitle}`} /> <MarkdownEle...
view/AppView.js
peysal/renatdux
import React, { Component } from 'react'; import { View, Text, StyleSheet } from 'react-native'; import { DrawerNavigator, TabNavigator, StackNavigator } from 'react-navigation'; import fbNavigatorView from './FbNavigatorView'; import mainScreen from '../screens/MainScreen'; import detailScreen from '../screens/DetailS...
packages/ringcentral-widgets-docs/src/app/pages/Components/RegionSettingsPanel/Demo.js
u9520107/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import RegionSettingsPanel from 'ringcentral-widgets/components/RegionSettingsPanel'; import styles from './styles.scss'; const props = {}; props.currentLocale = 'en-US'; props.availableCountries = [ { id: '1', isoCode: 'US', callingCode: '1' }, { id: '224', i...
node_modules/react-ga/src/components/OutboundLink.js
jerednel/jerednel.github.io
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import warn from '../utils/console/warn'; const NEWTAB = '_blank'; const MIDDLECLICK = 1; export default class OutboundLink extends Component { static trackLink = () => { warn('ga tracking not enabled'); }; static propTypes = { ...
src/components/Header/Header.js
f15gdsy/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Header.css'; import withStyles from '../../decorators/withStyles'; import Link from '../Link'; import Navigation from '../Navigation'; @withStyles(styles) class Header extends Compo...
src/pages/Citation.js
joegattnet/joegatt.net-client
import React, { Component } from 'react'; import { withRouter } from 'react-router-dom'; import { graphql } from 'react-apollo'; import gql from 'graphql-tag'; class Citation extends Component { componentWillReceiveProps(nextProps) { if (this.props.location.key !== nextProps.location.key) { this.props.Not...
src/components/SideBar/Container/SocialLinks/index.js
jahammo2/portfolio-web_client
import './index.scss'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { List } from 'immutable'; const propTypes = { socialLinks: PropTypes.instanceOf(List), fetchSocialLinks: PropTypes.func }; export class SocialLinks extends Component { componentWillMount () { return ...
docs/src/app/components/pages/components/IconButton/Page.js
manchesergit/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import iconButtonCode from '!raw!material-ui/IconButton/IconButton'; import icon...
src/native/components/Loading.js
TeodorKolev/Help
import React from 'react'; import { View, ActivityIndicator } from 'react-native'; import Colors from '../../../native-base-theme/variables/commonColor'; const About = () => ( <View style={{ flex: 1, flexDirection: 'column', justifyContent: 'center' }}> <ActivityIndicator size="large" color={Colors.brandPrimary}...
test/integration/basic/pages/link.js
callumlocke/next.js
import React from 'react' import Link from 'next/link' export default () => ( <div>Hello World. <Link href='/about'><a>About</a></Link></div> )
dashboard/client/src/js/components/modules/VariationStats.js
agaralabs/sieve
import React from 'react'; import Loader from './base/Loader'; import Helpers from '../../utils/helpers'; const statTypes = [ { type: 'count', text: 'Counts' }, { type: 'convRate', text: 'Conversion Rate' }, { type: 'zScore', text: 'Z Score' }, ...
src/index.js
ryan4888/smart-toy
/* eslint-disable import/default */ import React from 'react'; import { render } from 'react-dom'; import { browserHistory } from 'react-router'; import { AppContainer } from 'react-hot-loader'; import Root from './components/Root'; import configureStore from './store/configureStore'; require('./favicon.ico'); // Tel...
springboot/GReact/src/main/resources/static/app/components/ui/UiProgressbar.js
ezsimple/java
import React from 'react' import 'bootstrap-progressbar/bootstrap-progressbar.min.js' export default class UiProgressbar extends React.Component{ componentDidMount () { $(this.refs.progressbar).progressbar({ display_text: 'fill' }) } render () { return <div {...this.props} ref="progressbar"/...
fields/types/name/NameField.js
andreufirefly/keystone
import Field from '../Field'; import React from 'react'; import { FormField, FormInput, FormRow } from 'elemental'; module.exports = Field.create({ displayName: 'NameField', focusTargetRef: 'first', valueChanged: function (which, event) { this.props.value[which] = event.target.value; this.props.onChange({ ...
Blog/src/js/components/menu.react.js
rcatlin/ryancatlin-info
import React from 'react'; import LoginActions from '../actions/LoginActions'; import MenuItem from './Menu/item.react'; import MenuStore from '../stores/MenuStore'; export default class Menu extends React.Component { static get displayName() { return 'Menu'; } constructor(props) { super(...
ext/lib/site/home-ideas/cover/component.js
RosarioCiudad/democracyos
import React from 'react' import { Link } from 'react-router' import videos from './videos.json' const video = videos[Math.floor(Math.random() * videos.length)] export default ({ userLoaded, toSteps, toInfo }) => ( <div className='ext-home-cover' style={{ backgroundImage: `url("${video.image}")` }}> {wind...
src/shared/components/Error.js
jacobkeaton1/fdi-app
/** * Error.js * * (C) 2017 mobile.de GmbH * * @author <a href="mailto:pahund@team.mobile.de">Patrick Hund</a> * @since 10 Feb 2017 */ import React from 'react'; const style = { padding: '16px' }; export default () => ( <div style={style}> <h1>Sorry!</h1> <p>Something went horribly wron...
src/components/ArrayControl/renderArrayControls.js
pure-ui/react-pure-ui
import React from 'react'; const ArrayControls = (Control, rangeArray, value, onUpdateEntry, controlRandom) => { return ( <div> { rangeArray && rangeArray.map((index) => { return ( <Control key={ index } value={ value[index] } onUpdate={ (data) => onU...
tp-3/juan-pablo-gonzalez/src/shared/components/dataModifier/components/tinMask/TinMask.js
jpgonzalezquinteros/sovos-reactivo-2017
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import SovosTooltip from '../../../sovos-tooltip/SovosTooltip'; const constants = { tin: 'TIN', tinType: 'TINTYPE', fk1: 'FK1' }; class TinMask extends Component { constructor(props) { super(props); this.state = { show...
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js
stanleycyang/react-router
import React from 'react'; import { Link } from 'react-router'; class Sidebar extends React.Component { //static loadProps (params, cb) { //cb(null, { //assignments: COURSES[params.courseId].assignments //}); //} render () { //var { assignments } = this.props; var assignments = COURSES[th...
ui/js/dfv/src/admin/edit-pod/edit-pod.js
pods-framework/pods
import React from 'react'; import PropTypes from 'prop-types'; /** * WordPress dependencies */ import { withSelect, withDispatch } from '@wordpress/data'; import { __ } from '@wordpress/i18n'; import { compose } from '@wordpress/compose'; /** * Pods dependencies */ import SaveStatusMessage from './save-status-mes...
src/components/Frontpage/Frontpage.js
swessar/gifs
import React from 'react'; import { connect } from 'react-redux'; import { firebase, helpers } from 'react-redux-firebase'; const { isLoaded, isEmpty, dataToJS } = helpers; import Filter from '../Filter/Filter'; import Loader from '../Loader/Loader'; @firebase() @connect( ({firebase}) => ({ images: dataToJS(fire...
src/component/navgation/main.js
vicvinc/yimanga
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import * as feather from 'react-feather'; import '../../style/module/navgation.css'; export default class MainNavgation extends Component { static defaultProps = { appLogo: require('../../static/navgation/logo.svg'), avatar...
src/icons/quote.js
markdyousef/zen-editor
import React from 'react'; export default ({ ...props }) => { return ( <svg {...props} x="0px" y="0px" viewBox="0 0 16 16"> <g> <g> <path d="M12.179,13.969c-1.915,0-3.854-1.507-3.854-4.387c0-2.934,1.495-5.653,4.102-7.462c0.181-0.125,0....
src/parser/shared/modules/features/LowHealthHealing/Component.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import Slider from 'rc-slider'; import 'rc-slider/assets/index.css'; import SPECS from 'game/SPECS'; import SpellLink from 'common/SpellLink'; import Icon from 'common/Icon'; import { formatNumber, formatPercentage, formatDuration } from 'common/format'; ...
src/components/App.js
micahh2/means
import React from 'react'; import { connect } from 'react-redux'; import { PropTypes } from 'prop-types'; import { Graph } from './Graph'; import { Form } from './Form'; import { getProjection } from '../selectors/app'; import '../styles/app.scss'; export const _App = (props) => { return <div> <h1 className="ap...
client/pages/signin.js
thebearingedge/inqur
import React from 'react' import Head from 'next/head' import withRedux from 'next-redux-wrapper' import { initStore } from '../core' import { Login } from '../layouts' import { Signin, mapState, mapDispatch } from '../authentication/signin' import { signinVisited } from '../authentication/actions' const Page = props...
react-ui/src/components/Course/PDF.js
michaelcheng429/bestactprep
import React from 'react'; import { Link } from 'react-router-dom'; import css from 'classnames'; export class VideoSection extends React.Component { renderButton() { const { pdf, restricted } = this.props; if (restricted) { return ( <Link to="/buy"> ...
src/header-predictors.js
danielmoll/component-win-articlepage
import ArticleHeaderContainer, { ImageContainer } from '@economist/component-articletemplate/lib/header'; import Picture from '@economist/component-picture'; import React from 'react'; import { defaultGenerateClassNameList } from '@economist/component-variantify'; const extendedHeaderItemClasses = [ 'gutter-l', ]; e...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/TemplateInterpolation.js
timlogemann/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load(name) { return [ { id: 1, name: `${na...
js/components/doings/DoingsLists/lead.js
ciccia/i-done-that
import React from 'react'; import DoingsListBase from './base'; class DoingsListLead extends DoingsListBase { render() { return ( <div> {this.props.doings.valueSeq().map((value) => ( <p key={value.get('id')} className="flow-text truncate" onClick={() => this.pro...
src/App.js
code-kotis/pwa-codelabs
import React, { Component } from 'react'; import Menu from './Menu'; import Header from './Header'; import GitHub from './GitHub.png'; class App extends Component { constructor() { super(); this.callbackMenu = this.callbackMenu.bind(this); this.state = { showMenu: false }; } callbackMenu()...
src/components/antd/card/Grid.js
hyd378008136/olymComponents
var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < ...
src/client/adapters/interactors/routes/ListPostsRoute.js
axross/camelot
/* @flow */ import bemmer from 'bemmer'; import React from 'react'; import { Link } from 'react-router'; import BlogPost from '../../../../entities/BlogPost'; import BlogPostCard from '../components/BlogPostCard'; import GridBox from '../components/GridBox'; type Props = { className: ?string; } class ListPostsRoute...
src/js/components/archive/archive.js
axuebin/react-blog
import React from 'react'; import PropTypes from 'prop-types'; import { Row, Col } from 'antd'; import { connect } from 'react-redux'; import { fetchIssuesIfNeeded } from '../../actions/index'; import ArchiveList from './archivelist'; import YearCard from './yearcard'; import '../../../css/archive/archive.css'; class ...
client/vehicle-finder-spa/src/containers/article/single-article.js
Del7a/vehicle-finder
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { getSingleArticle, updateForm, setCurrentArticle } from '../../actions/article'; import { newThreadRead, setCurrentMessageThread } from '../../actions/messages'; import { Link } from 'rea...
src/svg-icons/image/brightness-5.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrightness5 = (props) => ( <SvgIcon {...props}> <path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.6...
web/cashtab/src/components/Receive/Receive.js
Bitcoin-ABC/bitcoin-abc
import React from 'react'; import styled from 'styled-components'; import { WalletContext } from 'utils/context'; import OnBoarding from 'components/OnBoarding/OnBoarding'; import { QRCode } from 'components/Common/QRCode'; import { currency } from 'components/Common/Ticker.js'; import { LoadingCtn } from 'components/C...
admin/src/components/Popout.js
Freakland/keystone
import classnames from 'classnames'; import React from 'react'; import { Button, Checkbox, InputGroup, SegmentedControl } from 'elemental'; import Portal from './Portal'; const Transition = React.addons.CSSTransitionGroup; const sizes = { arrowHeight: 12 }; var Popout = React.createClass({ displayName: 'Popout', p...