path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/shared/components/DatePicker/index.js | rvboris/finalytics | import React from 'react';
import DayPicker, { DateUtils } from 'react-day-picker';
import LocaleUtils from 'react-day-picker/moment';
import moment from 'moment';
import './style.css';
const DatePicker = ({ locale, input }) => {
const { value } = input;
const handleDayClick = (day, { disabled, selected }) => {
... |
test/BadgeSpec.js | bvasko/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Badge from '../src/Badge';
describe('Badge', () => {
it('Should output a badge with content', () => {
let instance = ReactTestUtils.renderIntoDocument(
<Badge>
<strong>Content</strong>
</Badge>
);
... |
src/osl/rt-thread/rt-thread_1.2.0/documentation/html/jquery.js | coppercu/iot-neuron | /*!
* jQuery JavaScript Library v1.7.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.
... |
ajax/libs/onsen/1.3.16/js/onsenui.js | sajochiu/cdnjs | /*! onsenui - v1.3.16 - 2016-06-29 */
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// JavaScript Dynamic Content shim for Windows Store apps
(function () {
if (window.MSApp && ... |
modules/dreamview/frontend/src/components/PlaybackControls/index.js | xiaoxq/apollo | import React from 'react';
import { inject, observer } from 'mobx-react';
import ControlIcons from 'components/PlaybackControls/ControlIcons';
import TimeControls from 'components/PlaybackControls/TimeControls';
import WS from 'store/websocket';
const PLAY_BACK_SPEED = [0.5, 1.0, 1.5, 2.0, 3.0];
@inject('store') @ob... |
src/asset-details/AssetDetailsPage.js | binary-com/binary-next-gen | import React from 'react';
import WebPage from '../containers/WebPage';
import AssetDetailsContainer from './AssetDetailsContainer';
export default (props) => (
<WebPage>
<AssetDetailsContainer {...props} />
</WebPage>
);
|
demo/App.js | WendellLiu/react-selectronic | import React from 'react';
import {
createSeletable,
SelectableGroup,
} from '../src';
import Block from './Block';
import {
Container,
NonSelectable,
Result,
} from './components';
const SelectableBlock = createSeletable(Block);
const elements = Array(24).fill(0).map((_, index) => (
{
id: index,
... |
core/static/admin/blueprints/layout/files/__test__/layouts/__name__Layout.spec.js | tjcunliffe/hoverfly | import React from 'react'
describe('(Layout) <%= pascalEntityName %>', () => {
it('should exist', () => {
})
})
|
packages/vulcan-core/lib/modules/containers/withRemove.js | bengott/Telescope | /*
Generic mutation wrapper to remove a document from a collection.
Sample mutation:
mutation moviesRemove($documentId: String) {
moviesEdit(documentId: $documentId) {
...MoviesRemoveFormFragment
}
}
Arguments:
- documentId: the id of the document to remove
Child Props:
- removeMutation(... |
_gatsby/src/pages/404.js | YannickDot/yannickdot.github.io | import React from 'react'
import { Link } from 'gatsby-link'
import { Container } from 'react-responsive-grid'
import { rhythm, scale } from '../utils/typography'
// import { config } from 'config'
import MarkdownIt from 'markdown-it'
const md = new MarkdownIt()
const mdText = md.render(`
# 404
Sorry folks! Bad ... |
src/svg-icons/hardware/keyboard-arrow-up.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardArrowUp = (props) => (
<SvgIcon {...props}>
<path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/>
</SvgIcon>
);
HardwareKeyboardArrowUp = pure(HardwareKeyboardArrowUp);
HardwareKeyboardAr... |
admin/client/App/shared/Popout/PopoutListItem.js | linhanyang/keystone | /**
* Render a popout list item
*/
import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var PopoutListItem = React.createClass({
displayName: 'PopoutListItem',
propTypes: {
icon: React.PropTypes.string,
iconHover: React.PropTypes.string,
isSelected: React.PropTy... |
client/src/components/forms/Configuration.js | DjLeChuck/recalbox-manager | import React from 'react';
import PropTypes from 'prop-types';
import { translate } from 'react-i18next';
import { Form } from 'react-form';
import Alert from 'react-bootstrap/lib/Alert';
import BootstrapForm from 'react-bootstrap/lib/Form';
import Panel from 'react-bootstrap/lib/Panel';
import Tab from 'react-bootstra... |
good-old-react-authentication-flow/src/components/InputsIndex/index.js | strapi/strapi-examples | /**
*
* InputsIndex references all the input with errors available
*/
import React from 'react';
import PropTypes from 'prop-types';
// Design
import InputCheckboxWithErrors from '../../components/InputCheckboxWithErrors';
import InputEmailWithErrors from '../../components/InputEmailWithErrors';
import InputFileWi... |
src/Resume/About.js | bogdanpetru/resume | import React from 'react'
import parseText from '../utils/parseText';
const About = ({ about }) => <div className="about">
<h2>About</h2>
<div className="about-content" children={about.map((text) => <p children={parseText(text)} />)} />
</div>
export default About |
docs/src/PageFooter.js | jsbranco/react-materialize | import React from 'react';
import Footer from '../../src/Footer';
class PageFooter extends React.Component {
render() {
let links = (
<ul>
<li>
<a className="grey-text text-lighten-3" href='https://github.com/react-materialize/react-materialize'>GitHub</a>
</li>
</ul>
);... |
ajax/libs/rxjs/2.3.9/rx.lite.compat.js | the-destro/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false... |
src/components/settings/stats/Requestor.js | golemfactory/golem-electron | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Tooltip from '@tippy.js/react';
import * as Actions from './../../../actions';
const mapStateToProps = state => ({
stats: state.stats.stats.requestor
});
const mapDispatchToProps = dispatch => ({
... |
examples/react-native/src/configureStore.js | supasate/connected-react-router | import {createMemoryHistory} from 'history';
import {createStore, combineReducers} from 'redux';
import {connectRouter} from 'connected-react-router';
const initialState = {router: createMemoryHistory()};
const configureStore = () => {
const history = initialState.router;
const store = createStore(
combineRed... |
test/specs/collections/Table/TableHeaderCell-test.js | vageeshb/Semantic-UI-React | import React from 'react'
import * as common from 'test/specs/commonTests'
import TableHeaderCell from 'src/collections/Table/TableHeaderCell'
describe('TableHeaderCell', () => {
common.isConformant(TableHeaderCell)
common.propKeyAndValueToClassName(TableHeaderCell, 'sorted')
it('renders as a th by default', (... |
rojak-ui-web/src/app/utils/Navbar.js | CodeRiderz/rojak | import React from 'react';
import { Link } from 'react-router';
import rojakBlack from '../../assets/images/rojak-black.svg';
import styles from './Navbar.css';
const Navbar = () => (
<nav className={`uk-navbar ${styles.navbar}`}>
<ul className="uk-navbar-nav">
<li className="uk-active">
... |
blueocean-material-icons/src/js/components/svg-icons/action/view-stream.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionViewStream = (props) => (
<SvgIcon {...props}>
<path d="M4 18h17v-6H4v6zM4 5v6h17V5H4z"/>
</SvgIcon>
);
ActionViewStream.displayName = 'ActionViewStream';
ActionViewStream.muiName = 'SvgIcon';
export default ActionViewStream;
|
src/svg-icons/communication/business.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationBusiness = (props) => (
<SvgIcon {...props}>
<path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2... |
packages/material-ui-icons/src/Room.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Room = props =>
<SvgIcon {...props}>
<path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />... |
src-client/scripts/pack-auth-view.js | PaulRSwift/iLuggit | import React from 'react'
import Backbone from 'backbone'
import $ from 'jquery'
import ACTIONS from './ACTIONS.js'
const PackAuthView = React.createClass({
_submitLogin: function(evt){
console.log('evt', evt);
evt.preventDefault()
let newLogin = {
useruser: this.refs.user_name2... |
src/icons/radio.js | carmelopullara/react-feather | import React, { forwardRef } from 'react';
import PropTypes from 'prop-types';
const Radio = forwardRef(({ color = 'currentColor', size = 24, ...rest }, ref) => {
return (
<svg
ref={ref}
xmlns="http://www.w3.org/2000/svg"
width={size}
height={size}
viewBox="0 0 24 24"
fill="no... |
5.3.0/src/index.js | erikras/redux-form-docs | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import store from 'redux/store'
import DevTools from './components/DevTools'
import component from './routes'
import Perf from 'react-addons-perf'
import devToolsEnabled from './devToolsEnabled'
const dest = document.ge... |
src/containers/DevTools/DevTools.js | prakash-u/react-redux | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor toggleVisibilityKey="ctrl-H" changePositionKey="ctrl-Q">
<LogMonitor />
</DockMonit... |
packages/material-ui-icons/src/PersonPinSharp.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="M21 2H3v18h6l3 3 3-3h6V2zm-9 3.3c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7S9.3 9.49 9.3 8s1.21-2.7 2.7-2.7zM18 16H6v-.9c0-2 4-3.1 6-3.1s6 1.1 6 ... |
ajax/libs/forerunnerdb/1.3.652/fdb-core.js | iwdmb/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... |
src/svg-icons/av/library-music.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvLibraryMusic = (props) => (
<SvgIcon {...props}>
<path d="M20 2H8c-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-2 5h-3v5.5c0 1.38-1.12 2.5-2.5 2.5S10 13.88 10 12.5s1.12-2.5 2.5-2.5c.57... |
frontend/app/components/About/About.js | briancappello/flask-react-spa | import React from 'react'
import ReactSVG from 'react-svg'
import es6Logo from './es6.png'
import reactLogo from './react.svg'
import reactRouterLogo from './react-router.png'
import reduxLogo from './redux.svg'
import reduxSagaLogo from './redux-saga.svg'
import reduxFormLogo from './redux-form.png'
import sassLogo f... |
v21/v21.0.0/sdk/gyroscope.js | ccheever/expo-docs | import markdown from 'markdown-in-js'
import withDoc, { components } from '~/lib/with-doc'
import { expoteam } from '~/data/team'
// import { InternalLink, ExternalLink } from "~/components/text/link";
// import { P } from "~/components/text/paragraph";
// import Image from '~/components/base/image'
import { Code } fr... |
example/src/screens/NavigationTypes.js | yusufyildirim/react-native-navigation | import React from 'react';
import {StyleSheet, ScrollView} from 'react-native';
import Row from '../components/Row';
class NavigationTypes extends React.Component {
constructor(props) {
super(props);
this.props.navigator.setOnNavigatorEvent(this.onNavigatorEvent.bind(this));
}
onNavigatorEvent(event) {... |
src/components/Redirect.js | MozillaDevelopers/playground | import React from 'react';
import { Helmet } from 'react-helmet';
import PropTypes from 'prop-types';
import Link from 'gatsby-link';
class Redirect extends React.Component {
componentDidMount() {
window.location.href = `/playground${this.props.url}`;
}
render() {
return (
<div>
<Helmet>
... |
egghead.io/create-react-app/src/index.js | andrisazens/learning_react | import React from 'react';
import ReactDOM from 'react-dom';
//import App from './App';
import App from "./Search";
import './index.css';
ReactDOM.render(
<App cat={5} txt="this is our prop text" />,
document.getElementById('root')
);
|
app/components/AssessmentEntry/CreateEntryForm.js | klpdotorg/tada-frontend | import React from 'react';
import PropTypes from 'prop-types';
import get from 'lodash.get';
import Select from 'react-select';
import { getDateWithDateAndTime, dateFormat, between } from '../../utils';
const CreateEntryFormView = (props) => {
const {
rows,
answers,
questions,
assessmentId,
grou... |
react/widget_example/test/components/WidgetFrame.spec.js | webmaster444/webmaster444.github.io | import { expect } from 'chai';
import { spy } from 'sinon';
import React from 'react';
import { mount } from 'enzyme';
import WidgetFrame from '../../lib/components/WidgetFrame';
import DefaultFrame from '../../lib/components/DefaultFrame';
import TestCustomFrame from '../fake/TestCustomFrame';
import ContainerWithDndC... |
ajax/libs/react-motion-ui-pack/0.5.2/react-motion-ui-pack.js | emmy41124/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("React"), require("ReactMotion"), require("Measure"));
else if(typeof define === 'function' && define.amd)
define(["React", "ReactMotion", "Measure"], factory)... |
src/components/authentication/login-form.js | Doko-Demo-Doa/CSClient-RN | /**
* @flow
*/
'use strict';
import React, { Component } from 'react';
import { View, Text, TextInput } from 'react-native';
import { Button, Icon } from 'native-base';
import { Field, reduxForm, SubmissionError } from 'redux-form';
import SpinKit from 'react-native-spinkit';
import { reset } from '../../actions/ac... |
js/src/views/Status/components/CallsToolbar/CallsToolbar.spec.js | pdaian/parity | // Copyright 2015, 2016 Ethcore (UK) Ltd.
// This file is part of Parity.
// Parity 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
// (at your option) any later version.... |
packages/material-ui-icons/src/FormatIndentIncreaseOutlined.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M3 21h18v-2H3v2zM3 8v8l4-4-4-4zm8 9h10v-2H11v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z" /></g></React.Fragment>
, 'FormatIndentIncrease... |
ajax/libs/react-cookie/0.3.4/react-cookie.min.js | tholu/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... |
react/views/PageNotFound.js | zhouchaoyi/react_antd_bg | import React from 'react';
import {Link} from 'react-router'
class PageNotFound extends React.Component {
render() {
return (
<div>
<h1>Page Not Found.</h1>
<p>Go to <Link to="/home">首页</Link></p>
</div>
)
}
}
export default PageNotFound |
media/jui/js/jquery.min.js | vishwapratapsingh90/upstream | /*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===... |
sites/all/modules/jquery_update/replace/jquery/1.7/jquery.js | kapasofts-views/mega-mn | /*!
* jQuery JavaScript Library v1.7.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.
... |
stalk-messenger/examples/ComponentExample/app/components/tabs/follows/SelectUserView.js | JohnKim/stalk.messenger | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
TouchableHighlight
} from 'react-native';
import GiftedListView from 'react-native-gifted-listview';
export default class GiftedListViewExample extends Component {
/**
* Will be called when refreshing
* Should be replaced by ... |
packages/spust-koa/src/Secure.js | michalkvasnicak/spust | // @flow
import connect from 'koa-connect';
import helmet from 'helmet';
import hpp from 'hpp';
import React from 'react';
import { serverContextType, type Context as ServerContext } from './Server';
export type Props = {
contentSecurityPolicy?: {
browserSniff?: boolean,
directives?: {
baseUri?: Arra... |
ui/src/index.js | gchatterjee/cit-gened-finder | import React from 'react'
import ReactDOM from 'react-dom'
import App from './app'
ReactDOM.render(<App />, document.getElementById('root'))
|
node_modules/react/lib/ReactUpdateQueue.js | agdemore/chat_react | /**
* Copyright 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 React... |
src/packages/@ncigdc/components/analysis/DemoButton.js | NCI-GDC/portal-ui | import React from 'react';
import { compose } from 'recompose';
import { connect } from 'react-redux';
import {
addAnalysis,
updateClinicalAnalysisProperty,
} from '@ncigdc/dux/analysis';
import { Tooltip } from '@ncigdc/uikit/Tooltip/index';
import Button from '@ncigdc/uikit/Button';
import withRouter from '@ncig... |
packages/material-ui-icons/src/WbCloudySharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M19.37 10.04C18.68 6.59 15.65 4 12.01 4c-2.89 0-5.4 1.64-6.65 4.04C2.35 8.36.01 10.91.01 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.64-4.96z" />
, 'WbCloudySharp');
|
openvidu-insecure-react/src/OvVideo.js | OpenVidu/openvidu-tutorials | import React, { Component } from 'react';
export default class OpenViduVideoComponent extends Component {
constructor(props) {
super(props);
this.videoRef = React.createRef();
}
componentDidUpdate(props) {
if (props && !!this.videoRef) {
this.props.streamManager.addVid... |
actor-apps/app-web/src/app/components/activity/GroupProfile.react.js | Rogerlin2013/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import ReactZeroClipboard from 'react-zeroclipboard';
import { IntlMixin, FormattedMessage } from 'react-intl';
import { Styles, Snackbar } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import classnames from '... |
src/svg-icons/image/details.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageDetails = (props) => (
<SvgIcon {...props}>
<path d="M3 4l9 16 9-16H3zm3.38 2h11.25L12 16 6.38 6z"/>
</SvgIcon>
);
ImageDetails = pure(ImageDetails);
ImageDetails.displayName = 'ImageDetails';
export de... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | bluejaye/test | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
js/components/LoadingButton.react.js | techaware/biometric-auth | /**
* LoadingButton.react.js
*
* Wraps the loading indicator in a tag with the .btn--loading class
*/
import React from 'react';
import LoadingIndicator from './LoadingIndicator.react';
function LoadingButton(props) {
return(
<a href="#" className={props.className + " btn btn--loading"} disabled="true">
... |
test/linkClass.js | lukewestby/react-css-modules | /* eslint-disable max-nested-callbacks */
import {
expect
} from 'chai';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import linkClass from './../src/linkClass';
describe('linkClass', () => {
context('ReactElement does not define styleName', () => {
... |
fields/types/Field.js | pr1ntr/keystone | import classnames from 'classnames';
import evalDependsOn from '../utils/evalDependsOn.js';
import React from 'react';
import { findDOMNode } from 'react-dom';
import { FormField, FormInput, FormNote } from 'elemental';
import blacklist from 'blacklist';
import CollapsedFieldLabel from '../components/CollapsedFieldLabe... |
client/tests/documentComponents/documentCreate.spec.js | FlevianK/cp2-document-management-system | import expect from 'expect';
import React from 'react';
import { DocumentCreate } from '../../src/components/document/DocumentCreate';
import { shallow } from 'enzyme';
describe('Create document component', () => {
it('renders div', () => {
const wrapper = shallow(<DocumentCreate />);
expect(wrapper.find('di... |
ajax/libs/cyclejs-core/0.20.2/cycle.js | boneskull/cdnjs | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Cycle = f()}})... |
clients/packages/admin-client/src/components/share/tell-a-friend.spec.js | nossas/bonde-client | /* eslint-disable no-unused-expressions */
// import React from 'react'
// import { shallow } from 'enzyme'
import { expect } from 'chai';
// import { TellAFriend } from './index'
describe('client/components/share/tell-a-friend', () => {
let wrapper;
const props = {
dispatch: () => {},
href: 'http://foo.b... |
packages/wix-style-react/src/DragAndDrop/docs/SortableList/ListWithDelay/index.js | wix/wix-style-react | import React from 'react';
import CodeExample from 'wix-storybook-utils/CodeExample';
import Markdown from 'wix-storybook-utils/Markdown';
import ListWithDelayReadme from './ListWithDelayReadme.md';
import ListWithDelay from './ListWithDelay';
import ListWithDelayRaw from '!raw-loader!./ListWithDelay';
export default ... |
src/React/Properties/CellProperty/layouts.js | Kitware/paraviewweb | import React from 'react';
import style from 'PVWStyle/ReactProperties/CellProperty.mcss';
import InputCell from './InputCell';
function arrayFill(arr, expectedLength, filler = '') {
if (!arr) {
return Array(expectedLength).fill(filler);
}
while (arr.length < expectedLength) {
arr.push(filler);
}
r... |
src/components/Bulb/Styles.js | BastienAlvez/ReactNativeHue | import React from 'react';
import {
StyleSheet,
} from 'react-native';
var styles = StyleSheet.create({
text: {
color: 'white',
fontSize: 20,
fontWeight: '600'
},
bulb: {
height: 50,
width: 50,
borderRadius: 5,
alignItems: 'center',
justifyContent: 'center',
}
});
module.expo... |
src/svg-icons/image/details.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageDetails = (props) => (
<SvgIcon {...props}>
<path d="M3 4l9 16 9-16H3zm3.38 2h11.25L12 16 6.38 6z"/>
</SvgIcon>
);
ImageDetails = pure(ImageDetails);
ImageDetails.displayName = 'ImageDetails';
ImageDetai... |
packages/material-ui-icons/src/LensOutlined.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z" /></g></React.Fra... |
src/client/app/app.react.js | terakilobyte/esterethinksocketchat | import './app.styl';
import * as state from '../state';
import Component from '../components/component.react';
import Footer from './footer.react';
import Menu from './menu.react';
import React from 'react';
import persistState from './persiststate.react';
import {RouteHandler} from 'react-router';
// Remember to impo... |
src/pages/Components/Buttons/Colors.js | JSLancerTeam/crystal-dashboard | import React from 'react';
const Colors = () => (
<div>
<div className="header">
<h4 className="title">Colors</h4>
</div>
<div className="content buttons-with-margin">
<button className="btn btn-default btn-fill btn-wd">Default</button>
<button className="btn btn-primary btn-fill btn-wd... |
app/javascript/mastodon/features/ui/components/drawer_loading.js | cybrespace/mastodon | import React from 'react';
const DrawerLoading = () => (
<div className='drawer'>
<div className='drawer__pager'>
<div className='drawer__inner' />
</div>
</div>
);
export default DrawerLoading;
|
src/components/Organism/OrganismListFilters/index.js | ProteinsWebTeam/interpro7-client | // @flow
import React from 'react';
import FiltersPanel from 'components/FiltersPanel';
import OrganismDBFilter from './OrganismDBFilter';
// import LengthFilter from './LengthFilter';
// import TaxonomyFilter from './TaxonomyFilter';
const OrganismListFilters = () => (
<FiltersPanel>
<OrganismDBFilter label="O... |
src/ModalTitle.js | AlexKVal/react-bootstrap | import React from 'react';
import classNames from 'classnames';
class ModalTitle extends React.Component {
render() {
return (
<h4
{...this.props}
className={classNames(this.props.className, this.props.modalClassName)}>
{ this.props.children }
</h4>
);
}
}
ModalTitle.pr... |
src/components/WowheadSpellLink/WowheadSpellLink.js | warcraftlfg/warcrafthub-client | import React from 'react'
export const WowheadSpellLink = (props) => {
if (props.id === 0) {
return (
<span className='wowhead-spell-link empty'>
{props.children}
</span>
)
} else {
return (
<a href={'//www.wowhead.com/spell=' + props.id} className='wowhead-spell-link'>
... |
packages/mcs-lite-landing-web/src/components/SVG/SVGMobile.js | MCS-Lite/mcs-lite | /**
* svgtoreact
*
* @author Michael Hsu
*/
import React from 'react';
export default function SVGMobile(props) {
return (
<svg width={26} height={42} viewBox="0 0 26 42" {...props}>
<g fill="none">
<path d="M-17-9h60v60h-60z" />
<g fill="#fff">
<path
opacity=".5"... |
modules/field_ui/field_ui.js | prasad-natarajan/Roche-Distribution | /**
* @file
* Attaches the behaviors for the Field UI module.
*/
(function($) {
Drupal.behaviors.fieldUIFieldOverview = {
attach: function (context, settings) {
$('table#field-overview', context).once('field-overview', function () {
Drupal.fieldUIFieldOverview.attachUpdateSelects(this, settings);
... |
reactWebpack/test/helpers/shallowRenderHelper.js | JohnsonTX/webpacreact | /**
* 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'... |
code/eg-1/js/app.js | Code-by-practice/learning-flux | import React from 'react';
import ReactDOM from 'react-dom';
import TodoApp from './components/TodoApp';
ReactDOM.render(
<TodoApp />,
document.getElementById('container')
);
|
packages/material-ui-icons/src/SignalCellularConnectedNoInternet4Bar.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M20 18h2v-8h-2v8zm0 4h2v-2h-2v2zM2 22h16V8h4V2L2 22z" /></g>
, 'SignalCellularConnectedNoInternet4Bar');
|
src/routes.js | bluSCALE4/react-hello-world | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App';
import HomePage from './components/home/HomePage';
import CoursesPage from './components/courses/CoursesPage';
import AboutPage from './components/about/AboutPage';
export default (
<Route path="/" compone... |
packages/mineral-ui-icons/src/IconAirplanemodeInactive.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconAirplanemodeInactive(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {... |
dist/js/vendor/jquery-1.11.1.min.js | joana83/Mytestrepository | /*! 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... |
src/frontend/components/survey-renderers/SurveyRenderer.js | al3x/ground-control | import React from 'react';
import Relay from 'react-relay';
import BSDSurvey from './survey-renderers/BSDSurvey'
import BSDPhonebankRSVPSurey from './survey-renderers/BSDPhonebankRSVPSurey'
class SurveyRenderer extends React.Component {
static propTypes = {
onSubmitted : React.PropTypes.func,
}
submit() {
... |
ajax/libs/react/0.12.1/react.js | WilliamRen/cdnjs | /**
* React v0.12.1
*/
!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()}}(function(){var d... |
modules/Lifecycle.js | cgrossde/react-router | import React from 'react'
import invariant from 'invariant'
const { object } = React.PropTypes
/**
* The Lifecycle mixin adds the routerWillLeave lifecycle method
* to a component that may be used to cancel a transition or prompt
* the user for confirmation.
*
* On standard transitions, routerWillLeave receives ... |
ajax/libs/rxjs/2.3.1/rx.all.js | thejsj/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false... |
docs/js/react.js | brian-murray35/react | /**
* React v0.13.3
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}els... |
frontend/src/Settings/ImportLists/ImportListExclusions/EditImportListExclusionModalConnector.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { clearPendingChanges } from 'Store/Actions/baseActions';
import EditImportListExclusionModal from './EditImportListExclusionModal';
function mapStateToProps() {
return {};
}
const mapDispatch... |
src/components/TestIngredientsList.js | kishigo/recipes-react-redux | /**
* Created by Kelvin Ishigo on 10/11/17.
*
* Copyright (c) 2017 Kelvin Ishigo
* Licensed under the MIT License. See LICENSE file in the project root for full license information.
*/
import React from 'react'
import Ingredient from './Ingredient'
/**
* Learning... by inheriting from React.Component, this will h... |
packages/stockflux-watchlist/src/index.js | ScottLogic/StockFlux | import React from 'react';
import ReactDOM from 'react-dom';
import { OpenfinApiHelpers } from 'stockflux-core';
import App from './App';
const mountApp = () => {
ReactDOM.render(<App />, document.getElementById('root'));
};
if (OpenfinApiHelpers.getWindow()) {
OpenfinApiHelpers.useMain(mountApp);
} else {
cons... |
test/PanelGroupSpec.js | wjb12/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import PanelGroup from '../src/PanelGroup';
import Panel from '../src/Panel';
describe('PanelGroup', () => {
it('Should pass bsStyle to Panels', () => {
let instance = ReactTestUtils.renderIntoDocument(
<PanelGroup bsStyle="d... |
lib/jquery/jquery-1.6.4.min.js | flamant-bleu-studio/aidoo_base-project | /*! jQuery v1.6.4 http://jquery.com/ | http://jquery.org/license */
(function(a,b){function cu(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cr(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe"... |
fixtures/kitchensink/template/src/features/webpack/DynamicImport.js | d3ce1t/create-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 from 'react';
export default () => {
return <>Hello World!</>;
};
|
src/components/ExerciseForm.js | diegocasmo/workouter | import React from 'react'
import {Prompt} from 'react-router-dom'
import {Formik, Form} from 'formik'
import {Input} from './UI/Input'
import {ExerciseSchema} from '../api/exercise'
export const ExerciseForm = ({
exercise,
submitText,
history,
redirectTo,
validationSchema = ExerciseSchema,
handleSubmit
}) ... |
app/components/member/Index.js | fotinakis/buildkite-frontend | import React from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import { second } from 'metrick/duration';
import DocumentTitle from 'react-document-title';
import Dropdown from '../shared/Dropdown';
import Icon from '../shared/Icon';
import ShowMoreFooter from '../shared/ShowMo... |
packages/material-ui-icons/src/SmokingRoomsSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M2 16h15v3H2v-3zm18.5 0H22v3h-1.5v-3zM18 16h1.5v3H18v-3zm.85-8.27c.62-.61 1-1.45 1-2.38C19.85 3.5 18.35 2 16.5 2v1.5c1.02 0 1.85.83 1.85 1.85S17.52 7.2 16.5 7.2v1.5c2.24 0 4 1.83 4 4.07V15H22v-2.24c0-... |
src/DataTable/Sortable.js | react-mdl/react-mdl | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import TableHeader from './TableHeader';
function initState(props) {
return {
rows: (props.rows || props.data).slice(),
sortHeader: null,
isAsc: true
};
}
const propTypes = {
columns... |
__tests__/geometry.js | react-armenia/react-native-view-editable | // @flow
import React from 'react';
import {
pow2abs,
numberToDegree,
degreeToNumber,
distanceBetweenTouches,
centerTouches,
toDeg,
angle
} from '../lib/utils';
describe('Geometry calculations', () => {
const touches = [
{ pageX: 10, pageY: 5, locationX: 0, locationY: 0 },
{ pageX: 4, pageY: 5, locationX: ... |
tests/client/amo/components/TestSearchPage.js | mstriemer/addons-frontend | import React from 'react';
import SearchPage from 'amo/components/SearchPage';
import SearchResult from 'amo/components/SearchResult';
import SearchResults from 'core/components/Search/SearchResults';
import Paginate from 'core/components/Paginate';
import { findAllByTag, findByTag, shallowRender } from 'tests/client/... |
docs/client/components/pages/Hashtag/SimpleHashtagEditor/index.js | dagopert/draft-js-plugins | import React, { Component } from 'react';
import Editor, { createEditorStateWithText } from 'draft-js-plugins-editor';
import createHashtagPlugin from 'draft-js-hashtag-plugin';
import editorStyles from './editorStyles.css';
const hashtagPlugin = createHashtagPlugin();
const plugins = [hashtagPlugin];
const text = `#T... |
src/containers/ViewContainer.js | jozaru/my-bank-app | import React from 'react';
import { connect } from 'react-redux';
import * as viewConstants from '../constants/viewConstants';
import TransferCreate from './TransferCreate';
import TranfersFilter from './TransfersFilter';
import TransfersList from './TransfersList';
import { selectView } from '../actions/actionCreator'... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.