path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/containers/Sign.js | WapGeaR/react-redux-boilerplate-auth | import React from 'react'
import classNames from 'classnames'
import {Link} from 'react-router'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import SignInForm from 'template/forms/SignInForm'
import SignUpForm from 'template/forms/SignUpForm'
import 'styles/toggle.scss'
import * a... |
packages/wix-style-react/src/FileUpload/docs/index.story.js | wix/wix-style-react | import React from 'react';
import {
header,
tabs,
tab,
description,
importExample,
title,
divider,
example,
playground,
api,
testkit,
} from 'wix-storybook-utils/Sections';
import { storySettings } from '../test/storySettings';
import * as examples from './examples';
import FileUpload from '..';... |
src/index.js | beckettkev/react-chat-back | import React from 'react';
import ReactDOM from 'react-dom';
import Chat from './chat';
import io from 'socket.io-client';
import './style.css';
const socket = io.connect('http://localhost:3000');
ReactDOM.render(
<Chat socket={socket} />,
document.getElementById('container')
);
|
src/index.js | jlmonroy13/Impraise-shorten-url | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import configureStore from './store/configureStore';
import App from './components/App/';
import { saveState } from './utils/localStorage';
import 'react-s-alert/dist/s-alert-default.css';
import './assets/stylesheets... |
ext/tilt-react.js | jphastings/tilt-react | import React from 'react';
import ReactDOM from 'react-dom';
class TiltReactClass {
constructor() {
this.components = {};
}
bind() {
this.reactContainers().forEach(container => {
const componentName = container.dataset.reactClass;
const propsContainer = container.nextElementSibling;
co... |
packages/ui-toolkit/src/text/__tests__/text.spec.js | yldio/joyent-portal | import React from 'react';
import renderer from 'react-test-renderer';
import 'jest-styled-components';
import remcalc from 'remcalc';
import { P, H1, H2, H3, H4, H5, H6, Small, Sup } from '../';
import { Theme } from '../../mocks';
import theme from '../../theme';
describe('Button', () => {
test('Paragraph', () =>... |
sites/all/modules/contrib/jquery_update/replace/jquery/1.10/jquery.js | edwardchan/drupal7 | /*!
* jQuery JavaScript Library v1.10.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-03T13:48Z
*/
(function( window, undefined ) {
// ... |
src/components/Leaderboard/LeaderboardListElement.js | elstgav/stair-climber | import React from 'react'
const LeaderboardListElement = ({ rank, leader }) => {
const FEET_PER_FLIGHT = 13
function elevation(flights) {
return `${(flights * FEET_PER_FLIGHT).toLocaleString()} ft`
}
return (
<tr>
<td>{rank}</td>
<td>{leader.name}</td>
<td>{elevation(leader.total)}<... |
js/components/loaders/Spinner.android.js | rebiz/diveprint |
import React from 'react';
import ProgressBar from 'ProgressBarAndroid';
import NativeBaseComponent from 'native-base/Components/Base/NativeBaseComponent';
import computeProps from 'native-base/Utils/computeProps';
export default class SpinnerNB extends NativeBaseComponent {
prepareRootProps() {
const type = {... |
src/ReactBoilerplate/Scripts/components/ChangeEmailForm/ChangeEmailForm.js | pauldotknopf/react-aspnet-boilerplate | import React from 'react';
import Form from 'components/Form';
import { reduxForm } from 'redux-form';
import { Input } from 'components';
import { changeEmail } from 'redux/modules/manage';
class ChangeEmailForm extends Form {
constructor(props) {
super(props);
this.success = this.success.bind(this);
th... |
src/javascript/main.js | apertus-open-source-cinema/elmyra | import 'bootstrap';
import React from 'react';
import ReactDOM from 'react-dom';
import Application from './application.js';
const reactEntry = document.createElement('div');
document.body.appendChild(reactEntry);
ReactDOM.render(<Application />, reactEntry);
|
web/src/js/__tests__/components/Header/FlowMenuSpec.js | cortesi/mitmproxy | jest.mock('../../../flow/utils')
import React from 'react'
import renderer from 'react-test-renderer'
import ConnectedFlowMenu, { FlowMenu } from '../../../components/Header/FlowMenu'
import { TFlow, TStore }from '../../ducks/tutils'
import { MessageUtils } from "../../../flow/utils"
import { Provider } from 'react-re... |
packages/material-ui-icons/src/PermIdentity.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let PermIdentity = props =>
<SvgIcon {...props}>
<path d="M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 ... |
app/javascript/flavours/glitch/actions/announcements.js | glitch-soc/mastodon | import api from 'flavours/glitch/util/api';
import { normalizeAnnouncement } from './importer/normalizer';
export const ANNOUNCEMENTS_FETCH_REQUEST = 'ANNOUNCEMENTS_FETCH_REQUEST';
export const ANNOUNCEMENTS_FETCH_SUCCESS = 'ANNOUNCEMENTS_FETCH_SUCCESS';
export const ANNOUNCEMENTS_FETCH_FAIL = 'ANNOUNCEMENTS_FETCH_... |
packages/forms/src/UIForm/fields/Enumeration/EnumerationWidget.js | Talend/ui | import PropTypes from 'prop-types';
import React from 'react';
import keycode from 'keycode';
import _isEmpty from 'lodash/isEmpty';
import Enumeration from '@talend/react-components/lib/Enumeration';
import classNames from 'classnames';
import { withTranslation } from 'react-i18next';
import FocusManager from '@talend... |
src/components/video_detail.js | liyan90s/react-redux-funtime | import React from 'react';
const VideoDetail = (props) => {
if (!props.selectedVideo) {
return <div>Loading...</div>;
}
return (
<div className="video-detail col-md-8">
<div className="embed-responsive embed-responsive-16by9">
<iframe className="embed-responsive-item" src={"http://www.yout... |
src/components/ExternalLink.js | joshforisha/fred-talks | import Color from 'lib/Color';
import PropTypes from 'prop-types';
import React from 'react';
import styled from 'styled-components';
const Link = styled.a`
color: ${Color.Fuchsia};
cursor: pointer;
text-decoration: underline;
transition: color 100ms ease-out;
:hover {
color: ${Color.Purple};
}
`;
ex... |
ajax/libs/riot/3.0.0-rc/riot+compiler.js | pvnr0082t/cdnjs | /* Riot v3.0.0-rc, @license MIT */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.riot = factory());
}(this, (function () { 'use strict';
var __TAGS_CACHE = [];
var __... |
packages/bonde-admin-canary/src/components/Link/ButtonLink.js | ourcities/rebu-client | import React from 'react'
import { Link } from 'react-router-dom'
import { Button } from 'bonde-styleguide'
export default ({ to, title, children, align }) => (
<Link to={to} title={title}>
<Button flat align={align || 'left'} padding='0'>
{children}
</Button>
</Link>
)
|
Examples/UIExplorer/js/UIExplorerApp.ios.js | callstack-io/react-native | /**
* Copyright (c) 2013-present, 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.
*
* The examp... |
test/components/Footer.spec.js | intrepion/rackt-redux-todomvc-example | import expect from 'expect'
import React from 'react'
import TestUtils from 'react-addons-test-utils'
import Footer from '../../components/Footer'
import { SHOW_ALL, SHOW_ACTIVE } from '../../constants/TodoFilters'
function setup(propOverrides) {
const props = Object.assign({
completedCount: 0,
activeCount: ... |
bill/Games.js | ttalhouk/Game_On | 'use strict';
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
TabBarIOS,
Text,
Navigator,
TouchableHighlight,
ListView,
View
} from 'react-native';
class Game extends Component {
constructor(props) {
super(props);
this.state = {
dataSource: new ListView.Da... |
src/svg-icons/av/fiber-dvr.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFiberDvr = (props) => (
<SvgIcon {...props}>
<path d="M17.5 10.5h2v1h-2zm-13 0h2v3h-2zM21 3H3c-1.11 0-2 .89-2 2v14c0 1.1.89 2 2 2h18c1.11 0 2-.9 2-2V5c0-1.11-.89-2-2-2zM8 13.5c0 .85-.65 1.5-1.5 1.5H3V9h3.5c.8... |
js/components/AppListItem.js | stefanfoulis/react-relay-experiment | import 'babel/polyfill';
import React from 'react';
import Relay from 'react-relay';
import Link from 'react-router/lib/Link';
class AppListItem extends React.Component {
render() {
let {app} = this.props;
return (
<Link to={`/${app.slug}`} activeClassName='active' className='list-group-item'>
... |
packages/playground/stories/Badge.story.js | appearhere/bloom | import React from 'react';
import { storiesOf } from '@storybook/react';
import { Badge } from '@appearhere/bloom';
storiesOf('Badge', module)
.add('Default badge', () => <Badge>Soon</Badge>)
.add('Primary badge', () => <Badge context="primary">New</Badge>)
.add('Special badge', () => <Badge context="special">Ve... |
client/modules/Post/components/PostListItem/PostListItem.js | mraq1234/mod11 | import React from 'react';
import propTypes from 'prop-types';
import { Link } from 'react-router';
import { FormattedMessage } from 'react-intl';
// Import Style
import styles from './PostListItem.css';
function PostListItem(props) {
return (
<div className={styles['single-post']}>
<h3 className={styles[... |
test/PanelSpec.js | pombredanne/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ReactDOM from 'react-dom';
import Panel from '../src/Panel';
import Table from '../src/Table';
describe('Panel', () => {
it('Should have class and body', () => {
let instance = ReactTestUtils.renderIntoDocument(
<Pane... |
packages/material/src/components/Button.native.js | wq/wq.app | import React from 'react';
import { useIcon } from '@wq/react';
import { Button as PaperButton, useTheme } from 'react-native-paper';
import PropTypes from 'prop-types';
export default function Button({
onClick,
onPress,
variant,
mode,
icon,
color,
...rest
}) {
const Icon = useIcon(icon... |
app/javascript/mastodon/components/missing_indicator.js | TootCat/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
const MissingIndicator = () => (
<div className='missing-indicator'>
<div>
<FormattedMessage id='missing_indicator.label' defaultMessage='Not found' />
</div>
</div>
);
export default MissingIndicator;
|
src/Alert.js | pandoraui/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Alert = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
onDismiss: React.PropTypes.func,
dismissAfter: React.PropTypes.number,
closeLabel: React.PropTypes.string
},
getD... |
src/controls/BaseControl.js | gribnoysup/react-yandex-maps | import React from 'react';
import PropTypes from 'prop-types';
import * as events from '../util/events';
import { getProp, isControlledProp } from '../util/props';
import { ParentContext } from '../Context';
import applyRef from '../util/ref';
export class BaseControl extends React.Component {
constructor() {
s... |
node_modules/babel-core/lib/traversal/path/lib/virtual-types.js | Hive-Team/venus | "use strict";
exports.__esModule = true;
// istanbul ignore next
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj;... |
test/react-native-cli/features/fixtures/rn0_62/babel.config.js | bugsnag/bugsnag-js | module.exports = {
presets: ['module:metro-react-native-babel-preset'],
};
|
src/svg-icons/editor/border-style.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderStyle = (props) => (
<SvgIcon {...props}>
<path d="M15 21h2v-2h-2v2zm4 0h2v-2h-2v2zM7 21h2v-2H7v2zm4 0h2v-2h-2v2zm8-4h2v-2h-2v2zm0-4h2v-2h-2v2zM3 3v18h2V5h16V3H3zm16 6h2V7h-2v2z"/>
</SvgIcon>
);
E... |
src/renderers/dom/client/__tests__/ReactMount-test.js | linmic/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... |
src/svg-icons/editor/space-bar.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorSpaceBar = (props) => (
<SvgIcon {...props}>
<path d="M18 9v4H6V9H4v6h16V9z"/>
</SvgIcon>
);
EditorSpaceBar = pure(EditorSpaceBar);
EditorSpaceBar.displayName = 'EditorSpaceBar';
EditorSpaceBar.muiName ... |
packages/material-ui-icons/src/ShuffleSharp.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="M10.59 9.17L5.41 4 4 5.41l5.17 5.17 1.42-1.41zM14.5 4l2.04 2.04L4 18.59 5.41 20 17.96 7.46 20 9.5V4h-5.5zm.33 9.41l-1.41 1.41 3.13 3.13L14.5 20H... |
script/js/react/material-ui/src/demo/bar/bar.js | home4j/arsenal4j | import React from 'react';
import {render} from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import AppBar from 'material-ui/AppBar';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import NavigationMenu from 'mate... |
ajax/libs/chimee/0.10.0-alpha.4/index.browser.js | joeyparrish/cdnjs |
/**
* chimee v0.10.0-alpha.4
* (c) 2017-2018 toxic-johann
* Released under MIT
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Chimee = factory());
}(this, (functi... |
examples/backbone_marionette/node_modules/jquery/dist/jquery.js | cornerbodega/todomvc | /*!
* jQuery JavaScript Library v1.11.2
* 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-12-17T15:27Z
*/
(function( global, factory ) {
if ... |
src/App.js | smartTop/react-tab | import React, { Component } from 'react';
import './App.css';
import TabComponent from './Tab';
class App extends Component {
constructor(props){
super(props);
this.state = {
triggerType:"click", //用来定义鼠标的触发类型,是click还是 mouseover
effect:"default", //用来定义内容切换效果,是直接切换还是... |
client/src/components/CourseSection/index.js | qasim/what-class-is-this | import React, { Component } from 'react';
import { daySorter } from './../../utils/sort';
import './style.css';
class CourseSection extends Component {
constructor(props) {
super();
this.state = { ...props.data }
}
normalizeTime(tSeconds) {
let tHours = Math.round(tSeconds / ( 60 * 60 ));
let tM... |
ajax/libs/react-virtualized/5.4.0/react-virtualized.js | cdnjs/cdnjs | !function(root, factory) {
"object" == typeof exports && "object" == typeof module ? module.exports = factory(require("react"), require("react-dom")) : "function" == typeof define && define.amd ? define([ "react", "react-dom" ], factory) : "object" == typeof exports ? exports.ReactVirtualized = factory(require("rea... |
src/js/Components/Events.js | RoyalSix/Eagle-Connect | import React, { Component } from 'react';
import {
Text,
View,
ListView
} from 'react-native';
import style from 'css';
export default class EventContainer extends Component {
renderRow(data) {
return (
<View style={{ paddingVertical: 10, paddingHorizontal: 5, borderRadiu... |
src/js/components/video/Overlay.js | odedre/grommet-final | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Box from '../Box';
import Heading from '../Heading';
import VideoShare from './Share';
import VideoPlayButton from './PlayButton';
import CSSClassnames from '../../utils/CSSClassnames';
const CLASS_R... |
packages/material-ui-icons/src/AspectRatioTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M3 19.01h18V4.99H3v14.02zM14 15h3v-3h2v5h-5v-2zM5 7h5v2H7v3H5V7z" opacity=".3" /><path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18... |
ajax/libs/react-router/0.4.1/react-router.js | tholu/cdnjs | !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.ReactRouter=e()}}(function(){var define,module,export... |
packages/material-ui/src/Portal/Portal.js | allanalexandre/material-ui | import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import { useForkRef } from '../utils/reactHelpers';
import { exactProp } from '@material-ui/utils';
function getContainer(container) {
container = typeof container === 'function' ? container() : container;
// #StrictMo... |
node_modules/react-bootstrap/es/Radio.js | darklilium/Factigis_2 | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
ajax/libs/material-ui/4.9.2/es/TableCell/TableCell.js | cdnjs/cdnjs | import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import withStyles from '../styles/withStyles';
import capitalize from '.... |
src/svg-icons/device/brightness-medium.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBrightnessMedium = (props) => (
<SvgIcon {...props}>
<path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6... |
ajax/libs/mediaelement/2.10.2/jquery.js | SaravananRajaraman/cdnjs | /*!
* jQuery JavaScript Library v1.7
* 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/client.js | Alastor4918/Heckmeck | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createStore from './redux/create';
import ApiClient from './helpers/ApiClient';
import io from 'socket.io-client';
import... |
ajax/libs/react/0.4.2/react.min.js | DDMAL/cdnjs | /**
* React v0.4.2
*
* Copyright 2013 Facebook, Inc.
*
* 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 applicabl... |
universal_api_project_template/shared/routes.js | Mikeysax/mikey | // Router Dependencies
import React from 'react';
import { Route, IndexRoute } from 'react-router';
// Import Container / Components for Routing
import ApplicationLayout from './js/components/ApplicationLayout';
import Welcome from './js/components/Welcome';
import NotFound from './js/components/NotFound';
// Routes
... |
ajax/libs/react-autocomplete/1.2.0/react-autocomplete.min.js | sufuf3/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],e):"object"==typeof exports?exports.ReactAutocomplete=e(require("React"),require("ReactDOM")):t.ReactAutocomplete=e(t.React,t.ReactDOM... |
test/test_helper.js | suemcnab/react-youtube-pxn-open | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
src/components/goals.js | SaintEmbers/relationplex | import React from 'react'
import {Input} from 'react-bootstrap';
// require('./styles/main.css')
import Firebase from 'firebase'
const Goals = React.createClass({
componentWillMount() {
this.firebaseRef = new Firebase("https://awesomejar.firebaseio.com/goals");
console.log('firebase', this.firebaseRef)
},
... |
ajax/libs/angular.js/0.10.1/angular-scenario.js | simevidas/cdnjs | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
app/admin/containers/AddAdminModal.js | in42/internship-portal | import React from 'react';
import axios from 'axios';
import _ from 'lodash';
import PropTypes from 'prop-types';
import AccessControlHeader from '../components/AccessControlHeader';
import Auth from '../../auth/modules/Auth';
class AddAdminModal extends React.Component {
constructor(props, context) {
super(prop... |
lib/svg-icons/hardware/toys.js | domagojk/material-ui | 'use strict';
var React = require('react/addons');
var PureRenderMixin = React.addons.PureRenderMixin;
var SvgIcon = require('../../svg-icon');
var HardwareToys = React.createClass({
displayName: 'HardwareToys',
mixins: [PureRenderMixin],
render: function render() {
return React.createElement(
SvgIc... |
app/components/InlineInputField/index.js | zebbra-repos/Zeiterfassung-medi | /**
*
* InlineInputField
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { MediTheme } from 'utils/theme';
import TextFieldWrapper from './Wrapper';
// input styles
const floatingColor = {
color: MediTheme.palette.accent1Color,
borderColor: MediTheme.palette.accent1Color,
};
class I... |
ajax/libs/react-native-web/0.0.0-ec235e734/cjs/exports/ProgressBar/index.min.js | cdnjs/cdnjs | "use strict";exports.__esModule=!0,exports.default=void 0;var React=_interopRequireWildcard(require("react")),_StyleSheet=_interopRequireDefault(require("../StyleSheet")),_View=_interopRequireDefault(require("../View"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _getRequireWildcard... |
ajax/libs/jquery-mobile/1.3.2/demos/examples/backbone-require/js/libs/jquery.js | remy/cdnjs | /*!
* jQuery JavaScript Library v1.8.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2010, 2013 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time)
*/
(fun... |
assets/main/js/map/markerwithlabel.js | binhhv/job | /**
* @name MarkerWithLabel for V3
* @version 1.1.10 [April 8, 2014]
* @author Gary Little (inspired by code from Marc Ridey of Google).
* @copyright Copyright 2012 Gary Little [gary at luxcentral.com]
* @fileoverview MarkerWithLabel extends the Google Maps JavaScript API V3
* <code>google.maps.Marker</code> cla... |
src/components/__tests__/TimePickerCollapsible.ios.spec.js | Dennitz/Timetable | // @flow
import React from 'react';
import renderer from 'react-test-renderer';
import { shallow } from 'enzyme';
import CollapsibleField from '../CollapsibleField';
import TimePickerCollapsible from '../TimePickerCollapsible.ios';
const props = {
starttime: {
input: {
onChange: jest.fn(),
value: new... |
src/ui/components/RelatoriosSearch.js | dartelvis/zf3 |
import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import {CardActions, FloatingActionButton, CardTitle, CardText, Card, CardHeader, RaisedButton, TextField, MenuItem, GridList, GridTile, AutoComplete } from 'material-ui';
import moment from 'moment';
import ActionSearch f... |
app/react-icons/fa/chain.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaChain extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m34 27.1q0-0.8-0.6-1.5l-4.7-4.6q-0.6-0.6-1.5-0.6-0.9 0-1.6 0.7 0.1 0 0.4 0.4t0... |
src/svg-icons/image/filter-2.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter2 = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-4-4h-4v-2h2c1.1 0 2-.89 ... |
UI/app/utils/SessionTracker.js | Acheron-VAF/Acheron | import React, { Component } from 'react';
import { PluginBase } from 'terminal-in-react';
export default class SessionTracker extends PluginBase {
static displayName = 'PRISM-SessionTracker';
static version = '1.0.0';
static defaultData = '';
static descriptions = {};
static shortcuts = {};
c... |
src/todos/components/Todo.js | jwncoexists/electron-reactjs-mongo-express | //Todo.js
import React, { Component } from 'react';
import style from '../../style';
import CheckBox from 'react-material-icons/icons/toggle/check-box';
import CheckBoxOutline from 'react-material-icons/icons/toggle/check-box-outline-blank';
import Delete from 'react-material-icons/icons/action/delete';
import IconButt... |
pages/guides/testing.js | cherniavskii/material-ui | import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from 'docs/src/pages/guides/testing/testing.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default withRoot(Page)... |
index.js | Sigfried/DqVizTeam | import 'babel-core/polyfill';
import React from 'react';
import ReactDOM, { render } from 'react-dom';
import { Grid, Row, Col, Glyphicon, Button, Panel, ButtonToolbar,
Input, Tabs, Tab } from 'react-bootstrap';
import d3 from 'd3';
//import _ from 'supergroup-es6';
import _ from 'supergroup';
//import _ from... |
src/js/components/icons/base/Splits.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
modules/Redirect.js | Nedomas/react-router | import React from 'react'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { formatPattern } from './PatternUtils'
import { falsy } from './PropTypes'
const { string, object } = React.PropTypes
/**
* A <Redirect> is used to declare another URL path a client should b... |
ajax/libs/phaser/2.0.6/custom/p2.js | wenliang-developer/cdnjs | /**
* The MIT License (MIT)
*
* Copyright (c) 2013 p2.js authors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to ... |
src/routes/ForgotPassword/containers/ForgotPasswordContainer.js | Terrapin-Ticketing/althea | import { connect } from 'react-redux';
const mapDispatchToProps = require('../modules/forgotPassword');
/* This is a container component. Notice it does not contain any JSX,
nor does it import React. This component is **only** responsible for
wiring in the actions and state necessary to render a presentationa... |
node_modules/protractor/node_modules/selenium-webdriver/lib/test/data/js/jquery-1.4.4.min.js | Guillem-db/Yachtum | /*!
* jQuery JavaScript Library v1.4.4
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/client/discover/DiscoverUser.js | busyorg/busy | import React from 'react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import urlParse from 'url-parse';
import { Link } from 'react-router-dom';
import ReputationTag from '../components/ReputationTag';
import Avatar from '../components/Avatar';
import FollowButton from '../widgets/FollowButton';
const... |
client/src/components/landing/components/CampersImage.js | raisedadead/FreeCodeCamp | import PropTypes from 'prop-types';
import React from 'react';
import { useTranslation } from 'react-i18next';
import Media from 'react-responsive';
import wideImg from '../../../assets/images/landing/wide-image.png';
import { Spacer, ImageLoader } from '../../helpers';
const propTypes = {
page: PropTypes.string
};
... |
pages/howtouse.js | elliotec/LnL | import React from 'react';
import ApplicationInstructions from 'components/ApplicationInstructions/ApplicationInstructions';
export default class Howtouse extends React.Component {
render () {
return (
<div>
<ApplicationInstructions />
</div>
)
}
}
|
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ObjectDestructuring.js | matart15/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, { Component } from 'react';
import PropTypes from 'prop-types';
function load() {
return [
{ id: 1, name: '1' },
... |
opp-ui/ui/ext/packages/core/src/util/Scheduler.js | constantcontact/open-performance-platform | /**
* This class is used to bulk schedule a set of `Ext.util.Schedulable` items. The items
* in the scheduler request time by calling their `schedule` method and when the time has
* arrived its `react` method is called.
*
* The `react` methods are called in dependency order as determined by the sorting process.
*... |
src/SplitToggle.js | HPate-Riptide/react-bootstrap | import React from 'react';
import DropdownToggle from './DropdownToggle';
class SplitToggle extends React.Component {
render() {
return (
<DropdownToggle
{...this.props}
useAnchor={false}
noCaret={false}
/>
);
}
}
SplitToggle.defaultProps = DropdownToggle.defaultProps;... |
__tests__/components/Video-test.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React from 'react';
import renderer from 'react-test-renderer';
import Video from '../../src/js/components/Video';
// needed because this:
// https://github.com/facebook/jest/issues/1353
jest.mock('react-dom');
describe('Video', () => {
i... |
admin/src/components/Portal.js | tanbo800/keystone | import React from 'react';
module.exports = React.createClass({
displayName: 'Portal',
render: () => null,
portalElement: null,
componentDidMount() {
var p = this.props.portalId && document.getElementById(this.props.portalId);
if (!p) {
var p = document.createElement('div');
if (this.props.portalId) {
... |
src/components/Navbar.js | mick842/rental-cars-client | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { AppBar, IconButton, MenuItem, Drawer, Divider, FlatButton } from 'material-ui';
import {
ActionAccountBox, ActionHome, ActionInput,
SocialPersonAdd, ActionCode,
ActionHighlightOff, ContentAddCircle
} from 'material-ui/svg-... |
assets/javascripts/kitten/components/graphics/icons/waiting-icon/index.js | KissKissBankBank/kitten | import React from 'react'
import PropTypes from 'prop-types'
export const WaitingIcon = ({ color, title, ...props }) => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 13 3"
width="13"
height="3"
{...props}
>
{title && <title>{title}</title>}
<path
... |
app/components/HowDoes3Diagram.js | gidich/votrient-kiosk | import React, { Component } from 'react';
import { browserHistory } from 'react-router';
import styles from './HowDoes3Diagram.css';
export default class HowDoes3Diagram extends Component {
render() {
return (
<div className={styles.container}>
<div className={styles.close} onClick={browserHistor... |
Libraries/Components/TextInput/TextInput.js | imDangerous/react-native | /**
* Copyright (c) 2015-present, 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.
*
* @provides... |
ajax/libs/foundation/3.2.2/javascripts/foundation.min.js | Pranay92/cdnjs | /* Modernizr 2.6.2 (Custom Build) | MIT & BSD
* Build: http://modernizr.com/download/#-inlinesvg-svg-svgclippaths-touch-shiv-mq-cssclasses-teststyles-prefixes-ie8compat-load
*/
window.Modernizr=function(e,t,n){function r(e){d.cssText=e}function i(e,t){return r(g.join(e+";")+(t||""))}function s(e,t){return typeof e===... |
source/client.js | jchavezjs/platzi-react | import React from 'react';
import { render } from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import { Provider } from 'react-redux';
import Page from './pages/containers/Page.jsx';
import store from './store';
render(
<Provider store={store}>
<BrowserRouter>
<Page />
... |
node_modules/material-ui/svg-icons/social/person-outline.js | SerendpityZOEY/Solr-Search-React-UI | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
app/scripts/__tests__/itemlist-test.js | fuaditrockz/teleport-frontend | // __tests__/itemlist-test.js
jest.dontMock('../components/itemList.jsx');
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
let ItemList = require('../components/itemList.jsx');
describe('item list', function() {
it('displays three items with right tex... |
node_modules/@babel/plugin-transform-react-jsx-self/lib/index.js | jpoeng/jpoeng.github.io | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _helperPluginUtils = require("@babel/helper-plugin-utils");
var _core = require("@babel/core");
const TRACE_ID = "__self";
var _default = (0, _helperPluginUtils.declare)(api => {
api.assertVersion(7);
c... |
src/babel/transformation/helpers/build-react-transformer.js | tav/mu-babel | // Based upon the excellent jsx-transpiler by Ingvar Stepanyan (RReverser)
// https://github.com/RReverser/jsx-transpiler
// jsx
import isString from "lodash/lang/isString";
import * as messages from "../../messages";
import esutils from "esutils";
import * as react from "./react";
import * as t from "../../types";
... |
docs/app/Examples/elements/Icon/Groups/IconExampleTwitterGroup.js | clemensw/stardust | import React from 'react'
import { Header, Icon } from 'semantic-ui-react'
const IconExampleTwitterGroup = () => (
<Header as='h2'>
<Icon.Group size='large'>
<Icon name='twitter' />
<Icon corner name='add' />
</Icon.Group>
Add on Twitter
</Header>
)
export default IconExampleTwitterGroup
|
native/app/components/Snackbar.js | cedricium/notes | /* @flow */
import * as React from 'react';
import {
StyleSheet,
Animated,
Text,
View,
TouchableWithoutFeedback,
} from 'react-native';
import withTheme from 'react-native-paper/src/core/withTheme';
import { white } from 'react-native-paper/src/styles/colors';
import type { Theme } from 'react-native-paper... |
ajax/libs/rxjs/2.2.22/rx.js | nolsherry/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/decorators/withViewport.js | YumboRumbo/FlashCard | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = { width: 1366, height: 768 }; // Default ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.