path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
components/Cards/Card/Card.js | rdjpalmer/bloom | import PropTypes from 'prop-types';
import React from 'react';
import cx from 'classnames';
import css from './Card.css';
const Card = ({ className, href, target, children, ...rest }) => {
const Component = href ? 'a' : 'div';
const classes = cx(
css.root,
href ? css.link : null,
className,
);
r... |
upgrade-guides/v0.11-v0.12/esnext/config/env/development.js | lore/lore | /**
* Development environment settings
*
* This file is where you define overrides for any of the config settings when operating under the development
* environment. Development environment is defined as `NODE_ENV=development` or the absence of an `NODE_ENV` environment
* variable.
**/
import _ from 'lodash';
im... |
packages/material-ui-icons/src/LocalGasStationSharp.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M19.77 7.23l.01-.01-3.72-3.72L15 4.56l2.11 2.11c-1.05.4-1.76 1.47-1.58 2.71.16 1.1 1.1 1.99 2.2 2.11.47.05.88-.03 1.27-.2v8.21h-2V12h-3V3H4v18h1... |
app/containers/LanguageProvider/index.js | xavierouicar/react-boilerplate | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
assets/js/jquery/ui/1.10.4/tests/jquery-1.7.1.js | perrineb/base.integration | /*!
* 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.
... |
src/index.js | mikejablonski/newo-brew-web | /* eslint-disable import/default */
import React from 'react';
import { render } from 'react-dom';
import { browserHistory } from 'react-router';
import { AppContainer } from 'react-hot-loader';
import Root from './components/Root';
import configureStore from './store/configureStore';
require('./favicon.ico'); // Tel... |
blueocean-material-icons/src/js/components/svg-icons/notification/tap-and-play.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const NotificationTapAndPlay = (props) => (
<SvgIcon {...props}>
<path d="M2 16v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm0 4v3h3c0-1.66-1.34-3-3-3zm0-8v2c4.97 0 9 4.03 9 9h2c0-6.08-4.92-11-11-11zM17 1.01L7 1c-1.1 0-2 .9-2 2v7.37c.69.16 1.36.37 2 .64... |
src/svg-icons/action/group-work.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionGroupWork = (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 2zM8 17.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5... |
src/svg-icons/device/storage.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceStorage = (props) => (
<SvgIcon {...props}>
<path d="M2 20h20v-4H2v4zm2-3h2v2H4v-2zM2 4v4h20V4H2zm4 3H4V5h2v2zm-4 7h20v-4H2v4zm2-3h2v2H4v-2z"/>
</SvgIcon>
);
DeviceStorage = pure(DeviceStorage);
DeviceS... |
docs/src/FormsPage.js | jareth/react-materialize | import React from 'react';
import Row from '../../src/Row';
import Col from '../../src/Col';
import ReactPlayground from './ReactPlayground';
import PropTable from './PropTable';
import store from './store';
import Samples from './Samples';
import iconPrefixesInput from '../../examples/IconPrefixesInput';
import inputR... |
src/svg-icons/social/sentiment-neutral.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialSentimentNeutral = (props) => (
<SvgIcon {...props}>
<path d="M9 14h6v1.5H9z"/><circle cx="15.5" cy="9.5" r="1.5"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C1... |
src/js/App.js | klapec/redditfetch | import React from 'react';
import Store from './stores/Store';
import Sidebar from './components/Sidebar';
import PostList from './components/PostList';
const App = React.createClass({
getInitialState() {
return {
currentCategory: '',
categoryList: []
};
},
componentWillMount() {
this.s... |
components/Navbar.ios.js | fjjk-snacktime/snacktime | import React, { Component } from 'react';
import {
Text,
View,
Image,
TouchableHighlight
} from 'react-native';
import styles from '../styles.ios.js';
export default class Nav extends Component {
border(color) {
return {
borderColor: color,
borderWidth: 5,
}
}
render() {
return (
... |
ajax/libs/video.js/5.0.0-rc.72/video.novtt.js | menuka94/cdnjs | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.videojs = f()}... |
test/helpers/shallowRenderHelper.js | wangzengkai/gallery-by-react | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/CustomInterpolation.js | christiantinauer/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
const styled = ([style]) =>
style
.trim()
.spli... |
Libraries/Components/Navigation/NavigatorIOS.ios.js | jhen0409/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... |
react-flux-mui/js/material-ui/src/svg-icons/editor/format-color-text.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatColorText = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".36" d="M0 20h24v4H0z"/><path d="M11 3L5.5 17h2.25l1.12-3h6.25l1.12 3h2.25L13 3h-2zm-1.38 9L12 5.67 14.38 12H9.62z"/>
</SvgIcon>
);... |
src/interface/icons/GitHub.js | sMteX/WoWAnalyzer | import React from 'react';
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 139" className="icon" {...other}>
<path d="M98.6961598,59.3124474 L55.6354962,59.3124474 C54.5247282,59.3124474 53.623096,60.2151464 53.623096,61.3259144 L53.623096,82.3792882 C53.623096,83.490056... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/CssInclusion.js | prometheusresearch/create-react-app | /**
* 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.
*/
import Rea... |
app/imports/client/Components/Header/index.js | FractalFlows/Emergence | /*
* Built by Astrocoders
* @flow
*/
// Modules
import React from 'react'
import { Link } from 'react-router'
import { isEmpty } from 'lodash'
import styled from 'styled-components'
import {
compose,
pure,
withState,
withProps,
} from 'recompose'
import EventSeatIcon from 'material-ui/svg-icons/action/event... |
ajax/libs/thorax/2.1.3/thorax-combined.js | adelevie/cdnjs | /*!
* jQuery JavaScript Library v1.9.0
* 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-1-14
*/
(function( window, undefined ) {
"use strict";... |
doc/js/jquery.js | yieldbot/dhoulmagus | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
tests/react/default_props_any.js | jamesgpearce/flow | // @flow
import React from 'react';
class Foo extends React.Component<{required: number}> {
static defaultProps: Object;
}
class Bar extends React.Component<{required: number}> {
static defaultProps: any;
}
<Foo/>;
<Bar/>;
|
docs/src/PageHeader.js | leozdgao/react-bootstrap | import React from 'react';
const PageHeader = React.createClass({
render() {
return (
<div className='bs-docs-header' id='content'>
<div className='container'>
<h1>{this.props.title}</h1>
<p>{this.props.subTitle}</p>
</div>
</div>
);
}
});
export default Pag... |
ajax/libs/material-ui/5.0.0-alpha.20/NativeSelect/NativeSelect.min.js | cdnjs/cdnjs | import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";import*as React from"react";import PropTypes from"prop-types";import NativeSelectInput from"./NativeSelectInput";import withStyles from"../styles/withStyles";import... |
client/modules/Blog/components/BlogNavBar/BlogNavBar.js | lordknight1904/bigvnadmin | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Navbar, Nav, NavItem, MenuItem, Pagination, FormControl, Button, NavDropdown, DropdownButton } from 'react-bootstrap';
import styles from '../../../../main.css';
import { fetchBlog, setCurrentPa... |
src/components/icons/DeleteIcon.js | austinknight/ui-components | import React from 'react';
const DeleteIcon = props => (
<svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24">
{props.title && <title>{props.title}</title>}
<path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z" />
<path d="M0 0h24v24H0... |
node_modules/react-icons/fa/behance.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaBehance = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m35.9 9.2h-9.9v2.4h9.9v-2.4z m-4.9 8.3q-1.8 0-2.9 1t-1.2 2.7h8q-0.4-3.7-3.9-3.7z m0.3 11.3q1.2 0 2.4-0.6t1.4-1.7h4.3q-1.9 6-8.3 6-4.1 0-6.6-2.6t-2.4-6.7q0-4.1 2.5-6.7... |
client/app/components/RestaurantPage/Common/RestaurantHeader.js | yanhao-li/menu-plus | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
// material-ui
import Paper from 'material-ui/Paper';
// For Business User
import RestaurantInfoEdit from 'components/RestaurantPage/Business/RestaurantInfoEdit';
// For Customer User
import FavoriteButton from './Fav... |
src/components/loading-indicators/loading-members-list.component.js | dyesseyumba/git-point | import React, { Component } from 'react';
import { StyleSheet, View, Text, Animated } from 'react-native';
import { colors, fonts } from 'config';
import { loadingAnimation } from 'utils';
const styles = StyleSheet.create({
wrapper: {
marginTop: 15,
padding: 15,
},
avatarContainer: {
flex: 1,
fl... |
decorators/withViewport.js | ddewaele/web-gpio-react | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = { width: 1366, height: 768 }; // Default ... |
ajax/libs/analytics.js/2.8.7/analytics.min.js | him2him2/cdnjs | (function umd(require){if("object"==typeof exports){module.exports=require("1")}else if("function"==typeof define&&define.amd){define(function(){return require("1")})}else{this["analytics"]=require("1")}})(function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[... |
src/index.js | jonathanong/react-asset-loader |
import React from 'react'
import { loadScript, loadStylesheet, loadAsset } from './loaders'
import { get, set } from './manifest'
export { get, set, loadScript, loadStylesheet, loadAsset }
export default (Component, assetNames) => (
class AssetLoader extends React.Component {
constructor (props) {
super... |
src/components/video_list.js | seanmcnally88/react-fun | import React from 'react';
import VideoListItem from './video_list_item'
const VideoList = (props) => {
const videoItems = props.videos.map((video) => {
return(
<VideoListItem
key={video.etag}
video={video}
onVideoSelect={props.onVideoSelect}
/>
);
});
return (
<ul clas... |
reactcss/button.js | martinandert/css-in-js | import React from 'react';
import {Component} from 'reactcss';
class Button extends Component {
classes() {
return {
'default': {
container: {
textAlign: 'center'
},
button: {
backgroundColor: '#ff0000',
width: '320px',
padding: '20px',
... |
tests/client/admin/components/TestJsonData.js | muffinresearch/addons-frontend | import React from 'react';
import { renderIntoDocument, Simulate } from 'react-addons-test-utils';
import { findDOMNode } from 'react-dom';
import JsonData from 'admin/components/JsonData';
describe('<JsonData />', () => {
it('renders an object', () => {
const obj = { foo: 'bar', baz: 'quux' };
const pre = ... |
packages/material-ui-icons/src/PhotoFilter.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M19.02 10v9H5V5h9V3H5.02c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-9h-2zM17 10l.94-2.06L20 7l-2.06-.94L17 4l-.94 2.06L14 7l2.06.94zm-3.75.75L12 8l-1.25 2.75L8 12l2.75 1.25L12 16l1.25-2.75... |
app/index.js | MakingSense/mern-seed | /*eslint-disable import/default */
import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import configureStore from './store/configureStore';
import {Provider} from 'react-redux';
import { Router, browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-... |
lang/java/ipc/src/main/java/org/apache/avro/ipc/stats/static/jquery-1.4.2.min.js | DrAA/avro | /*!
* 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/children/public.js | Alek-S/pseudozen | import React from 'react';
import axios from 'axios';
class Project extends React.Component{
constructor(){
super();
this.state = {
projectName: undefined,
errorMsg: undefined,
projects: []
};
}
//==LIFE CYCLE==
componentWillMount(){
this._fetchProjects();
}
//====//
//==HANDLERS==
_fetch... |
heesong/src/App.js | hanheesong/hanheesong.github.io | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/... |
src/main.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import ReactDOM from 'react-dom';
import createStore from './store';
import AppContainer from './containers/AppContainer';
import LoginPage from './components/layouts/LoginPage';
import Routes from './routes';
import {Provider} from 'react-redux';
import { OidcProvider } from 'redux-oidc';
... |
src/components/social-media/social-media.js | cwparsons/cwparsons.ca | import React from 'react';
import globalStyles from '../../styles/main.module.scss';
import styles from './socialmedia.module.scss';
export const SocialMedia = () => (
<>
<p className={globalStyles.narrative}>I can be found around the web:</p>
<ul className={styles.list}>
<li className={styles.item}>
<a ... |
web/static/js/containers/LiveGameContainer.js | josephyi/anivia | import React from 'react'
import { gameType } from '../util/DataFormatter'
import { Panel } from 'react-bootstrap'
import LiveGame from '../containers/LiveGame'
import GameNotFound from '../components/GameNotFound'
const LiveGameContainer = ({region, game, rankedLeagues, summoners}) => {
if(game && game.gameQueueC... |
v0.3/src/ui/components/stories/index.js | sakulstra/firebase-web-todo | import React from 'react';
import { storiesOf, action, linkTo } from '@kadira/storybook';
import { TodoList, TodoListItem } from '../';
const container = {
list: [
{text: 'sometext'},
{text: 'someothertext'},
{text: 'oh, it#s a text'}
]
};
storiesOf('Components', module)
.add('TodoL... |
tests/baselines/reference/tsxElementResolution19.js | microsoft/TypeScript | //// [tests/cases/conformance/jsx/tsxElementResolution19.tsx] ////
//// [react.d.ts]
declare module "react" {
}
//// [file1.tsx]
declare module JSX {
interface Element { }
}
export class MyClass { }
//// [file2.tsx]
// Should not elide React import
import * as React from 'react';
import {MyClass} from '.... |
packages/mineral-ui-icons/src/IconLockOutline.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 IconLockOutline(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconPr... |
packages/mineral-ui-icons/src/IconEditLocation.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 IconEditLocation(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconP... |
client/components/ui/fuzzy-or-native-select.js | ZeHiro/kresus | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Select, { createFilter } from 'react-select';
import Creatable from 'react-select/creatable';
import { get } from '../../store';
import { assert } from '../../helpers';
const REACT_SELECT_FILTER = createFilter... |
static/js/lib/jquery-1.9.1.js | johancz/olympia | /*!
* 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... |
app/scripts/Block/__tests__/pages/NewBlockPage.spec.js | igr-santos/bonde-client | import React from 'react'
import { shallow } from 'enzyme'
import { expect } from 'chai'
import { NewBlockPage } from '../../pages/NewBlockPage'
import { BLOCK_LAYOUTS } from '../../../constants/BlockLayouts'
describe('app/scripts/Block/components/NewBlockPage', () => {
let wrapper
const props = {
dispatch: (... |
src/GridColumnHeader.js | shaneosullivan/spotlist | import React, { Component } from 'react';
import cancelEvt from './cancelEvt';
export default class GridColumnHeader extends Component {
render() {
let artist = this.props.artist;
return (
<div className="grid-col">
<a href="#" onClick={this._toggleArtist} className="grid-artist-name">
... |
src/containers/Order/Order.js | unam3/oshop | import React from 'react';
import { render } from 'react-dom';
import { connect, Provider } from 'react-redux';
import OrderWrapper from '../../components/OrderWrapper/OrderWrapper.js';
import { createStore, combineReducers } from 'redux';
import { ConnectedCart } from '../Cart/Cart.js';
import cartReducer,
{ initial... |
src/containers/Home/Home.js | nicolabortignon/ReactTracklistMe | import React, { Component } from 'react';
import { HomeJumbotron, ReleaseSection, ArtistSection, StuffPicksSection, BlogSection } from 'components';
export default class Home extends Component {
render() {
return (
<div>
<HomeJumbotron
miniHeaders={[{
image: 'https://pmcvarie... |
ajax/libs/jquery-ui-bootstrap/0.5pre/js/jquery-1.8.3.min.js | masimakopoulos/cdnjs | /*! 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/material-ui-icons/src/DeleteSweepSharp.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="M15 16h4v2h-4v-2zm0-8h7v2h-7V8zm0 4h6v2h-6v-2zM3 20h10V8H3v12zM14 5h-3l-1-1H6L5 5H2v2h12V5z" /></React.Fragment>
, 'DeleteSweepSharp');
|
plugins/Files/js/components/contractorstatus.js | NebulousLabs/New-Sia-UI | import PropTypes from 'prop-types'
import React from 'react'
const ContractorStatus = ({ settingAllowance, contractCount }) => (
<div className='contractor-status'>
{settingAllowance ? (
<div>
<i className='fa fa-circle-o-notch fa-spin fa-2x fa-fw' />
<span>Forming Contracts...</span>
... |
ajax/libs/analytics.js/1.5.0/analytics.js | kave/cdnjs | ;(function(){
/**
* Require the given path.
*
* @param {String} path
* @return {Object} exports
* @api public
*/
function require(path, parent, orig) {
var resolved = require.resolve(path);
// lookup failed
if (null == resolved) {
orig = orig || path;
parent = parent || 'root';
var err = new ... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Shared/Confirm.js | dewmini/carbon-apimgt | import React from 'react'
import Dialog, {
DialogActions,
DialogContent,
DialogContentText,
DialogTitle,
} from 'material-ui/Dialog';
class Confirm extends React.Component{
constructor(props){
super(props);
this.state(
{
open: false
}
... |
ajax/libs/react/0.13.0-alpha.2/react-with-addons.min.js | hare1039/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 ... |
ajax/libs/foundation/3.2.5/javascripts/foundation.min.js | stefanocudini/cdnjs | /* Modernizr 2.6.2 (Custom Build) | MIT & BSD
* Build: http://modernizr.com/download/#-inlinesvg-svg-svgclippaths-touch-shiv-mq-cssclasses-teststyles-prefixes-ie8compat-load
*/
window.Modernizr=function(e,t,n){function r(e){d.cssText=e}function i(e,t){return r(g.join(e+";")+(t||""))}function s(e,t){return typeof e===... |
ajax/libs/webshim/1.15.3-RC1/dev/shims/es6.js | ram-nadella/cdnjs | // ES6-shim 0.15.0 (c) 2013-2014 Paul Miller (http://paulmillr.com)
// ES6-shim may be freely distributed under the MIT license.
// For more details and documentation:
// https://github.com/paulmillr/es6-shim/
webshim.register('es6', function($, webshim, window, document, undefined){
'use strict';
var isCallableW... |
app/containers/task-container.js | bluemner/arc | import React, { Component } from 'react';
class TaskContainer extends Component {
constructor(props) {
super(prop);
}
render() {
return (
<div>
</div>
)
}
}
const mapStateToProps = function (state) {
return {
tasks: state.taskReducer.tasks
}
}
export default connect(
mapStateToProps,
{ getTasks... |
packages/react-vis/tests/test-utils.js | uber/react-vis | /* eslint-disable jest/no-export */
import React from 'react';
import {mount} from 'enzyme';
const NOOP = f => f;
export const GENERIC_XYPLOT_SERIES_PROPS = {
xDomain: [0, 1],
xRange: [0, 1],
xType: 'linear',
xDistance: 1,
yDomain: [0, 1],
yRange: [0, 1],
yDistance: 1,
yType: 'linear',
data: [
{... |
src/ReactBoilerplate/Scripts/components/TwoFactor/VerifyCodeForm.js | theonlylawislove/react-dot-net | import React from 'react';
import Form from 'components/Form';
import { reduxForm } from 'redux-form';
import { Input } from 'components';
import { verifyCode } from 'redux/modules/account';
class VerifyCodeForm extends Form {
modifyValues(values) {
return {
...values,
provider: this.props.sentCodeWi... |
ajax/libs/yui/3.10.2/datatable-core/datatable-core.js | sajochiu/cdnjs | YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@since 3.5.0
**/
var INVALID = Y.Attribute.INVALID_VALUE,
Lang = Y.Lang,
isFunction = Lang.isFunction,
isObject = Lang.isO... |
src/Tooltip/index.js | christianalfoni/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Typography from '../Typography';
import Wrapper from '../Wrapper';
import styles from './styles.css';
import RcTooltip from 'rc-tooltip';
import './tooltip.css';
function Tooltip(props) {
const tooltipContent =... |
src/svg-icons/social/notifications-none.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialNotificationsNone = (props) => (
<SvgIcon {...props}>
<path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l... |
js/ui/altTab.js | manateelazycat/deepin-gnome-shell-3.4.1 | // -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
const Clutter = imports.gi.Clutter;
const Gdk = imports.gi.Gdk;
const Gtk = imports.gi.Gtk;
const Lang = imports.lang;
const Mainloop = imports.mainloop;
const Meta = imports.gi.Meta;
const Shell = imports.gi.Shell;
const Signals = imports.signals;
const S... |
packages/material-ui-icons/src/ShuffleRounded.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M10.59 9.17L6.12 4.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.46 4.46 1.42-1.4zm4.76-4.32l1.19 1.19L4.7 17.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L17.96 7.46l1.19 1.19... |
src/components/App.js | dggriffin/noteworthy | require('styles/index.css');
import React from 'react';
import darkBaseTheme from 'material-ui/styles/baseThemes/lightBaseTheme';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
const darkMuiTheme = getMuiTheme(darkBaseTheme);
class AppComp... |
generators/component/templates/component.js | StoraH/generator-component | import React from 'react';
import styles from './<%= ComponentName %>.css';
class <%= ComponentName %> extends React.Component {
static propTypes = {
children: React.PropTypes.any
};
render () {
return (
<div>
{this.props.children}
</div>
);
}
}
export default <%= ComponentName %>;
|
website/core/WebPlayer.js | tszajna0/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... |
modules/__tests__/matchRoutes-test.js | joeyates/react-router | /*eslint-env mocha */
import React from 'react'
import Route from '../Route'
import assert from 'assert'
import expect from 'expect'
import { createLocation } from 'history'
import { createRoutes } from '../RouteUtils'
import matchRoutes from '../matchRoutes'
describe('matchRoutes', function () {
let routes, RootR... |
frontend/scripts/components/common/Button.js | jakubzloczewski/react-exercise | import Radium from 'radium';
import color from 'color';
import React from 'react';
import theme from './theme.js';
@Radium
class Button extends React.Component {
render() {
const {label, onClick, disabled} = this.props;
const style = this.getStyle();
return (<input style={[style]}
... |
client/src/index.js | dmod/fdcallstats.com | import 'react-app-polyfill/ie9'; // For IE 9-11 support
import 'react-app-polyfill/ie11'; // For IE 11 support
import './polyfill'
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(<App />, docum... |
examples/react/src/async/DelayedComponent.js | oblador/loki | /* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
export default class DelayedComponent extends Component {
constructor(props, context) {
super(props, context);
this.state = { done: fa... |
src/components/icons/text.js | ipfs-shipyard/peerpad | import React from 'react'
export default ({ className, style }) => (
<svg width='29' height='29' viewBox='0 0 29 29' xmlns='http://www.w3.org/2000/svg' className={className} style={style}>
<g transform='translate(8.000000, 9.000000)' strokeWidth='1' strokeLinecap='square'>
<path d='M0.5,1.5 L12.5,1.5' />
... |
docs/app/Examples/elements/Icon/Groups/index.js | koenvg/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const IconGroupsExamples = () => (
<ExampleSection title='Groups'>
<ComponentExample
title='Icons'
description='Sever... |
node_modules/react-icons/ti/stopwatch.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const TiStopwatch = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m32.4 14.8c0.1 0 0.3-0.1 0.4-0.3l0.9-0.8c0.6-0.7 0.6-1.7 0-2.4s-1.7-0.6-2.4 0l-0.8 0.9c-0.1 0-0.1 0.1-0.2 0.2-2.3-2.1-5.3-3.6-8.7-4 0.1 0 0.1 0 0.1-0.1v-1.6h1.6c1 0... |
packager/rn-cli.config.js | martinbigio/react-native | // Copyright 2004-present Facebook. All Rights Reserved.
/**
* React Native CLI configuration file
*/
'use strict';
const blacklist = require('./blacklist.js');
const path = require('path');
module.exports = {
getProjectRoots() {
return this._getRoots();
},
getAssetRoots() {
return this._getRoots();... |
react/redux/client/src/components/pages/not-found-page.js | sabertazimi/st-proj | import React, { Component } from 'react';
class NotFoundPage extends Component {
render() {
return (
<div>
<h1>404 - Page Not Found</h1>
<p>I'm sorry, the page you were looking for cannot be found!</p>
</div>
)
}
}
export default NotFoundPage;
|
ajax/libs/react/0.14.6/react-dom.min.js | kiwi89/cdnjs | /**
* ReactDOM v0.14.6
*
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.... |
packages/material-ui-icons/lib/HdrAutoSelectOutlined.js | mbrookes/material-ui | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
src/javascript/components/Device/devicelist.js | rahulharinkhede2013/xigro-dashboard | import React from 'react';
import Table from 'att-iot-ui/lib/table';
import { Button, IconButton } from 'att-iot-ui/lib/button';
import Icon from 'att-iot-ui/lib/icon';
import classnames from 'classnames';
// style
import app from '../app.scss';
import index from '../index.scss';
//<IconButton warning key='delete'><Ic... |
packages/material-ui-icons/src/LineWeight.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><defs><path id="a" d="M0 0h24v24H0z" /></defs><path d="M3 17h18v-2H3v2zm0 3h18v-1H3v1zm0-7h18v-3H3v3zm0-9v4h18V4H3z" /></React.Fragment>
, 'LineWeight');
|
ajax/libs/vue/1.0.22/vue.common.js | x112358/cdnjs | /*!
* Vue.js v1.0.22
* (c) 2016 Evan You
* Released under the MIT License.
*/
'use strict';
function set(obj, key, val) {
if (hasOwn(obj, key)) {
obj[key] = val;
return;
}
if (obj._isVue) {
set(obj._data, key, val);
return;
}
var ob = obj.__ob__;
if (!ob) {
obj[key] = val;
retur... |
ajax/libs/zeroclipboard/2.0.0-beta.8/ZeroClipboard.Core.js | joeylakay/cdnjs | /*!
* 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) 2014 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v2.0.0-beta.8
*/
(function(window, undefined) {
"use s... |
src/order.js | reactabular/sortabular | /* eslint-disable react/prop-types */
import React from 'react';
import defaultStrategy from './default-strategy';
const order = ({
getSortingColumns,
props = {},
strategy = defaultStrategy
}) => {
if (!getSortingColumns) {
throw new Error('order - Missing getSortingColumns!');
}
return (value, extra)... |
src/pages/about/index.pt.js | angeloocana/angeloocana | import React from 'react';
import AboutMe from '../../components/AboutPage';
import graphql from 'graphql';
const i18n = {
description: (
<p>
Oi! Eu sou o Ângelo! Desenvolvedor Full-Stack desde 2007. <br />
Amo Linux e tecnologias Open Source tanto quanto amo minha filha e esposa. <br />
Atualm... |
actor-apps/app-web/src/app/components/activity/GroupProfile.react.js | mxw0417/actor-platform | import React from 'react';
import DialogActionCreators from 'actions/DialogActionCreators';
import LoginStore from 'stores/LoginStore';
import PeerStore from 'stores/PeerStore';
import DialogStore from 'stores/DialogStore';
import InviteUserActions from 'actions/InviteUserActions';
import AvatarItem from 'components... |
ajax/libs/core-js/1.2.5/core.js | BitsyCode/cdnjs | /**
* core-js 1.2.5
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(__e, __g, undefined){
'use strict';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require f... |
app/containers/HomePage/index.js | belongapp/belong | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*/
import React from 'react';
import Helmet from 'react-helmet';
import messages from './messages';
import { FormattedMessage } from 'react-intl';
import H2 from 'components/H2';
import styles from './styles.css';
export class Home... |
ajax/libs/flocks.js/0.16.7/flocks.js | htmlstrap/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.
*
* @module Flocks
* @main Flocks
* @class Flocks
*/
// if it's in a <script> it's defined already
... |
vendor/jquery/jquery.js | JackHanley26/jackhanley26.github.io | /*!
* jQuery JavaScript Library v1.12.4
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-05-20T17:17Z
*/
(function( global, factory ) {
if ( typeof module =... |
src/views/Publisher.js | SteemBlog/app | import React from 'react';
import steem from 'steem';
import moment from 'moment';
import http from 'http';
import _ from 'lodash';
import until from 'async/until';
import ReactModal from "react-modal";
import Dispatcher from "../Dispatcher";
import Store from "../Store";
import Loader from "../components/Loader";
im... |
src/openMarket/user_interface/routes.js | UnexpectedSoftware/openMarket | // @flow
import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './containers/App';
import HomePage from './home/ReduxConnector';
import ProductPage from './product/new_product/ReduxConnector';
import ProductListing from './product/list_products/ReduxConnector';
import ProductListi... |
ajax/libs/inferno/1.0.0-alpha6/inferno-router.js | hare1039/cdnjs | /*!
* inferno-router v1.0.0-alpha6
* (c) 2016 Dominic Gannaway
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.InfernoRout... |
react/webpack.config.dev.js | ineffablep/simple-ui | import webpack from 'webpack';
import path from 'path';
import HtmlWebpackPlugin from 'html-webpack-plugin';
const GLOBALS = {
'process.env.NODE_ENV': JSON.stringify('development'),
__DEV__: true
};
export default {
debug: true,
devtool: 'cheap-module-eval-source-map', // more info:https://webpack.github.io/d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.