target stringlengths 5 300 | feat_repo_name stringlengths 6 76 | text stringlengths 26 1.05M |
|---|---|---|
app/javascript/src/components/conversations/QuickReplyDialog.js | michelson/chaskiq | import React from 'react'
import { connect } from 'react-redux'
import { successMessage, errorMessage } from '../../actions/status_messages'
import FormDialog from '../FormDialog'
import Button from '../Button'
import graphql from '../../graphql/client'
import {
QUICK_REPLY_CREATE
} from '../../graphql/mutations'
f... |
storybook/stories/button.story.js | imomix/mastodon | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import Button from 'mastodon/components/button';
storiesOf('Button', module)
.add('default state', () => (
<Button text='submit' onClick={action('clicked')} />
))
.add('secondary', () =... |
src/components/Common/PublicationInfo/index.js | LifeSourceUA/lifesource.ua | /**
* [IL]
* Library Import
*/
import React, { Component } from 'react';
import { connect } from 'react-redux';
/**
* [IV]
* View Import
*/
import Common from './Views/Common';
/**
* [ICONF]
* Config Import
*/
import config from './config';
/**
* [IRDX]
* Redux connect (optional)
*/
@connect((state) => {... |
js/vendor/contrib/libs/jquery-ui/tests/jquery-1.8.0.js | khalid-s/psa-recovery | /*!
* jQuery JavaScript Library v1.8.0
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Thu Aug 09 2012 16:24:48 GMT-0400 (Eastern Daylight Time)
*/
(function(... |
packages/material-ui-icons/lib/esm/Slideshow.js | mbrookes/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M10 8v8l5-4-5-4zm9-5H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"
}), 'Slideshow'); |
node_modules/react-native/Libraries/CustomComponents/Navigator/Navigator.js | nauman-ahmad-qureshi/adsManagement | /**
* 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.
*
* Facebook,... |
demo/index.js | CezaryDanielNowak/React-dotdotdot | import React from 'react';
import ReactDOM from 'react-dom';
import Dotdotdot from 'react-dotdotdot'
class App extends React.Component {
render() {
return (
<div>
<div>
This page is clamped version of: <a href="https://codepen.io/carolynmcneillie/pen/Lewxrm" target="_blank">Codepen</a>
... |
front-end/app/components/category/Display_category_component.js | akumbhani66/cantaloupe | import {BootstrapTable, TableHeaderColumn} from 'react-bootstrap-table';
import React, {Component} from 'react';
import { Link } from 'react-router'
import axios from 'axios';
import Select from 'react-select';
import 'react-select/dist/react-select.css';
import './styles.css';
function Validator(value){
if(!value){
... |
app/javascript/flavours/glitch/features/follow_requests/components/account_authorize.js | glitch-soc/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Permalink from 'flavours/glitch/components/permalink';
import Avatar from 'flavours/glitch/components/avatar';
import DisplayName from 'flavours/glitch/components/display_name';
import IconB... |
ajax/libs/react-native-web/0.0.0-e886427e3/exports/createElement/index.js | cdnjs/cdnjs | /**
* Copyright (c) Nicolas Gallagher.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
*/
import AccessibilityUtil from '../../modules/AccessibilityUtil';
import createDOMProps from '../../modules/createDOMProps';
import React fro... |
packages/material-ui-icons/src/DirectionsBoatRounded.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="M20 21c-1.29 0-2.58-.41-3.74-1.14-.16-.1-.37-.1-.53 0-2.31 1.47-5.16 1.47-7.47 0-.16-.1-.37-.1-.53 0C6.58 20.59 5.29 21 4 21H3c-.55 0-1 .45-1 1s... |
app/javascript/mastodon/features/compose/components/warning.js | imas/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
export default class Warning extends React.PureComponent {
static propTypes = {
message: PropTypes.node.isRequired,
};
render () {
const { mes... |
ajax/libs/react-router/0.8.0/react-router.min.js | cgvarela/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;return functi... |
test/integration/css/fixtures/url-global/pages/_app.js | BlancheXu/test | import React from 'react'
import App from 'next/app'
import '../styles/global1.css'
import '../styles/global2.css'
class MyApp extends App {
render () {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
src/js/components/ui/reduxForm/DropdownSelect.js | knowncitizen/tripleo-ui | /**
* Copyright 2017 Red Hat 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 applicable law or agreed to... |
src/js/main.js | TheFixers/node-honeypot-client | import App from './components/app'
import React from 'react'
import ReactDOM from 'react-dom'
ReactDOM.render(<App />, document.getElementById('app'))
|
ajax/libs/ui-router-extras/0.0.10/ct-ui-router-extras.min.js | joeyparrish/cdnjs | /*! ui-router-extras - v0.0.10 - 2014-08-27 */!function(window,angular,undefined){function ancestors(first,second){var path=[];for(var n in first.path){if(first.path[n]!==second.path[n])break;path.push(first.path[n])}return path}function objectKeys(object){if(Object.keys)return Object.keys(object);var result=[];return ... |
modules/IndexLink.js | yongxu/react-router | import React from 'react';
import { component } from './PropTypes';
import Link from './Link';
var IndexLink = React.createClass({
render() {
return <Link {...this.props} onlyActiveOnIndex={true} />
}
});
export default IndexLink;
|
packages/material-ui-icons/src/LocalShippingSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M20 8h-3V4H1v13h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm13.5-8.5l1.96 2.5H17V9.5h2.5zM18 18c-.55 0-1-.45-1-1s.45-1... |
src/front/app/features/auth/components/LoginButton.integration.spec.js | travel-and-help/start-kit | import React from 'react';
import { mount } from 'enzyme';
import LoginButton from './LoginButton';
describe('auth LoginButton', () => {
let text,
onClick,
wrapper;
beforeEach(() => {
onClick = env.stub();
text = 'test Button Text';
wrapper = mount(<LoginButton text={t... |
app/containers/EntitiesList/index.js | chenhunghan/deleuzian-affection-image | /*
*
* EntitiesList
*
*/
import React from 'react';
import { connect } from 'react-redux';
import { selectEntitiesList, selectCluster } from './selectors';
import styles from './styles.css';
import {changeHighlightEntity} from './actions'
import {GET_EMOTION_REQUESTED} from '../EntitiesList/constants'
import flatt... |
ajax/libs/yui/3.9.1/datatable-core/datatable-core-debug.js | hibrahimsafak/cdnjs | YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@since 3.5.0
**/
var INVALID = Y.Attribute.INVALID_VALUE,
Lang = Y.Lang,
isFunction = Lang.isFunction,
isObject = Lang.isO... |
src/example/target.js | react-entanglement/web-storage-adapter | import React from 'react'
import { render } from 'react-dom'
import Entanglement from 'react-entanglement'
import adapter from '../index'
import MagicForm from './components/MagicForm'
const MaterializedMagicForm = Entanglement.materialize({
name: 'MagicForm',
constructor: MagicForm
})
render(
<Entanglement ada... |
src/main/webapp/static/jquery-validation/1.11.1/lib/jquery-1.7.2.js | linkaitao/toceanCRM | /*!
* jQuery JavaScript Library v1.7.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/Task/TaskList.js | mkermani144/wanna | import React, { Component } from 'react';
import Subheader from 'material-ui/Subheader';
import Divider from 'material-ui/Divider';
import Snackbar from 'material-ui/Snackbar';
import CSSTransitionGroup from 'react-addons-css-transition-group';
import {
red500,
green500,
blue500,
purple500,
} from 'material-ui/... |
src/main.js | maxigimenez/figme | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import SearchReducer from './reducers/search';
import Search from './components/search/search';
import List from './... |
src/interface/news/Page.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import articles from 'articles';
import DocumentTitle from 'interface/DocumentTitle';
import ArticleLoader from './ArticleLoader';
import './News.scss';
class Page extends React.PureComponent {
static propTypes ... |
src/error/index.js | crosslandwa/chippanfire-site | import React from 'react'
import PageTemplate from '../PageTemplate'
const Error = props => (
<PageTemplate>
<h1 className="cpf-header">Not Found</h1>
<p>Oh no! What you're looking for is not here. Maybe you followed an old link.</p>
<p>Try using the navigation above to find what you were after...</p>
... |
src/destinations/Slides.js | RoyalIcing/gateau | import R from 'ramda'
import React from 'react'
import seeds, { Seed } from 'react-seeds'
import { Spectacle, Deck, Slide, Text } from 'spectacle'
import * as Vanilla from './Vanilla'
import { renderTreeUsing } from './render'
const text = (tag, mentions, text) => (
<Text children={ text } />
)
const elementRendere... |
frontend/src/javascripts/stores/TrashStore.js | funaota/notee | import React from 'react';
import assign from 'object-assign';
import request from 'superagent';
var EventEmitter = require('events').EventEmitter;
// notee
import NoteeDispatcher from '../dispatcher/NoteeDispatcher';
import Constants from '../constants/NoteeConstants';
// utils
import EventUtil from '../utils/EventU... |
sites/default/files/js/simplemenu-d9256fda96c0b8eaa8e20bcfad057096.js | condesan/camino | var simplemenu="\x3cdiv class=\"simplemenu-block\"\x3e\x3cul class=\"menu clear-block\" id=\"simplemenu\"\x3e\x3cli class=\"expanded first\" id=\"simplemenu-li-0\"\x3e\x3ca name=\"menu-id-1\"\x3eDevel module\x3c/a\x3e\x3cul class=\"menu\"0\x3e\x3cli class=\"leaf first\" id=\"simplemenu-li-146\"\x3e\x3ca href=\"/camino/... |
src/components/SidebarMenuProfile/SidebarMenuProfile.js | dialogs/dialog-web-components | /*
* Copyright 2019 dialog LLC <info@dlg.im>
* @flow
*/
import type { AvatarPlaceholder, UserStatusType } from '@dlghq/dialog-types';
import React, { PureComponent } from 'react';
import classNames from 'classnames';
import Avatar from '../Avatar/Avatar';
import { PeerInfoTitle } from '../PeerInfoTitle/PeerInfoTitl... |
src/index.js | tomvej/redux-starter | import React from 'react';
import {render} from 'react-dom';
import {hot} from 'react-hot-loader';
import Root from './Root';
const App = hot(module)(Root);
render(
<App />,
document.getElementById('content'),
);
|
src/svg-icons/action/settings-input-svideo.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsInputSvideo = (props) => (
<SvgIcon {...props}>
<path d="M8 11.5c0-.83-.67-1.5-1.5-1.5S5 10.67 5 11.5 5.67 13 6.5 13 8 12.33 8 11.5zm7-5c0-.83-.67-1.5-1.5-1.5h-3C9.67 5 9 5.67 9 6.5S9.67 8 10.5 8h... |
src/svg-icons/av/games.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvGames = (props) => (
<SvgIcon {...props}>
<path d="M15 7.5V2H9v5.5l3 3 3-3zM7.5 9H2v6h5.5l3-3-3-3zM9 16.5V22h6v-5.5l-3-3-3 3zM16.5 9l-3 3 3 3H22V9h-5.5z"/>
</SvgIcon>
);
AvGames = pure(AvGames);
AvGames.dis... |
ajax/libs/vkui/4.25.2/cjs/components/Epic/ScrollSaver.min.js | cdnjs/cdnjs | "use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard").default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.ScrollSaver=void 0;var _jsxRuntime=require("../../lib/jsxRuntime"),React=_interopRequireWildcard(require("react")),_ScrollContext=require("../AppRoot/S... |
examples/huge-apps/routes/Course/routes/Grades/components/Grades.js | barretts/react-router | import React from 'react';
class Grades extends React.Component {
render () {
var assignments = COURSES[this.props.params.courseId].assignments;
return (
<div>
<h3>Grades</h3>
<ul>
{assignments.map(assignment => (
<li key={assignment.id}>{assignment.grade} - {assi... |
app/containers/PrimaryBlock/EditBlock.js | klpdotorg/tada-frontend | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import get from 'lodash.get';
import isEmpty from 'lodash.isempty';
import FRC from 'formsy-react-components';
import Formsy from 'formsy-react';
import { Confirm } from '../Modal';
import {
modifyBo... |
app/javascript/mastodon/components/avatar_composite.js | NS-Kazuki/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... |
test/components/Test.js | loggur/provide-id-gen | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import TestItem from './TestItem';
export default class Test extends Component {
static propTypes = {
genTestId: PropTypes.func.isRequired
};
render() {
return (
<div className="test">
<button onClick={this.props... |
app/javascript/flavours/glitch/features/generic_not_found/index.js | im-in-space/mastodon | import React from 'react';
import Column from 'flavours/glitch/features/ui/components/column';
import MissingIndicator from 'flavours/glitch/components/missing_indicator';
const GenericNotFound = () => (
<Column>
<MissingIndicator fullPage />
</Column>
);
export default GenericNotFound;
|
src/Grid/GridItem.spec.js | collegepulse/material-react-components | /* eslint-env mocha */
import assert from 'assert';
import React from 'react';
import {createMount, createTest} from '../../test/utils';
import variables from '../variables';
import GridItem from './GridItem';
describe('GridItem', () => {
let mount;
beforeEach(() => {
mount = createMount();
});
afterEac... |
app/javascript/flavours/glitch/features/domain_blocks/index.js | glitch-soc/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debounce } from 'lodash';
import PropTypes from 'prop-types';
import LoadingIndicator from '../../components/loading_indicator';
import Column from '../ui/components/column';
import Col... |
ReactFlux/node_modules/react/lib/cx.js | wandarkaf/React-Bible | /**
* 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.
*
* @providesModule ... |
app/javascript/mastodon/main.js | ambition-vietnam/mastodon | import * as registerPushNotifications from './actions/push_notifications';
import { default as Mastodon, store } from './containers/mastodon';
import React from 'react';
import ReactDOM from 'react-dom';
import ready from './ready';
const perf = require('./performance');
function main() {
perf.start('main()');
i... |
src/pages/404.js | prodigygod0209/prodigygod0209.github.io | import React from 'react'
const NotFoundPage = () => (
<div>
<h1>NOT FOUND</h1>
<p>You just hit a route that doesn't exist... the sadness.</p>
</div>
)
export default NotFoundPage
|
ajax/libs/yui/3.7.1/datatable-body/datatable-body-coverage.js | chriszarate/cdnjs | if (typeof _yuitest_coverage == "undefined"){
_yuitest_coverage = {};
_yuitest_coverline = function(src, line){
var coverage = _yuitest_coverage[src];
if (!coverage.lines[line]){
coverage.calledLines++;
}
coverage.lines[line]++;
};
_yuitest_coverfunc = functio... |
src/__tests__/readonly-array.js | brigand/babel-plugin-flow-react-proptypes | const babel = require('babel-core');
const content = `
import React from 'react';
type Props = {
foo: $ReadOnlyArray<number>,
};
class ReadOnlyArrayTest extends React.Component<Props> {}
`;
it('generic-array', () => {
const res = babel.transform(content, {
babelrc: false,
presets: ['@babel/env', '@babel/... |
src/components/Grid/Row.js | aos2006/tesDeploy | import React from 'react';
import { Row } from 'react-flexbox-grid';
export default props => <Row {...props} />;
|
examples/redux-firestore/src/components/SetupMessaging/SetupMessaging.js | prescottprue/generator-react-firebase | import React from 'react'
import firebase from 'firebase/app'
import 'firebase/messaging'
import useSetupMessaging from './useSetupMessaging'
function LoadMessaging() {
const { initializeMessaging } = useSetupMessaging()
initializeMessaging()
return null
}
function SetupMessaging() {
const user = firebase.aut... |
client/utils/checkAuth.js | andela-jmacharia/hati-DMS | import React from 'react';
import { connect } from 'react-redux';
export default function(ComposedComponent) {
class Authenticate extends React.Component {
componentWillMount() {
if (!this.props.isAuthenticated) {
this.context.router.push('/home');
}
}
componentWillUpdate(nextProps) ... |
client/modules/users/components/invitationsList.js | johngonzalez/abcdapp | import React from 'react';
import {ListGroup, ListGroupItem} from 'react-bootstrap';
import NewTeacher from '../containers/newTeacher';
const InvitationsList = ({invitations}) => (
<div>
<ListGroup>
{
invitations && invitations.length > 0 ?
invitations.map((i) => (
<ListGroupItem ... |
app/components/Landing.js | hsin421/tacec-2017 | import React from 'react';
import Appbar from 'muicss/lib/react/appbar';
import Button from 'muicss/lib/react/button';
import Container from 'muicss/lib/react/container';
import Divider from 'muicss/lib/react/divider';
import Row from 'muicss/lib/react/row';
import Col from 'muicss/lib/react/col';
import { Link } from... |
docs/app/Examples/elements/Rail/Variations/index.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const RailVariationsExamples = () => (
<ExampleSection title='Variations'>
<ComponentExample
title='Attached'
descri... |
client/util/react-intl-test-helper.js | buermo/bembox | /**
* Components using the react-intl module require access to the intl context.
* This is not available when mounting single components in Enzyme.
* These helper functions aim to address that and wrap a valid,
* English-locale intl context around them.
*/
import React from 'react';
import { IntlProvider, intlSha... |
ajax/libs/react/0.10.0/react-with-addons.min.js | melvinsembrano/cdnjs | /**
* React (with addons) v0.10.0
*
* Copyright 2013-2014 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 r... |
src/scripts/views/header.js | IronNation/NCI-trial-search | import React from 'react'
class Header extends React.Component {
render() {
return (
<div className = 'header'>
<h1>Welcome to DTST!</h1>
<p>Search for a clinical drug trial near you!</p>
<Navigation />
</div>
)
}
}
c... |
node_modules/babel-plugin-react-transform/test/fixtures/options-with-imports-with-render-method/expected.js | Kgiberson/welp | import _reactDom from "react-dom";
import _react from "react";
import _transformLib from "transform-lib";
const _components = {
Foo: {
displayName: "Foo"
}
};
const _transformLib2 = _transformLib({
filename: "%FIXTURE_PATH%",
components: _components,
locals: [],
imports: [_react, _reactDom]
});
functi... |
project-templates/reactfiber/externals/react-fiber/fixtures/ssr/server/render.js | ItsAsbreuk/itsa-cli | import React from 'react';
import {renderToString} from 'react-dom/server';
import App from '../src/components/App';
let assets;
if (process.env.NODE_ENV === 'development') {
// Use the bundle from create-react-app's server in development mode.
assets = {
'main.js': '/static/js/bundle.js',
'main.css': '',... |
src/svg-icons/notification/sync.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSync = (props) => (
<SvgIcon {...props}>
<path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25... |
ajax/libs/material-ui/5.0.0-alpha.12/esm/Backdrop/Backdrop.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import withStyles from '../styles/withStyles';
import Fade from '../Fade';
ex... |
jspm_packages/npm/react-router@2.6.1/es6/RoutingContext.js | Imms/imms.github.io | /* */
"format cjs";
import React from 'react';
import RouterContext from './RouterContext';
import warning from './routerWarning';
var RoutingContext = React.createClass({
displayName: 'RoutingContext',
componentWillMount: function componentWillMount() {
process.env.NODE_ENV !== 'production' ? warning(false, ... |
ajax/libs/zeroclipboard/2.0.0-beta.6/ZeroClipboard.js | kartikrao31/cdnjs | /*!
* ZeroClipboard
* The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.
* Copyright (c) 2014 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v2.0.0-beta.6
*/
(function(window, undefined) {
"use s... |
packages/material-ui-icons/src/ChildCareRounded.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><circle cx="14.5" cy="10.5" r="1.25" /><circle cx="9.5" cy="10.5" r="1.25" /><path d="M16.1 14H7.9c-.19 0-.32.2-.23.37C8.5 15.94 10.13 17 12 17s3.5-1.06 ... |
app/javascript/mastodon/features/ui/components/media_modal.js | 3846masa/mastodon | import React from 'react';
import LoadingIndicator from '../../../components/loading_indicator';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ExtendedVideoPlayer from '../../../components/extended_video_player';
import ImageLoader from 'react-imageloader';
impor... |
lib/cli/generators/REACT_SCRIPTS/template/src/stories/index.js | enjoylife/storybook | /* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */
import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { linkTo } from '@storybook/addon-links';
import Button from './Button';
import Welcome fr... |
src/svg-icons/av/featured-video.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFeaturedVideo = (props) => (
<SvgIcon {...props}>
<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-2zm-9 9H3V5h9v7z"/>
</SvgIcon>
);
AvFeaturedVideo = pure(AvFeaturedVideo)... |
resources/_assets/svg/LogoAndrewTJohnston.js | AndrewTJohnston/andrewtjohnston.com | // Returns SVG of the AndrewTJohnston logo
import React from 'react'
export default React.createClass({
render() {
var transform = "translate(" + this.props.deltax + "," + this.props.deltay + ") scale(" + this.props.scale + ")";
return (
<svg version="1.1" viewBox="0 0 1000 1000" preserveAspectRatio=... |
src/components/topic/header.js | nickhsine/twreporter-react | import { Link } from 'react-router-dom'
import mq from '../../utils/media-query'
import React from 'react'
import SearchBox from './search-box'
import styled from 'styled-components'
import WhiteDonationIcon from '../../../static/asset/white-donation-icon.svg'
import WhiteLogoIcon from '../../../static/asset/logo-white... |
src/components/Modal/ModalHeader.js | nolawi/champs-dialog-sg | /**
* Copyright 2017 dialog LLC <info@dlg.im>
* @flow
*/
import React from 'react';
import classNames from 'classnames';
import styles from './Modal.css';
export type Props = {
className?: string,
withBorder?: boolean,
children?: React.Element<any>
};
function ModalHeader(props: Props): React.Element<any> {... |
ajax/libs/primereact/6.5.1/editor/editor.esm.js | cdnjs/cdnjs | import React, { Component } from 'react';
import { classNames } from 'primereact/core';
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
function _defineProperties(target, props) {
for (var i = 0; i < pr... |
app/javascript/mastodon/components/collapsable.js | alarky/mastodon | import React from 'react';
import Motion from 'react-motion/lib/Motion';
import spring from 'react-motion/lib/spring';
import PropTypes from 'prop-types';
const Collapsable = ({ fullHeight, isVisible, children }) => (
<Motion defaultStyle={{ opacity: !isVisible ? 0 : 100, height: isVisible ? fullHeight : 0 }} style=... |
src/svg-icons/device/signal-cellular-connected-no-internet-2-bar.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularConnectedNoInternet2Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M14 22V10L2 22h12zm6-12v8h2v-8h-2zm0 12h2v-2h-2v2z"/>
</SvgIcon>
);
Devi... |
node_modules/react-bootstrap/es/Modal.js | joekay/awebb | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import _extends from... |
src/routes/account/index.js | terryli1643/daoke-react-c | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'dva'
import { Row, Col } from 'antd'
import { routerRedux } from 'dva/router'
const Account = ({ dispatch, app }) => {
const { user } = app
const goAddressbook = (type) => {
dispatch(
routerRedux.push({
pathnam... |
ajax/libs/highcharts/4.1.9/highcharts.src.js | dlueth/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highcharts JS v4.1.9 (2015-10-07)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clear... |
src/svg-icons/action/zoom-in.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionZoomIn = (props) => (
<SvgIcon {...props}>
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 1... |
build/js/observe-sequence.js | CapsuleCat/OfflineChatRoomExample | //////////////////////////////////////////////////////////////////////////
// //
// This is a generated file. You can view the original //
// source in your browser if your browser supports source maps. //
// Source maps are s... |
test/PopoverSpec.js | apisandipas/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Popover from '../src/Popover';
describe('Popover', function () {
it('Should output a popover title and content', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Popover title="Popover title">
<... |
Redux-Weather/src/containers/searchBar.js | vivekbharatha/ModernReactWithReduxCourseUdemy | 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.onIn... |
stories/Welcome.js | OperationCode/operationcode_frontend | import React from 'react';
const styles = {
main: {
margin: 15,
maxWidth: 600,
lineHeight: 1.4,
fontFamily: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif',
},
logo: {
width: 200,
},
link: {
color: '#1474f3',
textDecoration: 'none',
borderBottom: '1px ... |
app/javascript/mastodon/features/explore/links.js | musashino205/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Story from './components/story';
import LoadingIndicator from 'mastodon/components/loading_indicator';
import { connect } from 'react-redux';
import { fetchTrendingLinks } from 'mastodon/act... |
packages/material-ui-icons/src/CallSplit.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let CallSplit = props =>
<SvgIcon {...props}>
<path d="M14 4l2.29 2.29-2.88 2.88 1.42 1.42 2.88-2.88L20 10V4zm-4 0H4v6l2.29-2.29 4.71 4.7V20h2v-8.41l-5.29-5.3z" />
</SvgIcon>;
CallSplit = pure(CallSplit);
... |
files/domcom/0.5.2/domcom.min.js | as-com/jsdelivr | !function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return t[i].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="/assets/",e(0)}([function(t,e,n){var i,r;t.exports=i=n(2),"undefined"!=typeof window&&(window.dc=i),i.DomNode=n(4),i.extend=r=n(3... |
packages/my-joy-images/src/mocks/theme.js | geek/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... |
src/screens/Shared/RelatedIllusts.js | alphasp/pxview | import React, { Component } from 'react';
import { View, StyleSheet, InteractionManager } from 'react-native';
import { connect } from 'react-redux';
import { connectLocalization } from '../../components/Localization';
import IllustList from '../../components/IllustList';
import IllustItem from '../../components/Illust... |
src/svg-icons/device/storage.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceStorage = (props) => (
<SvgIcon {...props}>
<path d="M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"/>
</SvgIcon>
);
DeviceStorage = pure(DeviceStorage);
DeviceS... |
examples/react/src/players/FullControl.js | thangngoc89/react-howler | import React from 'react'
import ReactHowler from 'ReactHowler'
import raf from 'raf' // requestAnimationFrame polyfill
import Button from '../components/Button'
class FullControl extends React.Component {
constructor (props) {
super(props)
this.state = {
playing: false,
loaded: false,
loo... |
flow-typed/npm/babel-plugin-flow-runtime_vx.x.x.js | amilajack/compat-db | // flow-typed signature: 37efe00f0076b72e21d93eb1f00dc237
// flow-typed version: <<STUB>>/babel-plugin-flow-runtime_v^0.18.0/flow_v0.94.0
/**
* This is an autogenerated libdef stub for:
*
* 'babel-plugin-flow-runtime'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage y... |
src/components/common/svg-icons/image/crop-din.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropDin = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z"/>
</SvgIcon>
);
ImageCropDin = pure(ImageCropDin);
Image... |
test/CollapsibleMixinSpec.js | IveWong/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import CollapsibleMixin from '../src/CollapsibleMixin';
import classNames from 'classnames';
describe('CollapsibleMixin', function () {
let Component, instance;
beforeEach(function(){
Component = React.createClass({
mixin... |
source/client/components/UserLogin.js | achobanov/ReactJS-Fundamentals-lab | import React from 'react';
import UserActions from '../actions/UserActions';
import FormActions from '../actions/FormActions';
import FormStore from '../stores/FormStore';
import Form from './form/Form';
import TextGroup from './form/TextGroup';
import Submit from './form/Submit';
export default class UserLogi... |
packages/icons/src/md/action/Toll.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdToll(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M6 24c0-5.22 3.34-9.65 8-11.3V8.52C7.1 10.3 2 16.55 2 24c0 7.45 5.1 13.7 12 15.48V35.3C9.34 33.65 6 29.22 6 24zM30 8c8.84 0 16 7.16 16 16s-7.16 16-16 16... |
clients/packages/admin-client/src/community/components/dns/dns-preview/subdomain-preview.js | nossas/bonde-client | import PropTypes from 'prop-types'
import React from 'react'
const SubdomainPreview = ({ subdomain, menuComponent: MenuComponent, checked }) => (
<div className='table-row'>
<div className='wrapper'>
<div className='text' style={{ width: 30 }}>
<span className={`circle${checked ? ' checked' : ''}`}... |
app/javascript/mastodon/components/autosuggest_input.js | yukimochi/mastodon | import React from 'react';
import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container';
import AutosuggestEmoji from './autosuggest_emoji';
import AutosuggestHashtag from './autosuggest_hashtag';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from... |
index.android.js | githubhaohao/DevNews | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Navigator,
BackAndroid,
ToastAndroid,
StatusBar,
} from 'react-native';
import Home from './components/Home... |
lib/components/chrome/ChromePointerCircle.js | shaunstanislaus/react-color | 'use strict';
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProp... |
ajax/libs/react-router/0.9.4/react-router.js | ematsusaka/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-icons/legacy/Battery20TwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M7 17v3.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V17H7z" /><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V17h10V5.33z" /></React... |
app/javascript/mastodon/features/compose/components/upload_progress.js | h3zjp/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import Icon from 'mastodon/components/icon';
export default class UploadProgress extends React.PureComponent {
static propTypes = {
active: PropTypes.b... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.