path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
src/step-1/client/main.js | DJCordhose/react-intro-live-coding | import React from 'react';
import ReactDOM from 'react-dom';
import HelloMessage from './HelloMessage';
const mountNode = document.getElementById('mount');
ReactDOM.render(<HelloMessage greeting="Hello"/>, mountNode);
|
renderer/components/Home/NoWallets.js | LN-Zap/zap-desktop | import React from 'react'
import PropTypes from 'prop-types'
import { FormattedMessage } from 'react-intl'
import { Flex } from 'rebass/styled-components'
import { Heading } from 'components/UI'
import CreateWalletButton from './CreateWalletButton'
import messages from './messages'
const NoWallets = ({ history, wallet... |
src/svg-icons/action/info-outline.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionInfoOutline = (props) => (
<SvgIcon {...props}>
<path d="M11 17h2v-6h-2v6zm1-15C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zM11 9h... |
packages/material-ui-icons/src/InsertPhotoRounded.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="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.9 13.98l2.1 2.53 3.1-3.99c.2-.26.6-.26.8.01l3.51 4.68c.25.33.... |
docs/app/Examples/views/Feed/Types/FeedExampleShorthand.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Feed } from 'semantic-ui-react'
const events = [
{
date: '1 Hour Ago',
image: 'http://semantic-ui.com/images/avatar/small/elliot.jpg',
meta: '4 Likes',
summary: 'Elliot Fu added you as a friend',
},
{
date: '4 days ago',
image: 'http://semantic-ui.com/im... |
app/containers/CmsPage/index.js | SergejKasper/churchfathers | /*
*
* CmsPage
*
*/
import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import Cms from '../../components/Cms';
export class CmsPage extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function
render() {
return (
... |
src/svg-icons/social/mood-bad.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialMoodBad = (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 8zm3.5-9c.... |
packages/reactor-tests/src/tests/SenchaTestHooks.js | dbuhrman/extjs-reactor | import React from 'react';
import { Button } from '@extjs/ext-react';
export default function SenchaTestHooks() {
return <Button text="Target" itemId="target"/>
} |
svg-icons/file/create-new-folder.js | janmarsicek/material-ui | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
ajax/libs/highstock/2.1.2/highstock.src.js | yukinying/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highstock JS v2.1.2 (2015-02-27)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clearT... |
src/Components/Authors/index.js | gabriel-lopez-lopez/gll-billin-code-challenge | /**
* Componente que representa el listado de Autores.
* Realmente no es tal, viene a ser otra pagina que muestra todos los artículos,
* pero con la opción de poder filtrar por todos los que están disponibles o sólo
* los que se han marcado como publicados (activos)
*
*/
import React, { Component } from 'react'... |
app/javascript/mastodon/features/getting_started/components/announcements.js | maa123/mastodon | import React from 'react';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ReactSwipeableViews from 'react-swipeable-views';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import IconButton from 'mastodon/components/icon_button';
import Icon f... |
ajax/libs/cleave.js/0.7.17/cleave-angular.js | him2him2/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["Cleave"] = factory();
else
root["Cleave... |
src/main.js | mduncan2020/bmimaterial | import React from 'react'
import ReactDOM from 'react-dom'
import AppContainer from './containers/App/App'
import createStore from './store/createStore'
// ========================================================
// Store and History Instantiation
// ========================================================
// Create r... |
frontend/jqwidgets/jqwidgets-react/react_jqxtooltip.js | yevgeny-sergeyev/nexl-js | /*
jQWidgets v5.7.2 (2018-Apr)
Copyright (c) 2011-2018 jQWidgets.
License: https://jqwidgets.com/license/
*/
import React from 'react';
const JQXLite = window.JQXLite;
export const jqx = window.jqx;
export default class JqxTooltip extends React.Component {
componentDidMount() {
let options = this.manage... |
packages/material-ui-icons/src/CameraRollSharp.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="M14 5V3h-3V1H5v2H2v19h12v-2h8V5h-8zm-2 13h-2v-2h2v2zm0-9h-2V7h2v2zm4 9h-2v-2h2v2zm0-9h-2V7h2v2zm4 9h-2v-2h2v2zm0-9h-2V7h2v2z" /></g></React.F... |
examples/snippets/stateBasedQuery/App.js | RahavLussato/react-redux-firebase | import React, { Component, PropTypes } from 'react'
import logo from './logo.svg'
import './App.css'
import TodoItem from './TodoItem'
// redux/firebase
import { connect } from 'react-redux'
import { firebaseConnect, helpers } from 'react-redux-firebase'
const { isLoaded, isEmpty, pathToJS, dataToJS } = helpers
class... |
packages/material-ui-icons/src/WallpaperOutlined.js | Kagami/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="M4 4h7V2H4c-1.1 0-2 .9-2 2v7h2V4zm6 9l-4 5h12l-3-4-2.03 2.71L10 13zm7-4.5c0-.83-.67-1.5-1.5-1.5S14 7.67 14 8.5s.67 1.5 1.5 1.5S17 9.33 17 8.5... |
app/components/Admin/Commissioned/AdminPhotos.js | 1Green/projectAout | import React from 'react';
import { CreateGallery } from './CreateGallery';
import { DeleteGallery } from './DeleteGallery';
export const AdminPhotos = React.createClass({
getInitialState(){
return {
createSelected: false,
deleteSelected: false
}
},
render(){
const { createSele... |
src/components/header/newGame/NewGameModal.js | TechyFatih/Nuzlog | import React from 'react';
import { Modal, Button } from 'react-bootstrap';
import { connect } from 'react-redux';
import { actions } from 'react-redux-form';
import games from 'data/games.json';
import ConfirmModal from 'components/other/ConfirmModal';
import { RRForm, RRFControl } from 'components/form/RRF';
impor... |
src/app/component/cart-flyout/cart-flyout.story.js | all3dp/printing-engine-client | import React from 'react'
import {storiesOf} from '@storybook/react'
import range from 'lodash/range'
import CartFlyout from '.'
import CartModelItem from '../cart-model-item'
storiesOf('CartFlyout', module)
.add('default', () => (
<CartFlyout title="2 files in your cart">
{range(4).map(index => (
... |
src/pages/Login.js | GamerZUnited/GamerZUninted-FrontEnd | import React from 'react'
import {connect} from 'react-redux'
import {pushState } from 'redux-router'
import * as Actions from '../actions/AppActions'
import TestComponent from '../components/TestComponent';
@connect(
state => ({
login: state.login
})
)
class Login extends React.Component {
componentWillRe... |
packages/material-ui-icons/src/Subtitles.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Subtitles = props =>
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM4 12h4v2H4v-2zm10 6H4v-2h10v2zm6 0h-4v-2h4v2zm0-4H10v-2h10v2z" />
</SvgIco... |
ajax/libs/material-ui/5.0.0-alpha.11/CircularProgress/CircularProgress.min.js | cdnjs/cdnjs | "use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard"),_interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.styles=void 0;var _extends2=_interopRequireDefault(require("@bab... |
ajax/libs/angular-google-maps/1.1.12/angular-google-maps.js | humbletim/cdnjs | /*! angular-google-maps 1.1.11 2014-07-28
* AngularJS directives for Google Maps
* git: https://github.com/nlaplante/angular-google-maps.git
*/
/*
!
The MIT License
Copyright (c) 2010-2013 Google, Inc. http://angularjs.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this softw... |
files/yasqe/2.3.9/yasqe.bundled.min.js | 2947721120/cuddly-fibula | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASQE=e()}}(function(){var e;return function t(e,i,r)... |
assets/js/vendor/ZeroClipboard.Core.js | chancesmith/Email-Signature-Generator | /*!
* ZeroClipboard
* The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.
* Copyright (c) 2009-2015 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v2.3.0-beta.1
*/
(function(window, undefined) {
"... |
RNApp/node_modules/react-native/Libraries/Image/Image.ios.js | abhaytalreja/react-native-telescope | /**
* 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... |
index.js | marekv69/reduxTwitterTestApp | import './node_modules/bootstrap/dist/css/bootstrap.min.css';
import './styles/style.css';
import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
// it cre... |
web/src/index.js | robonyong/owl-rates | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import Routes from './routes';
import configureStore from './configureStore';
import '../scss/main.scss';
/* global document */
const store = configureStore();
const root = document.getElementById('root');
if (root... |
react-poc-guests/app/components/SimplePagination/index.js | Meesayen/react-poc | /**
*
* SimplePagination
*
*/
import React from 'react';
import styles from './styles.css';
function SimplePagination(props) {
return (
<div className={styles.simplePagination}>
<div>
<button
onClick={props.onPrev}
disabled={props.currentPage === 1}
>
Prev
... |
src/app/containers/App.js | UrgBenri/UrgBenriWeb | import React from 'react';
import Header from '../components/Header';
import Sidebar from '../components/Sidebar';
import Footer from '../components/Footer';
import PlotView from './PlotView';
import Connectors from './Connectors';
const styles = {
container: {
display: 'flex',
flexDirection: 'column',
... |
src/containers/Way.js | osoken/project-train-2016 | import React from 'react'
import { connect } from 'react-redux'
import { Link } from 'react-router'
let Way = ( {dispatch, way} ) => (
<div>
<div>
<div>出発地</div>
<div>大岡山駅</div>
</div>
<img src="" alt=""/>
<div>
<div>目的地</div>
<div>劇団四季(大井町駅)</div>
</di... |
app/javascript/mastodon/features/community_timeline/index.js | esetomo/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import {
refreshCommunityTimeline,
... |
ajax/libs/primereact/6.6.0-rc.1/listbox/listbox.esm.js | cdnjs/cdnjs | import React, { Component } from 'react';
import { DomHandler, classNames, ObjectUtils, Ripple, tip, FilterUtils } from 'primereact/core';
import { InputText } from 'primereact/inputtext';
import { VirtualScroller } from 'primereact/virtualscroller';
function _extends() {
_extends = Object.assign || function (target... |
src/components/HeaderComponent.js | VovanR/react-color-palette | 'use strict';
import React from 'react';
import { Nav, Navbar, NavBrand, Label, NavItem } from 'react-bootstrap';
require('styles/Header.css');
class HeaderComponent extends React.Component {
render() {
return (
<div className="header-component">
<Navbar>
<NavBrand>
Color Palette <sup><Label>Rea... |
ajax/libs/react-native-web/0.14.3/exports/YellowBox/index.js | cdnjs/cdnjs | /**
* Copyright (c) Nicolas Gallagher.
* 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.
*
*
*/
import React from 'react';
import UnimplementedView from '../../modules/UnimplementedVie... |
src/client.js | lordakshaya/pages | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createHistory from 'history/lib/createBrowserHistory';
import useScroll from 'scroll-behavior/lib/useStandardScroll';
imp... |
src/server/frontend/render.js | MartinPavlik/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/components/__tests__/appSpec.js | jamielesouef/jpr.mobi | 'use strict';
jest.unmock('../app');
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import RenderUtils from '../../utils/RenderUtils';
import App from '../app';
describe('App', function () {
it('should render the app container', function() {
const ... |
ajax/libs/react/0.13.0-alpha.2/react-with-addons.min.js | callumacrae/cdnjs | /**
* React (with addons) v0.13.0-alpha.2
*
* 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 ... |
App/node_modules/react-native/Libraries/Components/TextInput/TextInput.js | Dagers/React-Native-Differential-Updater | /**
* 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... |
packages/@lyra/vision/src/containers/VisionContainer.js | VegaPublish/vega-studio | import React from 'react'
import DelayedSpinner from '../components/DelayedSpinner'
import ErrorDialog from '../components/ErrorDialog'
import VisionGui from '../components/VisionGui'
import LoadingContainer from './LoadingContainer'
// Loads the most basic data from a Lyra project
class VisionContainer extends Loadin... |
slides/timeline/js/libs/jquery-1.7.2.js | Nordstrom/novo-nordisk-talk | /*!
* jQuery JavaScript Library v1.7.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/components/MainPage/Footer.js | cindyqian/BoardGames | import React from 'react'
import { Link } from 'react-router';
/**
*
*/
export default class Footer extends React.Component{
/**
* render
* @return {ReactElement} markup
*/
render(){
return (
<div id="footer" style={{margin:'20px'}}>
<a href="cindyqian.com" target="_blank">See more on Cindy's ... |
client/src/Pages/Preview.js | ciex/mietlimbo | // @flow
import React from 'react'
import { NavLink } from 'react-router-dom'
import logoOkf from '../Graphics/logo-okfn.svg'
import logoBmbf from '../Graphics/logo-bmbf.svg'
import { grey500, blue500 } from 'material-ui/styles/colors'
import RaisedButton from 'material-ui/RaisedButton'
import EmailIcon from 'material... |
src/main.js | OIT-ADS-Web/scholars_cv_generator | import React from 'react'
import { render, unmountComponentAtNode } from 'react-dom'
import ScholarsCV from './ScholarsCV'
import 'jquery'
import 'babel-polyfill'
//require ('bootstrap')
//require('./styles/main.less');
module.exports = function(targetNode) {
unmountComponentAtNode(targetNode)
render (
<... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | julianreimer/table-allocation | 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/svg-icons/image/crop-original.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropOriginal = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14zm-5.04-6.71l-2.75 3.54-1.96-2.36L6.5 17h11l-3.54-4.71z"... |
ajax/libs/ember-data.js/1.0.0-beta.14.1/ember-data.js | mohitbhatia1994/cdnjs | (function() {
"use strict";
/**
@module ember-data
*/
var ember$data$lib$system$adapter$$get = Ember.get;
var ember$data$lib$system$adapter$$errorProps = [
'description',
'fileName',
'lineNumber',
'message',
'name',
'number',
'stack'
];
/**
... |
ajax/libs/flocks.js/0.17.2/flocks.js | sitic/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... |
src/svg-icons/device/signal-cellular-connected-no-internet-1-bar.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularConnectedNoInternet1Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M20 10v8h2v-8h-2zm-8 12V12L2 22h10zm8 0h2v-2h-2v2z"/>
</SvgIcon>
);
Devi... |
src/components/Main.js | jinxiaodan/credit-center-webpack | require('normalize.css/normalize.css');
require('styles/App.css');
import React from 'react';
let yeomanImage = require('../images/yeoman.png');
class AppComponent extends React.Component {
render() {
return (
<div className="index">
<img src={yeomanImage} alt="Yeoman Generator" />
<div... |
es/Input/Input.js | uplevel-technology/material-ui-next | 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 = {... |
ajax/libs/react-dom/15.3.2-rc.1/react-dom-server.min.js | froala/cdnjs | /**
* ReactDOMServer v15.3.2-rc.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 s... |
packages/fyndiq-icons/src/product-box.js | fyndiq/fyndiq-ui | import React from 'react'
import SvgWrapper from './svg-wrapper'
const ProductBox = ({ className, color }) => (
<SvgWrapper className={className} viewBox="0 0 357.35 357.35">
<path
d="M178.68 133.24L22.53 61.06 178.68 0l156.14 61.06zM16.82 71.58l155.89 72.05v213.72L16.82 274.22zm323.71 202.64l-155.89 83.13... |
packages/material-ui-icons/src/BrightnessMedium.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6 6z" /></g>
, 'BrightnessMedium');
|
src/champions/champion.js | nkoder/lol-champions | import React from 'react';
// Example of React component defined as Stateless Function
// https://facebook.github.io/react/docs/reusable-components.html#stateless-functions
export const Champion = function (props) {
return (
<div>
{props.name}, {props.title}
</div>
);
};
// TODO lo... |
lib/components/Controls/Controls.js | christielynam/do-you | import React from 'react';
import { Link } from 'react-router-dom';
import fetchContainer from '../../containers/fetch-container';
import './Controls.css';
const handleSignOut = (props) => {
localStorage.removeItem('user');
props.removeTestsFromStore();
props.removeTestResultsFromStore();
props.removeUserFromS... |
src/renderer/ui/components/modals/AboutModal.js | MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL- | import { remote } from 'electron';
import React, { Component } from 'react';
import Dialog from './ThemedDialog';
import FlatButton from 'material-ui/FlatButton';
const appVersion = remote.app.getVersion();
const appName = remote.app.getName();
const appInDevMode = remote.getGlobal('DEV_MODE') ? 'Running in Developmen... |
src/containers/VehicleRoute.js | mick842/rental-cars-client | import React from 'react';
import { Redirect } from 'react-router-dom';
import VehiclePage from '../components/VehiclePage';
import { CircularProgress, Dialog, FlatButton } from 'material-ui';
import VehiclesAPI from '../services/api/VehiclesAPI';
class VehicleRoute extends React.Component {
constructor(props) {
... |
homepage/main-es5.1397238d74e058107284.js | lutsker/lutsker.github.io | var __extends=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.c... |
ajax/libs/forerunnerdb/1.3.794/fdb-legacy.js | tonytomov/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... |
plugins/react/frontend/components/controls/base/BooleanControl/index.js | pure-ui/styleguide | /**
* BooleanControl
*
* Renders an input which allows you to modify a certain property of type boolean
*/
import React from 'react';
import randomValue from './randomValue';
import Row from '../../../form/Grid/Row';
import LeftColumn from '../../../form/Grid/LeftColumn';
import RightColumn from '../../../form/Gri... |
packages/ringcentral-widgets/components/ActiveCallList/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import callDirections from 'ringcentral-integration/enums/callDirections';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import ActiveCallItem from '../ActiveCallItem';
import styles from './styles.scss';
function isConferenceCall(normalizedCall) {
return normali... |
ajax/libs/yui/3.8.1/event-focus/event-focus-coverage.js | leecrossley/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... |
frontend/src/Settings/Profiles/Metadata/PrimaryTypeItem.js | lidarr/Lidarr | import classNames from 'classnames';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import CheckInput from 'Components/Form/CheckInput';
import styles from './TypeItem.css';
class PrimaryTypeItem extends Component {
//
// Listeners
onAllowedChange = ({ value }) => {
const {
... |
react-flux-mui/js/material-ui/src/IconMenu/IconMenu.spec.js | pbogdan/react-flux-mui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import getMuiTheme from '../styles/getMuiTheme';
import IconMenu from './IconMenu';
describe('<IconMenu />', function() {
const muiTheme = getMuiTheme();
const shallowWithContext = (node) => shallow(node,... |
client/src/components/helpers/FullWidthRow.js | HKuz/FreeCodeCamp | import React from 'react';
import PropTypes from 'prop-types';
import { Row, Col } from '@freecodecamp/react-bootstrap';
function FullWidthRow({ children }) {
return (
<Row>
<Col sm={8} smOffset={2} xs={12}>
{children}
</Col>
</Row>
);
}
FullWidthRow.displayName = 'FullWidthRow';
FullW... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/material-ui/svg-icons/communication/forum.js | bhathiya/test | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
src/js/admin/article-edit/editor/editor.js | ucev/blog | import React from 'react'
import SimpleMDE from 'simplemde-customize-for-blog'
import { connect } from 'react-redux'
import ChoosePhotoDialog from '../choose-photo-dialog'
import InsertUrlDialog from '../insert-url-dialog'
import {
articleChange,
insertUrlVisibleStateChange,
photoVisibleStateChange,
photoUplo... |
ajax/libs/yui/3.7.0/scrollview-base/scrollview-base-coverage.js | jrbasso/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/svg-icons/content/add-circle.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentAddCircle = (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 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"/>
</SvgIcon>
);
ContentAddCircle = pure(Cont... |
ajax/libs/algoliasearch.zendesk-hc/3.0.0-alpha.2/algoliasearch.zendesk-hc.min.js | cdnjs/cdnjs | parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot... |
src/modules/users/graphql/queries/profile.js | cltk/cltk_frontend | import { gql, graphql } from 'react-apollo';
const query = gql`
query userProfileQuery {
userProfile {
_id
username
avatar
name
email
bio
isActiveUser
}
}
`;
const userProfileQuery = graphql(query, {
name: 'userProfileQuery',
});
export default userProfileQuery;
|
src/js/components/icons/base/Aid.js | odedre/grommet-final | /**
* @description Aid SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @proper... |
docs/src/app/components/pages/components/RadioButton/ExampleSimple.js | pomerantsev/material-ui | import React from 'react';
import {RadioButton, RadioButtonGroup} from 'material-ui/RadioButton';
import ActionFavorite from 'material-ui/svg-icons/action/favorite';
import ActionFavoriteBorder from 'material-ui/svg-icons/action/favorite-border';
const styles = {
block: {
maxWidth: 250,
},
radioButton: {
... |
js/App/Components/TabViews/GatewaysScreen.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... |
docs/src/ComponentsPage.js | SSLcom/Bootsharp | import React from 'react';
import AutoAffix from 'react-overlays/lib/AutoAffix';
import Waypoint from 'react-waypoint';
import Nav from 'react-bootstrap/lib/Nav';
import NavItem from 'react-bootstrap/lib/NavItem';
import Anchor from './Anchor';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
i... |
node_modules/ava/lib/format-assert-error.js | guloggratis/srvc-google-analytics | 'use strict';
const prettyFormat = require('@ava/pretty-format');
const reactTestPlugin = require('@ava/pretty-format/plugins/ReactTestComponent');
const chalk = require('chalk');
const diff = require('diff');
const DiffMatchPatch = require('diff-match-patch');
const indentString = require('indent-string');
const globa... |
app/javascript/mastodon/features/ui/components/column.js | TheInventrix/mastodon | import React from 'react';
import ColumnHeader from './column_header';
import PropTypes from 'prop-types';
import { debounce } from 'lodash';
import { scrollTop } from '../../../scroll';
import { isMobile } from '../../../is_mobile';
export default class Column extends React.PureComponent {
static propTypes = {
... |
client/scripts/components/toggle-switch/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/__tests__/fileMocks/componentNamespace/App.js | react-cosmos/fs-playground | // @flow
import React from 'react';
const App = () => <span />;
export default App;
|
motion-test/src/app.js | 3mundi/React-Bible | import React from 'react';
import ReactDOM from 'react-dom';
import MotionSimple from './motionSimple';
import MotionCustom from './motionCustom';
import StaggeredExample from './staggeredExample';
import TransitionExample from './transitionExample';
// ReactDOM.render(<MotionSimple/>, document.getElementById('root'))... |
sites/all/modules/contrib/jquery_update/replace/jquery/1.10/jquery.min.js | brightplum/apnc | /*! 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/renderer/components/Settings/SettingsAbout.react.js | MrBlenny/museeks | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Button } from 'react-bootstrap';
import ExternalLink from '../Shared/ExternalLink.react';
import lib from '../../lib';
// sth wrong with that, need some check with Webpack
const museeksLogoRequire = require('../../../images/log... |
src/components/code.js | waywaaard/spectacle | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { getStyles } from '../utils/base';
import Radium from 'radium';
const format = (str) => {
return str.replace(/</g, '<').replace(/>/g, '>');
};
@Radium
export default class Code extends Component {
createMarkup() {
retu... |
app/utils/injectSaga.js | kaizen7-nz/gold-star-chart | import React from 'react';
import PropTypes from 'prop-types';
import hoistNonReactStatics from 'hoist-non-react-statics';
import getInjectors from './sagaInjectors';
/**
* Dynamically injects a saga, passes component's props as saga arguments
*
* @param {string} key A key of the saga
* @param {function} saga A r... |
ajax/libs/forerunnerdb/1.3.878/fdb-core+persist.js | cdnjs/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... |
browser/app/js/components/Dropzone.js | hackintoshrao/minio | /*
* Minio Cloud Storage (C) 2016 Minio, Inc.
*
* 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... |
test/NavItemSpec.js | aabenoja/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import NavItem from '../src/NavItem';
describe('NavItem', function () {
it('Should add active class', function () {
let instance = ReactTestUtils.renderIntoDocument(
<NavItem active={true}>
Item content
</NavIte... |
ajax/libs/inferno/1.0.0-beta8/inferno-mobx.js | seogi1004/cdnjs | /*!
* inferno-mobx v1.0.0-beta8
* (c) 2016 Ryan Megidov
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('./inferno-component'), require('mobx'), require('./inferno'), require('./inferno-create-class')... |
packages/material-ui-icons/src/ThumbUpRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M13.12 2.06L7.58 7.6c-.37.37-.58.88-.58 1.41V19c0 1.1.9 2 2 2h9c.8 0 1.52-.48 1.84-1.21l3.26-7.61C23.94 10.2 22.49 8 20.34 8h-5.65l.95-4.58c.1-.5-.05-1.01-.41-1.37-.59-.58-1.53-.58-2.11.01zM3 21c1.1 0... |
tests/Element-spec.js | optiopay/optiopay-form | import React from 'react';
import TestUtils from 'react-addons-test-utils';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import sinon from 'sinon';
import Formsy from './..';
import TestInput, { InputFactory } from './utils/TestInput';
import immediate from './utils/immediate';
export default {
's... |
ajax/libs/6to5/3.3.9/browser-polyfill.js | shelsonjava/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... |
web-ui/src/backup_account/backup_email/backup_email.js | pixelated-project/pixelated-user-agent | /*
* Copyright (c) 2017 ThoughtWorks, Inc.
*
* Pixelated 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, or
* (at your option) any later version.
*
* Pixelated i... |
packages/material-ui-icons/src/CastSharp.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 fill="none" d="M0 0h24v24H0V0z" /><g><path d="M23 3H1v5h2V5h18v14h-7v2h9V3zM1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7... |
src/components/Datepicker/Datepicker.Context.js | helpscout/blue | /* istanbul ignore file */
import React from 'react'
export const datepickerContextDefaultValue = {
enableRangeSelection: false,
endDate: null,
focusedDate: null,
startDate: null,
isDateFocused: () => false,
isDateSelected: () => false,
isDateHovered: () => false,
isDateBlocked: () => false,
isFirstO... |
app/routes/routes/Persons/components/Persons.view.js | bugknightyyp/leyizhu | import React from 'react'
import {observer} from 'mobx-react'
import {Route, Link} from 'react-router-dom'
import {SELECTION} from 'macros'
import './persons.less'
export default observer(
(props) => (
<div className="persons-container">
<Link className="btn-add-person" to={`${props.match.url}/person`}>
... |
src/components/App.js | mdanie2/stanford-prereq-graph | import React, { Component } from 'react';
import Selection from './Selection';
export default class App extends Component {
render() {
return (
<Selection show={true} specName={null} />
);
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.