path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/ajv/5.3.0/regenerator.min.js | holtkamp/cdnjs | /* regenerator 0.10.0: Source transformer enabling ECMAScript 6 generator functions (yield) in JavaScript-of-today (ES5) */
require=function e(t,r,n){function i(a,o){if(!r[a]){if(!t[a]){var u="function"==typeof require&&require;if(!o&&u)return u(a,!0);if(s)return s(a,!0);var l=new Error("Cannot find module '"+a+"'");th... |
packages/material-ui-icons/src/DesktopMacRounded.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7l-1.63 2.45c-.44.66.03 1.55.83 1.55h5.6c.8 0 1.28-.89.83-1.55L14 18h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 12H3V5c0-.55.45-1 1-1h16c.55 0 1 .45 ... |
app/admin/components/post/SubmitPostForm.js | sagnikm95/internship-portal | import React from 'react';
import { Form, Button, Message, Label } from 'semantic-ui-react';
import PropTypes from 'prop-types';
import _ from 'lodash';
import './styles.scss';
const SubmitPostForm = ({
onSubmit, onChange, errors, internshipDetails,
}) => (
<div className="submit-post-form-container">
{_.has(... |
ajax/libs/react-dom/15.5.0/react-dom-server.min.js | BenjaminVanRyseghem/cdnjs | /**
* ReactDOMServer v15.5.0
*
* Copyright 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 d... |
src/client/components/base/Term/Term.js | DBCDK/content-first | import React from 'react';
import PropTypes from 'prop-types';
import './Term.css';
const Term = ({
Tag = 'button',
size = 'large',
children,
className,
...props
}) => {
return (
<Tag className={`${className || ''} btn Term Term__${size}`} {...props}>
{children}
</Tag>
);
};
Term.propTypes... |
modules/RouteUtils.js | tylermcginnis/react-router | import React from 'react'
function isValidChild(object) {
return object == null || React.isValidElement(object)
}
export function isReactChildren(object) {
return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild))
}
function createRoute(defaultProps, props) {
return { ...defaultProps... |
web/components/FlatrisGame/controls/PortraitControls.js | skidding/flatris | // @flow
import React, { Component } from 'react';
import { connect } from 'react-redux';
import {
moveLeft,
moveRight,
rotate,
enableAcceleration,
disableAcceleration,
} from '../../../actions/game';
import { withSocket } from '../../socket/SocketConnect';
import { isPlayer, allPlayersReady } from 'shared/r... |
zanata-editor/src/app/components/TransUnitSourcePanel.js | Halcom/zanata-server | import React, { PropTypes } from 'react'
import TransUnitSourceHeader from './TransUnitSourceHeader'
import Icon from './Icon'
import IconButton from './IconButton'
/**
* Panel for the source of the selected phrase
*/
const TransUnitSourcePanel = React.createClass({
propTypes: {
phrase: PropTypes.object.isReq... |
packages/docs/pages/plugin/hashtag/index.js | draft-js-plugins/draft-js-plugins | // eslint-disable-next-line import/no-unresolved
// eslint-disable-next-line import/no-duplicates
import customExampleCode from '!!raw-loader!../../../components/Examples/hashtag/CustomHashtagEditor';
// eslint-disable-next-line import/no-unresolved
import customExampleEditorStylesCode from '!!raw-loader!../../../compo... |
src/routes/algorithms/index.js | loganfreeman/react-is-fun | import React from 'react';
import Algorithms from './Algorithms';
export default {
path: '/algorithms',
action() {
let algorithms = {
sorting: [{
label: 'insertion',
text: 'Insertion Sort'
}, {
label: 'selection',
text: 'Selection Sort'
}, {
label: 'bu... |
ajax/libs/video.js/4.11.3/video.dev.js | baig/cdnjs | /**
* @fileoverview Main function src.
*/
// HTML5 Shiv. Must be in <head> to support older browsers.
document.createElement('video');
document.createElement('audio');
document.createElement('track');
/**
* Doubles as the main function for users to create a player instance and also
* the main library object.
*
... |
ajax/libs/zeroclipboard/2.1.5/ZeroClipboard.Core.js | vdurmont/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.1.5
*/
(function(window, undefined) {
"use strict";... |
src/components/Page/Page.js | townmi/ReactExamples | /**
*
*/
import React, { Component } from 'react';
class Page extends Component {
constructor(props) {
super(props);
}
action(index) {
// if( Object.prototype.toString.call(cell) === "[object String]" && (self.lastPage && cell === "next" || self.page === 1 && cell === "prev")) {
... |
src/media/js/addon/components/slugChange.js | mozilla/marketplace-submission | import React from 'react';
import ConfirmButton from '../../site/components/confirmButton';
/**
* Controls to change an add-on slug.
*
* isChange denotes when the user has begun the process of changing the slug.
* isProcessing denotes when the API action is underway.
*/
export default class SlugChange extends R... |
src/components/TextInputBEM/TextInputBEM.js | thomashoggard/ps-react-tom | import React from 'react';
import PropTypes from 'prop-types';
import Label from '../Label';
/** Text input with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */
function TextInput({htmlId, name, label, type = "text", required = false, onChange, placehold... |
apps/dashboard/components/NavBar/index.js | chengethem/fangxia_WIT | import React, { Component } from 'react';
import { List, ListItem, makeSelectable } from 'material-ui/List';
import styles from './style.css';
import { NavLink, Link } from 'react-router-dom';
let SelectableList = makeSelectable(List);
function wrapState(ComposedComponent) {
return class SelectableList extends Comp... |
examples/js/nextjs/pages/_error.js | bugsnag/bugsnag-js | import React from 'react'
import ErrorPage from 'next/error'
import Bugsnag from '../lib/bugsnag'
export default class Page extends React.Component {
static async getInitialProps (ctx) {
if (ctx.err) Bugsnag.notify(ctx.err)
return ErrorPage.getInitialProps(ctx)
}
render () {
return <ErrorPage statusC... |
lib-module/layout/DefaultLayout.js | turacojs/fody | import React from 'react';
import { Html, Head, Body } from './index';
export default (function (_ref) {
var helmet = _ref.helmet,
content = _ref.content;
return React.createElement(
Html,
{ helmet: helmet },
React.createElement(Head, { helmet: helmet }),
React.createElement(
Body,
... |
ajax/libs/jquery/1.4.1/jquery.min.js | Seputaes/cdnjs | /*!
* jQuery JavaScript Library v1.4.1
* 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.
... |
ajax/libs/antd-mobile/2.0.0-alpha.9/antd-mobile.min.js | cdnjs/cdnjs | /*!
* antd-mobile v2.0.0-alpha.9
*
* Copyright 2015-present, Alipay, Inc.
* All rights reserved.
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof export... |
app/javascript/mastodon/features/compose/components/character_counter.js | h3zjp/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { length } from 'stringz';
export default class CharacterCounter extends React.PureComponent {
static propTypes = {
text: PropTypes.string.isRequired,
max: PropTypes.number.isRequired,
};
checkRemainingText (diff) {
if (diff < 0)... |
src/react-native/hoc.js | R1ZZU/react-native-webview-messaging | import React from 'react';
import { handleWebViewMessage } from './handler';
import { register, destroy, resolveRemote } from './remote-resolver';
import { Events } from '../shared/constants';
export const withMessaging = (WebView) => {
return class WebViewWithMessaging extends React.PureComponent {
render() {
... |
ajax/libs/alexandernst-angular-multi-select/7.2.0/angular-multi-select.min.js | BenjaminVanRyseghem/cdnjs | /*! angular-multi-select 7.2.0 */
"use strict";function _taggedTemplateLiteral(a,b){return Object.freeze(Object.defineProperties(a,{raw:{value:Object.freeze(b)}}))}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}var _slicedToArray=fu... |
js/components/Header.js | zanjs/react-iTunes-search | import React from 'react';
import classNames from 'classnames';
import emitter from '../emitter';
import $ from 'jquery';
import 'imports?$=jquery,jQuery=jquery!../vender/transition';
import 'imports?$=jquery,jQuery=jquery!../vender/dropdown';
class Header extends React.Component {
constructor(props) {
super(pr... |
public/javascripts/jquery-1.4.4.min.js | brunoadacosta/agendatech | /*!
* 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/Parser/MistweaverMonk/Modules/Spells/EssenceFont.js | mwwscott0/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Module from 'Parser/Core/Module';
const debug = false;
class EssenceFontMastery extends Module {
castEF = 0;
targetsEF = 0;
on_byPlayer_cast(event) {
const spellId = event.ability.guid;
if... |
ajax/libs/react-is/0.0.0-experimental-6bce0355c-20211031/cjs/react-is.development.min.js | cdnjs/cdnjs | "use strict";"production"!==process.env.NODE_ENV&&function(){var n=60103,s=60106,c=60107,a=60108,i=60114,p=60109,u=60110,f=60112,l=60113,d=60120,x=60115,y=60116,t=60129,r=60130,o=60131,m=60132;"function"==typeof Symbol&&Symbol.for&&(n=(E=Symbol.for)("react.element"),s=E("react.portal"),c=E("react.fragment"),a=E("react.... |
app/src/js/modules/Giphy.js | SamHH/search-and-share | import React from 'react'
import ReactDOM from 'react-dom'
import Header from './Header'
import SearchForm from './SearchForm'
import Saved from './Saved'
import GifsList from './GifsList'
class Giphy extends React.Component {
constructor () {
super()
this.state = {
gifs: [],
saved: []
}
... |
source/component/listview/postList.js | togayther/react-native-cnblogs | import React, { Component } from 'react';
import {
View,
ListView
} from 'react-native';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import * as PostAction from '../../action/post';
import PostRow from './postRow';
i... |
ajax/libs/riot/2.3.16/riot+compiler.js | joeyparrish/cdnjs | /* Riot v2.3.16, @license MIT */
;(function(window, undefined) {
'use strict';
var riot = { version: 'v2.3.16', settings: {} },
// be aware, internal usage
// ATTENTION: prefix the global dynamic variables with `__`
// counter to give a unique id to all the Tag instances
__uid = 0,
// tags instances cache... |
7.2.3/examples/syncValidation/dist/bundle.js | erikras/redux-form-docs | !function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__e... |
client/js/components/User/message.js | MarkoN95/Book-App | const React = require("react");
const { object, func } = React.PropTypes;
const styles = require("./styles.css");
const friendlyDate = function(date) {
if(!(date instanceof Date)) {
date = new Date(date);
}
var parts = date.toString().split(" ");
return [parts[1], parts[2], parts[3]].join(" ");
};
const ... |
ajax/libs/forerunnerdb/1.3.753/fdb-core+views.js | dada0423/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
ajax/libs/F2/1.3.1/f2.no-easyXDM.js | kennynaoh/cdnjs | ;(function(exports) {
if (exports.F2 && !exports.F2_TESTING_MODE) {
return;
}
/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d... |
src/app/components/common/SimpleDateTimePicker.js | jhagai/react-redux-demo | import React from 'react';
import DateTimePicker from 'react-widgets/lib/DateTimePicker'
export default (props) => {
let {input, meta: {touched, error, warning}, dateFormat, ...rest} = props;
return (
<div className={'form-group ' + (touched && error ? 'has-error' : '')}>
<DateTimePicker {... |
packages/material-ui-icons/src/AirlineSeatReclineNormalTwoTone.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M7.59 5.41c-.78-.78-.78-2.05 0-2.83s2.05-.78 2.83 0 .78 2.05 0 2.83c-.79.79-2.05.79-2.83 0zM6 16V7H4v9c0 2.76 2.24 5 5 5h6v-2H9c-1.66 0-3-1.3... |
src/svg-icons/maps/traffic.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsTraffic = (props) => (
<SvgIcon {...props}>
<path d="M20 10h-3V8.86c1.72-.45 3-2 3-3.86h-3V4c0-.55-.45-1-1-1H8c-.55 0-1 .45-1 1v1H4c0 1.86 1.28 3.41 3 3.86V10H4c0 1.86 1.28 3.41 3 3.86V15H4c0 1.86 1.28 3.41... |
clients/packages/admin-client/src/components/editor-wysihtml/wysihtml-toolbar.js | nossas/bonde-client | import PropTypes from 'prop-types'
import React from 'react'
import classnames from 'classnames'
import WYSIHTMLToolbarInsertImage from './wysihtml-toolbar-insert-image'
import WYSIHTMLToolbarInsertHTML from './wysihtml-toolbar-insert-html'
import WYSIHTMLToolbarCreateLink from './wysihtml-toolbar-create-link'
import ... |
docs/app/Examples/modules/Progress/States/Active.js | jcarbo/stardust | import React from 'react'
import { Progress } from 'stardust'
const ProgressActiveExample = () => (
<Progress percent={60} active>
Active
</Progress>
)
export default ProgressActiveExample
|
App/Containers/SonderDebug.js | MapReactor/Sonder | 'use strict';
/* eslint no-console: 0 */
import React, { Component } from 'react';
import { connect } from 'react-redux';
import Mapbox, { MapView } from 'react-native-mapbox-gl';
import {
StyleSheet,
Text,
StatusBar,
View,
ScrollView
} from 'react-native';
import Styles from './Styles/MapViewStyle'
import C... |
src/Connected/inner/View.js | dht/lpm | import React from 'react';
import Base from './Base';
const View = (props) => {
const {content} = props,
containerStyle = {...styleView, backgroundImage: `url(${content})`}
return <Base {...props} containerStyle={containerStyle}>
</Base>
}
export default View;
const styleView = {
position: '... |
react/eventwizard/components/teamsTab/TeamItem.js | bdaroz/the-blue-alliance | import React from 'react'
import PropTypes from 'prop-types'
const TeamItem = (props) => (
<p>Team {props.team_number} - <a href={`/team/${props.team_number}`}>{props.nickname}</a></p>
)
TeamItem.propTypes = {
team_number: PropTypes.number.isRequired,
nickname: PropTypes.string.isRequired,
}
export default Tea... |
extensions/editor/browser/ImageUploadWidget.js | mapcentia/vidi | /*
* @author Alexander Shumilov
* @copyright 2013-2018 MapCentia ApS
* @license http://www.gnu.org/licenses/#AGPL GNU AFFERO GENERAL PUBLIC LICENSE 3
*/
import React from 'react';
import Dropzone from 'react-dropzone';
/**
* Image field widget
*/
class ImageUploadWidget extends React.Component {
c... |
src/scripts/components/colour/History.js | arkon/ColourNTP | import React from 'react';
import Colours from '../../modules/colours';
import Saved from '../../modules/saved';
export default class History extends React.Component {
static defaultProps = {
max: 10
};
constructor(props) {
super(props);
this.state = {
history: new Array(this.props.max)
... |
src/svg-icons/maps/local-activity.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalActivity = (props) => (
<SvgIcon {...props}>
<path d="M20 12c0-1.1.9-2 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2z... |
examples/simple-admin/src/index.js | ucokfm/admin-lte-react | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
docs/app/Examples/collections/Breadcrumb/Types/BreadcrumbExampleProps.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Breadcrumb } from 'semantic-ui-react'
const sections = [
{ key: 'Home', content: 'Home', link: true },
{ key: 'Store', content: 'Store', link: true },
{ key: 'Shirt', content: 'T-Shirt', active: true },
]
const BreadcrumbExampleProps = () => (
<Breadcrumb icon='right angle' ... |
src/components/common/svg-icons/device/bluetooth-connected.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBluetoothConnected = (props) => (
<SvgIcon {...props}>
<path d="M7 12l-2-2-2 2 2 2 2-2zm10.71-4.29L12 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.... |
examples/js/column-filter/select-filter-with-sort.js | pvoznyuk/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
const qualityType = {
0: 'good',
1: 'bad',
2: 'unknown'
};
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) ... |
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/expected.js | RahulDesai92/PHR | import _transformLib from 'transform-lib';
const _components = {
Foo: {
displayName: 'Foo'
}
};
const _transformLib2 = _transformLib({
filename: '%FIXTURE_PATH%',
components: _components,
locals: [],
imports: []
});
function _wrapComponent(id) {
return function (Component) {
return _transformLib... |
src/components/Presentation.js | patitonar/personal-website | import React from 'react';
import SocialIcon from './SocialIcon';
import { socialIcons } from '../constants';
import { PresentationContainer, Name, Role } from './styles';
const SocialIcons = () => (
<div>
{socialIcons.map((item, i) =>
<SocialIcon
key={i}
link={item.link}
icon={item... |
client/node_modules/uu5g03/dist-node/forms/select.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin, ContentMixin} from './../common/common.js';
import {Glyphicon} from './../bricks/bricks.js';
import TextInputMixin from './text-input-mixin.js';
import Select from './select-input.js';
import SelectMultiple from './select-multiple.js';
import './select.les... |
src/svg-icons/image/photo-camera.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePhotoCamera = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24... |
src/components/FBLoginView.js | dbyilmaz/jobs | import React, { Component } from 'react';
import { StyleSheet,Text,View } from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome'
import { Button, SocialIcon } from 'react-native-elements';
class FBLoginView extends Component {
static contextTypes = {
isLoggedIn: React.PropTypes.bool,... |
geonode/contrib/monitoring/frontend/src/components/atoms/hr/index.js | MapStory/geonode | import React from 'react';
import PropTypes from 'prop-types';
import styles from './styles';
class HR extends React.Component {
static propTypes = {
children: PropTypes.node,
style: PropTypes.object,
}
render() {
return (
<hr style={styles.hr} />
);
}
}
export default HR;
|
src/App.js | haroldhues/kkblueberries | import React from 'react'
import Helmet from 'react-helmet'
import Modal from 'react-modal'
import { Route, Switch, Redirect } from 'react-router'
import Body from './Body.js'
import Home from './Home'
import Products from './Products'
import Photos from './Photos'
import Covid from './Covid'
import Information from '.... |
node_modules/react/umd/react.production.min.js | jerednel/jerednel.github.io | /** @license React v16.14.0
* react.production.min.js
*
* 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.
*/
'use strict';(function(d,r){"object"===typeof exports&&"undefined"!==typeof m... |
src/svg-icons/navigation/cancel.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationCancel = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7... |
node_modules/react-icons/io/ios-refresh.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const IoIosRefresh = 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 m0 26.2c5.5 0 10-4.5 10-10h-1.6c0 4.7-3.8 8.4-8.5 8.4s-8.4-3.7-8.4-8.... |
examples/sidebar/app.js | RobertKielty/react-router | import React from 'react';
import createHistory from 'history/lib/createHashHistory';
import { Router, Route, Link } from 'react-router';
import data from './data';
var Category = React.createClass({
render() {
var category = data.lookupCategory(this.props.params.category);
return (
<div>
<h1>{... |
index.ios.js | tom-sanftenberg/reactNativeTodoList | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class TodoList extends Component {
render() {
return (
<View style={styles.container}... |
ajax/libs/angular-google-maps/2.1.0-X.6/angular-google-maps.js | cdnjs/cdnjs | /*! angular-google-maps 2.1.0-X.6 2015-03-16
* AngularJS directives for Google Maps
* git: https://github.com/angular-ui/angular-google-maps.git
*/
;
(function( window, angular, undefined ){
'use strict';
/*
!
The MIT License
Copyright (c) 2010-2013 Google, Inc. http://angularjs.org
Permission is hereby grante... |
src/components/MaintainTransactionalReportRepository/AddReportTransRules.js | RegOpz/RegOpzWebApp | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { connect } from 'react-redux';
import {bindActionCreators, dispatch} from 'redux';
import DatePicker from 'react-datepicker';
import moment from 'moment';
import {
Link,
hashHistory
} from 'react-router';
import { WithContext as Rea... |
test/components/GrainWeightLbsField.spec.js | sgillespie/beer-recipe-adapter | import chai from 'chai';
import jsdom from 'mocha-jsdom';
import GrainWeightLbsField from '../../components/GrainWeightLbsField';
import React from 'react';
import { renderIntoDocument } from 'react-addons-test-utils';
import { simulateChange } from '../test-utils';
import sinon from 'sinon-chai';
import 'mocha-sinon';... |
src/containers/DevTools/DevTools.js | staszekj/react-redux-universal | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor toggleVisibilityKey="ctrl-H"
changePositionKey="ctrl-Q">
<LogMonitor /... |
components/Cards/EmptyListingCard/EmptyListingCard.js | rdjpalmer/bloom | import PropTypes from 'prop-types';
import React from 'react';
import cx from 'classnames';
import Blokk from '../../Blokk/Blokk';
import css from '../DestinationListingCard/DestinationListingCard.css';
const EmptyListingCard = ({ className, carouselClassName, bodyClassName }) => (
<div className={ className }>
... |
node_modules/react-native/node_modules/react-tools/src/test/reactComponentExpect.js | yu01/ReactNativeSample1 | /**
* 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 ... |
src/components/Dropdown/Dropdown/__test__/dropdownTest.js | michalko/draft-wyswig | /* @flow */
import React from 'react';
import { expect } from 'chai';
import { shallow } from 'enzyme';
import Dropdown from '..';
import DropdownOption from '../../DropdownOption';
import ModalHandler from '../../../../event-handler/modals';
describe('Dropdown test suite', () => {
it('should have a div when render... |
packages/material-ui-icons/src/StayCurrentPortraitRounded.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M17 1.01L7 1c-1.1 0-1.99.9-1.99 2v18c0 1.1.89 2 1.99 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z" /></g></React.Fragment>
, ... |
examples/src/components/UsersField.js | StephenGrider/react-select | import GravatarOption from './CustomOption';
import GravatarValue from './CustomSingleValue';
import React from 'react';
import Select from 'react-select';
const USERS = require('../data/users');
var UsersField = React.createClass({
propTypes: {
hint: React.PropTypes.string,
label: React.PropTypes.string,
},
r... |
src/index.js | shawnzhang009/react-starter | import { AppContainer } from 'react-hot-loader';
import React from 'react'
import ReactDOM from 'react-dom'
import App from './components/App'
import injectTapEventPlugin from 'react-tap-event-plugin'
injectTapEventPlugin()
ReactDOM.render(
<div>
<App />
</div>,
document.getElementById('main')
)
if (modul... |
src/components/boardTile.js | TroutZen/minesweeper | import React from 'react'
import classNames from 'classnames';
export class BoardTile extends React.Component {
constructor(props) {
super(props)
}
checkTile() {
this.props.checkTile(this.props.location)
}
rightClick(event) {
event.preventDefault()
let tile = this.props.index[this.props.location]
if (... |
browser/app/js/components/Browse.js | dutchcoders/minio | /*
* Minio Cloud Storage (C) 2016 Minio, 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... |
react/reducers/admin_list.js | zhouchaoyi/react_antd_bg | /**
* Created by zhouchaoyi on 2016/10/24.
*/
import React from 'react'
import {FLAG} from '../actions/admin_list'
const _tableData = {
pageSize: 10,
currentPage: 1
};
const _itemProp = {
userId: "",
loginName: "",
loginPassword: "",
userName: "",
idCardType: "0",
idCard: "",
sex... |
src/containers/login/index.js | w280561543/financial | import React from 'react';
import Link from 'react-router-dom/Link';
import Form from 'antd/lib/form';
import Input from 'antd/lib/input';
import Button from 'antd/lib/button';
import Message from 'antd/lib/message';
import Checkbox from 'antd/lib/checkbox';
import config from '../../utils/config';
import req... |
ajax/libs/material-ui/5.0.0-alpha.20/Checkbox/Checkbox.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { refType } from '@material-ui/utils';
import SwitchBase fro... |
src/svg-icons/content/next-week.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentNextWeek = (props) => (
<SvgIcon {...props}>
<path d="M20 7h-4V5c0-.55-.22-1.05-.59-1.41C15.05 3.22 14.55 3 14 3h-4c-1.1 0-2 .9-2 2v2H4c-1.1 0-2 .9-2 2v11c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2... |
app/routes/Course/routes/Assignments/components/Assignments.js | jefferchang/reactApp | import React from 'react'
class Assignments extends React.Component {
render() {
return (
<div>
<h3>Assignments</h3>
{this.props.children || <p>Choose an assignment from the sidebar.</p>}
</div>
)
}
}
module.exports = Assignments
|
src/containers/TitleBarContainer.spec.js | maartenlterpstra/GeoWeb-FrontEnd | import React from 'react';
import { default as TitleBarContainer } from './TitleBarContainer';
import { mount } from 'enzyme';
import sinon from 'sinon';
const moment = require('moment');
const emptyFunc = () => {
// intentionally left blank
};
const emptyObj = {
// intentionally left blank
};
describe('(Compone... |
actor-apps/app-web/src/app/components/activity/GroupProfileMembers.react.js | xiaotaijun/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import DialogActionCreators from 'actions/DialogActionCreators';
import LoginStore from 'stores/LoginStore';
import AvatarItem from 'components/common/AvatarItem.react';
const {addons: { Pure... |
src/components/Header/Header.js | poeschko/ask-refugeescode | // @flow
import React from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './Header.css';
import Link from '../Link';
import Navigation from '../Navigation';
class Header extends React.Component {
static defaultProps = {
userEmail: '',
};
props: {
userEmail?: st... |
app/containers/LanguageProvider/index.js | kossel/react-boilerplate | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
app/assets/scripts/components/indicator.js | energy-data/market-opportunities | import React from 'react'
import url from 'url'
import Nouislider from 'react-nouislider'
import c from 'classnames'
import chroma from 'chroma-js'
import config from '../config'
import { prettifyString, stopsToNoUiSliderRange, filterSummary, pipFormatter,
getLayerColor } from '../utils'
import CheckboxGroup from './... |
ajax/libs/react-native-web/0.14.2/vendor/react-native/StaticContainer/index.min.js | cdnjs/cdnjs | "use strict";function _inheritsLoose(t,o){t.prototype=Object.create(o.prototype),t.prototype.constructor=t,t.__proto__=o}import*as React from"react";var StaticContainer=function(t){function o(){return t.apply(this,arguments)||this}_inheritsLoose(o,t);var r=o.prototype;return r.shouldComponentUpdate=function(t){return!!... |
app/javascript/mastodon/features/compose/components/autosuggest_account.js | Ryanaka/mastodon | import React from 'react';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
export default class AutosuggestAccount extends Immuta... |
local-cli/wrong-react-native.js | alinz/react-native | #!/usr/bin/env node
console.error([
'\033[31mLooks like you installed react-native globally, maybe you meant react-native-cli?',
'To fix the issue, run:\033[0m',
'npm uninstall -g react-native',
'npm install -g react-native-cli'
].join('\n'));
|
packages/wix-style-react/stories/Colors/index.story.js | wix/wix-style-react | import React from 'react';
import { description } from 'wix-storybook-utils/Sections';
import { storySettings } from './storySettings';
import { Layout, Cell } from '../../src/Layout';
import colors from '../../src/colors.scss';
import Text from '../../src/Text';
import Box from '../../src/Box';
import rgba_to_hex8 fro... |
src/routes/notFound/NotFound.js | Tori1810/Task3 | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
src/layouts/layout-5-5.js | binary-com/binary-next-gen | import React from 'react';
export default (components, className, onClick) => (
<div className={className} onClick={onClick}>
<div className="vertical">
{components[0]}
{components[1]}
{components[2]}
</div>
<div className="vertical">
{compone... |
examples/with-global-stylesheet-simple/pages/index.js | callumlocke/next.js | import React from 'react'
import tachyons from 'tachyons/css/tachyons.min.css'
const SomeComponent = () =>
<div className='sans-serif'>
<article className='br2 ba dark-gray b--black-10 mv4 w-100 w-50-m w-25-l mw5 center'>
<img src='http://placekitten.com/g/600/300' className='db w-100 br2 br--top' alt='Pho... |
.gem/2.1/ruby/2.1.0/gems/rails-4.1.6/guides/assets/javascripts/jquery.min.js | trisys3/refridged | /*! jQuery v1.7.2 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde... |
src/App.js | marksauter/reactd3 | // @flow
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Route, Switch } from 'react-router-dom';
import { BrowserRouter as Router } from 'react-router-dom';
import PrivateRoute from 'components/PrivateRoute';
import asyncComponent from 'components/AsyncComponent';
import '... |
packages/material-ui-icons/legacy/SignalCellular0BarOutlined.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path fillOpacity=".3" d="M2 22h20V2L2 22z" />
, 'SignalCellular0BarOutlined');
|
AnimeWhoIs/wwwroot/js/app/components/AnimeGridItem.js | zr00130/AnimeWhoIs | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import classNames from 'classnames';
import { Link } from 'react-router-dom';
import Grid from '@material-ui/core/Grid';
import GridList from '@material-ui/core/GridList';
import GridListTile from '... |
public/theme/assets/global/plugins/bootstrap-editable/bootstrap-editable/js/bootstrap-editable.js | thaigialai1987/quanlycongvan | /*! X-editable - v1.4.6
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
* http://github.com/vitalets/x-editable
* Copyright (c) 2013 Vitaliy Potapov; Licensed MIT
* Improved by Keenthemes for Bootstrap 3.0 support */
/**
Form with single input element, two buttons and two states: normal/loading.
A... |
app/containers/HomePage/content.js | ledminh/css-pages | import styled from 'styled-components';
import React from 'react';
const Style = styled.div`
width: 70%;
min-width: 400px;
margin: auto;
margin-top: 25px;
border: 2px solid black;
border-radius: 10px;
padding: 10px;
`;
const Content = styled.div`
border: 1px solid black;
padding: 10px;
width: 100%... |
src/svg-icons/action/receipt.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionReceipt = (props) => (
<SvgIcon {...props}>
<path d="M18 17H6v-2h12v2zm0-4H6v-2h12v2zm0-4H6V7h12v2zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-... |
src/admin/client/apps/facebook-customer-chat.js | cezerin/cezerin | import React from 'react';
import messages from 'lib/text';
import api from 'lib/api';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
export const Description = {
key: 'facebook-customer-chat',
name: 'Facebook Customer Chat',
coverUrl: '/admin-assets/images/apps/... |
client/src/app-components/stats-chart.js | ivandiazwm/opensupports | import React from 'react';
import {Line} from 'react-chartjs-2';
import i18n from 'lib-app/i18n';
class StatsChart extends React.Component {
static propTypes = {
strokes: React.PropTypes.arrayOf(React.PropTypes.shape({
name: React.PropTypes.string,
values: React.PropTypes.arrayOf(... |
ajax/libs/react-data-grid/2.0.5/react-data-grid.min.js | Amomo/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactDataGrid=t(require("react"),require("react-dom")):e.ReactDataGrid=t(e.React,e.ReactDOM)}(th... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.