target
stringlengths
5
300
feat_repo_name
stringlengths
6
76
text
stringlengths
26
1.05M
src/layout.js
aaronmccall/labelr-workable
import app from 'ampersand-app' import React from 'react' import localLinks from 'local-links' import ampersandMixin from 'ampersand-react-mixin' export default React.createClass({ displayName: 'Layout', mixins: [ampersandMixin], onClick (event) { const pathname = localLinks.getLocalPathname(event) if...
spec/javascripts/jsx/blueprint_courses/components/BlueprintLockOptionsSpec.js
djbender/canvas-lms
/* * Copyright (C) 2017 - 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...
sketch/src/components/DataPreview.js
preciousforever/sketch-data-populator
import React from 'react' import './DataPreview.scss' import Strings, * as STRINGS from '@data-populator/core/strings' import classNames from 'classnames' import ReactDOM from 'react-dom' import $ from 'jquery' class DataPreview extends React.Component { constructor() { super() this.state = { // needT...
src/svg-icons/action/perm-phone-msg.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermPhoneMsg = (props) => ( <SvgIcon {...props}> <path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.2...
src/public/js/adminlte/plugins/ckeditor/skins/bootstrapck/sample/js/jquery-1.11.0.min.js
azatkama/adminka
!function(o,ea){"object"==typeof module&&"object"==typeof module.exports?module.exports=o.document?ea(o,!0):function(o){if(!o.document)throw Error("jQuery requires a window with a document");return ea(o)}:ea(o)}("undefined"!=typeof window?window:this,function(o,ea){function Ba(a){var b=a.length,d=c.type(a);return"func...
static/src/containers/Root.js
detailyang/cas-server
/** * @Author: BingWu Yang <detailyang> * @Date: 2016-03-11T19:48:51+08:00 * @Email: detailyang@gmail.com * @Last modified by: detailyang * @Last modified time: 2016-04-21T00:31:13+08:00 * @License: The MIT License (MIT) */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import { R...
src/pages/about.js
jameslutley/jameslutley.com
import React from 'react' import Link from 'gatsby-link' const AboutPage = () => ( <div> <h1>About</h1> <p>Welcome to about page</p> <Link to="/">Go back to the homepage</Link> </div> ) export default AboutPage
public/docs/api/latest/@stdlib/stats/base/dstdevtk/benchmark_bundle.js
stdlib-js/www
// modules are defined as an array // [ module function, map of requireuires ] // // map of requireuires is short require name -> numeric require // // anything defined in a previous bundle is accessed via the // orig method which is the requireuire for previous bundles (function outer (modules, cache, entry) { //...
client/src/components/shared/Info/Item.js
verejnedigital/verejne.digital
// @flow import React from 'react' import type {Node} from 'react' import ExternalLink from '../ExternalLink' import './Item.css' type ItemProps = {| children?: Node, label?: string, url?: string, linkText?: Node, |} const Item = ({children, label, url, linkText}: ItemProps) => ( <li className="info-item">...
Libraries/Components/TextInput/TextInput.js
christopherdro/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...
test/ButtonInputSpec.js
coderstudy/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ButtonInput from '../src/ButtonInput'; import {shouldWarn} from './helpers'; describe('ButtonInput', () =>{ it('renders an input button element with type=button', function () { const instance = ReactTestUtils.renderIntoDocum...
lib/Navigation/Tabs/tabFive/views/TabFiveNavigation.js
Ezeebube5/Nairasense
// React import React from 'react'; // Redux import { connect } from 'react-redux'; // Icon import Icon from 'react-native-vector-icons/FontAwesome'; // Navigation import { addNavigationHelpers } from 'react-navigation'; import { NavigatorTabFive } from '../navigationConfiguration'; class TabFiveNavigation extends Re...
ajax/libs/rxjs/2.2.28/rx.all.js
icco/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false }; v...
src/modules/AppRouter.js
Lapanti/golf-scorebook
/*eslint-disable react/prop-types*/ import React from 'react'; import CounterViewContainer from './counter/CounterViewContainer'; import ColorViewContainer from './colors/ColorViewContainer'; import PlayViewContainer from './play/PlayViewContainer'; /** * AppRouter is responsible for mapping a navigator scene to a v...
app/javascript/mastodon/components/autosuggest_input.js
Ryanaka/mastodon
import React from 'react'; import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container'; import AutosuggestEmoji from './autosuggest_emoji'; import AutosuggestHashtag from './autosuggest_hashtag'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from...
src/templates/post-template.js
hb-gatsby/gatsby-starter-lumen
// @flow strict import React from 'react'; import { graphql } from 'gatsby'; import Layout from '../components/Layout'; import Post from '../components/Post'; import { useSiteMetadata } from '../hooks'; import type { MarkdownRemark } from '../types'; type Props = { data: { markdownRemark: MarkdownRemark } }; ...
jenkins-design-language/src/js/components/material-ui/svg-icons/maps/restaurant.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const MapsRestaurant = (props) => ( <SvgIcon {...props}> <path d="M11 9H9V2H7v7H5V2H3v7c0 2.12 1.66 3.84 3.75 3.97V22h2.5v-9.03C11.34 12.84 13 11.12 13 9V2h-2v7zm5-3v8h2.5v8H21V2c-2.76 0-5 2.24-5 4z"/> </SvgIcon> ); MapsRestaurant.displayName = 'M...
anubis/ui/components/scratchpad/ScratchpadToolbarContainer.js
KawashiroNitori/Anubis
import _ from 'lodash'; import React from 'react'; import { connect } from 'react-redux'; import Icon from '../react/IconComponent'; import Toolbar, { ToolbarItemComponent as ToolbarItem, ToolbarButtonComponent as ToolbarButton, ToolbarSplitComponent as ToolbarSplit, } from './ToolbarComponent'; import i18...
src/components/main.js
ateixeira/andreteixeira.info
import React from 'react'; import { Link } from 'react-router'; import Cabecalho from './header'; const Main = React.createClass({ render() { return ( <div> <Cabecalho /> <div className="conteudo"> {this.props.children} </div>...
docs/app/Examples/collections/Form/GroupVariations/FormExampleEvenlyDividedGroup.js
mohammed88/Semantic-UI-React
import React from 'react' import { Form, Input } from 'semantic-ui-react' const FormExampleEvenlyDividedGroup = () => ( <Form> <Form.Group widths='equal'> <Form.Field> <label>First name</label> <Input placeholder='First name' /> </Form.Field> <Form.Field> <label>Middle n...
packages/mineral-ui-icons/src/IconContactMail.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconContactMail(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconPr...
test/DropdownButtonSpec.js
zerkms/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import DropdownButton from '../src/DropdownButton'; import MenuItem from '../src/MenuItem'; import DropdownMenu from '../src/DropdownMenu'; import Button from '../src/Button'; describe('DropdownButton', function () { let instance; a...
src/components/Feedback/Feedback.js
dongtong/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback extends Component { render() { return ( <div className="Feedback...
src/components/Dropdown/DropdownItem.js
nolawi/champs-dialog-sg
/** * Copyright 2017 dialog LLC <info@dlg.im> * @flow */ import React from 'react'; import classNames from 'classnames'; import styles from './Dropdown.css'; export type Props = { children?: any, active?: boolean, className?: string, onClick?: (event: SyntheticMouseEvent) => void }; function DropdownItem(...
app/js/components/FormFrameModal.js
niksoc/srmconnect
import React from 'react'; import GenericModal from './common/GenericModal'; import FormFrame from './common/FormFrame'; const FormFrameModal = (props) => { const formFrame = <FormFrame src={props.src} />; const tagForm = <FormFrame height="200px" src="/api/create/tag" />; const form = <div>{formFrame}<hr...
ajax/libs/angular-google-maps/1.0.0/angular-google-maps.js
Teino1978-Corp/Teino1978-Corp-cdnjs
/**! * The MIT License * * Copyright (c) 2010-2013 Google, Inc. http://angularjs.org * * 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 limitati...
admin/client/App/screens/Item/components/EditFormHeader.js
w01fgang/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import { connect } from 'react-redux'; import Toolbar from './Toolbar'; import ToolbarSection from './Toolbar/ToolbarSection'; import EditFormHeaderSearch from './EditFormHeaderSearch'; import { Link } from 'react-router'; import Drilldown from './Dr...
ajax/libs/thorax/2.2.0/thorax-combined.js
advancedpartnerships/cdnjs
/*! * jQuery JavaScript Library v1.9.0 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-1-14 */ (function( window, undefined ) { "use strict";...
packages/react-codemod/test/class-test.js
demohi/react
'use strict'; var React = require('React'); var Relay = require('Relay'); var Image = require('Image.react'); /* * Multiline */ var MyComponent = React.createClass({ getInitialState: function() { var x = this.props.foo; return { heyoo: 23, }; }, foo: function() { this.setState({heyoo: ...
src/parser/shared/modules/items/bfa/dungeons/GalecallersBoon.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS/index'; import ITEMS from 'common/ITEMS/index'; import Analyzer from 'parser/core/Analyzer'; import { formatPercentage, formatNumber } from 'common/format'; import { calculateSecondaryStatDefault } from 'common/stats'; import Abilities from 'parser/core/modu...
scripts/Input.js
rachardking/react-lofty
import React from 'react'; import classNames from 'classnames'; import validator from 'validator'; import validationMessage './validationMessage'; import Base from './Base'; import addons from 'react/addons'; class Input extends Base { constructor(props) { super(props); this.state = { ...
ajax/libs/react/0.5.1/react-with-addons.min.js
gaearon/cdnjs
/** * React (with addons) v0.5.1 * * Copyright 2013 Facebook, Inc. * * 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 require...
index.android.js
msalem07/LectureRecorder
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import App from './src/app'; import Header from './src/components/common/Header'; import FileList from './src/co...
docs/client/components/pages/Anchor/CustomInlineToolbarEditor/index.js
dagopert/draft-js-plugins
import React, { Component } from 'react'; import Editor, { createEditorStateWithText } from 'draft-js-plugins-editor'; import createInlineToolbarPlugin from 'draft-js-inline-toolbar-plugin'; import createLinkPlugin from 'draft-js-anchor-plugin'; import { ItalicButton, BoldButton, UnderlineButton, } from 'draft-js...
docs/src/pages/components/snackbars/SimpleSnackbar.js
mbrookes/material-ui
import * as React from 'react'; import Button from '@material-ui/core/Button'; import Snackbar from '@material-ui/core/Snackbar'; import IconButton from '@material-ui/core/IconButton'; import CloseIcon from '@material-ui/icons/Close'; export default function SimpleSnackbar() { const [open, setOpen] = React.useState(...
ajax/libs/preact/4.3.1/preact.js
menuka94/cdnjs
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global.preact = factory()); }(this, function () { 'use strict'; function VNode(nodeName, attributes, children) { /** @type...
app/components/Which2.js
gidich/votrient-kiosk
import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './Which2.css'; export default class Which2 extends Component { render() { return ( <div className={styles.container}> <Link to="/" className={styles.home}></Link> <Link to="/Which" classNa...
ajax/libs/yui/3.18.1/event-focus/event-focus-min.js
bspaulding/cdnjs
YUI.add("event-focus",function(e,t){function u(t,r,u){var a="_"+t+"Notifiers";e.Event.define(t,{_useActivate:o,_attach:function(i,s,o){return e.DOM.isWindow(i)?n._attach([t,function(e){s.fire(e)},i]):n._attach([r,this._proxy,i,this,s,o],{capture:!0})},_proxy:function(t,r,i){var s=t.target,f=t.currentTarget,l=s.getData(...
spec/components/chip.js
VACO-GitHub/vaco-components-library
import React from 'react'; import Avatar from '../../components/avatar'; import Chip from '../../components/chip'; import style from '../style'; class ChipTest extends React.Component { state = { deleted: false }; handleDeleteClick = () => { this.setState({ deleted: true }); }; render () ...
client/src/javascript/components/sidebar/TransferRateGraph.js
stephdewit/flood
import d3 from 'd3'; import PropTypes from 'prop-types'; import React from 'react'; import EventTypes from '../../constants/EventTypes'; import TransferDataStore from '../../stores/TransferDataStore'; const METHODS_TO_BIND = [ 'appendGraphCircles', 'appendEmptyGraphShapes', 'handleTransferHistoryChange', 'han...
packages/material-ui-icons/src/MoreHorizSharp.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2...
client/app/scripts/components/node-details/node-details-table-node-link.js
dilgerma/scope
import React from 'react'; import ReactDOM from 'react-dom'; import { connect } from 'react-redux'; import { clickRelative } from '../../actions/app-actions'; class NodeDetailsTableNodeLink extends React.Component { constructor(props, context) { super(props, context); this.handleClick = this.handleClick.bi...
src/mui/list/FilterForm.spec.js
azureReact/AzureReact
import assert from 'assert'; import { render } from 'enzyme'; import React from 'react'; import { createStore } from 'redux'; import { Provider } from 'react-redux'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import TranslationProvider f...
src/containers/billing/index.js
Storj/metadisk-gui
import React, { Component } from 'react'; import { connect } from 'react-apollo'; import { hashHistory } from 'react-router'; import client from 'utils/api-client'; import gql from 'graphql-tag'; import moment from 'moment'; import BalancePanel from 'components/billing/balance-panel'; import PaymentInfoPanel from 'comp...
ajax/libs/angular.js/0.9.6/angular-scenario.js
angular-ui/cdnjs
/*! * jQuery JavaScript Library v1.4.2 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
src/packages/recompose/__tests__/setPropTypes-test.js
acdlite/recompose
import React from 'react' import PropTypes from 'prop-types' import { setPropTypes } from '../' test('setPropTypes sets a static property on the base component', () => { const BaseComponent = () => <div /> const NewComponent = setPropTypes({ foo: PropTypes.object })(BaseComponent) expect(NewComponent.propTypes)...
src/pages/ImdbPage.js
hadynz/pact-testing-example
import React, { Component } from 'react'; import TopMovies from '../components/TopMovies'; import SearchMovies from '../components/SearchMovies'; class ImdbPage extends Component { render() { return ( <div className="panel panel-default"> <SearchMovies /> <TopMovies names={['Blade runner',...
src/layouts/CoreLayout/CoreLayout.js
Lily418/Realtime-News-Client
import React from 'react' import Header from '../../components/Header' import './CoreLayout.scss' import '../../styles/core.scss' export const CoreLayout = ({ children }) => ( <div className='container text-center'> <Header /> <div className='core-layout__viewport'> {children} </div> </div> ) Co...
frontend/modules/browse/components/Pagination.js
RyanNoelk/OpenEats
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import { Link } from 'react-router-dom' const Pagination = ({ offset, limit, count, buildUrl }) => { offset = offset ? parseInt(offset) : 0; limit = limit ? parseInt(limit) : 0; count = count ? parseInt(count) : 0; ...
ajax/libs/forerunnerdb/1.3.749/fdb-core+persist.js
wout/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
src/signIn/index.js
marchisbogdan/licenta-front
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import s from './style.css'; import Login from '../../components/Login'; import Layout from '../../components/Layout'; import * as operatorCredentials from '../intro/index.md'; import pageProps from "../pageProps.json"; import ...
seeds/node_modules/react-router/es/routerWarning.js
Vincent-yz/react-creater
import warning from 'warning'; var warned = {}; export default function routerWarning(falseToWarn, message) { // Only issue deprecation warnings once. if (message.indexOf('deprecated') !== -1) { if (warned[message]) { return; } warned[message] = true; } message = '[react-router] ' + messag...
src/App.js
bytewiz/react-horizon-rethinkdb
import React, { Component } from 'react'; import Horizon from '@horizon/client'; // Specify the host property for initializing the Horizon connection const horizon = Horizon({host: 'localhost:8181'}); const chat = horizon('messages'); import ChatContainer from './components/ChatContainer'; // all component styles const...
src/ReactHOC.js
talee/react-hoc
import React from 'react' import Renderable from './Renderable' // Goals // - Do not unmount templates unless rendering a new template in the same place // - Given views, render them into a template // - Allow communication between views per template // - One render per data requirements received. No nested renders tr...
client/scripts/components/user/travel-log/back-to-dash-board-button/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program 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, either version 3 of the Lic...
app/components/ToggleOption/index.js
Cherchercher/Wedding-Llama
/** * * ToggleOption * */ import React from 'react'; import { injectIntl, intlShape } from 'react-intl'; const ToggleOption = ({ value, message, intl }) => ( <option value={value}> {message ? intl.formatMessage(message) : value} </option> ); ToggleOption.propTypes = { value: React.PropTypes.string.isRequir...
app/javascript/mastodon/features/getting_started/index.js
pixiv/mastodon
import React from 'react'; import Column from '../ui/components/column'; import ColumnLink from '../ui/components/column_link'; import ColumnSubheading from '../ui/components/column_subheading'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import Prop...
scripts/jest/preprocessor.js
billfeller/react
'use strict'; const path = require('path'); const babel = require('@babel/core'); const coffee = require('coffee-script'); const tsPreprocessor = require('./typescript/preprocessor'); const createCacheKeyFunction = require('fbjs-scripts/jest/createCacheKeyFunction'); const pathToBabel = path.join( require.resolve...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/material-ui/svg-icons/notification/more.js
bhathiya/test
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('../../SvgIcon'); var _SvgIcon2 = _interopRequireDe...
ajax/libs/react/0.9.0/react.min.js
kartikrao31/cdnjs
/** * React v0.9.0 * * Copyright 2013-2014 Facebook, Inc. * * 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 appl...
ajax/libs/react-instantsearch/6.0.0-beta.0/Connectors.js
joeyparrish/cdnjs
/*! React InstantSearch 6.0.0-beta.0 | © Algolia, inc. | https://github.com/algolia/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], facto...
app/javascript/mastodon/features/ui/components/column_subheading.js
tootsuite/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const ColumnSubheading = ({ text }) => { return ( <div className='column-subheading'> {text} </div> ); }; ColumnSubheading.propTypes = { text: PropTypes.string.isRequired, }; export default ColumnSubheading;
src/core/LoginLogout/component.js
dlennox24/ricro-app-template
import Avatar from '@material-ui/core/Avatar'; import CircularProgress from '@material-ui/core/CircularProgress'; import Portal from '@material-ui/core/Portal'; import Snackbar from '@material-ui/core/Snackbar'; import withStyles from '@material-ui/core/styles/withStyles'; import axios from 'axios'; import IconAccountC...
src/svg-icons/maps/directions-run.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsRun = (props) => ( <SvgIcon {...props}> <path d="M13.49 5.48c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-3.6 13.9l1-4.4 2.1 2v6h2v-7.5l-2.1-2 .6-3c1.3 1.5 3.3 2.5 5.5 2.5v-2c-1.9 0-3.5-1-4.3-2.4l...
example/components/Chart.js
woles/animated-3d-piechart
import React from 'react'; import piechart3D from '../../src'; function generateId() { const alphabet = 'abcdefghijklmnopqrstuvwxyz'; let id = ''; for (let i = 2; i >= 0; i -= 1) { id += (alphabet[(Math.random() * alphabet.length).toFixed(0)]); } return id; } class Chart extends React.Component { st...
packages/material-ui-icons/src/HeadsetSharp.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M11.4 1.02C6.62 1.33 3 5.52 3 10.31V20h6v-8H5v-1.71C5 6.45 7.96 3.11 11.79 3 15.76 2.89 19 6.06 19 10v2h-4v8h6V10c0-5.17-4.36-9.32-9.6-8.98z" /> , 'HeadsetSharp');
icon-builder/tpl/SvgIcon.js
chrismcv/material-ui
import React from 'react'; import PureRenderMixin from 'react-addons-pure-render-mixin'; import SvgIcon from '{{{ muiRequireStmt }}}'; const {{className}} = React.createClass({ mixins: [PureRenderMixin], render() { return ( <SvgIcon {...this.props}> {{{paths}}} </SvgIcon> ); } }); ...
src/decorators/withViewport.js
lolilukia/Personal-gallery
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default si...
ajax/libs/6to5/1.12.21/browser.js
arasmussen/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return...
docs/app/Examples/elements/Button/Types/ButtonExampleButton.js
ben174/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleButton = () => ( <Button> Click Here </Button> ) export default ButtonExampleButton
test/ButtonGroupSpec.js
RichardLitt/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ButtonGroup from '../src/ButtonGroup'; import Button from '../src/Button'; import { shouldWarn } from './helpers'; describe('ButtonGroup', function () { it('Should output a button group', function () { let instance = ReactTe...
ajax/libs/material-ui/5.0.0-alpha.19/legacy/NativeSelect/NativeSelectInput.min.js
cdnjs/cdnjs
import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutProperties from"@babel/runtime/helpers/esm/objectWithoutProperties";import*as React from"react";import PropTypes from"prop-types";import clsx from"clsx";import{refType}from"@material-ui/utils";import capitalize from"../utils/capitalize";var N...
src/components/helpers/difficulty.js
cognostics/serlo-abc
import React from 'react'; export const createWithDifficulty = generateDifficulty => C => { const difficulty = generateDifficulty(); const WithDifficultyComponent = props => ( <C {...props} difficulty={difficulty} /> ); return WithDifficultyComponent; }; // TODO: fancy logic const difficultyGenerator = ...
packages/ringcentral-widgets-docs/src/app/pages/Components/CallCtrlPanel/Demo.js
u9520107/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import CallCtrlPanel from 'ringcentral-widgets/components/CallCtrlPanel'; const props = {}; props.nameMatches = []; props.fallBackName = 'test string'; props.currentLocale = 'en-US'; props.recordStatus = 'test string'; props.onMute = () => null; props.onUnmute = (...
ajax/libs/vis/3.1.0/vis.js
szimek/cdnjs
/** * vis.js * https://github.com/almende/vis * * A dynamic, browser-based visualization library. * * @version 3.1.0 * @date 2014-07-22 * * @license * Copyright (C) 2011-2014 Almende B.V, http://almende.com * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file e...
docs/src/app/components/pages/components/Card/ExampleExpandable.js
mmrtnz/material-ui
import React from 'react'; import {Card, CardActions, CardHeader, CardText} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; const CardExampleExpandable = () => ( <Card> <CardHeader title="Without Avatar" subtitle="Subtitle" actAsExpander={true} showExpandableButt...
user_guide/searchindex.js
mackythegreat/gaea
Search.setIndex({envversion:42,terms:{file_upload:11,some_librari:132,yellow:[6,136],poorli:96,four:[156,92,57,142,58,132,128,134,131],ofb:83,prefix:[],oldest:134,hate:138,optimize_databas:79,forget:[54,109],whose:32,accur:[0,32,121,158,45,99],aug:96,my_control:[107,117],site_url:[85,102,24,7,32],filename_pi:107,swap:[...
src/js/services/spotify/actions.js
jaedb/Iris
import React from 'react'; import { arrayOf } from '../../util/arrays'; import { generateGuid, getFromUri, uriType, upgradeSpotifyPlaylistUris, } from '../../util/helpers'; import { formatCategory, formatCategories, formatTracks, formatPlaylist, formatPlaylists, formatUser, formatAl...
ajax/libs/F2/1.2.1/f2.min.js
simevidas/cdnjs
/*! F2 - v1.2.1 - 08-08-2013 - See below for copyright and license */ (function(exports){if(!exports.F2||exports.F2_TESTING_MODE){/*! JSON.org requires the following notice to accompany json2: Copyright (c) 2002 JSON.org http://json.org Permission is hereby granted, free of charge, to any person obta...
ui/src/main/js/components/Navigation.js
apache/aurora
import React from 'react'; import { Link } from 'react-router-dom'; export default function Navigation({ fluid }) { return ( <nav className='navbar'> <div className={fluid ? 'container-fluid' : 'container'}> <div className='navbar-header'> <Link className='navbar-brand' to='/scheduler'> ...
node_modules/react-icons/ti/edit.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const TiEdit = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m35.9 8.9l-4.8-4.8c-0.5-0.5-1.1-0.8-1.7-0.8-0.7 0-1.3 0.3-1.8 0.8l-5.9 5.9h-15c-1 0-1.7 0.7-1.7 1.7v21.6c0 1 0.8 1.7 1.7 1.7h21.6c1 0 1.7-0.7 1.7-1.7v-15l5.9-5.9c0.5-0.5...
packages/react/components/toolbar.js
iamxiaoma/Framework7
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js'; import __reactComponentSlots from '../runtime-helpers/react-component-slots.js'; import __reactComponentSetProps from '.....
src/svg-icons/communication/portable-wifi-off.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPortableWifiOff = (props) => ( <SvgIcon {...props}> <path d="M17.56 14.24c.28-.69.44-1.45.44-2.24 0-3.31-2.69-6-6-6-.79 0-1.55.16-2.24.44l1.62 1.62c.2-.03.41-.06.62-.06 2.21 0 4 1.79 4 4 0 .21-.02....
src/index.js
ijones16/gistyNotetaker
import React from 'react'; import Root from './containers/Root'; React.render(<Root />, document.getElementById('root'));
src/components/form/index.js
nai888/langua
import React from 'react' import PropTypes from 'prop-types' import styles from './form.module.sass' const Form = ({ name, children }) => ( <form name={name} className={styles.form}> {children} </form> ) Form.propTypes = { name: PropTypes.string, children: PropTypes.oneOfType([ PropTypes.string, ...
flow-typed/npm/eslint-config-airbnb_vx.x.x.js
sk222sw/odin-react
// flow-typed signature: 158a4d33acd27919ceb297eb4b4921e2 // flow-typed version: <<STUB>>/eslint-config-airbnb_v^13.0.0/flow_v0.37.4 /** * This is an autogenerated libdef stub for: * * 'eslint-config-airbnb' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to shar...
src/ListItem/__tests__/ListItem_test.js
react-fabric/react-fabric
import React from 'react' import { render, mount } from 'enzyme' import test from 'tape' import ListItem from '..' import ListItemAction from '../ListItemAction.js' test('ListItem', t => { t.ok(ListItem, 'export') t.equal(ListItem.Action, ListItemAction, '.Action export') t.equal(ListItem.displayName, 'FabricCo...
src/svg-icons/maps/local-taxi.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalTaxi = (props) => ( <SvgIcon {...props}> <path d="M18.92 6.01C18.72 5.42 18.16 5 17.5 5H15V3H9v2H6.5c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.4...
src/js/components/List.js
odedre/grommet-final
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import SpinningIcon from './icons/Spinning'; import InfiniteScroll from '../utils/InfiniteScroll'; import Selection from '../utils/Sele...
app/dist/bundle.js
mingkang1993/blogs
/******/ (function(modules) { // webpackBootstrap /******/ var parentHotUpdateCallback = this["webpackHotUpdate"]; /******/ this["webpackHotUpdate"] = /******/ function webpackHotUpdateCallback(chunkId, moreModules) { // eslint-disable-line no-unused-vars /******/ hotAddUpdateChunk(chunkId, moreModules); /****...
internals/templates/containers/HomePage/index.js
iFatansyReact/react-boilerplate-imagine
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
client/src/containers/UsersContainer.js
Studentmediene/Brukerdatabase
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import Users from '../components/Users'; import * as Actions from '../actionCreators/users'; class UsersContainer extends React.Component { componentWillMount() { this.props.actions.fetchAllUsers(); }...
src/routes/catalog/Panel/Panel.js
pustovitDmytro/maysternya
import React from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Panel.css'; import cx from 'classnames'; //function returns width of the i-th picture let elemW = function(n,i, prob=0.05,kof=1.3){ if (n==1) return 100; if (n>4) kof = 1.1; return 100*Math.pow(kof,i)*((k...
ajax/libs/react-router/0.7.0/react-router.min.js
yogeshsaroya/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.ReactRouter=e()}}(function(){var define;return functi...
shared/components/CategoryHome.js
AndrewGibson27/react-webpack-express-isomorphic-boilerplate
import React, { Component } from 'react'; import { connect, PromiseState } from 'react-refetch'; import { Route, NavLink } from 'react-router-dom'; import StoryList from './StoryList'; import asyncComponent from '../utils/asyncComponent'; import { GridRow, ColumnThree } from '../styles/grid'; function stripCategorySl...
src/components/app.js
Darth-koder007/reactify
/** * React component import */ import React, { Component } from 'react'; /** * Custom component import */ import SearchBar from './search_bar'; import ListView from './list_view'; import ItemDetail from './item_detail'; const REFRESH_TOKEN = 'AQCo-tf2_-1SIPcJm06vDO-tPv7FaEWQIHbYwXRSLuicEVf2Eg4UMCxD-YhJOZNoDvigr3...
src/AppBar/AppBar.spec.js
lawrence-yu/material-ui
/* eslint-env mocha */ import React from 'react'; import {spy} from 'sinon'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import AppBar, {getStyles} from './AppBar'; import getMuiTheme from '../styles/getMuiTheme'; import IconButton from '../IconButton'; describe('<AppBar />', () => { const muiTheme ...
packages/mineral-ui-icons/src/IconDeleteSweep.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconDeleteSweep(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconPr...
src/docs/exampleComponents/ScatterChart/SimpleScatterChart.js
recharts/recharts.org
import React, { PureComponent } from 'react'; import { ScatterChart, Scatter, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer } from 'recharts'; const data = [ { x: 100, y: 200, z: 200 }, { x: 120, y: 100, z: 260 }, { x: 170, y: 300, z: 400 }, { x: 140, y: 250, z: 280 }, { x: 150, y: 400, z: 500 },...
app/js/index.js
UpStage-Community/upstage-web
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import store from 'store' import Routes from 'containers/routes' const app = document.getElementById('app') ReactDOM.render( <Provider store={store}> <Routes /> </Provider>, app )