path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
app/javascript/components/Form/FormGroup.js | SumOfUs/Champaign | import React from 'react';
import classnames from 'classnames';
import './FormGroup.scss';
export default function FormGroup(props) {
const className = classnames('FormGroup', 'form__group', props.className);
return <div className={className}>{props.children}</div>;
}
|
src/svg-icons/communication/live-help.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationLiveHelp = (props) => (
<SvgIcon {...props}>
<path d="M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 16h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 11.9 13 12.5 13... |
ajax/libs/reactive-coffee/0.0.1/reactive-coffee.min.js | ruslanas/cdnjs | !function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L={}.hasOwnProperty,M=function(a,b){function c(){this.constructor=a}for(var d in b)L.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},N=[].slice,O=[].indexOf||function(a){for(var b... |
public/js/lib/react/jsx/pages/Alert.js | inquisive/simpledocs | import React from 'react';
export default class Alert2 extends React.Component {
constructor(props) {
super(props);
this.displayName = 'Alert Component';
this.state = {
isVisible: true
};
}
render() {
if(!this.state.isVisible)
return null;
var message = this.props.children;
return (
... |
app/components/Right/Right.js | SpotifiyOrganization/spotifyHack | import React from 'react';
import { Row } from 'react-materialize';
import { Paper } from 'material-ui';
import RightPaper from './RightPaper.js';
const Right = () => {
return (
<Row style={{height: '100vh', marginBottom: '0', paddingBottom: '0'}}>
<Row style ={{paddingLeft: '20px', paddingRight: '20px', padding... |
src/js/components/global/Footer.js | jorgemxm/r-movies | 'use strict';
import React from 'react';
// import { Link } from 'react-router-dom';
const Footer = () => (
<footer className="app--footer">
<div className="container">
<div className="content has-text-centered">
<span className="icon">
<i className="fa fa-github" />
</span>
... |
src/svg-icons/av/video-library.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvVideoLibrary = (props) => (
<SvgIcon {...props}>
<path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8 12.5v-9l6 4.5-6 4.5z"/>
</SvgIcon>... |
ajax/libs/react-toolbox/2.0.0-beta.7/overlay/index.js | cdnjs/cdnjs | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Overlay = undefined;
var _reactCssThemr = require('react-css-themr');
var _identifiers = require('../identifiers');
var _Overlay = require('./Overlay');
var _theme = require('./theme.css');
var _theme2 = _interopRequireDefault(... |
example9/src/main.js | JoeTheDave/Talk-ReactUpAndRunning |
//main.js
import React from 'react';
import {render} from 'react-dom';
import ApplicationComponent from './components/ApplicationComponent';
render(<ApplicationComponent />, document.getElementById('app')); |
scripts/buildLogin.js | g3f4-xyz/lifeapp | import fs from 'fs';
import React from 'react';
import { renderToString } from 'react-dom/server';
import { SheetsRegistry } from 'react-jss/lib/jss';
import JssProvider from 'react-jss/lib/JssProvider';
import { MuiThemeProvider, createMuiTheme, createGenerateClassName } from '@material-ui/core/styles';
import { green... |
Realization/frontend/czechidm-core/src/components/advanced/DelegationDefinitionInfo/DelegationDefinitionInfo.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
//
import * as Basic from '../../basic';
import { DelegationDefinitionManager, IdentityManager } from '../../../redux';
import AbstractEntityInfo from '../EntityInfo/AbstractEntityInfo';
import EntityInfo from '../Enti... |
ajax/libs/material-ui/4.9.4/es/CssBaseline/CssBaseline.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import React from 'react';
import PropTypes from 'prop-types';
import withStyles from '../styles/withStyles';
import { exactProp } from '@material-ui/utils';
export const html = {
WebkitFontSmoothing: 'antialiased',
// Antialiasing.
MozOsxFontSmoothing: '... |
frontend-admin/src/common/components/modal/modal-body.js | OptimusCrime/youkok2 | import React from 'react';
export const ModalBody = ({ children }) => (
<div className="modal-body">
{children}
</div>
);
|
ajax/libs/react/0.13.0-beta.2/react-with-addons.js | DaAwesomeP/cdnjs | /**
* React (with addons) v0.13.0-beta.2
*/
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.React=e... |
src/svg-icons/action/perm-data-setting.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermDataSetting = (props) => (
<SvgIcon {...props}>
<path d="M18.99 11.5c.34 0 .67.03 1 .07L20 0 0 20h11.56c-.04-.33-.07-.66-.07-1 0-4.14 3.36-7.5 7.5-7.5zm3.71 7.99c.02-.16.04-.32.04-.49 0-.17-.01-.33-.0... |
packages/react-router-native/NativeRouter.js | goblortikus/react-router | import React from 'react'
import PropTypes from 'prop-types'
import MemoryRouter from 'react-router/MemoryRouter'
import { Alert } from 'react-native'
/**
* The public API for a <Router> designed for React Native. Gets
* user confirmations via Alert by default.
*/
const NativeRouter = (props) => (
<MemoryRouter {... |
extensions/amp-stream-gallery/1.0/storybook/Basic.amp.js | sharethrough/amphtml | /**
* Copyright 2020 The AMP HTML Authors. 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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
vendor/jquery/jquery.min.js | mde4edu/mde4edu.github.io | /*! 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... |
ajax/libs/react-data-grid/1.0.18/react-data-grid.min.js | dakshshah96/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactDataGrid=t(require("react"),require("react-dom")):e.ReactDataGrid=t(e.React,e.ReactDOM)}(th... |
test/CollapsibleMixinSpec.js | justinanastos/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import CollapsibleMixin from '../src/CollapsibleMixin';
import classNames from 'classnames';
describe('CollapsibleMixin', function () {
let Component, instance;
beforeEach(function(){
Component = React.createClass({
mixin... |
__tests__/index.ios.js | wudizhuo/kindle_react_app | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
web/src/client/createRoutes.js | neozhangthe1/framedrop-web | import App from './app/app.react';
import Home from './pages/home.react';
import Me from './pages/me.react';
import Login from './pages/login.react.js';
import NotFound from './pages/notFound.react';
import React from 'react';
import {IndexRoute, Route} from 'react-router';
import Discover from './pages/discover.react... |
src/components/views/modifyPassword.js | HuangXingBin/goldenEast | import { Form, Input, Modal, Row, Col, message } from 'antd';
import classNames from 'classnames';
const createForm = Form.create;
const FormItem = Form.Item;
import React from 'react';
import { connect } from 'react-redux';
import { passwordModalToggle } from '../../actions/app-interaction-actions';
import { modifyPas... |
app/src/client/components/treemap/pagination.js | Astrolavos/THACO | /* eslint max-len:0 */
import React from 'react';
import { Link } from 'react-router';
class Pagination extends React.PureComponent {
static propTypes = {
limit: React.PropTypes.any.isRequired,
offset: React.PropTypes.any.isRequired,
search: React.PropTypes.string,
count: React.PropTypes.any.isRequ... |
src/components/IndexPageDescription.js | BrisklyPapers/react | import React from 'react';
import IndexPage from '../containers/IndexPage';
import Radium from 'radium';
class IndexPageDescription extends React.Component {
render() {
return (
<IndexPage>
<div style={styles.promotion}>
<h2 style={styles.h2}>Document Managem... |
mobile/navigation/RootNavigation.js | AbrahamShubApps/OccasionMe | import { Notifications } from 'expo';
import React from 'react';
import { StackNavigator } from 'react-navigation';
import MainTabNavigator from './MainTabNavigator';
import registerForPushNotificationsAsync from '../api/registerForPushNotificationsAsync';
import SplashScreen from '../screens/splashscreen';
import Log... |
test/test_helper.js | Tylerdurden07/WeatherReactRedux | 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... |
test/integration/client-navigation/pages/absolute-url.js | flybayer/next.js | import React from 'react'
import Link from 'next/link'
import { useRouter } from 'next/router'
export async function getServerSideProps({ query: { port } }) {
if (!port) {
throw new Error('port required')
}
return { props: { port } }
}
export default function Page({ port }) {
const router = useRouter()
... |
packages/material-ui-icons/src/SnoozeRounded.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M10 11h2.63l-3.72 4.35C8.36 16 8.82 17 9.67 17H14c.55 0 1-.45 1-1s-.45-1-1-1h-2.63l3.72-4.35c.55-.65.09-1.65-.76-1.65H10c-.55 0-1 .45-1 1s.45 1 1 1zM21.3 6.42c-.35.42-.98.48-1.41.13l-3... |
files/ink/2.2.1/js/ink-all.min.js | dpellier/jsdelivr |
(function(){"use strict";if(!("Ink"in window)){var e={Ink:"INK_PATH"in window?window.INK_PATH:window.location.protocol+"//js.ink.sapo.pt/Ink/"},n={},t=[],r={},i=[],o=function(e){if("object"!=typeof e)return!1;for(var n in e)if(e.hasOwnProperty(n))return!1;return!0};window.Ink={_checkPendingRequireModules:function(){va... |
packages/material-ui-icons/src/LocalPlaySharp.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M20 12c0-1.1.9-2 2-2V4H2.01v6c1.1 0 1.99.9 1.99 2s-.89 2-2 2v6h20v-6c-1.1 0-2-.9-2-2zm-4.42 4.8L12 14.5l-3.58 2.3 1.08-4.12-3.29-2.69 4.24-.25L1... |
src/Table/TableHeader.spec.js | manchesergit/material-ui | /* eslint-env mocha */
import React from 'react';
import PropTypes from 'prop-types';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import getMuiTheme from '../styles/getMuiTheme';
import TableHeader from './TableHeader';
import TableHeaderColumn from './TableHeaderColumn';
describe('<TableHeader />', (... |
src/components/posts_show.js | marktong11/blog | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { fetchPost, deletePost } from '../actions';
import { Link } from 'react-router-dom';
class PostsShow extends Component {
componentDidMount() {
//from react router - stores any wild card
if(!this.props.post) {
const { id } ... |
ajax/libs/yui/3.4.0/yui/yui-debug.js | froala/cdnjs | /**
* The YUI module contains the components required for building the YUI seed
* file. This includes the script loading mechanism, a simple queue, and
* the core utilities for the library.
* @module yui
* @submodule yui-base
*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The YUI global namespac... |
src/components/withViewport.js | Nexapp/react-starter-kit | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React, { Component } from 'react'; // eslint-disabl... |
client/test/helpers/shallowRenderHelper.js | andybryant/scalack | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
src/components/ListBox.js | choyt/react-accessible-components | import React from 'react';
import injectSheet from 'react-jss';
import classNames from 'classnames';
const styles = {
ListBox: {
padding: '.5em',
textAlign: 'center',
},
Title: {
backgroundColor: 'white',
border: '1px solid lightgray',
cursor: 'pointer',
padding: '.5em',
'&:hover': {
... |
ajax/libs/webshim/1.14.4-RC4/dev/shims/combos/26.js | gaearon/cdnjs | /**
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
* v1.2.1
*
* Copyright 2013, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*
* Date: 2014-05-14
*/
/**
* Compiled inline version. (Library ... |
app/components/AppSwipeActionItem/index.js | czy0729/react-alumni | /**
* AppSwipeActionItem 整合SwipeAction和List.Item,在有效的item左右添加了色边
* @version 170212 1.0
*/
import React from 'react';
import classNames from 'classnames';
import { SwipeAction, List } from 'antd-mobile';
import './index.less';
const prefixCls = 'components__app-swipe-action-item';
const AppSwipeActionItem = (props)... |
docs/pages/getting-started/faq.js | kybarg/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
const req = require.context('docs/src/pages/getting-started/faq', false, /\.(md|js|tsx)$/);
const reqSource = require.context(
'!raw-loader!../../src/pages/getting-started/faq',
false,
/\.(js|tsx)$/,
);
const reqPrefi... |
ajax/libs/primereact/8.1.0/editor/editor.js | cdnjs/cdnjs | this.primereact = this.primereact || {};
this.primereact.editor = (function (exports, React, hooks, utils) {
'use strict';
function _interopNamespace(e) {
if (e && e.__esModule) return e;
var n = Object.create(null);
if (e) {
Object.keys(e).forEach(function (k) {
if (k !== 'default') {
... |
docs/src/examples/views/Feed/Content/FeedExampleContentDate.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Feed } from 'semantic-ui-react'
const imageSrc = '/images/avatar/small/jenny.jpg'
const FeedExampleContentDate = () => (
<Feed>
<Feed.Event>
<Feed.Label image={imageSrc} />
<Feed.Content>
<Feed.Date>3 days ago</Feed.Date>
<Feed.Summary>
Yo... |
ajax/libs/forerunnerdb/1.3.45/fdb-all.min.js | tonytomov/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... |
public/assets/application-b4bbbd559781b58651fa1f4c3b03e66b.js | mkirlin/levelheaded | /*!
* 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... |
buttons/1.0.0/tests/BSA/assets/js/gui.js | BastienZag/GUI-source | /*! jQuery v1.11.2 | (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... |
ajax/libs/cleave.js/1.1.1/cleave-angular.js | wout/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["Cleave"] = factory();
else
root["Cleave... |
actor-apps/app-web/src/app/components/sidebar/ContactsSectionItem.react.js | hmoraes/actor-platform | import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import DialogActionCreators from 'actions/DialogActionCreators';
import AvatarItem from 'components/common/AvatarItem.react';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class ... |
components/CommentThread.js | tngan/redux-hacker-news | import React, { Component } from 'react';
import { getVote, getAuthor, getLastUpdatedTime } from './Composition';
import '../public/stylesheets/comment.css';
class CommentThread extends Component {
getParentLink(props) {
return (
<a href="#">parent</a>
);
}
getOnLink(props){
return (
<a href="#">{`on... |
ajax/libs/forerunnerdb/1.3.848/fdb-core+persist.min.js | menuka94/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... |
web-app/js/ext-5.1.0/packages/sencha-core/src/util/Schedulable.js | department-of-veterans-affairs/ChartReview | /**
* This is a base class for objects that can be managed by `Ext.util.Scheduler`.
* @private
*/
Ext.define('Ext.util.Schedulable', {
'abstract': true,
isSchedulable: true,
scheduled: false,
constructor: function () {
this.getScheduler().add(this);
},
destroy: function () {
... |
src/components/attributes/scatter-plot/local-attributes/ScatterPlotAttr.js | eveafeline/D3-ID3-Naomi | import React, { Component } from 'react';
class Points extends Component {
constructor(props) {
super(props)
this.state = {
checkbox: false
}
this.handleCheckbox = this.handleCheckbox.bind(this);
this.onSubmit = this.onSubmit.bind(this);
}
onSubmit(event) {
event.preventDefault();... |
src/ModalBody.js | bvasko/react-bootstrap | import React from 'react';
import classNames from 'classnames';
class ModalBody extends React.Component {
render() {
return (
<div
{...this.props}
className={classNames(this.props.className, this.props.modalClassName)}>
{this.props.children}
</div>
);
}
}
ModalBody.prop... |
node_modules/react-icons/md/control-point.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdControlPoint = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 33.4c7.3 0 13.4-6.1 13.4-13.4s-6.1-13.4-13.4-13.4-13.4 6.1-13.4 13.4 6.1 13.4 13.4 13.4z m0-30c9.2 0 16.6 7.4 16.6 16.6s-7.4 16.6-16.6 16.6-16.6-7.4-16.6-16.... |
cli/base-antd-pro/src/router.js | CFshuming/react-demo-gather | import React from 'react';
import { routerRedux, Route, Switch } from 'dva/router';
import { Spin } from 'antd';
import dynamic from 'dva/dynamic';
import { getRouterData } from './common/router';
import styles from './index.less';
const { ConnectedRouter } = routerRedux;
dynamic.setDefaultLoadingComponent(() => {
... |
fields/types/relationship/RelationshipFilter.js | alobodig/keystone | import _ from 'lodash';
import async from 'async';
import React from 'react';
import { findDOMNode } from 'react-dom';
import xhr from 'xhr';
import {
FormField,
FormInput,
SegmentedControl,
} from '../../../admin/client/App/elemental';
import PopoutList from '../../../admin/client/App/shared/Popout/PopoutList';
... |
test/server/ModalSpec.js | albertojacini/react-bootstrap | import React from 'react';
import {assert} from 'chai';
import Modal from '../../src/Modal.js';
describe('Modal', () => {
it('Should be rendered on the server side', () => {
let noOp = () => {};
assert.doesNotThrow(function renderOnServerSide() {
return React.renderToString(
<Modal onHide={noO... |
docs/examples/Form/Example5.js | romagny13/react-form-validation | import React from 'react';
import PropTypes from 'prop-types';
import { Form, LightGroup, Input, Submit, Reset, Label, required, minlength, ValidationHelper, clone } from 'romagny13-react-form-validation';
import { createStore } from 'redux';
import { connect, Provider } from 'react-redux';
// action types
const U... |
client/src/index.js | Del7a/vehicle-finder | import React from 'react'
import { render } from 'react-dom'
import Root from './containers/Root'
render(
<Root />,
document.getElementById('root')
) |
App/Profile/Repos.js | thisishuey/react-hot-boilerplate | import React, { Component } from 'react';
import Radium from 'radium';
@Radium
class Repos extends Component {
render() {
const { repos, username } = this.props;
return (
<div>
<h4>Repos</h4>
<p>Username: {username}</p>
<p>Repos: {repos}</p>
</div>
);
}
}
Repos.pr... |
static/js/jquery-1.7.2.js | HYQMartin/fivestone | /*!
* jQuery JavaScript Library v1.7.2
* 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/icons/AndroidStar.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class AndroidStar extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<polygon points="256,372.686 380.83,448 347.809,305.934 458,210.409 312.733,197.934 256,64 199.257,197.934 54,210.409
... |
newclient/scripts/components/user/dashboard/dashboard/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
Lic... |
src/components/tools/user-list.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... |
app/javascript/mastodon/features/ui/components/follow_requests_nav_link.js | theoria24/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { fetchFollowRequests } from 'mastodon/actions/accounts';
import { connect } from 'react-redux';
import { NavLink, withRouter } from 'react-router-dom';
import IconWithBadge from 'mastodon/components/icon_with_badge';
import { List as ImmutableList }... |
client/modules/Post/__tests__/components/PostList.spec.js | thanhdatvo/tuoihoctro.react | import React from 'react';
import test from 'ava';
import { shallow } from 'enzyme';
import PostList from '../../components/Post/PostList';
const posts = [
{ name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: 'f34gb2bh24b24b2', content: "All cats meow 'mern!'" },
{ name: 'Mayank', title: 'Hi Mern', s... |
src/pages/elvanto/index.js | Vision100IT/v100it-template | import React from 'react';
import fm from 'front-matter';
import Index from '../../components';
import {Markdown} from '../../components/markdown';
import content from '../../content/elvanto.md';
const {body, attributes} = fm(content);
const Elvanto = () => (
<Index>
<div className="elvanto-wrapper">
<div class... |
src/svg-icons/maps/local-laundry-service.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalLaundryService = (props) => (
<SvgIcon {...props}>
<path d="M9.17 16.83c1.56 1.56 4.1 1.56 5.66 0 1.56-1.56 1.56-4.1 0-5.66l-5.66 5.66zM18 2.01L6 2c-1.11 0-2 .89-2 2v16c0 1.11.89 2 2 2h12c1.11 0 2-.89 ... |
src/svg-icons/image/blur-off.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBlurOff = (props) => (
<SvgIcon {...props}>
<path d="M14 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm-.2 4.48l.2.02c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5l.02.2c.09.67.61 1.19 1.28 1.2... |
public/js/components/profile/activityfeed/activityBox.react.js | rajikaimal/Coupley | import React from 'react';
import Card from 'material-ui/lib/card/card';
import TextField from 'material-ui/lib/text-field';
import Paper from 'material-ui/lib/paper';
import FlatButton from 'material-ui/lib/flat-button';
import FontIcon from 'material-ui/lib/font-icon';
import ActionAndroid from 'material-ui/lib/svg-i... |
Neos.Neos/Resources/Public/Library/createjs/create.js | bwaidelich/neos-development-collection | /* Create.js 1.0.0alpha4 - Inline editing toolkit
by Henri Bergius and contributors. Available under the MIT license.
See http://createjs.org for more information
*/(function (jQuery, undefined) {
// Run JavaScript in strict mode
/*global jQuery:false _:false window:false VIE:false */
'use strict';
// # Create... |
test/electron-renderer/ui/tabs/LastFMTab_spec.js | petuhovskiy/Google-Play-Music-Desktop-Player-UNOFFICIAL- | /* eslint-disable no-unused-expressions */
import React from 'react';
import chai from 'chai';
import { mount } from 'enzyme';
import LastFMTab from '../../../../build/renderer/ui/components/settings/tabs/LastFMTab';
import materialUIContext from '../_materialUIContext';
import mockSettings, { fakeSettings, getVars, ... |
motion-test/src/motionCustom.js | wandarkaf/React-Bible | import React, { Component } from 'react';
import {Motion, spring, presets} from 'react-motion';
class MotionCustom extends Component {
render(){
return (
<Motion
defaultStyle={{
y: 500,
z: 4
}}
style={{
y: spring(100, presets.wobbly),
z: sprin... |
test/OverlayDeprecationSpec.js | laran/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Position from '../src/Position';
import Transition from '../src/Transition';
import Portal from '../src/Portal';
import { shouldWarn } from './helpers';
describe('Components moved to react-overlays', () => {
it('should warn ab... |
src/components/views/groups/GroupRoomTile.js | aperezdc/matrix-react-sdk | /*
Copyright 2017 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... |
src/icons/AirlineSeatReclineExtraIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class AirlineSeatReclineExtraIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M10.71 11.28c-1.81-1.27-2.25-3.76-.99-5.57 1.27-1.81 3.76-2.25 5.57-.98 1.81 1.27 2.25 3.7... |
ui/cap-react/src/components/drafts/form/themes/grommet-preview/fields/importDataField.js | pamfilos/data.cern.ch | import React from "react";
import PropTypes from "prop-types";
import Anchor from "../../../../../partials/Anchor";
import Box from "grommet/components/Box";
import Label from "grommet/components/Label";
import { AiOutlineLink } from "react-icons/ai";
import axios from "axios";
// schema for the importDataField
// "... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArraySpread.js | g3r4n/create-esri-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
function load(users) {
return [
{ id: 1, name: '1' ... |
ajax/libs/jqwidgets/14.0.0/jqwidgets-react-tsx/jqxdropdownbutton/react_jqxdropdownbutton.esm.min.js | cdnjs/cdnjs | import*as jqxcore from"../../jqwidgets/jqxcore";import*as jqxbuttons from"../../jqwidgets/jqxbuttons";import*as jqxdropdownbutton from"../../jqwidgets/jqxdropdownbutton";import{createElement,PureComponent}from"react";var extendStatics=function(t,o){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Ar... |
app/routes.js | AidanNichol/stedwards-booking-system | // import 'babel-polyfill'
// import 'longjohn';
import React from 'react';
import {isUserAuthorized} from 'services/auth';
// import {loginUser} from '_users'
// loginUser()
import {sagaMiddleware} from 'store';
import { Route, IndexRoute } from 'react-router'
import initialSaga from 'sagas/initialSaga';
import Ma... |
ajax/libs/F2/1.3.3/f2.no-bootstrap.js | wmkcc/cdnjs | ;(function(exports) {
if (exports.F2 && !exports.F2_TESTING_MODE) {
return;
}
/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d... |
src/routes/accountList/index.js | nambawan/g-old | import React from 'react';
import Layout from '../../components/Layout';
import { getSessionUser } from '../../reducers';
import { loadUserList } from '../../actions/user';
import AccountListContainer from './AccountListContainer';
import { Groups, canAccess } from '../../organization';
const title = 'AccountList';
a... |
src/components/Section/Section.js | div5yesh/divchitroda | import React, { Component } from 'react';
import './Section.css';
class Section extends Component{
static defaultProps = {
name: ""
}
render() {
const sectionClass = "Section " + this.props.name.toLowerCase().replace(' ', '');
return (
<div className={sectionClass}>
<div className="Section-header">... |
examples/js/selection/selection-column-width-table.js | echaouchna/react-bootstrap-tab | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
test/integration/link-ref/pages/functional.js | BlancheXu/test | import React from 'react'
import Link from 'next/link'
const MyLink = React.forwardRef((props, ref) => (
<a {...props} ref={ref}>
Click me
</a>
))
export default () => (
<Link href='/' passHref>
<MyLink />
</Link>
)
|
cpv-ui/src/index.js | zkouba/cinema-program-viewer | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
src/pages/cluster/detail.js | one-love/web-client | import React from 'react'
import PropTypes from 'prop-types'
import { observer } from 'mobx-react'
// Components
import Button from '@material-ui/core/Button'
import Paper from '@material-ui/core/Paper'
import TextField from '@material-ui/core/TextField'
import Tooltip from '@material-ui/core/Tooltip'
import store fr... |
src/svg-icons/communication/clear-all.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationClearAll = (props) => (
<SvgIcon {...props}>
<path d="M5 13h14v-2H5v2zm-2 4h14v-2H3v2zM7 7v2h14V7H7z"/>
</SvgIcon>
);
CommunicationClearAll = pure(CommunicationClearAll);
CommunicationClearAll.di... |
ReactApp/config.ios.js | johnsiwicki/tbsrn | /**
* Global App Config
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
'use strict';
/* ==============================
Initialise Component
=============================== */
// React
import React, { Component } from 'react';
import Dimensions from 'Dimensions';
/... |
client/src/router.js | yhyecho/aa-journey | import React from 'react'
import { Router, Route, browserHistory, IndexRoute } from 'react-router'
import App from './components/App'
import Home from './components/Home'
import NewCat from './components/NewCat'
import NewCourse from './components/NewCourse'
import Signin from './components/SignIn'
import Signup from ... |
examples/src/components/ValuesAsNumbersField.js | alanrsoares/react-select | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var ValuesAsNumbersField = React.createClass({
displayName: 'ValuesAsNumbersField',
propTypes: {
label: React.PropTypes.... |
ajax/libs/onsen/1.2.2-beta/js/onsenui.min.js | nolsherry/cdnjs | /*! onsenui - v1.2.2-beta - 2015-02-20 */
function FastClick(layer){"use strict";function bind(method,context){return function(){return method.apply(context,arguments)}}var oldOnClick;this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0... |
client/index.js | nienkebos/random-dobbelspel | import React from 'react';
import { render } from 'react-dom';
import { createStore, combineReducers, compose, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import ReduxThunk from 'redux-thunk'
import injectTapEventPlugin from 'react-tap-event-plugin';
import MuiThemeProvider from 'material-ui... |
src/components/__tests__/Sector.spec.js | ingenalls/circularity | /*global beforeEach, expect, jest, test */
import React from 'react'
import renderer from 'react-test-renderer'
import Sector from '../Sector'
let props
beforeEach(() => {
props = {
index: 4,
isHovered: false,
item: { action: 'http://google.se', image: '/path/to/img', title: 'whoops' },
onHoverChang... |
node_modules/babel-preset-react-hmre/test/Test.js | ajames72/MovieDBReact | import React from 'react'
export default
class Test extends React.Component {
render() {
return (
<div>Winning?</div>
)
}
}
|
web/src/js/__tests__/components/ContentView/UploadContentButtonSpec.js | zlorb/mitmproxy | import React from 'react'
import renderer from 'react-test-renderer'
import UploadContentButton from '../../../components/ContentView/UploadContentButton'
describe('UpdateContentButton Component', () => {
it('should render correctly', () => {
let uploadContentFn = jest.fn(),
uploadContentButton... |
packages/vue-styleguidist/src/client/rsg-components/Props/renderDefault.js | vue-styleguidist/vue-styleguidist | import React from 'react'
import Text from 'rsg-components/Text'
import Code from 'rsg-components/Code'
import { unquote, showSpaces } from './util'
// to keep showing those vluei insead of empty, we treat them separaty
const defaultValueBlacklist = ['null', 'undefined', "''", '""']
export default function renderDefa... |
app/components/LoadingIndicator/index.js | adoveil/max | import React from 'react';
import styles from './styles.css';
function LoadingIndicator() {
return (
<div>
<div className={styles['sk-fading-circle']}>
<div className={styles.skCircle}></div>
<div className={styles['sk-circle2']}></div>
<div className={styles['sk-circle3']}></div>
... |
src/scripts/SidebarDownload.js | lmacsen/yoda | 'use strict';
import React from 'react';
import Join from 'react/lib/joinClasses';
import {Link, State} from 'react-router';
export default React.createClass({
propTypes: {
status: React.PropTypes.bool,
count: React.PropTypes.number
},
mixins: [State],
componentWillUpdate(prevProps) {
return (
... |
scripts/jest/matchers/__tests__/toWarnDev-test.js | trueadm/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @emails react-core
*/
'use strict';
describe('toErrorDev', () => {
it('does not fail if a warning contains a stack', () => {... |
sites/default/files/js/js_bd23aca413261530de1acbf664b282ca.js | naga123/trojan | /*
* jQuery JavaScript Library v1.3.2
* http://jquery.com/
*
* Copyright (c) 2009 John Resig
* Dual licensed under the MIT and GPL licenses.
* http://docs.jquery.com/License
*
* Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
* Revision: 6246
*/
(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=func... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.