path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | wajidali/rms | import React from 'react';
import { render } from 'react-dom';
// 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';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/platform/site-wide/header/components/LogoRow/index.unit.spec.js | department-of-veterans-affairs/vets-website | // Node modules.
import React from 'react';
import sinon from 'sinon';
import { expect } from 'chai';
import { shallow } from 'enzyme';
// Relative imports.
import { LogoRow } from '.';
describe('Header <LogoRow>', () => {
it('renders correct content with no props', () => {
// Set up.
const wrapper = shallow... |
src/components/Loans/ClosedLoans/ClosedLoans.js | folio-org/ui-users | import _ from 'lodash';
import React from 'react';
import {
FormattedMessage,
FormattedTime,
injectIntl,
} from 'react-intl';
import PropTypes from 'prop-types';
import {
Button,
MultiColumnList,
Dropdown,
DropdownMenu,
Popover,
IconButton,
ExportCsv,
} from '@folio/stripes/components';
import {
... |
app/javascript/mastodon/features/compose/components/navigation_bar.js | verniy6462/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Avatar from '../../../components/avatar';
import IconButton from '../../../components/icon_button';
import Permalink from '../../../components/permalink';
import { FormattedMessage } from 'r... |
example/ProgressBar.js | glenjamin/devboard | import React from 'react';
var ProgressBar = React.createClass({
propTypes: {
n: React.PropTypes.number.isRequired,
label: React.PropTypes.bool,
striped: React.PropTypes.bool,
animated: React.PropTypes.bool,
type: React.PropTypes.oneOf([
'success',
'info',
'warning',
'dang... |
src/js/Components/Common/EditOptions.js | mattgordils/DropSplash | import React, { Component } from 'react';
import 'sass/components/common/editable';
import InlineSVG from 'svg-inline-react/lib';
import Button from 'Components/Common/Button';
import SettingsIcon from 'assets/icons/settings-icon';
import CheckIcon from 'assets/icons/check';
import DeleteIcon from 'assets/icons/tras... |
static/js/jquery.js | sloot14/flexifod | /*! jQuery v1.7.2 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 cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBord... |
src/icons/RemoveTaskListIcon.js | Charlie9830/pounder | import React from 'react';
import { SvgIcon } from '@material-ui/core';
const RemoveTaskListIcon = (props) => {
return (
<SvgIcon {...props} viewBox="0 0 24 24" width="24" height="24">
<path d="M2,6V8H14V6H2M2,10V12H11V10H2M14.17,10.76L12.76,12.17L15.59,15L12.76,17.83L14.17,19.24L17,16.41L19.83,19.... |
project/AwesomeProject/node_modules/react-native/node_modules/react-tools/src/browser/server/ServerReactRootIndex.js | jskit2015/react-native-for-APICloud | /**
* 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.
*
* @providesModule ... |
src/routes/study/ballots/index.js | Skoli-Code/DerangeonsLaChambre | /**
* 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.
*/
import React from 'react';
import Ballots from './Ballots'... |
src/server.js | teosz/test-problem-reproduce | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import 'babel-core/polyfill';
import path from 'path';
import express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import Router from './routes';
import Html from './components/Html';
const server = global.... |
react-flux-mui/js/material-ui/src/svg-icons/content/content-copy.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentContentCopy = (props) => (
<SvgIcon {...props}>
<path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/>
</SvgIcon>
);... |
src/components/lists/RecentBlockList.js | whphhg/vcash-ui | import React from 'react'
import List from 'react-list'
import { translate } from 'react-i18next'
import { inject, observer } from 'mobx-react'
/** Component */
import RecentBlockListItem from './RecentBlockListItem.js'
@translate(['common'])
@inject('gui', 'statistics')
@observer
class RecentBlockList extends React.... |
src/js/components/icons/status/Unknown.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
const CLASS_ROOT = CSSClassnames.STATUS_ICON;
let _lastId = 0;
export defa... |
app/imports/ui/components/dashboard/DashboardContainer.js | superlumen/mdb | import React from 'react'
import { Meteor } from 'meteor/meteor'
import { createContainer } from "meteor/react-meteor-data"
import { Documents } from '/imports/api/documents/documents.collection.js'
import { DocumentList } from '/imports/ui/components/documents/DocumentList.jsx'
import DocumentForm from '/imports/ui/... |
core/styleguide/js/vendor/jquery.js | nickphillipps/theatrePatternLab | /*! jQuery v1.9.0 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license */(function(e,t){"use strict";function n(e){var t=e.length,n=st.type(e);return st.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Tt[e]={};return st.each(e.matc... |
07-react-context-lab4/src/user-context.js | iproduct/course-node-express-react | import React from 'react';
// Signed-in user context
export const UserContext = React.createContext({
name: 'Guest',
});
|
ajax/libs/ember-data.js/1.13.14/ember-data.js | drewfreyling/cdnjs | (function() {
"use strict";
var ember$lib$main$$default = Ember;
var ember$data$lib$ext$ember$array$$default = Array.prototype || ember$lib$main$$default.ArrayPolyfills;
var ember$data$lib$system$object$polyfills$$keysFunc = Object.keys || Ember.keys;
var ember$data$lib$system$object$polyfills$$crea... |
ajax/libs/yui/3.8.0/datatable-body/datatable-body-coverage.js | sparkgeo/cdnjs | if (typeof _yuitest_coverage == "undefined"){
_yuitest_coverage = {};
_yuitest_coverline = function(src, line){
var coverage = _yuitest_coverage[src];
if (!coverage.lines[line]){
coverage.calledLines++;
}
coverage.lines[line]++;
};
_yuitest_coverfunc = functio... |
src/js/components/TextInput/stories/OnSelect.js | HewlettPackard/grommet | import React from 'react';
import { Box, Grommet, TextInput } from 'grommet';
import { grommet } from 'grommet/themes';
const suggestions = Array(100)
.fill()
.map((_, i) => `suggestion ${i + 1}`);
export const OnSelect = () => {
const [value, setValue] = React.useState('');
const onChange = event => setVal... |
src/svg-icons/action/bookmark.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionBookmark = (props) => (
<SvgIcon {...props}>
<path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"/>
</SvgIcon>
);
ActionBookmark = pure(ActionBookmark);
ActionBookmark.displayName = 'Ac... |
src/addons/transitions/__tests__/ReactTransitionChildMapping-test.js | linqingyicen/react | /**
* 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.
*
* @emails react-co... |
ajax/libs/video.js/5.0.0-rc.29/video.js | wil93/cdnjs | /**
* @license
* Video.js 5.0.0-rc.29 <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>
*
* Includes vtt.js <https://github.com/mozilla/vtt.js>
* Available under Apache License... |
src/routes.js | forstaathletics/webpack-basic | import React from 'react'
import { Route } from 'react-router'
export default () => {
return (
<Route component={ForstaLayout} path='/' >
</Route>
)
}
|
src/index.js | ajdeleon/weather | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import ReduxPromise from "redux-promise"
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware(R... |
js/jqwidgets/demos/react/app/chart/polarseriesbands/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxChart from '../../../jqwidgets-react/react_jqxchart.js';
import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js';
import JqxSlider from '../../../jqwidgets-react/react_jqxslider.js';
class App extends React.Component {
... |
app/javascript/mastodon/features/picture_in_picture/components/header.js | Kirishima21/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import IconButton from 'mastodon/components/icon_button';
import { Link } from 'react-rou... |
src/Resource.js | marmelab/admin-on-rest | import React from 'react';
import PropTypes from 'prop-types';
import ViewListIcon from 'material-ui/svg-icons/action/view-list';
const componentPropType = PropTypes.oneOfType([
PropTypes.func,
PropTypes.string,
]);
const Resource = () => (
<span>
<Resource> elements are for configuration on... |
src/entypo/ArrowUp.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--ArrowUp';
let EntypoArrowUp = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M10,2.5L16.5,9H13v8H7V9H3.5L10,2.5z"/>
</EntypoIcon>
);
export default EntypoArrowUp;
|
server/http/dist/js/jquery-1.10.2.min.js | fragmede/fadecandy | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
src/components/MarkerAttack.js | IgorSzyporyn/wwiionline-webmap | import React from 'react';
import PropTypes from 'prop-types';
import { OverlayView } from "react-google-maps";
import getPixelPositionOffset from '../utils/getPixelPositionOffset';
const MarkerAttack = props => (
<OverlayView
bounds={props.bounds}
getPixelPositionOffset={getPixelPositionOffset}
mapPaneN... |
client/index.js | thanhdatvo/tuoihoctro.react | /**
* Client entry point
*/
import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import App from './App';
import { configureStore } from './store';
// Initialize store
const store = configureStore(window.__INITIAL_STATE__);
const mountApp = document.getEleme... |
app/containers/Root.js | nesfe/electron-LAN-chat | // @flow
import React from 'react';
import { Provider } from 'react-redux';
import { ConnectedRouter } from 'react-router-redux';
import Routes from '../routes';
type RootType = {
store: {},
history: {}
};
export default function Root({store, history}: RootType) {
return (
<Provider store={store}>
<Co... |
src/components/Layout/Layout.js | louisukiri/react-starter-kit | /**
* 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-... |
node_modules/re-base/tests/specs/firestore/syncDoc.spec.js | aggiedefenders/aggiedefenders.github.io | const Rebase = require('../../../src/rebase');
const React = require('react');
const ReactDOM = require('react-dom');
const firebase = require('firebase');
require('firebase/firestore');
var invalidEndpoints = require('../../fixtures/invalidEndpoints');
var dummyObjData = require('../../fixtures/dummyObjData');
var du... |
ajax/libs/redux-form/1.7.0/redux-form.min.js | viskin/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.ReduxForm=e(require("react")):t.ReduxForm=e(t.React)}(this,function(t){return function(t){function e(n){if(r[n])return r[n].expor... |
ajax/libs/rollbar.js/2.9.0/rollbar.js | sufuf3/cdnjs | /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
app/components/FranchiseForm/FrancMaps/index.js | prudhvisays/newsb | import React from 'react';
import './MapStyle.css';
let searchBox;
export default class FrancMaps extends React.Component { //eslint-disable-line
constructor(props) {
super(props);
this.geolocate = this.geolocate.bind(this);
this.initAutocomplete = this.initAutocomplete.bind(this);
this.searchBoxPla... |
spec/javascripts/jsx/blueprint_courses/components/LockToggleSpec.js | djbender/canvas-lms | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/App/shared/TrainerTable/index.js | findjanice/node-api-server | /*** @jsx React.DOM */
import React from 'react';
var TrainerTable = React.createClass({
render: function() {
var trainerRows = this.props.trainers.map(function(trainer) {
var trainerLink = `#/trainers/${trainer.id}`;
return (
<tr key={trainer.id}>
... |
src/components/Header.js | ctlusto/gifsmos | import React from 'react';
import './Header.css';
import logo from './icons/gifsmos-logo.svg';
const Header = () => (
<div className="Header">
<div className="Header-logo">
<img src={logo} alt="GIFsmos logo" />
</div>
<div className="Header-help">
Paste a Desmos link into the expressions list... |
src/js/Menus/__mocks__/Menu.js | lwhitlock/grow-tracker | /* eslint-env jest */
/* eslint-disable react/prop-types */
jest.unmock('../Positions');
import React from 'react';
import Positions from '../Positions';
// Have to do class since it is used as refs
export default class Menu extends React.Component {
static Positions = Positions;
render() {
const { isOpen, t... |
lib/yuilib/3.17.2/event-custom-base/event-custom-base-debug.js | amygroshek/moodle | /*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.En... |
src/pages/DayOf/Announcements.js | BoilerMake/frontend | import React, { Component } from 'react';
import moment from 'moment';
class Announcements extends Component {
componentDidMount() {
this.props.fetchAnnouncements();
setInterval(() => {
this.props.fetchAnnouncements();
}, 5 * 60 * 1000);
}
render() {
return (
<div className="col-9">... |
src/svg-icons/image/collections.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCollections = (props) => (
<SvgIcon {...props}>
<path d="M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"/>
... |
es/components/style/form-number-input.js | dearkaran/react-planner | 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; };
function _objectWithoutProperties(obj, keys) { var target = {... |
src/server/frontend/render.js | obimod/este | import DocumentTitle from 'react-document-title';
import Html from './html.react';
import Promise from 'bluebird';
import React from 'react';
import Router from 'react-router';
import config from '../config';
import immutable from 'immutable';
import initialState from '../initialstate';
import routes from '../../client... |
src/svg-icons/file/cloud-queue.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudQueue = (props) => (
<SvgIcon {...props}>
<path d="M19.35 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.65-4.9... |
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js | Dreezydraig/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
import ActorClient from 'utils/ActorClient';
import Inputs from 'utils/Inputs';
import { Styles, FlatButton } from 'material-ui';
import { KeyCodes... |
packages/babel-plugin-transform-react-pure-annotations/test/fixtures/react/lazy/input.js | babel/babel | import React from 'react';
const SomeComponent = React.lazy(() => import('./SomeComponent'));
|
src/svg-icons/alert/error-outline.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AlertErrorOutline = (props) => (
<SvgIcon {...props}>
<path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 ... |
source/application/components/bread-crumbs/index.js | sinnerschrader/patternplate-client | import React from 'react';
import {Link} from '@marionebl/react-router';
import join from 'classnames';
export default BreadCrumbs;
function BreadCrumbs(props) {
const {crumbs} = props;
const className = join('breadcrumbs', props.className);
return (
<ul className={className}>
{
crumbs.map(crumb => {
... |
src/components/Comments.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import Comment from './Comment';
import { Button } from 'react-bootstrap';
import { FormattedMessage } from 'react-intl';
import colors from '../constants/colors';
class Comments extends React.Component {
static propTypes = {
collective: PropTypes.ob... |
src/App.js | saiteja/SvgWithReact | import React from 'react';
import Graph from './components/graph'
export default class App extends React.Component {
state = { dataSetIndex: 0 }
selectDataset(event) {
this.setState({dataSetIndex: event.target.value});
}
render() {
let options = this.props.datasets.map((_, index) => {
return <o... |
app/index.js | jpsierens/budget | import React from 'react';
import { render } from 'react-dom';
import { browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import { AppContainer } from 'react-hot-loader';
import configureStore from './store/configureStore';
import Root from './containers/Root';
import { ge... |
src/svg-icons/image/brightness-3.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness3 = (props) => (
<SvgIcon {...props}>
<path d="M9 2c-1.05 0-2.05.16-3 .46 4.06 1.27 7 5.06 7 9.54 0 4.48-2.94 8.27-7 9.54.95.3 1.95.46 3 .46 5.52 0 10-4.48 10-10S14.52 2 9 2z"/>
</SvgIcon>
);
I... |
core/misc/tabbingmanager.js | Ignigena/bethel-dashboard | /**
* @file
* Manages page tabbing modifications made by modules.
*/
(function ($, Drupal) {
"use strict";
/**
* Provides an API for managing page tabbing order modifications.
*/
function TabbingManager () {
// Tabbing sets are stored as a stack. The active set is at the top of the
// stack. We use a JavaSc... |
src/client/components/util-components/text-editor/obsolete/LastDraft.component.js | ibudisteanu/SkyHub-Frontend-Vue.js | /**
* Created by Alexandru Ionut Budisteanu - SkyHub on 6/17/2017.
* (C) BIT TECHNOLOGIES
*/
import React, { Component } from 'react';
import { render } from 'react-dom';
import 'draft-js-emoji-plugin/lib/plugin.css';
import {Editor, editorStateFromHtml, editorStateToHtml, editorStateFromRaw, editorStateToJSON, ed... |
{{cookiecutter.repo_name}}/webapp/webapp/src/components/NavigationBar/NavigationBar.stories.js | thorgate/django-project-template | import React from 'react';
import { NavigationBar } from './NavigationBar';
export default { title: 'NavigationBar' };
export const defaultBar = () => <NavigationBar />;
|
resource/js/app.js | kyonmm/crowi | import React from 'react';
import ReactDOM from 'react-dom';
import Crowi from './util/Crowi';
import CrowiRenderer from './util/CrowiRenderer';
import HeaderSearchBox from './components/HeaderSearchBox';
import SearchPage from './components/SearchPage';
import PageListSearch from './components/PageListSearch';
//... |
ajax/libs/reflux/6.3.0/reflux.js | jdh8/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.Reflux = f()}}... |
src/components/s.js | waywaaard/spectacle | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { getStyles } from '../utils/base';
import Radium from 'radium';
@Radium
export default class S extends Component {
render() {
const { type, style, children } = this.props;
let styles = {};
if (type.indexOf('strikethroug... |
src/index.js | thoiberg/frontend-coding-exercise | import React from 'react'
import ReactDOM from 'react-dom'
import {Provider} from 'react-redux'
import store from './store'
import {SearchResults} from 'components'
ReactDOM.render(
<Provider store={store}>
<SearchResults />
</Provider>,
document.getElementById('root')
) |
Paths/React/05.Building Scalable React Apps/5-react-boilerplate-building-scalable-apps-m5-exercise-files/After/app/components/Navigation/index.js | phiratio/Pluralsight-materials | /**
*
* Navigation
*
*/
import React from 'react';
import AppBar from '../AppBar';
import styles from './styles.css';
import Drawer from '../Drawer';
function Navigation({ topics, selectTopic, toggleDrawer, isDrawerOpen }) {
return (
<div className={styles.navigation}>
<AppBar
toggleDrawer={toggl... |
examples/multiple-apps/core/components/Root.js | Travix-International/frint | import React from 'react';
import { Region } from 'frint-react';
export default class Root extends React.Component {
render() {
return (
<div className="container">
<div className="row">
<div className="eight columns">
<h3>Main</h3>
<hr />
<Region nam... |
src/panels/JobMonitor/LogFold.js | Kitware/HPCCloud | import React from 'react';
import PropTypes from 'prop-types';
import style from 'HPCCloudStyle/JobMonitor.mcss';
import state from 'HPCCloudStyle/States.mcss';
export default class LogFold extends React.Component {
constructor(props) {
super(props);
this.state = {
open: false,
};
this.toggleO... |
src/utils/yAxis.js | dat2/plottr | import React from 'react';
export default function yAxis({ ys = [], yScale, chartWidth, chartHeight, tickSize, textSize } = {}) {
const ticks = ys
// .filter ?
.map(y => ({ text: y, y: chartHeight - yScale * y, x1: -tickSize, x2: 0 }));
return (
<g className='plottr-axis'>
<line x1='0' x2='0' y... |
packages/icons/src/instance-type.js | geek/joyent-portal | import React from 'react';
import Rotate from './rotate';
import calcFill from './fill';
export default ({
fill = null,
light = false,
disabled = false,
direction = 'down',
colors = {},
style = {},
...rest
}) => (
<Rotate direction={direction}>
{({ style: rotateStyle }) => (
<svg
xml... |
app/js/App.js | skratchdot/infinite-gradients | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route } from 'react-router';
import About from './About';
import Home from './Home';
import NotFound from './NotFound';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import Header from './Header';
const App = React.cr... |
src/svg-icons/action/open-with.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionOpenWith = (props) => (
<SvgIcon {...props}>
<path d="M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z"/>
</SvgIcon>
);
ActionOpenWith = pure(Act... |
ajax/libs/vega/2.5.0/vega.js | ahocevar/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.vg = f()}})(fu... |
packages/canvas-planner/src/dynamic-ui/__tests__/animatable.spec.js | djbender/canvas-lms | /*
* Copyright (C) 2017 - 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... |
ajax/libs/react-instantsearch/4.1.1/Connectors.js | BenjaminVanRyseghem/cdnjs | /*! ReactInstantSearch 4.1.1 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.... |
src/components/foundation/plain-wordmark/FoundationPlainWordmark.js | fpoumian/react-devicon | import React from 'react'
import PropTypes from 'prop-types'
import SVGDeviconInline from '../../_base/SVGDeviconInline'
import iconSVG from './FoundationPlainWordmark.svg'
/** FoundationPlainWordmark */
function FoundationPlainWordmark({ width, height, className }) {
return (
<SVGDeviconInline
className=... |
ajax/libs/flocks.js/1.1.0/flocks.js | seogi1004/cdnjs |
/** @jsx React.DOM */
/* jshint node: true, browser: true, newcap: false */
/* eslint max-statements: 0, no-else-return: 0, brace-style: 0 */
/* eslint-env node,browser */
/**
* The Flocks library module. Load this module and use either the
* flocks <tt>flocks.createClass</tt> wrapper or the <tt>flocks plumbing<... |
src/svg-icons/image/blur-linear.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBlurLinear = (props) => (
<SvgIcon {...props}>
<path d="M5 17.5c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5.67 1.5 1.5 1.5zM9 13c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0-4c.55 0 1-.45 1-... |
src/pages/index.js | wind-swell/windswellpottery | import React from 'react'
import PropTypes from 'prop-types'
import Link from 'gatsby-link'
import Img from "gatsby-image";
import { get } from 'lodash'
import {isMobile} from 'react-device-detect';
// stack grid breaks SSR
let StackGrid = null
if (typeof window !== `undefined`) {
StackGrid = require("react-stack-g... |
src/Views/Blocks/Bare.js | abachman/my-new-tab | import React from 'react'
import PropTypes from 'prop-types'
import { GridBlockWrapper } from './Base'
class Bare extends React.Component {
static propTypes = {
block: PropTypes.object.isRequired
}
render() {
return (
<div className='item-container' />
)
}
}
export default GridBlockWrappe... |
cmd/elwinator/src/components/Segment.js | foolusion/choices | import React from 'react';
import { isClaimed } from '../nsconv';
const Segment = ({ namespaceSegments, experimentSegments, cellSize, spacing, rows }) => {
const cols = Math.ceil(128 / rows);
const segs = new Array(128).fill(false);
namespaceSegments.forEach((s, i) => {
for (let idx = 0; idx < 8; idx++) {
... |
packages/material-ui-icons/src/BackupTwoTone.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M19.21 12.04l-1.53-.11-.3-1.5C16.88 7.86 14.62 6 12 6 9.94 6 8.08 7.14 7.12 8.96l-.5.95-1.07.11C3.53 10.24 2 11.95 2 14c0 2.21 1.79 4 4 4h13c... |
src/components/Footer/Footer.js | globalART19/OrderedOptions | /**
* 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 withStyles from 'isom... |
app/jsx/outcomes/IndividualStudentMastery/UnassessedAssignment.js | djbender/canvas-lms | /*
* Copyright (C) 2018 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/destinations/Layout.js | RoyalIcing/gateau | import R from 'ramda'
import React from 'react'
import { Seed } from 'react-seeds'
import rgba from 'react-sow/rgba'
import divider from './divider'
const tiles = (tags, mentions, content, children, renderElement, resolveContent) => (
<Seed
row wrap reverse={ R.has('reverse', tags) } justifyContent='center'
widt... |
src/Editor.js | prajapati-parth/react-bootstrap-table | import Utils from './util';
import React from 'react';
const editor = function(editable, attr, format, editorClass, defaultValue, ignoreEditable, row) {
if (editable === true ||
(editable === false && ignoreEditable) ||
typeof editable === 'string') { // simple declare
const type = editable ? 'text' : ed... |
newclient/scripts/components/read-only-declarations-summary/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program 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, either version 3 of the
Lic... |
src/other/Loading.js | ndlib/beehive | import React from 'react'
import createReactClass from 'create-react-class'
import { CircularProgress } from '@material-ui/core'
const Loading = createReactClass({
render: function () {
return (<CircularProgress mode='indeterminate' size={0.5} />)
},
})
export default Loading
|
ajax/libs/rxjs/2.3.7/rx.all.compat.js | fk/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... |
src/components/GithubRibbon.js | msdark/msdark.github.io | import React from 'react'
const GithubRibbon = () => (
<a href="https://github.com/matiasfh/portfolio">
<img
css={`position: absolute; top: 0; left: 0; border: 0;`}
src="https://camo.githubusercontent.com/8b6b8ccc6da3aa5722903da7b58eb5ab1081adee/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f67697... |
ajax/libs/react-redux-form/1.0.12/ReactReduxForm.min.js | dakshshah96/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-redux"),require("redux"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-redux","redux","react-dom"],t):"object"==typeof exports?exports.ReactReduxForm=t(require("react"),... |
ajax/libs/element-ui/2.5.1/index.js | cdnjs/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define("ELEMENT",["vue"],t):"object"==typeof exports?exports.ELEMENT=t(require("vue")):e.ELEMENT=t(e.Vue)}(window,function(e){return function(e){var t={};function i(n){if(t[n])return t... |
test/specs/modules/Modal/Modal-test.js | jamiehill/stardust | import _ from 'lodash'
import React from 'react'
import Portal from 'react-portal'
import Modal from 'src/modules/Modal/Modal'
import ModalHeader from 'src/modules/Modal/ModalHeader'
import ModalContent from 'src/modules/Modal/ModalContent'
import ModalActions from 'src/modules/Modal/ModalActions'
import ModalDescript... |
src/components/Auth/SignUp/SignUp.react.js | DeveloperAlfa/chat.susi.ai | import React, { Component } from 'react';
import Paper from 'material-ui/Paper';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import $ from 'jquery';
import './SignUp.css';
import PasswordField from 'material-ui-password-field';
import Dialog from 'material-ui/Dial... |
src/TimePicker/TimePicker.spec.js | lawrence-yu/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import TimePicker from './TimePicker';
import {addHours, formatTime} from './timeUtils';
import getMuiTheme from '../styles/getMuiTheme';
import TextField from '../TextField';
describe('<TimePicker />', () =... |
ajax/libs/ui-router-extras/0.0.9/ct-ui-router-extras.js | jonobr1/cdnjs | /**
* UI-Router Extras
* @version v0.0.9
* @link http://christopherthielen.github.io/ui-router-extras/
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
(function (window, angular, undefined) {
angular.module("ct.ui.router.extras", [ 'ui.router' ]);
var DEBUG = false;
var forEach = angular.forE... |
components/App.js | juhojo/WLO | import React, { Component } from 'react';
import { WorkLoadOptimator } from './pages/WorkLoadOptimator.js';
export default class App extends Component {
render () {
return (
<WorkLoadOptimator />
);
}
}
|
ajax/libs/yui/3.18.0/scrollview-base/scrollview-base.js | pzp1997/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... |
src/svg-icons/maps/local-offer.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalOffer = (props) => (
<SvgIcon {...props}>
<path d="M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86... |
Examples/UIExplorer/TimerExample.js | futbalguy/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
src/assets/components/link-list.js | nialbima/portal | import React from 'react';
import { github, linkedin, instagram, email, resume } from '../../constants';
// Tracking
import config from '../scripts/tracking.js';
// Styles
import styles from '../stylesheets/link-list.css';
class LinkEntry extends React.Component {
render() {
return (
<a
className=... |
addons/knobs/src/components/types/Text.js | shilman/storybook | import PropTypes from 'prop-types';
import React from 'react';
import Textarea from 'react-textarea-autosize';
const styles = {
display: 'table-cell',
boxSizing: 'border-box',
verticalAlign: 'middle',
height: '26px',
width: '100%',
outline: 'none',
border: '1px solid #f7f4f4',
borderRadius: 2,
fontSi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.