path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/index.js | minimalchat/mnml-client | import { render, h } from 'preact';
import App from './components/App';
import theme from '../config/theme.json';
// Testing to see if this works with the Theme Editor
// TODO: Figure out a better way to deal with this, but for now, hack it up!
window._mnmlThemeObject = theme; // eslint-disable-line no-underscore-dang... |
app/components/VerticalPlayer/stories.js | scampersand/sonos-front | import React from 'react'
import { storiesOf, action } from '@kadira/storybook'
import VerticalPlayer from '.'
let props = {
currentTrackInfo: {
album_art: "https://placekitten.com/500/500",
},
transportState: "PLAYING",
}
storiesOf('VerticalPlayer', module)
.add('playing', () => (
<VerticalPlayer {... |
docs/app/Examples/elements/Header/Content/HeaderExampleSettingsIcon.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Header, Icon } from 'semantic-ui-react'
const HeaderExampleSettingsIcon = () => (
<Header as='h2'>
<Icon name='settings' />
<Header.Content>
Account Settings
<Header.Subheader>
Manage your preferences
</Header.Subheader>
</Header.Content>
</H... |
ajax/libs/angular.js/0.9.0/angular-scenario.min.js | sparkgeo/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.
... |
node_modules/jquery/src/sizzle/test/jquery.js | exmonkey206/back_bean | /*!
* jQuery JavaScript Library v1.9.1
* 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-2-4
*/
(function( window, undefined ) {
// Can't do t... |
src/svg-icons/image/looks-5.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooks5 = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 6h-4v2h2c1.1 0 2 .89 2 2v2c0 1.11-.9 2-2 2H9v-2h4v-2H9V7h6v2z"/>
</SvgI... |
news/components/BannerWide.js | FreeCodeCampQuito/FreeCodeCamp | import React from 'react';
const propTypes = {};
function BannerWide() {
return (
<svg
version='1.0'
viewBox='0 0 1024 555'
xmlns='http://www.w3.org/2000/svg'
>
<path
d={
'M0 277.5V555h1024V0H0v277.5zm368.5-144.9c1.3.8 2.8 2.9 3.4 4.6 1.' +
'6 4.6-.6 8.3... |
src/routes/Projects/components/RunHistory/RunHistory.js | TestKitt/TestKittUI | import React from 'react'
import style from './RunHistory.scss'
export const Canvas = () => (
<div className={style.canvas} />
)
export default Canvas
|
src/browser/auth/SignInPage.js | skallet/este | // @flow
import type { State, User } from '../../common/types';
import Email from './Email';
import React from 'react';
import SignInError from './SignInError';
import Social from './Social';
import linksMessages from '../../common/app/linksMessages';
import { Redirect } from 'react-router';
import { compose } from 'ra... |
examples/builder/app.js | nikitka/react-redux-form | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import store from './store.js';
import FormBuilder from './FormBuilder';
class App extends React.Component {
render() {
return (
<Provider store={store}>
<FormBuilder />
</Provider>
);
... |
gifbox-ui/src/components/LoginForm.js | timmygee/gifbox | import React, { Component } from 'react';
import Input from 'react-toolbox/lib/input';
class LoginForm extends Component {
state = {
username: '',
password: '',
};
onFieldChanged(event) {
this.setState({ ...this.state, [event.target.name]: event.target.value });
}
onSubmit(event) {
}
re... |
src/components/RSequipmentThing/EquipmentDetails.js | Dynatos/personal-website | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import EquipmentSlotBox from './EquipmentSlotBox';
class IconAndCheckbox extends Component {
renderSlotBoxes() {
let { filteredItemsByEquipSlot } = this.props;
let slotTitles = Object.keys(filteredItemsByEquipSlot);
// This functi... |
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-common-calls-mixin.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import Environment from '../environment/environment.js';
export const CallsMixin = {
//@@viewOn:statics
statics: {
UU5_Common_CallsMixin: {
requiredMixins: ['UU5_Common_BaseMixin'],
errors: {
callsNotFound: 'Property calls was not set.',
staticsCallsNotFo... |
gatsby-browser.js | flexbox/webcitation | /**
* Implement Gatsby's Browser APIs in this file.
*
* See: https://www.gatsbyjs.org/docs/browser-apis/
*/
import React from 'react'
import AppProvider from 'store/provider'
import wrapPageElementWithTransition from 'helpers/wrapPageElement'
// React Context in Browser
// eslint-disable-next-line react/prop-type... |
__tests__/Board-test.js | hirakiuc/react-tiles | jest.unmock('../src/Board.js')
import React from 'react'
import ReactDOM from 'react-dom'
import TestUtils from 'react-addons-test-utils'
import Board from '../src/Board.js'
import TextWidget from '../src/widgets/TextWidget.js'
describe('Board', () => {
/*
it('has no child components', () => {
const board = Te... |
2016-European-DevSummit/2016-berlin-esrijs-awesome-parts/demos/widgets/frankenwidget/dist/components/zoom.js | odoe/presentations | 'use strict';
define(['exports', 'react', 'esri/core/watchUtils', 'esri/widgets/Zoom/ZoomViewModel', './locate', './home', './compass'], function (exports, _react, _watchUtils, _ZoomViewModel, _locate, _home, _compass) {
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react2 = _interopRe... |
src/svg-icons/communication/phonelink-lock.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhonelinkLock = (props) => (
<SvgIcon {...props}>
<path d="M19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm-8.2 10V9.5C10.8 8.1 9.4 7 8 7S5.2 8.1 5.2 ... |
ajax/libs/react-highcharts/6.0.0/highstock.js | jonathantneal/cdnjs | !function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react")):"function"==typeof define&&define.amd?define(["react"],r):"object"==typeof exports?exports.Highcharts=r(require("react")):t.Highcharts=r(t.react)}(this,function(t){return function(t){function r(o){if(e[o])return e[o].exp... |
modules/dreamview/frontend/src/components/StatusBar/index.js | jinghaomiao/apollo | import React from 'react';
import { observer } from 'mobx-react';
import AutoMeter from 'components/StatusBar/AutoMeter';
import Notification from 'components/StatusBar/Notification';
import TrafficLightIndicator from 'components/StatusBar/TrafficLightIndicator';
import DrivingMode from 'components/StatusBar/DrivingMo... |
docs/app/Examples/elements/List/Types/ListExampleDivided.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { List } from 'semantic-ui-react'
const ListExampleDivided = () => (
<List divided relaxed>
<List.Item>
<List.Icon name='github' size='large' verticalAlign='middle' />
<List.Content>
<List.Header as='a'>Semantic-Org/Semantic-UI</List.Header>
<List.Desc... |
src/components/Login.js | jma921/movie-collector | import React, { Component } from 'react';
import { login, resetPassword } from '../helpers/auth';
function setErrorMsg(error) {
return {
loginMessage: error,
};
}
export default class Login extends Component {
state = { loginMessage: null };
handleSubmit = e => {
e.preventDefault();
login(this.ema... |
docs/app/Examples/collections/Grid/Types/GridInternallyCelledExample.js | jcarbo/stardust | import React from 'react'
import { Image, Grid } from 'stardust'
const image = <Image src='http://semantic-ui.com/images/wireframe/image.png' />
const GridInternallyCelledExample = () => (
<Grid celled='internally'>
<Grid.Row>
<Grid.Column width='three'>{image}</Grid.Column>
<Grid.Column width={10}>... |
packages/material-ui-icons/src/Note.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M22 10l-6-6H4c-1.1 0-2 .9-2 2v12.01c0 1.1.9 1.99 2 1.99l16-.01c1.1 0 2-.89 2-1.99v-8zm-7-4.5l5.5 5.5H15V5.5z" /><path fill="none" d="M0 0h24v24H0V0z" /></React.Fragment>
, 'Note');
|
example/CartView/app/components/ProductItemNote.js | yaraht17/react-native-draggable-view |
import React, { Component } from 'react';
import {
StyleSheet, View, Dimensions, Image, Text,
Animated, Platform, TouchableOpacity, ScrollView, FlatList, TextInput
} from 'react-native';
import Collapsible from 'react-native-collapsible';
import iconStar from '../media/icon_star.png'
import iconStarDisable fr... |
src/index.js | kkotelczuk/weekendTour | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import injectTapEventPlugin from 'react-tap-event-plugin';
injectTapEventPlugin();
ReactDOM.render(<App />, document.getElementById('root'));
regist... |
client/components/Grid/Cell.js | dimitri-a/wp2_budget | import React, { PropTypes } from 'react';
const Cell = ({ text, className, children }, { header }) => {
if (header === true) {
return (
<th className={className}>{text}</th>
);
}
return (
<td className={className}>{text || children}</td>
);
};
Cell.contextTypes = {
header: PropTypes.bool
... |
src/esm/components/navigation/floating-menu/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["className", "children", "horizontal"],
_excluded2 = ["className", "isActive", "children", "as"];
import React from 'react';
import PropTypes from ... |
docs/src/pages/Introduction.js | Semantic-Org/Semantic-UI-React | import PropTypes from 'prop-types'
import React from 'react'
import { Link, withSiteData } from 'react-static'
import { Container, Divider, Grid, Header, Icon, Label, List, Segment } from 'semantic-ui-react'
import CodeSnippet from 'docs/src/components/CodeSnippet'
import DocsLayout from 'docs/src/components/DocsLayou... |
src/components/listview.js | butterproject/butter-desktop | import React from 'react'
import { TransitionGroup, CSSTransition } from 'react-transition-group'
import {Navbar, Toolbar, Dropdowns} from 'butter-base-components'
import {RouterMenu} from 'butter-component-menu'
const {Dropdown} = Dropdowns
import deepEqual from 'deep-equal'
import ListContainer from '../container... |
alkindi/alkindi_2016_2017/2017-FR-AL-01-reused-key/src/algorea_react_task/ui/spinner.js | France-ioi/bebras-tasks | import React from 'react';
import EpicComponent from 'epic-component';
export default EpicComponent(self => {
self.render = () => {
return (
<div className='text-center' style={{fontSize: '300%'}}><i className="fa fa-spinner fa-spin"/></div>
);
};
}); |
ajax/libs/video.js/5.0.0-rc.30/video.js | quba/cdnjs | /**
* @license
* Video.js 5.0.0-rc.30 <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... |
src/Router.js | hszeto/askout-react-native | import React, { Component } from 'react';
import { Container, Icon, Text } from 'native-base';
import { Scene, Router, Actions, TabBar } from 'react-native-router-flux';
import SignIn from './components/SignIn';
import ConfirmCode from './components/ConfirmCode';
import Dashboard from './components/Dashboard';
import E... |
django/webcode/webcode/frontend/node_modules/react-bootstrap/es/FormControl.js | OpenKGB/webcode | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/js/posts/components/comment-well.js | akornatskyy/sample-blog-react-redux | import React from 'react';
import PropTypes from 'prop-types';
import {Card, FormGroup, FormControl, Button, Alert} from 'react-bootstrap';
import {Link} from 'react-router-dom';
import Errors from '../../shared/components/errors';
class CommentWell extends React.Component {
constructor(props) {
super(pr... |
js/main.js | codestorm1/fitness-challege-HTML5-build-old | // Underscore.js 1.4.1
// http://underscorejs.org
// (c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
// Underscore may be freely distributed under the MIT license.
/*!
* mustache.js - Logic-less {{mustache}} templates with JavaScript
* http://github.com/janl/mustache.js
*/
/*! jQuery v1.8.2 jquer... |
modules/distribution/src/privacy-policies/libs/jquery_1.11.3/jquery-1.11.3.js | wso2/product-bam | /*!
* jQuery JavaScript Library v1.11.3
* 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: 2015-04-28T16:19Z
*/
(function( global, factory ) {
if ... |
ajax/libs/forerunnerdb/1.3.324/fdb-all.min.js | boneskull/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
src/layouts/FooteredLayout/FooteredLayout.spec.js | diMosellaAtWork/GeoWeb-FrontEnd | import React from 'react';
import FooteredLayout from './FooteredLayout';
import { shallow } from 'enzyme';
import { Col } from 'reactstrap';
describe('(Layout) FooteredLayout', () => {
it('Renders a Reactstrap Container', () => {
const _component = shallow(<FooteredLayout route={{}} />);
expect(_component.t... |
modules/__tests__/createRoutesFromReactChildren-test.js | yongxu/react-router | import expect from 'expect';
import React from 'react';
import { createRoutesFromReactChildren } from '../RouteUtils';
import IndexRoute from '../IndexRoute';
import Route from '../Route';
describe('createRoutesFromReactChildren', function () {
var Parent = React.createClass({
render() {
return (
... |
libs/yui/3.17.0/event-focus/event-focus-debug.js | Clouda-team/baiducdnstatic | /*
YUI 3.17.0 (build ce55cc9)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('event-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Ev... |
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... |
experiment-web-services/Server/node_modules/socket.io/node_modules/socket.io-client/node_modules/uglify-js/tmp/app.js | jjenki11/ExperimentCarnivore | /* Modernizr 2.0.6 (Custom Build) | MIT & BSD
* Build: http://www.modernizr.com/download/#-iepp
*/
;window.Modernizr=function(a,b,c){function w(a,b){return!!~(""+a).indexOf(b)}function v(a,b){return typeof a===b}function u(a,b){return t(prefixes.join(a+";")+(b||""))}function t(a){j.cssText=a}var d="2.0.6",e={},f=b.do... |
app/containers/LineChart.js | snicksnk/draggable-d3-react-redux-chart | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as chartActions from '../actions/chart';
import { getPointsInViewport } from '../selectors/chart';
import LineChart from '../components/LineChart';
const MindMap = ({ actions, points, offset, limit })... |
src/svg-icons/action/home.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHome = (props) => (
<SvgIcon {...props}>
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
</SvgIcon>
);
ActionHome = pure(ActionHome);
ActionHome.displayName = 'ActionHome';
ActionHome.muiName = 'SvgIcon... |
src/website/app/SiteHeading.js | mineral-ui/mineral-ui | /* @flow */
import styled from '@emotion/styled';
import React from 'react';
import { themed } from '../../library/themes';
import Heading from './Heading';
import Link from './SiteLink';
import type { StyledComponent } from '@emotion/styled-base/src/utils';
type siteHeadingProps = {
anchor?: boolean,
children: Re... |
frontend/test/app/containers/HomePageWithAddon-test.js | dannycoates/testpilot | import React from 'react';
import { expect } from 'chai';
import sinon from 'sinon';
import { shallow } from 'enzyme';
import HomePageWithAddon from '../../../src/app/containers/HomePageWithAddon';
describe('app/containers/HomePageWithAddon', () => {
let props, experiments, subject;
beforeEach(function() {
pr... |
src/components/Index/index.js | City-of-Helsinki/helerm-ui | import React from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { setNavigationVisibility } from '../Navigation/reducer';
class IndexPage extends React.Component {
componentDidMount () {
this.props.openNavigation();
}
... |
app/containers/HomePage.js | manojsinghnegiwd/ReactElectronImageBrowser | // @flow
import React, { Component } from 'react';
import Home from '../components/Home/';
import Header from '../components/Layout/Header';
export default class HomePage extends Component {
render() {
let {images} = this.props.mainStore;
return (
<div className="main-container">
<Header {...this.p... |
src/components/InputGroup/InputGroup-test.js | wfp/ui | import React from 'react';
import { shallow, mount } from 'enzyme';
import InputGroup from '.';
import RadioButton from '../RadioButton';
describe('InputGroup', () => {
describe('renders as expected', () => {
const wrapper = mount(
<InputGroup defaultSelected="female" name="gender">
<RadioButton la... |
node_modules/semantic-ui-react/src/views/Feed/FeedUser.js | SuperUncleCat/ServerMonitoring | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
childrenUtils,
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
/**
* A feed can contain a user element.
*/
function FeedUser(props) {
const { children, className, content } = pr... |
src/client/components/list/element/ListElement.js | DBCDK/content-first | import React from 'react';
import {connect} from 'react-redux';
import {
UPDATE_LIST_ELEMENT,
removeElementFromList,
storeList
} from '../../../redux/list.reducer';
import {getUser} from '../../../redux/users';
import Comments from '../../comments/Comment.container';
import ContextMenu, {ContextMenuAction} from '... |
src/svg-icons/image/transform.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTransform = (props) => (
<SvgIcon {...props}>
<path d="M22 18v-2H8V4h2L7 1 4 4h2v2H2v2h4v8c0 1.1.9 2 2 2h8v2h-2l3 3 3-3h-2v-2h4zM10 8h6v6h2V8c0-1.1-.9-2-2-2h-6v2z"/>
</SvgIcon>
);
ImageTransform = pure(I... |
Examples/UIExplorer/XHRExample.ios.js | yangshangde/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
src/app.js | hypriot/kitematic | require.main.paths.splice(0, 0, process.env.NODE_PATH);
import electron from 'electron';
const remote = electron.remote;
const Menu = remote.Menu;
// ipcRenderer is used as we're in the process
const ipcRenderer = electron.ipcRenderer;
import React from 'react';
import metrics from './utils/MetricsUtil';
import templ... |
src/Menu/MenuAnchor.js | kradio3/react-mdc-web | import PropTypes from 'prop-types';
import React from 'react';
import classnames from 'classnames';
const propTypes = {
children: PropTypes.node,
className: PropTypes.string,
};
const MenuAnchor = ({ children, className, ...otherProps }) => (
<div
className={classnames('mdc-menu-anchor', className)}
{..... |
vendor/jquery/jquery.min.js | tracy0412/final | /*! jQuery v1.12.4 | (c) jQuery Foundation | 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 window?window:this,fu... |
code/workspaces/web-app/src/pages/AdminResourcesPage.spec.js | NERC-CEH/datalab | import React from 'react';
import { render } from '@testing-library/react';
import AdminResourcesPage from './AdminResourcesPage';
const userPermissions = ['expectedPermission'];
jest.mock('../containers/adminResources/AdminResourcesContainer', () => props => (<div>AdminResourcesContainer mock {JSON.stringify(props)}... |
node_modules/react-bootstrap/es/Pagination.js | ivanhristov92/bookingCalendar | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
tests/unit/test_helpers.js | tsl143/addons-frontend | /* eslint-disable react/no-multi-comp */
import React, { Component } from 'react';
import { ConnectedRouter } from 'connected-react-router';
import { shallow, mount } from 'enzyme';
import { createMemoryHistory } from 'history';
import { compose } from 'redux';
import { Provider } from 'react-redux';
import { Route } f... |
src/svg-icons/notification/wc.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationWc = (props) => (
<SvgIcon {...props}>
<path d="M5.5 22v-7.5H4V9c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2v5.5H9.5V22h-4zM18 22v-6h3l-2.54-7.63C18.18 7.55 17.42 7 16.56 7h-.12c-.86 0-1.63.55-1.9 1.37L12 16h3v6... |
src/scenes/home/press/press.js | tal87/operationcode_frontend | import React from 'react';
import { Link } from 'react-router-dom';
import Section from 'shared/components/section/section';
import PressVideos from './pressVideos/pressVideos';
import PressPhotos from './pressPhotos/pressPhotos';
import PressBranding from './pressBranding/pressBranding';
import styles from './press.cs... |
ajax/libs/yui/3.13.0/scrollview-base/scrollview-base-coverage.js | jimmybyrum/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/scrollview-base/scrollview-base.js']) {
__coverage__['build/scrollview-base/scrollview-base.js'] = {"path":"build/scrollview-base/scrollview-base.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":... |
example/index.ios.js | shoumma/react-native-off-canvas-menu | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class OffCanvasMenu extends Component {
render() {
return (
<View style={styles.container}>
... |
bower_components/react-bootstrap/lib/Modal.js | joshwalker1026/FxOSPMClient | define(["exports", "module", "react", "classnames", "./BootstrapMixin", "./FadeMixin", "./utils/domUtils", "./utils/EventListener"], function (exports, module, _react, _classnames, _BootstrapMixin, _FadeMixin, _utilsDomUtils, _utilsEventListener) {
"use strict";
var _interopRequire = function (obj) { return obj &&... |
src/layouts/layout-4-3.js | nuruddeensalihu/binary-next-gen | import React from 'react';
export default (components, className, onClick) => (
<div className={className} onClick={onClick}>
<div className="vertical">
{components[0]}
</div>
<div className="vertical">
{components[1]}
{components[2]}
{compone... |
src/components/d3components/Bar.js | nbuechler/ample-affect-exhibit | import React from 'react';
import ReactDOM from 'react-dom';
import d3 from 'd3';
import _ from 'underscore';
export default class Bar extends React.Component {
constructor (props) {
super(props);
this.state = {};
}
_handleOver(d) {
/*
* Assumption: the dataLength is always half the size of the ... |
src/Parser/MistweaverMonk/Modules/Traits/WayOfTheMistweaver.js | mwwscott0/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Module from 'Parser/Core/Module';
import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing';
i... |
ajax/libs/react-virtualized/9.10.0-alpha.0/react-virtualized.min.js | jonobr1/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],t):"object"==typeof exports?exports.ReactVirtualized=t(require("React"),require("ReactDOM")):e.ReactVirtualized=t(e.React,e.ReactDOM)}... |
app/javascript/mastodon/containers/mastodon.js | clworld/mastodon | import React from 'react';
import { Provider, connect } from 'react-redux';
import PropTypes from 'prop-types';
import configureStore from '../store/configureStore';
import { INTRODUCTION_VERSION } from '../actions/onboarding';
import { BrowserRouter, Route } from 'react-router-dom';
import { ScrollContext } from 'reac... |
js/converse.js-0.8.3/builds/converse-no-locales-no-otr.min.js | ArcherSys/ASOSBLOCKLY | /**
* @license almond 0.2.9 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/jrburke/almond for details
*/
/*!
* jQuery JavaScript Library v1.11.0
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copy... |
ajax/libs/yui/3.11.0pr1/scrollview-base/scrollview-base.js | MisatoTremor/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
*/
// Local vars
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
IE = Y.UA.ie... |
ajax/libs/cleave.js/0.7.7/cleave-react.js | Amomo/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["Cleave"] = factory(... |
__tests__/components/Quote-test.js | linde12/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React from 'react';
import renderer from 'react-test-renderer';
import Quote from '../../src/js/components/Quote';
// needed because this:
// https://github.com/facebook/jest/issues/1353
jest.mock('react-dom');
describe('Quote', () => {
i... |
src/ButtonToolbar.js | apkiernan/react-bootstrap | import classNames from 'classnames';
import React from 'react';
import Button from './Button';
import { bsClass, bsSizes, getClassSet, splitBsProps }
from './utils/bootstrapUtils';
class ButtonToolbar extends React.Component {
render() {
const { className, ...props } = this.props;
const [bsProps, elementP... |
src/elements/Segment/Segment.js | shengnian/shengnian-ui-react | import cx from 'classnames'
import _ from 'lodash'
import PropTypes from 'prop-types'
import React from 'react'
import {
childrenUtils,
customPropTypes,
getElementType,
getUnhandledProps,
META,
SUI,
useKeyOnly,
useKeyOrValueAndKey,
useTextAlignProp,
useValueAndKey,
} from '../../lib'
import Segment... |
src/components/UserThumbnail/UserThumbnail.js | nambawan/g-old | import React from 'react';
import cn from 'classnames';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/withStyles';
import s from './UserThumbnail.css';
import Link from '../Link';
import Avatar from '../Avatar';
const UserThumbnail = ({ user, label, marked, big }) => {
const ful... |
src/svg-icons/maps/subway.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsSubway = (props) => (
<SvgIcon {...props}>
<circle cx="15.5" cy="16" r="1"/><circle cx="8.5" cy="16" r="1"/><path d="M7.01 9h10v5h-10zM17.8 2.8C16 2.09 13.86 2 12 2c-1.86 0-4 .09-5.8.8C3.53 3.84 2 6.05 2 8.... |
packages/metadata-react/src/SplitPane/Pane.js | oknosoft/metadata.js | import React from 'react';
import PropTypes from 'prop-types';
import Prefixer from 'inline-style-prefixer';
import stylePropType from 'react-style-proptype';
const DEFAULT_USER_AGENT = 'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.2 (KHTML, like Gecko) Safari/537.2';
const USER_AGENT = typeof navigator !== 'undefined... |
admin/client/App/screens/List/components/Filtering/ListFiltersAdd.js | rafmsou/keystone | import React from 'react';
import { findDOMNode } from 'react-dom';
import Transition
from 'react-addons-css-transition-group';
import classnames from 'classnames';
import ListFiltersAddForm from './ListFiltersAddForm';
import Popout from '../../../../shared/Popout';
import PopoutList from '../../../../shared/Popout/P... |
boot_003/js/libs/jquery.min.js | songzigw/song_web_ui | /*! jQuery v@1.8.0 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/Image/ImagePreviewer.js | ClarityMovement/clarity-components | import React from 'react';
import T from 'prop-types';
import Image from 'react-image';
import LightBox from 'react-image-lightbox';
import Spinner from 'react-md-spinner';
import { compose, withState, withHandlers } from 'recompose';
import { omitProps, embedHandler } from 'react-render-counter/hocs';
const styles = ... |
packages/material-ui-icons/src/BlurOn.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let BlurOn = props =>
<SvgIcon {...props}>
<path d="M6 13c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1... |
files/clappr/0.0.85/clappr.js | afghanistanyn/jsdelivr | 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)... |
client/test/pages/Home.js | CMPUT404F16Project/cmput404-project | import React from 'react';
import { shallow } from 'enzyme';
import assert from 'assert';
import Home from '../../src_users/pages/Home';
// unit tests for the Home component
describe('Home component', () => {
describe('render()', () => {
it('should render the component', () => {
const wrapper ... |
lib/Sae.js | halilb/react-native-textinput-effects | import React from 'react';
import PropTypes from 'prop-types';
import {
Animated,
TextInput,
TouchableWithoutFeedback,
View,
StyleSheet,
} from 'react-native';
import BaseInput from './BaseInput';
export default class Sae extends BaseInput {
static propTypes = {
height: PropTypes.number,
/*
*... |
ui/src/js/co2/LoadableCo2Calculator.js | Dica-Developer/weplantaforest | import React, { Component } from 'react';
import Loadable from 'react-loadable';
const LoadableComponent = Loadable({
loader: () => import('./Co2Calculator'),
loading() {
return <div>Loading...</div>;
}
});
export default class LoadableCo2Calculator extends Component {
render() {
return <LoadableCompo... |
client-react/src/components/Charts/ValueChart.js | diman84/Welthperk | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { ResponsiveContainer, LineChart, Line, YAxis, XAxis, Tooltip, CartesianGrid } from 'recharts';
const data = [
{ x: 0, y: 80, saved: 2400 },
{ x: '1W', y: 110, saved: 2210 },
{ x: '2W', y: 800, saved: 2290 },
{ x: '3W', y: 480... |
node_modules/react/lib/ReactMarkupChecksum.js | cylcharles/webpack | /**
* 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.
*
* @providesModule ... |
client/src/app/components/forms/inputs/Clockpicker.js | zraees/sms-project | import React from 'react'
import 'script-loader!clockpicker/dist/bootstrap-clockpicker.min.js'
export default class Clockpicker extends React.Component {
componentDidMount() {
const element = $(this.refs.input);
const options = {
placement: 'top',
donetext: 'Done'
};
element.clockpicker(... |
app/components/faq/FaqcontentXL/index.js | vkurzweg/aloha | /**
*
* Faqcontent
*
*/
import React from 'react';
// import styled from 'styled-components';
import { Link } from 'react-router';
import Q from './Q';
import A from './A';
import FAQ from 'data/Faq';
function Faqcontent() {
const office = 'http://res.cloudinary.com/kurzweg/image/upload/v1494631994/office_tuvew1.p... |
fmi-2022-05-react-todos/src/TodoFeature.js | iproduct/course-node-express-react | import React, { Component } from 'react';
import './App.css';
import TodoList from './TodoList';
class TodoFeature extends Component {
constructor(props) {
super(props);
this.state = {
todos: [
{id: 1, text: 'Learn ECMAScript', status:'active'},
{id: 2, text: 'Learn React', status:'a... |
github-profile-viewer/src/components/App.js | Zyst/learning-react | import React from 'react';
import Profile from './github/Profile';
import Search from './github/Search';
class App extends React.Component {
constructor(props) {
super(props);
this.state = {
username: 'Zyst',
userData: [],
userRepos: [],
perPage: 10,
};
}
// Get user data f... |
index.js | akurihara/todomvc | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import App from './containers/app';
import todoApp from './modules/reducers'
const store = createStore(todoApp)
render(
<Provider store={store}>
<App />
</Provider>,
do... |
client/src/components/formHelpers/BlockSaveButton.js | otavioarc/freeCodeCamp | import React from 'react';
import PropTypes from 'prop-types';
import { Button } from '@freecodecamp/react-bootstrap';
function BlockSaveButton(props) {
return (
<Button block={true} bsStyle='primary' {...props} type='submit'>
{props.children || 'Save'}
</Button>
);
}
BlockSaveButton.displayName = '... |
frontend/components/category/tag.js | apostolidhs/wiregoose | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router';
import Badge from 'react-bootstrap/lib/Badge';
import tr from '../localization/localization.js';
export default class Tag extends React.Component {
static propTypes = {
name: PropTypes.string.isRequired,
}
... |
geonode/monitoring/frontend/monitoring/src/components/cels/geoserver-status/index.js | tomkralidis/geonode | /*
#########################################################################
#
# Copyright (C) 2019 OSGeo
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# ... |
app/javascript/mastodon/components/avatar.js | tateisu/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { autoPlayGif } from '../initial_state';
export default class Avatar extends React.PureComponent {
static propTypes = {
account: ImmutablePropTypes.map.isRequired,
size: PropType... |
src/components/demo/syncValidation/SyncValidationForm.js | tedyuen/react-redux-form-v6-example | import React from 'react';
import { Field, reduxForm } from 'redux-form';
import inputField from '../../utils/validation/inputField';
import radioField from '../../utils/validation/radioField';
import textareaField from '../../utils/validation/textareaField';
import selectField from '../../utils/validation/selectField'... |
docs/src/app/AppRoutes.js | tan-jerene/material-ui | import React from 'react';
import {
Route,
Redirect,
IndexRoute,
} from 'react-router';
// Here we define all our material-ui ReactComponents.
import Master from './components/Master';
import Home from './components/pages/Home';
import Prerequisites from './components/pages/get-started/Prerequisites';
import In... |
zip/src/src/components/Feedback/Feedback.js | vbdoug/ISOReStack | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback {
render() {
return (
<div className="Feedback">
<div className="Feedba... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.