path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
libs/angular.js/0.9.4/angular-scenario.min.js | ewrfedf/baiducdnstatic | /*!
* 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.
... |
packages/material-ui-icons/lib/NorthEastTwoTone.js | mbrookes/material-ui | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
public/js/jquery.js | fatimavi/tiendavirt | /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
spec/javascripts/components/story/expanded_story/attachment/attachment_spec.js | Codeminer42/cm42-central | import React from 'react';
import { mount } from 'enzyme';
import Attachment from 'components/story/attachment/Attachment';
describe('<Attachment/>', () => {
describe('when the attachment is a image', () => {
let attachment;
beforeEach(() => {
attachment = {
id: 42,
type: 'image',
... |
ajax/libs/react-leaflet/0.11.5/react-leaflet.min.js | froala/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("leaflet"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","leaflet","react-dom"],t):"object"==typeof exports?exports.ReactLeaflet=t(require("react"),require("leaflet"),require("react-d... |
node_modules/react-bootstrap/es/NavItem.js | Technaesthetic/ua-tools | 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/5.0.0-alpha.22/node/internal/svg-icons/Warning.min.js | cdnjs/cdnjs | "use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault"),_interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var React=_interopRequireWildcard(require("react")),_createSvgIco... |
packages/wix-style-react/src/ModalMobileLayout/docs/examples/MobileModal.js | wix/wix-style-react | import React from 'react';
import { Box, Button, ModalMobileLayout, Text } from 'wix-style-react';
const style = {
width: '375px',
height: '640px',
backgroundColor: 'rgba(22, 45, 61, 0.66)',
};
const MobileModalFooter = () => (
<Box align="right">
<Box marginRight="12px">
<Button priority="secondar... |
docs/app/Examples/elements/Image/Variations/ImageExampleBordered.js | clemensw/stardust | import React from 'react'
import { Image } from 'semantic-ui-react'
const ImageExampleBordered = () => (
<Image src='/assets/images/wireframe/white-image.png' size='medium' bordered />
)
export default ImageExampleBordered
|
src/svg-icons/action/store.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionStore = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z"/>
</SvgIcon>
);
ActionStore = pure(ActionStore);
ActionStore.displayName = ... |
src/components/Info.js | iRail/datawall | import React from 'react';
import styled from 'styled-components';
import { sizes } from '../constants';
import logo from '../img/logo_white.svg';
import imec from '../img/logo_imec.svg';
const Wrapper = styled.div`
display: flex;
justify-content: space-between;
align-items: center;
padding: 5%;
position: ... |
src/main/resources/public/js/components/dropdown_menus/member/member-dropdown-footer.js | SICTIAM/ozwillo-portal | import React from 'react';
import PropTypes from 'prop-types';
import Select from 'react-select';
import { i18n } from "../../../config/i18n-config"
import { t } from "@lingui/macro"
import NotificationMessageBlock from '../../notification-message-block';
class MemberDropdownFooter extends React.Component {
stat... |
ajax/libs/material-ui/4.12.1/es/internal/svg-icons/MoreHoriz.min.js | cdnjs/cdnjs | import*as React from"react";import createSvgIcon from"../../utils/createSvgIcon";export default createSvgIcon(React.createElement("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"); |
ContosoUniversity.Spa.React/ClientApp/src/components/course/ManageCoursePage.js | alimon808/contoso-university | import React from 'react';
import {Redirect} from 'react-router';
import PropTypes from 'prop-types';
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';
import CourseForm from './CourseForm';
import * as courseActions from '../../actions/courseActions';
import { departmentsFormattedForDropdo... |
blueocean-material-icons/src/js/components/svg-icons/action/view-agenda.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionViewAgenda = (props) => (
<SvgIcon {...props}>
<path d="M20 13H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zm0-10H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1z"/>
</SvgIcon>
);
A... |
files/react/0.12.0/react-with-addons.min.js | korusdipl/jsdelivr | /**
* React (with addons) v0.12.0
*
* Copyright 2013-2014, 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... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/material-ui/svg-icons/notification/more.js | bhathiya/test | '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... |
ajax/libs/flocks.js/0.14.7/flocks.min.js | Teino1978-Corp/Teino1978-Corp-cdnjs | if("undefined"===typeof h)var h=require("react"); (function(){function n(){return!0}function p(){return!0}function b(a,b){if("string"===typeof a)if(~"warn debug error log info exception assert".split(" ").indexOf(a,0))console[a]("Flocks2 ["+a+"] "+b.toString());else console.log("Flocks2 [Unknown level] "+b.toString());... |
web/src/client/components/settings.js | mrsharpoblunto/it-gets-the-hose-again | /*
* @format
*/
import React from 'react';
import {useState, useEffect, useContext} from 'react';
import keys from '../../../keys.json';
import {getSettings, updateSettings} from '../actions/settings';
import {useHistory} from 'react-router-dom';
import Loading from './loading';
import {StoreContext} from '../store-... |
ajax/libs/reactive-coffee/1.2.1/reactive-coffee.js | kiwi89/cdnjs | (function() {
var rxFactory,
__slice = [].slice,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = ne... |
src/routes/About/components/AboutView.js | arleighdickerson/react-redux-express | import React from 'react'
export const AboutView = (props) => (
<h1>About</h1>
)
export default AboutView
|
src/helpers/Html.js | ReactPoland/react-community | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom/server';
import serialize from 'serialize-javascript';
import Helmet from 'react-helmet';
/**
* Wrapper component containing HTML metadata and boilerplate tags.
* Used in server-side code only to wrap the st... |
packages/pictograms-react/examples/storybook/stories/index.stories.js | carbon-design-system/carbon-components | import { Airplane } from '../../../es';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { linkTo } from '@storybook/addon-links';
import React from 'react';
storiesOf('Icon', module)
.add('default', () => <Airplane />)
.add('with aria-label', () => <Airplane ... |
src/esm/components/graphics/logos/mdc/on-dark/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["width", "height"];
import React from 'react';
import PropTypes from 'prop-types';
import { computeFromRatio } from '../../../../../helpers/utils/ratio... |
src/docs/pages/table.js | gabrielcsapo/psychic-ui | import React from 'react';
import Example from '../components/example';
class Table extends React.Component {
render() {
const { brand } = this.props;
const height = window.innerHeight;
return (
<section style={{ 'minHeight': height, position: "relative"}}>
<div style={{padding: "50px"}}>
... |
src/components/Workout/List/__tests__/List.spec.js | diegocasmo/workouter | import React from 'react'
import {Factory} from 'rosie'
import {expect} from 'chai'
import {shallow} from 'enzyme'
import {WorkoutList} from '../List'
import {WorkoutItem} from '../Item'
describe('<WorkoutList/>', () => {
let props
beforeEach(() => {
props = {
workouts: Factory.buildList('workout', 3)
... |
ajax/libs/react/0.13.3/JSXTransformer.js | gaearon/cdnjs | /**
* JSXTransformer v0.13.3
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g... |
src/components/TempStatus.js | mikejablonski/newo-brew-web | import React from 'react';
import PropTypes from 'prop-types';
class TempStatus extends React.Component {
constructor(props, context) {
super(props, context);
this.refreshStatus = this.refreshStatus.bind(this);
}
componentDidMount() {
this.timer = setTimeout(() => {
this.refreshStatus();
... |
ajax/libs/react-datepicker/0.12.0/react-datepicker.js | sreym/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("tether"), require("moment"), require("react-onclickoutside"));
else if(typeof define === 'function' && define.amd)
define(["react", "tether"... |
public/app/src/components/Textarea.js | wjwu/blog | import React from 'react';
import PropTypes from 'prop-types';
const Input = props => {
const cls = `form-control input-${props.size}`;
return (
<input type={props.type} className={cls} />
);
};
Input.defaultProps = {
type: 'text',
size: 'md'
};
Input.propTypes = {
type: PropTypes.string,
size: Pro... |
docs/pages/guides/localization.js | lgollut/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'guides/localization';
const requireDemo = require.context('docs/src/pages/guides/localization', false, /\.(js|tsx)$/);
const requ... |
src/Jumbotron.js | johanneshilden/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import CustomPropTypes from './utils/CustomPropTypes';
const Jumbotron = React.createClass({
propTypes: {
/**
* You can use a custom element for this component
*/
componentClass: CustomPropTypes.elementType
},
getDefaultProps() {
... |
src/admin/client/modules/customers/edit/components/details.js | cezerin/cezerin | import React from 'react';
import messages from 'lib/text';
import style from './style.css';
import CustomerSummary from './summary';
import CustomerOrders from './orders';
import CustomerAddresses from './addresses';
export default class CustomerDetails extends React.Component {
constructor(props) {
super(props)... |
ajax/libs/yui/3.10.2/datatable-body/datatable-body-debug.js | senekis/cdnjs | YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.
@module datatable
@submodule datatable-body
@since 3.5.0
**/
var Lang = Y.Lang,
isArray = Lang.isA... |
pages/less.js | elliotec/LnL | import React from 'react'
import './example.less'
import Helmet from 'react-helmet'
import { config } from 'config'
export default class Less extends React.Component {
render () {
return (
<div>
<Helmet
title={`${config.siteTitle} | Hi lessy friends`}
/>
<h1
cla... |
src/examples/example.js | gajus/react-outside-event | import React from 'react';
import ReactDOM from 'react-dom';
import Player from './player';
ReactDOM.render(<Player>
<Player>
<Player />
<Player />
<Player />
</Player>
<Player />
</Player>, document.querySelector('#playground'));
|
ajax/libs/algoliasearch/3.34.0/algoliasearch.angular.js | cdnjs/cdnjs | /*! algoliasearch 3.34.0 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */
(function(f){var g;if(typeof window!=='undefined'){g=window}else if(typeof self!=='undefined'){g=self}g.ALGOLIA_MIGRATION_LAYER=f()})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o... |
docs/src/Anchor.js | westonplatter/react-bootstrap | import React from 'react';
const Anchor = React.createClass({
propTypes: {
id: React.PropTypes.oneOfType([
React.PropTypes.string,
React.PropTypes.number
])
},
render() {
return (
<a id={this.props.id} href={'#' + this.props.id} className="anchor">
<span className="anchor-ic... |
MapsLocalAirport.js | nodule/react-material-ui | module.exports = {
description: "",
ns: "react-material-ui",
type: "ReactNode",
dependencies: {
npm: {
"material-ui/svg-icons/maps/local-airport": require('material-ui/svg-icons/maps/local-airport')
}
},
name: "MapsLocalAirport",
ports: {
input: {},
output: {
component: {
... |
src/entry/secret.js | liaozhongwu/blog | import React from 'react'
import ReactDOM from 'react-dom'
import Secret from '../page/secret'
var props = window.APP_PROPS
ReactDOM.render(<Secret {...props}/>, document.getElementById("app")) |
administrator/components/com_extplorer/scripts/extjs3/ext-all.js | cyberalpha/UbicoArte | /*
* Ext JS Library 3.4.0
* Copyright(c) 2006-2011 Sencha Inc.
* licensing@sencha.com
* http://www.sencha.com/license
*/
(function(){var h=Ext.util,j=Ext.each,g=true,i=false;h.Observable=function(){var k=this,l=k.events;if(k.listeners){k.on(k.listeners);delete k.listeners}k.events=l||{}};h.Observable.prototy... |
Project/node_modules/material-ui/RadioButton/RadioButtonGroup.js | IhtishamShah/GamifiedLearningApp | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
var _objectWithoutProperties3 = _inte... |
react-ui/src/components/Admin/Admin.js | civicparty/legitometer | import React, { Component } from 'react';
import {
Route,
BrowserRouter as Router,
} from 'react-router-dom';
import NewMission from './NewMission';
import Dashboard from './Dashboard';
import Mission from './Mission';
import CreateCollection from './CreateCollection';
import Articles from './Articles';
import Rev... |
ajax/libs/reactive-coffee/1.6.2/reactive-coffee.js | sufuf3/cdnjs | (function() {
var rxFactory,
slice = [].slice,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototy... |
lib/Components/WeatherCards.js | kfarias/weathrly-2 | import React, { Component } from 'react';
import CurrentWeatherCard from './CurrentWeatherCard';
import HourlyCard from './HourlyCard';
import DailyCard from './DailyCard';
const WeatherCards = ({ weather }) => {
if (!Object.keys(weather).length) {
return (
<div>
</div>
);
}
return (
<... |
react/src/components/Models/SinglePages/Artist.js | museumary/Museumary | /*
Single Artist Page that fetches its instance from the api and renders it
Fetches every single work instance of that artist also and builds a
Carousel of max 10 items
*/
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { Carousel } from 'react-bootstrap';
class ... |
packages/web/src/components/list/MultiDataList.js | appbaseio/reactivesearch | import React, { Component } from 'react';
import {
updateQuery,
setQueryOptions,
setCustomQuery,
setDefaultQuery,
} from '@appbaseio/reactivecore/lib/actions';
import { componentTypes } from '@appbaseio/reactivecore/lib/utils/constants';
import { replaceDiacritics } from '@appbaseio/reactivecore/lib/utils/suggestio... |
app/src/components/common/CustomSelectionView.js | kort/kort-native | // customized SelectionView
// credits to thinnakrit --> https://github.com/thinnakrit/React-Native-Selection
import React, { Component } from 'react';
import {
Text,
View,
ScrollView,
TouchableOpacity,
Dimensions,
Modal
} from 'react-native';
import _ from 'lodash';
import Icon from 'react... |
[3]. Demo_native/rn_into_ios/node_modules/babel-helper-builder-react-jsx/lib/index.js | knightsj/RN_Demo | "use strict";
exports.__esModule = true;
exports.default = function (opts) {
var visitor = {};
visitor.JSXNamespacedName = function (path) {
throw path.buildCodeFrameError("Namespace tags are not supported. ReactJSX is not XML.");
};
visitor.JSXElement = {
exit: function exit(path, file) {
var... |
ajax/libs/react-dom/16.4.0-alpha.0911da3/cjs/react-dom-unstable-native-dependencies.production.min.js | extend1994/cdnjs | /** @license React v16.4.0-alpha.0911da3
* react-dom-unstable-native-dependencies.production.min.js
*
* Copyright (c) 2013-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.
*/
'use strict';var k=require("react-do... |
docs/src/pages/components/breadcrumbs/IconBreadcrumbs.js | allanalexandre/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Paper from '@material-ui/core/Paper';
import Typography from '@material-ui/core/Typography';
import Breadcrumbs from '@material-ui/core/Breadcrumbs';
import Link from '@material-ui/core/Link';
import HomeIcon from '@material-ui/ico... |
examples/todomvc/components/TodoTextInput.js | epeli/redux | import React, { Component, PropTypes } from 'react';
import classnames from 'classnames';
class TodoTextInput extends Component {
constructor(props, context) {
super(props, context);
this.state = {
text: this.props.text || ''
};
}
handleSubmit(e) {
const text = e.target.value.trim();
i... |
src/components/Nav/index.js | lotas/message-flow | import React from 'react';
import { NavLink } from 'react-router-dom';
import { Menu, Divider } from 'semantic-ui-react'
const activeStyle = {
fontWeight: 'bold',
textDecoration: 'underline'
};
const Nav = () => (
<div>
<Menu>
<Menu.Item
name='messages'
as='div'
>
... |
examples/tweet/svgs.js | threepointone/glamor | import { createElement } from '../../src/react' // eslint-disable-line no-unused-vars
/** @jsx createElement */
import React from 'react'
export const like = css => <svg viewBox="0 0 54 72">
<path {...css} d="M38.723 12c-7.187 0-11.16 7.306-11.723 8.13-.563-.824-4.496-8.13-11.723-8.13C8.79 12 3.533 18.163 3.533 24.... |
src/components/Stream/presenter.js | haominzh/sc-react-redux | import React from 'react'
class Stream extends React.Component {
constructor(props){
super(props);
}
render(){
return(
<div>
<div>
<button onClick={this.props.onAuth} type="button">Login</button>
</div>
<br/>
<div>
{this.props.tracks.map((track... |
packages/material-ui-icons/src/FormatTextdirectionRToLRounded.js | allanalexandre/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="M10 10v4c0 .55.45 1 1 1s1-.45 1-1V4h2v10c0 .55.45 1 1 1s1-.45 1-1V4h1c.55 0 1-.45 1-1s-.45-1-1-1h-6.83C8.08 2 6.22 3.53 6.02 5.61 5.79 7.99 7... |
src/svg-icons/notification/airline-seat-recline-extra.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatReclineExtra = (props) => (
<SvgIcon {...props}>
<path d="M5.35 5.64c-.9-.64-1.12-1.88-.49-2.79.63-.9 1.88-1.12 2.79-.49.9.64 1.12 1.88.49 2.79-.64.9-1.88 1.12-2.79.49zM16 19H8.93c-1.48 0... |
spec/coffeescripts/jsx/due_dates/DueDateCalendarPickerSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2015 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/Chart/BarChartChallengeMobile/index.js | DuckyTeam/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import chart from './chart';
import Chart from './../index';
function BarChartMobile(props) {
return (
<Chart
chart={chart}
height={"80px"}
{...props}
/>
);
}
BarChartMobile.propTypes = {
data: PropTypes.arrayOf(PropTypes... |
src/views/App.js | Afrostream/react-redux-universal-hot-example | /*global __CLIENT__*/
import React from 'react';
import {Link} from 'react-router';
import {load} from '../actions/infoActions';
import InfoBar from '../components/InfoBar';
if (__CLIENT__) {
require('./App.scss');
}
export default class App {
render() {
return (
<div className="container app">
<... |
client/config/babel.config.js | codaxy/employee-directory-demo | module.exports = {
"cacheDirectory": true,
"cacheIdentifier": "1",
"presets": [
["es2015", { loose: true }],
"stage-0"
],
"plugins": [
["transform-react-jsx", {"pragma": "VDOM.createElement"}],
"cx"
]
};
|
src/scripts/views/commentSubmit.js | sharnee/instaClone | import React from 'react'
var CommentSubmit = React.createClass({
render: function() {
return (
<form className="create-comment">
<input type="hidden" name="gramID" defaultValue="gramID" />
<input type="text" name="userName" maxlength="40" placeholder="Username" />
<textarea type="text" name="messag... |
src/__tests__/fixtures/flow-import-type.js | reactjs/react-docgen | /**
* @flow
*/
import React, { Component } from 'react';
import type { Props as ImportedProps } from './flow-export-type';
export type ExtendedProps = {
...ImportedProps,
bar: number
}
/**
* This is a Flow component with imported prop types
*/
export function ImportedComponent(props: ImportedProps) {
retur... |
client/components/AceEditor.js | XuHaoJun/tiamat | import React from 'react';
import Loadable from 'react-loadable';
const Loading = () => <div>Loading...</div>;
const AceEditor = Loadable({
loader: () => {
if (typeof window === 'undefined') {
return Promise.resolve(Loading);
} else {
const braceP = import(/* webpackChunkName: "brace" */ 'brace'... |
src/svg-icons/av/queue-music.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvQueueMusic = (props) => (
<SvgIcon {...props}>
<path d="M15 6H3v2h12V6zm0 4H3v2h12v-2zM3 16h8v-2H3v2zM17 6v8.18c-.31-.11-.65-.18-1-.18-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3V8h3V6h-5z"/>
</SvgIcon>
);
AvQu... |
examples/with-cxs/pages/index.js | giacomorebonato/next.js | import React from 'react'
import cxs from 'cxs/lite'
// Using cxs/lite on both the server and client,
// the styles will need to be rehydrated.
if (typeof window !== 'undefined') {
const styleTag = document.getElementById('cxs-style')
const serverCss = styleTag.innerHTML
cxs.rehydrate(serverCss)
}
export defaul... |
projects/twitch-ui/src/components/GridSpinner.js | unindented/twitch-x | import React from 'react'
import styled from 'styled-components'
import Spinner from './Spinner'
const GridSpinnerRoot = styled.div`
display: flex;
width: 100%;
align-items: center;
justify-content: center;
padding: ${props => props.theme.layout.gaps.big};
`
export default function GridSpinner () {
return... |
src/parser/druid/restoration/modules/talents/CenarionWard.js | fyruna/WoWAnalyzer | import React from 'react';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import { formatPercentage } from 'common/format';
import SpellIcon from 'common/SpellIcon';
import SPELLS from 'common/SPELLS';
import Analyzer from 'parser/core/Analyzer';
import Mastery from '../core/Mastery';
... |
wp-content/themes/asian-crush/_js/jquery-1.6.2.min.js | tlist/amr_old | /*!
* jQuery JavaScript Library v1.6.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.
... |
app/src/components/Panel.js | neibarros/kanban_react | import React, { Component } from 'react'
import PropTypes from 'prop-types'
import Cards from './Cards'
import { connect } from 'react-redux'
import CardActions from './../actions/CardActions'
class Panel extends Component {
static propTypes = {
createCard: PropTypes.func.isRequired
}
constructor(... |
ajax/libs/ember-data.js/1.0.0-beta.7/ember-data.js | legomushroom/cdnjs | /*!
* @overview Ember Data
* @copyright Copyright 2011-2014 Tilde Inc. and contributors.
* Portions Copyright 2011 LivingSocial Inc.
* @license Licensed under MIT license (see license.js)
* @version 1.0.0-beta.7.f87cba88
*/
(function(global) {
var define, requireModule, require, requirejs;
(funct... |
ajax/libs/tinymce/4.2.2/plugins/legacyoutput/plugin.js | LeaYeh/cdnjs | /**
* plugin.js
*
* Released under LGPL License.
* Copyright (c) 1999-2015 Ephox Corp. All rights reserved
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*
* This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u elements, al... |
node_modules/react-icons/fa/file-image-o.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaFileImageO = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m35.8 8.5q0.6 0.6 1 1.7t0.5 1.9v25.8q0 0.8-0.6 1.5t-1.6 0.6h-30q-0.9 0-1.5-0.6t-0.6-1.5v-35.8q0-0.8 0.6-1.5t1.5-0.6h20q0.9 0 2 0.4t1.7 1.1z m-9.9-5.5v8.4h8.4q-0.3-... |
fields/types/Field.js | ligson/keystone | import _ from 'underscore';
import classnames from 'classnames';
import evalDependsOn from '../utils/evalDependsOn.js';
import React from 'react';
import { Button, FormField, FormInput, FormNote } from 'elemental';
function validateSpec(spec) {
if (!spec) spec = {};
if (!_.isObject(spec.supports)) {
spec.supports ... |
src/containers/NotFound/index.js | apedyashev/react-universal-jobs-aggregator | // libs
import React from 'react';
// other
import styles from './index.less';
export default function NotFound() {
return (
<div className={styles.container}>
<h1>Doh! 404!</h1>
<p>These are <em>not</em> the droids you are looking for!</p>
</div>
);
}
|
Examples/BabelES6/src/components/DocSection.js | davecoates/react-native-webpack-server | 'use strict';
import React from 'react-native';
const {
StyleSheet,
Text,
View,
WebView,
} = React;
const BASE_URL = 'http://facebook.github.io/react-native/docs/';
export default class DocSection extends React.Component {
static propTypes = {
section: React.PropTypes.object.isRequired,
};
rende... |
src/components/TextField/index.js | CO14/CO14_react_client | import React from "react";
import PropTypes from "prop-types";
const TextField = props => {
return (
<input
className={props.className}
type={props.type}
name={props.name}
placeholder={props.placeholder}
value={props.value}
onChange={... |
front-react/src/components/sidebar/Surface.js | hexacta/maprop | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import './Surface.css';
class Surface extends Component {
static propTypes = {
min: PropTypes.number,
max: PropTypes.number,
limits: PropTypes.shape({
min: PropTypes.number,
max: PropTypes.number
}),
onSurfaceChange: PropTyp... |
src/components/ui/TabIcon.js | Jenny-L/lumohacks2017 | /**
* Tabbar Icon
*
<TabIcon icon={'search'} selected={false} />
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React from 'react';
import PropTypes from 'prop-types';
import { Icon } from 'react-native-elements';
import { AppColors } from '@theme/';
/* Componen... |
packages/xo-web/src/common/select-compression.js | vatesfr/xo-web | import _ from 'intl'
import PropTypes from 'prop-types'
import React from 'react'
import { injectState, provideState } from 'reaclette'
import { omit } from 'lodash'
import decorate from './apply-decorators'
import { Select } from './form'
const OPTIONS = [
{
label: _('stateDisabled'),
value: '',
},
{
... |
hello-react/src/comment/components/CommentInput.js | treason258/TreLibrary | import React from 'react';
import BaseComponent from '../BaseComponent.js'
import PropTypes from 'prop-types'
import '../Comment.css';
class CommentInput extends BaseComponent {
static propTypes = {
username: PropTypes.any,
onSubmit: PropTypes.func,
onUserNameInputBlur: PropTypes.func
... |
docs/src/examples/modules/Embed/Types/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Message } from 'semantic-ui-react'
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
const EmbedTypesExamples = () => (
<ExampleSection title='Types'>
<ComponentExample
... |
docs/app/Examples/views/Item/Types/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 Types = () => (
<ExampleSection title='Types'>
<ComponentExample
title='Items'
description='A group of items.'... |
src/structure/footer.js | govau/service-manual | import AUfooter from '../../scripts/uikit/footer';
import AUlinkList from '../../scripts/uikit/link-list';
import AUheading from '../../scripts/uikit/headings';
import PropTypes from 'prop-types';
import React from 'react';
/**
* The gov.au footer
*/
const Footer = ({ headline, legallist, mainlist, _body, _ID, _rel... |
jquery-1.11.3.min.js | FaroeMedia/revealator | /*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
src/components/Ads/StandardTerms/index.js | topguru/React-Equiaction | import React, { Component } from 'react';
import {
Text,
View,
ScrollView,
TouchableHighlight
} from 'react-native';
import styles from './style';
import { images, metrics } from '../../../theme';
import Icon from 'react-native-vector-icons/FontAwesome';
import { Actions } from 'react-native-router-flux';
co... |
app/javascript/mastodon/features/notifications/components/notifications_permission_banner.js | ikuradon/mastodon | import React from 'react';
import Icon from 'mastodon/components/icon';
import Button from 'mastodon/components/button';
import IconButton from 'mastodon/components/icon_button';
import { requestBrowserPermission } from 'mastodon/actions/notifications';
import { changeSetting } from 'mastodon/actions/settings';
import ... |
test/TableSpec.js | pieter-lazzaro/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Table from '../src/Table';
describe('Table', function () {
it('Should be a table', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Table />
);
assert.equal(React.findDOMNode(instance).nodeName,... |
src/components/Main.js | BenGoldstein88/MidiTester | import React from 'react';
import '../assets/@blueprintjs/core/dist/blueprint.css';
export default class Main extends React.Component {
render() {
return (
<div style={{
height: '100%',
width: '100%'
}}>{this.props.children}</div>
);
}
} |
src/parser/monk/mistweaver/modules/spells/ThunderFocusTea.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Analyzer from 'parser/core/Analyzer';
import { STATISTIC_ORDER } from 'interface/others/StatisticsListBox';
import Statistic from 'interface/statistics/Statistic';
import DonutChart from 'interface/statist... |
ajax/libs/react/0.8.0/JSXTransformer.js | mihneasim/cdnjs | /**
* JSXTransformer v0.8.0
*/
!function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.JSXTransformer=e():"undefined"!=typeof global?global.JSXTransformer=e():"undefined"!=typeof self&&(self.JSXTransformer=e())}(function(){var define,m... |
ajax/libs/video.js/4.8.1/video.dev.js | pzp1997/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.
*
... |
src/svg-icons/device/devices.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceDevices = (props) => (
<SvgIcon {...props}>
<path d="M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z"/>
</Sv... |
TextAdventureGauntlet/game/ui/utils/basics/button.js | coryandrew1988/Text-Adventure-Gauntlet | import React, { Component } from 'react';
import {
TouchableNativeFeedback,
View
} from 'react-native';
export default class Button extends Component {
render() {
return <TouchableNativeFeedback onPress={this.props.onPress}>
<View {...this.props}>
{this.props.children}
</View>
</Touch... |
ajax/libs/boardgame-io/0.49.3/esm/react.js | cdnjs/cdnjs | import 'nanoid/non-secure';
import './Debug-2fab6ce8.js';
import 'redux';
import './turn-order-406c4349.js';
import 'immer';
import 'lodash.isplainobject';
import './reducer-52d26818.js';
import 'rfc6902';
import './initialize-1b5f9063.js';
import './transport-ce07b771.js';
import { C as Client$1 } from './client-29adb... |
ajax/libs/material-ui/4.9.4/es/OutlinedInput/OutlinedInput.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { refType } from '@material-ui/utils';
import InputBase from '../... |
src/components/marketing/marketing.js | compwhile/compwhile.io | import React, { Component } from 'react';
import { Row, Col, Glyphicon } from 'react-bootstrap';
import './marketing.css';
class Hero extends Component {
render() {
return (
<div className="marketing">
<Row>
<Col sm={4}>
<div className="marketing-item">
<di... |
app/react-icons/fa/bolt.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaBolt extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m29.8 12.6q0.4 0.5 0.1 1l-12 25.8q-0.3 0.6-1 0.6-0.1 0-0.3 0-0.4-0.2-0.6-0.5t-0... |
src/renderer/components/MapFilter/DataExportDialog/ExportSuccessful.js | digidem/ecuador-map-editor | import React from 'react'
import Button from '@material-ui/core/Button'
import DialogContentText from '@material-ui/core/DialogContentText'
import { defineMessages, FormattedMessage } from 'react-intl'
import { Template } from './Template'
const msgs = defineMessages({
exportSuccessfulButton: 'OK',
exportSuccessf... |
src/admin/containers/ToolbarContainer.js | firescribe/firescribe | import React from 'react';
class ToolbarContainer extends React.Component {
render() {
const { primary2Color } = this.context.muiTheme.palette;
console.log(this.context.muiTheme.palette.primary2Color);
return (
<div style={{ background: primary2Color }}>
<div sty... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.