path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/js/Pickers/__tests__/DatePickerContainer.js | lwhitlock/grow-tracker | /* eslint-env jest*/
/* eslint-disable global-require,max-len */
jest.unmock('../DatePickerContainer');
jest.unmock('../DatePicker');
import React from 'react';
import { findDOMNode } from 'react-dom';
import {
renderIntoDocument,
findRenderedDOMComponentWithTag,
} from 'react-dom/test-utils';
import { mount } fro... |
src/internal/RenderToLayer.js | barakmitz/material-ui | import {Component, PropTypes} from 'react';
import ReactDOM from 'react-dom';
import Dom from '../utils/dom';
// heavily inspired by https://github.com/Khan/react-components/blob/master/js/layered-component-mixin.jsx
class RenderToLayer extends Component {
static propTypes = {
componentClickAway: PropTypes.func,... |
src/components/pagination/index.js | jl-/bronote | /**
* <Pagination
* total={100}
* current={8}
* adjacent={2}?
* tail={2}?
* onPageChange={func}
* />
*/
import React, { Component } from 'react';
import cx from 'classnames';
import styles from './style.scss';
const DEFAULT_ADJACENT = 3;
const DEFAULT_TAIL = 1;
const HAS_MORE = 2;
const MORE_INDICATO... |
ajax/libs/cleave.js/0.4.3/app-es6.js | tonytomov/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/inferno-compat/1.3.0-rc.10/inferno-compat.js | extend1994/cdnjs |
/*!
* inferno-compat v1.3.0-rc.10
* (c) 2017 Dominic Gannaway'
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('inferno-component'), require('inferno')) :
typeof define === 'function' && define.amd ? defin... |
node_modules/axios/lib/utils.js | ichbinder/homeapp | 'use strict';
var bind = require('./helpers/bind');
/*global toString:true*/
// utils is a library of generic helper functions non-specific to axios
var toString = Object.prototype.toString;
/**
* Determine if a value is an Array
*
* @param {Object} val The value to test
* @returns {boolean} True if value is a... |
files/yui/3.17.2/datatable-core/datatable-core-coverage.js | bdukes/jsdelivr | /*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/datatable-core/datatable-core.js']) {
__coverage__['build/datatable-core/datatable-... |
src/svg-icons/action/hourglass-empty.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHourglassEmpty = (props) => (
<SvgIcon {...props}>
<path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5l-4-4V4h8v3.5l-4 4z"/>
... |
docs/app/Examples/views/Item/Variations/Divided.js | jcarbo/stardust | import React from 'react'
import { Button, Icon, Image as ImageComponent, Item, Label } from 'stardust'
const { Content, Description, Extra, Group, Header, Image, Meta } = Item
const paragraph = <ImageComponent src='http://semantic-ui.com/images/wireframe/short-paragraph.png' />
const Divided = () => (
<Group divid... |
ajax/libs/react-data-grid/0.13.5/react-data-grid.js | sashberd/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["ReactDataGrid"] = f... |
src/js/components/EndButton.js | BavoG/onesupportdocu | import React from 'react';
import Up from 'grommet/components/icons/base/Up';
import Button from 'grommet/components/Button';
import Box from 'grommet/components/Box';
const CLASS_ROOT = 'infographic__button';
export default function EndButton (props) {
return (
<Button plain={true} className={`${CLASS_ROOT} ${... |
components/Dots.js | FuYaoDe/react-native-app-intro | import React from 'react'
import {
Text,
View
} from 'react-native';
export const Dot = ({
styles, dotColor, activeDotColor, active
}) => {
if (active) {
return (
<View
style={[styles.dotStyle, styles.activeDotStyle, {
backgroundColor: activeDotColor
}]}
/>
);
... |
packages/node_modules/@ciscospark/react-component-new-messages-separator/src/index.js | Altocloud/alto-react-ciscospark | import React from 'react';
import PropTypes from 'prop-types';
import ListSeparator from '@ciscospark/react-component-list-separator';
function NewMessageSeparator({message}) {
return (
<div>
<ListSeparator isInformative primaryText={message} />
</div>
);
}
NewMessageSeparator.propTypes = {
messa... |
installation/DynamicDocumentation/scripts/web/gui/gulpfile.js | sdl/dxa-modules | /**
*
* Copyright (c) 2014 All Rights Reserved by the SDL Group.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... |
ajax/libs/mediaelement/2.1.8/jquery.js | viskin/cdnjs | /*!
* jQuery JavaScript Library v1.6.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/components/Request/RequestItem.js | andresmechali/shareify | import React from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import Image from '../Image';
const RequestItem = (props) => {
if (props.activeRequest.item.type === 'request') {
console.log(props.activeRequest);
}
return (
<div className="ui-block">
... |
docs/src/app/components/pages/components/FlatButton/ExampleIcon.js | barakmitz/material-ui | import React from 'react';
import FlatButton from 'material-ui/FlatButton';
import FontIcon from 'material-ui/FontIcon';
import ActionAndroid from 'material-ui/svg-icons/action/android';
import {fullWhite} from 'material-ui/styles/colors';
const style = {
margin: 12,
};
const FlatButtonExampleIcon = () => (
<div>... |
blueocean-dashboard/src/test/js/pipeline-spec.js | tfennelly/blueocean-plugin | import React from 'react';
import {createRenderer} from 'react-addons-test-utils';
import { assert} from 'chai';
import sd from 'skin-deep';
import PipelineRowItem from '../../main/js/components/PipelineRowItem.jsx';
import { PipelineRecord } from '../../main/js/components/records.jsx';
const
hack={
MultiBranch... |
src/components/messages.js | Lokiedu/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2016 Loki Education (Social Enterprise)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, o... |
src/containers/App/index.js | buildit/bookit-web | import React from 'react'
import PropTypes from 'prop-types'
import styles from './styles.scss'
const App = props => (
<div className={styles.app}>
{props.children}
</div>
)
App.propTypes = {
children: PropTypes.node,
}
export default App
|
src/components/ProgressBar.js | quintel/etmobile | import React from 'react';
import PropTypes from 'prop-types';
/**
* Given a number of questions - total - and the current question - current -
* determines how wide the bar should be.
*/
const progressToWidth = ({ current, total }) => (
`${((current + 1) / (total + 1)) * 100}%`
);
const ProgressBar = props => (... |
src/components/Tests.js | petercollingridge/math-for-programmers-prototype | import React from 'react';
import PropTypes from 'prop-types';
const testStatus2Icon = status => {
switch (status) {
case 'failed':
return 'times';
case 'passed':
return 'check';
default:
return 'cog';
}
};
const testStatus2Color = status => {
switch (status) {
case 'failed':
... |
client/components/templates/CreateTemplateForm.spec.js | karuppiah7890/Mail-for-Good | import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import CreateTemplateForm from './CreateTemplateForm';
const mockProps = ( overrides) => ({ // eslint-disable-line no-unused-vars
touch: () => {},
valid: true,
pristine: true,
submitting: true,
nextPage: () => {},
... |
packages/material-ui-icons/src/WatchLaterSharp.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><defs><path id="a" d="M0 0h24v24H0z" /></defs><g><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z" /></g></React.Fragment>
, 'Watc... |
bin/abcjs_plugin_1.12-min.js | gabrielsanchez/abcjs | /*! 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... |
scripts/client/components/Home.js | antca/antca.github.io | import React from 'react';
import Utils from '../Utils';
import markdown from 'markdown-it';
var md = markdown({html: true});
var Home = React.createClass({
componentDidMount() {
this.updateProject();
},
updateProject() {
Utils.getAjax(`/public/home/home-${this.props.lang}.md`, (content) =... |
swiil/src/App.js | saaqibz/inbev-hackathon | import React from 'react'
import {
BrowserRouter as Router,
Route
} from 'react-router-dom'
import './App.css';
import statusBarImg from './assets/ios-statusbar.png';
import SplashView from './components/Splash';
import MenuContainer from './components/Menu';
import PairingView from './components/Pairing';
/... |
ajax/libs/react-instantsearch/4.1.1/Connectors.js | pvnr0082t/cdnjs | /*! ReactInstantSearch 4.1.1 | © 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.... |
stories/TwelveHoursMode.js | erin-doyle/react-times | import '../css/material/default.css';
import React from 'react';
import TimePickerWrapper from '../examples/TimePickerWrapper';
import {storiesOf} from '@kadira/storybook';
storiesOf('TwelveHoursMode', module)
.addWithInfo('with default time', () => (
<TimePickerWrapper
timeMode="12"
defaultTime="13... |
chapter 5/router/app/About.js | pro-react/sample-code | import React, { Component } from 'react';
class About extends Component {
render() {
return (
<h1>{this.props.route.title}</h1>
);
}
}
export default About;
|
assets/third-party/jquery/jquery-1.11.3.min.js | psuplat/manager | /*! jQuery v1.11.3 | (c) 2005, 2015 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... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/rc-slider/es/Range.js | bhathiya/test | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _toConsumableArray from 'babel-runtime/helpers/toConsumableArray';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createCl... |
imports/ui/components/FeedBacks/ProductFit/ProductFit.js | haraneesh/mydev | /* eslint-disable max-len, no-return-assign */
import React from 'react';
import PropTypes from 'prop-types';
import SurveyQuestion from './SurveyQuestion.js';
import { FormControl, Modal, Button, Row, Col, FormGroup } from 'react-bootstrap';
import './ProductFit.scss';
export default class ProductFit extends React.... |
packages/core/admin/admin/src/content-manager/pages/EditSettingsView/components/ComponentFieldList.js | wistityhq/strapi | import React from 'react';
import PropTypes from 'prop-types';
import { Box } from '@strapi/design-system/Box';
import { Flex } from '@strapi/design-system/Flex';
import { Link } from '@strapi/design-system/Link';
import { Typography } from '@strapi/design-system/Typography';
import Cog from '@strapi/icons/Cog';
import... |
src/utils/createContextWrapper.js | tonylinyy/react-bootstrap | import React from 'react';
/**
* Creates new trigger class that injects context into overlay.
*/
export default function createContextWrapper(Trigger, propName) {
return function (contextTypes) {
class ContextWrapper extends React.Component {
getChildContext() {
return this.props.context;
}... |
src/components/countdown.js | MayinBun/react-playground | import React from 'react';
const Countdown = React.createClass({
getInitialState: function () {
return {
secondsRemaining: 0,
showText:false
};
},
tick: function () {
this.setState({ secondsRemaining: this.state.secondsRemaining - 1 });
if (this.state.secondsRemaining <= 0) {
this.setState({showT... |
packages/material-ui-icons/src/TrackChangesTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M19.07 4.93l-1.41 1.41C19.1 7.79 20 9.79 20 12c0 4.42-3.58 8-8 8s-8-3.58-8-8c0-4.08 3.05-7.44 7-7.93v2.02C8.16 6.57 6 9.03 6 12c0 3.31 2.69 6 6 6s6-2.69 6-6c0-1.66-.67-3.16-1.76-4.24l-1.41 1.41C15.55 ... |
node_modules/@angular/router/@angular/router.es5.js | Lshreya/UniversalProject | var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
/**
* @license Angular v4.0.2
* (c) 2010-2017 Google, Inc. h... |
src/components/cart/cartDetail/CartDetailListItemComponent.js | bluebill1049/cart | 'use strict';
import React from 'react';
require('styles/cart/cartDetail/CartDetailListItem.scss');
class CartDetailListItemComponent extends React.Component {
constructor(props){
super(props);
}
render() {
let name = '',
price = 0,
description = '',
imagePath = '';
if(this.prop... |
src/svg-icons/action/translate.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTranslate = (props) => (
<SvgIcon {...props}>
<path d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.7... |
web/src/js/__tests__/components/Header/FilterInputSpec.js | zlorb/mitmproxy | import React from 'react'
import renderer from 'react-test-renderer'
import FilterInput from '../../../components/Header/FilterInput'
import FilterDocs from '../../../components/Header/FilterDocs'
import TestUtil from 'react-dom/test-utils'
import ReactDOM from 'react-dom'
import { Key } from '../../../utils'
describe... |
examples/using-preact/pages/index.js | nikvm/next.js | import React from 'react'
import Link from 'next/link'
export default () => (
<div>Hello World. <Link href='/about'><a>About</a></Link></div>
)
|
src/svg-icons/image/rotate-left.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageRotateLeft = (props) => (
<SvgIcon {...props}>
<path d="M7.11 8.53L5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47zM6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1.... |
ajax/libs/inferno-devtools/1.0.0-beta44/inferno-devtools.js | extend1994/cdnjs | /*!
* inferno-devtools v1.0.0-beta44
* (c) 2016 Dominic Gannaway
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('./inferno'), require('./inferno-component')) :
typeof define === 'function' && define.amd ? defi... |
docs/src/app/components/pages/components/AppBar/ExampleIconButton.js | w01fgang/material-ui | import React from 'react';
import AppBar from 'material-ui/AppBar';
import IconButton from 'material-ui/IconButton';
import NavigationClose from 'material-ui/svg-icons/navigation/close';
import FlatButton from 'material-ui/FlatButton';
function handleTouchTap() {
alert('onTouchTap triggered on the title component');... |
ajax/libs/inferno-compat/1.0.0-alpha4/inferno-compat.min.js | sashberd/cdnjs | !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(e.InfernoCompat=e.InfernoCompat||{})}(this,function(e){"use strict";function n(e){return e instanceof Array}function t(e){var n=e.component;return!s(n.prototype)&&!s(n.prototype.r... |
src/components/test/JsonTextarea.spec.js | schneckentempo/ClicksAndImpressions | import React from 'react'
import { shallow } from 'enzyme'
import { expect } from 'chai'
import JsonTextarea from '../JsonTextarea'
const wrapper = shallow(<JsonTextarea />)
describe('(Component) JsonTextarea', () => {
it('renders without exploding', () => {
expect(wrapper).to.have.length(1)
})
})
|
ajax/libs/angular-google-maps/2.1.3/angular-google-maps_dev_mapped.js | keicheng/cdnjs | /*! angular-google-maps 2.1.3 2015-06-10
* AngularJS directives for Google Maps
* git: https://github.com/angular-ui/angular-google-maps.git
*/
;
(function( window, angular, undefined ){
'use strict';
/*
!
The MIT License
Copyright (c) 2010-2013 Google, Inc. http://angularjs.org
Permission is hereby granted, f... |
web/ui/static/thirdparty/jquery-ui-1.10.3/tests/jquery-1.8.0.js | control-center/serviced | /*!
* jQuery JavaScript Library v1.8.0
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Thu Aug 09 2012 16:24:48 GMT-0400 (Eastern Daylight Time)
*/
(function(... |
lib/ui/src/settings/about.stories.js | storybooks/storybook | import React from 'react';
import { storiesOf } from '@storybook/react';
import { actions as createActions } from '@storybook/addon-actions';
import { AboutScreen } from './about';
const info = {
plain: `- upgrade webpack & babel to latest\n- new addParameters and third argument to .add to pass data to addons\n- ad... |
plugins/af.scroller.js | elitelinux/appframework | /**
* af.scroller
* created by Intel with modifications by Carlos Ouro @ Badoo and Intel
* Supports iOS native touch scrolling
* Optimizations and bug improvements by Intel
* @copyright Intel
*/
/* global numOnly*/
(function ($) {
"use strict";
var HIDE_REFRESH_TIME = 325; // hide animation of pull2ref ... |
index.ios.js | githubhaohao/DevNews | /**
* 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 DevNews extends Component {
render() {
return (
<View style={styles.container}>... |
client/components/comments/comment_list.js | nickletgo/react-meteor-seed | import React, {Component} from 'react'
import {createContainer} from 'meteor/react-meteor-data'
import Comments from '../../../imports/collections/comments'
class CommentList extends Component{
onBinRemove(comment){
Meteor.call('comments.remove', comment)
}
getCommentList(){
//Use this.pro... |
imports/ui/pages/VerifyEmailAlert/VerifyEmailAlert.js | jamiebones/Journal_Publication | import React from 'react';
import PropTypes from 'prop-types';
import { Alert } from 'react-bootstrap';
import { Accounts } from 'meteor/accounts-base';
import { Bert } from 'meteor/themeteorchef:bert';
class VerifyEmail extends React.Component {
constructor(props) {
super(props);
this.state = { error: null ... |
react/features/mobile/polyfills/browser.js | bgrozev/jitsi-meet | import { Platform } from 'react-native';
import BackgroundTimer from 'react-native-background-timer';
import '@webcomponents/url'; // Polyfill for URL constructor
import Storage from './Storage';
/**
* Gets the first common prototype of two specified Objects (treating the
* objects themselves as prototypes as well... |
dist/fynx-decorators.min.js | foss-haas/fynx-decorators | var FynxMixins=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";e.exports={connect:n(1),connectProp:n(153)}},function(e,t,n){"use strict";fun... |
dva/src/router.js | HallyGit/pbi-web | import React from 'react';
import { Router, Route } from 'dva/router';
import home from './routes/home/home';
function RouterConfig({ history }) {
return (
<Router history={history}>
<Route path="/" component={home} />
</Router>
);
}
export default RouterConfig;
|
src/svg-icons/image/filter-none.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterNone = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"/>
</SvgIcon>
);
Ima... |
docs/src/examples/elements/Button/States/ButtonExampleDisabled.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleDisabled = () => <Button disabled>Disabled</Button>
export default ButtonExampleDisabled
|
ajax/libs/yasgui/1.0.5/yasgui.min.js | jamzgoodguy/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.YASGUI=e()}}(function(){var e;return function t(e,n,r... |
packages/material-ui-icons/src/AccessibleForwardOutlined.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><circle cx="18" cy="4.54" r="2" /><path d="M15 17h-2c0 1.65-1.35 3-3 3s-3-1.35-3-3 1.35-3 3-3v-2c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5zm3-3.5h-1.86... |
__tests__/Style-16.js | buildbreakdo/style-it | import React from 'react';
import { findDOMNode, render } from 'react-dom';
import TestUtils from 'react-addons-test-utils';
const removeNewlines = (string) => (string.replace(/(\r\n|\n|\r)/gm, ''))
import Style from '../src/index.js';
describe('Style-16', () => {
it('does not produce an error when root element ch... |
src/client/components/UserMenuWidget/UserMenuWidget.js | trippian/trippian | import log from '../../log'
import React from 'react'
import {
Link
}
from 'react-router'
import store from '../../redux/store'
import {
FormattedMessage
}
from 'react-intl'
const UserMenuWidget = ({
displayName, isAdmin, picture, isAuthed
}) => {
// const {
// } = store.getState().appState.get('user')
r... |
src/components/TimeAndSalary/common/InfoSalaryModal.js | goodjoblife/GoodJobShare | import React from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import Modal from 'common/Modal';
import Question from 'common/icons/Question';
import editorStyles from 'common/Editor.module.css';
import Button from 'common/button/Button';
const InfoSalaryModal = ({ isOpen, close }) => (
... |
src/components/AutoComplete/AutoCompleteInput.js | mrc535s/react-autocomplete | import React from 'react';
export default class AutoCompleteInput extends React.Component {
constructor(props) {
super(props);
this.handleChange = this.handleChange.bind(this);
this.onFocus = this.onFocus.bind(this);
this.state = {
outline: 'none'
}
}
handleChange(e) {
this.props.onTextChange(e.targe... |
src/Components/TextEditor.js | YaxelPerez/react-text-editor | import React from 'react';
import styled from 'styled-components';
import ControlBar from './ControlBar.js';
import TextArea from './TextArea.js';
import normalizeUrl from 'normalize-url';
// tbh this is my first time using styled-components
// I'm not sure if I'm doing this right
// Ideally this can be embedded in... |
src/layouts/core/core-layout.spec.js | clintonhalpin/react-redux-starter-kit | import React from 'react';
import CoreLayout from './index.jsx';
describe('(Layout) Core', function () {
it('Should have a working test.', function () {
expect(true).to.be.true;
});
});
|
docs/src/pages/demos/text-fields/TextFields.js | AndriusBil/material-ui | /* eslint-disable flowtype/require-valid-file-annotation */
import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import TextField from 'material-ui/TextField';
const styles = theme => ({
container: {
display: 'flex',
flexWrap: 'wrap',
},
textFie... |
src/src/Components/RulesEditor/components/Blocks/TriggerState.js | ioBroker/ioBroker.javascript | import React from 'react';
import {withStyles} from '@material-ui/core/styles';
import GenericBlock from '../GenericBlock';
import Compile from '../../helpers/Compile';
import Button from '@material-ui/core/Button';
import Switch from '@material-ui/core/Switch';
import Dialog from '@material-ui/core/Dialog';
import Di... |
src/package/plugins/slate-grid-plugin/GridRowNode.js | abobwhite/slate-editor | import React from 'react'
const GridRowNode = ({ attributes, children }) => (
<tr {...attributes}>
{children}
</tr>
)
export default GridRowNode
|
packages/components/src/VirtualizedList/CellTitle/CellTitleSelector.component.js | Talend/ui | import PropTypes from 'prop-types';
import React from 'react';
import { Action } from '../../Actions';
import { cellTitleDisplayModes } from '../utils/constants';
import CellTitleInput from './CellTitleInput.component';
import TooltipTrigger from '../../TooltipTrigger';
const { TITLE_MODE_TEXT, TITLE_MODE_INPUT } = ce... |
ajax/libs/jointjs/0.9.4/joint.nobackbone.js | voronianski/cdnjs | /*! JointJS v0.9.3 - JavaScript diagramming library 2015-07-23
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
// Geometry library.
// (c) 2011-2013 client I... |
components/drawer/index.js | react-material-design/react-material-design | import '@material/drawer/dist/mdc.drawer.css';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { MDCPersistentDrawer, MDCTemporaryDrawer } from '@material/drawer';
/** Drawer (Permanent, Persistent, Temporary) */
class Drawer extends Component {... |
src/routes/estimateCreate/index.js | keenethics/estimateit | import React from 'react';
import Main from '../../components/Main';
import Layout from '../../components/Layout';
import Header from '../../components/Header';
export default {
path: '/estimate',
children: [{
path: '/',
action: () => ({
title: 'Estimator',
authRequired: true,
component: ... |
webapp-src/src/index.js | babelouest/taliesin | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import config from './lib/ConfigManager';
import OAuth2Connector from './lib/OAuth2Connector';
import StateStore from './lib/StateStore';
import i18n from './lib/i18n';
function getBestStorageAvailable(storageType) {
if (storageTyp... |
client/routes.js | phumberdroz/pizzastore | /* eslint-disable global-require */
import React from 'react';
import {Route, IndexRoute} from 'react-router';
import App from './modules/App/App';
// require.ensure polyfill for node
if (typeof require.ensure !== 'function') {
require.ensure = function requireModule(deps, callback) {
callback(require);
};
}
/*... |
src/ArcProgress.js | husm/react-npm-demo | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import * as d3 from 'd3';
class ArcProgress extends Component {
// static propTypes = {
// id: PropTypes.string,
// height: PropTypes.number,
// width: PropTypes.number,
// innerRadius: PropTypes.number,
... |
js/webui/src/notification_group.js | hyperblast/beefweb | import React from 'react'
import PropTypes from 'prop-types'
import { Button } from './elements';
function smartSplit(message)
{
const position = Math.max(
message.lastIndexOf('/'),
message.lastIndexOf('\\'));
if (position === -1)
return { start: message, end: '' };
return {
... |
app/components/Home.js | xiaoyaomaopp/BigData-WebArt | import React from 'react';
import {
Link
} from 'react-router';
import ArtList from './ArtList';
class Home extends React.Component {
render() {
return (
<ArtList/>
);
}
}
export default Home; |
docs/src/pages/customization/default-theme/DefaultTheme.js | allanalexandre/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import url from 'url';
import Inspector from 'react-inspector';
import { withStyles, createMuiTheme } from '@material-ui/core/styles';
import FormControlLabel from '@material-ui/core/FormControlLabel';
import Switch fr... |
src/components/Pagination/Pagination-test.js | jzhang300/carbon-components-react | import React from 'react';
import Icon from '../Icon';
import Pagination from '../Pagination';
import Select from '../Select';
import SelectItem from '../SelectItem';
import { shallow, mount } from 'enzyme';
describe('Pagination', () => {
describe('renders as expected', () => {
const pagination = shallow(
... |
app/javascript/mastodon/features/compose/components/search_results.js | kirakiratter/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage, defineMessages, injectIntl } from 'react-intl';
import AccountContainer from '../../../containers/account_container';
import StatusContainer from '../../../containers/sta... |
scripts/src/pages/views/dashboard.js | Twogether/just-meet-frontend | import React from 'react';
import Helmet from 'react-helmet';
import { Link } from 'react-router';
import Moment from 'react-moment';
import BigCalendar from 'react-big-calendar';
export default (self) => {
return (
<div>
<Helmet
title="Just Meet | Meeting List"
/>
... |
src/FormGroup.js | HorizonXP/react-bootstrap | import React from 'react';
import classNames from 'classnames';
class FormGroup extends React.Component {
render() {
let classes = {
'form-group': !this.props.standalone,
'form-group-lg': !this.props.standalone && this.props.bsSize === 'large',
'form-group-sm': !this.props.standalone && this.pr... |
app/exerciseForm.js | RebootJeff/lambdaHIIT | 'use strict';
import React from 'react';
import WorkoutModel from './WorkoutModel';
let ExerciseForm = React.createClass({
render () {
return (
<div>
<input type="text" placeholder="Exercise Name"/>
<input type="number" placeholder="Duration (sec)" />
</div>
);
}
});
export de... |
components/ReacTable/ReacTable.js | websiddu/reactable | import React from 'react';
import Table from '../Table/Table';
import Pagination from '../Pagination/Pagination';
import SelectField from '../SelectField/SelectField';
import SearchField from '../SearchField/SearchField';
import DataMixin from '../DataMixin/DataMixin';
import './ReacTable.scss';
var ReacTable = Reac... |
test/test_helper.js | renamos/traderjoes-db | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
src/CarouselItem.js | Cellule/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import TransitionEvents from './utils/TransitionEvents';
const CarouselItem = React.createClass({
propTypes: {
direction: React.PropTypes.oneOf(['prev', 'next']),
onAnimateOutEnd: React.PropTypes.func,
active: React.PropTypes.bool,
anima... |
springboot/GReact/src/main/resources/static/app/components/navigation/components/NavMenuItem.js | ezsimple/java | import React from 'react'
import {Link} from 'react-router'
import Msg from '../../i18n/Msg'
import SmartMenuList from './NavMenuList'
export default class SmartMenuItem extends React.Component {
static contextTypes = {
router: React.PropTypes.object.isRequired
};
render() {
const item = this.props.i... |
lib/python2.7/site-packages/notebook/static/components/proptypes/index.js | ammarkhann/FinalSeniorCode | (function (global, factory) {
if (typeof define === 'function' && define.amd) {
define('PropTypes', ['exports', 'module'], factory);
} else if (typeof exports !== 'undefined' && typeof module !== 'undefined') {
factory(exports, module);
} else {
var mod = {
exports: {}
};
factory(mod.exp... |
tests/routes/Projects/components/NewProjectTile.spec.js | KyperTech/devshare-site | import React from 'react'
import NewProjectTile from 'routes/Projects/components/NewProjectTile/NewProjectTile'
import { shallow } from 'enzyme'
describe('(Projects:Component) NewProjectTile', () => {
let _component
beforeEach(() => {
_component = shallow(
<NewProjectTile />
)
})
it('Renders', (... |
server/game/cards/01-Core/Ice.js | Antaiseito/throneteki_for_doomtown | const DrawCard = require('../../drawcard.js');
class Ice extends DrawCard {
setupCardAbilities(ability) {
this.whileAttached({
effect: ability.effects.modifyStrength(2)
});
this.reaction({
when: {
afterChallenge: ({challenge}) => (
... |
test/regressions/tests/Input/InputLabels.js | lgollut/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import InputLabel from '@material-ui/core/InputLabel';
const styles = {
container: {
display: 'flex',
flexDirection: 'column',
alignItems: 'flex-start',
padding: 20, // so transform d... |
applications/admin/entry/assets/f8ac6a4/jquery.js | klklmoon/pipishow | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function( window, undefined ) {
// Use the correct document accordingly with window argument (sandbox)
var document = window.document,
navigator = window.navigator,
location = window.location;
var jQuery = (function() {
// Define a local copy of jQuery
var jQuer... |
packages/material-ui-icons/src/AccountCircle.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let AccountCircle = props =>
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6... |
client/src/containers/SignUp.js | JasonProcka/venos | import React from 'react';
import {Field, reduxForm, formValueSelector} from 'redux-form';
import { connect } from 'react-redux';
import * as action from '../actions';
import '../styles/join.css';
import { Link } from 'react-router';
import FlatButton from 'material-ui/FlatButton';
import RaisedButton from 'material-ui... |
src/client/pages/me.react.js | lassecapel/este-isomorphic-app | import React from 'react';
import DocumentTitle from 'react-document-title';
import Logout from '../auth/logout.react';
import requireAuth from '../auth/requireauth.react';
import {msg} from '../intl/store';
class Me extends React.Component {
render() {
return (
<DocumentTitle title={msg('me.title')}>
... |
src/pages/about.js | AlbinOS/book-keeper-ui | import React from 'react';
import GoMarkGithub from 'react-icons/lib/go/mark-github';
class About extends React.Component {
render() {
return (
<div>
<h1>About Book Keeper</h1>
<p>Contact <a href="mailto:gilles.albin@gmail.com" target="_top">Albin Gilles</a> for any questions or h... |
cgi/js/ext/jquery.js | Djang0/limba | /*!
* 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... |
benchmark/components/content.js | UniversalAvenue/reacon | import React from 'react';
import Title from './title';
import Tagline from './tagline';
import Button from './button';
export default function Content(props) {
const {
title,
tagline,
children,
button,
} = props;
return (<section>
{title && <Title>{title}</Title>}
{tagline && <Tagline>{... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.