path stringlengths 5 296 | repo_name stringlengths 5 85 | content stringlengths 25 1.05M |
|---|---|---|
react/components/DevTools/DevTools.js | xpandmmi/biographies | import React from 'react';
import {createDevTools} from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor toggleVisibilityKey="H"
changePositionKey="Q"
>
<LogMonitor />
</DockMonitor>
)... |
test/integration/client-navigation/pages/head-duplicate-default-keys.js | flybayer/next.js | import React from 'react'
import Head from 'next/head'
export default () => (
<div>
<Head>
{/* this will not render */}
<meta charSet="utf-8" key="charSet" />
{/* this will not render */}
<meta charSet="iso-8859-5" key="charSet" />
{/* this will render instead of the default */}
... |
src/static/utils/requireAuthentication.js | Seedstars/django-react-redux-base | import React from 'react';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import PropTypes from 'prop-types';
export default function requireAuthentication(Component) {
class AuthenticatedComponent extends React.Component {
static propTypes = {
isAuthenticated... |
Js/Ui/Components/Wizard/Step.js | Webiny/Webiny | import React from 'react';
import Webiny from 'webiny';
import _ from 'lodash';
import Content from './Step/Content';
import Actions from './Step/Actions';
class Step extends Webiny.Ui.Component {
}
Step.defaultProps = {
current: false,
completed: false,
title: null,
name: null,
onLeave: _.noop,
... |
docs/src/List/index.js | mesosphere/reactjs-components | import React from "react";
import CodeBlock from "../components/CodeBlock";
import ComponentExample from "../components/ComponentExample";
import ComponentExampleWrapper from "../components/ComponentExampleWrapper";
import ComponentWrapper from "../components/ComponentWrapper";
import List from "../../../src/List/List... |
shared/components/Equilab/FrontPage/FrontPage.js | thehink/equilab-web | import React, { Component } from 'react';
import Info from 'Equilab/Info';
import Testimonials from 'Equilab/Testimonials';
import AboveFooter from 'Equilab/AboveFooter';
import Hero from 'Equilab/Hero';
class FrontPage extends Component {
render() {
return (
<div className="front-page">
<Hero />
... |
src/pages/gups.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Gups' />
)
|
app/src/modules/Books/components/BookEdition/BookEdition.js | betofigueiredo/homelibraries.org | import React, { Component } from 'react';
import PropTypes from 'prop-types';
// CSS
import CSSModules from 'react-css-modules';
import styles from './style.module.sass';
// Components
import InputText from '../../../../components/_inputs/InputText/InputText';
import Button from '../../../../components/Button/Button'... |
test/components.js | kjirou/js-boilerplate | import assert from 'power-assert';
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import Root from '../src/components/Root';
describe('components', () => {
it('should be', () => {
const rootElement = <Root />;
const html = ReactDOMServer.renderToStaticMarkup(rootElement);
as... |
app/javascript/mastodon/features/list_adder/index.js | rainyday/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { injectIntl } from 'react-intl';
import { setupListAdder, resetListAdder } from '... |
src/svg-icons/communication/call-missed.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallMissed = (props) => (
<SvgIcon {...props}>
<path d="M19.59 7L12 14.59 6.41 9H11V7H3v8h2v-4.59l7 7 9-9z"/>
</SvgIcon>
);
CommunicationCallMissed = pure(CommunicationCallMissed);
CommunicationC... |
src/shared/routes.js | DarriusWrightGD/BloggingSite | import { Router,Route, IndexRoute,browserHistory } from 'react-router';
import React from 'react';
import App from './components/App';
import Home from './components/Home';
import About from './components/About';
export default (
<Router history={browserHistory}>
<Route component={App} path='/'>
<IndexRout... |
test/containers/CounterPage.spec.js | Thecontrarian/bmux | import { expect } from 'chai';
import React from 'react';
import {
renderIntoDocument,
scryRenderedDOMComponentsWithTag,
findRenderedDOMComponentWithClass,
Simulate
} from 'react-addons-test-utils';
import { Provider } from 'react-redux';
import CounterPage from '../../app/containers/CounterPage';
import config... |
app/javascript/mastodon/features/ui/components/zoomable_image.js | Kirishima21/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import IconButton from 'mastodon/components/icon_button';
import { defineMessages, injectIntl } from 'react-intl';
const messages = defineMessages({
compress: { id: 'lightbox.compress', defaultMessage: 'Compress image view box' },
expand: { id: 'lightb... |
www/imports/component/Modal.js | ucscHexmap/hexagram |
// Modal.js
// Our wrapper around react-model to add our own options of:
// - header
// - title
// - close button
// - body
// - button box
// - styling
// If you want something with just a message, use userMsg.js instead.
// if you want something with just a prompt string and tex... |
src/main/viz/GenotypeTrack.js | piotr-gawron/pileup.js | /**
* Visualization of genotypes
* @flow
*/
'use strict';
import type {VcfDataSource} from '../sources/VcfDataSource';
import type {VariantContext} from '../data/variant';
import type {DataCanvasRenderingContext2D} from 'data-canvas';
import type {VizProps} from '../VisualizationWrapper';
import React from 'react'... |
src/parser/shared/modules/items/bfa/raids/uldir/DiscOfSystematicRegression.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import ItemDamageDone from 'interface/others/ItemDamageDone';
import {formatNumber} from 'common/format';
import ItemStatistic from 'interface/statistics/ItemStatistic';
import BoringItemValueText from 'interface/statistic... |
src/docs/examples/ProgressBar/Example10Percent.js | Mikhail2k15/ps-react-michael | import React from 'react';
import ProgressBar from 'ps-react/ProgressBar';
export default function Example10Percent(){
return <ProgressBar percent={10} width={150}/>
} |
test/TooltipSpec.js | jesenko/react-bootstrap | import _ from 'lodash-compat';
import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Tooltip from '../src/Tooltip';
describe('Tooltip', () => {
it('Should output a tooltip with content', () => {
let instance = ReactTestUtils.renderIntoDocument(
<Tooltip positionTop={10} ... |
src/Label.js | dozoisch/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import { bsClass, bsStyles, getClassSet, splitBsProps }
from './utils/bootstrapUtils';
import { State, Style } from './utils/StyleConfig';
class Label extends React.Component {
hasContent(children) {
let result = false;
React.Children.forEac... |
app/static/src/diagnostic/Components/Equipment.js | vsilent/Vision | import {Component} from 'react';
import React from 'react';
import EquipmentForm from '../EquipmentForm';
var Equipment=React.createClass({
getInitialState : function(){
return{
"location_id" : 0
}
},
componentDidMount:function(){
if (this.props.location.query['location... |
components/reports/TotalSpent.js | hutsi/bookkeeping | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import withWidth from '@material-ui/core/withWidth';
import { withStyles } from '@material-ui/core/styles';
const styles = theme => ({
value: {
fontSize: 32,
textAlign: 'center',
fontWeight: 'bold',
},
currencySign: {
f... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | Topolev/TimeCurrentCharacteristic | 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'));
|
webapp/app/components/EditGroup/Form/GroupRights/SoftwareMode/index.js | EIP-SAM/SAM-Solution-Node-js | //
// Component software mode group rights form edit group
//
import React from 'react';
import { FormGroup, FormControl, ControlLabel } from 'react-bootstrap';
import styles from 'components/EditGroup/styles.css';
/* eslint-disable react/prefer-stateless-function */
export default class EditGroupFormGroupRightsSoftw... |
webpack/components/WithOrganization/withOrganization.js | pmoravec/katello | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { translate as __ } from 'foremanReact/common/I18n';
import { get } from 'lodash';
import SetOrganization from '../SelectOrg/SetOrganization';
import H... |
src/views/AllrecipesView.js | abachuk/fullbag-react-redux-dashboard | import React from 'react'
import 'styles/core.scss'
// import Firebase from 'firebase'
// import constants from 'utils/constants'
// import { actions as authActions } from '../redux/modules/auth'
// import { connect } from 'react-redux'
// import { createHistory } from 'history'
// let history = createHistory()
// imp... |
js/AppNavigator.js | LetsBuildSomething/vmag_mobile |
import React, { Component } from 'react';
import { BackAndroid, StatusBar, NavigationExperimental, Platform } from 'react-native';
import { connect } from 'react-redux';
import { StyleProvider, getTheme, variables, Drawer } from 'native-base';
import { actions } from 'react-native-navigation-redux-helpers';
import { R... |
src/client/assets/js/features/repos/components/RepoManager.js | me-box/iot.red | import React, { Component } from 'react';
import {connect} from 'react-redux';
import { bindActionCreators } from 'redux';
import Textfield from 'components/form/Textfield';
import Textarea from 'components/form/Textarea';
import Cell from 'components/Cell';
import Cells from 'components/Cells';
import Dialogue from '... |
src/js/components/icons/base/Pan.js | kylebyerly-hp/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/entypo/Clapperboard.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--Clapperboard';
let EntypoClapperboard = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path fillRule="evenodd" clipRule="evenodd" d="M20,3v14c0,0.552-0.447,1-1,1H1c-0.553,0-1-0.448-1-1... |
src/components/layout/Header.js | MozillaDevelopers/playground | import React from 'react';
import Link from 'gatsby-link';
// images
import logo from '../img/logo.svg';
// components
import DownloadButton from '../../components/DownloadButton';
import DownloadLink from '../../components/DownloadLink';
const Header = () => (
<header className="header">
<div className="conta... |
src/ui/system/user/UserTable.js | steem/qwp-antd | import React from 'react'
import PropTypes from 'prop-types'
import { Modal, Button, Form, message } from 'antd'
import styles from './UserTable.less'
import classnames from 'classnames'
import DateTable from 'components/DataTable'
import { DropOption } from 'components'
import { Link } from 'dva/router'
import RandomA... |
setup/src/universal/features/common_ui/components/Button/index.js | ch-apptitude/goomi | /**
*
* Button
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, intlShape } from 'react-intl';
import { Link } from 'react-router';
import styled from 'styled-components';
import Theme from 'assets/theme';
const defaultStyle = (props) => `
line-height: 40px;
cursor: pointe... |
stories/hoc.js | pbernasconi/react-plaid-link | import React from 'react';
import { PlaidLink } from '../src';
const App = props => {
const onExit = (error, metadata) => console.log('onExit', error, metadata);
const onEvent = (eventName, metadata) =>
console.log('onEvent', eventName, metadata);
const onSuccess = (token, metadata) =>
console.log('onSu... |
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-bricks-iframe.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin} from '../common/common.js';
import Loading from './loading.js';
import './iframe.less';
export const Iframe = React.createClass({
//@@viewOn:mixins
mixins: [
BaseMixin,
ElementaryMixin
],
//@@viewOff:mixins
//@@viewOn:statics
statics... |
node_modules/react-bootstrap/es/FormGroup.js | C0deSamurai/muzjiks | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
components/app/index.js | voylinux/voylinux.com-frontend | import React from 'react';
import Navigation from '../navigation';
import Header from '../header';
class App extends React.Component {
render() {
return (
<main>
<Navigation />
<Header />
</main>
)
}
}
export default App;
|
src/Scene/LimitDoubleClickBtnScene.js | wangliguang/myRNTools | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Button
} from 'react-native';
import GGLimitDoubleClickButton from '../tools/LimitDoubleClickButton';
import * as NavigationBar from... |
packages/fyndiq-icons/src/checkmark.js | fyndiq/fyndiq-ui | import React from 'react'
import SvgWrapper from './svg-wrapper'
const Checkmark = ({ className, color }) => (
<SvgWrapper viewBox="0 0 50 50" className={className}>
<path
fill={color}
stroke="none"
d="M16.8 42c-.4 0-1-.2-1.2-.5l-14-14.2c-.8-.7-.8-1.8 0-2.5.6-.7 1.7-.7 2.4 0l12.8 13 29-29c.7-.7... |
app/javascript/mastodon/features/keyboard_shortcuts/index.js | maa123/mastodon | import React from 'react';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../components/column_back_button_slim';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-co... |
src/index.js | cadesalaberry/salomon | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
src/lightbox/LightboxScreen.js | saketkumar95/zulip-mobile | /* @flow */
import React from 'react';
import { View, StyleSheet } from 'react-native';
import { ActionSheetProvider } from '@expo/react-native-action-sheet';
import { ZulipStatusBar } from '../common';
import LightboxContainer from './LightboxContainer';
const styles = StyleSheet.create({
screen: {
flex: 1,
... |
src/editors/ColorEditor.js | diogofcunha/react-data-grid-extensions | import React from 'react';
import PropTypes from 'prop-types';
import { CirclePicker } from 'react-color';
import editorWrapper from './editorWrapper';
import './styles/colorPicker.css';
const ColorEditor = ({ editorValue, Renderer = CirclePicker, onValueChanged, ...pickerProps }) => {
return (
<div className... |
app/src/pages/TestCompleted/index.js | fikrimuhal/animated-potato | import React from 'react'
export default React.createClass({
render() {
return (
<div>
<div>
<h2>Test Tamamlandı.</h2>
<span><b>25</b> dakika içerisinde <b>50</b> soruya yanıt verdiniz.</span>
<h3>Başvurunuz için teşekk... |
sandbox-react-handsontable/stories/resizable.js | ohtomi/sandbox | import React from 'react';
import Resizable from 'react-resizable-box';
import {storiesOf} from '@storybook/react';
import {action} from '@storybook/addon-actions';
storiesOf('Resizable-Box', module)
.add('plain', () => (
<Resizable
className="item"
width={320}
height={... |
docs/src/index.js | vandreleal/react-social-github | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import './index.css';
import injectTapEventPlugin from 'react-tap-event-plugin';
// Needed for onTouchTap
// http://stackoverflow.com/a/34015469/988941
injectTapEventPlugi... |
modules/__tests__/ScrollManagementMixin-test.js | jdelight/react-router | import expect from 'expect';
import React from 'react';
import createHistory from 'history/lib/createHashHistory';
import resetHash from './resetHash';
import execStepsWithDelay from './execStepsWithDelay';
import { getWindowScrollPosition } from '../DOMUtils';
import Router from '../Router';
import Route from '../Rout... |
src/components/Header/EntityHeader/EntityHeader.stories.js | auth0-extensions/auth0-extension-ui | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import EntityHeader from './';
function renderField(field) {
return (
<EntityHeader
imgSource={field.imgSource}
primaryText={field.primaryText}
secondaryText={field.secondaryText}
>
This is the EntityHeader chi... |
public/javascripts/components/menu.js | AlaskanHusky/currency-exchange | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
class App extends Component {
render() {
return (
<nav>
<ul className="nav-menu">
<li className="nav-item">
<Link to="/">Home</Link>
</li>
<li className="nav-item"... |
lib/apps/profile/routes.js | defact/gabbro | import React from 'react';
import { Route } from 'react-router';
import { Profile, Password } from './handlers';
const routes = (
<Route path='profile' component={Profile}>
<Route path='password' component={Password}/>
</Route>
);
export default routes; |
examples/form-validation/src/components/StrengthMeter.js | weaintplastic/react-sketchapp | /* @flow */
import React from 'react';
import { View, Text } from 'react-primitives';
import { colors, fontFamily, spacing, typeRamp } from '../designSystem';
type Props = {
password: string,
};
const strengths = {
short: {
width: 75,
label: 'Too short',
backgroundColor: colors.Rose,
},
fair: {
... |
src/routes/Home/components/Homepage/Homepage.js | sachinisilva/ganu-denu | import React from 'react'
import MainSectionContainer from '../../containers/MainSectionContainer'
export const Homepage = () => {
return <div>
<MainSectionContainer />
</div>
}
export default Homepage
|
tests/lib/rules/indent.js | pmcelhaney/eslint | /**
* @fileoverview This option sets a specific tab width for your code
* @author Dmitriy Shekhovtsov
* @author Gyandeep Singh
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------... |
node_modules/react-bootstrap/src/ButtonGroup.js | gitoneman/react-home | import React from 'react';
import classSet from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const ButtonGroup = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
vertical: React.PropTypes.bool,
justified: React.PropTypes.bool
},
getDefaultProps() {
return {
bsClas... |
app/common/utils/domUtils.js | gitoneman/home-es6 | import React from 'react';
/**
* Get elements owner document
*
* @param {ReactComponent|HTMLElement} componentOrElement
* @returns {HTMLElement}
*/
function ownerDocument(componentOrElement) {
let elem = React.findDOMNode(componentOrElement);
return (elem && elem.ownerDocument) || document;
}
/**
* Shortcut... |
dashboard-ui/app/components/drawer/cloudFile.js | CloudBoost/cloudboost | /* eslint-disable no-undef
*/
import React from 'react';
import { Card, CardHeader, CardMedia, CardTitle, CardText } from 'material-ui/Card';
class CloudFile extends React.Component {
constructor () {
super();
this.state = {};
}
copyToClipboard = (element) => () => {
var $temp = $('<input>');
$... |
src/routes/content/index.js | koistya/react-starter-kit | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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 Content from './Content'... |
ui/src/main/js/components/Layout.js | rdelval/aurora | import React from 'react';
import Icon from 'components/Icon';
import { addClass } from 'utils/Common';
export function ContentPanel({ children }) {
return <div className='content-panel'>{children}</div>;
}
export function StandardPanelTitle({ title }) {
return <div className='content-panel-title'>{title}</div>... |
app/components/AppListView/index.js | czy0729/react-alumni | /**
* AppListView
*
* 17-02-17 变得可以不传section
* 17-03-17 数组为空时渲染提示为空
*
* @Date: 2017-02-02 15:58:37
* @Last Modified by: Administrator
* @Last Modified time: 2017-03-31 04:45:54
*/
'use strict';
import React from 'react';
import classNames from 'classnames';
import { ListView } from 'antd-mobile';
import A... |
src/svg-icons/image/camera-roll.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCameraRoll = (props) => (
<SvgIcon {...props}>
<path d="M14 5c0-1.1-.9-2-2-2h-1V2c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1v1H4c-1.1 0-2 .9-2 2v15c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2h8V5h-8zm-2 13h-2v-2h2v2zm0-9h-2V7h... |
Libraries/Text/Text.js | tgoldenberg/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
src/routes/Editor/components/SignupsTab.js | peksi/ilmomasiina | import React from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import ReactTable from 'react-table';
import 'react-table/react-table.css';
import '../Editor.scss';
class SignupsTab extends React.Component {
static propTypes = {
onDataChange: PropTypes.func.isRequired,
event: PropTypes... |
src/interface/icons/Cross.js | anom0ly/WoWAnalyzer | import React from 'react';
// https://thenounproject.com/term/cross/1147331/
// Created by Andrey from the Noun Project
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="15 15 70 70" className="icon stroke" {...other}>
<g style={{ strokeLinecap: 'round', strokeMiterlimit: 10, stro... |
test/integration/production/pages/dynamic/bundle.js | callumlocke/next.js | import React from 'react'
import dynamic from 'next/dynamic'
import Router from 'next/router'
import PropTypes from 'prop-types'
const HelloBundle = dynamic({
modules: (props) => {
const components = {
HelloContext: import('../../components/hello-context'),
Hello1: import('../../components/hello1')
... |
src/components/UserApp.react.js | igorsvee/react-relay-isomorphic-example | import React from 'react';
import Relay from 'react-relay';
import {Link} from 'react-router';
import css from './UserApp.css'
import styleable from 'react-styleable'
import autobind from 'autobind-decorator'
import {withRouter} from 'react-router'
import {setRelayVariables, forceFetch, checkResponseOk} from'../util... |
example/example-react/src/components/Infos/Purchasable/Purchasable.js | kesslerdev/quarkit | import React from 'react'
import { connect } from 'react-redux'
import HumanizeDuration from 'humanize-duration'
import '@material/list/dist/mdc.list.css'
import Purchase from './Purchase'
import LevelUp from './LevelUp'
import ResourceBag from '../Resource/ResourceBag'
import './Purchasable.css'
const Purchasable = ... |
src/svg-icons/image/crop-free.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropFree = (props) => (
<SvgIcon {...props}>
<path d="M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2zm2 10H3v4c0 1.1.9 2 2 2h4v-2H5v-4zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2z"/>
</SvgIco... |
src/components/Player/Player.js | Gouthamve/BINS-FRONT | import React from 'react';
import { connect } from 'react-redux'
var RCslider = require('rc-slider');
import styles from './player.scss';
import {actions as audioActions} from 'redux/modules/audio';
function log(value) {
console.log(value);
}
const mapStateToProps = (state) => {
return {
audio: state.audio
... |
src/js/drinks/addDrink.js | globin/drinkup | import React from 'react';
import { RaisedButton, TextField } from 'material-ui';
import ValueLink from '../utils/valueLink';
import Drink from './drink';
import DrinkActions from './drinkActions';
@ValueLink
class AddDrink extends React.Component {
state = {
name: '',
price: '',
};
rende... |
src/svg-icons/image/loupe.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLoupe = (props) => (
<SvgIcon {...props}>
<path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.49 2 2 6.49 2 12s4.49 10 10 10h8c1.1 0 2-.9 2-2v-8c0-5.51-4.49-10-10-10zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.... |
test/test_helper.js | nicolasmsg/react-blog | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
src/components/common/svg-icons/action/info-outline.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionInfoOutline = (props) => (
<SvgIcon {...props}>
<path d="M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zM11 9h... |
src/views/pages/sign-in/sign-in-page.js | r-park/todo-react-redux | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import { authActions } from 'src/auth';
import Button from 'src/views/components/button';
import './sign-in-page.css';
const SignInPage = ({signInWithGithub, signInWith... |
docs/pages/blog/spotlight-damien-tassone.js | lgollut/material-ui | import React from 'react';
import TopLayoutBlog from 'docs/src/modules/components/TopLayoutBlog';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'blog/spotlight-damien-tassone';
const requireRaw = require.context('!raw-loader!./', false, /spotlight-damien-tassone\.md$/);
... |
web/test/feedback/components/Privacy.js | trendmicro/serverless-survey-forms | import DomMock from '../../helpers/dom-mock';
import expect from 'expect';
import React from 'react';
import TestUtils from 'react-dom/test-utils';
import Privacy from '../../../src/components/Privacy';
DomMock('<html><body></body></html>');
describe('[Feedback] Testing Privacy Component', () => {
const info = {... |
app/jsx/external_apps/components/ExternalToolsTable.js | venturehive/canvas-lms | /*
* Copyright (C) 2014 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
examples/huge-apps/components/Dashboard.js | jeffreywescott/react-router | import React from 'react';
import { Link } from 'react-router';
class Dashboard extends React.Component {
render () {
var { courses } = this.props;
return (
<div>
<h2>Super Scalable Apps</h2>
<p>
Open the network tab as you navigate. Notice that only the amount of
y... |
packages/react-instantsearch-dom/src/components/Snippet.js | algolia/react-instantsearch | import React from 'react';
import { createClassNames } from '../core/utils';
import Highlighter from './Highlighter';
const cx = createClassNames('Snippet');
const Snippet = (props) => (
<Highlighter {...props} highlightProperty="_snippetResult" cx={cx} />
);
export default Snippet;
|
src/components/VolunteerRow/VolunteerRow.js | noamr/volunteers | import React, { Component } from 'react';
import {Modal, Button} from 'react-bootstrap';
import update from 'immutability-helper';
import DropdownFilter from '../DropdownFilter/DropdownFilter.js';
import VolunteerEditModal from '../VolunteerEditModal/VolunteerEditModal.js';
export default class VolunteerRow extends C... |
test/unit/__helpers__/renderWithTheme.js | LN-Zap/zap-desktop | import React from 'react'
import { ThemeProvider } from 'styled-components'
import renderer from 'react-test-renderer'
import { dark } from 'themes'
export const renderWithTheme = component => {
return renderer.create(<ThemeProvider theme={dark}>{component}</ThemeProvider>)
}
|
examples/src/app.js | jaakerisalu/react-select | /* eslint react/prop-types: 0 */
import React from 'react';
import Select from 'react-select';
import CustomRenderField from './components/CustomRenderField';
import MultiSelectField from './components/MultiSelectField';
import RemoteSelectField from './components/RemoteSelectField';
import SelectedValuesField from '... |
docs/components/Header/Header.js | shengnian/shengnian-ui | import React from 'react'
import { IndexLink, Link } from 'react-router'
import './Header.scss'
export const Header = () => (
<div>
<h1>React Redux Starter Kit</h1>
<IndexLink to='/' activeClassName='route--active'>
Home
</IndexLink>
{' · '}
<Link to='/counter' activeClassName='route--activ... |
lib/Components/Date.js | becs919/weatherly | import React, { Component } from 'react';
class Date extends Component {
render() {
return (
<h3 tabIndex='0' className='hourly-title'>
{ this.props.weekday },
{ this.props.month }
{ this.props.date }
</h3>
);
}
}
export default Date;
|
PeerAI/src/UserProfileComponentScreen.js | peerism/peer.ai | import React, { Component } from 'react';
import { StyleSheet, ScrollView, View } from 'react-native';
import UserProfileSummaryComponent from './UserProfileSummaryComponent';
import TabBarComponent from './TabBarComponent';
import data from '../data/usersData.json';
export default class CandidateListComponentScreen e... |
lens-ui/app/components/LoginComponent.js | sushrutikhar/grill | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not... |
test/specs/elements/List/ListItem-test.js | vageeshb/Semantic-UI-React | import _ from 'lodash'
import faker from 'faker'
import React from 'react'
import * as common from 'test/specs/commonTests'
import { sandbox } from 'test/utils'
import ListItem from 'src/elements/List/ListItem'
import ListContent from 'src/elements/List/ListContent'
describe('ListItem', () => {
common.isConformant(... |
node_modules/react-native-svg/elements/Rect.js | weatherfordmat/YorViewReactNative | import React from 'react';
import './Path'; // must import Path first, don`t know why. without this will throw an `Super expression must either be null or a function, not undefined`
import createReactNativeComponentClass from 'react-native/Libraries/Renderer/src/renderers/native/createReactNativeComponentClass';
import... |
packages/component/src/Middleware/ActivityStatus/createTimestampMiddleware.js | billba/botchat | import React from 'react';
import AbsoluteTime from './AbsoluteTime';
import Timestamp from './Timestamp';
export default function createTimestampMiddleware() {
return () => () => (...args) => {
const [{ activity, hideTimestamp }] = args;
if (hideTimestamp) {
// If "hideTimestamp" is set, we will not... |
src/renderers/block/blockRendererFn.js | margox/braft-editor | import React from 'react';
import Image from 'renderers/atomics/Image';
import Video from 'renderers/atomics/Video';
import Audio from 'renderers/atomics/Audio';
import Embed from 'renderers/atomics/Embed';
import HorizontalLine from 'renderers/atomics/HorizontalLine';
import { getExtensionBlockRendererFns } from 'hel... |
packages/ringcentral-widgets-docs/src/app/pages/Components/LogIcon/index.js | ringcentral/ringcentral-js-widget | import React from 'react';
import { parse } from 'react-docgen';
import CodeExample from '../../../components/CodeExample';
import ComponentHeader from '../../../components/ComponentHeader';
import PropTypeDescription from '../../../components/PropTypeDescription';
import Demo from './Demo';
// eslint-disable-next-lin... |
client/index.js | caleb272/ProjectAccent | /**
* Client entry point
*/
import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import App from './App';
import { configureStore } from './store';
// Initialize store
const store = configureStore(window.__INITIAL_STATE__);
const mountApp = document.getEleme... |
frontend/tests/screens/selection-viewer/global-viewer/global-viewer.js | linea-it/qlf | import React from 'react';
import GlobalViewer from '../../../../src/screens/selection-viewer/global-viewer/global-viewer';
import { mount, configure } from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
configure({ adapter: new Adapter() });
describe('GlobalViewer', () => {
let globalViewer;
beforeEach... |
src/routes/Counter/components/Counter.js | loaclhostjason/react-redux-admin | import React from 'react'
export const Counter = (props) => (
<div style={{ margin: '0 auto' }} >
<h2>Counter: {props.counter}</h2>
<button className='btn btn-default' onClick={props.increment}>
Increment
</button>
{' '}
<button className='btn btn-default' onClick={props.doubleAsync}>
... |
src/docs/design/WritingStyle.js | grommet/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import DocsArticle from '../../components/DocsArticle';
export default class WritingStyle extends Component {
render () {
return (
<DocsArticle title="Writing Style">
<section>
... |
src/components/control.js | sugerPocket/react-redux-2048 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import style from '../styles/control.sass';
export default class Control extends Component {
render() {
const { score } = this.props;
return (
<div className='control'>
<div className='heading clearfix'>
<h1... |
src/views/HomeView.js | Hortomatic/app-web | import React from 'react'
import { connect } from 'react-redux'
import { Link } from 'react-router'
import { actions as counterActions } from '../redux/modules/counter'
import styles from './HomeView.scss'
// We define mapStateToProps where we'd normally use
// the @connect decorator so the data requirements are clear... |
actor-apps/app-web/src/app/components/Login.react.js | JamesWatling/actor-platform | import _ from 'lodash';
import React from 'react';
import classNames from 'classnames';
import { Styles, RaisedButton, TextField } from 'material-ui';
import { AuthSteps } from '../constants/ActorAppConstants';
import LoginActionCreators from '../actions/LoginActionCreators';
import LoginStore from '../stores/LoginS... |
app/static/src/performer/TestTypeResultForm_modules/NewFuranTestForm.js | vsilent/Vision | import React from 'react';
import FormControl from 'react-bootstrap/lib/FormControl';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import Button from 'react-bootstrap/lib/Button';
import Checkbox from 'react-bootstrap/lib/Checkbox';
import ControlLabel from 'react-bootstrap/lib/ControlLabel';
import {findDOMN... |
src/icons/GlyphSearch.js | ipfs/webui | import React from 'react'
const GlyphSearch = props => (
<svg viewBox='0 0 100 100' {...props}>
<path d='M80.27 73.51L65 58.22a25.8 25.8 0 1 0-7.28 6.91l15.45 15.48a4.77 4.77 0 0 0 6.73 0l.37-.36a4.78 4.78 0 0 0 0-6.74zM24.15 43.35a19.93 19.93 0 1 1 19.92 19.86 19.91 19.91 0 0 1-19.92-19.86z' />
</svg>
)
expo... |
packages/showcase/examples/candlestick/candlestick-example.js | uber/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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.