path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/clappr/0.0.90/clappr.js | paleozogt/cdnjs | require=(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)... |
js/jquery.min.js | ZobsDope/coebot-www | /*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
lib/RecentCities.js | danalvarez5280/Weatherly | import React from 'react';
import Card from './Card';
export default function RecentCities(props) {
const myCities = JSON.parse(localStorage.getItem('recentCities')) || [];
const topFive = myCities.slice(0, 5);
const stringCities = JSON.stringify(topFive);
localStorage.setItem('recentCities', stringCities)... |
src/ModalFooter.js | westonplatter/react-bootstrap | import React from 'react';
import classNames from 'classnames';
class ModalFooter extends React.Component {
render() {
return (
<div
{...this.props}
className={classNames(this.props.className, this.props.modalClassName)}>
{this.props.children}
</div>
);
}
}
ModalFooter.... |
06/src/routes/index.js | arcthur/react-book-examples | import React from 'react';
import { Router, Route, IndexRoute } from 'react-router';
import Frame from '../layouts/Frame';
import Home from '../views/Home';
const routes = browserHistory => (
<Router history={browserHistory}>
<Route path="/" component={Frame}>
<IndexRoute component={Home} />
</Route>
... |
packages/material-ui-icons/src/AddToHomeScreenTwoTone.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M18 1.01L8 1c-1.1 0-2 .9-2 2v3h2V5h10v14H8v-1H6v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM10 15h2V8H5v2h3.59L3 15.59 4.41 17 ... |
components/shared/CodeEditor.js | CarbonStack/carbonstack | import React from 'react'
class CodeEditor extends React.PureComponent {
constructor (props) {
super(props)
this.onCodeMirrorChange = this.onCodeMirrorChange.bind(this)
}
componentDidMount () {
const { CodeMirror } = window
CodeMirror.modeURL = 'https://unpkg.com/codemirror@5.25.2/mode/%N/%N.js'... |
react/src/sui/PanelComponent.js | ineffablep/simple-ui | import React from 'react';
class Panel extends React.Component {
constructor(props) {
super(props);
this.handleClose = this.handleClose.bind(this);
this.state = { toggleVisible: true };
}
handleClose() {
this.setState(prevState => ({
toggleVisible: !prevState.tog... |
src/index.js | koden-km/sc-react-redux | import SC from 'soundcloud';
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import { Provider } from 'react-redux';
import configureStore from './stores/configureStore';
imp... |
share/hadoop/tools/sls/html/js/thirdparty/jquery.js | ZhangXFeng/hadoop | /*!
* jQuery JavaScript Library v1.10.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-03T13:48Z
*/
(function( window, undefined ) {
// ... |
src/svg-icons/av/videocam-off.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVideocamOff = (props) => (
<SvgIcon {...props}>
<path d="M21 6.5l-4 4V7c0-.55-.45-1-1-1H9.82L21 17.18V6.5zM3.27 2L2 3.27 4.73 6H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.21 0 .39-.08.54-.18L19.73 21 21 19.73 3... |
rojak-ui-web/src/app/result/DefaultResult.js | CodeRiderz/rojak | import React from 'react'
import ResultGateway from './ResultGateway'
import SearchEngine from '../utils/SearchEngine'
const DefaultResult = () => {
return (
<ResultGateway showIn={[/./]} hideIn={[/^(media)$/, /^(kandidat)$/, /^(pasangan)$/]}>
<SearchEngine />
</ResultGateway>
)
}
export default Def... |
src/components/Related/DomainEntriesOnStructure/test.js | ProteinsWebTeam/interpro7-client | // @flow
import React from 'react';
import ShallowRenderer from 'react-test-renderer/shallow';
import EntriesOnStructure from '.';
const renderer = new ShallowRenderer();
describe('<EntriesOnStructure />', () => {
test('should render', () => {
renderer.render(
<EntriesOnStructure
entries={[
... |
gadgets/nutrition/js/compiled/out/reagent/core.js | DavidYKay/davidykay.github.io | // Compiled by ClojureScript 0.0-3297 {}
goog.provide('reagent.core');
goog.require('cljs.core');
goog.require('reagent.impl.util');
goog.require('reagent.impl.component');
goog.require('reagent.interop');
goog.require('reagent.ratom');
goog.require('reagent.impl.template');
goog.require('reagent.impl.batching');
goog.... |
ajax/libs/video.js/5.0.0-rc.88/video.js | dhenson02/cdnjs | /**
* @license
* Video.js 5.0.0-rc.88 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*
* Includes vtt.js <https://github.com/mozilla/vtt.js>
* Available under Apache License... |
blueocean-material-icons/src/js/components/svg-icons/device/bluetooth-connected.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const DeviceBluetoothConnected = (props) => (
<SvgIcon {...props}>
<path d="M7 12l-2-2-2 2 2 2 2-2zm10.71-4.29L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1.88 1.88L13 9.59V5.83zm1.88 10.46L... |
ajax/libs/jQuery-Validation-Engine/2.6.4/jquery-1.8.2.min.js | Pranay92/cdnjs | /*! jQuery v1.8.2 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==... |
src/components/auction/teams/Roster.js | akeely/twoguysandadream-js | import React from 'react';
import WonPlayer from './WonPlayer';
export default class Roster extends React.Component {
render() {
var playersWon = this.props.team.roster.map((entry) =>
<WonPlayer key={'won.' + entry.player.id} rosterEntry={entry} />
);
return (
<t... |
app/components/H3/index.js | blockfs/frontend-react | import React from 'react';
function H3(props) {
return (
<h3 {...props} />
);
}
export default H3;
|
packages/material-ui-icons/src/SimCardAlert.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let SimCardAlert = props =>
<SvgIcon {...props}>
<path d="M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-5 15h-2v-2h2v2zm0-4h-2V8h2v5z" />
</SvgIcon>;
SimCardAlert = pure(SimCardAl... |
assets/jqwidgets/demos/react/app/notification/events/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxNotification from '../../../jqwidgets-react/react_jqxnotification.js';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
import JqxPanel from '../../../jqwidgets-react/react_jqxpanel.js';
class App extends React.Component {
... |
node_modules/react-icons/go/comment.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const GoComment = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m32.5 5h-25c-2.4 0-5 2.5-5 5v15c0 5 5 5 5 5h2.5v10l10-10h12.5s5-2.7 5-5v-15c0-2.4-2.5-5-5-5z"/></g>
</Icon>
)
export default GoComment
|
src/Survey/Complex/Default/Location.js | NERC-CEH/irecord-app | import React from 'react';
import PropTypes from 'prop-types';
import { observer } from 'mobx-react';
import { IonPage } from '@ionic/react';
import Log from 'helpers/log';
import Header from 'Components/Location/Header';
import Main from 'Components/Location/Main';
import {
onManualGridrefChange,
onLocationNameCha... |
app/components/Notes/NotesList.js | luketlancaster/github-notetaker | import React from 'react';
class NotesList extends React.Component {
render() {
var notes = this.props.notes.map((note, index) => {
return <li className="list-group-item" key={index}> {note} </li>
});
return (
<ul className="list-group">
{notes}
</ul>
)
}
}
export default... |
ajax/libs/react-modal/1.7.5/react-modal.js | froala/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
entry_types/scrolled/package/src/contentElements/inlineImage/InlineImage.js | tf/pageflow | import React from 'react';
import {
Image,
Figure,
FitViewport,
useContentElementLifecycle,
useFile,
usePortraitOrientation
} from 'pageflow-scrolled/frontend';
export function InlineImage({configuration}) {
const imageFile = useFile({
collectionName: 'imageFiles', permaId: configuration.id
});
... |
src/Stories/TriggerInfo.stories.js | sashasushko/moira-front | // @flow
import React from 'react';
import { storiesOf } from '@storybook/react';
import StoryRouter from 'storybook-router';
import TriggerInfo from '../Components/TriggerInfo/TriggerInfo';
const data = {
error_value: 1000.0,
sched: {
endOffset: 1439,
days: [
{ enabled: true, name:... |
frontend/react-stack/react/aluraflix/src/pages/Home/index.js | wesleyegberto/courses-projects | import React from 'react';
import PageTemplate from '../../components/PageTemplate';
import BannerMain from '../../components/BannerMain';
import Carousel from '../../components/Carousel';
import dadosIniciais from '../../data/dados_iniciais.json';
function Home() {
return (
<PageTemplate>
<BannerMain
... |
ajax/libs/yui/3.8.0/scrollview-base/scrollview-base.js | nolanlawson/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
WINDOW = Y.config.win,
I... |
admin/client/App/shared/Portal.js | danielmahon/keystone | /**
* Used by the Popout component and the Lightbox component of the fields for
* popouts. Renders a non-react DOM node.
*/
import React from 'react';
import ReactDOM from 'react-dom';
module.exports = React.createClass({
displayName: 'Portal',
portalElement: null, // eslint-disable-line react/sort-comp
compone... |
src/svg-icons/content/create.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentCreate = (props) => (
<SvgIcon {...props}>
<path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/... |
src/components/app.js | deinde/React-Express-Backend | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<div>React simple starter</div>
);
}
}
|
app/jsx/grading/SearchGradingPeriodsField.js | venturehive/canvas-lms | /*
* Copyright (C) 2016 - 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... |
src/docs/examples/HelloWorld/ExampleHelloWorld.js | choudlet/ps-react-choudlet | import React from 'react';
import HelloWorld from 'ps-react/HelloWorld';
/** Create Custom Message */
export default function ExampleHelloWorld() {
return <HelloWorld message="Pluralsight viewers!" />
} |
src/MainControls/index.js | a-tarr/Fleetr | import React, { Component } from 'react';
import { Grid, Button, Input, Popup, Icon, Card } from 'semantic-ui-react';
class MainControls extends Component {
render() {
return (
<div className="list-row">
<Button onClick={() => this.generateLists(this.ratio)}>
Generate
</Button>
... |
src/components/Loader.js | Greynight/Exercises | import React from 'react';
import CircularProgress from 'material-ui/CircularProgress';
import { Flex, Box } from 'reflexbox';
const Loader = (props) => {
const styles = {
backdrop: {
backgroundColor: 'LightGrey',
position: 'absolute',
opacity: 0.6,
width: '100%',
height: '100%',
... |
src/app.js | nytai/cats | import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { CatContainer } from './containers/catContainer';
import configureStore from './configureStore';
let store = configureStore();
const MOUNT_NODE = document.getElementById('reactRoot')... |
src/example/Content.js | halhenke/jade-react-loader-example | import React from 'react';
import styles from './Content.css';
import jade from './jade/content.jade';
export default class Content extends React.Component {
render() {
return jade({styles});
}
}
|
web/react/components/validation/FormValidation.js | vdyachenko-determine/tasker | import React from 'react';
import FieldValidation from './FieldValidation.js';
import Loader from '../loader/Loader.js';
/**
* React component for custom form validation
*/
class FormValidation extends React.Component {
/**
* Constructor
*
* @param props component's properties
*/
construc... |
src/client.js | NetEffective/net-effective | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createStore from './redux/create';
import ApiClient from './helpers/ApiClient';
import {Provider} from 'react-redux';
imp... |
app/main.js | gottsohn/standort | import React from 'react';
import {Router, Route, browserHistory, IndexRoute} from 'react-router';
import {render} from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
im... |
static/src/index.js | unmeshpro/easyPost | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { Router, Redirect, browserHistory } from 'react-router';
import injectTapEventPlugin from 'react-tap-event-plugin';
import { syncHistoryWithStore } from 'react-router-redux';
import configureStore from './store... |
test/integration/client-navigation/pages/memo-component.js | JeromeFitz/next.js | import React from 'react'
export default React.memo((props) => <span {...props}>Memo component</span>)
|
src/modules/pages/ask/index.js | lenxeon/react |
require('../../../css/panel.less')
import React from 'react';
var {createActiveRouteComponent} = require('../NavLink');
var NavLink = createActiveRouteComponent('li');
class Portals extends React.Component {
render(){
return(
<div className="pure-g mt-25">
<div className="pure-u-18-24 ask ask-o... |
docs/src/pages/components/snackbars/SimpleSnackbar.js | kybarg/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
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';
const useStyles = makeStyles(theme... |
frontend/containers/SearchDisclaimer.js | datoszs/czech-lawyers | import React from 'react';
import {SearchDisclaimer} from '../components';
import RichText from './RichText';
export default () => <SearchDisclaimer><RichText msg="search.disclaimer" /></SearchDisclaimer>;
|
app/javascript/src/Scenes/About/About.js | legislated/legislated-api | // @flow
import * as React from 'react'
import styled from 'react-emotion'
import { Helmet } from 'react-helmet'
import { Link } from '@/components'
import { mixins } from '@/styles'
export function About () {
return (
<Scene>
<Helmet>
<meta property='og:title' content='About Us' />
<meta p... |
router_homemade/with_universal_router/src/routes.js | Muzietto/react-playground | import React from 'react';
import HomePage from './pages/HomePage';
import TaskList from './pages/TaskList';
import TaskDetails from './pages/TaskDetails';
import ErrorPage from './pages/ErrorPage';
import Layout from './pages/TransitioningPageLayout';
const routes = {
path: '',
async action({ next }) {
const ... |
test/PaginationSpec.js | mattBlackDesign/react-materialize | /* global describe, it */
import React from 'react';
import { shallow, mount } from 'enzyme';
import { assert } from 'chai';
import Pagination from '../src/Pagination';
describe('<Pagination />', () => {
let wrapper = shallow(
<Pagination items={10} activePage={2} maxButtons={6} />
);
it('should render', (... |
packages/shared/getComponentName.js | ericyang321/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {LazyComponent} from 'react/src/ReactLazy';
import {
REACT_CONTEXT_TYPE,
REACT_FORWARD_REF_TYPE,
RE... |
style-guide/src/components/design-system-partials/otkit-shadows.js | opentable/design-tokens | import React from 'react';
import _ from 'lodash';
import token from 'otkit-shadows/token.common';
import SectionHeader from '../section-header';
import styles from '../../styles/index.module.scss';
const Shadows = () => {
var tokens = _.toPairsIn(token);
tokens = tokens.map((token, index) => {
return (
... |
src/containers/views/tests/datafiles.spec.js | ashmaroli/jekyll-admin | import React from 'react';
import { mount } from 'enzyme';
import { DataFiles } from '../DataFiles';
import { datafile } from './fixtures';
import Button from '../../../components/Button';
function setup(datafiles=[datafile]) {
const actions = {
fetchDataFiles: jest.fn(),
deleteDataFile: jest.fn(),
sea... |
src/main.js | ajaycheenath/abs | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import MainContent from './components/MainContent.js';
import Menu from './components/Menu.js';
import GuideMe from './components/GuideMe.js';
import {log, getGobalVariable, setGobalVariable, scrollTop} from './config/Utils';
import { Provide... |
ReactJS/06.Introduction-to-Redux/redux-demo-exercise-three/src/App.js | Martotko/JS-Web | import React, { Component } from 'react';
import './App.css';
import { Route, Switch } from 'react-router-dom'
import CounterWrap from './components/counter/counterWrap'
import Home from './components/home'
import UserStory from './components/userStory/userStory'
class App extends Component {
render() {
return... |
client/src/components/Draftail/decorators/Document.js | nealtodd/wagtail | import PropTypes from 'prop-types';
import React from 'react';
import Icon from '../../Icon/Icon';
import TooltipEntity from '../decorators/TooltipEntity';
import { STRINGS } from '../../../config/wagtailConfig';
const documentIcon = <Icon name="doc-full" />;
const missingDocumentIcon = <Icon name="warning" />;
co... |
blueocean-material-icons/src/js/components/svg-icons/image/collections-bookmark.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageCollectionsBookmark = (props) => (
<SvgIcon {...props}>
<path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 10l-2.5-1.5L15 12V4h5v8z"/>
</SvgIcon>
);
ImageCollections... |
examples/using-redux/gatsby-ssr.js | fabrictech/gatsby | import React from 'react'
import { Provider } from 'react-redux'
import { renderToString } from 'react-dom/server'
import createStore from './src/state/createStore'
exports.replaceRenderer = ({ bodyComponent, replaceBodyHTMLString }) => {
const store = createStore()
const ConnectedBody = () => (
<Pr... |
ajax/libs/swagger-ui/3.37.1/swagger-ui-standalone-preset.js | cdnjs/cdnjs | /*! For license information please see swagger-ui-standalone-preset.js.LICENSE.txt */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(function(){try{return require("esprima")}catch(t){}}()):"function"==typeof define&&define.amd?define(["esprima"],e):"object"==typeof exports?exports.Swa... |
client/src/components/dashboard/Profile/Public/FCCTables.js | FCC-Alumni/alumni-network | import { hoverTransition } from '../../../../styles/style-utils';
import { Popup } from 'semantic-ui-react';
import propTypes from 'prop-types';
import React from 'react';
import styled from 'styled-components';
import Table from './Table';
import TableRow from './TableRow';
const URL = "https://freecodecamp.org/";
c... |
ajax/libs/thorax/2.2.0/thorax-combined-mobile.js | tkirda/cdnjs | /* Zepto v1.0 - polyfill zepto detect event ajax form fx - zeptojs.com/license */
;(function(undefined){
if (String.prototype.trim === undefined) // fix for iOS 3.2
String.prototype.trim = function(){ return this.replace(/^\s+|\s+$/g, '') }
// For iOS 3.x
// from https://developer.mozilla.org/en/JavaScript/... |
profiles/panopoly/modules/contrib/devel/jquery-1.4.4-uncompressed.js | uloom/openmasjid | /*!
* jQuery JavaScript Library v1.4.4
* 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.
... |
node_modules/react-router/es6/IndexRedirect.js | mineralmink/poke | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import Redirect from './Redirect';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.string;
var object = _React$PropTypes.object;
/**
* An <IndexRedir... |
packages/material-ui-icons/src/Healing.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M17.73 12.02l3.98-3.98c.39-.39.39-1.02 0-1.41l-4.34-4.34a.9959.9959 0 00-1.41 0l-3.98 3.98L8 2.29C7.8 2.1 7.55 2 7.29 2c-.25 0-.51.1-.7.29L2.25 6.63c-.39.39-.39 1.02 0 1.41l3.98 3.98L2.25 16c-.39.39-.... |
src/shared/forms/checkBox.js | bschneier/credit-cards-front-end | import React from 'react';
import PropTypes from 'prop-types';
import Message from '../message';
import { FormGroup, Col, Checkbox } from 'react-bootstrap';
const CheckBox = ({controlId, columnProps, isChecked, labelValue, checkboxProps,
validationState, onChange, errorMessages}) => {
return (
... |
war/src/main/webapp/scripts/yui/container/container_core-debug.js | tangkun75/jenkins | /*
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 2.9.0
*/
(function () {
/**
* Config is a utility used within an Object to allow the implementer to
* maintain a list of local configuration properties and liste... |
packages/react-refresh/src/ReactFreshRuntime.js | ericyang321/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {Instance} from 'react-reconciler/src/ReactFiberHostConfig';
import type {FiberRoot} from 'react-reconcile... |
docs/src/app/components/pages/components/LinearProgress/ExampleSimple.js | mtsandeep/material-ui | import React from 'react';
import LinearProgress from 'material-ui/LinearProgress';
const LinearProgressExampleSimple = () => (
<LinearProgress mode="indeterminate" />
);
export default LinearProgressExampleSimple;
|
src/svg-icons/editor/format-align-justify.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatAlignJustify = (props) => (
<SvgIcon {...props}>
<path d="M3 21h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18v-2H3v2zm0-4h18V7H3v2zm0-6v2h18V3H3z"/>
</SvgIcon>
);
EditorFormatAlignJustify = pure(EditorFormatAl... |
app/javascript/mastodon/features/list_adder/components/account.js | danhunsaker/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { makeGetAccount } from '../../../selectors';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Avatar from '../../../components/avatar';
import DisplayName from... |
src/addons/__tests__/renderSubtreeIntoContainer.js | sasumi/react | /**
* Copyright 2013-2015, 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.
*
* @emails react-co... |
packages/material-ui-icons/src/SettingsVoice.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M7 24h2v-2H7v2zm5-11c1.66 0 2.99-1.34 2.99-3L15 4c0-1.66-1.34-3-3-3S9 2.34 9 4v6c0 1.66 1.34 3 3 3zm-1 11h2v-2h-2v2zm4 0h2v-2h-2v2zm4-14h-1.7c0 3-2.54 5.1-5.3 5.1S6.7 13 6.7 10H5c0 3.41 2.72 6.23 6 6.... |
integration_tests/babel-plugin-jest-hoist/__tests__/integration-test.js | aaron-goshine/jest | /**
* Copyright (c) 2014-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.
*
* @emails onca... |
ajax/libs/react-cookie/0.1.0/react-cookie.min.js | abbychau/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... |
app/components/game/spectator.js | erisalke/react-playground | import React from 'react';
import { connect } from 'react-redux';
import store from '../../store';
import TicTacToeScore from './tictactoe-score';
import SpectatorBoard from './spectatorBoard';
const Spectator = React.createClass({
render: function() {
return (
<div className = 'main-containerX'>
<Tic... |
packages/material-ui-icons/src/Maximize.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M3 3h18v2H3z" />
, 'Maximize');
|
ajax/libs/6to5/2.11.0/browser-polyfill.js | wmkcc/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... |
ajax/libs/react-instantsearch/4.0.10/Core.js | BenjaminVanRyseghem/cdnjs | /*! ReactInstantSearch 4.0.10 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define... |
twitter-example/pages/FindPeoplePage.js | rollokb/react-native-router | 'use strict';
var React = require('react-native');
var {
AppRegistry,
StyleSheet,
Text,
TouchableHighlight,
View,
} = React;
var RightCorner = React.createClass({
render() {
return (
<View style={styles.button} />
)
}
});
var FindPeoplePage = React.createClass({
render() {
return... |
node_modules/redbox-react/examples/babel-plugin-react-hot/index.js | lolilukia/Personal-gallery | import React from 'react'
import App from './components/App'
const root = document.getElementById('root')
React.render(<App />, root)
|
frontend/src/Album/Search/AlbumInteractiveSearchModalContent.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React from 'react';
import Button from 'Components/Link/Button';
import ModalBody from 'Components/Modal/ModalBody';
import ModalContent from 'Components/Modal/ModalContent';
import ModalFooter from 'Components/Modal/ModalFooter';
import ModalHeader from 'Components/Modal/Moda... |
src/encoded/static/components/forms/UserRegistrationForm.js | 4dn-dcic/fourfront | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import serialize from 'form-serialize';
import memoize from 'memoize-one';
import { console, object, ajax, JWT, analytics, logger } from '@hms-dbmi-bgm/shared-portal-components/es/components/util';
import { LinkTo... |
ajax/libs/yasqe/2.5.2/yasqe.bundled.min.js | ColinEberhardt/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASQE=e()}}(function(){var e;return function t(e,i,r)... |
src/svg-icons/device/signal-cellular-no-sim.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularNoSim = (props) => (
<SvgIcon {...props}>
<path d="M18.99 5c0-1.1-.89-2-1.99-2h-7L7.66 5.34 19 16.68 18.99 5zM3.65 3.88L2.38 5.15 5 7.77V19c0 1.1.9 2 2 2h10.01c.35 0 .67-.1.96-.26l1.88 1.88 ... |
test/integration/css/fixtures/multi-page/pages/_app.js | BlancheXu/test | import React from 'react'
import App from 'next/app'
import '../styles/global1.css'
import '../styles/global2.css'
class MyApp extends App {
render () {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
fields/types/textarray/TextArrayFilter.js | vokal/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import {
FormField,
FormInput,
FormSelect,
} from '../../../admin/client/App/elemental';
const MODE_OPTIONS = [
{ label: 'Contains', value: 'contains' },
{ label: 'Exactly', value: 'exactly' },
{ label: 'Begins with', value: 'beginsWith' },
{ ... |
jenkins-design-language/src/js/components/material-ui/svg-icons/av/equalizer.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvEqualizer = (props) => (
<SvgIcon {...props}>
<path d="M10 20h4V4h-4v16zm-6 0h4v-8H4v8zM16 9v11h4V9h-4z"/>
</SvgIcon>
);
AvEqualizer.displayName = 'AvEqualizer';
AvEqualizer.muiName = 'SvgIcon';
export default AvEqualizer;
|
src/containers/location/Locator.js | visa-innovation-sf/ldn-retail-demo | import React, { Component } from 'react';
import {
View,
Image,
StyleSheet,
TouchableOpacity,
TouchableHighlight
} from 'react-native';
import { Actions } from 'react-native-router-flux';
import { connect } from 'react-redux';
import {AppColors, AppStyles, AppSizes} from '@theme/';
import {
T... |
test/MediaRightSpec.js | apkiernan/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react-addons-test-utils';
import ReactDOM from 'react-dom';
import Media from '../src/Media';
describe('Media.Right', () => {
it('uses "div"', () => {
const instance = ReactTestUtils.renderIntoDocument(
<Media.Right />
);
assert.equal(ReactDO... |
client/src/App.js | mfasman95/HTTP-API-project | import React, { Component } from 'react';
import { connect } from 'react-redux';
import logo from './logo.svg';
import './css/App.css';
import Router from './components/Router';
class App extends Component {
constructor(props){
super(props);
this.goHome = this.goHome.bind(this);
}
goHome(){ window.loca... |
jenkins-design-language/src/js/components/material-ui/svg-icons/maps/local-play.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const MapsLocalPlay = (props) => (
<SvgIcon {...props}>
<path d="M20 12c0-1.1.9-2 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2zm-4.42 4.8L12 14.5l-3.58 2.3 1.08-4.1... |
src/shared/components/DatePicker/index.js | rvboris/financebutler | import React from 'react';
import DayPicker, { DateUtils } from 'react-day-picker';
import LocaleUtils from 'react-day-picker/moment';
import moment from 'moment';
import './style.css';
const DatePicker = ({ locale, input }) => {
const { value } = input;
const handleDayClick = (day, { disabled, selected }) => {
... |
frontend/src/TaskDetail.js | aclowes/yawn | import React from 'react';
import {PanelGroup, Panel, Alert, Pagination, Button, ButtonToolbar} from 'react-bootstrap';
import {Link} from 'react-router';
import API from "./API";
import {formatDateTime} from "./utilities";
export default class TaskDetail extends React.Component {
constructor(props) {
super(pro... |
src/index.js | MaxwellKendall/Book-Project | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware, compose } from 'redux';
import thunk from 'redux-thunk';
import App from './components/App';
import rootReducer from './reducers/index';
const gitHubRepoName = 'Book-Project';
co... |
packages/showcase/axes/custom-axis-tick-element.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... |
src/App.js | brianyamasaki/rideshare | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import firebase from 'firebase';
import ReduxThunk from 'redux-thunk';
import reducers from './reducers';
import Router from './Router';
class App extends Component {
componentWill... |
js/vendor/jquery-1.9.0.min.js | narutkowski/responsivewebsite | /*! jQuery v1.9.0 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license */(function(e,t){"use strict";function n(e){var t=e.length,n=st.type(e);return st.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Tt[e]={};return st.each(e.matc... |
jquery.js | lowearthorbiter/sheen | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
js/components/Links.js | gilesbradshaw/uaQL | // @flow
'use strict';
import React from 'react';
import Relay from 'react-relay';
import LocalizedText from './LocalizedText';
import {createContainer} from 'recompose-relay';
import {compose} from 'recompose';
import {Link} from 'react-router';
import Tabs from 'material-ui/lib/tabs/tabs';
import Tab from 'material... |
ajax/libs/analytics.js/2.2.5/analytics.js | JohnKim/cdnjs | (function outer(modules, cache, entries){
/**
* Global
*/
var global = (function(){ return this; })();
/**
* Require `name`.
*
* @param {String} name
* @param {Boolean} jumped
* @api public
*/
function require(name, jumped){
if (cache[name]) return cache[name].exports;
if (mo... |
src/components/CustomKnob/CustomKnob.js | wavicles/fossasia-pslab-apps | import React from 'react';
import s3 from './skins/s3';
import { Knob } from 'react-rotary-knob';
const CustomKnob = ({ radius, onChangeDial, value, step, min, max }) => {
return (
<Knob
style={{
display: 'inline-block',
width: `${radius}em`,
height: `${radius}em`,
}}
va... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.