path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
src/Parser/Monk/Brewmaster/Modules/Spells/PurifyingBrew.js | hasseboulen/WoWAnalyzer | import React from 'react';
import { formatNumber, formatPercentage } from 'common/format';
import SpellIcon from 'common/SpellIcon';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import SPELLS from 'common/SPELLS';
import Combatants from 'Parser/Core/Modules/Combatants';
import Analyzer from 'Parse... |
src/svg-icons/image/crop-portrait.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropPortrait = (props) => (
<SvgIcon {...props}>
<path d="M17 3H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7V5h10v14z"/>
</SvgIcon>
);
ImageCropPortrait = pure(ImageCropP... |
ajax/libs/material-ui/4.12.1/esm/Toolbar/Toolbar.min.js | cdnjs/cdnjs | import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutProperties from"@babel/runtime/helpers/esm/objectWithoutProperties";import _defineProperty from"@babel/runtime/helpers/esm/defineProperty";import*as React from"react";import PropTypes from"prop-types";import clsx from"clsx";import withStyles ... |
ajax/libs/material-ui/5.0.0-alpha.12/internal/svg-icons/StarBorder.js | cdnjs/cdnjs | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var React = _interopRequireWildcard(r... |
docs/app/Examples/elements/Input/Variations/InputExampleLeftActionLabeledButton.js | clemensw/stardust | import React from 'react'
import { Input } from 'semantic-ui-react'
const InputExampleLeftActionLabeledButton = () => (
<Input
action={{ color: 'teal', labelPosition: 'left', icon: 'cart', content: 'Checkout' }}
actionPosition='left'
placeholder='Search...'
defaultValue='52.03'
/>
)
export default... |
src/routes/ItemShop/components/ItemShopView.js | eunvanz/handpokemon2 | import React from 'react'
import PropTypes from 'prop-types'
import shallowCompare from 'react-addons-shallow-compare'
import ContentContainer from 'components/ContentContainer'
import ItemCard from 'components/ItemCard'
import { getMsg } from 'utils/commonUtil'
class ItemShopView extends React.Component {
constru... |
gui/src/index.js | HonzaMac/mongo-multiple-instance-monitoring | import 'babel-polyfill';
import React from 'react';
import {render} from 'react-dom';
import App from './components/App.jsx';
/**
* If websocket is not supported do not start an application
*/
if (! "WebSocket" in window) {
alert("WebSocket NOT supported by your Browser!");
} else if(document.getElementById('app')... |
cra-memory-considerate-loading/src/index.js | GoogleChromeLabs/adaptive-loading | /*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
ajax/libs/core-js/0.8.1/core.js | victorjonsson/cdnjs | /**
* Core.js 0.8.1
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* ยฉ 2015 Denis Pushkarev
*/
!function(undefined){
var __e = null, __g = null;
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0... |
ajax/libs/6to5/2.2.0/browser-polyfill.js | urish/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
ajax/libs/crafty/0.5.4/crafty.js | kentaromiura/cdnjs | /**
* crafty 0.5.4
* http://craftyjs.com/
*
* Copyright 2013, Louis Stowasser
* Dual licensed under the MIT or GPL licenses.
*/
(function (window, initComponents, undefined) {
/**@
* #Crafty
* @category Core
* Select a set of or single entities by components or an entity's ID.
*
* Crafty ... |
app/javascript/src/AppRoutes.js | michelson/chaskiq | import React from 'react'
import { connect } from 'react-redux'
import AppContainer from './pages/AppContainer'
import Apps from './pages/Apps'
import Login from './pages/auth/login'
import NewApp from './pages/NewApp'
import NotFound from './pages/NotFound'
import UnSubscribe from './pages/UnSubscribe'
import AcceptIn... |
addons/info/src/components/PropVal.js | enjoylife/storybook | import React from 'react';
import createFragment from 'react-addons-create-fragment';
const valueStyles = {
func: {
color: '#170',
},
attr: {
color: '#666',
},
object: {
color: '#666',
},
array: {
color: '#666',
},
number: {
color: '#a11',
},
string: {
color: '#22a',
... |
src/icons/RowingIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class RowingIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M17 29l-9 9 3 3 7-7h4l-5-5zM30 2c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm12 40.02L36 48l-5.98-6.02V... |
src/Pages/Brewer.js | Zangriev/Kentico | import React, { Component } from 'react';
import BrewerStore from "../Stores/Brewer";
import RichTextElement from '../Components/RichTextElement';
let getState = (props) => {
return {
brewer: BrewerStore.getBrewer(props.params.brewerSlug)
};
};
class Brewer extends Component {
constructor(props) {
supe... |
app/javascript/mastodon/components/button.js | hyuki0000/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
export default class Button extends React.PureComponent {
static propTypes = {
text: PropTypes.node,
onClick: PropTypes.func,
disabled: PropTypes.bool,
block: PropTypes.bool,
secondary: PropTypes.... |
packages/bootstrap-shell/src/containers/LayoutContainer/LayoutContainer.js | TarikHuber/react-most-wanted | import { useConfig } from 'base-shell/lib/providers/Config'
import React from 'react'
import MenuProvider from '../../providers/Menu/Provider'
import '../../styles/custom-bootstrap.css';
const LayoutContent = ({ children }) => {
return (
<div
style={{
display: 'flex',
flexDirection: 'column... |
KDReactNative/KDClass/Mine/KDMineItem.js | csyibei/KDReactNative | /**
* Created by kaidi on 2016/10/17.
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Image,
TouchableOpacity,
Navigator
} from 'react-native';
var Dimensions = require('Dimensions');
var Win = Dimensions.get('window');
var KDPushView = require('... |
src/components/users/UsersPage.js | AleksandrRogachev94/chat-vote-go-frontend | import React from 'react'
import UsersListContainer from './UsersListContainer'
import ProfileContainer from './ProfileContainer'
const UsersPage = (props) => {
return (
<div className="container-fluid">
<div className="row">
<div className="col-sm-3 sidebar">
<UsersListContainer />
... |
dist/1.10.0/jquery-ajax-dimensions-effects-offset-wrap.min.js | michaelBenin/jquery-builder | /*! jQuery v1.10.0 -wrap,-ajax,-ajax/script,-ajax/jsonp,-ajax/xhr,-effects,-offset,-dimensions | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.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=[],d="1.10.0 -wrap,-... |
test/integration/stepper/verticalStepper.spec.js | pomerantsev/material-ui | /* eslint-env mocha */
import React from 'react';
import {mount} from 'enzyme';
import {assert} from 'chai';
import getMuiTheme from 'src/styles/getMuiTheme';
import VerticalLinearStepper from '../fixtures/VerticalLinearStepper';
describe('Vertical Stepper', () => {
const muiTheme = getMuiTheme();
const mountWithC... |
examples/04 Sortable/ListSelection/index.js | nickknw/react-dnd | import React, { Component } from 'react';
import Container from './Container';
import CustomDragLayer from './CustomDragLayer';
import { DragDropContext } from 'react-dnd';
import SupportsTouch from '../../SupportsTouch';
import HTML5Backend from 'react-dnd/modules/backends/HTML5';
import TouchBackend from 'react-dnd/m... |
MobileApp/mstudentApp/TabNav.js | FresnoState/mobilestudentintranet | import React, { Component } from 'react';
import {TabNavigator, TabBarBottom} from 'react-navigation';
import Home from './components/Home.js';
import SubsNav from './components/subsViews/SubsNav';
import ChannelView from './components/ChannelView';
import Search from './components/Search';
import SettingsNav from './c... |
app/containers/ConnectionsPage.js | careykevin/reddy | // @flow
import React, { Component } from 'react';
import { isEmpty } from 'lodash';
import type { Event } from '../utils/Types';
import ConnectionManager from '../utils/ConnectionManager';
import Connections from '../components/connections/Connections';
export default class ConnectionsPage extends Component {
stat... |
src/svg-icons/image/lens.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLens = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z"/>
</SvgIcon>
);
ImageLens = pure(ImageLens);
ImageLens.displayName = 'ImageLens';
Ima... |
node_modules/react-images/node_modules/aphrodite/examples/src/examples-ssr.js | ed1d1a8d/macweb | import ReactDOMServer from 'react-dom/server';
import React from 'react';
import { StyleSheetServer } from '../../src/index.js';
import StyleTester from './StyleTester.js';
export default function() {
const data = StyleSheetServer.renderStatic(
() => ReactDOMServer.renderToString(<StyleTester/>));
re... |
client/components/types/ManageCollectionClones.js | axax/lunuc | import React from 'react'
import PropTypes from 'prop-types'
import {
DeleteIconButton,
BackupIconButton,
DoneIconButton,
SimpleList,
SimpleDialog,
Tooltip
} from 'ui/admin'
import Util from 'client/util'
import {COLLECTIONS_QUERY} from '../../constants'
import {withKeyValues} from 'client/conta... |
node_modules/@expo/vector-icons/vendor/react-native-vector-icons/RNIMigration.js | jasonlarue/react-native-flashcards | import React from 'react';
import PropTypes from 'prop-types';
import FontAwesome from 'react-native-vector-icons/FontAwesome';
import Foundation from 'react-native-vector-icons/Foundation';
import Ionicons from 'react-native-vector-icons/Ionicons';
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
i... |
src/components/pages/Home.js | StillLearnin/time-clock-ui | import React from 'react';
import { Component } from 'react';
import TimeLog from '../time-log/TimeLog';
import PunchPanel from '../punch-panel/PunchPanel'
import css from './Home.css'
export default class Home extends Component {
render() {
return (
<div className={css.homeBody}>
<div className={... |
app/assets/javascripts/admin/form-builder/vendor.js | owen2345/camaleon-cms-gem | var Node = Node || {
ELEMENT_NODE: 1,
ATTRIBUTE_NODE: 2,
TEXT_NODE: 3
};
$.scrollWindowTo = function(pos, duration, cb) {
if (duration == null) {
duration = 0;
}
if (pos === $(window).scrollTop()) {
$(window).trigger('scroll');
if (typeof cb === "function") {
cb();
}
return;
}
... |
packages/cf-component-header/test/NavItem.js | jroyal/cf-ui | import React from 'react';
import renderer from 'react-test-renderer';
import NavItem from '../src/NavItem';
import { felaSnapshot } from 'cf-style-provider';
test('should render', () => {
const snapshot = felaSnapshot(<NavItem />);
expect(snapshot.component).toMatchSnapshot();
expect(snapshot.styles).toMatchSna... |
fields/types/markdown/MarkdownColumn.js | dryna/keystone-twoje-urodziny | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var MarkdownColumn = React.createClass({
displayName: 'MarkdownColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue... |
src/parser/priest/holy/modules/talents/45/GuardianAngel.js | fyruna/WoWAnalyzer | import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox';
import React from 'react';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import Events from 'parser/core/E... |
files/react/0.13.2/react.min.js | l3dlp/jsdelivr | /**
* React v0.13.2
*
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*... |
client/components/Hello.js | sanyamagrawal/express-passort | import React from 'react'
function Hello () {
return (
<h1>Hello from React Sanyam</h1>
)
}
export default Hello
|
src/containers/MainContainer.js | Gabri3l/react-firenze-boilerplate | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { bool, func, shape, string } from 'prop-types';
import { fetchCoinPrice } from 'actions/actionCreators';
class MainContainer extends Component {
static propTypes = {
actions: shape... |
packages/material-ui-icons/src/StopRounded.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M8 6h8c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2H8c-1.1 0-2-.9-2-2V8c0-1.1.9-2 2-2z" /></React.Fragment>
, 'StopRounded');
|
www/js/jquery.mobile-1.3.2.js | Tanktiger/ygoGame | /*!
* jQuery Mobile 1.3.2
* Git HEAD hash: 528cf0e96940644ea644096bfeb913ed920ffaef <> Date: Fri Jul 19 2013 22:17:57 UTC
* http://jquerymobile.com
*
* Copyright 2010, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
*/
(function ( root, doc, factory ... |
packages/material-ui-icons/lib/NightlifeOutlined.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")... |
frontend/src/components/dialog/rename-dirent.js | miurahr/seahub | import React from 'react';
import PropTypes from 'prop-types';
import { gettext } from '../../utils/constants';
import { Utils } from '../../utils/utils';
import { Button, Modal, ModalHeader, Input, ModalBody, ModalFooter, Alert } from 'reactstrap';
const propTypes = {
onRename: PropTypes.func.isRequired,
toggleCa... |
src/containers/Create_New_Group.js | giladgreen/pokerStats | import React, { Component } from 'react';
import { addGroup,deleteGroup } from '../actions/index';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import pokerIcons from '../components/pokerIcons';
import { browserHistory } from 'react-router';
import {cloneDeep} from 'lodash';
import xxx... |
tests/reactCssModules.js | orzo-corp/react-css-modules | /* eslint-disable max-nested-callbacks, react/no-multi-comp, react/prop-types, react/prefer-stateless-function, class-methods-use-this */
import {
expect
} from 'chai';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import re... |
sites/default/files/js/js_QDvFZTIOv1cYw-xC7cGYHZhx0dKhuHpTOBIBRi1jYBk.js | charlotte17/prueba | /*! jQuery v2.2.3 | (c) jQuery Foundation | 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 window?window:this,fun... |
app/classifier/default-classification-summary.spec.js | amyrebecca/Panoptes-Front-End | /* eslint prefer-arrow-callback: 0, func-names: 0, 'react/jsx-boolean-value': ['error', 'always'] */
/* global describe, it, beforeEach */
import React from 'react';
import DefaultClassificationSummary from './default-classification-summary';
import { TextSplit } from 'seven-ten';
import assert from 'assert';
import { ... |
src/assets/scripts/index.js | SnowShock/Runew0lf | import CSS from './../styles/main.scss';
import React from 'react';
import ReactDOM from 'react-dom';
import { HashRouter } from 'react-router-dom';
import App from './routes/App';
const app = document.getElementById('app');
ReactDOM.render((
<HashRouter>
<App />
</HashRouter>
), app)
const acc = document.ge... |
ajax/libs/webshim/1.14.3-RC1/dev/shims/combos/26.js | StoneCypher/cdnjs | /**
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
* v1.2.1
*
* Copyright 2013, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*
* Date: 2014-05-14
*/
/**
* Compiled inline version. (Library ... |
core/modules/quickedit/js/models/FieldModel.js | jainsandesh94/Demo | /**
* @file
* A Backbone Model for the state of an in-place editable field in the DOM.
*/
(function (_, Backbone, Drupal) {
'use strict';
Drupal.quickedit.FieldModel = Drupal.quickedit.BaseModel.extend(/** @lends Drupal.quickedit.FieldModel# */{
/**
* @type {object}
*/
defaults: /** @lends ... |
ajax/libs/video.js/5.10.4/alt/video.novtt.js | extend1994/cdnjs | /**
* @license
* Video.js 5.10.4 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}... |
pootle/static/js/admin/components/SearchBox.js | r-o-b-b-i-e/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 React from 'react';
import _ from 'underscore';
c... |
style-guide/src/components/design-system-partials/otkit-typography.js | opentable/design-tokens | import React from 'react';
import _ from 'lodash';
import token from 'otkit-typography-desktop/token.common';
import SectionHeader from '../section-header';
import styles from '../../styles/otkit-typography-desktop.module.scss';
const typographyGroups = [
'xxlarge-bold',
'xlarge-bold',
'large-bold',
'large-me... |
ajax/libs/yui/3.15.0/scrollview-base/scrollview-base-coverage.js | cluo/cdnjs | /*
YUI 3.15.0 (build 834026e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/scrollview-base/scrollview-base.js']) {
__coverage__['build/scrollview-base/scrollv... |
src/shared/views/navigation/NavigationList/NavigationList.js | in-depth/indepth-core | import React from 'react'
import { NavigationItem } from '../index'
import styles from './NavigationList.css'
import { navigationLinks } from '../../routes'
const NavigationList = () => {
return (
<ul className={styles.menu}>
{navigationLinks.map((navigationLink) => (
<NavigationItem key={navigat... |
src/components/Setup/index.js | varatep/anax-ui | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as actions from '../../actions';
import Setup from './presenter';
// takes as input the state from a reducer
function mapStateToProps(state) {
// no need to do any translation here
return state;
}... |
ajax/libs/mobx-react/4.3.2/index.min.js | jdh8/cdnjs | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("mobx"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","mobx","react","react-dom"],t):t(e.mobxReact=e.mobxReact||{},e.mobx,e.React,e.ReactDOM)}(this,function(e,t,n,r){"use strict";functi... |
client/node_modules/react-dom/dist/react-dom-server.min.js | repuestos-365/server | /**
* ReactDOMServer v15.4.1
*
* 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... |
ajax/libs/react/0.14.9/react-with-addons.js | maruilian11/cdnjs | /**
* React (with addons) v0.14.9
*/
(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!=="undef... |
frontend/src/components/dialog/confirm-disconnect-dingtalk.js | miurahr/seahub | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Modal, ModalHeader, ModalBody, ModalFooter, Button } from 'reactstrap';
import { gettext } from '../../utils/constants';
const propTypes = {
formActionURL: PropTypes.string.isRequired,
csrfToken: PropTypes.string.isRequired,
t... |
src/MobileStepper/MobileStepper.js | AndriusBil/material-ui | // @flow weak
// @inheritedComponent Paper
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import withStyles from '../styles/withStyles';
import Paper from '../Paper';
import { capitalizeFirstLetter } from '../utils/helpers';
import { LinearProgress } from '../Progre... |
stories/InstantSearch.stories.js | algolia/react-instantsearch | import React from 'react';
import algoliasearch from 'algoliasearch/lite';
import { storiesOf } from '@storybook/react';
import { InstantSearch, SearchBox, Hits } from 'react-instantsearch-dom';
import { Content } from './util';
const stories = storiesOf('<InstantSearch>', module);
const searchClient = algoliasearch(... |
src/Containers/Home/Home.js | rahulp959/airstats.web | import React from 'react'
import {connect} from 'react-redux'
import TableRecentFlights from './TableRecentFlights/TableRecentFlights'
import TableStats from './TableStats/TableStats'
import './Home.scss'
import { fetchGeneral } from '../../ducks/general.js'
import { fetchRecent } from '../../ducks/recent.js'
let gen... |
app/components/Header/index.js | thecodingwhale/conduit-clone | /**
*
* Header
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { Collapse, Navbar, NavbarToggler, NavbarBrand, Nav, NavItem, NavLink } from 'reactstrap';
import { isEmpty } from 'lodash';
import Avatar from 'components/Avatar';
class Header extends React.Component { // eslint-disable-line r... |
spec/javascripts/jsx/shared/FlickrImageSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2016 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
app/containers/LanguageProvider/index.js | iFatansyReact/react-boilerplate-imagine | /*
*
* 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... |
src/routes/NoPower/index.js | pmg1989/dva-admin | import React from 'react'
import { Icon } from 'antd'
import { connect } from 'dva'
import styles from './index.less'
const NoPower = () => (
<div className="content-inner">
<div className={styles.error}>
<Icon type="frown-o" />
<h1>ๅฏนไธ่ตท๏ผๆญค้กต้ขๆจๆ ๆ่ฟๅ
ฅ๏ผ</h1>
</div>
</div>
)
export default connect()(N... |
src/svg-icons/av/forward-5.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvForward5 = (props) => (
<SvgIcon {...props}>
<path d="M4 13c0 4.4 3.6 8 8 8s8-3.6 8-8h-2c0 3.3-2.7 6-6 6s-6-2.7-6-6 2.7-6 6-6v4l5-5-5-5v4c-4.4 0-8 3.6-8 8zm6.7.9l.2-2.2h2.4v.7h-1.7l-.1.9s.1 0 .1-.1.1 0 .1-.1.... |
node_modules/rebass/src/Breadcrumbs.js | HasanSa/hackathon |
import React from 'react'
import Base from './Base'
import config from './config'
/**
* Breadcrumb navigation links
*/
const Breadcrumbs = ({
links,
children,
...props
}, { rebass }) => {
const { fontSizes, scale } = { ...config, ...rebass }
const sx = {
root: {
fontSize: fontSizes[5],
d... |
app/javascript/mastodon/features/ui/components/zoomable_image.js | KnzkDev/mastodon | import React from 'react';
import PropTypes from 'prop-types';
const MIN_SCALE = 1;
const MAX_SCALE = 4;
const getMidpoint = (p1, p2) => ({
x: (p1.clientX + p2.clientX) / 2,
y: (p1.clientY + p2.clientY) / 2,
});
const getDistance = (p1, p2) =>
Math.sqrt(Math.pow(p1.clientX - p2.clientX, 2) + Math.pow(p1.client... |
src/scripts/TitlebarSearch.js | whoisandie/yoda | 'use strict';
import React from 'react';
import Join from 'react/lib/joinClasses';
import {Navigation, State} from 'react-router';
import Actions from './Actions';
export default React.createClass({
mixins: [Navigation, State],
getInitialState() {
return {
query: '',
hasQuery: false
};
},
... |
app/project-list.js | CKrawczyk/electron-subject-uploader | import React from 'react';
import { Link, withRouter } from 'react-router';
import apiClient from 'panoptes-client';
export class ProjectLink extends React.Component {
constructor(props) {
super(props);
this.handleProjectChange = this.handleProjectChange.bind(this);
}
handleProjectChange() {
this.co... |
react/features/base/i18n/functions.js | KalinduDN/kalindudn.github.io | import React from 'react';
import { translate as reactI18nextTranslate } from 'react-i18next';
/**
* Wraps a specific React Component in order to enable translations in it.
*
* @param {Component} component - The React Component to wrap.
* @returns {Component} The React Component which wraps {@link component} and
... |
pages/team/index.js | jubearsun/innovative-design | import React from 'react';
import DocumentTitle from 'react-document-title';
import { prefixLink } from 'gatsby-helpers';
import $ from 'jquery';
import _ from 'lodash';
export default class Index extends React.Component {
constructor(props) {
super(props);
}
componentDidMount() {}
render () {
cons... |
ajax/libs/react-quill/0.0.4/react-quill.js | BenjaminVanRyseghem/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("quill"));
else if(typeof define === 'function' && define.amd)
define(["react", "quill"], factory);
else if(typeof exports === 'object')
e... |
ajax/libs/remoteStorage/0.9.0/remotestorage-nocache.js | wout/cdnjs | /** remotestorage.js 0.9.0, http://remotestorage.io, MIT-licensed **/
/** FILE: lib/promising.js **/
(function(global) {
function getPromise(builder) {
var promise;
if(typeof(builder) === 'function') {
setTimeout(function() {
try {
builder(promise);
} catch(e) {
pro... |
src/pages/reference/states.js | inkdropapp/docs | import React from 'react'
import { StaticQuery, graphql, Link } from 'gatsby'
import ReferenceLayout from '../../components/reference-layout'
export default function StatesIndex() {
return (
<ReferenceLayout currentPageTitle="App States">
<h1>App States</h1>
<StaticQuery
query={menuQuery}
... |
src/components/Chessboard/SmartChessboard.js | moroshko/react-chessboard | import React, { Component, PropTypes } from 'react';
import { DragDropContext } from 'react-dnd';
import HTML5Backend from 'react-dnd/modules/backends/HTML5';
import { ORIENTATION } from '../../utils/constants/constants';
import DumbChessboard from './DumbChessboard';
@DragDropContext(HTML5Backend)
export default clas... |
src/Components/Modal/Modal.js | balaabhinav/htm-niseko | import React from 'react';
import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
const HtmModal = (props) => (
<div>
<Modal isOpen={ props.modal } >
<ModalHeader>{ props.modalType==='enquiry'? "Enquiry Form" : "Book Property" }</ModalHeader>
... |
src/Calendar.js | erisnuts/react-date-picker | import React from 'react'
import Component from 'react-class'
import assign from 'object-assign'
import assignDefined from './assignDefined'
import MonthView, { NAV_KEYS } from './MonthView'
import toMoment from './toMoment'
import join from './join'
import ClockInput from './ClockInput'
import forwardTime from './ut... |
test/integration/IconButton/IconButton.spec.js | kasra-co/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import IconButton from 'src/IconButton';
import FontIcon from 'src/FontIcon';
import getMuiTheme from 'src/styles/getMuiTheme';
describe('<IconButton />', () => {
const muiTheme = getMuiTheme();
const sha... |
ajax/libs/clappr/0.0.41/clappr.js | sitic/cdnjs | require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o]... |
lib/client/components/login.js | chaos-adept/monkey-tournament | import React from 'react';
export class Login extends React.Component {
render() {
return (<div>
<div>
<div>
<div className="col-md-12 col-xs-12 col-lg-12 col-xs-11">
<form className="text-center" action="/aut... |
3_compress_ensure_render/component/common/searchInput.js | chkui/react-server-demo | import React from 'react'
import Select from './select'
const cn = require('classnames/bind').bind(require('./searchInput.scss'))
/**
* @param {string} value: ่ฎพๅฎๅฝๅๆ็ดขๅ
ๅฎน๏ผไป
ไป
ๆฏ่ฎพๅฎๆๆฌ๏ผไธไผ่งฆๅๆ็ดขๅจไฝ
* @param {string} text: ่ฎพๅฎ้ป่ฎคๆ็ดขๅ
ๅฎน
* @param {array} selecteds:[{ //ไธๆ่ๅๆฉๅฑ
* id:'language', ๅ่ฐๆ ่ฎฐid
* options:[{id: 'javascr... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/LinkedModules.js | CodingZeal/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 './assets/style.css';
import { test, version } from 'test-integrity';
export default () => {
const ... |
test/integration/RenderToLayer/RenderToLayer.spec.js | IsenrichO/mui-with-arrows | /* eslint-env mocha */
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {assert} from 'chai';
import {mount} from 'enzyme';
import RenderToLayer from 'src/internal/RenderToLayer';
describe('<RenderToLayer />', () => {
it('should pass updated muiTheme context if muiTheme context chan... |
node_modules/react-taco-table/site/src/components/ExampleStyle.js | Sweetgrassbuffalo/ReactionSweeGrass-v2 | import React from 'react';
import { TacoTable, DataType, SortDirection, Formatters } from 'react-taco-table';
import cellLinesData from '../data/cell_lines.json';
/**
* An example demonstrating how to use style in columns
* and have them vary for each cell.
*/
const columns = [
{
id: 'name',
value: rowDa... |
js/vendor/jquery-1.11.2.min.js | DanielJMaxwell/calc | /*! jQuery v1.11.2 | (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/client/components/MapView.js | ZeusTheTrueGod/background-geolocation-console | // @flow
import React, { Component } from 'react';
import _ from 'lodash';
import { createSelector } from 'reselect';
import { connect } from 'react-redux';
import { type Location, clickMarker } from '~/reducer/dashboard';
import { type GlobalState } from '~/reducer/state';
import GoogleMap from 'google-map-react';
... |
test/CardTitleSpec.js | mattBlackDesign/react-materialize | /* global describe, it */
import React from 'react';
import { shallow } from 'enzyme';
import { assert } from 'chai';
import CardTitle from '../src/CardTitle';
let wrapper = shallow(
<CardTitle image=''>
I am a very simple card
</CardTitle>
);
describe('<CardTitle />', () => {
it('should render', () => {
... |
examples/pinterest/app.js | upraised/react-router | import React from 'react';
import { Router, Route, IndexRoute, Link } from 'react-router';
var PICTURES = [
{ id: 0, src: 'http://placekitten.com/601/601' },
{ id: 1, src: 'http://placekitten.com/610/610' },
{ id: 2, src: 'http://placekitten.com/620/620' }
];
var Modal = React.createClass({
styles: {
posi... |
client/acp/components/ChannelsStats.js | NicolasSiver/nodebb-plugin-ns-twitch-monitor | import ChannelsStore from '../stores/ChannelsStore';
import connectToStores from 'alt/utils/connectToStores';
import React from 'react';
class ChannelsStats extends React.Component {
static getStores() {
return [ChannelsStore];
}
static getPropsFromStores() {
return ChannelsStore.getState(... |
dcs-fe/src/approute.js | chumak84/dance-competition-system | import React from 'react';
import { Route, Switch } from 'react-router';
import { BrowserRouter, } from 'react-router-dom';
import App from './components/App';
import HomePage from './components/home/HomePage';
import AboutPage from './components/about/AboutPage';
import FormatsPage from './components/format/FormatsPa... |
src/svg-icons/image/wb-cloudy.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageWbCloudy = (props) => (
<SvgIcon {...props}>
<path d="M19.36 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.64-4.96... |
src-ui/workspace/workspace-list-element-new.js | cdaniel/atlas2 | /*jshint esversion: 6 */
import React from 'react';
import {ListGroupItem} from 'react-bootstrap';
import Actions from './workspace-actions.js';
var CreateNewWorkspaceDialog = require('./create-new-workspace-dialog');
export default class WorskpaceListElementNew extends React.Component {
render() {
const worksp... |
src/components/interactive/Dots.js | mrozilla/mrozilla.cz | // โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// import
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
import React from 'react';
import { View } from '~components/primitives/View';
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ... |
node_modules/reactify/node_modules/react-tools/src/event/__tests__/EventPluginHub-test.js | gitoneman/react-soc | /**
* Copyright 2013-2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react-co... |
ajax/libs/react-dom/18.0.0-rc.0-next-20212349a-20211223/umd/react-dom-test-utils.development.js | cdnjs/cdnjs | /**
* @license React
* react-dom-test-utils.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
(function (global, factory) {
typeof exports === 'object' && typeof m... |
fixtures/kitchensink/template/src/features/syntax/ArraySpread.js | d3ce1t/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, { Component } from 'react';
import PropTypes from 'prop-types';
function load(users) {
return [
{ id: 1, name: '1' ... |
src/components/screens/highScoreScreen/index.js | jiriKuba/Calculatic | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { View, Text, StyleSheet } from 'react-native';
import * as actions from '../../../containers/highScoreScreen/actions';
import HighScoreHistory from '..... |
src/App.js | rpazyaquian/stopwatch-challenge | import React, { Component } from 'react';
import Stopwatch from './Stopwatch';
export default class App extends Component {
render() {
return (
<Stopwatch />
);
}
}
|
js/KindAnalysisPanelContainer.react.js | Sable/McLab-Web | import {Container} from 'flux/utils';
import KindAnalysisPanel from './KindAnalysisPanel.react';
import KindAnalysisResultStore from './stores/KindAnalysisResultStore';
import OpenFileStore from './stores/OpenFileStore';
import React from 'react';
const { Component } = React;
class KindAnalysisPanelContainer extends ... |
src/app/components/AppRoot.js | hoppity/kafka-sample-web | import React from 'react';
import StockList from './StockList';
/*
* @class AppRoot
* @extends React.Component
*/
class AppRoot extends React.Component {
/*
* @method render
* @returns {JSX}
*/
render () {
return <div className="appRoot">
<h1>Stock Ticker</h1>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.