path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/react-native-web/0.0.0-a55272399/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/mui-material/src/OutlinedInput/OutlinedInput.js | oliviertassinari/material-ui | import * as React from 'react';
import PropTypes from 'prop-types';
import { refType } from '@mui/utils';
import { unstable_composeClasses as composeClasses } from '@mui/base';
import NotchedOutline from './NotchedOutline';
import useFormControl from '../FormControl/useFormControl';
import formControlState from '../For... |
sites/all/modules/contrib/devel/jquery-1.4.4-uncompressed.js | stephangrundner/zimmer | /*!
* 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/charts/count-graph/story.js | DensityCo/charts | import React from 'react';
import {storiesOf} from '@storybook/react';
import {chartAsReactComponent} from '../index';
import moment from 'moment';
import countGraph from './index';
// Since this data is so large, it's been serialized below in the format:
// "count,timestamp;count,timestamp;..."
// This function conv... |
src/parser/warlock/affliction/modules/features/Checklist/Module.js | FaideWW/WoWAnalyzer | import React from 'react';
import BaseChecklist from 'parser/shared/modules/features/Checklist2/Module';
import CastEfficiency from 'parser/shared/modules/CastEfficiency';
import Combatants from 'parser/shared/modules/Combatants';
import PreparationRuleAnalyzer from 'parser/shared/modules/features/Checklist2/Preparati... |
imports/ui/pages/AdminViewAllJournals/AdminViewAllJournals.js | jamiebones/Journal_Publication |
import React from 'react';
import PropTypes from 'prop-types';
import { Row, Col, FormGroup, HelpBlock , Alert ,
ControlLabel, Button , Well , FormControl , ProgressBar ,
Jumbotron , ListGroup , ListGroupItem , Table ,
Panel , Label , ButtonToolbar , ButtonGroup} from 'react-bootstrap';
im... |
server/public/js/app/stringTools/components/ToolPanel.js | fendy3002/QzStringTools | import React from 'react';
import lo from 'lodash';
import RSelect from 'react-select';
import Highlighter from 'react-highlight-words';
import 'react-select/dist/react-select.css';
import SelectOption from './SelectOption.js';
import SelectedCommandPanel from './SelectedCommandPanel.js';
var Dom = function({filter, c... |
node_modules/react/lib/PooledClass.js | lujinming1/hejicaoye | /**
* 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 directory.
*
*
*/
'use st... |
src/svg-icons/editor/format-line-spacing.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatLineSpacing = (props) => (
<SvgIcon {...props}>
<path d="M6 7h2.5L5 3.5 1.5 7H4v10H1.5L5 20.5 8.5 17H6V7zm4-2v2h12V5H10zm0 14h12v-2H10v2zm0-6h12v-2H10v2z"/>
</SvgIcon>
);
EditorFormatLineSpacing =... |
src/hooks/useColumnVisibility.js | react-tools/react-table | import React from 'react'
import {
actions,
functionalUpdate,
useGetLatest,
makePropGetter,
useMountedLayoutEffect,
} from '../publicUtils'
actions.resetHiddenColumns = 'resetHiddenColumns'
actions.toggleHideColumn = 'toggleHideColumn'
actions.setHiddenColumns = 'setHiddenColumns'
actions.toggleHideAllColum... |
src/components/Artboard.js | weaintplastic/react-sketchapp | /* @flow */
import React from 'react';
import PropTypes from 'prop-types';
import StyleSheet from '../stylesheet';
import ViewStylePropTypes from './ViewStylePropTypes';
const propTypes = {
// TODO(lmr): do some nice warning stuff like RN does
style: PropTypes.shape({
...ViewStylePropTypes,
}),
name: PropT... |
examples/datamaps/project/static/bower_components/react-bootstrap/lib/factories/MenuItem.js | askerry/pyxley | define(['exports', 'module', 'react', '../MenuItem'], function (exports, module, _react, _MenuItem) {
'use strict';
function _interopRequire(obj) { return obj && obj.__esModule ? obj['default'] : obj; }
var _React = _interopRequire(_react);
var _MenuItem2 = _interopRequire(_MenuItem);
module.exports = _Re... |
docs/app/Examples/modules/Dimmer/States/DimmerExampleActive.js | shengnian/shengnian-ui-react | import React from 'react'
import { Dimmer, Image, Segment } from 'shengnian-ui-react'
const DimmerExampleActive = () => (
<Segment>
<Dimmer active />
<p>
<Image src='/assets/images/wireframe/short-paragraph.png' />
</p>
<p>
<Image src='/assets/images/wireframe/short-paragraph.png' />
... |
react/src/components/dashboard/coinTile/coinTileItem.render.js | pbca26/EasyDEX-GUI | import React from 'react';
import translate from '../../../translate/translate';
import ReactTooltip from 'react-tooltip';
import mainWindow, { staticVar } from '../../../util/mainWindow';
import erc20ContractId from 'agama-wallet-lib/src/eth-erc20-contract-id';
const testChains = [
'BEER',
'PIZZA',
'VOTE2018',
... |
node_modules/rc-table/es/ExpandIcon.js | yhx0634/foodshopfront | import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/inherits';
import React from 'react';
import PropTypes ... |
files/rxjs/2.5.3/rx.all.js | Kingside/jsdelivr | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
v... |
app/app.js | herereadthis/redwall | import React from 'react';
import Homepage from 'views/Homepage/Homepage';
//import Code from 'views/Code/Code';
import AppActions from './AppActions';
import HomeFlux from 'views/Homepage/HomeFlux.js';
import HomeStore from 'views/Homepage/HomeStore.js';
import FluxComponent from 'flummox/component';
require('mossf... |
packages/constraint-solver/input-tests.js | tdamsma/meteor | var CS = ConstraintSolver;
// "Input tests" are the new style of tests that operate by creating a
// CS.Input (representing a problem statement) and passing it into
// CS.PackagesResolver.
// For tests of CS.Input serialization, see constraint-solver-tests.js.
// Yeah, we rely on object key order here. Specifically... |
src/Month.js | atondelier/react-moment-datepicker | "use strict";
import moment from 'moment';
import momentPropTypes from 'react-moment-proptypes';
import React from 'react';
import classnames from 'classnames';
import './Month.css';
const Month = ({
displayedStartDate,
date,
defaultDate,
DayComponent = require('./Day.js'),
dayProps,
onSelect,... |
src/Tooltip/index.js | DuckyTeam/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Typography from '../Typography';
import Wrapper from '../Wrapper';
import styles from './styles.css';
import RcTooltip from 'rc-tooltip';
import './tooltip.css';
function Tooltip(props) {
const tooltipContent =... |
index.android.js | tk1cntt/KanjiMaster | import React from 'react'
import { AppRegistry } from 'react-native'
import Root from './App/Root'
import './App/Config/ReactotronConfig'
import configureStore from './App/Store/Store'
// Handling store here to avoid hot-reloading issues
const store = configureStore()
class RNBase extends React.Component {
render ()... |
Samples/Core.ConnectedAppParts/Core.ConnectedAppPartsWeb/Scripts/jquery-1.6.4.js | OzMakka/PnP | /*!
* jQuery JavaScript Library v1.6.4
* 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.
... |
ajax/libs/video.js/4.11.4/video.dev.js | zimbatm/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.
*
... |
app/components/Input.js | nosplashurinal/order-management | import React from 'react';
import PropTypes from 'prop-types';
import styles from '../styles/input.scss';
import onClickOutside from 'react-onclickoutside';
class Input extends React.Component {
constructor(props) {
super(props);
}
handleClickOutside() {
this.props.isActive && thi... |
pootle/static/js/stats.js | garthylou/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import $ from 'jquery';
import React from 'react';
import... |
src/components/ImageGallery/index.js | RussHR/github_page_src | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Lightbox from '../Lightbox';
import { get } from 'lodash';
import './image-gallery.scss';
export default class ImageGallery extends Component {
constructor(props) {
super(props);
this.state = { currentImageIndex:... |
src/components/CaptureReportTemplate/RepositoryReportTemplate.js | RegOpz/RegOpzWebApp | import React, { Component } from 'react';
import { Modal } from 'react-bootstrap';
import { Field, reduxForm } from 'redux-form';
import { connect } from 'react-redux';
import { bindActionCreators, dispatch } from 'redux';
import {
actionLoadTemplateFile,
actionCheckReportId
} from '../../actions/CaptureReportTempl... |
ajax/libs/analytics.js/2.3.16/analytics.js | athanclark/cdnjs | (function outer(modules, cache, entries){
/**
* Global
*/
var global = (function(){ return this; })();
/**
* Require `name`.
*
* @param {String} name
* @param {Boolean} jumped
* @api public
*/
function require(name, jumped){
if (cache[name]) return cache[name].exports;
if (mo... |
src/PageItem.js | johanneshilden/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const PageItem = React.createClass({
propTypes: {
href: React.PropTypes.string,
target: React.PropTypes.string,
title: React.PropTypes.string,
disabled: React.PropTypes.bool,
previous: React.PropTypes.bool,
next: React.PropTypes... |
src/js/components/icons/base/Servers.js | odedre/grommet-final | /**
* @description Servers SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @pr... |
test/integration/prerender-invalid-paths/pages/[foo]/[post].js | zeit/next.js | import React from 'react'
export async function getStaticPaths() {
return { paths: [{ foo: 'bad', baz: 'herro' }], fallback: true }
}
export async function getStaticProps({ params }) {
return {
props: {
post: params.post,
time: (await import('perf_hooks')).performance.now(),
},
}
}
export d... |
src/utils/notifications.js | Portgass/prototype-orders | import React from 'react'
import { connect } from 'react-redux'
import { List, Map } from 'immutable'
import Button from '@material-ui/core/Button'
import IconButton from '@material-ui/core/IconButton'
import Snackbar from '@material-ui/core/Snackbar'
import { withStyles } from '@material-ui/core/styles'
import CloseI... |
ajax/libs/yui/3.3.0pr2/event-custom/event-custom-base-debug.js | x112358/cdnjs | YUI.add('event-custom-base', function(Y) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module ev... |
src-hmi/__tests__/index.ios.js | projet-aaa/platform | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/components/ButtonBar/ButtonBar.stories.js | InsideSalesOfficial/insidesales-components | import React from "react";
import { ThemeProvider } from "styled-components";
import { storiesOf } from "@storybook/react";
import ButtonBar from "./";
import { ButtonBarThemes } from "../index";
import { colors, darkBlue } from "../styles/colors";
import { generateFlexedThemeBackground } from "../styles/index.js";
... |
wwwroot/app/src/components/MyRecipesPage/ViewRecipeContainer.js | AlinCiocan/FoodPlanApp | import React, { Component } from 'react';
import { ApiRequest } from '../../services/ApiRequest';
import RecipeService from '../../services/RecipeService';
import Routes from '../../services/Routes';
import TopBar from '../TopBar/TopBar';
import ViewRecipe from './ViewRecipe';
import NavigationMenu from '../NavigationM... |
jenkins-design-language/src/js/components/material-ui/svg-icons/action/settings-overscan.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionSettingsOverscan = (props) => (
<SvgIcon {...props}>
<path d="M12.01 5.5L10 8h4l-1.99-2.5zM18 10v4l2.5-1.99L18 10zM6 10l-2.5 2.01L6 14v-4zm8 6h-4l2.01 2.5L14 16zm7-13H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z... |
AppVilRecipe/VilRecipes/index.ios.js | damdamgo/VilRecipe | /**
* 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 VilRecipes extends Component {
render() {
return (
<View style={styles.containe... |
src/containers/HomeContainer.js | gbanis/rc-manager | import React from 'react';
class HomeContainer extends React.Component {
render () {
return <h1>Home</h1>;
}
}
export default HomeContainer;
|
examples/development/components/Root.js | broucz/react-embed-code | import React, { Component } from 'react';
import Code from 'react-embed-code';
const str = `import React, { Component } from 'react';
import { Grid, Row, Cell } from 'react-inline-grid';
const box = { background: '#bdbdbd', padding: '8px' };
class Root extends Component {
render() {
return (
<div>
... |
lib/components/map/gtfs-rt-vehicle-overlay.js | opentripplanner/otp-react-redux | import { transit_realtime as transitRealtime } from 'gtfs-realtime-bindings'
import L from 'leaflet'
import TransitVehicleOverlay from '@opentripplanner/transit-vehicle-overlay'
import PropTypes from 'prop-types'
import React from 'react'
import ReactDOMServer from 'react-dom/server'
import { FeatureGroup, MapLayer, Ma... |
tests/Element-spec.js | sdemjanenko/formsy-react | import React from 'react';
import TestUtils from 'react-addons-test-utils';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import sinon from 'sinon';
import ReactDOM from 'react-dom';
import Formsy from './..';
import TestInput, { InputFactory } from './utils/TestInput';
import immediate from './utils/i... |
tests/baselines/reference/tsxTypeArgumentResolution.js | weswigham/TypeScript | //// [file.tsx]
import React = require('react');
interface Prop {
a: number,
b: string
}
declare class MyComp<P> extends React.Component<P, {}> {
internalProp: P;
}
let x = <MyComp<Prop> a={10} b="hi" />; // OK
x = <MyComp<Prop> a={10} b="hi"></MyComp>; // OK
x = <MyComp<Prop> a={10} b={20} />; // err... |
test/fixtures/webpack-message-formatting/src/index.js | GreenGremlin/create-react-app | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
ajax/libs/inferno/1.0.0-beta44/inferno-compat.js | kennynaoh/cdnjs | /*!
* inferno-compat v1.0.0-beta44
* (c) 2016 Dominic Gannaway
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('./inferno-component'), require('./inferno')) :
typeof define === 'function' && define.amd ? d... |
src/routes/academia/academiaArticleList/index.js | ykx456654/hr_admin | import React from 'react'
import PropTypes from 'prop-types'
import { Link,router } from 'dva/router'
import { connect } from 'dva'
import {
Button,
Pagination,
Table,
Icon,
Modal
} from 'antd'
import style from '../academia.less'
function academiaArticleList ({ academia,dispatch }) {
const... |
src/shared/components/accordian/accordian.js | miaket/operationcode_frontend | import React from 'react';
import PropTypes from 'prop-types';
import AccordianItem from './accordianItem/accordianItem';
import styles from './accordian.css';
const Accordian = ({ children }) => (
<div className={styles.accordian}>
<dl>
{children}
</dl>
</div>
);
Accordian.propTypes = {
children:... |
packages/material-ui-icons/src/AddToPhotosRounded.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="M3 6c-.55 0-1 .45-1 1v13c0 1.1.9 2 2 2h13c.55 0 1-.45 1-1s-.45-1-1-1H5c-.55 0-1-.45-1-1V7c0-.55-.45-1-1-1zm17-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 ... |
frontend/src/index.js | c0un7-z3r0/deep_thought | import React from 'react'
import {render} from 'react-dom'
import {createStore, applyMiddleware} from 'redux'
import {Provider} from 'react-redux'
import thunk from 'redux-thunk'
import createLogger from 'redux-logger'
import reducer from './reducers'
import App from './containers/App'
import './index.css';
import {com... |
src/src/components/FormInputs/Checkbox.js | chaitanya1375/Myprojects | import React, { Component } from 'react';
import cx from 'classnames';
import uncheckImage from 'assets/images/checkbox-1.svg';
import checkImage from 'assets/images/checkbox-2.svg';
class Checkbox extends Component {
render() {
let {
input,
label,
type,
meta: { touched, error, warning }... |
packages/react-ui-components/src/SelectBox_CreateNew/selectBox_CreateNew.js | neos/neos-ui | /* eslint-disable camelcase, react/jsx-pascal-case */
import React, {PureComponent} from 'react';
import PropTypes from 'prop-types';
import SelectBox_Option_SingleLine from '../SelectBox_Option_SingleLine';
const CREATE_NEW_IS_FOCUSED = 'NEOS_UI_CREATE_NEW_IS_FOCUSED';
/**
* **SelectBox_CreateNew is an internal imp... |
imoocstudy/vue-cli/fungleo/vuedemo/static/ue/third-party/jquery-1.10.2.min.js | xixizhang96/Example | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
ajax/libs/ember-data.js/1.0.0-beta.12/ember-data.prod.js | dmsanchez86/cdnjs | (function(global){
var enifed, requireModule, eriuqer, requirejs;
(function() {
var _isArray;
if (!Array.isArray) {
_isArray = function (x) {
return Object.prototype.toString.call(x) === "[object Array]";
};
} else {
_isArray = Array.isArray;
}
var registry = {}, seen = {}, state = {};
... |
test/unit/utils.js | nhardy/web-scaffold | // @flow
/* eslint-disable react/prop-types */
import React, { Component } from 'react';
import type { Element } from 'react';
import { shallow } from 'enzyme';
import { identity, noop } from 'lodash-es';
import type { ReduxStore } from 'app/flowTypes';
import type { StubsType } from '../flowTypes';
export function... |
src/routes/Library/components/ArtistItem/ArtistItem.js | bhj/karaoke-forever | import PropTypes from 'prop-types'
import React from 'react'
import SongList from '../SongList'
import Icon from 'components/Icon'
import Highlighter from 'react-highlight-words'
import ToggleAnimation from 'components/ToggleAnimation'
import styles from './ArtistItem.css'
class ArtistItem extends React.Component {
... |
modules/react-move/src/components/Move.js | socialtables/react-color | 'use strict';
import React from 'react';
import ReactCSS from 'reactcss';
export class Move extends ReactCSS.Component {
classes() {
return {
'default': {
outer: {
opacity: this.props.inStartOpacity,
transform: this.props.inStartTransform,
transition: this.props.inSt... |
complete-example/client/src/index.js | jpaulptr/ecom-react | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import './index.css';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
pages/system/palette.js | Kagami/material-ui | import 'docs/src/modules/components/bootstrap';
// --- Post bootstrap -----
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
const req = require.context('docs/src/pages/system/palette', false, /\.md|\.js$/);
const reqSource = require.context(
'!raw-loader!../../docs/src... |
actor-apps/app-web/src/app/components/common/AvatarItem.react.js | mitchellporter/actor-platform | import React from 'react';
import classNames from 'classnames';
class AvatarItem extends React.Component {
static propTypes = {
image: React.PropTypes.string,
placeholder: React.PropTypes.string.isRequired,
size: React.PropTypes.string,
title: React.PropTypes.string.isRequired
};
constructor(pro... |
src/Input/__tests__/InputGroup.Test.js | BlueChilli/ChilliSource.Web.Forms | import React from 'react';
import { shallow } from 'enzyme';
import InputGroup from '../InputGroup.tsx';
const input = <input key="input" value="This is in an input tag" />;
const div = <div key="div">This is in a div tag</div>;
const p = <p key="p">This is in a paragraph tag</p>;
const inputPrepend = <span>$</span>;... |
client/src/components/home/HomePage.js | andela-pbirir/CP2-DMS | import React from 'react';
import LoginPage from '../Auth/Login/LoginPage';
class HomePage extends React.Component {
render() {
return (
<div>
<LoginPage />
</div>
);
}
}
export default HomePage;
|
packages/react-scripts/fixtures/kitchensink/src/features/webpack/ScssModulesInclusion.js | viankakrisna/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import styles from './assets/scss-styles.module.scss';
import indexStyles from './assets/index.module.scss';
... |
sites/all/modules/jquery_update/replace/jquery/1.5/jquery.min.js | willvedd/bike-temple | /*!
* jQuery JavaScript Library v1.5.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
ajax/libs/react-disqus-thread/0.2.0/react-disqus-thread.min.js | dlueth/cdnjs | !function(root,factory){"object"==typeof exports&&"object"==typeof module?module.exports=factory(require("React")):"function"==typeof define&&define.amd?define(["React"],factory):"object"==typeof exports?exports.ReactDisqusThread=factory(require("React")):root.ReactDisqusThread=factory(root.React)}(this,function(__WEBP... |
src/svg-icons/device/network-cell.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceNetworkCell = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M2 22h20V2z"/><path d="M17 7L2 22h15z"/>
</SvgIcon>
);
DeviceNetworkCell = pure(DeviceNetworkCell);
DeviceNetworkCell.displayNam... |
examples/RNOneSignal/index.ios.js | maxcodes/react-native-onesignal | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import OneSignal from 'react-native-onesignal';
export default class RNOneSignal extends Component {
... |
docs/src/sections/ButtonGroupSection.js | pombredanne/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function ButtonGroupSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
... |
ui/src/main/js/components/Breadcrumb.js | crashlytics/aurora | import React from 'react';
import { Link } from 'react-router-dom';
function url(...args) {
return args.join('/');
}
export default function Breadcrumb({ cluster, role, env, name, instance, update }) {
const crumbs = [<Link key='cluster' to='/scheduler'>{cluster}</Link>];
if (role) {
crumbs.push(<span key='... |
src/modules/Home/Home.js | dannegm/danielgarcia | /* eslint-disable camelcase */
import React from 'react';
import useDocumentTitle from '@/shared/hooks/useDocumentTitle';
import Galaxy from '@/shared/components/Galaxy';
import { getTodayAvatar } from '@/shared/services/avatares';
import {
// Breakline
Page,
Background,
Overlay,
Hero,
Avatar... |
src/columna.js | syvelasquez10/parcial1 | import React, { Component } from 'react';
import axios from 'axios';
class Columna extends Component {
constructor(props) {
super(props);
this.state = {
imagenes: []
}
}
render() {
if(this.props.busqueda) {
var color="";
if(this.props.color) {
color="%20"+this.props.c... |
ajax/libs/primereact/6.5.0/terminal/terminal.esm.js | cdnjs/cdnjs | import React, { Component } from 'react';
import { TerminalService } from 'primereact/terminalservice';
import { classNames } from 'primereact/core';
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) {
arr2[i] = a... |
src/components/sidebar.js | Full-Metal-JS/reserver-space | import React from 'react';
import SidebarLocation from './SidebarLocation';
const Sidebar = ({locationsList, roomsList}) => {
let locations = locationsList ? locationsList.map(location =>
<SidebarLocation location={location} roomsList={roomsList}/>) : '';
return (
<div className='col-sm-3 col-md-2 sidebar... |
frontend/src/App/AppUpdatedModal.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import Modal from 'Components/Modal/Modal';
import AppUpdatedModalContentConnector from './AppUpdatedModalContentConnector';
function AppUpdatedModal(props) {
const {
isOpen,
onModalClose
} = props;
return (
<Modal
isOpen={isOpen}
... |
ajax/libs/core-js/0.2.1/library.js | ppoffice/cdnjs | /**
* Core.js 0.2.1
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2014 Denis Pushkarev
*/
!function(returnThis, framework, undefined){
'use strict';
/******************************************************************************
* Module : common ... |
actor-apps/app-web/src/app/components/common/MessageItem.react.js | chengjunjian/actor-platform | import _ from 'lodash';
import React from 'react';
import { PureRenderMixin } from 'react/addons';
import memoize from 'memoizee';
import classNames from 'classnames';
import emojify from 'emojify.js';
import hljs from 'highlight.js';
import marked from 'marked';
import emojiCharacters from 'emoji-named-characters';
... |
lib/svg-icons/maps/local-florist.js | mobilelife/material-ui | 'use strict';
var React = require('react/addons');
var PureRenderMixin = React.addons.PureRenderMixin;
var SvgIcon = require('../../svg-icon');
var MapsLocalFlorist = React.createClass({
displayName: 'MapsLocalFlorist',
mixins: [PureRenderMixin],
render: function render() {
return React.createElement(
... |
admin/client/components/Toolbar/index.js | qwales1/keystone | import React from 'react';
import { Container } from 'elemental';
module.exports = React.createClass({
displayName: 'Toolbar',
render () {
return (
<div {...this.props} className="Toolbar">
<Container clearfix >
{this.props.children}
</Container>
</div>
);
},
});
// expose the children to th... |
frontend/test/app/components/EmailDialog-test.js | dannycoates/testpilot | import React from 'react';
import { expect } from 'chai';
import sinon from 'sinon';
import { shallow } from 'enzyme';
import EmailDialog from '../../../src/app/components/EmailDialog';
describe('app/components/EmailDialog', () => {
const mockClickEvent = {
preventDefault() {},
stopPropagation() {}
};
... |
site/WorkHard_Profile/src/SideBar.js | harrydrippin/Workhard | import React, { Component } from 'react';
import {List, ListItem} from 'material-ui/List';
import AssignmentIcon from 'material-ui/svg-icons/action/assignment';
import NoteIcon from 'material-ui/svg-icons/av/note';
import AddIcon from 'material-ui/svg-icons/av/playlist-add';
class SideBar extends Component {
const... |
docs/app/Examples/modules/Dropdown/Variations/DropdownExampleCompact.js | clemensw/stardust | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
import { getOptions } from '../common'
const DropdownExampleCompact = () => (
<Dropdown placeholder='Compact' compact selection options={getOptions(3, '')} />
)
export default DropdownExampleCompact
|
client/src/javascript/components/modals/Modals.js | stephdewit/flood | import _ from 'lodash';
import {CSSTransition, TransitionGroup} from 'react-transition-group';
import React from 'react';
import AddTorrentsModal from './add-torrents-modal/AddTorrentsModal';
import ConfirmModal from './confirm-modal/ConfirmModal';
import connectStores from '../../util/connectStores';
import EventType... |
src/app/LoadPage.js | EsriJapan/photospot-finder | // Copyright (c) 2016 Esri Japan
import React from 'react';
class LoadPage extends React.Component {
constructor (props) {
super(props);
}
render () {
let visibility = 'block';
if (this.props.visibility === false) {
visibility = 'none';
}
return (
<div style={{ display: visib... |
examples/todomvc/components/App.js | loggur/react-redux-provide | import React, { Component } from 'react';
import Header from './Header';
import MainSection from './MainSection';
export default class App extends Component {
render() {
return (
<div>
<Header/>
<MainSection/>
</div>
);
}
}
|
app/javascript/mastodon/features/explore/statuses.js | gol-cha/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import StatusList from 'mastodon/components/status_list';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { fetchTrendingStatuses } from 'mastodon/actio... |
src/components/icon/components/chevronRightOutline.js | fmsouza/wcode | import React from 'react';
// Icon taken from: https://github.com/spiffcode/ghedit
export const ChevronRightOutline = (props) => (
<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' {...props}>
<path d='M6 4v8l4-4-4-4zm1 2.414L8.586 8 7 9.586V6.414z'/>
</svg>
); |
ajax/libs/forerunnerdb/1.3.641/fdb-core+persist.min.js | BenjaminVanRyseghem/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
ajax/libs/yui/3.1.0pr2/loader/loader.js | hasantayyar/cdnjs | YUI.add('loader', function(Y) {
(function() {
var VERSION = Y.version,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN = 'http://yui.yahooapis.com/',
GALLERY_VERSION = Y.config.gallery || 'gallery-2010.03.02-18',
GALLERY_ROOT = GALLERY_VERSION + BUILD,
... |
src/TurnSwitch.js | LuckyHyena/how-to-start-a-fire | // @flow
import React from 'react';
import Toggle from 'material-ui/Toggle';
const styles = {
block: {
maxWidth: 250,
},
toggle: {
marginBottom: 16,
},
thumbOff: {
backgroundColor: '#ffcccc',
},
trackOff: {
backgroundColor: '#ff9d9d',
},
thumbSwitched: {
backgroundColor: 'red',
... |
src/routes/Home/components/HomeView.js | baronkwan/ig_clone | import React from 'react'
import DuckImage from '../assets/Duck.jpg'
import './HomeView.scss'
export const HomeView = () => (
<div style={styles.contentStyle}>
<h4>Welcome!</h4>
<img
alt='This is a duck, because Redux!'
className='duck'
src={DuckImage} />
</div>
)
const styles = {
cont... |
src/svg-icons/av/hearing.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvHearing = (props) => (
<SvgIcon {...props}>
<path d="M17 20c-.29 0-.56-.06-.76-.15-.71-.37-1.21-.88-1.71-2.38-.51-1.56-1.47-2.29-2.39-3-.79-.61-1.61-1.24-2.32-2.53C9.29 10.98 9 9.93 9 9c0-2.8 2.2-5 5-5s5 2.2 ... |
client/src/components/Tweet.js | flickz/jobtweets | import React from 'react'
import { Tweet } from 'react-twitter-widgets'
import ContentLoader from './Preloader'
import './styles/tweets.css'
export default ({tweets, fetching}) => {
if (tweets.length > 0) {
const embededTweets = tweets.map((tweet) => {
let id = tweet.id
return (
<div key={id}... |
httpdocs/theme/flatui/js/lib/jquery-1.9.1.js | KDE/ocs-webserver | /*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-2-4
*/
(function( window, undefined ) {
// Can't do t... |
springboot/GReact/src/main/resources/static/app/routes/misc/containers/CKEditorDemo.js | ezsimple/java | import React from 'react'
import {Stats, BigBreadcrumbs, WidgetGrid, JarvisWidget} from '../../../components'
import SmartCKEditor from '../../../components/forms/editors/SmartCKEditor'
export default class CKEditorDemo extends React.Component {
render() {
return (
<div id="content">
<div classNa... |
lib/yuilib/3.17.2/datatable-body/datatable-body.js | timhunt/moodle | /*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
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... |
src/Root.js | cdaringe/square-dance | import React, { Component } from 'react';
import App from './App';
import { createStore, applyMiddleware, combineReducers, compose } from 'redux';
import { devTools, persistState } from 'redux-devtools';
import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react';
import { Provider } from 'react-redux';... |
src/page/CheckBoxPage.js | jerryshew/react-uikits | import React, { Component } from 'react';
import {CN, TitleBlock} from '../util/tools';
import {CheckBox} from '../component';
import CodeView from './CodeView';
export class CheckBoxPage extends Component {
render() {
return (
<section>
{TitleBlock('复选框')}
<h4>... |
src/index.js | jacobwindsor/pathway-presenter | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import './index.css';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
demo15/index.js | bjtqti/how_to_use_webpack | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
react-ui/src/components/CaptureScroll/CaptureScroll.js | hokustalkshow/find-popular | import React, { Component } from 'react';
import { logScrollPosition } from '../../actions/captureScroll';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import styles from './CaptureScroll.scss';
class CaptureScroll extends Component {
render () {
const getScrollPosition = (even... |
src/svg-icons/image/crop-5-4.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCrop54 = (props) => (
<SvgIcon {...props}>
<path d="M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H5V7h14v10z"/>
</SvgIcon>
);
ImageCrop54 = pure(ImageCrop54);
ImageCro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.