path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
actor-apps/app-web/src/app/index.js | hmoraes/actor-platform | import polyfills from 'utils/polyfills'; // eslint-disable-line
import crosstab from 'crosstab';
import React from 'react';
import Router from 'react-router';
import Raven from 'utils/Raven'; // eslint-disable-line
import isMobile from 'utils/isMobile';
import ReactMixin from 'react-mixin';
import Intl from 'intl'; /... |
src/js/App.js | karatechops/grommet-fsi | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React from 'react';
import GrommetApp from 'grommet/components/App';
import Home from './components/Home';
class App extends React.Component {
render() {
return (
<GrommetApp centered={false} inline={true}>
<Home onProgress... |
web/assets/js/homepage/CarGallery.js | xuqiantong/NY_Auto | import React from 'react';
import ReactDOM from 'react-dom';
import CarFilter from './CarFilter.js';
var Filter = require('react-filter');
function CarName(props) {
const make = props.name.vehicle_make;
const year = props.name.vehicle_year;
const model = props.name.vehicle_model;
var trim = props.name... |
src/svg-icons/communication/voicemail.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationVoicemail = (props) => (
<SvgIcon {...props}>
<path d="M18.5 6C15.46 6 13 8.46 13 11.5c0 1.33.47 2.55 1.26 3.5H9.74c.79-.95 1.26-2.17 1.26-3.5C11 8.46 8.54 6 5.5 6S0 8.46 0 11.5 2.46 17 5.5 17h13c3... |
imports/ui/components/MultiStepAuthor/MultiStepAuthor.js | jamiebones/Journal_Publication | /* eslint-disable */
import React from 'react';
import PropTypes from 'prop-types';
import { Row, Col, FormGroup, HelpBlock ,
ControlLabel, Button , Well , FormControl ,
Panel , Label , ButtonToolbar , ButtonGroup} from 'react-bootstrap';
import { Meteor } from 'meteor/meteor';
import { createContainer } from ... |
node_modules/react-d3-shape/webpack.prod.config.js | xuan6/admin_dashboard_local_dev | 'use strict';
var path = require('path'),
webpack = require('webpack'),
nodeModulesPath = path.join(__dirname, 'node_modules');
var js_root = './lib/';
var js_dist = __dirname;
// 0 stands for development, 1 stands for production
// for development mode: NODE_ENV=0 webpack
// for production mode: NODE_ENV=1 webp... |
src/CollapsibleMixin.js | rapilabs/react-bootstrap | import React from 'react';
import TransitionEvents from './utils/TransitionEvents';
import deprecationWarning from './utils/deprecationWarning';
let warned = false;
const CollapsibleMixin = {
propTypes: {
defaultExpanded: React.PropTypes.bool,
expanded: React.PropTypes.bool
},
getInitialState(){
l... |
src/svg-icons/maps/local-convenience-store.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalConvenienceStore = (props) => (
<SvgIcon {...props}>
<path d="M19 7V4H5v3H2v13h8v-4h4v4h8V7h-3zm-8 3H9v1h2v1H8V9h2V8H8V7h3v3zm5 2h-1v-2h-2V7h1v2h1V7h1v5z"/>
</SvgIcon>
);
MapsLocalConvenienceStore = ... |
ajax/libs/js-data/1.2.1/js-data.js | jdh8/cdnjs | /**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file dist/js-data.js
* @version 1.2.0 - Homepage <http://www.js-data.io/>
* @copyright (c) 2014 Jason Dobry
* @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE>
*
* @overview Data store.
*/
!function(e){if("object"==typeof exports&&"undefined"!=ty... |
packages/material-ui-icons/src/PaymentTwoTone.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M4 6h16v2H4zM4 12h16v6H4z" opacity=".3" /><path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0... |
src/components/common/svg-icons/action/book.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionBook = (props) => (
<SvgIcon {...props}>
<path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z"/>
</SvgIcon>
);
ActionBook = pure(ActionBook);
Ac... |
app/index.js | ZhydraBook/zhydrabook | import React from 'react';
import { render } from 'react-dom';
import { hashHistory } from 'react-router';
import { AppContainer } from 'react-hot-loader';
import { syncHistoryWithStore } from 'react-router-redux';
import 'semantic-ui-css/semantic.css';
import Root from './containers/Root';
import configureStore from ... |
docs/client.js | erictherobot/react-bootstrap | import 'bootstrap/less/bootstrap.less';
import './assets/docs.css';
import './assets/style.css';
import './assets/carousel.png';
import './assets/logo.png';
import './assets/favicon.ico';
import './assets/thumbnail.png';
import './assets/thumbnaildiv.png';
import 'codemirror/mode/htmlmixed/htmlmixed';
import 'codemir... |
client/src/index.js | prattl/wepickheroes | import React from 'react'
import { ApolloProvider } from 'react-apollo'
import ReactDOM from 'react-dom'
import { BrowserRouter as Router } from 'react-router-dom'
import './styles/bootstrap-theme/wepickheroes.css'
import './styles/layout.css'
import { client } from './api'
import App from './components/App'
import {... |
src/Resume/Skills.js | yrezgui/napersona | import React from 'react';
export default class Skills extends React.Component {
constructor(props) {
super(props);
}
renderSkill(name, index) {
const className = `state skill ${name}`;
return <span key={index} className={className}>{name}</span>;
}
render() {
return (
<p className="l... |
javascripts/libs/jquery.min.js | cloverfisher/cloverfisher.github.com | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
app/containers/LocaleToggle/index.js | stephme/react-specly | /*
*
* LanguageToggle
*
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import Toggle from 'components/Toggle';
import Wrapper from './Wrapper';
import messages from './messages';
import { appLocales } from '../../i18n';
import { changeLocale } from ... |
src/svg-icons/content/report.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentReport = (props) => (
<SvgIcon {...props}>
<path d="M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM12 17.3c-.72 0-1.3-.58-1.3-1.3 0-.72.58-1.3 1.3-1.3.72 0 1.3.58 1.3 1.3 0 .72-.58 1.3-1.3... |
react/src/components/dashboard/claimInterestModal/claimInterestModal.js | pbca26/EasyDEX-GUI | import React from 'react';
import { connect } from 'react-redux';
import ReactDOM from 'react-dom';
import Store from '../../../store';
import {
toggleClaimInterestModal,
getListUnspent,
getRawTransaction,
copyString,
sendToAddressPromise,
triggerToaster,
apiElectrumListunspent,
apiElectrumSendPreflight... |
src/pages/videos/fpv/index.js | jumpalottahigh/blog.georgi-yanev.com | import React from 'react'
import { graphql, useStaticQuery } from 'gatsby'
import styled from 'styled-components'
import { Fade } from 'react-reveal'
import Layout from '../../../components/structure/layout'
import Video from '../../../components/Video/Video'
const Grid = styled.div`
display: grid;
grid-gap: 30px... |
src/svg-icons/editor/format-paint.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatPaint = (props) => (
<SvgIcon {...props}>
<path d="M18 4V3c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6h1v4H9v11c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-9h8V4h-3z"/>
</SvgIco... |
src/main/webapp/act/diagram-viewer/js/jquery/jquery.js | CHENJUNCHENG123/chenjuncheng | /*!
* jQuery JavaScript Library v1.7.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
docs/app/Examples/elements/Image/Variations/ImageExampleRounded.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Image } from 'semantic-ui-react'
const ImageExampleRounded = () => (
<Image src='/assets/images/wireframe/square-image.png' size='medium' shape='rounded' />
)
export default ImageExampleRounded
|
Scenarios/Provisioning.Yammer/Provisioning.YammerWeb/Scripts/jquery-1.9.1.min.js | JonathanHuss/PnP | /* NUGET: BEGIN LICENSE TEXT
jQuery v1.9.1
Microsoft grants you the right to use these script files for the sole purpose of either: (i) interacting through your browser with the Microsoft website, subject to the website's terms of use; or (ii) using the files as included with a Microsoft product subject to that produc... |
app/jestsetup.js | reportportal/service-ui | /*
* Copyright 2019 EPAM Systems
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
src/Root.js | GovWizely/trade-event-search-app | import React from 'react';
import PropTypes from 'prop-types';
import { Provider } from 'react-redux';
import { Router, Route, IndexRoute } from 'react-router';
import App from './containers/App';
import Home from './containers/Home';
import Search from './containers/Search';
const Root = ({ store, history }) => (
<... |
assets/plugins/flot/jquery.min.js | joaohcrangel/PHP-MongoDB-IDE | /*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===... |
packages/react/src/components/Tooltip/Tooltip-test.js | carbon-design-system/carbon-components | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import debounce from 'lodash.debounce';
import FloatingMenu from '../../internal/FloatingMenu';
imp... |
docs/src/app/components/pages/components/Divider/ExampleList.js | spiermar/material-ui | import React from 'react';
import Divider from 'material-ui/Divider';
import {List, ListItem} from 'material-ui/List';
import MobileTearSheet from '../../../MobileTearSheet';
const DividerExampleList = () => (
<MobileTearSheet height={250}>
<List>
<ListItem insetChildren={true} primaryText="Janet Perkins B... |
app/javascript/mastodon/features/compose/components/reply_indicator.js | Arukas/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from '../../../components/avatar';
import IconButton from '../../../components/icon_button';
import DisplayName from '../../../components/display_name';
import { defineMessages, injec... |
public/app/src/components/run.js | bikesharehawaii/hibikeshare | import React from 'react';
import App from './Main';
// Render the main component into the dom
React.render(<App />, document.getElementById('app'));
|
fields/types/cloudinaryimage/CloudinaryImageFilter.js | BlakeRxxk/keystone | import classNames from 'classnames';
import React from 'react';
import { SegmentedControl } from 'elemental';
var PasswordFilter = React.createClass({
getInitialState () {
return {
checked: this.props.value || true
};
},
toggleChecked (checked) {
this.setState({
checked: checked
});
},
renderTog... |
examples/example-1/CustomElementChoose.js | ezypeeze/react-mozer | import React from 'react';
import PropTypes from 'prop-types';
import {ElementHOC} from '../../src';
class CustomElementChoose extends React.Component {
static propTypes = {
items: PropTypes.arrayOf(String)
};
static defaultProps = {
items: []
};
render() {
return (
... |
ajax/libs/yui/3.1.0/loader/loader-debug.js | ruo91/cdnjs | YUI.add('loader-base', function(Y) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
(function() {
var VERSION = Y.version,
CONFIG = Y.config,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN_BASE = Y.Env.base,
GALLERY_VERSION = ... |
src/modules/shelter/components/shelter-container.js | gabrielecker/animapp | import React, { Component } from 'react';
class ShelterContainer extends Component {
render() {
return (
<div>{this.props.children}</div>
);
}
}
ShelterContainer.propTypes = {
children: React.PropTypes.object,
};
export default ShelterContainer;
|
client/vendor/jquery.js | scriby/browser-harness | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
ajax/libs/rxjs/2.2.10/rx.compat.js | jonathan-fielding/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,
'u... |
src/js/components/social/index.js | Arlefreak/arlefreakClient | import React from 'react';
import PropTypes from 'prop-types';
const Container = ({ config }) => {
return (
<section className="social-subscribe">
<p><a rel="noopener noreferrer" target="_blank" href={ config.twitter }>twitter<i className="fa fa-twitter"/></a></p>
<p><a rel="noopene... |
src/server.js | chunkai1312/universal-react-redux-starter-kit | import path from 'path'
import express from 'express'
import proxy from 'http-proxy-middleware'
import favicon from 'serve-favicon'
import compression from 'compression'
import React from 'react'
import { renderToString } from 'react-dom/server'
import { createMemoryHistory, match } from 'react-router'
import { syncHis... |
src/static/containers/Root/DevTools.js | samrose3/eventhunt | import React from 'react';
import { createDevTools } from 'redux-devtools';
// Monitors are separate packages, and you can make a custom one
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
// createDevTools takes a monitor and produces a DevTools component
c... |
components/__tests__/DetailPageHeader-test.js | hellobrian/carbon-components-react | import React from 'react';
import { mount, shallow } from 'enzyme';
import window from 'window-or-global';
import DetailPageHeader from '../DetailPageHeader';
import Icon from '../Icon';
import Breadcrumb from '../Breadcrumb';
import BreadcrumbItem from '../BreadcrumbItem';
import OverflowMenu from '../OverflowMenu';
i... |
src/forms/controls/generic-option.spec.js | Zenika/Pogues | import React from 'react';
import renderer from 'react-test-renderer';
import GenericOption from './generic-option';
describe('Form controls - Generic option', () => {
test('Should exists with the corresponding template', () => {
const props = {
value: 'Fake value',
className: 'fake-class-name'
... |
node_modules/enzyme/test/Debug-spec.js | sharonjean/React-Netflix | import { expect } from 'chai';
import React from 'react';
import {
spaces,
indent,
debugNode,
} from '../src/Debug';
import { mount } from '../src/';
import {
describeWithDOM,
describeIf,
itIf,
} from './_helpers';
import { REACT013 } from '../src/version';
describe('debug', () => {
describe('spaces(n)'... |
example/src/index.js | ryo33/react-state-redux | import React from 'react'
import { render } from 'react-dom'
import { createStore, combineReducers, applyMiddleware } from 'redux'
import { Provider } from 'react-redux'
import createLogger from 'redux-logger';
import { reactStateReduxReducer } from '../../src/index'
import Example from './Example'
const logger = cr... |
src/svg-icons/device/access-time.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceAccessTime = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.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 3.58 8 8-3.58 8-8 8zm.5-1... |
src/index.js | davidbjourno/davidbjourno.github.io | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
files/bootstrap.material-design/4.0.2/bootstrap-material-design.iife.min.js | khorep/jsdelivr | !function(){"use strict";function interopDefault(ex){return ex&&"object"==typeof ex&&"default"in ex?ex["default"]:ex}function createCommonjsModule(fn,module){return module={exports:{}},fn(module,module.exports),module.exports}var commonjsGlobal="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefi... |
src/components/ChartMaker/MeasureDisplay.js | BenGoldstein88/redux-chartmaker | import React from 'react';
import Measure from './Measure';
export default class MeasureDisplay extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className={'measure-display'} >
{this.props.measures}
</div>
);
}
}
|
src/components/ChatApp/MessageListItem/MessageListItem.react.js | uday96/chat.susi.ai | import React from 'react';
import PropTypes from 'prop-types';
import Emojify from 'react-emojione';
import TextHighlight from 'react-text-highlight';
import {AllHtmlEntities} from 'html-entities';
import $ from 'jquery';
import { imageParse, processText,
renderTiles, drawMap, drawTable,
renderMessageFooter, render... |
src/App.js | thol01/simple-react-boilerplate | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<h1>Hello, world!</h1>
);
}
}
|
test/tours/standard.spec.js | gilbarbara/react-joyride | import React from 'react';
import Standard from '../__fixtures__/Standard';
import { ACTIONS, EVENTS, LIFECYCLE, STATUS } from '../../src';
jest.mock('popper.js', () => {
const PopperJS = jest.requireActual('popper.js');
return class {
static placements = PopperJS.placements;
constructor() {
retu... |
app/javascript/mastodon/features/account_timeline/components/header.js | sylph-sin-tyaku/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import InnerHeader from '../../account/components/header';
import ImmutablePureComponent from 'react-immutable-pure-component';
import MovedNote from './moved_note';
import { FormattedMessage } fro... |
src/svg-icons/action/open-in-browser.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionOpenInBrowser = (props) => (
<SvgIcon {...props}>
<path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm-7 6l-4 4h3v6h2v-6h3l-4-4z"/>
</SvgIcon>
);
... |
react/mixins/StyleProps.js | ericgarcia/upward-cms | import React from 'react';
import _ from 'lodash';
// Enumerated props help encourage/enforce styling consistency,
// and speed UI development through a limited set of standard values.
// If these are insufficient, you can always set arbitrary CSS value through the `style` attribute as usual.
export default opts => (... |
src/frontend/components/EventsDashboard.js | Bernie-2016/ground-control | import React from 'react'
import Relay from 'react-relay'
import {
LeftNav,
Styles,
Divider,
FloatingActionButton,
RaisedButton,
FlatButton,
Card,
CardTitle,
CardText,
CardActions,
FontIcon,
List,
ListItem,
Checkbox,
Dialog
} from 'material-ui'
import Subheader from 'material-ui/lib/Subhea... |
src/svg-icons/hardware/power-input.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwarePowerInput = (props) => (
<SvgIcon {...props}>
<path d="M2 9v2h19V9H2zm0 6h5v-2H2v2zm7 0h5v-2H9v2zm7 0h5v-2h-5v2z"/>
</SvgIcon>
);
HardwarePowerInput = pure(HardwarePowerInput);
HardwarePowerInput.dis... |
ui/src/main/js/components/__tests__/UpdateDiff-test.js | thinker0/aurora | import React from 'react';
import { shallow } from 'enzyme';
import Diff from '../Diff';
import UpdateDiff from '../UpdateDiff';
import { TaskConfigBuilder } from 'test-utils/TaskBuilders';
import {
UpdateBuilder,
UpdateDetailsBuilder,
UpdateInstructionsBuilder,
createInstanceTaskGroup
} from 'test-utils/Upda... |
ajax/libs/core-js/0.9.6/library.js | him2him2/cdnjs | /**
* Core.js 0.9.6
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(undefined){
'use strict';
var __e = null, __g = null;
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******... |
src/svg-icons/action/opacity.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionOpacity = (props) => (
<SvgIcon {...props}>
<path d="M17.66 8L12 2.35 6.34 8C4.78 9.56 4 11.64 4 13.64s.78 4.11 2.34 5.67 3.61 2.35 5.66 2.35 4.1-.79 5.66-2.35S20 15.64 20 13.64 19.22 9.56 17.66 8zM6 14c.... |
app/src/components/photo.js | cyberpolin/cyberpolin.github.io | import React from 'react'
import styled from 'styled-components'
const Photo = styled.div`
background: url('/img/cyberpolin.png');
background-size: cover;
height: 150px;
width: 150px;
border-radius: 50%;
@media (max-width: 600px){
height: 120px;
width: 120px;
}
`
const PhotoShadow = styled.div... |
client/index.js | tomzmtl/Brew-Master | import React from 'react';
import routes from '../shared/routes';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import { configureStore } from '../shared/store/configureStore';
const store = configureStore(window.__INITIAL_STATE__);
c... |
tp-3/marisol/src/components/pages/about/AboutPage.js | jpgonzalezquinteros/sovos-reactivo-2017 | import React from 'react';
// Since this component is simple and static, there's no parent container for it.
const AboutPage = () => {
return (
<div>
<h2 className="alt-header">About Me</h2>
<p>
About Page
</p>
</div>
);
};
export default AboutPage;
|
demo/react-0.14.3/React-Learning/react-webpack/js/form.js | waterbolik/prestudy | import React from 'react';
import Input from 'react-bootstrap/lib/Input';
import form from 'react-bootstrap/lib/FormGroup';
import ButtonInput from 'react-bootstrap/lib/Button';
const Forms = React.createClass({
getInitialState() {
return{
value:''
};
},
handleChange() {
this.setState({
... |
src/svg-icons/image/filter-drama.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterDrama = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.61 5.64 5.36 8.04 2.35 8.36 0 10.9 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... |
ajax/libs/phaser/2.0.0/custom/p2.js | dryajov/cdnjs | /**
* The MIT License (MIT)
*
* Copyright (c) 2013 p2.js authors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to ... |
src/js/components/DataTable/stories/Sized.js | HewlettPackard/grommet | import React from 'react';
import { Grommet, Box, DataTable } from 'grommet';
import { grommet } from 'grommet/themes';
// Source code for the data can be found here
// https://github.com/grommet/grommet/blob/master/src/js/components/DataTable/stories/data.js
import { columns, data } from './data';
export const Size... |
docs/app/Examples/elements/Step/Types/index.js | jcarbo/stardust | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const Types = () => (
<ExampleSection title='Groups'>
<ExampleSection title='Types'>
<ComponentExample
title='Step'... |
src/components/DownloadLayout/index.js | octoblu/meshblu-connector-factory-ui | import React from 'react'
import styles from './styles.css'
const propTypes = {}
const defaultProps = {}
const DownloadLayout = ({ children }) => {
return (<div>
<h1 className={styles.header}>Install</h1>
{children}
</div>)
}
DownloadLayout.propTypes = propTypes
DownloadLayout.defaultProps = defaultPr... |
ajax/libs/video.js/4.12.2/video.dev.js | RizkyAdiSaputra/cdnjs | /**
* @fileoverview Main function src.
*/
// HTML5 Shiv. Must be in <head> to support older browsers.
document.createElement('video');
document.createElement('audio');
document.createElement('track');
/**
* Doubles as the main function for users to create a player instance and also
* the main library object.
*
... |
core/src/plugins/access.fs/res/js/dialog/OtherEditorPickerDialog.js | huzergackl/pydio-core | /*
* Copyright 2007-2017 Charles du Jeu - Abstrium SAS <team (at) pyd.io>
* This file is part of Pydio.
*
* Pydio 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 License, o... |
node_modules/react-icons/io/fork-repo.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const IoForkRepo = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m32.5 6.3v5h-3.7v3.7h-5v-3.7h-3.8v-5h3.8v-3.8h5v3.8h3.7z m-8.7 12.5h5v0.3c0 3.4-0.6 5.5-3 7.5-1.8 1.4-4 1.5-5.9 1.7-0.7 0.1-1.4 0.1-2 0.2-0.5 0.1-1 0.4-1.6 0.8 0.7 0... |
ajax/libs/yui/3.12.0/scrollview-base/scrollview-base.js | sarmadsangi/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/components/Home.js | nunoblue/ts-react | import React, { Component } from 'react';
class Home extends Component {
componentDidMount() {
console.log('Home Render');
}
render() {
return (
<div className="mdl-grid">
Home!!
</div>
);
}
}
export default Home;
|
clients/packages/admin-client/src/components/navigation/navbar/navbar-button.js | nossas/bonde-client | import PropTypes from 'prop-types'
import React from 'react'
import classnames from 'classnames'
const NavbarButton = props => {
const handleClick = e => {
e.preventDefault()
const { targetId } = props
const target = document.getElementById(targetId)
target.scrollIntoView({behavior: "smooth"})
}
... |
lib/client/helpers/render-routes.js | ABaldwinHunter/relax | import createHistory from 'history/lib/createBrowserHistory';
import React from 'react';
import {render} from 'react-dom';
import {Provider} from 'react-redux';
import {reduxReactRouter, ReduxRouter} from 'redux-router';
import configureStore from '../../helpers/configure-store';
export default function renderRoutes ... |
ajax/libs/angular.js/0.9.11/angular-scenario.min.js | stefanneculai/cdnjs | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/components/App.js | tanykim/julie-and-julia | import React, { Component } from 'react';
import Script from './../data/data.json';
import SearchForm from './SearchForm';
import Visualization from './Visualization';
import SecretStory from './SecretStory';
import TextLineList from './TextLineList';
class App extends Component {
constructor(props) {
super(pro... |
src/com/page/node/event/event.js | ludumdare/ludumdare | import {h, Component} from "preact/preact";
import PageNavEvent from '../../nav/event';
import ContentEvent from "com/content-event/event";
import ContentNavEvent from "com/content-nav/nav-event";
import ContentNavTheme from "com/content-nav/nav-theme";
import ContentError from "com/content... |
lib/eos/emulator/app/main/Leds.rc.js | rulkens/EosNode | import React from 'react'
import { connect } from 'react-redux'
import classNames from 'classnames/bind';
let Leds = ({leds, visType, direction}) => (
<div className={classNames(
'leds',
{[`vis-type-${visType}`]: true},
{[`direction-${direction}`]: true})
}>
{led... |
src/pages/Home.js | mtomcal/reactjs-hooligans-tv | import React, { Component } from 'react';
import { Jumbotron, Button } from 'react-bootstrap';
import Player from '../player';
import { Containers } from '../data';
import { Card } from '../cards';
import {api_url} from '../config.js';
var Home = React.createClass({
propTypes: {
queryData: React.PropTypes.ob... |
ajax/libs/react-virtualized/9.17.1/react-virtualized.min.js | jonobr1/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],t):"object"==typeof exports?exports.ReactVirtualized=t(require("React"),require("ReactDOM")):e.ReactVirtualized=t(e.React,e.ReactDOM)}... |
packages/material-ui-icons/src/Filter7Sharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M3 5H1v18h18v-2H3V5zm20-4H5v18h18V1zm-2 16H7V3h14v14zm-8-2l4-8V5h-6v2h4l-4 8h2z" />
, 'Filter7Sharp');
|
ajax/libs/jQuery-Validation-Engine/2.6.2/jquery-1.8.2.min.js | xirzec/cdnjs | /*! jQuery v1.8.2 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==... |
src/svg-icons/maps/my-location.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsMyLocation = (props) => (
<SvgIcon {...props}>
<path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.1... |
client/src/index.js | CodeDraken/Mail-Draken | import 'materialize-css/dist/css/materialize.min.css'
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { createStore, applyMiddleware, compose } from 'redux'
import reduxThunk from 'redux-thunk'
import App from './components/App'
import reducers from './reducers'... |
tests/layouts/CoreLayout.spec.js | davecarlson/reacty | import React from 'react'
import TestUtils from 'react-addons-test-utils'
import CoreLayout from 'layouts/CoreLayout/CoreLayout'
function shallowRender (component) {
const renderer = TestUtils.createRenderer()
renderer.render(component)
return renderer.getRenderOutput()
}
function shallowRenderWithProps (props... |
src/routes/LudumDare.js | rdfurman/web-rfurman | import React, { Component } from 'react';
import Unity, { UnityContent } from 'react-unity-webgl';
import { Panel, ButtonGroup, Button, Glyphicon } from 'react-bootstrap';
class DemonShanker2 extends Component {
constructor(props) {
super(props);
this.unityContent = new UnityContent(
process.env.PUBL... |
src/svg-icons/device/brightness-high.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBrightnessHigh = (props) => (
<SvgIcon {...props}>
<path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 ... |
app/components/Dashboard/index.js | Blacksage959/Michael.McCann | /**
*
* Dashboard
*
*/
import React from 'react';
class Dashboard extends React.PureComponent {
render() {
return (
<div>
</div>
);
}
}
export default Dashboard;
|
fmi-2022-04-react-blogs/src/components/TextInputField.js | iproduct/course-node-express-react | import React from 'react'
import PropTypes from 'prop-types'
import { TextField } from '@mui/material';
const TextInputField = ({formik, field, label}) => {
const { errors, touched, getFieldProps } = formik;
label = label || field.charAt(0).toUpperCase() + field.slice(1)
return (
<TextField
... |
geonode/monitoring/frontend/src/components/organisms/alert-setting/index.js | mcldev/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router';
import HR from '../../atoms/hr';
class AlertsSetting extends React.Component {
static propTypes = {
alert: PropTypes.object.isRequired,
autoFocus: PropTypes.bool,
}
static defaultProps = {
autoFocus:... |
exercise-07/src/components/AddPokemonPreview.js | learnapollo/pokedex-react | import React from 'react'
import { Link } from 'react-router'
export default class AddPokemonPreview extends React.Component {
static propTypes = {
trainerId: React.PropTypes.string.isRequired,
}
render () {
return (
<Link
to={`/create/${this.props.trainerId}`}
style={{ minWidth: ... |
pkg/users/dialog-utils.js | deryni/cockpit | /*
* This file is part of Cockpit.
*
* Copyright (C) 2020 Red Hat, Inc.
*
* Cockpit is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any l... |
Libraries/Modal/Modal.js | imDangerous/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
ajax/libs/raven.js/raven-node@2.6.4/angular,require,vue/raven.js | cdnjs/cdnjs | /*! Raven.js 3.27.0 (200cffcc) | github.com/getsentry/raven-js */
/*
* Includes TraceKit
* https://github.com/getsentry/TraceKit
*
* Copyright (c) 2018 Sentry (https://sentry.io) and individual contributors.
* All rights reserved.
* https://github.com/getsentry/sentry-javascript/blob/master/packages/raven-js/LIC... |
public/controllers/overview/components/alerts-stats.js | wazuh/wazuh-kibana-app | /*
* Wazuh app - React component for alerts stats.
*
* Copyright (C) 2015-2022 Wazuh, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at you... |
src/Parser/Druid/Feral/Modules/Bleeds/RakeUptime.js | hasseboulen/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Enemies from 'Parser/Core/Modules/Enemies';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import StatisticBox, { ST... |
modules/field_ui/field_ui.js | sperdhav/it_latest_blog | /**
* @file
* Attaches the behaviors for the Field UI module.
*/
(function($) {
Drupal.behaviors.fieldUIFieldOverview = {
attach: function (context, settings) {
$('table#field-overview', context).once('field-overview', function () {
Drupal.fieldUIFieldOverview.attachUpdateSelects(this, settings);
... |
src/containers/Root.js | ijones16/gistyNotetaker | import React, { Component } from 'react';
import App from './App';
import { createStore, combineReducers } from 'redux';
import { Provider } from 'react-redux';
import rootReducer from '../reducers';
const store = createStore(rootReducer);
export default class Root extends Component {
render() {
return (
... |
app/components/pages/Organize/Steps/IconsRender.js | romainquellec/cuistot | import React from 'react';
import { ICONS } from './Icons';
import Icon from 'components/genericComponents/Icon';
import StyleImage from './StyleImage';
import theme, { animations } from '../../../../utils/theme';
import Column from '../../../genericComponents/Container/Column';
import Column4 from '../../../genericCo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.