path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
ajax/libs/quickblox/1.0.2/quickblox.min.js | tonytlwu/cdnjs | !function e(t,n,r){function o(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(i)return i(s,!0);throw new Error("Cannot find module '"+s+"'")}var l=n[s]={exports:{}};t[s][0].call(l.exports,function(e){var n=t[s][1][e];return o(n?n:e)},l,l.exports,e,t,n,r)}return n[s].exports... |
packages/wix-style-react/src/DropdownLayout/test/ExampleInfiniteScroll.js | wix/wix-style-react | import React from 'react';
import { DropdownLayout } from 'wix-style-react';
const generateOption = id => {
return { id, value: 'options ' + id };
};
export default class ExampleInfiniteScroll extends React.Component {
constructor(props) {
super(props);
this.loadMore = this.loadMore.bind(this);
this.i... |
src/svg-icons/social/person-outline.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPersonOutline = (props) => (
<SvgIcon {...props}>
<path d="M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C... |
ajax/libs/draft-js/0.2.1/Draft.js | sufuf3/cdnjs | var Draft =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return i... |
python/lib/Lib/site-packages/django/contrib/admin/media/js/jquery.js | vladmm/intellij-community | /*!
* 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.
... |
src/components/Pill/__tests__/Pill.spec.js | instacart/Snacks | import React from 'react'
import renderer from 'react-test-renderer'
import Pill from '../Pill'
describe('Pill', () => {
it('renders without throwing', () => {
const tree = renderer.create(<Pill>HI</Pill>).toJSON()
expect(tree).toMatchSnapshot()
})
it('renders correctly when style overrides are provided... |
js/jquery.js | dev-theory/dev-theory.github.io | /*! jQuery v1.11.1 | (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... |
ajax/libs/reactstrap/1.3.1/reactstrap.min.js | maruilian11/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define("Reactstrap",["react","react-dom"],e):"object"==typeof exports?exports.Reactstrap=e(require("react"),require("react-dom")):t.Reactstrap=e(t.React,t.ReactD... |
test/specs/collections/Menu/MenuItem-test.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import MenuItem from 'src/collections/Menu/MenuItem'
import { SUI } from 'src/lib'
import * as common from 'test/specs/commonTests'
import { sandbox } from 'test/utils'
describe('MenuItem', () => {
common.isConformant(MenuItem)
common.rendersChildren(MenuItem)
common.implementsCreateM... |
app/src/routes/LanguageGeneral.js | alpcanaydin/github-stats-for-turkey | import React from 'react';
import PropTypes from 'prop-types';
const LanguageGeneral = ({ data, positions }) => (
<div className="columns is-multiline">
<div className="column is-6">
<div className="box has-text-centered">
<p className="title">{data.users.toLocaleString()}</p>
<p className=... |
src/components/AddFishForm.js | mehmettugrulsahin/cotd-react-es6 | import React from 'react';
class AddFishForm extends React.Component {
static propTypes = {
addFish: React.PropTypes.func.isRequired
};
createFish(event) {
event.preventDefault();
const fish = {
name: this.name.value,
price: this.price.value,
status: this.status.value,
d... |
ajax/libs/react-router/0.13.2/ReactRouter.min.js | htmlstrap/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReactRouter=e(require("react")):t.ReactRouter=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].e... |
examples/counter/test/components/Counter.spec.js | zalmoxisus/redux-notify | import expect from 'expect';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import Counter from '../../components/Counter';
function setup() {
const actions = {
increment: expect.createSpy(),
incrementIfOdd: expect.createSpy(),
incrementAsync: expect.createSpy(),
decremen... |
ajax/libs/glamorous/3.17.0/glamorous.umd.tiny.min.js | sashberd/cdnjs | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react"),require("glamor")):"function"==typeof define&&define.amd?define(["react","glamor"],t):e.glamorous=t(e.React,e.Glamor)}(this,function(e,t){"use strict";function r(){return(arguments.length>0&&void 0!==arguments[0]?argum... |
packages/material-ui-icons/src/SettingsVoiceRounded.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M7 24h2v-2H7v2zm5-11c1.66 0 2.99-1.34 2.99-3L15 4c0-1.66-1.34-3-3-3S9 2.34 9 4v6c0 1.66 1.34 3 3 3zm-1 11h2v-2h-2v2zm4 0h2v-2h-2v2zm3.08-14c-.42... |
LogFileReader/log-viewer-fe/app/containers/LanguageProvider/index.js | luungoc2005/LogFileReader | /*
*
* 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... |
example24-draggable-header.js | xiongchen2012/something-on-server-side | const React = require('react');
const ReactDataGrid = require('react-data-grid');
const exampleWrapper = require('../components/exampleWrapper');
const {
DraggableHeader: { DraggableContainer }
} = require('react-data-grid-addons');
class Example extends React.Component {
createRows = () => {
let rows = [];
... |
docs/app/Examples/elements/Icon/Groups/index.js | mohammed88/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const IconGroupsExamples = () => (
<ExampleSection title='Groups'>
<ComponentExample
title='Icons'
description='Sever... |
client/src/routes.js | clayhan/rally | import React from 'react';
import { Route, IndexRoute} from 'react-router';
import AppView from './containers/AppView';
import HomeView from './components/HomeView';
import MenuView from './containers/MenuView';
import ProjectView from './containers/ProjectView';
import SelectedProjectView from './containers/SelectedP... |
client/src/app/routes/dashboard/components/SocialNetwork.js | zraees/sms-project | import React from 'react'
import FlotChart from '../../../components/graphs/flot/FlotChart'
const statsData = [
{
label: "Twitter",
data: [
[1, 27],
[2, 34],
[3, 51],
[4, 48],
[5, 55],
[6, 65],
[7, 61],
[8, 70],
[9, 65],
[10, 75],
[11, 57],
... |
app/scripts/src/popup/components/login-button.js | MrMamen/traktNRK | 'use strict';
var React = require('react');
var Loading = require('./loading.js');
module.exports = React.createClass({
handleClick: function(e) {
this.props.onLoginClicked(e);
chrome.runtime.sendMessage({ type: 'launchAuthorize' }, this.oauthCallback);
},
oauthCallback: function(options) {
if (opti... |
demo/modal/index.js | hhhyaaon/chequer | import React from 'react';
import ReactDOM from 'react-dom';
import Container from '../../tpls/index';
import Modal from '../../components/modal';
import Button from '../../components/button';
import './index.scss';
// 普通modal
export class D1_Modal extends React.Component {
constructor() {
super();
this.stat... |
src/issue/screens/pull-merge.screen.js | Antoine38660/git-point | /* eslint-disable no-shadow */
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { View, ScrollView, StyleSheet, TextInput, Alert } from 'react-native';
import { ListItem, Icon } from 'react-native-elements';
import ActionSheet from 'reac... |
ajax/libs/rxjs/2.3.4/rx.all.js | CosmicWebServices/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false... |
ajax/libs/core-js/0.4.0/library.js | CyrusSUEN/cdnjs | /**
* Core.js 0.4.0
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(returnThis, framework, undefined){
'use strict';
/******************************************************************************
* Module : common ... |
src/web/containers/Modal.js | andolf/react-redux-demo | import React from 'react';
import ReactModal from 'react-modal';
import Button from '../components/Button';
import style from '../style/containers/Modal.css';
ReactModal.setAppElement('#root');
export function ModalHeader({ children, onRequestClose, contentLabel }) {
return (
<div>
<header className={styl... |
js/components/home/index.js | dima11221122/63pokupki-react-native |
import React, { Component } from 'react';
import { TouchableOpacity, Image } from 'react-native';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Text, List, ListItem } from 'native-base';
import { Grid, Row } from 'react-native-easy-grid';
import { set... |
node_modules/react-bootstrap/es/NavbarBrand.js | ivanhristov92/bookingCalendar | 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 ... |
src/components/scenes/HomeScene.js | kjirou/battle-reversi | import React from 'react';
import { EVENTS } from '../../consts';
import NavigationBar from './NavigationBar';
import Scene from './Scene';
export default class HomeScene extends Scene {
_onClickStartBattle() {
this.dispatch(EVENTS.TOUCH_START_BATTLE);
}
render() {
return (
<div className="scene... |
js/src/views/Contract/contract.js | jesuscript/parity | // Copyright 2015, 2016 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any la... |
src/components/Index/ProfessionalProject.js | JordanVincent/jordan-vincent.com | import React from 'react';
import UniversalLink from 'components/UniversalLink';
import './ProfessionalProject.scss';
const ProfessionalProject = ({
title,
description,
coverSrc,
coverAlt,
href,
}) => {
return (
<UniversalLink className="Index/ProfessionalProject" href={href}>
<img
clas... |
sites/all/modules/jquery_update/replace/jquery/1.8/jquery.js | akhilesh-sh/masaya | /*!
* jQuery JavaScript Library v1.8.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Thu Sep 20 2012 21:13:05 GMT-0400 (Eastern Daylight Time)
*/
(function(... |
examples/js/advance/auto-rowkey-table.js | powerhome/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const jobs = [];
const jobTypes = [ 'A', 'B', 'C', 'D' ];
function addJobs(quantity) {
const startId = jobs.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
jo... |
ajax/libs/react-chartjs/0.1.2/react-chartjs.js | hare1039/cdnjs | /*!
* react-charts v0.1.1
* https://github.com/jhudson8/react-charts
*
*
* Copyright (c) 2014 Joe Hudson<joehud_AT_gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software withou... |
js/components/Header/index.js | mxstbr/postcss.parts | import React from 'react';
import styled from 'styled-components';
import { colors } from '../../constants';
import Wrapper from './Wrapper';
import Link from './Link';
import Title from './Title';
import Subtitle from './Subtitle';
import Anchor from './AbsoluteAnchor';
const Logo = styled(Anchor)`
right: initial... |
src/js/app-demo-form.js | training4developers/react_redux_12122016 | /* @flow */
import React from 'react';
import ReactDOM from 'react-dom';
import 'bootstrap-loader';
import '../css/styles.scss';
import { DemoForm } from './components/demo-form';
ReactDOM.render(<DemoForm />, document.querySelector('main'));
|
packages/material-ui-icons/lib/CreditScoreRounded.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")... |
src/modules/Sidebar/Sidebar.js | shengnian/shengnian-ui-react | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
AutoControlledComponent as Component,
childrenUtils,
customPropTypes,
getUnhandledProps,
getElementType,
META,
useKeyOnly,
} from '../../lib'
import SidebarPushable from './SidebarPushable'
import SidebarPus... |
src/svg-icons/av/fast-rewind.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFastRewind = (props) => (
<SvgIcon {...props}>
<path d="M11 18V6l-8.5 6 8.5 6zm.5-6l8.5 6V6l-8.5 6z"/>
</SvgIcon>
);
AvFastRewind = pure(AvFastRewind);
AvFastRewind.displayName = 'AvFastRewind';
AvFastRewin... |
src/styled/Squares.js | carlpeaslee/tictacturing | import React from 'react'
import {Layer, Text} from 'react-konva'
const Squares = ({
unit,
coordinates,
gameState,
win,
gameOver,
yourTurn,
ownMark,
move
}) => {
let squares = coordinates.map( (position, index) => {
let makeMove = move
let mark = gameState[index]
let fill = 'black'
if... |
ajax/libs/yui/3.10.3/scrollview-base/scrollview-base-debug.js | coupang/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
// Local vars
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
IE = Y.UA.ie... |
app/shared/modals/reservation-terms/ReservationTermsModal.js | fastmonkeys/respa-ui | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Button from 'react-bootstrap/lib/Button';
import Modal from 'react-bootstrap/lib/Modal';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { closeResourceTermsModal } from '../../../actions/uiAc... |
docs/src/modules/components/AdCodeFund.js | allanalexandre/material-ui | import React from 'react';
import { withStyles } from '@material-ui/core/styles';
import loadScript from 'docs/src/modules/utils/loadScript';
const styles = theme => ({
'@global': {
'#cf': {
overflow: 'hidden',
backgroundColor: theme.palette.background.level1,
padding: `${theme.spacing(1)}px ${... |
webpack/containers/response_sets/ResponseSetEditContainer.js | CDCgov/SDP-Vocabulary-Service | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Grid, Row, Col } from 'react-bootstrap';
import { setSteps } from '../../actions/tutorial_actions';
import { setStats } from '../../actions/landing';
import { fetchResponseSet, saveResponseSet,... |
public/assets/application-37738ad598ac8ccffa872429662e0a4f.js | mknicos/Hear-Me-Order | function initialize(){initMap(lat,lng,initialZoom),getRestaurantLocations(),getLocation()}function getRestaurantLocations(){for(rest_markers=$.map($(".restaurant"),function(t){return{name:$(t).data("name"),lat:$(t).data("latitude"),lng:$(t).data("longitude"),id:$(t).data("id")}}),console.log(rest_markers),i=0;i<rest_ma... |
test/index-test.js | dunncl15/weathrly | import { expect } from 'chai';
import React from 'react';
import Main from '../lib/components/Main';
import Weather from '../lib/components/Weathrly';
import CurrentWeather from '../lib/components/CurrentWeather';
import CurrentTemp from '../lib/components/current-weather/CurrentTemp';
import HighLow from '../lib/compo... |
ajax/libs/forerunnerdb/1.3.808/fdb-core.min.js | emmy41124/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/react-bootstrap-typeahead/0.3.2/react-bootstrap-typeahead.js | dc-js/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
files/inferno/1.2.2/inferno-mobx.js | PeterDaveHello/jsdelivr | /*!
* inferno-mobx v1.2.2
* (c) 2017 Ryan Megidov
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('inferno-component'), require('mobx'), require('inferno-create-class'), require('inferno-create-elemen... |
ajax/libs/core-js/1.2.7/shim.js | nolsherry/cdnjs | /**
* core-js 1.2.7
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2016 Denis Pushkarev
*/
!function(__e, __g, undefined){
'use strict';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require f... |
node_modules/react-router/es/Prompt.js | morselapp/shop_directory | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
src/components/header.js | christineoo/reddit-gallery | import React, { Component } from 'react';
import AppBar from 'react-toolbox/lib/app_bar';
export default class Header extends Component {
render() {
return (
<AppBar fixed flat>
<span>Reddit Gallery</span>
</AppBar>
)
}
}
|
stories/index.js | schneckentempo/ClicksAndImpressions | import React from 'react';
import { storiesOf, action, linkTo } from '@kadira/storybook';
import Button from './Button';
import Welcome from './Welcome';
storiesOf('Welcome', module)
.add('to Storybook', () => (
<Welcome showApp={linkTo('Button')}/>
));
storiesOf('Button', module)
.add('with text', () => (
... |
renderer/reducers/account/messages.js | LN-Zap/zap-desktop | import { defineMessages } from 'react-intl'
// use pattern [reducer]_message
/* eslint-disable max-len */
export default defineMessages({
account_invalid_password: 'Invalid password',
account_password_disabled: 'Password protection has been disabled',
account_password_enabled: 'Password protection has been enab... |
src/app/core/atoms/icon/icons/safety.js | blowsys/reservo | import React from 'react'; const Safety = (props) => <svg {...props} viewBox="0 0 24 24"><g><g><path d="M20,16 L20,12 C20,9.26442417 18.1607859,6.94895354 15.648437,6.23047065 L14,12 L13.9999917,6.0000009 C13.9968421,4.8834316 13.1026221,4 12,4 C10.8897109,4 10.0031633,4.89488391 10,6.00000083 L10,12 L8.35117105,6.2290... |
docs/app/Examples/elements/Header/Variations/HeaderExampleBlock.js | ben174/Semantic-UI-React | import React from 'react'
import { Header } from 'semantic-ui-react'
const HeaderExampleBlock = () => (
<Header as='h3' block>
Block Header
</Header>
)
export default HeaderExampleBlock
|
client/header/components/nav.js | jmeas/finance-app | import React from 'react';
import classNames from 'classnames';
import {Link} from 'react-router';
import FirstChild from '../../common/components/first-child';
import ReactCSSTransitionGroup from '../../vendor/css-transition-group';
export default function Nav({isOverlayNavVisible, toggleOverlayNav}) {
// This ensu... |
app/views/components/add-item-modal-test.js | whitebird08/sprintly-kanban | var _ = require('lodash');
var assert = require('chai').assert;
var React = require('react/addons');
var TestUtils = React.addons.TestUtils;
var sinon = require('sinon');
var stubRouterContext = require('../../lib/stub-router-context');
var AddItemModal = require('./add-item-modal');
var Modal = require('react-bootstr... |
src/components/PostCard.component.js | callmeaatrey/cleopatra | /*
* Post presentation component
* @props - index, picture, nickname, email, date, body
*/
import React, { Component } from 'react';
import { Card } from 'antd';
import { Link } from 'react-router';
import TimeSince from '../utils/TimeSince.util';
class PostCard extends Component {
render() {
return (
<Card
... |
examples/passing-props-to-children/app.js | neebz/react-router | import React from 'react';
import { Router, Route, Link, History } from 'react-router';
var App = React.createClass({
mixins: [ History ],
getInitialState() {
return {
tacos: [
{ name: 'duck confit' },
{ name: 'carne asada' },
{ name: 'shrimp' }
]
};
},
addTaco() {... |
ajax/libs/yui/3.11.0/simpleyui/simpleyui.js | extend1994/cdnjs | /**
The YUI module contains the components required for building the YUI seed file.
This includes the script loading mechanism, a simple queue, and the core
utilities for the library.
@module yui
@main yui
@submodule yui-base
**/
/*jshint eqeqeq: false*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The... |
src/js/components/icons/base/Troubleshoot.js | linde12/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
examples/04 Sortable/Stress Test/index.js | pairyo/react-dnd | import React, { Component } from 'react';
import Container from './Container';
export default class SortableStressTest extends Component {
constructor(props) {
super(props);
// Avoid rendering on server because the big data list is generated
this.state = { shouldRender: false };
}
componentDidMount(... |
docs/src/app/components/pages/components/TimePicker/ExampleInternational.js | manchesergit/material-ui | import React from 'react';
import TimePicker from 'material-ui/TimePicker';
const TimePickerInternational = () => (
<div>
<TimePicker
hintText="Custom Labels"
okLabel="确定"
cancelLabel="取消"
/>
</div>
);
export default TimePickerInternational;
|
client/src/components/layouts/Content.js | banderson/reactive-stock-ticker-demo | import React from 'react';
export default ({children}) => (
<div className="col-xs-6">
{children}
</div>
);
|
ajax/libs/forerunnerdb/1.3.579/fdb-all.min.js | hare1039/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... |
test/components/Fieldset.spec.js | rudionrails/signup-widget-react-mobx | import React from 'react';
import { shallow } from 'enzyme';
import chai, { expect } from 'chai';
import chaiEnzyme from 'chai-enzyme';
chai.use(chaiEnzyme());
import Fieldset from '../../src/components/Fieldset.react';
describe('<Fieldset />', () => {
const initialProps = {
icon: 'The Icon',
value: 'The V... |
src/Components/Product/Product.js | alopezsanchez/react-example-app | import React, { Component } from 'react';
import {GridTile} from 'material-ui/GridList';
import IconButton from 'material-ui/IconButton';
import StarBorder from 'material-ui/svg-icons/toggle/star-border';
import Star from 'material-ui/svg-icons/toggle/star';
import { Link } from 'react-router-dom';
class Product exten... |
ajax/libs/forerunnerdb/1.3.330/fdb-all.min.js | Amomo/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... |
src/Lifecycle.js | KinderGouello/React | import React from 'react';
import ReactDOM from 'react-dom';
class Lifecycle extends React.Component{
constructor() {
super();
this.state = {val: 0}
this.update = this.update.bind(this)
}
update() {
this.setState({
val: this.state.val + 1
})
}
componentWillMount() {
console.l... |
src/docs/CodeExample.js | StudentOfJS/ps-react-rod | import React from 'react';
import PropTypes from 'prop-types';
import hljs from 'highlight.js/lib/highlight'
import javascript from 'highlight.js/lib/languages/javascript'
// This way is easy, but adds 170K gzipped to bundle since all langs are included.
// import Highlight from 'react-highlight';
class CodeExample e... |
shared/tests/components.spec.js | WillHearn/apoc | import expect from 'expect';
import TestUtils from 'react-addons-test-utils';
import PostListItem from '../components/PostListItem/PostListItem';
import PostCreateView from '../components/PostCreateView/PostCreateView';
import React from 'react';
import expectJSX from 'expect-jsx';
import { Link } from 'react-router';
... |
src/client/components/ConsoleLoggerView.js | IUnknown68/karma-live-reporter | //==============================================================================
import React, { Component } from 'react';
import attachListener from 'attachListener';
import autoScroll from 'autoScroll';
import { BROWSER_LOG, BROWSER_START } from 'app-constants';
//====================================================... |
src/Parser/Monk/Brewmaster/Modules/Items/StormstoutsLastGasp.js | hasseboulen/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import { formatNumber } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import getDamageBonus from '../Core/GetDamageBonus';
const KEG_SMASH_DMG... |
tests/react/useLayoutEffect_hook.js | AgentME/flow | // @flow
import React from 'react';
{
React.useLayoutEffect(); // Error: function requires another argument.
}
{
// Ok variants without cleanup functions
React.useLayoutEffect(() => {});
React.useLayoutEffect(() => {}, []);
React.useLayoutEffect(() => {}, [1, 2, 3]);
// Ok variants with cleanup function... |
app/javascript/mastodon/features/followers/index.js | imomix/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import {
fetchAccount,
fetchFollowers,
expandFollowers,
} from '../../actions/account... |
fields/types/text/TextFilter.js | jacargentina/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import { FormField, FormInput, FormSelect, SegmentedControl } from 'elemental';
const INVERTED_OPTIONS = [
{ label: 'Matches', value: false },
{ label: 'Does NOT Match', value: true },
];
const MODE_OPTIONS = [
{ label: 'Contains', value: 'contains' },
... |
admin/src/views/signin.js | lastjune/keystone | import classnames from 'classnames';
import React from 'react';
import SessionStore from '../stores/SessionStore';
import { Alert, Button, Form, FormField, FormInput, Spinner } from 'elemental';
import { createHistory } from 'history';
var history = createHistory();
function wasSignedOut() {
return window.location.s... |
fields/components/columns/ArrayColumn.js | helloworld3q3q/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var ArrayColumn = React.createClass({
displayName: 'ArrayColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue () {
... |
Realization/frontend/czechidm-core/src/components/advanced/TreeNodeInfo/TreeNodeInfo.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
//
import { TreeNodeManager, SecurityManager, DataManager } from '../../../redux';
import AbstractEntityInfo from '../EntityInfo/AbstractEntityInfo';
import EntityInfo from '../EntityInfo/EntityInfo';
const manager = ... |
app/containers/HomePage/index.js | theseushu/funong-web | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it and remove
* the l... |
src/app/components/layout/AspectRatio.js | meedan/check-web | import React from 'react';
import { FormattedMessage, FormattedHTMLMessage, injectIntl, defineMessages } from 'react-intl';
import PropTypes from 'prop-types';
import Box from '@material-ui/core/Box';
import Button from '@material-ui/core/Button';
import IconButton from '@material-ui/core/IconButton';
import Typography... |
app/javascript/flavours/glitch/features/notifications/components/grant_permission_button.js | Kirishima21/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
export default class GrantPermissionButton extends React.PureComponent {
static propTypes = {
onClick: PropTypes.func.isRequired,
};
render () {
return (
<button className='text-btn colum... |
node_modules/http-server/node_modules/union/node_modules/qs/test/browser/jquery.js | avadhuts-cuelogic/angular-seed | /*!
* 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.
... |
src/nuggets/node/client/src/views/Weather/Components/Forecast.js | civiclee/Hack4Cause2017 | import React from 'react';
const Forecast = React.createClass({
renderForecast(){
var summary = this.props.weather.daily.summary;
return summary;
},
render() {
var style = {
marginTop: "10px",
marginBottom: "20px",
marginLeft: "11px",
... |
lib/js/components/line-chart.js | DAIAD/react-echarts | 'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
// A convenience wrapper for line-only charts ... |
misc/tabledrag.js | JauhienKaraliou/drpl7.test | (function ($) {
/**
* Drag and drop table rows with field manipulation.
*
* Using the drupal_add_tabledrag() function, any table with weights or parent
* relationships may be made into draggable tables. Columns containing a field
* may optionally be hidden, providing a better user experience.
*
* Created tableD... |
ajax/libs/react-inlinesvg/0.6.2/react-inlinesvg.js | dakshshah96/cdnjs | (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=self}else{g=this}g.ReactInlineSVG... |
client/containers/overview.js | brewgauge/bg-frontend | 'use strict'
import React from 'react'
import {connect} from 'react-redux'
import {Link} from 'react-router'
import {Panel, PageHeader, HealthList} from '../components/index'
import ChartistGraph from 'react-chartist'
import {subscribe, unsubscribe} from '../actions/sensor'
import _ from 'lodash'
export const Overvie... |
fields/types/textarea/TextareaField.js | mekanics/keystone | import Field from '../Field';
import React from 'react';
module.exports = Field.create({
displayName: 'TextareaField',
renderField () {
var styles = {
height: this.props.height
};
return <textarea name={this.props.path} styles={styles} ref="focusTarget" value={this.props.value} onChange={this.valueChanged... |
src/components/Header/Header.js | jifeon/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './Header.css';
import withStyles from '../../decorators/withStyles';
import Link from '../../utils/Link';
import Navigation from '../Navigation';
@withStyles(styles)
class Header {
render() {
... |
examples/components/RadioGroup.js | hanbar/formsy-react | import React from 'react';
import Formsy from 'formsy-react';
const MyRadioGroup = React.createClass({
mixins: [Formsy.Mixin],
componentDidMount() {
const value = this.props.value;
this.setValue(value);
this.setState({ value });
},
changeValue(value) {
this.setValue(value);
this.setState(... |
src/components/GameCard/GameCard.js | jhlav/mpn-web-app | /* eslint-disable global-require, import/no-dynamic-require */
import React from 'react';
import PropTypes from 'prop-types';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import Avatar from 'react-md/lib/Avatars/Avatar';
import Card from 'react-md/lib/Cards/Card';
import CardActions from 'react-md... |
packages/wix-style-react/src/FacesRatingBar/FacesRatingBar.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import { withFocusable } from 'wix-ui-core/dist/src/hocs/Focusable/FocusableHOC';
import { st, classes } from './FacesRatingBar.st.css';
import { dataHooks, facesData } from './constants';
import Box from '../Box/Box';
import Tooltip from '../Tooltip/Tool... |
src/svg-icons/device/signal-cellular-2-bar.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellular2Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M2 22h20V2z"/><path d="M14 10L2 22h12z"/>
</SvgIcon>
);
DeviceSignalCellular2Bar = pure(DeviceSignalCellular2Bar);
Device... |
src/ModalDialog.js | laran/react-bootstrap | /* eslint-disable react/prop-types */
import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const ModalDialog = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
/**
* A Callback fired when the header closeButton or non-static backdrop is ... |
src/Progress/CircularProgress.js | AndriusBil/material-ui | // @flow weak
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
const THICKNESS = 3.6;
const PI = 3.1416; // Simple version of Math.PI for the CSS generated.
function getRelativeValue(value, min, max) {
const clampedVa... |
ajax/libs/Hyphenator/4.0.0/patterns/en-gb.min.js | BenjaminVanRyseghem/cdnjs | Hyphenator.languages["en-gb"]={leftmin:2,rightmin:3,specialChars:"",patterns:{3:"sw2s2ym1p2chck1cl2cn2st24sss1rzz21moc1qcr2m5q2ct2byb1vcz2z5sd3bs1jbr4m3rs2hd2gbo2t3gd1jb1j1dosc2d1pdr2dt4m1v1dum3w2myd1vea2r2zr1we1bb2e2edn1az1irt2e1fe1j4aya4xr1q2av2tlzd4r2kr1jer1m1frh2r1fr2er1bqu44qft3ptr22ffy3wyv4y3ufl21fo1po2pn2ft3fut1... |
app/javascript/mastodon/features/compose/components/compose_form.js | robotstart/mastodon | import React from 'react';
import CharacterCounter from './character_counter';
import Button from '../../../components/button';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import ReplyIndicatorContainer from '../containers/reply_indicator_container';
import Autosugges... |
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.