path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/post/Feed/PostFeedList.js | Sekhmet/busy | import React from 'react';
import { Link } from 'react-router';
import { FormattedMessage, FormattedRelative, injectIntl } from 'react-intl';
import BodyShort from '../BodyShort';
import PostActionButtons from '../PostActionButtons';
import Avatar from '../../widgets/Avatar';
import SteemPowerIcon from '../../widgets/S... |
src/components/Session/List/List.js | diegocasmo/workouter | import React from 'react'
import {SessionItem} from './Item'
export const SessionList = ({sessions}) => (
sessions.length > 0
? <div className='list-group list-group-flush'>
{sessions.map((x,i) => <SessionItem key={i} session={x}/>)}
</div>
: <p className='text-center mt-2 mb-0'>There are no se... |
app/javascript/mastodon/features/introduction/index.js | MitarashiDango/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ReactSwipeableViews from 'react-swipeable-views';
import classNames from 'classnames';
import { connect } from 'react-redux';
import { FormattedMessage } from 'react-intl';
import { closeOnboarding } from '../../actions/onboarding';
import screenHell... |
demo/icons/communication.js | jahglow/MDIcon | import React from 'react';
export const ic_business = <path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z" />;
export const ic_call = <path d="M6.62 10.79a15.15... |
javascripts/jquery-1.11.1.min.js | vfonic/water_logic | /*! 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... |
demo/index.js | scostaqb/recharts | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, browserHistory } from 'react-router';
import App from './container/App';
ReactDOM.render((
<Router history={browserHistory}>
<Route path="/" component={App} />
</Router>
), document.getElementById('root'));
|
packages/material-ui-icons/src/PhoneLocked.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let PhoneLocked = props =>
<SvgIcon {...props}>
<path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C8.7 6.45 8.5 5.25 8.5 4c... |
ajax/libs/boardgame-io/0.49.4/esm/react-native.js | cdnjs/cdnjs | import 'nanoid/non-secure';
import { _ as _inherits, a as _createSuper, b as _createClass, c as _defineProperty, d as _classCallCheck, e as _objectWithoutProperties, f as _objectSpread2 } from './Debug-2fab6ce8.js';
import 'redux';
import './turn-order-406c4349.js';
import 'immer';
import 'lodash.isplainobject';
import... |
js/components/pages/NotFound.react.js | trongthaonh/react-redux-demo | import React, { Component } from 'react';
import { Link } from 'react-router';
class NotFound extends Component {
render() {
return (
<article>
<h1>Page not found.</h1>
<Link to="/" className="btn">Home</Link>
</article>
);
}
}
export default NotFound;
|
packages/shared/forks/object-assign.umd.js | jdlehman/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import React from 'react';
const ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
export d... |
app/containers/FeaturePage/index.js | bhefty/react-redux-boilerplate | /*
*
* FeaturePage
*
*/
import React from 'react'
import Helmet from 'react-helmet'
import styled from 'styled-components'
import H1 from 'components/H1'
import H3 from 'components/H3'
const Wrapper = styled.div`
p {
margin-left: 1.5em;
}
`
export class FeaturePage extends React.PureComponent { // eslin... |
packages/reactor-kitchensink/src/examples/Grid/AdvancedFeatures/StockTicker/StockTicker.js | sencha/extjs-reactor | import React, { Component } from 'react';
import { Grid, Toolbar, Label, SliderField, CheckBoxField, Column, RendererCell, SparkLineLine, Container } from '@extjs/ext-react';
import model from '../../CompanyModel';
import './Ticker.css';
export default class StockTickerGridExample extends Component {
state = {
... |
tests/mocha/unit-tests/react/components/CoreFonts/core.font.button.spec.js | blueliquiddesigns/gravity-forms-pdf-extended | import React from 'react'
import { shallow, mount } from 'enzyme'
import CoreFontButton from '../../../../../../src/assets/js/react/components/CoreFonts/CoreFontButton'
describe('<CoreFontButton />', () => {
it('Render a button', () => {
const clickCallback = sinon.spy()
const comp = shallow(
<CoreFon... |
src/routes.js | zbrukas/wwf-store | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
/*jshint esnext: true */
import React from 'react';
impor... |
src/ui/scoreboard.js | josmardias/tic-tac-toe | import React from 'react'
const isEqual = (x) => (n) => n === x
const Scoreboard = ({ statistics }) => (
<div style={{ fontSize: '36px', textAlign: 'center' }}>
<span style={{ fontStyle: 'italic' }}>Player 1</span>
<span style={{ marginLeft: '25px' }}>{statistics.filter(isEqual(1)).length || 0}</span>
<... |
base/js/jquery.js | DeltaTech2017/ProyectoFinal | /*! 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... |
src/PaginationButton.js | albertojacini/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import createSelectedEvent from './utils/createSelectedEvent';
import CustomPropTypes from './utils/CustomPropTypes';
const PaginationButton = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
... |
ajax/libs/react-dom/16.1.0-beta.1/cjs/react-dom-server.browser.production.min.js | BenjaminVanRyseghem/cdnjs | /*
React v16.1.0-beta.1
react-dom-server.browser.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 h=require("object-assign"),n=require("react"),aa=require("fbjs/... |
core/misc/tabledrag.js | jonbk/headlessdp8 | /**
* @file
* Provide dragging capabilities to admin uis.
*/
/**
* Triggers when weights columns are toggled.
*
* @event columnschange
*/
(function ($, Drupal, drupalSettings) {
'use strict';
/**
* Store the state of weight columns display for all tables.
*
* Default value is to hide weight colu... |
ajax/libs/angular-ui-grid/3.0.4/ui-grid.js | wout/cdnjs | /*!
* ui-grid - v3.0.4 - 2015-08-13
* Copyright (c) 2015 ; License: MIT
*/
(function () {
'use strict';
angular.module('ui.grid.i18n', []);
angular.module('ui.grid', ['ui.grid.i18n']);
})();
(function () {
'use strict';
angular.module('ui.grid').constant('uiGridConstants', {
LOG_DEBUG_MESSAGES: true,... |
ajax/libs/vuex/4.0.0-rc.1/vuex.esm-bundler.js | cdnjs/cdnjs | /*!
* vuex v4.0.0-rc.1
* (c) 2020 Evan You
* @license MIT
*/
import { inject, watch, reactive, computed } from 'vue';
var storeKey = 'store';
function useStore (key) {
if ( key === void 0 ) key = null;
return inject(key !== null ? key : storeKey)
}
var target = typeof window !== 'undefined'
? window
: t... |
src/components/App.js | preciz/webpack-react-demo | import React, { Component } from 'react';
import DemoDialog from './DemoDialog';
import Login from './Login';
export class App extends Component {
constructor(props) {
super(props);
this.state = {
dialogOpen: true,
username: '',
password: '',
submitting: false
};
}
closeDialo... |
src/layouts/CoreLayout.js | seespace/dota2assistant | import React from 'react'
// Note: Stateless/function components *will not* hot reload!
// react-transform *only* works on component classes.
//
// Since layouts rarely change, they are a good place to
// leverage React's new Statelesss Functions:
// https://facebook.github.io/react/docs/reusable-components.html#state... |
src/components/Loader/index.js | Perspicere/PerspicereMagazine | import React from 'react'
const Loader = props => (
<svg width={24} height={24} {...props}>
<path fill="#333" d="M0 0h4v7H0z">
<animateTransform
attributeType="xml"
attributeName="transform"
type="scale"
values="1,1; 1,3; 1,1"
begin="0s"
dur="0.6s"
re... |
client/src/components/dashboard/common/DropdownMulti.js | no-stack-dub-sack/alumni-network | import { Dropdown } from 'semantic-ui-react';
import propTypes from 'prop-types';
import React from 'react';
const DropdownMulti = (props) => (
<Dropdown
{ ...props }
multiple
selection />
);
DropdownMulti.propTypes = {
fluid: propTypes.bool,
noResultsMessage: propTypes.string,
onChange: propTypes... |
src/components/CurrentInfo.js | richard-leagh/evolution-calc | import React from 'react';
const CurrentInfo = ({
pokemon,
calculate
}) => {
let currentInfo = {};
return (
<div className="currentInfo">
<form onSubmit={e => {
e.preventDefault();
calculate(currentInfo.heldPokemon.value,currentInfo.heldCandies.value,pokemon.candyRequired);
}}>
<label className=... |
mod13/src/Counter.js | mauricedb/mwd-2017-02-20 | import React, { Component } from 'react';
import Hello from './Hello';
class CounterPresentation extends Component {
constructor(){
super();
this.onClick = this.onClick.bind(this);
}
onClick(){
this.props.increment();
this.props.increment();
this.props.increment... |
docs/app/Examples/elements/List/Content/ListExampleDescription.js | mohammed88/Semantic-UI-React | import React from 'react'
import { List } from 'semantic-ui-react'
const ListExampleDescription = () => (
<List>
<List.Item>
<List.Icon name='marker' />
<List.Content>
<List.Header as='a'>Krowlewskie Jadlo</List.Header>
<List.Description>An excellent polish restaurant, quick delivery ... |
src/Controls/ControlString.js | rpominov/react-demo | import React from 'react'
import createReactClass from 'create-react-class'
import T from 'prop-types'
import Group from './Group'
import InputText from './InputText'
export default createReactClass({
displayName: 'Demo.Controls.ControlString',
propTypes: {
name: T.string.isRequired,
value: T.string.isRe... |
app/containers/RequestHandler/index.js | dcarneiro/my-react-boilerplate | /*
*
* RequestHandler
*
* I've needed something that received the different request errors and trigger
* a notification for them. I have a strong belief that this is not the best way
* to do it.
*
*/
import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from '... |
src/svg-icons/action/done.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDone = (props) => (
<SvgIcon {...props}>
<path d="M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/>
</SvgIcon>
);
ActionDone = pure(ActionDone);
ActionDone.displayName = 'ActionDone';
ActionDone.mui... |
src/progress-bar.js | ldstudio-ca/react-pdfjs-mobile | import React from 'react';
const style = {
loadingBar: {
position: 'relative',
height: '.4rem',
borderBottom: '.11rem solid rgb(180,188,240)',
zIndex: 100,
backgroundColor: '#2D4452',
boxShadow: '0 0 6px 2px rgba(210,208,210, 0.8)',
display: 'block'//this.pro... |
ajax/libs/yui/3.7.3/event-focus/event-focus-min.js | AMoo-Miki/cdnjs | YUI.add("event-focus",function(e,t){function u(t,r,u){var a="_"+t+"Notifiers";e.Event.define(t,{_useActivate:o,_attach:function(i,s,o){return e.DOM.isWindow(i)?n._attach([t,function(e){s.fire(e)},i]):n._attach([r,this._proxy,i,this,s,o],{capture:!0})},_proxy:function(t,r,i){var s=t.target,f=t.currentTarget,l=s.getData(... |
ajax/libs/react/0.14.0-alpha2/react.min.js | Amomo/cdnjs | /**
* React v0.14.0-alpha2
*
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same direct... |
src/library/Choice/ChoiceGroup.js | mineral-ui/mineral-ui | /* @flow */
import React, { Children, cloneElement, createElement } from 'react';
import { SIZE, TYPE } from './constants';
import { ChoiceGroupRoot as Root } from './styled';
import type { ChoiceGroupDefaultProps, ChoiceGroupProps } from './types';
const isChecked = (checked: string | Array<string>, value) => {
re... |
src/svg-icons/content/low-priority.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentLowPriority = (props) => (
<SvgIcon {...props}>
<path d="M14 5h8v2h-8zm0 5.5h8v2h-8zm0 5.5h8v2h-8zM2 11.5C2 15.08 4.92 18 8.5 18H9v2l3-3-3-3v2h-.5C6.02 16 4 13.98 4 11.5S6.02 7 8.5 7H12V5H8.5C4.92 5 2 7.... |
.templates/new-module/src/js/react.js | govau/uikit | /*! [replace-name] v[replace-version] */
/***************************************************************************************************************************************************************
*
* [-replace-name-] function
*
* [-replace-description-]
*
****************************************************... |
app/views/splash/Splash.js | CodeRowerSoftware/react-native-starter-app | /**
* Created by garima.kaila on 2017-04-21.
*/
import React, { Component } from 'react';
import {
View,
Text
} from 'react-native';
import {
NavigationActions
} from 'react-navigation';
class SplashScreen extends React.Component {
static navigationOptions = {
title: 'Welcome',
hea... |
old-or-not-typescript/learn-redux/todomvc/test/components/TodoItem.spec.js | janaagaard75/framework-investigations | import expect from 'expect'
import React from 'react'
import TestUtils from 'react-addons-test-utils'
import TodoItem from '../../components/TodoItem'
import TodoTextInput from '../../components/TodoTextInput'
function setup( editing = false ) {
const props = {
todo: {
id: 0,
text: 'Use Redux',
... |
ajax/libs/yui/3.3.0/event/event-min.js | voronianski/cdnjs | var GLOBAL_ENV=YUI.Env;if(!GLOBAL_ENV._ready){GLOBAL_ENV._ready=function(){GLOBAL_ENV.DOMReady=true;GLOBAL_ENV.remove(YUI.config.doc,"DOMContentLoaded",GLOBAL_ENV._ready);};GLOBAL_ENV.add(YUI.config.doc,"DOMContentLoaded",GLOBAL_ENV._ready);}YUI.add("event-base",function(e){e.publish("domready",{fireOnce:true,async:tru... |
ReactNative/weather/index.android.js | AllanChen/WorkSample | /**
* 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 weather extends Component {
render() {
return (
<View style={styles.container}>... |
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | middle8media/SoTL-WP-Theme | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
test/test_helper.js | stoicaalina21/react-learning | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
node_modules/react-icons/io/ios-folder.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const IoIosFolder = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m34.4 13.8c0.3 0 0.6 0.3 0.6 0.6v18.6c0 1.1-0.8 2-1.8 2h-31.2c-1.1 0-2-0.9-2-2v-18.6c0-0.3 0.3-0.6 0.6-0.6h33.8z m-1.2-6.3c1 0 1.8 0.8 1.8 1.8v3.3c-0.2-0.1-0.4-0.1-... |
tests/js/containers/Login.spec.js | AdrienAgnel/testDjangoApp | /* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */
/* eslint import/no-named-default: 0 */
import React from 'react';
import sinon from 'sinon';
import nock from 'nock';
import { expect } from 'chai';
import { mount } from 'enzyme';
import configureStore from 'redux-mock-store';
impo... |
test/ButtonToolbarSpec.js | pandoraui/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ButtonToolbar from '../src/ButtonToolbar';
import ButtonGroup from '../src/ButtonGroup';
import Button from '../src/Button';
describe('ButtonToolbar', function () {
it('Should output a button toolbar', function () {
let inst... |
App/config/Navigation/index.js | araneforseti/caretaker-app | import React, { Component } from 'react';
import {DrawerNavigator, NavigationActions} from 'react-navigation';
import UserGateway, { Permissions } from '../../data/UserGateway/';
import {adminRoutes, helperRoutes, config} from './config.js';
export default class Navigation extends Component {
constructor() {
... |
ajax/libs/react-bootstrap/0.3.0/react-bootstrap.min.js | nolsherry/cdnjs | /*! react-bootstrap 2014-02-01 */
!function(a,b){"function"==typeof define&&define.amd?define(["react"],b):a.ReactBootstrap=b(a.React)}(this,function(a){var b,c,d;return function(a){function e(a,b){var c,d,e,f,g,h,i,j,k,l,m=b&&b.split("/"),n=p.map,o=n&&n["*"]||{};if(a&&"."===a.charAt(0)&&b){for(m=m.slice(0,m.length-1),... |
ajax/libs/datatables/1.9.0/js/jquery.js | bragma/cdnjs | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
client/src/components/FieldHolder/tests/FieldHolder-test.js | silverstripe/silverstripe-admin | /* global jest, jasmine, describe, it, expect, beforeEach */
import Adapter from 'enzyme-adapter-react-16';
jest.mock('components/FormAlert/FormAlert');
import React from 'react';
import ReactTestUtils from 'react-dom/test-utils';
import fieldHolder from '../FieldHolder';
import Enzyme, { mount } from 'enzyme';
En... |
frontend/sections/timeline/category/category.js | apostolidhs/wiregoose | import includes from 'lodash/includes';
import now from 'lodash/now';
import isEmpty from 'lodash/isEmpty';
import React from 'react';
import PropTypes from 'prop-types';
import CSSModules from 'react-css-modules';
import { LinkContainer } from 'react-router-bootstrap';
import NavItem from 'react-bootstrap/lib/NavItem'... |
src/components/ObjectAudio/ObjectAudio.js | OndrejPulicar/GridEditor | import React, {Component, PropTypes} from 'react';
import ObjectContentIcon from '../ObjectContentIcon/ObjectContentIcon.js';
export default class ObjectImg extends Component {
static propTypes = {
content: PropTypes.string,
edit: PropTypes.bool,
objectContentIconPosition: PropTypes.string,
changeObj... |
ajax/libs/js-data-http/2.2.2/js-data-http.js | pvnr0082t/cdnjs | /*!
* js-data-http
* @version 2.2.2 - Homepage <https://github.com/js-data/js-data-http>
* @copyright (c) 2014-2016 js-data-http project authors
* @license MIT <https://github.com/js-data/js-data-http/blob/master/LICENSE>
*
* @overview HTTP adapter for js-data.
*/
(function webpackUniversalModuleDefinition(root, factor... |
client/admin/info/UsageSection.js | Sing-Li/Rocket.Chat | import { Skeleton } from '@rocket.chat/fuselage';
import React from 'react';
import Subtitle from '../../components/basic/Subtitle';
import { useTranslation } from '../../contexts/TranslationContext';
import { useFormatMemorySize } from '../../hooks/useFormatMemorySize';
import { DescriptionList } from './DescriptionL... |
src/tick-trade/PurchaseConfirmationMobile.js | qingweibinary/binary-next-gen | import React from 'react';
import MobilePage from '../containers/MobilePage';
import PurchaseConfirmation from '../_common/PurchaseConfirmation';
export default (props) => (
<MobilePage toolbarShown={false} backBtnBarTitle="Purchase Confirmation">
<PurchaseConfirmation {...props} />
</MobilePage>
);
|
src/WorkWeek.js | jquense/react-big-calendar | import PropTypes from 'prop-types'
import React from 'react'
import Week from './Week'
import TimeGrid from './TimeGrid'
function workWeekRange(date, options) {
return Week.range(date, options).filter(
(d) => [6, 0].indexOf(d.getDay()) === -1
)
}
class WorkWeek extends React.Component {
render() {
/**
... |
elcri.men/src/components/Language.js | diegovalle/new.crimenmexico | import React from 'react';
import {useIntl, injectIntl, FormattedMessage} from 'react-intl';
import {routes, routes_inverted} from '../../src/i18n';
import us_flag from '../assets/images/us.png';
import mx_flag from '../assets/images/mx.png';
const Language = props => {
const intl = useIntl ();
return (
<React... |
scripts/components/ClickCounterWrapper.js | philholden/react-iframe-bind | import React from 'react';
import ClickCounter from './ClickCounter';
import ClickCounterStore from '../stores/ClickCounterStore';
import ClickCounterActions from '../actions/ClickCounterActions';
export default class ClickCounterWrapper extends React.Component {
componentWillMount(){
ClickCounterStore.addChang... |
client/pages/examples/threejs/graphing/elements/basics-persp.js | fdesjardins/webgl | import React from 'react'
import * as THREE from 'three'
import threeOrbitControls from 'three-orbit-controls'
import { FaceNormalsHelper } from 'three/examples/jsm/helpers/FaceNormalsHelper'
import { createAxes, createLineGraph, create3dGraph } from '../utils'
const init = ({ state }) => {
const canvas = document.... |
ajax/libs/yui/3.10.0pr1/datatable-core/datatable-core-debug.js | ematsusaka/cdnjs | YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@since 3.5.0
**/
var INVALID = Y.Attribute.INVALID_VALUE,
Lang = Y.Lang,
isFunction = Lang.isFunction,
isObject = Lang.isO... |
src/noGames.js | joshpollard/react-nhl-scoreboard | import React, { Component } from 'react';
//import './gameDetail.css';
class NoGames extends Component {
// constructor(props) {
// super(props);
// }
render() {
return (
<div><h2>No Games Today.</h2></div>
);
}
}
export default NoGames; |
ajax/libs/backbone-react-component/0.8.0/backbone-react-component-min.js | emmy41124/cdnjs | !function(a,b){"function"==typeof define&&define.amd?define(["react","backbone","underscore"],b):"undefined"!=typeof module&&module.exports?module.exports=b(require("react"),require("backbone"),require("underscore")):b(a.React,a.Backbone,a._)}(this,function(a,b,c){"use strict";function d(a,b,d){this.component=a;var e,f... |
ajax/libs/analytics.js/1.3.9/analytics.min.js | DaAwesomeP/cdnjs | (function(){function require(path,parent,orig){var resolved=require.resolve(path);if(null==resolved){orig=orig||path;parent=parent||"root";var err=new Error('Failed to require "'+orig+'" from "'+parent+'"');err.path=orig;err.parent=parent;err.require=true;throw err}var module=require.modules[resolved];if(!module._resol... |
ajax/libs/backbone.js/1.2.3/backbone.js | voronianski/cdnjs | // Backbone.js 1.2.3
// (c) 2010-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://backbonejs.org
(function(factory) {
// Establish the root object, `window` (`se... |
ajax/libs/webshim/1.15.0-RC2/dev/shims/es6.js | wmkcc/cdnjs | // ES6-shim 0.15.0 (c) 2013-2014 Paul Miller (http://paulmillr.com)
// ES6-shim may be freely distributed under the MIT license.
// For more details and documentation:
// https://github.com/paulmillr/es6-shim/
webshim.register('es6', function($, webshim, window, document, undefined){
'use strict';
var isCallableW... |
ajax/libs/react-native-web/0.16.5/exports/unmountComponentAtNode/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 { unmountComponentAtNode } from 'react-dom';
export default unmountComponentAtNode; |
src/components/SiteHeader/index.js | iris-dni/iris-frontend | import React from 'react';
import Container from 'components/Container';
import Navigation from 'containers/Navigation';
import styles from './site-header.scss';
const SiteHeader = () => (
<header className={styles.root}>
<Container>
<Navigation />
</Container>
</header>
);
export default SiteHeader... |
components/frontend/src/fields/Comment.js | ICTU/quality-time | import React from 'react';
import { EDIT_REPORT_PERMISSION } from '../context/Permissions';
import { TextInput } from './TextInput';
export function Comment(props) {
return (
<TextInput
label="Comment"
placeholder="Enter comments here (HTML allowed; URL's are transformed into links)... |
definitions/npm/styled-components_v2.x.x/flow_v0.42.x-v0.52.x/test_styled-components_native_v2.x.x.js | orlandoc01/flow-typed | // @flow
import nativeStyled, {
ThemeProvider as NativeThemeProvider,
withTheme as nativeWithTheme,
keyframes as nativeKeyframes,
} from 'styled-components/native'
import React from 'react'
import type {
Theme as NativeTheme,
Interpolation as NativeInterpolation,
// Temporary
ReactComponentFunctional as ... |
src/svg-icons/editor/border-right.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderRight = (props) => (
<SvgIcon {...props}>
<path d="M7 21h2v-2H7v2zM3 5h2V3H3v2zm4 0h2V3H7v2zm0 8h2v-2H7v2zm-4 8h2v-2H3v2zm8 0h2v-2h-2v2zm-8-8h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm8 8h2v-2h-2v2zm4-4h... |
src/pages/padronagem.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Padronagem' />
)
|
client/ui/atoms/litter.story.js | LestaD/InstaClone | import React from 'react'
import { storiesOf } from '@storybook/react'
import { action } from '@storybook/addon-actions'
import { Litter } from './litter'
storiesOf('ui/atoms', module)
.addWithJSX('Litter', () => (
<Litter onClick={action('litter')} />
))
|
ajax/libs/6to5/2.3.0/browser.js | kalkidanf/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return... |
src/components/Root.js | oglimmer/linky |
import React from 'react';
import PropTypes from 'prop-types';
import { Provider } from 'react-redux';
import { ConnectedRouter } from 'react-router-redux';
import { startRssUpdates } from '../redux/actions/links';
import AlertAdapter from '../components/AlertAdapter';
import Routing from '../routes/Routing';
impo... |
src/components/ThankYou/ThankYou.js | ResistanceCalendar/resistance-calendar-frontend | import React from 'react';
import { Link } from 'react-router-dom';
import styles from './ThankYou.sass';
const ThankYou = () => {
return (
<div className={styles.thankYouWrapper}>
<div className={styles.textWrapper}>
<h1>Thank you! Your event has been submitted for review.</h1>
<Link to="... |
src/components/Link/Link.js | zsu13579/whatsgoinontonight | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
webpack/webpack4/chapter02/src/search.js | lijiliang/record | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import './search.less';
import logo from './images/logo.png'
import loading from './images/loading.gif'
class Search extends React.Component {
render() {
return <div className="texta">
<div>
<img src={ logo }></img>
... |
webapp-src/src/Admin/Users.js | babelouest/glewlwyd | import React, { Component } from 'react';
import i18next from 'i18next';
import messageDispatcher from '../lib/MessageDispatcher';
class Users extends Component {
constructor(props) {
super(props);
this.state = {
config: props.config,
users: props.users,
source: props.source,
logged... |
addons/info/src/components/markdown/pre/copyButton.js | rhalff/storybook | import React from 'react';
import PropTypes from 'prop-types';
import glamorous, { withTheme } from 'glamorous';
const Button = glamorous.button(
{
overflow: 'hidden',
border: '1px solid #eee',
borderRadius: 3,
backgroundColor: '#FFFFFF',
cursor: 'pointer',
fontSize: 13,
padding: '3px 10p... |
ajax/libs/react/15.3.2/react-dom-server.min.js | jdh8/cdnjs | /**
* ReactDOMServer v15.3.2
*
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same d... |
src/svg-icons/notification/phone-forwarded.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPhoneForwarded = (props) => (
<SvgIcon {...props}>
<path d="M18 11l5-5-5-5v3h-4v4h4v3zm2 4.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26... |
test/browser/es6-module-exports-spec.js | felipethome/material-ui | import React from 'react';
import TestUtils from 'react-addons-test-utils';
const Divider = require('divider').default;
const ActionAccessibility = require('svg-icons').ActionAccessibility;
import ImportGetMuiTheme from 'styles/getMuiTheme';
const RequireGetMuiTheme = require('styles/getMuiTheme').default;
import Im... |
src/components/topic/stories/StoryThemes.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { FormattedMessage, injectIntl } from 'react-intl';
import withHelp from '../../common/hocs/HelpfulContainer';
import DataCard from '../../common/DataCard';
import messages from '../../../resources/messages';
const localMessages = {
title: { id: '... |
client/app/Core/Navigation/index.js | mahimaag/DTA | import React, { Component } from 'react';
import { Dropdown } from 'react-bootstrap';
import { Link, Location } from 'react-router-dom';
class Navigation extends Component {
componentDidMount() {
const { menu } = this.refs;
$(menu).metisMenu();
}
/*activeRoute(routeName) {
return thi... |
src/svg-icons/maps/navigation.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsNavigation = (props) => (
<SvgIcon {...props}>
<path d="M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71z"/>
</SvgIcon>
);
MapsNavigation = pure(MapsNavigation);
MapsNavigation.displayName = 'MapsNavigation';
... |
ajax/libs/recompose/0.20.2/Recompose.js | joeyparrish/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["Recompose"] = facto... |
src/server/render.js | HarelDavid/AdFriendCoupon | import React from 'react'
import ReactDOMServer from 'react-dom/server'
import { match, RouterContext } from 'react-router'
import { Provider } from 'mobx-react'
import fetchData from './helpers/fetchData'
import Html from '../client/containers/shared/Html.jsx'
import {createServerState} from '../client/state'
impor... |
ajax/libs/6to5/2.12.0/browser.js | Piicksarn/cdnjs | !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.to5=t()}}(function(){var e,t,r;return function n(e,t,... |
app/javascript/mastodon/components/avatar_overlay.js | Chronister/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { autoPlayGif } from '../initial_state';
export default class AvatarOverlay extends React.PureComponent {
static propTypes = {
account: ImmutablePropTypes.map.isRequired,
friend:... |
src/svg-icons/image/flash-on.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFlashOn = (props) => (
<SvgIcon {...props}>
<path d="M7 2v11h3v9l7-12h-4l4-8z"/>
</SvgIcon>
);
ImageFlashOn = pure(ImageFlashOn);
ImageFlashOn.displayName = 'ImageFlashOn';
ImageFlashOn.muiName = 'SvgIco... |
views/invocation.js | Thundabrow/black-screen | import React from 'react';
import Prompt from './prompt';
export default React.createClass({
componentWillMount() {
this.props.invocation
.on('data', _ => this.setState({canBeDecorated: this.props.invocation.canBeDecorated()}))
.on('status', status => this.setState({status: status})... |
docs/app/Examples/elements/Header/Variations/index.js | koenvg/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
import { Message } from 'semantic-ui-react'
const HeaderVariationsExamples = () => (
<ExampleSection title='Variations'>
<Compone... |
src/routes/About/CreationTeam.js | ExtraGains/XLBS | import React from 'react'
import { Carousel } from 'antd'
import './CreationTeam.less'
const teamData = [
{
name: '王新1',
department: '品牌设计',
position: '设计总监',
description: `1889年出生于法国巴黎是美国工业设计的重要奠基人之一,一生从事工业产品设计、
包装设计及平面设计(特别是VI),参与项目多达数千个,设计领域极为广泛,代表了第一代美国工业设计师涉猎的广泛。
他把设计高度专业化和商业化,使他的设计公司成为2... |
app/javascript/mastodon/components/poll.js | h3zjp/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import classNames from 'classnames';
import { vote, f... |
src/header/Logo.js | juandjara/ftunes-client | import React from 'react'
import {Icon, IconStack} from 'react-fa';
import { Link } from 'react-router-dom'
const Logo = (props) => {
const size = (props.size || "5") + "x";
return (
<Link to="/" className="link-reset">
<IconStack size={size}>
<Icon className="fa-fw olive" name="circle" stack="2x"></... |
src/components/gridlines.js | boonier/piano-rolla-two | import React from 'react';
import GridLine from './gridline'
export default class GridLines extends React.Component {
constructor(props) {
super(props);
};
render() {
return (
<g className={this.props.className}>
{this.createGridLines(this.props)}
</g>
);
};
createGridLines(props) {
let gr... |
client/src/channels/root.js | andris9/mailtrain | 'use strict';
import React from 'react';
import CampaignsList from '../campaigns/List';
import CampaignsCUD from '../campaigns/CUD';
import ChannelsList from './List';
import ChannelsCUD from './CUD';
import Share from '../shares/Share';
import {ellipsizeBreadcrumbLabel} from "../lib/helpers"
import {namespaceCheckPer... |
ajax/libs/react-datepicker/0.11.0/react-datepicker.min.js | x112358/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("moment"),require("lodash"),require("react-onclickoutside"),require("tether")):"function"==typeof define&&define.amd?define(["react","moment","lodash","react-onclickoutside","tether"],t):"object"==typeof exports?e... |
src/svg-icons/action/receipt.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionReceipt = (props) => (
<SvgIcon {...props}>
<path d="M18 17H6v-2h12v2zm0-4H6v-2h12v2zm0-4H6V7h12v2zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-... |
app/components/Home.js | firewenda/testwebsite | import React from 'react';
import {Link} from 'react-router';
import HomeStore from '../stores/HomeStore'
import HomeActions from '../actions/HomeActions';
import {first, without, findWhere} from 'underscore';
class Home extends React.Component {
constructor(props) {
super(props);
this.state = HomeStore.getS... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.