path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
Components/IndividualProjectScreen.js | colm2/mizen | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Image,
ScrollView,
Linking,
ActivityIndicator
} from 'react-native';
import { connect } from 'react-redux';
import Icon from 'react-native-vector-icons/FontAwesome';
export class IndividualProjectScreen extends Component{
... |
packages/shared/forks/Scheduler.umd.js | flarnie/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.
*
* @flow
*/
import React from 'react';
const ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
const {
... |
app/src/App.js | LichAmnesia/MBSCM | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
var PythonShell = require('python-shell');
PythonShell.run('compute_input.py', function (err) {
if (err) throw err;
console.log('finished');
});
retur... |
step7-flux/node_modules/react-router/es6/RouteUtils.js | jintoppy/react-training | 'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
export { isReactChildren };
export { createRou... |
__tests__/client/App/Shell/About/index.spec.js | noamokman/project-starter-sample | import React from 'react';
import {shallow} from 'enzyme';
import About from '../../../../../client/App/Shell/About';
describe('About component', () => {
it('renders without crashing', () => {
shallow(<About />);
});
}); |
packages/cockpit/ui/src/components/ExplorerLayout.js | iurimatias/embark-framework | import React from 'react';
import {Route, Switch} from 'react-router-dom';
import AccountsContainer from '../containers/AccountsContainer';
import AccountContainer from '../containers/AccountContainer';
import BlocksContainer from '../containers/BlocksContainer';
import BlockContainer from '../containers/BlockContaine... |
packages/react-router-config/modules/__tests__/renderRoutes-test.js | DelvarWorld/react-router | import React from 'react'
import ReactDOM from 'react-dom'
import ReactDOMServer from 'react-dom/server'
import StaticRouter from 'react-router/StaticRouter'
import Router from 'react-router/Router'
import renderRoutes from '../renderRoutes'
import createHistory from 'history/createMemoryHistory'
describe('renderRoute... |
lib/js/messi.js | jakelin212/jakelin212.github.io | /*
* jQuery Messi Plugin 1.2
* https://github.com/marcosesperon/jquery-messi
*
* Copyright 2012, Marcos Esperón
* http://marcosesperon.es
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/
// Clase principal
function Messi(data, options) {
var _this = this;
_this.options = ... |
docs/src/pages/components/pagination/PaginationRounded.js | lgollut/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Pagination from '@material-ui/lab/Pagination';
const useStyles = makeStyles((theme) => ({
root: {
'& > *': {
marginTop: theme.spacing(2),
},
},
}));
export default function PaginationRounded() {
const classes ... |
demos/todomvc/src/index.js | bdjnk/cerebral | import React from 'react'
import {render} from 'react-dom'
import controller from './controller'
import {Container} from 'cerebral/react'
import 'todomvc-common/base.css'
import 'todomvc-app-css/index.css'
import './styles.css'
import App from './components/App'
render((
<Container controller={controller}>
<Ap... |
src/svg-icons/editor/format-paint.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatPaint = (props) => (
<SvgIcon {...props}>
<path d="M18 4V3c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6h1v4H9v11c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-9h8V4h-3z"/>
</SvgIco... |
frontend/src/components/eois/details/overview/partnerClarificationRequests.js | unicef/un-partner-portal | import React, { Component } from 'react';
import R from 'ramda';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import Typography from 'material-ui/Typography';
import Button from 'material-ui/Button';
import withMultipleDialogHandling from '../../../common/hoc/withMultipleDialogHandling';
i... |
maodou/bizplans/client/components/admin/index.js | maodouio/meteor-react-redux-base | import React from 'react'
export default (props) => {
return (
<div>
{props.children}
</div>
)
}
|
src/index.js | cannap/learning-react-client | import React from 'react';
import {render} from 'react-dom';
import Router from './router';
import { createHistory, createHashHistory } from 'history';
render(<Router />,document.getElementById('root'));
|
html/js/jquery.min.js | Banool/bunkopepi | /*! 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/components/TaskbarWindowsList/TaskbarWindowsList.js | z81/PolarOS_Next | import React, { PropTypes, Component } from 'react'
import styles from './TaskbarWindowsList.scss'
class TaskbarWindowsList extends Component {
static propTypes = {
position: PropTypes.any,
windows: PropTypes.any,
onActive: PropTypes.any
};
constructor (props) {
super(props)
this.state = {}
... |
src/themes/llamas.js | davosolo/davosolo.github.io | import React from 'react'
import { injectGlobal } from 'styled-components';
// Define what props.theme will look like
const Llamas = {
primary: '#8688BA',
strongPrimary: 'rebeccapurple',
secondary: '#7EC7F8',
light: '#F7FCFF',
middle: '#A6B0BF',
dark: '#403B46',
font: '"Roboto-Light", sans-... |
web/static/js/react-bootstrap-0.25.1.js | killix/platform | (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["ReactBootstrap"] = ... |
Neos.Media.Browser/packages/neos-media-browser/src/Variants/Original.js | kdambekalns/neos-development-collection | import React from 'react';
export default class Original extends React.PureComponent {
render() {
const {persistenceIdentifier, previewUri, width, height} = this.props;
return (
<ul className="neos-thumbnails">
<li className="asset" data-asset-identifier={persistenceIde... |
src/assets/js/react/components/Help/DisplayResultEmpty.js | blueliquiddesigns/gravity-forms-pdf-extended | import React from 'react'
/**
* @package Gravity PDF
* @copyright Copyright (c) 2020, Blue Liquid Designs
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @since 5.2
*/
/**
* Display the empty search results
*
* @returns {*}
*
* @since 5.2
*/
const DisplayResultEmp... |
consoles/my-joy-images/src/mocks/theme.js | yldio/joyent-portal | import React from 'react';
import { ThemeProvider } from 'styled-components';
import {
theme,
RootContainer,
PageContainer,
ViewContainer
} from 'joyent-ui-toolkit';
export default ({ children, ss }) => (
<ThemeProvider theme={theme}>
{ss ? (
<RootContainer>
<PageContainer>
<ViewC... |
ajax/libs/preact-compat/1.7.1/preact-compat.min.js | hare1039/cdnjs | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("proptypes"),require("preact-svg"),require("preact")):"function"==typeof define&&define.amd?define(["exports","proptypes","preact-svg","preact"],t):t(e.preactCompat=e.preactCompat||{},e.PropTypes,e.preactSvg,e.preact)}(this,function(e... |
app/component/quiz/reply/ReplyInputNumeric.js | vagnerpraia/ipea_survey | import React, { Component } from 'react';
import { StyleSheet, TextInput, ToastAndroid, View } from 'react-native';
import { Text } from 'native-base';
import { styles } from './../../../Styles';
export default class ReplyInputNumeric extends Component {
constructor(props) {
super(props);
this.st... |
src/routes/BuyLease/components/Results.js | psound/jm-liberty | import React from 'react'
import { IndexLink, Link } from 'react-router'
import './HomeView.scss'
const styles = {};
let data = require('../assets/data.json');
class Results extends React.Component {
constructor (props) {
super(props);
this.state = {
heroImage: require(`../../../img/... |
docs/src/examples/modules/Checkbox/Types/CheckboxExampleCheckbox.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Checkbox } from 'semantic-ui-react'
const CheckboxExampleCheckbox = () => (
<Checkbox label='Make my profile visible' />
)
export default CheckboxExampleCheckbox
|
src/client/components/kiosk/Navigation/Navigation.component.js | DBCDK/content-first | import React from 'react';
import {connect} from 'react-redux';
import Link from '../../general/Link.component';
import scroll from '../../../utils/scroll';
import Title from '../../base/Title';
import Icon from '../../base/Icon';
import T from '../../base/T/';
import './Navigation.css';
export class Navigation ex... |
ajax/libs/yasqe/1.2.4/yasqe.min.js | zhangbg/cdnjs | !function(e){if("object"==typeof exports)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.YASQE=e()}}(function(){var e;return function t(e,i,r){function n(s,a){if(!i[s]){if(!... |
src/VideoPlayer.js | Lykkeper/partify | import React from 'react';
import Youtube from 'react-youtube';
class VideoPlayer extends React.Component {
render() {
const width = window.innerWidth * .75;
const height = width * 0.609375;
const opts = {
height: height,
width: width,
playerVars: { // https://developers.google.com/you... |
ajax/libs/vis/3.4.1/vis.js | codevinsky/cdnjs | /**
* vis.js
* https://github.com/almende/vis
*
* A dynamic, browser-based visualization library.
*
* @version 3.4.1
* @date 2014-09-11
*
* @license
* Copyright (C) 2011-2014 Almende B.V, http://almende.com
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file e... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/rc-progress/es/Circle.js | bhathiya/test | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runt... |
admin/view/javascript/jquery/flot/jquery.min.js | oprohonnyi/ostpc_php | /*
* jQuery JavaScript Library v1.5.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.
... |
js/App.js | PathwayCommons/pathways-search | import React from 'react';
import ReactDOM from 'react-dom';
import {HashRouter, Route} from 'react-router-dom';
import {Index} from './Index.jsx';
import PathwayCommonsService from './services/pathwayCommons/';
/* eslint-disable */
// styles need to be imported even though they may not be used in this file
import st... |
modules/RouteUtils.js | brownbathrobe/react-router | import React from 'react'
import warning from 'warning'
function isValidChild(object) {
return object == null || React.isValidElement(object)
}
export function isReactChildren(object) {
return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild))
}
function checkPropTypes(componentName, p... |
packages/material-ui-icons/src/SettingsEthernetSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M7.77 6.76L6.23 5.48.82 12l5.41 6.52 1.54-1.28L3.42 12l4.35-5.24zM7 13h2v-2H7v2zm10-2h-2v2h2v-2zm-6 2h2v-2h-2v2zm6.77-7.52l-1.54 1.28L20.58 12l-4.35 5.24 1.54 1.28L23.18 12l-5.41-6.52z" />
, 'Settings... |
test/MenuItemSpec.js | rapilabs/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import MenuItem from '../src/MenuItem';
describe('MenuItem', function () {
it('should output an li', function () {
let instance = ReactTestUtils.renderIntoDocument(
<MenuItem>
Title
</MenuItem>
);
assert... |
scripts/src/pages/views/joinMeeting.js | Twogether/just-meet-frontend | import React from 'react';
import Helmet from 'react-helmet';
import { Link } from 'react-router';
export default (self) => {
return (
<div>
<Helmet
title="Just Meet | Add Meeting"
/>
<div className="left quarter">
<nav className="side-na... |
app/javascript/mastodon/components/avatar_composite.js | rekif/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { autoPlayGif } from '../initial_state';
export default class AvatarComposite extends React.PureComponent {
static propTypes = {
accounts: ImmutablePropTypes.list.isRequired,
ani... |
app/app.js | AxwayBraggers/braggersUI | import React from 'react';
import ReactDOM from 'react-dom';
import ReactDOMServer from 'react-dom/server';
import AppRoutes from './routes.js';
//Loading static resources
import './styles/bootstrap4/bootstrap.scss';
import './styles/app.scss';
class App {
render(element) {
var appRootElement = React.crea... |
components/head.js | batusai513/next-saga-boilerplate | import React from 'react';
import NextHead from 'next/head';
import { string } from 'prop-types';
const defaultDescription = '';
const defaultOGURL = '';
const defaultOGImage = '';
const Head = props => (
<NextHead>
<meta charSet="UTF-8" />
<title>{props.title || ''}</title>
<meta name="description" con... |
examples/with-segment-analytics/components/Page.js | azukaru/next.js | import React from 'react'
import Router from 'next/router'
import Header from './Header'
// Track client-side page views with Segment
Router.events.on('routeChangeComplete', (url) => {
window.analytics.page(url)
})
const Page = ({ children }) => (
<div>
<Header />
{children}
</div>
)
export default Pag... |
src/App.js | evanchiu/tele-js | import React, { Component } from 'react';
import ShowList from './ShowList';
import Notice from './Notice';
import UsageBar from './UsageBar';
import 'whatwg-fetch';
class App extends Component {
constructor(props) {
super(props);
this.state = {
info: '',
error: '',
shows: []
};
}
... |
src/containers/weather/searchbar.js | MeKyleH/ReactPortfolioStuff | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { fetchWeather } from '../../actions/index';
class SearchBar extends Component {
constructor(props) {
super(props);
this.state = { term: '' };
this.onInputChange = this.onInpu... |
packages/material-ui-icons/src/ViewCarouselSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M7 19h10V4H7v15zm-5-2h4V6H2v11zM18 6v11h4V6h-4z" />
, 'ViewCarouselSharp');
|
ajax/libs/js-data/2.0.0-beta.4/js-data-debug.js | hpneo/cdnjs | /*!
* js-data
* @version 2.0.0-beta.4 - Homepage <http://www.js-data.io/>
* @author Jason Dobry <jason.dobry@gmail.com>
* @copyright (c) 2014-2015 Jason Dobry
* @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE>
*
* @overview Robust framework-agnostic data store.
*/
(function webpackUnivers... |
src/DropDownMenu/DropDownMenu.js | skarnecki/material-ui | import React from 'react';
import transitions from '../styles/transitions';
import DropDownArrow from '../svg-icons/navigation/arrow-drop-down';
import Menu from '../Menu/Menu';
import ClearFix from '../internal/ClearFix';
import Popover from '../Popover/Popover';
import PopoverAnimationFromTop from '../Popover/Popover... |
src/js/components/demo-form.js | training4developers/react_redux_12122016 | /* @flow */
import React from 'react';
import { BaseForm } from './base-form';
import { InputSSN } from './input-ssn';
type DemoFormProps = Object;
type DemoFormState = {
inputTextControl: string,
inputNumberControl: number,
inputDateControl: string,
inputColorControl: string,
inputRangeControl: number,
input... |
ajax/libs/react-native-web/0.17.2/cjs/exports/Switch/index.min.js | cdnjs/cdnjs | "use strict";exports.__esModule=!0,exports.default=void 0;var React=_interopRequireWildcard(require("react")),_createElement=_interopRequireDefault(require("../createElement")),_multiplyStyleLengthValue=_interopRequireDefault(require("../../modules/multiplyStyleLengthValue")),_StyleSheet=_interopRequireDefault(require(... |
src/entypo/LineGraph.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--LineGraph';
let EntypoLineGraph = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M0.69,11.331l1.363,0.338l1.026-1.611l-1.95-0.482c-0.488-0.121-0.981,0.174-1.102,0.66C-0.094,10.... |
client/src/components/Index/index.js | mohandere/tukaram-gatha | import React, { Component } from 'react';
import axios from 'axios';
import NProgress from 'nprogress';
import { ButtonGroup, Button, Grid, Row, Col } from 'react-bootstrap';
import { Link } from 'react-router-dom';
import Helpers from '../../helpers'
import { FormattedMessage } from 'react-intl';
import _ from 'under... |
packages/material-ui-icons/src/Flip.js | lgollut/material-ui | import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M15 21h2v-2h-2v2zm4-12h2V7h-2v2zM3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2zm16-2v2h2c0-1.1-.9-2-2-2zm-8 20h2V1h-2v22zm8-6h2v-2h-2v2zM15 5h2V3h-2v2zm4 8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v... |
test/resetFormButton-test.js | theadam/react-inform | import { expect } from 'chai';
import React from 'react';
import { spy } from 'sinon';
import { mount } from 'enzyme';
import ResetFormButton from '../src/resetFormButton';
describe('ResetFormButton', () => {
let context;
let props;
const render = () => mount(<ResetFormButton {...props} />, { context });
bef... |
ajax/libs/material-ui/5.0.0-alpha.24/internal/svg-icons/NavigateNext.min.js | cdnjs/cdnjs | import*as React from"react";import createSvgIcon from"../../utils/createSvgIcon";export default createSvgIcon(React.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"); |
src/react/puppeteer/src/js/views/ModuleListElement.js | nicholastmosher/pa_puppeteer | /**
* @author Nick Mosher <nicholastmosher@gmail.com>
*/
import React from 'react';
import { Link } from 'react-router-dom';
import classNames from 'classnames';
const ModuleListElement = ({deviceId, module, active}) => {
return (
<Link to={'/dashboard/devices/' + deviceId + '/modules/' + module.id}
... |
docs/src/hero_example.js | mberneti/react-datepicker2 | import React from 'react';
import momentJalaali from 'moment-jalaali';
import DatePicker from '../../src/index.dev.js';
import Switch from 'react-switch';
const buttonContainerStyle = {
marginTop: 20
};
const labelStyle = {
float: 'left'
};
const switchStyle = {
float: 'right'
};
export default class ReactClas... |
extjs6/ext/classic/classic/src/grid/NavigationModel.js | aitch0083/extjs-and-more | // TODO: Implement http://www.w3.org/TR/2013/WD-wai-aria-practices-20130307/#grid standards
/**
* @class Ext.grid.NavigationModel
* @private
* This class listens for key events fired from a {@link Ext.grid.Panel GridPanel}, and moves the currently focused item
* by adding the class {@link #focusCls}.
*/
Ext... |
frontend/src/routes.js | OpenCollective/opencollective-website | import React from 'react';
import { Route, Redirect } from 'react-router';
import About from './containers/About';
import AddGroup from './containers/AddGroup';
import ConnectedAccounts from './components/ConnectedAccounts';
import ConnectProvider from './containers/ConnectProvider';
import Discover from './containers... |
assets/javascripts/kitten/components/graphics/icons/align-left-icon/index.js | KissKissBankBank/kitten | import React from 'react'
import PropTypes from 'prop-types'
export const AlignLeftIcon = ({ color, title, ...props }) => (
<svg
width="14"
height="10"
viewBox="0 0 14 10"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
{title && <title>{title}</title>}>
<path d="M9 8v2H0V8h9zm5-4v2H0V4... |
src/components/tasks/modal/InsufficientAmountModal.js | golemfactory/golem-electron | import React from 'react';
import { BigNumber } from 'bignumber.js';
import Lottie from 'react-lottie';
import animData from './../../../assets/anims/warning';
import { ETH_DENOM } from './../../../constants/variables';
const { ipcRenderer } = window.electron;
const defaultOptions = {
loop: false,
autoplay: ... |
test/PageHeaderSpec.js | tonylinyy/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import PageHeader from '../src/PageHeader';
describe('PageHeader', function () {
it('Should output a div with content', function () {
let instance = ReactTestUtils.renderIntoDocument(
<PageHeader>
<strong>Content</str... |
examples/jest-snapshot-testing/src/index.js | ericf/react-intl | import React from 'react';
import ReactDOM from 'react-dom';
import RootContainer from './containers/RootContainer';
ReactDOM.render(
<RootContainer/>,
document.getElementById('root')
);
|
thingmenn-frontend/src/widgets/speeches/index.js | baering/thingmenn | import React from 'react'
import PropTypes from 'prop-types'
import { formatTime } from '../../utils'
import './styles.css'
const Speeches = ({ title, speechSummary }) => {
const speeches = Object.keys(speechSummary)
.filter((key) => key !== 'Samtals')
.map((key) => ({
id: key,
time: formatTime... |
ajax/libs/react-native-web/0.14.4/exports/TouchableWithoutFeedback/index.min.js | cdnjs/cdnjs | "use strict";function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);r&&(s=s.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,s)}return t}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=argumen... |
src/utils/bundle.js | magic-FE/react-redux-boilerplate | // @flow
/**
* @author: likun,
* @from: https://reacttraining.com/react-router/web/guides/code-splitting
* @description: split code with router;
*/
import React from 'react';
type props = {
load: () => Promise<any>,
renderRealComponent: (
param: ?React$Component<any, any, any>
) => React$Element<any>
};
... |
test/unit/components/timelineSpec.js | mvader/reactmad-redux-example | import {assert} from 'chai'
import sinon from 'sinon'
import React from 'react'
import TestUtils from 'react-addons-test-utils'
import {Timeline} from '../../../src/components/Timeline.jsx'
function setup() {
let props = {
dispatch: sinon.spy(),
twists: [
{
id: 1,
... |
src/svg-icons/navigation/expand-less.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationExpandLess = (props) => (
<SvgIcon {...props}>
<path d="M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"/>
</SvgIcon>
);
NavigationExpandLess = pure(NavigationExpandLess);
NavigationExpandLess.displa... |
app/components/NoMatch.js | jianyuan/mondo-web | import React, { Component } from 'react';
import { Alert } from 'react-bootstrap';
export default class NoMatch extends Component {
render() {
return (
<Alert bsStyle="danger">
Page not found!
</Alert>
);
}
}
|
code/shrek/js/jquery-1.11.1.min.js | ds84182/illacceptanything | /*! 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... |
client/src/containers/Login.js | jeffersonsteelflex69/mytv | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { CognitoUser, AuthenticationDetails } from 'amazon-cognito-identity-js';
import Login from '../components/Login';
const mapDispatchToProps = (dispatch) => {
return {
loginUser: (userPool, userPoolId, userPoolURL, email, passwor... |
blueocean-material-icons/src/js/components/svg-icons/action/settings-bluetooth.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionSettingsBluetooth = (props) => (
<SvgIcon {...props}>
<path d="M11 24h2v-2h-2v2zm-4 0h2v-2H7v2zm8 0h2v-2h-2v2zm2.71-18.29L12 0h-1v7.59L6.41 3 5 4.41 10.59 10 5 15.59 6.41 17 11 12.41V20h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 3.83l1.88 1.88L13... |
ajax/libs/yasr/2.2.4/yasr.bundled.min.js | mitsuruog/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.YASR=e()}}(function(){var e;return function t(e,n,r){... |
assets/web/assets/jquery/jquery.min.js | Pythcascade/pythcascade.github.io | /*! 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... |
src/containers/DevTools.js | adorsk/redux-quiz | 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='H'
changePositionKey='Q'>
<LogMonitor />
</Dock... |
node_modules/react-icons/io/ios-basketball.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const IoIosBasketball = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m19.8 3.8c8.9 0 16.2 7.2 16.2 16.2s-7.3 16.3-16.2 16.3-16.3-7.3-16.3-16.3 7.3-16.2 16.3-16.2z m9.7 27.5c-1.7-4-4.1-7.6-6.9-10.8 0.8-1 1.6-2 2.4-3 2.6 2.1 6 3.5 ... |
src/components/phone-input.js | tylerlee/former | import BasicInput from 'components/basic-input';
import Cursors from 'cursors';
import React from 'react';
export default React.createClass({
mixins: [Cursors],
render: function () {
return <BasicInput {...this.props} type='tel' />;
}
});
|
frontend/src/Organize/OrganizePreviewModalConnector.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { clearOrganizePreview } from 'Store/Actions/organizePreviewActions';
import OrganizePreviewModal from './OrganizePreviewModal';
const mapDispatchToProps = {
clearOrganizePreview
};
class Orga... |
src/components/observable/view.stories.js | philpl/rxjs-diagrams | import React from 'react'
import { storiesOf } from '@kadira/storybook'
import { withKnobs, number, boolean } from '@kadira/storybook-addon-knobs';
import ObservableView from './view'
import EmissionsView from './emissionsView'
storiesOf('Observable', module)
.addDecorator(withKnobs)
.add('View', () => (
<Obs... |
src/components/providers/AsyncComponent.js | gribnoysup/diy-dog-search | import React from 'react'
import Process from '../Process'
export default class AsyncComponent extends React.Component {
constructor(...args) {
super(...args)
this.state = {component: null}
}
componentDidMount() {
const {getComponent} = this.props
getComponent((error, component) => {
if (... |
components/Navbar.js | alexxpan/calwtcrew | import React, { Component } from 'react';
import { Link } from 'react-router';
import { prefixLink } from 'gatsby-helpers'; // eslint-disable-line
import FontAwesome from 'react-fontawesome';
import Headroom from 'react-headroom';
import classNames from 'classnames';
import logo from '../assets/images/logo.png';
expor... |
examples/js/advance/hide-on-insert-table.js | echaouchna/react-bootstrap-tab | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const jobs = [];
const jobTypes = [ 'A', 'B', 'C', 'D' ];
function addJobs(quantity) {
const startId = jobs.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
jo... |
react-js/redux-form/src/index.js | vanyaland/react-demos | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { Router, browserHistory } from 'react-router';
import promise from 'redux-promise';
import reducers from './reducers';
import routes from './routes';
const ... |
src/pages/public.js | giupo/prodomo | 'use strict';
import app from 'ampersand-app';
import React from 'react';
export default React.createClass({
displayName : 'PublicPage',
onLoginClick (event) {
event.preventDefault();
console.log('cribbio');
let x = app.router.history.navigate('/login');
console.log(x);
},
onOtherPageClick (... |
examples/todomvc/containers/Root.js | tschaub/redux | import React, { Component } from 'react';
import TodoApp from './TodoApp';
import { createStore, combineReducers } from 'redux';
import { Provider } from 'react-redux';
import rootReducer from '../reducers';
const store = createStore(rootReducer);
export default class Root extends Component {
render() {
return ... |
src/test/__tests__/reactComponentExpect-test.js | Flip120/react | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react-co... |
Examples/UIExplorer/ActionSheetIOSExample.js | futbalguy/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
internals/templates/homePage/homePage.js | ipselon/react-boilerplate-clone | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it and remove
* the l... |
packages/material-ui-icons/src/SettingsInputAntennaRounded.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M12 5c-3.48 0-6.37 2.54-6.91 5.87-.1.59.39 1.13 1 1.13.49 0 .9-.36.98-.85C7.48 8.79 9.53 7 12 7s4.52 1.79 4.93 4.15c.08.49.49.85.98.85.61 0 1.09... |
app/components/shared/FormMarkdownEditorField.js | buildkite/frontend | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import autosize from 'autosize';
import MarkdownEditor from 'app/lib/MarkdownEditor';
import AssetUploader from 'app/lib/AssetUploader';
import Button from 'app/components/shared/Button';
class FormMarkdownEditorField e... |
src/svg-icons/action/perm-camera-mic.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermCameraMic = (props) => (
<SvgIcon {...props}>
<path d="M20 5h-3.17L15 3H9L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v-2.09c-2.83-.48-5-2.94-5-5.91h2c0 2.21 1.79 4 4 4s4-1.79 4-4h2c0 2.97-2.17 5.43-5 ... |
app/javascript/modules/EmailParliament/EmailComposer.js | SumOfUs/Champaign | import React, { useState, useEffect } from 'react';
import { FormattedMessage } from 'react-intl';
import { pick } from 'lodash';
import SweetInput from '../../components/SweetInput/SweetInput';
import FormGroup from '../../components/Form/FormGroup';
import Button from '../../components/Button/Button';
import ErrorMes... |
web/js/jquery-plugins/medialize-jQuery-contextMenu-1326fb7/jquery-1.8.2.min.js | apnadmin/appynotebook | /*! jQuery v1.8.2 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d===... |
app/components/shared/BuildStatusDescription.js | fotinakis/buildkite-frontend | import React from 'react';
import PropTypes from 'prop-types';
import { minute } from 'metrick/duration';
import { getDateString, getRelativeDateString } from '../../lib/date';
import { buildStatus } from '../../lib/builds';
class BuildStatusDescription extends React.PureComponent {
static propTypes = {
build: P... |
modules/gui/src/widget/activation/activatable.js | openforis/sepal | import {Activator} from './activator'
import {collectActivatables} from 'widget/activation/activation'
import {compose} from 'compose'
import {connect} from 'store'
import {shouldDeactivate} from 'widget/activation/activationPolicy'
import {withActivationContext} from 'widget/activation/activationContext'
import PropTy... |
src/html-handler.js | marcusdarmstrong/cloth-io | // @flow
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import { createStore } from 'redux';
import layout from './layout';
import App from './components/app';
import reducer from './reducer';
import onError from './util/on-error';
import { Map as map } from 'immutable';
const namespaces = ... |
src/svg-icons/av/playlist-play.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlaylistPlay = (props) => (
<SvgIcon {...props}>
<path d="M19 9H2v2h17V9zm0-4H2v2h17V5zM2 15h13v-2H2v2zm15-2v6l5-3-5-3z"/>
</SvgIcon>
);
AvPlaylistPlay = pure(AvPlaylistPlay);
AvPlaylistPlay.displayName = '... |
src/__tests__/MathJaxReact-test.js | kevinfrei/rollercoaster | import React from 'react';
import ReactDOM from 'react-dom';
import MathJaxReact from '../MathJaxReact';
it('renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.render(
<MathJaxReact formula='x^2+cos(x)'/>, div);
});
|
src/svg-icons/device/bluetooth.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBluetooth = (props) => (
<SvgIcon {...props}>
<path d="M17.71 7.71L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1.88 1.88L13 9.59V5.83zm1.88 10.46... |
ajax/libs/material-ui/4.9.5/MenuItem/MenuItem.min.js | cdnjs/cdnjs | "use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard"),_interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.styles=void 0;var _objectWithoutProperties2=_interopRequireDefau... |
src/svg-icons/action/assignment-return.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentReturn = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45... |
src/main.js | kubeless/kubeless-ui | /*
Copyright 2017 Bitnami.
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
distri... |
app/scripts/components/FilterLink.js | Pygocentrus/react-redux-es6-browserify | // NPM
import React from 'react';
import { connect } from 'react-redux';
// Components
import Link from './presentational/Link';
// Actions
import filterActions from '../actions/filters';
const mapStateToLinkProps = (state, ownProps) => {
return {
active: ownProps.filter === state.visibilityFilter
};
};
con... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.