path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
components/Carousel.js | uclaacm/website | import Image from 'next/image';
import React from 'react';
// width of each img in px
// needs to be updated if style.scss changes
const IMAGE_WIDTH = 360;
const ITEMS_PER_SECTION = 4;
export default class Carousel extends React.Component {
constructor(props) {
super(props);
const numItems = this.props.images.l... |
node_modules/react-bootstrap/amd/lib/Panel.js | gitoneman/react-home | define(["exports", "module", "react", "classnames", "./BootstrapMixin", "./CollapsableMixin"], function (exports, module, _react, _classnames, _BootstrapMixin, _CollapsableMixin) {
"use strict";
var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; };
var _extends = Object.... |
sepal/base/static/jquery-ui/js/jquery-ui-1.9.2.custom.js | sloria/sepal | /*! jQuery UI - v1.9.2 - 2012-11-23
* http://jqueryui.com
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.draggable.js, jquery.ui.droppable.js, j... |
src/contexts.js | awkaiser/react-tictactoe | import React from 'react';
export const TicTacToeStore = React.createContext();
|
packages/material-ui-icons/src/LocalCafeTwoTone.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="M8 15h6c1.1 0 2-.9 2-2V5H6v8c0 1.1.9 2 2 2z" opacity=".3" /><path d="M2 19h18v2H2zM4 13c0 2.21 1.79 4 4 4h6c2.21 0 4-1.79 4-4v-3h2c1.11 0 2-.89 ... |
src/app.js | dartelvis/zf3 |
import React from 'react';
import { render } from 'react-dom';
import { Router, Route, Link, IndexRoute, useRouterHistory} from 'react-router';
import { createHistory } from 'history';
import { Provider } from 'react-redux';
import injectTapEventPlugin from 'react-tap-event-plugin';
import Main from './app/Main';
impo... |
ajax/libs/recompose/0.20.1/Recompose.js | joeyparrish/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["Recompose"] = facto... |
src/client/pages/todos.react.js | terakilobyte/socketreact | import Buttons from '../todos/buttons.react';
import Component from '../components/component.react';
import DocumentTitle from 'react-document-title';
import List from '../todos/list.react';
import NewTodo from '../todos/newtodo.react';
import React from 'react';
import ToCheck from './tocheck.react';
import immutable ... |
public/js/cat_source/es6/components/outsource/OpenJobBox.js | matecat/MateCat | import React from 'react'
class OpenJobBox extends React.Component {
constructor(props) {
super(props)
}
openJob() {
return this.props.url
}
getUrl() {
return (
window.location.protocol + '//' + window.location.host + this.props.url
)
}
render() {
return (
<div classNam... |
src/components/__tests__/InfoBar-test.js | MarkPhillips7/happy-holidays | import React from 'react';
import ReactDOM from 'react-dom';
import {renderIntoDocument} from 'react-addons-test-utils';
import { expect} from 'chai';
import { InfoBar } from 'components';
import { Provider } from 'react-redux';
import {reduxReactRouter} from 'redux-router';
import createHistory from 'history/lib/creat... |
examples/test-cra/src/index.js | bigassdragon/storybook | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(<App />, document.getElementById('root'));
|
themes/hugo-tracks-theme/static/js/jquery.min.js | MisterDoom/studenthack | /*! jQuery v1.11.0 | (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... |
src/components/home/HomePage.js | RanjithNair/FeatureTracker | import React from 'react';
import {Link} from 'react-router';
const HomePage = () => {
return (
<div className="jumbotron">
<h1>React Redux Firebase Starter</h1>
<p>This is an starter project to make your life easier</p>
<Link to="about" className="btn btn-primary btn-lg">Learn more</Link>
... |
node_modules/cucumber-html/target/classes/cucumber/formatter/jquery-1.8.2.min.js | Viktorminator/coinvscoin | /*! 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===... |
packages/wix-style-react/testkit/component-definitions.js | wix/wix-style-react | import React from 'react';
import CropRotate from 'wix-ui-icons-common/CropRotate';
import Popover from '../src/Popover';
import Input from '../src/Input';
import Notification from '../src/Notification';
import FloatingHelper from '../src/FloatingHelper';
import VerticalTabs from '../src/VerticalTabs';
import Segmente... |
ajax/libs/yui/3.5.0pr4/event-focus/event-focus-min.js | Teino1978-Corp/Teino1978-Corp-cdnjs | YUI.add("event-focus",function(f){var d=f.Event,c=f.Lang,a=c.isString,e=f.Array.indexOf,b=c.isFunction(f.DOM.create('<p onbeforeactivate=";"/>').onbeforeactivate);function g(i,h,k){var j="_"+i+"Notifiers";f.Event.define(i,{_attach:function(m,n,l){if(f.DOM.isWindow(m)){return d._attach([i,function(o){n.fire(o);},m]);}el... |
src/components/common/table/Td.js | abhijitrakas/react-redux-setup | import React from 'react';
import { generate } from 'randomstring';
const Td = (props) => {
return <td key={ generate(12) }>{props.data}</td>
};
export default Td; |
blueocean-material-icons/src/js/components/svg-icons/notification/phone-missed.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const NotificationPhoneMissed = (props) => (
<SvgIcon {...props}>
<path d="M6.5 5.5L12 11l7-7-1-1-6 6-4.5-4.5H11V3H5v6h1.5V5.5zm17.21 11.17C20.66 13.78 16.54 12 12 12 7.46 12 3.34 13.78.29 16.67c-.18.18-.29.43-.29.71s.11.53.29.71l2.48 2.48c.18.18.43... |
examples/todomvc/index.js | contolini/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
import 'todomvc-app-css/index.css';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
... |
test/integration/css-fixtures/valid-and-invalid-global/pages/_app.js | JeromeFitz/next.js | import React from 'react'
import App from 'next/app'
import '../styles/global.css'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
components/Form/InputRange/InputRangeWithHistogram.js | NGMarmaduke/bloom | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import css from './InputRange.css';
import InputRange from './InputRange';
/* eslint-disable arrow-body-style */
export const getVerticalScale = data => data
.reduce((currentHighestValue, datum) => {
return datum >= currentHighestValu... |
src/components/SettingsController/index.js | michaltakac/mathworldvr | import React from 'react'
import PropTypes from 'prop-types'
import { Entity } from 'aframe-react'
const propTypes = {
initialState: PropTypes.any.isRequired,
actionToTrigger: PropTypes.func,
min: PropTypes.number,
max: PropTypes.number,
step: PropTypes.number,
type: PropTypes.string,
name: PropTypes.str... |
mxcube3/ui/containers/TaskContainer.js | bolmsten/mxcube3 | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Characterisation from '../components/Tasks/Characterisation';
import DataCollection from '../components/Tasks/DataCollection';
import Helical from '../components/Tasks/Helical';
import AddSample from '..... |
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js | stanleycyang/react-router | import React from 'react';
import { Link } from 'react-router';
export default class AnnouncementsSidebar extends React.Component {
static loadProps (params, cb) {
console.log('AnnouncementsSidebar', 'loadProps');
cb(null, {
announcements: COURSES[params.courseId].announcements
});
}
render (... |
ajax/libs/webshim/1.14.4/dev/shims/es6.js | bootcdn/cdnjs | // ES6-shim 0.8.0 (c) 2013 Paul Miller (paulmillr.com)
// ES6-shim may be freely distributed under the MIT license.
// For more details and documentation:
// https://github.com/paulmillr/es6-shim/
webshim.register('es6', function($, webshim, window, document, undefined){
'use strict';
var isCallableWithoutNew = fun... |
client/views/admin/settings/inputs/IntSettingInput.stories.js | VoiSmart/Rocket.Chat | import { Field } from '@rocket.chat/fuselage';
import { action } from '@storybook/addon-actions';
import React from 'react';
import IntSettingInput from './IntSettingInput';
export default {
title: 'admin/settings/inputs/IntSettingInput',
component: IntSettingInput,
decorators: [(storyFn) => <Field>{storyFn()}</Fi... |
src/Parser/Paladin/Holy/Modules/Abilities.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import ISSUE_IMPORTANCE from 'Parser/Core/ISSUE_IMPORTANCE';
import CoreAbilities from 'Parser/Core/Modules/Abilities';
import ITEMS from 'common/ITEMS';
import Wrapper from 'common/Wrapper';
class Abilities ext... |
modules/__tests__/isActive-test.js | runlevelsix/react-router | /*eslint-env mocha */
import expect from 'expect'
import React from 'react'
import createHistory from 'history/lib/createMemoryHistory'
import IndexRoute from '../IndexRoute'
import Router from '../Router'
import Route from '../Route'
describe('isActive', function () {
let node
beforeEach(function () {
node =... |
src/js/components/player/stream/StreamContent.js | soundchain/soundchain-frontend | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
WidgetStreamTrack,
WidgetStreamPlaylist,
WidgetStreamAlbum,
} from '~/components/ui-toolkit';
import cx from './StreamContent.scss';
const EXAMPLE_STREAM = [
{ type: 'track' },
{ type: 'playlist' },
{ type: 'track' }... |
src/page3.js | wiflsnmo/react_study2 | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import ReactPaginate from 'react-paginate';
import $ from 'jquery';
window.React = React;
export class CommentList extends Component {
render() {
return (
<div id="project-comments" className="commentList">
<ul>
... |
Ionic-seed/www/js/ionic.js | leonetti/firebase-angular-starter-pack | /*!
* Copyright 2014 Drifty Co.
* http://drifty.com/
*
* Ionic, v0.9.20-alpha
* A powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
* By @maxlynch, @helloimben, @adamdbradley <3
*
* Licensed under the MIT license. Please see LICENSE for more information.
*
*/;
// Create namespaces
window... |
src/routes.js | WEBdeBS/webdebs-links | import React from 'react';
import {Route} from 'react-router';
import App from './app';
import Homepage from './handlers/homepage';
import Cookies from './handlers/cookies';
export default (
<Route name="app" path="/" handler={App}>
<Route name="cookies" path="cookies" handler={Cookies} />
<Route name="home... |
ajax/libs/highmaps/1.0.1/highmaps.src.js | tonytomov/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highmaps JS v1.0.1 (2014-06-12)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout, ... |
files/rxjs/2.5.1/rx.lite.extras.js | garrypolley/jsdelivr | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'unde... |
node_modules/react-router/es/Link.js | nikhil-ahuja/Express-React | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
src/svg-icons/hardware/cast.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareCast = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v3h2V5h18v14h-7v2h7c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0-4... |
showcase/axes/static-crosshair.js | Apercu/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
fields/types/cloudinaryimages/CloudinaryImagesColumn.js | dvdcastro/keystone | import React from 'react';
import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
const moreIndicatorStyle = {
color: '#888',
fontSize: '.8rem',
};
var Cloudin... |
src/index.js | IbrahimCode/ReactReduxRouterStarter | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { ConnectedRouter } from 'react-router-redux'
import createHistory from 'history/createBrowserHistory'
import App from './containers/App'
import registerServiceWorker from './registerServiceWorker'
// Style
impor... |
src/entypo/YoukoWithCircle.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--YoukoWithCircle';
let EntypoYoukoWithCircle = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M10,0.3999634c-5.3019409,0-9.5999756,4.2980957-9.5999756,9.6000366S4.6980591,19.599... |
test/components/Counter.spec.js | SmartPowerSocket/DesktopApp | /* eslint no-unused-expressions: 0 */
import { expect } from 'chai';
import { spy } from 'sinon';
import React from 'react';
import {
renderIntoDocument,
scryRenderedDOMComponentsWithTag,
findRenderedDOMComponentWithClass,
Simulate
} from 'react-addons-test-utils';
import Counter from '../../app/components/Coun... |
example/src/screens/transitions/sharedElementTransitions/Masonry/Masonry.js | BrendonSled/react-native-navigation | import React from 'react';
import {StyleSheet, View, Text, PixelRatio, FlatList, Image, TouchableHighlight} from 'react-native';
import {Navigation, SharedElementTransition} from 'react-native-navigation';
import images from './images';
const ROW_HEIGHT = 650;
const COLS = 2;
class Masonry extends React.Component {
... |
test/regressions/site/src/tests/Checkbox/DisabledCheckbox.js | und3fined/material-ui | // @flow weak
import React from 'react';
import Checkbox, { LabelCheckbox } from 'material-ui/Checkbox';
export default function DisabledCheckbox() {
return (
<div>
<LabelCheckbox label="Foo" disabled />
<Checkbox disabled />
<Checkbox checked disabled />
</div>
);
}
|
ajax/libs/react-router-bootstrap/0.20.1/ReactRouterBootstrap.min.js | BenjaminVanRyseghem/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-router")):"function"==typeof define&&define.amd?define(["react","react-router"],t):"object"==typeof exports?exports.ReactRouterBootstrap=t(require("react"),require("react-router")):e.ReactRouterBootstrap=t(... |
app/scripts/Icon.js | nthitz/playlist_archive_site | 'use strict'
import React from 'react'
export default function Icon(props){
let {icon, className, ...others} = props
className = `${icon}-icon ${className ? className : ''}`
return (
<div className={className} {...others}></div>
)
}
|
lib/components/MapCircle.js | amitv87/react-native-maps | import PropTypes from 'prop-types';
import React from 'react';
import {
ViewPropTypes,
} from 'react-native';
import decorateMapComponent, {
USES_DEFAULT_IMPLEMENTATION,
SUPPORTED,
} from './decorateMapComponent';
const propTypes = {
...ViewPropTypes,
/**
* The coordinate of the center of the circle
*... |
src/svg-icons/image/exposure-zero.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageExposureZero = (props) => (
<SvgIcon {...props}>
<path d="M16.14 12.5c0 1-.1 1.85-.3 2.55-.2.7-.48 1.27-.83 1.7-.36.44-.79.75-1.3.95-.51.2-1.07.3-1.7.3-.62 0-1.18-.1-1.69-.3-.51-.2-.95-.51-1.31-.95-.36-.44... |
plugins/services/src/js/components/forms/ContainerServiceFormSection.js | jcloud-shengtai/dcos-ui_CN | import React, { Component } from "react";
import { Tooltip } from "reactjs-components";
import {
FormReducer as ContainerReducer
} from "../../reducers/serviceForm/Container";
import {
FormReducer as ContainersReducer
} from "../../reducers/serviceForm/Containers";
import {
findNestedPropertyInObject
} from "../... |
app/components/views/home.js | pcstl/app-saber | /**
* home.js: Tela inicial do aplicativo
*
* Este componente renderiza a tela inicial do aplicativo, e é o primeiro
* componente visível a ser carregado.
*
* Quando ele é carregado, ele invoca as ações `fetchPosts`, `fetchUsers`,
* e `fetchComments`, definidas nos arquivos app/actions/posts.js,
* app/actions/u... |
src/svg-icons/social/person-outline.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPersonOutline = (props) => (
<SvgIcon {...props}>
<path d="M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C... |
node_modules/react-icons/fa/history.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const FaHistory = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m37.3 20q0 3.5-1.4 6.7t-3.6 5.4-5.5 3.7-6.7 1.3q-3.8 0-7.3-1.6t-5.8-4.5q-0.2-0.3-0.2-0.5t0.2-0.5l3.1-3.1q0.2-0.2 0.5-0.2 0.4 0.1 0.5 0.3 1.7 2.1 4 3.3t5 1.1q2.4 0 4.5... |
client/containers/Singleplayer.js | rickyeh/nimblecode | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { changeLevel, getListOfPrompts, changeLanguage } from '../actions/index';
import { bindActionCreators } from 'redux';
import { browserHistory } from 'react-router';
import axios from 'axios';
import CodeEditor from './CodeEditor';
... |
ajax/libs/choices.js/7.1.4/choices.min.js | cdnjs/cdnjs | /*! choices.js v7.1.4 | © 2019 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Choices=t():e.Choices=t()}(window,(function(){return funct... |
js/views/BandLegend.js | acthp/ucsc-xena-client |
import React from 'react';
import CanvasDrawing2 from '../CanvasDrawing2';
var {rgb} = require('../color_helper').default;
//// Styles
var compStyles = require('./BandLegend.module.css');
function draw(vg, opts) {
var {range: {min, max}, colorScale, width, zoom: {height}} = opts,
ctx = vg.context(),
img = ctx.c... |
src/core/display/App/util/View/Title.js | JulienPradet/pigment-store | import React from 'react'
export const PageTitle = ({children}) => <h1>{children}</h1>
export const SectionTitle = ({children}) => <h2>{children}</h2>
export const MenuTitle = ({children}) => <h2>{children}</h2>
|
misc/tabledrag.js | Deanish/wbeta | (function ($) {
/**
* Drag and drop table rows with field manipulation.
*
* Using the drupal_add_tabledrag() function, any table with weights or parent
* relationships may be made into draggable tables. Columns containing a field
* may optionally be hidden, providing a better user experience.
*
* Created tableD... |
src/svg-icons/action/card-travel.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCardTravel = (props) => (
<SvgIcon {...props}>
<path d="M20 6h-3V4c0-1.11-.89-2-2-2H9c-1.11 0-2 .89-2 2v2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zM9 4h6v2H9V4zm11 15H... |
admin/client/components/MobileNavigation.js | Redmart/keystone | import React from 'react';
import Transition from 'react-addons-css-transition-group';
var MobileListItem = React.createClass({
displayName: 'MobileListItem',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
href: React.PropTypes.string.isRequired,
},
render () {
r... |
test/NavDropdownSpec.js | albertojacini/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import NavDropdown from '../src/NavDropdown';
import MenuItem from '../src/MenuItem';
describe('NavDropdown', () => {
it('Should render li when in nav', () => {
const instance = ReactTestUtils.renderIntoDocument(
<NavDropdow... |
ajax/libs/rxjs/2.4.6/rx.lite.js | sreym/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
};
... |
app/components/pages/newProjectStepFour.js | communicode-source/communicode | import React from 'react';
import NewProjectStepFour from './../../containers/newProjectStepFourContainer';
import NewProjectProgressBar from './../../containers/newProjectProgressBar';
import NewProjectTalentsBar from './../../containers/newProjectTalentsBarContainer';
import NewProjectNextButton from './../../contain... |
packages/material-ui-icons/src/AddPhotoAlternateTwoTone.js | allanalexandre/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="M10.21 16.83l-1.96-2.36L5.5 18h11l-3.54-4.71z" /><path d="M16.5 18h-11l2.75-3.53 1.96 2.36 2.75-3.54L16.5 18zM17 7h-3V6H4v14h14V10h-1V7z" opa... |
app/javascript/mastodon/components/hashtag.js | masto-donte-com-br/mastodon | // @ts-check
import React from 'react';
import { Sparklines, SparklinesCurve } from 'react-sparklines';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Permalink from './permalink';
import ShortNumber from 'mastodon/co... |
docs/app/Examples/elements/Reveal/Variations/RevealExampleInstant.js | shengnian/shengnian-ui-react | import React from 'react'
import { Image, Reveal } from 'shengnian-ui-react'
const RevealExampleInstant = () => (
<Reveal animated='move' instant>
<Reveal.Content visible>
<Image src='/assets/images/wireframe/square-image.png' size='small' />
</Reveal.Content>
<Reveal.Content hidden>
<Image s... |
ajax/libs/react-router/4.4.0-alpha.0/react-router.js | extend1994/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
(factory((global.ReactRouter = {}),global.React));
}(this, (function (exports,React) { 'use strict'... |
renderer/components/Form/SearchInput.js | LN-Zap/zap-desktop | import React from 'react'
import styled from 'styled-components'
import { themeGet } from '@styled-system/theme-get'
import Input from './Input'
import Search from 'components/Icon/Search'
const Icon = styled(Search)`
cursor: pointer;
height: 16px;
width: 16px;
position: absolute;
left: 16px;
user-select: ... |
src/components/common/svg-icons/image/exposure-neg-2.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageExposureNeg2 = (props) => (
<SvgIcon {...props}>
<path d="M15.05 16.29l2.86-3.07c.38-.39.72-.79 1.04-1.18.32-.39.59-.78.82-1.17.23-.39.41-.78.54-1.17s.19-.79.19-1.18c0-.53-.09-1.02-.27-1.46-.18-.44-.44-.81... |
src/svg-icons/toggle/star-half.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ToggleStarHalf = (props) => (
<SvgIcon {...props}>
<path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.... |
app/components/Message.js | alexindigo/ndash | import React, { Component } from 'react';
import { Animated, Easing, Image, Modal, StatusBar, Text, View } from 'react-native';
import styles from '../styles';
import imageProgress from '../../images/progress.png';
export default class Message extends Component {
runAnimation() {
if (!this.props.inProgress) ... |
src/app/components/AutoComplete/AutoComplete.spec.js | xZarisx/react-rpg | import React from 'react';
import AutoComplete from './AutoComplete.jsx';
import test from 'tape';
import { shallow } from 'enzyme';
test('<AutoComplete>', t => {
const ac = shallow(<AutoComplete />);
console.log(ac);
});
|
blueocean-material-icons/src/js/components/svg-icons/content/link.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ContentLink = (props) => (
<SvgIcon {...props}>
<path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 ... |
src/components/PaginationContainer.js | GriddleGriddle/Griddle | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from '../utils/griddleConnect';
import compose from 'recompose/compose';
import mapProps from 'recompose/mapProps';
import getContext from 'recompose/getContext';
import { classNamesForComponentSelector, stylesForComponentSelector } from... |
src/app/components/task/TaskLog.js | meedan/check-web | import React, { Component } from 'react';
import { injectIntl, defineMessages } from 'react-intl';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import styled from 'styled-components';
import ChatBubble from '@material-ui/icons/ChatBubble';
import Tooltip from '@material-ui/core/Tooltip';... |
src/components/MaintainTransactionalReportRepository/TransSecColumnRule.js | RegOpz/RegOpzWebApp | import React, { Component } from 'react';
import { FormGroup, FormControl, Button } from 'react-bootstrap';
class TransSecColumnRule extends Component {
constructor(props) {
super(props);
}
componentWillMount() {
// TODO
// console.log("TransSecColumnRule componentWillMount",this.props... |
ajax/libs/analytics.js/2.2.0/analytics.min.js | ram-nadella/cdnjs | (function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[name])return cache[name].exports;if(modules[name])return call(name,require);throw new Error('cannot find module "'+name+'"')}function call(id,require){var m=cache[id]={exports:{}};var mod=modules[id];var n... |
code/workspaces/web-app/src/components/dataStorage/editDataStoreForm.js | NERC-CEH/datalab | import React from 'react';
import PropTypes from 'prop-types';
import { Field, reduxForm } from 'redux-form';
import validate from 'validate.js';
import { renderMultiSelectAutocompleteField, renderTextArea, renderTextField, UpdateFormControls } from '../common/form/controls';
import dataStoreValueConstraints from './da... |
fries/app/js/lib/jquery-1.10.2.min.js | pbojinov/innoutFries | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b=f.trim,x=function(e,t){return new x.fn.in... |
src/pages/conference/topic/topicDetail/topicDetail.js | sunway-official/acm-admin | import React, { Component } from 'react';
import { RaisedButton } from 'material-ui';
import { Field, reduxForm } from 'redux-form';
import { compose } from 'react-apollo';
import { connect } from 'react-redux';
import { Col, Grid, Row } from 'react-flexbox-grid';
import { renderField } from '../../../../utils';
import... |
modules/__tests__/Router-test.js | neebz/react-router | /*eslint-env mocha */
/*eslint react/prop-types: 0*/
import expect from 'expect'
import React from 'react'
import createHistory from 'history/lib/createMemoryHistory'
import Router from '../Router'
import Route from '../Route'
describe('Router', function () {
let node
beforeEach(function () {
node = document.... |
react-flux-mui/js/material-ui/src/svg-icons/maps/local-post-office.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalPostOffice = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/>
</SvgIcon>
);
MapsLocalPostOff... |
ajax/libs/react-relay/0.6.0/relay.js | honestree/cdnjs | /**
* Relay v0.6.0
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("React"), require("ReactDOM"));
else if(typeof define === 'function' && define.amd)
define(["React", "ReactDOM"], factory);
else if(ty... |
src/containers/Accounts/Accounts.js | baruinho/cashier | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Modal } from 'react-bootstrap';
import * as actions from '../../redux/modules/accounts/actions';
import { getAccounts, getDeletingAccounts, getEditing } from '../../redux/modules/accounts/reducer';
import AccountForm from '../Ac... |
doc/html/_static/jquery-1.11.1.js | SGenheden/lammps | /*!
* jQuery JavaScript Library v1.11.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-05-01T17:42Z
*/
(function( global, factory ) {
if ... |
components/navigation/list/index.js | react-ui-kit/base | import React from 'react';
import PropTypes from 'prop-types';
import './style';
export default class List extends React.Component {
static displayName = 'List'
static propTypes = {
className: PropTypes.string,
center: PropTypes.bool,
right: PropTypes.bool
}
static defaultProps = {
className:... |
index.ios.js | nasgul/uwc2016teamSpring | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class todo extends Component {
render() {
return (
<View style={styles.container}>
... |
ajax/libs/rxjs/2.2.22/rx.compat.js | Pranay92/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... |
zero-cloud-boss/src/components/Example.js | xhyan/zero-cloud | import React from 'react';
const Example = () => {
return (
<div>
Example
</div>
);
};
Example.propTypes = {
};
export default Example;
|
docs/src/pages/demos/app-bar/MenuAppBar.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import AppBar from 'material-ui/AppBar';
import Toolbar from 'material-ui/Toolbar';
import Typography from 'material-ui/Typography';
import IconButton from 'material-ui/IconButton';
import MenuIcon from '@mat... |
project/react-redux/src/pages/index/components/ListItem/index.js | FFF-team/generator-earth | import React from 'react'
import { Link } from 'react-router-dom'
import './index.scss'
const ListItem = ({title, id}) => {
return (
<Link className='list-item' to={`/site/${id}?ts=123`}>{title}</Link>
)
};
export default ListItem;
|
team_builder/profile_viewer/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | broomyocymru/cargo | import React from 'react';
// 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';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
__tests__/index.android.js | jwilso48/game-walker | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/components/01-atoms/Tooltip/index.js | buildit/bookit-web | import React from 'react'
import PropTypes from 'prop-types'
import TooltipAnchor from './TooltipAnchor'
import TooltipContent from './TooltipContent'
import USER_SHAPE from '../../../models/user'
const Tooltip = props => (
<div className={props.styles.tooltip} ref={props.tooltipRef}>
<TooltipAnchor
ancho... |
app/jsx/gradezilla/default_gradebook/components/StatusColorListItem.js | venturehive/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... |
ajax/libs/elemental/0.5.3/elemental.js | sajochiu/cdnjs | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Elemental = f(... |
src/docs/pages/typography.js | gabrielcsapo/psychic-ui | import React from 'react';
import Example from '../components/example';
class Typography extends React.Component {
render() {
const { brands, brand } = this.props;
const height = window.innerHeight;
const styles = {
inline: {
"display": "inline-block",
"margin": "5px"
},
... |
src/component/searchTab/DraggableList.js | BristolPound/cyclos-mobile-3-TownPound | import React from 'react'
import { Animated, Easing, Platform } from 'react-native'
import _ from 'lodash'
import animateTo from '../../util/animateTo'
// How far to drag it before it switches between expanded/collapsed states
const DRAG_DISTANCE_TO_EXPAND = 1/3
// Higher inertia makes the momentum respond less empha... |
node_modules/react-icons/io/android-delete.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const IoAndroidDelete = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m10 31.6v-19.1h20v19.1c0 1.8-1.6 3.4-3.4 3.4h-13.2c-1.8 0-3.4-1.6-3.4-3.4z m22.5-24.1v2.5h-25v-2.5h6.3l2.1-2.5h8.2l2.2 2.5h6.2z"/></g>
</Icon>
)
export def... |
node_modules/react-navigation/src/routers/__tests__/validateRouteConfigMap-test.js | RahulDesai92/PHR | /* @flow */
import React from 'react';
import validateRouteConfigMap from '../validateRouteConfigMap';
import StackRouter from '../StackRouter';
const ListScreen = () => <div />;
const ProfileNavigator = () => <div />;
ProfileNavigator.router = StackRouter({
list: {
screen: ListScreen,
},
});
describe('va... |
server/sonar-web/src/main/js/apps/projects/visualizations/DuplicatedBlocks.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
Auth/website/src/pages/Unicorns.js | awslabs/aws-serverless-workshops | /*
* Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.