path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
ajax/libs/react-router/0.11.4/react-router.js | Amomo/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.ReactRouter=e()}}(function(){var define,module,export... |
build/webpack.config.server.js | leviluo/oneToone | import webpackConfig from './webpack.config'
import clone from 'clone'
import config from '../config'
import _debug from 'debug'
import fs from 'fs'
const debug = _debug('app:webpack:config')
const paths = config.utils_paths
debug('Create server configuration.')
const webpackConfigServer = clone(webpackConfig)
webpa... |
examples/shopping-cart/src/containers/App.js | roth1002/redux | import React from 'react'
import ProductsContainer from './ProductsContainer'
import CartContainer from './CartContainer'
const App = () => (
<div>
<h2>Shopping Cart Example</h2>
<hr/>
<ProductsContainer />
<hr/>
<CartContainer />
</div>
)
export default App
|
src/main/app/src/component/AddMicroservice/AddServiceFields.js | p632-sp-2017/microservice-catalog-frontend | import React from 'react';
import { Field } from 'redux-form';
import FontAwesome from "react-fontawesome";
import './AddService.css';
const setError = (fieldObj, errObj, msg)=>{
if(!fieldObj) {
errObj = "Required";
} else {
errObj = msg;
}
return errObj;
};
/**
* A helper function to validate the v... |
scenes/change-account.js | APU-Flow/FlowApp | // change-account.js
// Flow
'use strict';
import React, { Component } from 'react';
import { StyleSheet, Text, Alert, View, TouchableHighlight } from 'react-native';
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view';
import ModalDropdown from 'react-native-modal-dropdown';
export defa... |
node_modules/react-icons/fa/mars.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaMars = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m35.9 2.9q0.5 0 1 0.4t0.4 1v9.3q0 0.3-0.2 0.5t-0.5 0.2h-1.5q-0.3 0-0.5-0.2t-0.2-0.5v-5.9l-8.5 8.6q2.8 3.5 2.8 8 0 2.6-1 5t-2.7 4.1-4.2 2.7-4.9 1-5-1-4.1-2.7-2.8-4.1-1-5 ... |
blueocean-material-icons/src/js/components/svg-icons/action/settings-phone.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionSettingsPhone = (props) => (
<SvgIcon {...props}>
<path d="M13 9h-2v2h2V9zm4 0h-2v2h2V9zm3 6.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.25 8.5... |
library/src/pivotal-ui-react/table/table.js | sjolicoeur/pivotal-ui | import classnames from 'classnames';
import {Icon} from 'pui-react-iconography';
import {mergeProps} from 'pui-react-helpers';
import PropTypes from 'prop-types';
import React from 'react';
import sortBy from 'lodash.sortby';
import 'pui-css-tables';
import {FlexTableHeader} from './flex-table-header';
export {FlexTab... |
packages/material-ui/src/ListItem/ListItem.js | lgollut/material-ui | import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { chainPropTypes } from '@material-ui/utils';
import withStyles from '../styles/withStyles';
import ButtonBase from '../ButtonBase';
import isMuiElement from '../utils/isMuiElement';
import useForkRef from '../utils/useF... |
src/parser/druid/restoration/modules/features/PrematureRejuvenations.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS/index';
import Analyzer from 'parser/core/Analyzer';
import HealingDone from 'parser/shared/modules/throughput/HealingDone';
import StatisticBox from 'interface/others/StatisticBox';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/Spel... |
6.6.2/examples/syncValidation/dist/bundle.js | erikras/redux-form-docs | !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__e... |
ajax/libs/onsen/1.3.9/js/onsenui.js | holtkamp/cdnjs | /*! onsenui - v1.3.9 - 2015-09-07 */
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// JavaScript Dynamic Content shim for Windows Store apps
(function () {
if (window.MSApp && M... |
src/index.js | JAstbury/react-simple-game | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware()(createStore);
ReactDOM.render(
<Provi... |
src/svg-icons/av/music-video.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvMusicVideo = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM8 15c0-1.66 1.34-3 3-3 .35 0 .69.07 1 .18V6h5v2h-3v7.03c-.0... |
src/svg-icons/image/picture-as-pdf.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePictureAsPdf = (props) => (
<SvgIcon {...props}>
<path d="M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5v1zm5 ... |
app/PlayerAll.js | yanxyans/dominion | import React from 'react';
import Paper from 'material-ui/Paper';
import AppBar from 'material-ui/AppBar';
import { red700, blue700, green700, yellow700 } from 'material-ui/styles/colors';
import IconButton from 'material-ui/IconButton';
import IconEmpty from 'material-ui/svg-icons/toggle/star-border';
import IconHal... |
src/layouts/LoginLayout/LoginLayout.js | zhangjianguo1500/f01 | import React from 'react'
import '../CoreLayout/CoreLayout.scss'
import '../../styles/core.scss'
export const LoginLayout = ({ children }) => (
<div className='container text-center'>
<div className='core-layout__viewport'>
{children}
</div>
</div>
)
LoginLayout.propTypes = {
children : React.Prop... |
files/rxjs/2.4.1/rx.lite.compat.js | Asaf-S/jsdelivr | // 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
};
v... |
docs/app/Examples/collections/Form/index.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import Content from './Content'
import Types from './Types'
import Variations from './Variations'
import Shorthand from './Shorthand'
import FieldVariations from './FieldVariations'
import GroupVariations from './GroupVariations'
import States from './States'
const FormExamples = () => (
<d... |
examples/huge-apps/routes/Calendar/components/Calendar.js | zipongo/react-router | import React from 'react'
class Calendar extends React.Component {
render() {
const events = [
{ id: 0, title: 'essay due' }
]
return (
<div>
<h2>Calendar</h2>
<ul>
{events.map(event => (
<li key={event.id}>{event.title}</li>
))}
</ul>
... |
ajax/libs/highcharts/3.0.7/highcharts.src.js | FaiblUG/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highcharts JS v3.0.7 (2013-10-24)
*
* (c) 2009-2013 Torstein Hønsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout... |
src/svg-icons/image/view-comfy.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageViewComfy = (props) => (
<SvgIcon {...props}>
<path d="M3 9h4V5H3v4zm0 5h4v-4H3v4zm5 0h4v-4H8v4zm5 0h4v-4h-4v4zM8 9h4V5H8v4zm5-4v4h4V5h-4zm5 9h4v-4h-4v4zM3 19h4v-4H3v4zm5 0h4v-4H8v4zm5 0h4v-4h-4v4zm5 0h4v-... |
packages/reactor-kitchensink/src/examples/Tabs/BottomTabs/BottomTabs.js | markbrocato/extjs-reactor | import React from 'react';
import { TabPanel, Container } from '@extjs/ext-react';
export default function BottomTabsExample() {
return (
<TabPanel
shadow
tabBar={{ docked: 'bottom' }}
defaults={{
cls: "card",
layout: "center"
... |
information/blendle-frontend-react-source/app/components/login/ResetPassword/index.js | BramscoChill/BlendleParser | import React from 'react';
import PropTypes from 'prop-types';
import BackboneView from 'components/shared/BackboneView';
import Link from 'components/Link';
import { translate } from 'instances/i18n';
import ResetTokenForm from 'views/forms/resettoken';
class ResetPassword extends React.Component {
static propTypes... |
test/test_helper.js | carlos-agu/BlogPosts | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
client-angular-1.x/node_modules/babel-plugin-transform-react-jsx/lib/index.js | skeiter9/webpack-boilerplate-sk9 | "use strict";
var _getIterator = require("babel-runtime/core-js/get-iterator")["default"];
exports.__esModule = true;
exports["default"] = function (_ref2) {
var t = _ref2.types;
var JSX_ANNOTATION_REGEX = /\*?\s*@jsx\s+([^\s]+)/;
var visitor = require("babel-helper-builder-react-jsx")({
pre: function pr... |
session2/src/src/index.js | AlexQianjin/reactlearning | import React from 'react'
import { render } from 'react-dom'
import Menu from './components/Menu'
import data from './data/recipes'
window.React = React
render(
<Menu recipes={data} />,
document.getElementById("app")
) |
src/App.js | domoticz/Reacticz | import React, { Component } from 'react';
import {Responsive, WidthProvider} from 'react-grid-layout';
import AboutView from './AboutView';
import ConfigStorageHelper from './util/ConfigStorageHelper';
import DeviceListView from './DeviceListView';
import DeviceWidget from './widgets/DeviceWidget';
import JSONClientSin... |
src/pages/projects.js | stolinski/st2017 | import React from 'react';
import Layout from '../components/Layout';
import { Title, MainWrapper } from '../components/Headings';
import { ProjectsList } from '../components/ProjectsStyles';
const projects = [
{
title: 'Level Up Tutorials',
link: 'https://www.leveluptutorials.com/',
desc:
'2000+ ... |
src/containers/pages/create-deck/after-class-selection/right-container/topbar-assets/import-deck.js | vFujin/HearthLounge | import React from 'react';
import PropTypes from 'prop-types';
import Button from '../../../../../../components/buttons/button';
const DeckstringInput = ({importedDeckstring, handleInputChange, handleDeckImport}) =>{
return (
<div className="deck-import">
<input id="deckstring-popover" placeholder="Pas... |
node_modules/react-icons/md/bluetooth-disabled.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdBluetoothDisabled = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m21.6 30.3l3.2-3.1-3.2-3.2v6.3z m-12.6-23.7l24.4 24.4-2.4 2.4-3.8-3.9-7.2 7.1h-1.6v-12.6l-7.7 7.6-2.3-2.3 9.3-9.3-11.1-11z m12.6 3.1v5.4l-3.2-3.4v-8.3h1.6l9... |
web/nodejs/react-router-bootstrap/tests/visual/ButtonVisual.js | woylaski/notebook | import React from 'react';
import ButtonToolbar from 'react-bootstrap/lib/ButtonToolbar';
import Button from 'react-bootstrap/lib/Button';
import { Link } from 'react-router';
import LinkContainer from '../../src/LinkContainer';
export default () => (
<div>
<Link to="home">Back to Index</Link>
<h2>Button</h... |
node_modules/react-icons/ti/heart-half-outline.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const TiHeartHalfOutline = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m3.7 15.7c0 2.1 0.3 5.5 3.3 8.5 2.7 2.6 11.5 8.6 11.8 9 0.4 0.1 0.7 0.3 1 0.3s0.7-0.2 1-0.3c0.4-0.4 9.2-6.2 11.9-9 3-3 3.3-6.4 3.3-8.5 0-5-4-9-9-9-2.7 0-5.3 ... |
vendor/bower/jquery/src/sizzle/test/jquery.js | pipop1150/choke | /*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-2-4
*/
(function( window, undefined ) {
// Can't do t... |
CompositeUi/src/views/component/Advice.js | kreta/kreta | /*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <benatespina@gmail.com>
* (c) Gorka Laucirica <gorka.lauzirika@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import './../../scss/components/_advice.s... |
client/containers/Annotate.js | exacs/liqen-face | import React from 'react'
import { connect } from 'react-redux'
import zipWith from 'lodash/fp/zipWith'
import fetch from 'isomorphic-fetch'
import Article from '../components/annotator/article'
import MultiList from '../components/annotator-drawer/multi-list'
import LiqenCreator from '../components/annotator-drawer/l... |
src/svg-icons/action/delete-forever.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDeleteForever = (props) => (
<SvgIcon {...props}>
<path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.... |
contrib/hello-world-react/src/www/js/components/item-cart.js | intuit/wasabi | import React from 'react';
export const ItemCartComponent = props => <table style={{width: '500px'}}>
<thead><tr><th style={{width: '260px'}}>Name</th><th style={{width: '100px'}}>Price</th><th>Quantity</th><th> </th></tr></thead>
<tbody>
{ props.cart.map((nextProduct, index) => <tr key={index}>
... |
packages/wix-style-react/src/EmptyState/EmptyState.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import { classes, st } from './EmptyState.st.css';
import Heading from '../Heading';
import Text from '../Text';
import { FontUpgradeContext } from '../FontUpgrade/context';
/**
* Representing a state of an empty page, section, table, etc.
*/
const Empt... |
ajax/libs/yui/3.11.0/scrollview-base/scrollview-base.js | panshuiqing/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... |
blueprints/view/files/__root__/views/__name__View/__name__View.js | wardy/cool-story-bro | import React from 'react'
type Props = {
};
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render () {
return (
<div></div>
)
}
}
export default <%= pascalEntityName %>
|
packages/netlify-cms-widget-code/src/SettingsPane.js | netlify/netlify-cms | import React from 'react';
import styled from '@emotion/styled';
import Select from 'react-select';
import isHotkey from 'is-hotkey';
import { text, shadows, zIndex } from 'netlify-cms-ui-default';
import SettingsButton from './SettingsButton';
import languageSelectStyles from './languageSelectStyles';
const Settings... |
src/components/DefaultBlockType.js | vigetlabs/colonel-kurtz | import React from 'react'
export default class DefaultBlockType extends React.Component {
render() {
return <div>{this.props.children}</div>
}
}
|
src/components/searchbar.js | tgundavelli/React_Udemy | import React, { Component } from 'react';
//const SearchBar = () => {
// return <input />;
//};
// each class based object has a state object
// if state of search bar is changed then the render function is reran
class SearchBar extends Component{
// this is how we initialize state in a class based component
// ... |
themes/frontend/assets/reactjs/process/js/1SearchCarPage.js | fonea/velon | import React from 'react';
import CarFilterResults from './CarFilterResults';
import SearchCarPager from './SearchCarPager';
import SearchCarDisplayController from './SearchCarDisplayController';
import _ from 'lodash';
import cookie from 'react-cookie';
import queryString from 'query-string';
import VelonCircularPro... |
node_modules/react-icons/md/local-bar.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdLocalBar = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m12.4 11.6h15.2l2.9-3.2h-21z m22.6-3.2l-13.4 15v8.2h8.4v3.4h-20v-3.4h8.4v-8.2l-13.4-15v-3.4h30v3.4z"/></g>
</Icon>
)
export default MdLocalBar
|
src/lib/Row.js | maheshsenni/react-treelist | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import '../css/row.css';
import RowCell from './RowCell';
import { getClassName } from './util/TreeUtils'
class Row extends Component {
constructor(props) {
super(props);
this.displayName = 'Row';
this.handleExpandToggle = thi... |
examples/react-backbone/node_modules/react/dist/JSXTransformer.js | thebkbuffalo/todomvc | /**
* JSXTransformer v0.13.3
*/
(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... |
src/svg-icons/action/dashboard.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDashboard = (props) => (
<SvgIcon {...props}>
<path d="M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"/>
</SvgIcon>
);
ActionDashboard = pure(ActionDashboard);
ActionDashboard.displayName... |
packages/material-ui-icons/src/RoomOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zM7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 2.88-2.88 7.19-5 9.88C9.92 16.21 7 11.85 7 9z" /><circle cx="12" cy="9" r="2.... |
example/screens/TerribleNameScreen.js | GantMan/useless-things | import React from 'react'
import { StyleSheet, Text, View } from 'react-native'
import { TerribleName } from 'useless-things'
export default class App extends React.Component {
render () {
return (
<View style={styles.container}>
<Text style={styles.title}>Examples of Terrible Names</Text>
... |
packages/react/src/components/UIShell/HeaderMenuButton.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 { Close20, Menu20 } from '@carbon/icons-react';
import cx from 'classnames';
import React from 'react';
import PropTypes from 'prop-t... |
app/components/Balance/__tests__/index-test.js | ModusCreateOrg/budgeting-sample-app-webpack2 | import React from 'react';
import renderer from 'react-test-renderer';
import Balance from '..';
it('renders correctly', () => {
const mockAmount = {
text: 'text',
isNegative: false,
};
const tree = renderer.create(<Balance title="title" amount={mockAmount} />).toJSON();
expect(tree).toMatchSnapshot();... |
ajax/libs/react-select/1.0.0/react-select.es.js | wout/cdnjs | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { findDOMNode } from 'react-dom';
import AutosizeInput from 'react-input-autosize';
import classNames from 'classnames';
function arrowRenderer(_ref) {
var onMouseDown = _ref.onMouseDown;
return React.createElement('span', {
clas... |
webpack/scenes/AnsibleCollections/AnsibleCollectionsPage.js | snagoor/katello | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import qs from 'query-string';
import { translate as __ } from 'foremanReact/common/I18n';
import { orgId } from '../../services/api';
import TableSchema from './AnsibleCollectionsTableSchema';
import ContentPage from '../../components/Conten... |
static-assets/js/libs/jquery-1.6.2.min.js | vestrada/studio-ui | /*!
* jQuery JavaScript Library v1.6.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/@ui/Header/index.js | NewSpring/Apollos | import React from 'react';
import { View, StatusBar, Platform } from 'react-native';
import SafeAreaView from '@ui/SafeAreaView';
import PropTypes from 'prop-types';
import { compose, setPropTypes, pure, branch, renderNothing, defaultProps } from 'recompose';
import { withTheme, withThemeMixin } from '@ui/theme';
impor... |
ajax/libs/material-ui/4.9.3/es/SwipeableDrawer/SwipeArea.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import withStyles from '../styles/withStyles';
import capitalize from '.... |
bin/ISOServer.js | tianyingchun/docs | import path from 'path';
import express from 'express';
import cors from 'cors';
import favicon from 'serve-favicon';
import execTime from 'exec-time';
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import { Provider } from 'react-redux';
import { RoutingContext, match } from 'react-router';... |
imports/ui/components/PdfContent/PdfContent.js | muhammadsasmito/meteor-solr | import React from 'react'
const PdfContent = React.createClass({
propTypes: {
result : React.PropTypes.string.isRequired,
},
componentDidMount(){
// If absolute URL from the remote server is provided, configure the CORS
// header on that server.
var currentPage = 1;
var pages = [... |
client/views/notFound/NotFoundPage.js | Sing-Li/Rocket.Chat | import { Box, Button, ButtonGroup, Flex, Margins } from '@rocket.chat/fuselage';
import React from 'react';
import ConnectionStatusAlert from '../../components/connectionStatus/ConnectionStatusAlert';
import { useRoute } from '../../contexts/RouterContext';
import { useTranslation } from '../../contexts/TranslationCon... |
src/components/Youtube.js | cape-io/innova | import React, { Component, PropTypes } from 'react'
import Video from './Video'
class Youtube extends Component {
// innova channelId UC1dLyBjCAFz9tNxEr47zIEA
// ACF UUEC1Deur1BSCtznxH3nP2WQ
componentDidMount() {
this.props.fetchItems({
playlistId: 'UU1dLyBjCAFz9tNxEr47zIEA',
key: 'AIzaSyDu7__FOq... |
ajax/libs/jquery/1.8.3/jquery.js | gokuale/cdnjs | /*!
* jQuery JavaScript Library v1.8.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time)
*/
(function(... |
ajax/libs/rxjs/2.2.27/rx.all.compat.js | wackyapples/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
};
v... |
app/containers/Institute/InstituteListPage.js | kdprojects/nichesportapp | import React from 'react';
import H3 from 'components/H3';
import InstituteForm from './InstituteForm';
import RaisedButton from 'material-ui/RaisedButton';
import CenteredSection from '../../containers/HomePage/CenteredSection';
import { graphql } from 'react-apollo';
import gql from 'graphql-tag';
import Dialog from ... |
ajax/libs/react-data-grid/1.0.36/react-data-grid.ui-plugins.min.js | ahocevar/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactDataGrid=t(require("react"),require("react-dom")):e.ReactDataGrid=t(e.React,e.ReactDOM)}(th... |
src/components/Terms/index.js | chejen/GoodJobShare | import React from 'react';
import Helmet from 'react-helmet';
import { Section, Wrapper } from 'common/base';
import PageBanner from 'common/PageBanner';
import editorStyles from 'common/Editor.module.css';
import { HELMET_DATA } from '../../constants/helmetData';
const Terms = () => (
<main>
<Helmet {...HELMET_... |
src/components/modals/Newproject/Newproject.js | Convicted202/PixelShape | import React, { Component } from 'react';
import ModalWindow from '../../modalwindow/Modalwindow';
import ToggleCheckbox from '../../togglecheckbox/Togglecheckbox';
import StateLoader from '../../../statemanager/StateLoader';
import { projectExtension } from '../../../defaults/constants';
import './newproject.styl';
... |
ajax/libs/forerunnerdb/1.3.643/fdb-core+views.js | honestree/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... |
src/js/components/icons/base/StandardsDevice.js | linde12/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
docs/app/Examples/elements/Button/Groups/ButtonGroupIconExample.js | jcarbo/stardust | import React from 'react'
import { Button } from 'stardust'
const ButtonIconButtonsExample = () => (
<div>
<Button.Group>
<Button icon='align left' />
<Button icon='align center' />
<Button icon='align right' />
<Button icon='align justify' />
</Button.Group>
{' '}
<Button.Gro... |
packages/mineral-ui-icons/src/IconMood.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconMood(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}>
... |
packages/editor/src/components/Icons/Superscript.js | strues/boldr | import React from 'react';
import Icon from './Icon';
const Superscript = props => (
<Icon viewBox="0 0 512 512" {...props}>
<path d="M500.065 270.691H383.611c3.092-18.342 24.015-34.022 47.984-50.038 34.415-22.995 76.138-50.642 76.138-103.222 0-50.301-38.48-85.431-93.577-85.431-37.629 0-72.116 19.458-90.794 50.3... |
js/src/Connection/connection.js | destenson/ethcore--parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity 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 3 of the License, or
// (at your option) any lat... |
packages/ui-toolkit/src/section-list/index.js | geek/joyent-portal | import React from 'react';
import styled from 'styled-components';
import remcalc from 'remcalc';
import Baseline from '../baseline';
const UnorderedList = styled.ul`
background: ${props => props.theme.disabled};
list-style-type: none;
padding: ${remcalc(13)} ${remcalc(0)};
margin: ${remcalc(18)} 0 0 0;
max... |
react-flux-mui/js/material-ui/src/svg-icons/action/invert-colors.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionInvertColors = (props) => (
<SvgIcon {...props}>
<path d="M17.66 7.93L12 2.27 6.34 7.93c-3.12 3.12-3.12 8.19 0 11.31C7.9 20.8 9.95 21.58 12 21.58c2.05 0 4.1-.78 5.66-2.34 3.12-3.12 3.12-8.19 0-11.31zM12 1... |
app/containers/UserEdit/index.js | Princess310/antd-demo | /*
*
* UserEdit
*
* path --> userEdit
*
* page to show user detail info and edit for them
*/
import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { browserHistory } from 'react-router';
import pallete from 'styles/colors';
... |
examples/todomvc/test/components/Footer.spec.js | camsong/redux | import expect from 'expect'
import React from 'react'
import TestUtils from 'react-addons-test-utils'
import Footer from '../../components/Footer'
import { SHOW_ALL, SHOW_ACTIVE } from '../../constants/TodoFilters'
function setup(propOverrides) {
const props = Object.assign({
completedCount: 0,
activeCount: ... |
imports/ui/components/InputHint/InputHint.js | haraneesh/mydev | import React from 'react';
import PropTypes from 'prop-types';
import './InputHint.scss';
const InputHint = ({ children }) => (
<div className="InputHint">
{children}
</div>
);
InputHint.propTypes = {
children: PropTypes.node.isRequired,
};
export default InputHint;
|
ajax/libs/swagger-ui/3.44.1/swagger-ui-es-bundle-core.js | cdnjs/cdnjs | /*! For license information please see swagger-ui-es-bundle-core.js.LICENSE.txt */
module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.definePrope... |
src/parser/shared/modules/items/bfa/dungeons/ConchofDarkWhispers.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import ITEMS from 'common/ITEMS';
import UptimeIcon from 'interface/icons/Uptime';
import CriticalStrikeIcon from 'interface/icons/CriticalStrike';
import ItemStatistic from 'interface/statistics/ItemStatistic';
import BoringItemValueText from 'interface/s... |
src/index.js | lewiscowper/react-blessed-hot-motion | import React from 'react';
import { render } from 'react-blessed';
import App from './components/App';
// Render app
const screen = render(<App />, {
autoPadding: true,
smartCSR: true,
title: 'React Blessed Hot Motion'
});
// Let user quit the app
screen.key(['escape', 'q', 'C-c'], function(ch, key) {
return ... |
ajax/libs/yui/3.0.0pr2/loader/loader-debug.js | freak3dot/cdnjs | /**
* Loader dynamically loads script and css files. It includes the dependency
* info for the version of the library in use, and will automatically pull in
* dependencies for the modules requested. It supports rollup files and will
* automatically use these when appropriate in order to minimize the number of
* ... |
ajax/libs/aui/7.5.0-beta-3/aui/js/aui-experimental.js | seogi1004/cdnjs | /*!
* @atlassian/aui - Atlassian User Interface Framework
* @version v7.5.0-beta-3
* @link https://docs.atlassian.com/aui/latest/
* @license SEE LICENSE IN LICENSE.md
* @author Atlassian Pty Ltd.
*/
// src/js/aui/polyfills/placeholder.js
(typeof window === 'undefined' ? global : window).__452d3f8e5d643ab60faf3f56... |
.storybook/config.js | dcwither/react-editable-decorator | import "./styles.css";
import { configure } from "@storybook/react";
// automatically import all files ending in *.stories.js
configure(
require.context("../stories", true, /\.stories\.(js|jsx|ts|tsx|mdx)$/),
module
);
|
src/icons/font/StyleIcon.js | skystebnicki/chamel | import React from 'react';
import PropTypes from 'prop-types';
import FontIcon from '../../FontIcon';
import ThemeService from '../../styles/ChamelThemeService';
/**
* Style button
*
* @param props
* @param context
* @returns {ReactDOM}
* @constructor
*/
const StyleIcon = (props, context) => {
let theme =
... |
ajax/libs/react-native-web/0.11.4/exports/TouchableOpacity/index.js | cdnjs/cdnjs | function _extends() { _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; }; return _extends.apply(this, arguments); }
f... |
lib/yuilib/3.17.2/event-focus/event-focus.js | tlock/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-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Ev... |
src/Well.js | chilts/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Well = React.createClass({
mixins: [BootstrapMixin],
getDefaultProps() {
return {
bsClass: 'well'
};
},
render() {
let classes = this.getBsClassSet();
return (
<di... |
examples/js/custom/pagination/custom-size-per-page.js | prajapati-parth/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-console: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn, SizePerPageDropDown } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = ... |
Examples/UIExplorer/BorderExample.js | mchinyakov/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/svg-icons/image/tag-faces.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTagFaces = (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.... |
ajax/libs/yui/3.16.0/datatable-core/datatable-core-coverage.js | kentcdodds/cdnjs | /*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/datatable-core/datatable-core.js']) {
__coverage__['build/datatable-core/datatable-... |
src/index.js | tabazevedo/styletron-connect | import React from 'react';
import PropTypes from 'prop-types';
import { getStylesProp } from './internals';
const connectStyles = (Component, styles, key = 'styles') => {
const StyledElement = (props, { styletron }) => {
return React.createElement(Component, {
...props,
[key]: getStylesProp(styles, s... |
src/svg-icons/image/looks-one.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooksOne = (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-2zm-5 14h-2V9h-2V7h4v10z"/>
</SvgIcon>
);
ImageLooksOne = pure(ImageLooksOn... |
app/components/about/Team.js | jendela/jendela | import React from 'react'
import Title from '../template/Title'
import Colors from '../../constants/JendelaColors'
import Youtube from '../template/Youtube'
import Author from './Author'
const authors = [
{
avatar: "alsa.png",
name: "Alsasian Atmopawiro",
title: "Software Engineer",
... |
packages/material-ui-icons/src/FormatTextdirectionLToROutlined.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="M9 4v4c-1.1 0-2-.9-2-2s.9-2 2-2m8-2H9C6.79 2 5 3.79 5 6s1.79 4 4 4v5h2V4h2v11h2V4h2V2zm0 12v3H5v2h12v3l4-4-4-4z" /></g></React.Fragment>
, 'F... |
app/classifier/drawing-tools/components/DetailsSubTaskForm/DetailsSubTaskForm.spec.js | amyrebecca/Panoptes-Front-End | /* eslint
func-names: 0,
import/no-extraneous-dependencies: ["error", { "devDependencies": true }]
prefer-arrow-callback: 0,
"react/jsx-boolean-value": ["error", "always"]
*/
import React from 'react';
import PropTypes from 'prop-types';
import { mount, shallow } from 'enzyme';
import { expect } from 'chai';
i... |
demos/demo/src/components/Menu/index.js | idream3/cerebral | import React from 'react'
import {connect} from 'cerebral/react'
import {state} from 'cerebral/tags'
import translations from '../../common/computed/translations'
const MENUS = [
{
name: 'Work',
entries: [
{name: 'Today', icon: 'fa-clock-o', url: '#/'},
{name: 'Report', icon: 'fa-bar-chart', url:... |
test/ProgressBarSpec.js | dongtong/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ProgressBar from '../src/ProgressBar';
import {shouldWarn} from './helpers';
const getProgressBarNode = wrapper => {
return React.findDOMNode(ReactTestUtils.findRenderedDOMComponentWithClass(wrapper, 'progress-bar'));
};
descri... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.