path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/main/react/components/traffic/dataviews/EmptyDataView.js | pesan/service-spy | import React from 'react';
import VisibilityOffIcon from "@material-ui/icons/VisibilityOff"
import IconLabel from "../../IconLabel";
export default function EmptyDataView() {
return <IconLabel icon={<VisibilityOffIcon/>} label="Content not rendered"/>
}
|
amartonline-ui/src/components/userProfile/userProfile.js | gruberchris/AmartOnline | import React, { Component } from 'react';
import { Image, Col, Row, Grid, PageHeader, Panel } from 'react-bootstrap';
class UserProfile extends Component {
render() {
const profileInfoPanelStyles = {
display: "inline-block",
verticalAlign: "middle",
marginLeft: "50px"
};
return (
... |
jenkins-design-language/src/js/components/material-ui/svg-icons/maps/restaurant-menu.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const MapsRestaurantMenu = (props) => (
<SvgIcon {...props}>
<path d="M8.1 13.34l2.83-2.83L3.91 3.5c-1.56 1.56-1.56 4.09 0 5.66l4.19 4.18zm6.78-1.81c1.53.71 3.68.21 5.27-1.38 1.91-1.91 2.28-4.65.81-6.12-1.46-1.46-4.2-1.1-6.12.81-1.59 1.59-2.09 3.74-... |
old-or-not-typescript/learn-redux/shopping-cart/test/components/ProductItem.spec.js | janaagaard75/framework-investigations | import expect from 'expect'
import React from 'react'
import { shallow } from 'enzyme'
import Product from '../../components/Product'
import ProductItem from '../../components/ProductItem'
function setup(product) {
const actions = {
onAddToCartClicked: expect.createSpy()
}
const component = shallow(
<Pr... |
src/components/Glass.js | evelinalaroussi/evelinalaroussi.github.io | import React from 'react';
import Interactive from 'react-interactive';
import { Link } from 'react-router-dom';
//import { Code } from '../styles/style';
//import s from '../styles/home.style';
export default class Glass extends React.Component {
constructor(props) {
super(props);
}
render() {
retur... |
src/snack-overflow/emcit/client/desktop/src/components/views/analyze/ReportMapPage.js | civiclee/Hack4Cause2017 | import React from 'react'
import { findDOMNode } from 'react-dom'
import { connect } from 'react-redux';
import classes from './ReportMapPage.css'
/*const lats = []
const lngs = []
window.lats = lats;
window.lngs = lngs;*/
class ReportMapPage extends React.Component {
constructor(props) {
super(props)
... |
sample/App.js | nuke99/react-native-file-share | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
View,
Image,
Button
} from 'react-native';
import RNFileShare from 'react-native-file-share'
const RNFS = require('react-native-fs');
// ... |
P/lixil/src/components/Home/ProductSection.js | imuntil/React | import React from 'react'
import {Col, Row} from 'antd'
import HomeSection from './HomeSection'
import './ProductSection.css'
function ProductSection() {
const title = <img src={require('../../assets/product/product.png')} alt=""/>
const body = (
<div className="product-section">
<Row>
<Col xs={2... |
zxcvbn.net/js/zxcvbn.js | darcythomas/zxcvbn.net | (function(){var w,o,r,x,J,K,L,M,N,O,P,Q,y,q,z,R,S,T,U,V,W;P=function(b){var a,d;d=[];for(a in b)d.push(a);return 0===d.length};y=function(b,a){return b.push.apply(b,a)};V=function(b,a){var d,c,e,f,g;f=b.split("");g=[];c=0;for(e=f.length;c<e;c++)d=f[c],g.push(a[d]||d);return g.join("")};R=function(b){var a,d,c,e;d=[];c=... |
node_modules/react-icons/ti/times-outline.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const TiTimesOutline = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m26.7 31.7c-1.4 0-2.6-0.6-3.6-1.5l-3.1-3.1-3.1 3.1c-1.9 1.9-5.2 1.9-7.1 0-0.9-0.9-1.5-2.2-1.5-3.5s0.6-2.6 1.5-3.6l3.1-3.1-3.1-3.1c-0.9-1-1.5-2.2-1.5-3.6s0.6-2.6 ... |
src/components/svg/NotFound.js | JoeTheDave/onitama | import React from 'react';
export const Dragon = () => (
<svg
version="1.0"
xmlns="http://www.w3.org/2000/svg"
width="100.000000pt"
height="100.000000pt"
/>
);
export default Dragon;
|
ajax/libs/highstock/4.2.3/highstock.src.js | kiwi89/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highstock JS v4.2.3 (2016-02-08)
*
* (c) 2009-2016 Torstein Honsi
*
* License: www.highcharts.com/license
*/
(function (root, factory) {
if (typeof module === 'object' && module.exports) {
module.exports = root.document... |
src/components/Modal.js | pixelcanvasio/pixelcanvas | /**
* Created by arkeros on 10/7/17.
*
* @flow
*/
import React from 'react';
import Modal from 'react-modal';
import { connect } from 'react-redux';
import MdClose from 'react-icons/lib/md/close';
import {
hideModal,
} from '../actions';
import type { State } from '../reducers';
const customStyles = {
over... |
packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/ScssModulesInclusion.js | Timer/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 from 'react';
import styles from './assets/scss-styles.module.scss';
import indexStyles from './assets/index.module.scss';
... |
src/app/skipasses/SkipassGridList.component.js | blobor/buka | import React from 'react'
import SkipassCard from './SkipassCard.component'
const SkipassGridList = ({ skipasses, onRemoveSkipass }) => {
return (
<section className='skipasess__container'>
{skipasses.map((skipass, index) => <SkipassCard key={index} skipass={skipass} onRemoveSkipass={onRemoveSkipass} />)}
... |
src/svg-icons/action/view-module.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewModule = (props) => (
<SvgIcon {...props}>
<path d="M4 11h5V5H4v6zm0 7h5v-6H4v6zm6 0h5v-6h-5v6zm6 0h5v-6h-5v6zm-6-7h5V5h-5v6zm6-6v6h5V5h-5z"/>
</SvgIcon>
);
ActionViewModule = pure(ActionViewModule)... |
backup/js/jquery-1.4.2.min.js | esschul/udp.github.io | /*!
* 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.
... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestAndDefault.js | in2core/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';
function load({ id, ...rest } = { id: 0, user: { id: 42, ... |
js/components/developer/rate-work-screen/index.js | justarrived/p2p-client | import React, { Component } from 'react';
import { Container, Content } from 'native-base';
import { Text, View, StyleSheet } from 'react-native';
import { connect } from 'react-redux';
import RatingScreenStyles from './rateWorkStyles';
import RatingBar from './ratingBar';
import JAButton from '../../common/ja-button';... |
app/Root.js | rclai/redux-blog-example | /* eslint-env browser */
/* global process */
import React from 'react';
import { Router } from 'react-router';
import { Provider } from 'react-redux';
import cookie from './utils/cookie';
import routes from './routes';
import { routerStateChange } from './actions/router';
import { createRedux } from './utils/redux';
... |
src/Containers/FriendListApp.js | paragonbliss/ReduxTut | import React, { Component } from 'react';
export default class FriendListApp extends Component {
render() {
return <h1>Hello World </h1>
}
}
|
src/dashboard/index.js | rollacaster/costa | import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
ReactDOM.render(<App />, document.getElementById('content'))
|
src/react-image-lightbox.js | fritz-c/react-image-lightbox | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Modal from 'react-modal';
import {
translate,
getWindowWidth,
getWindowHeight,
getHighestSafeWindowContext,
} from './util';
import {
KEYS,
MIN_ZOOM_LEVEL,
MAX_ZOOM_LEVEL,
ZOOM_RATIO,
WHEEL_MOVE_X_THRESHOLD,
WHEEL_M... |
packages/material-ui-icons/src/NoSim.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M18.99 5c0-1.1-.89-2-1.99-2h-7L7.66 5.34 19 16.68 18.99 5zM3.65 3.88L2.38 5.15 5 7.77V19c0 1.1.9 2 2 2h10.01c.35 0 .67-.1.96-.26l1.88 1.88 1.27-1.... |
ajax/libs/forerunnerdb/1.3.42/fdb-core+persist.js | sufuf3/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/routes.js | jade-press/jadepress-react-spa | import React from 'react'
import { Route, IndexRoute, Router, browserHistory } from 'react-router'
import App from './containers/App'
import Home from './containers/Home'
import Post from './containers/Post'
import Cat from './containers/Cat'
import Search from './containers/Search'
import { publicRoute } from './commo... |
test/NavbarSpec.js | laran/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Navbar from '../src/Navbar';
import Nav from '../src/Nav';
describe('Nav', () => {
it('Should create nav element', () => {
let instance = ReactTestUtils.renderIntoDocument(
<Navbar />
);
let nav = React.findDO... |
client/modules/Post/__tests__/components/PostCreateWidget.spec.js | gyaneshgouraw/mern-ssr | import React from 'react';
import test from 'ava';
import sinon from 'sinon';
import { FormattedMessage } from 'react-intl';
import { PostCreateWidget } from '../../components/PostCreateWidget/PostCreateWidget';
import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper';
const props = {
... |
client/src/javascript/components/modals/torrent-details-modal/TorrentTrackers.js | stephdewit/flood | import {FormattedMessage} from 'react-intl';
import React from 'react';
import Badge from '../../general/Badge';
export default class TorrentTrackrs extends React.Component {
render() {
const trackers = this.props.trackers || [];
const trackerCount = trackers.length;
const trackerTypes = ['http', 'udp'... |
app/screens/LibraryScreen/LibraryScreen.js | MPDL/LabCam | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { View, SafeAreaView, FlatList, TouchableOpacity, StatusBar, NetInfo, Platform, BackHandler } from 'react-native';
import { NavigationActions } from 'react-navigation';
import Immutable from 'seam... |
ajax/libs/flocks.js/1.0.1/flocks.min.js | Olical/cdnjs | if("undefined"===typeof React)var React=require("react");
(function(){function f(a){return"[object Array]"===Object.prototype.toString.call(a)}function k(a){return"undefined"===typeof a}function u(a){return"object"!==typeof a||"[object Array]"===Object.prototype.toString.call(a)?!1:!0}function c(a,b){if("string"===type... |
examples/components/Dynamic/index.js | chitezh/react-native-swiper-animated | import React from 'react';
import {
Text,
View,
} from 'react-native';
import Swiper from 'react-native-swiper-animated';
const styles = {
wrapper: {
backgroundColor: '#009688',
},
slide1: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#e91e63',
},
slide2... |
files/yasqe/2.4.0/yasqe.bundled.min.js | dnbard/jsdelivr | !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)... |
ajax/libs/reactable/0.7.0/reactable.min.js | mgoldsborough/cdnjs | Reactable=(function(){if(!Array.prototype.map){Array.prototype.map=function(m){if(this===void 0||this===null){throw new TypeError()}var p=Object(this);var k=p.length>>>0;if(typeof m!=="function"){throw new TypeError()}var o=new Array(k);var l=arguments.length>=2?arguments[1]:void 0;for(var n=0;n<k;n++){if(n in p){o[n]=... |
examples/counter-pair/index.js | rayshih/fun-react | // @flow
import React from 'react'
import ReactDOM from 'react-dom'
import {
createProgram,
fromSimpleInit,
fromSimpleUpdate,
createView
} from '../../src'
import CounterPair, {init, update} from './CounterPair'
const rootEl = document.getElementById('app')
const App = createView('App', ({model}, {link}) =>... |
node_modules/react-icons/io/android-chat.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const IoAndroidChat = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m30.4 5c0.3 0 0.5 0.3 0.5 0.6v16.7c0 0.4-0.2 0.7-0.5 0.7h-14.6l-7.1 7v-7h-4.4c-0.3 0-0.8-0.3-0.8-0.7v-16.7c0-0.3 0.5-0.6 0.8-0.6h26.1z m5 4.9c0.3 0 0.6 0.4 0.6 0.... |
docs/app/Examples/views/Statistic/Content/StatisticExampleValues.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Icon, Image, Statistic } from 'semantic-ui-react'
const StatisticExampleValues = () => (
<Statistic.Group>
<Statistic>
<Statistic.Value>22</Statistic.Value>
<Statistic.Label>Saves</Statistic.Label>
</Statistic>
<Statistic>
<Statistic.Value text>
... |
docs/src/CodeExample.js | aparticka/react-bootstrap | import React from 'react';
export default class CodeExample extends React.Component {
render() {
return (
<pre className="cm-s-solarized cm-s-light">
<code>
{this.props.codeText}
</code>
</pre>
);
}
componentDidMount() {
if (CodeMirror === undefined) {
ret... |
ajax/libs/react-data-grid/1.0.77/react-data-grid.js | jonobr1/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
FirstApp/app/config/router.js | xizhouhezai/react-app | import React from 'react';
import { TabNavigator, StackNavigator } from 'react-navigation';
import { Icon } from 'react-native-elements';
import Feed from '../screens/Feed';
import Settings from '../screens/Settings';
import UserDetail from '../screens/UserDetail';
import Me from '../screens/Me';
export const FeedSta... |
src/components/NotFoundPage.js | Bubblesphere/portfolio-deric | import React from 'react';
const NotFoundPage = () => {
return (
<div>
<h1>404: Not found</h1>
</div>
);
};
export default NotFoundPage; |
src/shared/components/reports/CreateReport.js | jacobkeaton1/fdi-app | import React, { Component } from 'react';
import update from 'immutability-helper';
import axios from 'axios';
import moment from 'moment';
class CreateReport extends Component {
constructor(props) {
super(props);
this.state = {
startDate: moment(),
endDate: moment(),
... |
src/components/header.js | ThatConference/swagbag | import React from 'react'
const Header = (props) => {
return (
<div>
<h1>THAT-SWAG-O-MATIC</h1>
</div>
)
}
export default Header
|
ajax/libs/ag-grid/5.0.1/ag-grid.noStyle.js | tonytomov/cdnjs | // ag-grid v5.0.1
(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["agGrid"] = factory();
e... |
src/svg-icons/device/network-cell.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceNetworkCell = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M2 22h20V2z"/><path d="M17 7L2 22h15z"/>
</SvgIcon>
);
DeviceNetworkCell = pure(DeviceNetworkCell);
DeviceNetworkCell.displayNam... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | kiranscaria/kiranscaria.github.io | 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/components/RentSelect.js | vdv73rus/kipr-widget | import React, { Component } from 'react';
export default class RentSelect extends Component {
constructor(props) {
super(props)
this.handleChange = this.handleChange.bind(this);
}
handleChange(e) {
this.props.onChange(this.refs.rentType.getDOMNode().value);
}
render() {
return (
<di... |
static/js/jquery-1.10.2.min.js | yzvickie/new_insightfl | /*! 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... |
frontend/src/routes.js | posix4e/reserve-my-life | // src/routes.js
import React from 'react';
import { Route, BrowserRouter } from 'react-router-dom';
import history from './history';
import Auth from './Auth/Auth';
import Home from './Home/Home';
import App from './App';
import AdminPage from './Admin';
import Callback from './Callback/Callback';
export const make... |
app/components/Form/SelectInput.js | webkom/lego-webapp | // @flow
import Select from 'react-select';
import Creatable from 'react-select/creatable';
import { createField } from './Field';
import withAutocomplete from '../Search/withAutocomplete';
import mazemapAutocomplete from '../Search/mazemapAutocomplete';
import style from './SelectInput.css';
type Props = {
name: s... |
src/components/Header.js | amit-kulkarni/react-food-order | import React from 'react';
export default function Header(props) {
return (
<div className="container header">
<div className="row align-items-center py-3">
<div className="col-md-10">
<h3>
<i className="fa fa-cutlery mr-3" aria-hidden="true"></i>
<span>Order Food<... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/ScssInclusion.js | mangomint/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 from 'react';
import './assets/scss-styles.scss';
export default () => <p id="feature-scss-inclusion">We love useless text... |
packages/material-ui-icons/src/PlaylistPlayOutlined.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M4 10h12v2H4zM4 6h12v2H4zM4 14h8v2H4zM14 14v6l5-3z" /></React.Fragment>
, 'PlaylistPlayOutlined');
|
ajax/libs/line-chart/2.0.3/LineChart.js | dada0423/cdnjs | var n3Charts;
(function (n3Charts) {
'use strict';
var LineChart = (function () {
function LineChart($window, $parse, $timeout, $rootScope) {
var _this = this;
this.$window = $window;
this.$parse = $parse;
this.$timeout = $timeout;
this.$rootSc... |
media/jui/js/jquery.min.js | trong291990/j3 | /*! 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===... |
app/javascript/mastodon/features/standalone/community_timeline/index.js | riku6460/chikuwagoddon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../../ui/containers/status_list_container';
import { expandCommunityTimeline } from '../../../actions/timelines';
import Column from '../../../components/column';
import ColumnHeader fr... |
src/svg-icons/maps/local-laundry-service.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalLaundryService = (props) => (
<SvgIcon {...props}>
<path d="M9.17 16.83c1.56 1.56 4.1 1.56 5.66 0 1.56-1.56 1.56-4.1 0-5.66l-5.66 5.66zM18 2.01L6 2c-1.11 0-2 .89-2 2v16c0 1.11.89 2 2 2h12c1.11 0 2-.89 ... |
web_client/client-src/components/song_card.js | RadioPi/RadioPi | import React, { Component } from 'react';
import deletePicture from '../img/delete.png';
export default class SongCard extends Component {
constructor(props) {
super(props);
}
render() {
var button;
if(this.props.buttonPic !== undefined){
var button = (<td>
<a href="" data={this.props.queuePos} onCl... |
LearnMaterialUi/index.js | tzerb/Learning | import React from 'react';
import ReactDOM from 'react-dom';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import MyAwesomeReactComponent from './MyAwesomeReactComponent';
const App = () => (
<div>Hello</div>
);
ReactDOM.render(
<App />,
document.getElementById('app')
); |
blueprints/view/files/__test__/views/__name__View.spec.js | nicolas-amabile/counter | import React from 'react'
describe('(View) <%= pascalEntityName %>', () => {
it('should exist', () => {
})
})
|
node_modules/grunt-browserify/examples/complex/public/main.js | troyh/beerstyles | require=(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);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o]... |
src/Url.js | halhenke/component-router | import React from 'react';
import classnames from 'classnames';
import Constants from './Constants';
import Store from './Store';
import * as Actions from './Actions';
import urlUtil from './urlUtil';
import shallowEqual from 'react/lib/shallowEqual';
const Url = React.createClass({
propTypes: {
query: React.Pr... |
ajax/libs/inferno/1.0.1/inferno-mobx.js | wout/cdnjs | /*!
* inferno-mobx v1.0.1
* (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-create-class'), require('./inferno-create-... |
ajax/libs/material-ui/5.0.0-alpha.34/legacy/Container/Container.min.js | cdnjs/cdnjs | import _objectWithoutProperties from"@babel/runtime/helpers/esm/objectWithoutProperties";import _defineProperty from"@babel/runtime/helpers/esm/defineProperty";import _extends from"@babel/runtime/helpers/esm/extends";import*as React from"react";import PropTypes from"prop-types";import clsx from"clsx";import{unstable_co... |
src/Dimensions/Dimensions.js | SupremeTechnopriest/react-blueprint | import React, { Component } from 'react';
function defaultGetWidth (element) {
return element.clientWidth || 1
}
function defaultGetHeight (element) {
return element.clientHeight || 0
}
const styles = {
width: '100%',
height: '100%',
padding: 0,
border: 0
};
const getDimensions = (element) => {
// Reject ... |
packages/material-ui-icons/src/DiscFull.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M20 16h2v-2h-2v2zm0-9v5h2V7h-2zM10 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 10c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z" /></g>
, 'DiscFull');
|
app/framework/web/js/source/jquery.js | DogF/limepreguntas | /*!
* 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/react-highcharts/5.0.4/index.js | maruilian11/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["Highcharts"] = fact... |
app/routes.js | aaronlangford31/ruah-web | // These are the pages you can go to.
// They are all wrapped in the App component, which should contain the navbar etc
// See http://blog.mxstbr.com/2016/01/react-apps-with-pages for more information
// about the code splitting business
import { getAsyncInjectors } from './utils/asyncInjectors';
import AppSaga from '... |
packages/editor/src/components/Icons/Indent.js | boldr/boldr | import React from 'react';
import Icon from './Icon';
const Indent = props => (
<Icon viewBox="0 0 448 512" {...props}>
<path d="M0 80V48c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12H12C5.373 92 0 86.627 0 80zm172 140h264c6.627 0 12-5.373 12-12v-32c0-6.627-5.373-12-12-12H172c-6.627... |
src/utils/dataTransform.js | antholord/poe-livesearch | import React from 'react'
import items from './items.json';
import types from './item-types.json'
const DataTransform = (props) => {
const transformTypes= () =>{
let output = [];
let topLevelCategories = [];
let subCategories = [];
let bases = [];
types.itemTypes.map((top)... |
src/components/FormField/FormField.js | nambawan/g-old | // https://github.com/grommet/grommet/blob/master/src/js/components/FormField.js
import React from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
import withStyles from 'isomorphic-style-loader/withStyles';
import s from './FormField.css';
class FormField extends React.Component {
static ... |
cm19/ReactJS/your-first-react-app-exercises-master/exercise-16/complete/theme/context.js | Brandon-J-Campbell/codemash | import React from 'react';
export default React.createContext();
|
packages/material-ui-icons/src/FindInPageTwoTone.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="M6 4v16h11.6l-2.85-2.85c-.83.55-1.79.83-2.75.83-1.28 0-2.55-.49-3.53-1.46-1.95-1.95-1.95-5.11 0-7.05C9.45 8.49 10.72 8 12 8c1.28 0 2.55.49 3.... |
frontend/src/components/public_group/PublicGroupExpenses.js | carlosascari/opencollective-website | import React from 'react';
import { Link } from 'react-router';
import ExpenseItem from '../../components/ExpenseItem';
export default class PublicGroupExpenses extends React.Component {
render() {
const {
expenses,
users,
group,
i18n,
itemsToShow = 3
} = this.props;
const ... |
src/components/icon/index.js | LaughingJacky/laughingjacky.github.io | import React from 'react';
const Icon = props => (
<svg viewBox={props.icon.viewBox} width={props.width} height={props.height} fill={props.fill}>
<use xlinkHref={`#${props.icon.id}`} />
</svg>
);
export default Icon;
|
reactjs-component-test/app/components/views/home.js | dafobe/react-component-test | import React from 'react';
const Home = React.createClass({
render: function() {
return (
<div className="home-page">
<h1>Home Layout</h1>
Applied concepts:
<ul>
<li>Routing</li>
<li>Container Components (smart)</li>
<li>Stateless Components (dumb)</li>... |
ajax/libs/react-dom/16.3.0/cjs/react-dom-unstable-native-dependencies.production.min.js | sufuf3/cdnjs | /** @license React v16.3.0
* react-dom-unstable-native-dependencies.production.min.js
*
* Copyright (c) 2013-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.
*/
'use strict';var k=require("react-dom"),l=require(... |
examples/js/custom/insert-modal/fully-custom-insert-modal-footer.js | powerhome/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-unused-vars: 0 */
/* eslint no-alert: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
con... |
src/Alert.js | erictherobot/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Alert = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
onDismiss: React.PropTypes.func,
dismissAfter: React.PropTypes.number,
closeLabel: React.PropTypes.string
},
getD... |
app/components/SendTransactions/Send.js | kivo360/ECC-GUI | import React, { Component } from 'react';
import AddressBook from './AddressBook';
import Wallet from '../../utils/wallet';
const wallet = new Wallet();
class Send extends Component {
constructor(props) {
super(props);
this.state = {
eccAddress: '',
amount: 0
};
this._handleGenericForm... |
docs/app/Examples/elements/Button/GroupVariations/ButtonExampleGroupIconShorthand.js | clemensw/stardust | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleGroupIconShorthand = () => (
<Button.Group>
<Button icon='play' />
<Button icon='pause' />
<Button icon='shuffle' />
</Button.Group>
)
export default ButtonExampleGroupIconShorthand
|
client/document/campaign-settings.js | quarterto/almanac | import React from 'react'
import { Form, FormFieldData } from '../control/form'
import { Input, Select } from '../visual/form'
import { Button, LabelledInput as Label } from '../visual/primitives'
import { calendarList } from '../data/calendar'
import ImageSelect from '../control/image-select'
export default ({ campai... |
src/examples/example-inbox/example-inbox.js | smollweide/react-speed-dial | /* eslint-disable no-console */
import React from 'react';
import Avatar from 'material-ui/Avatar';
import { blue500, red600 } from 'material-ui/styles/colors';
import IconEdit from 'material-ui/svg-icons/image/edit';
import IconRemember from 'material-ui/svg-icons/action/touch-app';
import { SpeedDial, BubbleList, Bu... |
externals/dojo/dojox/widget/FisheyeList.js | bizmate/zend-1.11 | dojo.provide("dojox.widget.FisheyeList");
dojo.require("dijit._Widget");
dojo.require("dijit._Templated");
dojo.require("dijit._Container");
dojo.require("dijit._Contained");
dojo.declare("dojox.widget.FisheyeList", [dijit._Widget, dijit._Templated, dijit._Container], {
// summary:
// Menu similar to the fish eye m... |
src/NavItem.js | HorizonXP/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import SafeAnchor from './SafeAnchor';
const NavItem = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
linkId: React.PropTypes.string,
onSelect: React.PropTypes.func,
active: React... |
ajax/libs/js-data/1.2.0/js-data-debug.js | arasmussen/cdnjs | /**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file dist/js-data-debug.js
* @version 1.2.0 - Homepage <http://www.js-data.io/>
* @copyright (c) 2014 Jason Dobry
* @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE>
*
* @overview Data store.
*/
!function(e){if("object"==typeof exports&&"undefine... |
pages/blog.js | mmaarrttyy/next-blog | import React from 'react'
import Layout from '../components/MyLayout.js'
import BasicPage from '../components/BasicPage.js'
import Cosmic from '../models/cosmic'
export default class Blog extends React.Component {
static async getInitialProps () {
return await Cosmic.getPage('blog')
}
render () {
... |
src/svg-icons/av/replay-5.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvReplay5 = (props) => (
<SvgIcon {...props}>
<path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-1.3 8.9l.2-2.2h2.4v.7h-1.7l-.1.9s.1 0 .1-.1.1 0 .1-.1.1 0 .2... |
src/components/abstract_form.js | frig-js/frig | import React from 'react'
import ReactDOM from 'react-dom'
// Note about eslint rule below:
// AbstractForm does not have a render() method (Form and FieldsetNestedForm do).
// ESLint complains about render "not having a return statement", when really
// there is no render method at all.
export default class AbstractF... |
src/root.js | DavidSGK/calendar | import React from 'react';
import Header from './views/layouts/Header';
const Root = ({children}) => (
<div>
<Header />
{children}
</div>
);
export default Root;
|
src/index.js | thefivetoes/react-intro | import React from 'react';
import ReactDOM from 'react-dom';
import rootReducer from './reducers'
import {Provider} from 'react-redux';
import {createStore} from 'redux';
import MainDashboard from './components/MainDashboard';
let store = createStore(
rootReducer
);
/**
* Inject the store into <Root> so that its... |
ajax/libs/react-intl/1.0.0/react-intl.min.js | cdnjs/cdnjs | (function(){"use strict";function a(a){var b,c,d,e,f=Array.prototype.slice.call(arguments,1);for(b=0,c=f.length;c>b;b+=1)if(d=f[b])for(e in d)m.call(d,e)&&(a[e]=d[e]);return a}function b(a,b,c){this.locales=a,this.formats=b,this.pluralFn=c}function c(a){this.id=a}function d(a,b,c,d){this.id=a,this.offset=b,this.options... |
fixtures/packaging/systemjs-builder/dev/input.js | AlmeroSteyn/react | import React from 'react';
import ReactDOM from 'react-dom';
ReactDOM.render(
React.createElement('h1', null, 'Hello World!'),
document.getElementById('container')
);
|
ajax/libs/analytics.js/2.8.8/analytics.js | holtkamp/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){
/**
* Global
... |
ajax/libs/forerunnerdb/1.3.920/fdb-core+persist.min.js | dlueth/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
client/components/ActionTileBlock/ActionTileBlock.js | LetAmericaVote/strikeout | import React from 'react';
import PropTypes from 'prop-types';
import Button from '../Button';
import Markdown from '../Markdown';
import { Link } from '../Routing';
import './action-tile-block.scss';
const ActionTileBlock = (props) => {
const {
backgroundImage, callToAction,
callToActionLink, content,
} ... |
definitions/npm/expo-asset_v6.x.x/flow_v0.69.0-/test_expo-asset.js | splodingsocks/FlowTyped | // @flow
import React from 'react';
import { it, describe } from 'flow-typed-test';
import { Asset } from 'expo-asset';
describe('static methods', () => {
describe('loadAsync', () => {
it('should passes when used properly', () => {
Asset.loadAsync(1);
Asset.loadAsync([1, 2]);
});
it('should... |
src/entypo/ShoppingBag.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--ShoppingBag';
let EntypoShoppingBag = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M18.121,3.271c-0.295-0.256-1.906-1.731-2.207-1.991C15.615,1.021,15.158,1,14.812,1H5.188C4.8... |
src/svg-icons/notification/vibration.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationVibration = (props) => (
<SvgIcon {...props}>
<path d="M0 15h2V9H0v6zm3 2h2V7H3v10zm19-8v6h2V9h-2zm-3 8h2V7h-2v10zM16.5 3h-9C6.67 3 6 3.67 6 4.5v15c0 .83.67 1.5 1.5 1.5h9c.83 0 1.5-.67 1.5-1.5v-15c0... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.