path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/pages/host.dashboard.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import { withUser } from '../components/UserProvider';
import HostDashboard from '../components/HostDashboard';
import Loading from '../components/Loading';
import withData from '../lib/withData';
import withIntl from '../lib/withIntl';
class HostExpense... |
packages/material-ui-icons/src/ConfirmationNumber.js | kybarg/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="M22 10V6c0-1.11-.9-2-2-2H4c-1.1 0-1.99.89-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2s.9-... |
ajax/libs/react-slick/0.3.3/react-slick.min.js | emijrp/cdnjs | !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("react")):"function"==typeof define&&define.amd?define(["react"],n):"object"==typeof exports?exports.Slider=n(require("react")):t.Slider=n(t.React)}(this,function(t){return function(t){function n(r){if(e[r])return e[r].exports;var... |
ajax/libs/material-ui/4.9.3/esm/Dialog/Dialog.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
/* eslint-disable jsx-a11y/click-events-have-key-events */
import React from 'react';
import Pro... |
react/src/components/dashboard/exchangesTOSModal/exchangesTOSModal.render.js | pbca26/EasyDEX-GUI | import React from 'react';
import translate from '../../../translate/translate';
import Config from '../../../config';
const ExchangesTOSModalRender = function() {
return (
<div onKeyDown={ (event) => this.handleKeydown(event) }>
<div
className={ `modal modal-3d-sign exchanges-tos-modal ${this.stat... |
pages/api/list-item.js | Kagami/material-ui | import 'docs/src/modules/components/bootstrap';
// --- Post bootstrap -----
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from './list-item.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default Page;
|
ajax/libs/amcharts4/4.10.18/.internal/core/interaction/InteractionObject.js | cdnjs/cdnjs | /**
* Interaction Object module
*/
import { __extends } from "tslib";
/**
* ============================================================================
* IMPORTS
* ============================================================================
* @hidden
*/
import { InteractionObjectEventDispatcher } from... |
assets/jsautocomplete/js/jquery-1.5.2.min.js | taoann/kopsyar | /*!
* jQuery JavaScript Library v1.5.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.
... |
app/javascript/mastodon/components/status_list.js | ambition-vietnam/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import StatusContainer from '../containers/status_container';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ScrollableList from './scrollable_list';
import { Formatted... |
packages/retabulate-react/src/components/Axis.js | jasonphillips/retabulate | import React from 'react';
import gatherChildConfig from '../utils/gatherChildConfig';
import makeRenderers from '../utils/makeRenderers';
class Axis extends React.Component {
static serialize(props, index, context) {
const {position, children} = props;
const descendents = gatherChildConfig(children, contex... |
client/index.js | liors/wix-chat | import './main.css';
import React from 'react';
import ReactDOM from 'react-dom';
import { createStore, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import App from './components/App';
import startChat, { chatMiddleware } from './chat';
import reducers from './reducers';
const initialState ... |
docs/Stats.js | jxnblk/cxs | import React from 'react'
import cxs from 'cxs'
import { format } from 'bytes'
import Pre from './Pre'
class Stats extends React.Component {
render () {
const css = cxs.css()
return (
<Pre f={0}
wrap
title={css}>
cxs generated {format(css.length)} of CSS to render this page.
... |
app/containers/FeaturePage/index.js | huahuaxiong/console | /*
* FeaturePage
*
* List all the features
*/
import React from 'react';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import Helmet from 'react-helmet';
import messages from './messages';
import { FormattedMessage } from 'react-intl';
import Button from 'components/Button';
imp... |
src/components/ui.js | tonyxiao/segment-debugger | import React from 'react'
import CSSModules from 'react-css-modules'
import styles from 'styles/shared.scss'
export const JsonBlock = ({json}) => {
if (!json) {
return null
}
const prettyJsonString = JSON.stringify(json, null, 4)
return (
<pre>Response: {prettyJsonString}</pre>
)
} |
src/examples/example-toolbox-fixed/example-toolbox-fixed.js | smollweide/react-speed-dial | import React from 'react';
import PropTypes from 'prop-types';
import { blue500, white } from 'material-ui/styles/colors';
import IconShare from 'material-ui/svg-icons/social/share';
import IconMail from 'material-ui/svg-icons/communication/email';
import IconCopy from 'material-ui/svg-icons/content/content-copy';
impo... |
src/TagsInput.js | ccoloma/react-simple-tags-input | import React from 'react';
function isEmpty(value) {
return !value || !value.length;
}
export default class TagsInput extends React.Component {
constructor(props) {
super(props);
this.state = {
currentTag: '',
tags: props.tags || []
}
this.onChange = this.onChange.bind(this);
thi... |
ajax/libs/F2/1.3.3/f2.js | Rbeuque74/cdnjs | ;(function(exports) {
if (exports.F2 && !exports.F2_TESTING_MODE) {
return;
}
/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d... |
docs/src/sections/ProgressBarSection.js | egauci/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function ProgressBarSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
... |
app/javascript/mastodon/features/list_editor/index.js | summoners-riftodon/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { injectIntl } from 'react-intl';
import { setupListEditor, clearListSuggestions, ... |
packages/material-ui-icons/src/GraphicEqTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M7 18h2V6H7v12zm4 4h2V2h-2v20zm-8-8h2v-4H3v4zm12 4h2V6h-2v12zm4-8v4h2v-4h-2z" />
, 'GraphicEqTwoTone');
|
NativeBaseDemo/demo/HomeScreen.js | MisterZhouZhou/ReactNativeLearing | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {StyleSheet, Text, View, ListView, TouchableOpacity} from 'react-native';
export default class HomeScreen extends Component {
constructor(props){
super(props);
this.ds = n... |
ajax/libs/forerunnerdb/1.3.602/fdb-legacy.js | dannyxx001/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/scaffold/templates/javascript/src/example.mu.js | willowtreeapps/react-sapling | import React from 'react';
import {{componentName}} from './root';
const ComponentExample = React.createClass({
render() {
return <{{componentName}} />;
}
});
export default ComponentExample;
|
src/routes/NotFound/NotFound.js | tonyxiao/segment-debugger | import React from 'react'
import { browserHistory } from 'react-router'
const goBack = (e) => {
e.preventDefault()
return browserHistory.goBack()
}
export const NotFound = () => (
<div>
<h4>Page not found!</h4>
<p><a href='#' onClick={goBack}>← Back</a></p>
</div>
)
export default... |
ajax/libs/dc/2.1.1/dc.js | cdnjs/cdnjs | /*!
* dc 2.1.1
* http://dc-js.github.io/dc.js/
* Copyright 2012-2016 Nick Zhu & the dc.js Developers
* https://github.com/dc-js/dc.js/blob/master/AUTHORS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain... |
src/components/Trend/Trend.js | Zoomdata/nhtsa-dashboard | import flowRight from 'lodash.flowright';
import React, { Component } from 'react';
import TrendChart from '../TrendChart/TrendChart';
import { observer, inject } from 'mobx-react';
import { toJS } from 'mobx';
class Trend extends Component {
render() {
const { store } = this.props;
const data = toJS(store.c... |
Examples/UIExplorer/js/AnimatedGratuitousApp/AnExApp.js | DanielMSchmidt/react-native | /**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* The examp... |
test/header/DesktopHeader.spec.js | sk1981/react-header | import React from 'react';
import { shallow } from 'enzyme';
import {expect} from 'chai';
import DesktopHeader from '../../src/header/DesktopHeader.js';
import NavigationList from '../../src/navigation/NavigationList.js';
describe("Desktop Header ", function() {
it('Adds a main menu prop to NavigationList', functio... |
src/components/nav-elements.js | ZhenxingXiao/zls-front-end | require('styles/gen.css');
import React from 'react';
class NavContainer extends React.Componet {
render(){
return(
<div>First Nav Container</div>
);
}
}
NavContainer.defaultProps = {
};
export default NavContainer;
|
ajax/libs/angular-data/0.5.0/angular-data.js | mohitbhatia1994/cdnjs | /**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file angular-data.js
* @version 0.5.0 - Homepage <http://jmdobry.github.io/angular-data/>
* @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/angular-data>
* @license MIT <https://github.com/jmdobry/angular-data/blob/master/LICENSE>
*
* @overview Dat... |
src/App.js | chandlera/react-hot-boilerplate | import React, { Component } from 'react';
import Board from './Board';
export default class App extends Component {
render() {
return (
<Board knightPosition={[4, 7]} />
);
}
}
|
src/logs/LogForm.js | carab/Pinarium | import React from 'react';
import {observer} from 'mobx-react-lite';
import {Trans, useTranslation} from 'react-i18next/hooks';
import {makeStyles} from '@material-ui/styles';
import InputAdornment from '@material-ui/core/InputAdornment';
import FieldRow from '../form/FieldRow';
import TextField from '../form/TextFiel... |
client/src/__tests__/components/Dashboard.spec.js | Billmike/More-Recipes | import React from 'react';
import { shallow } from 'enzyme';
import sinon from 'sinon';
import { Dashboard, mapStateToProps } from '../../components/Dashboard';
import { RecipeEdit } from '../../components/RecipeEdit';
import recipes, {
FavoritesRecipeProps,
recipesLoading
} from '../fixtures/recipes';
import auth ... |
src/components/PageWrapper/PageWrapper.js | hahoocn/hahoo-admin | import React from 'react';
import styles from './PageWrapper.css';
class PageWrapper extends React.Component {
static propTypes = {
children: React.PropTypes.node,
}
state = {}
render() {
return (
<div className={styles.pagewrapper}>
{this.props.children}
<div className={styles.... |
client/app/components/about.js | Terry-Breen/scrappedideas | import React from 'react';
export default class AboutPage extends React.Component {
render(){
return (
<div className="container about-container">
<p>AAA</p>
</div>
);
}
}
|
ajax/libs/formsy-react/0.6.0/formsy-react.min.js | redmunds/cdnjs | !function t(i,e,n){function s(o,u){if(!e[o]){if(!i[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(r)return r(o,!0);var p=new Error("Cannot find module '"+o+"'");throw p.code="MODULE_NOT_FOUND",p}var h=e[o]={exports:{}};i[o][0].call(h.exports,function(t){var e=i[o][1][t];return s(e?e:t)},h,h.ex... |
src/client/components/Header/Header.js | jaimerosales/visual-reports-bim360dc | import AppNavbar from '../Navbar/AppNavbar'
import React from 'react'
import './Header.scss'
class Header extends React.Component {
render () {
return (
<div>
<AppNavbar {...this.props}/>
</div>
)
}
}
export default Header
|
src/components/labels_manager/labels_list.js | roman01la/f-react-kit | import React from 'react';
import Label from './label';
import { mutateLocal } from '../../lib/state_tools/mutator_client';
import { connectCSSExtractor } from '../../lib/css_tools/extract_css';
import styles from './labels_list.css';
function setSelectionState(item) {
return () => mutateLocal(['setLabelSelection', ... |
app/javascript/mastodon/components/setting_text.js | haleyashleypraesent/ProjectPrionosuchus | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
class SettingText extends React.PureComponent {
static propTypes = {
settings: ImmutablePropTypes.map.isRequired,
settingKey: PropTypes.array.isRequired,
label: PropTypes.string.isR... |
src/containers/editor/RepoEditor/SearchInputer.js | mydearxym/mastani | import React from 'react'
import { GITHUB_WEB_ADDR } from '@/config'
import Button from '@/widgets/Buttons/Button'
import FormItem from '@/widgets/FormItem'
import { InputWrapper } from './styles/search_man'
import { onGithubSearch, searchOnChange } from './logic'
const SearchInputer = ({ value, searching }) => (
... |
frontend/web/js/md/jquery.js | lekster/md | /*! jQuery v1.7.2 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 cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde... |
node_modules/react/dist/react.js | rageboom/React_Study | /**
* React v15.3.1
*/
(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}... |
app/Resources/js/startup/home.js | ryota-murakami/tweet-pick | import React from 'react'
import { Provider } from 'react-redux'
import App from '../containers/home'
import ReactOnRails from 'react-on-rails'
const mainNode = () => {
const store = ReactOnRails.getStore('homeStore')
const reactComponent = (
<Provider store={store}>
<App/>
</Provi... |
test/components/Counter.spec.js | ACalix/sprinthub | import { spy } from 'sinon';
import React from 'react';
import { shallow } from 'enzyme';
import { BrowserRouter as Router } from 'react-router-dom';
import renderer from 'react-test-renderer';
import Counter from '../../app/components/Counter';
function setup() {
const actions = {
increment: spy(),
incremen... |
app/src/containers/recommended-diet/index.js | supernova-at/media-bias | /*
* Imports.
*/
// NPM.
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
// Local.
import './recommended-diet.css';
import Outlet from '../../components/outlet';
import Recommender from './recommender';
import { Zones } from '../../zones';
// Membe... |
public/js/components/profile/visitor/activityfeed/Comment.react.js | TRomesh/Coupley | import React from 'react';
import Card from 'material-ui/lib/card/card';
import ListItem from 'material-ui/lib/lists/list-item';
import List from 'material-ui/lib/lists/list';
import Divider from 'material-ui/lib/divider';
import Avatar from 'material-ui/lib/avatar';
var Comment = React.createClass({
render: fun... |
ajax/libs/forerunnerdb/1.3.302/fdb-legacy.js | pvnr0082t/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/containers/NotFound/NotFound.js | shalomeir/snippod-starter-demo-app-front | import React, { Component } from 'react';
export default class NotFound extends Component {
render() {
return (
<div className="not-found container main-container">
<h1>Doh! 404!</h1>
<p>These are <em>not</em> the droids you are looking for!</p>
</div>
);
}
}
|
frontend/src/index.js | jirkae/BeerCheese | import React from 'react';
import ReactDOM from 'react-dom';
import 'bootstrap/dist/css/bootstrap.css';
import App from './App';
import { configureStore } from './store/configureStore';
const store = configureStore();
ReactDOM.render(
<App store={store} />,
document.getElementById('root'),
);
|
vendors/parsleyjs/dist/parsley.js | cwtang28/servisbid | /*!
* Parsley.js
* Version 2.3.13 - built Tue, May 31st 2016, 8:55 am
* http://parsleyjs.org
* Guillaume Potier - <guillaume@wisembly.com>
* Marc-Andre Lafortune - <petroselinum@marc-andre.ca>
* MIT Licensed
*/
// The source code below is generated by babel as
// Parsley is written in ECMAScript 6
//
var _slice = Arra... |
ajax/libs/foundation/4.0.5/js/vendor/jquery.js | mikelambert/cdnjs | /*!
* 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... |
pages/validation.js | bmagic/acdh-client | import React from 'react'
import {withReduxSaga} from 'configureStore'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import Layout from 'components/Layout'
import Meta from 'components/Meta'
import Title from 'components/Title'
import ValidationForm from 'components/ValidationForm'
import {... |
src/forms/Predictions.js | shp54/cliff-effects | import React from 'react';
import { Form, Divider, Header, Tab } from 'semantic-ui-react';
// PROJECT COMPONENTS
import { FormPartsContainer, IntervalColumnHeadings, CashFlowRow } from './formHelpers';
import { GraphHolder } from './output/GraphHolder';
import { BenefitsTable } from './output/BenefitsTable';
import { ... |
core/static/admin/tests/layouts/CoreLayout.spec.js | tjcunliffe/hoverfly | import React from 'react'
import TestUtils from 'react-addons-test-utils'
import CoreLayout from 'layouts/CoreLayout/CoreLayout'
function shallowRender (component) {
const renderer = TestUtils.createRenderer()
renderer.render(component)
return renderer.getRenderOutput()
}
function shallowRenderWithProps (props... |
react/src/base/inputs/SprkCheckbox/SprkCheckboxItem/SprkCheckboxItem.js | sparkdesignsystem/spark-design-system | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import uniqueId from 'lodash/uniqueId';
const SprkCheckboxItem = (props) => {
const {
children,
variant,
idString,
additionalClasses,
analyticsString,
checkboxAdditionalClasses,
labelAdditi... |
src/status/NetworkTraffic.js | ipfs/webui | import React from 'react'
import { connect } from 'redux-bundler-react'
import { withTranslation } from 'react-i18next'
import Speedometer from './Speedometer'
import { Title } from './Commons'
class NetworkTraffic extends React.Component {
state = {
downSpeed: {
filled: 0,
total: 125000 // Starts wi... |
src/components/Tooltip.js | destruc7i0n/crafting | import React from 'react'
import './Tooltip.css'
const Tooltip = ({ style, ingredient, title, hidden }) => {
let data = 0
let hasData = ingredient.hasCustomData()
if (hasData) {
data = ingredient.getCustomData().data
hasData = data !== undefined && !isNaN(data)
}
return !hidden ? (
<div
c... |
packages/material-ui-icons/src/PhoneForwardedTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M15.2 18.21c1.21.41 2.48.67 3.8.76v-1.5c-.88-.07-1.75-.22-2.6-.45l-1.2 1.19zM6.54 5h-1.5c.09 1.32.34 2.58.75 3.79l1.2-1.21c-.24-.83-.39-1.7-.45-2.58z" opacity=".3" /><path d="M20 15.5c... |
packages/react/src/Login.js | js-accounts/react | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import isString from 'lodash/isString';
import { Form, FormInput } from 'react-form';
class Login extends Component {
static propTypes = {
accounts: PropTypes.object,
setFormType: PropTypes.func,
Avatar: PropTypes.func,
Log... |
packages/material-ui-icons/src/ThreeSixtySharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M12 7C6.48 7 2 9.24 2 12c0 2.24 2.94 4.13 7 4.77V20l4-4-4-4v2.73c-3.15-.56-5-1.9-5-2.73 0-1.06 3.04-3 8-3s8 1.94 8 3c0 .73-1.46 1.89-4 2.53v2.05c3.53-.77 6-2.53 6-4.58 0-2.76-4.48-5-10-5z" />
, 'Three... |
services/ui/src/components/errors/EnvironmentNotFound.stories.js | amazeeio/lagoon | import React from 'react';
import EnvironmentNotFound from './EnvironmentNotFound';
export default {
component: EnvironmentNotFound,
title: 'Components/Errors/EnvironmentNotFound',
}
export const Default = () => (
<EnvironmentNotFound
variables={{
openshiftProjectName: 'fortytwo-pr-42',
}}
/>
);... |
src/components/text-field.demo.js | bhongy/react-components | // @flow
import React from 'react';
import TextField from './text-field';
import type { EventHandler } from './text-field';
type State = { [key: string]: string };
class TextFieldDemo extends React.PureComponent<{}, State> {
state = { demo: '' };
handleInputChange: EventHandler = (event) => {
const { name, ... |
app/components/ReOrder/RePickupAddress.js | prudhvisays/newsb | import React from 'react';
import Input from './ReInput';
import Flatpickr from 'react-flatpickr';
import PickupLocation from './PickupLocation';
import moment from 'moment';
export default class RePickupAddress extends React.Component { //eslint-disable-line
constructor(props) {
super(props);
this... |
imports/ui/components/Infinity/GetHeightWrapper.js | ShinyLeee/meteor-album-app | import React, { Component } from 'react';
import PropTypes from 'prop-types';
export default class GetHeightWrapper extends Component {
static propTypes = {
getHeight: PropTypes.func.isRequired,
children: PropTypes.node.isRequired,
};
componentDidMount() {
this.setHeight();
}
shouldComponentUpd... |
ajax/libs/react-native-web/0.17.7/exports/RefreshControl/index.js | cdnjs/cdnjs | function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
/**
* Copy... |
web/src/components/header.js | ajmalafif/ajmalafif.com | import { Link } from 'gatsby'
import React from 'react'
import tw, { theme, css } from 'twin.macro'
import Modal from './dialog'
import DarkModeToggle from './darkModeToggle'
const isPartiallyActive = ({ isPartiallyCurrent }) => {
return isPartiallyCurrent ? { className: 'active' } : null
}
const isActive = ({ isCu... |
ajax/libs/babel-core/5.2.5/browser-polyfill.js | BobbieBel/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... |
RNApp/app/index.js | spencercarli/react-native-meteor-boilerplate | import React from 'react';
import Meteor, { createContainer } from 'react-native-meteor';
import { AuthStack, Tabs } from './config/routes';
import Loading from './components/Loading';
import settings from './config/settings';
Meteor.connect(settings.METEOR_URL);
const RNApp = (props) => {
const { status, user, lo... |
packages/material-ui-icons/src/BatteryCharging20.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M11 20v-3H7v3.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V17h-4.4L11 20z" /><path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V17h4v-2.5H9L13 7v5.5h2L12.6 1... |
node_modules/react-icons/fa/quote-left.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const FaQuoteLeft = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m18.6 21.4v8.6q0 1.8-1.2 3t-3 1.3h-8.6q-1.8 0-3-1.3t-1.3-3v-15.7q0-2.3 0.9-4.4t2.4-3.7 3.7-2.4 4.4-0.9h1.5q0.5 0 1 0.4t0.4 1v2.8q0 0.6-0.4 1t-1 0.5h-1.5q-2.3 0-4 1.... |
docs/src/components/AppWrapper.js | mattBlackDesign/react-materialize | import React from 'react';
import PropTypes from 'prop-types';
import { withRouter } from 'react-router-dom';
class AppWrapper extends React.Component {
componentDidUpdate (prevProps) {
if (this.props.location !== prevProps.location) {
window.scrollTo(0, 0);
}
}
render () {
const { children, .... |
test/testUtils.js | YouCanBookMe/react-datetime | import React from 'react'; // eslint-disable-line no-unused-vars
import { mount, shallow } from 'enzyme';
import Datetime from '../dist/react-datetime.cjs'; // eslint-disable-line no-unused-vars
const _simulateClickOnElement = (element) => {
if (element.length === 0) {
// eslint-disable-next-line no-console
conso... |
src/svg-icons/device/signal-cellular-1-bar.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellular1Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M2 22h20V2z"/><path d="M12 12L2 22h10z"/>
</SvgIcon>
);
DeviceSignalCellular1Bar = pure(DeviceSignalCellular1Bar);
Device... |
src/components/Header/Header.js | cheshire137/steamfit | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import s from '.... |
ajax/libs/yui/3.7.0pr2/simpleyui/simpleyui.js | dhowe/cdnjs | /**
* The YUI module contains the components required for building the YUI seed
* file. This includes the script loading mechanism, a simple queue, and
* the core utilities for the library.
* @module yui
* @main yui
* @submodule yui-base
*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The YUI gl... |
src/config.js | takahashik/todo-app | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
/* eslint-disable max-len */
if (process.env.BROWSER) ... |
app/javascript/mastodon/features/compose/components/autosuggest_account.js | pfm-eyesightjp/mastodon | import React from 'react';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
export default class AutosuggestAccount extends Immuta... |
app/pages/about/contact.spec.js | jelliotartz/Panoptes-Front-End | /* eslint prefer-arrow-callback: 0, func-names: 0, 'react/jsx-filename-extension': [1, { "extensions": [".js", ".jsx"] }] */
import React from 'react';
import assert from 'assert';
import { shallow } from 'enzyme';
import Contact from './contact';
describe('Contact', function () {
it('renders without crashing', fun... |
src/parser/priest/discipline/modules/spells/Contrition.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import StatTracker from 'parser/shared/modules/StatTracker';
import { TooltipElement } from 'common/Tooltip';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import { formatPercentag... |
packages/material-ui-icons/src/BatteryCharging30Rounded.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M15.67 4H14V3c0-.55-.45-1-1-1h-2c-.55 0-1 .45-1 1v1H8.33C7.6 4 7 4.6 7 5.33v9.17h2.83c-.38 0-.62-.4-.44-.74l2.67-5c.24-.45.94-.28.94.24v3.5h1.17c.38 0 .62.4.44.74l-.67... |
examples/paragraphs/src/App.js | josepot/react-redux-scroll | import React from 'react';
import rebassConfig from './rebass-config';
import Navbar from './components/Navbar';
import Content from './components/Content';
export default rebassConfig(() =>
<div>
<Navbar />
<Content />
</div>
);
|
client/components/auth/signout.js | raymestalez/vertex | import React, { Component } from 'react';
import { connect } from 'react-redux';
import * as actions from '../../actions/auth';
class Signout extends Component {
componentWillMount(){
// as soon as it renders - login user out
console.log(">>>> src/components/auth/signout.js:");
console.log("Calling signoutUser ... |
docs/app/Examples/modules/Dropdown/Types/DropdownExampleMultipleSearchSelection.js | ben174/Semantic-UI-React | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
import { stateOptions } from '../common'
const DropdownExampleMultipleSearchSelection = () => (
<Dropdown placeholder='State' fluid multiple search selection options={stateOptions} />
)
export default DropdownExampleMultipleSearchSelection
|
ajax/libs/forerunnerdb/1.3.40/fdb-core+persist.js | BenjaminVanRyseghem/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/Components/Coffees.js | Zangriev/SampleApplication | import React, { Component } from 'react';
import { Link } from 'react-router'
import CoffeeStore from "../Stores/Coffee";
let getState = () => {
return {
coffees: CoffeeStore.getCoffees(),
filter: CoffeeStore.getFilter()
};
};
class Coffees extends Component {
constructor(props) {
super(props);
... |
src/svg-icons/notification/do-not-disturb.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationDoNotDisturb = (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 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13... |
ajax/libs/redux-little-router/7.3.2/redux-little-router.js | froala/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["ReduxLittleRouter"]... |
src/app/components/Apply/ApplicationTemplate.js | kresimircoko/empathy | import React, { Component } from 'react';
class ApplicationTemplate extends Component {
render () {
return (
<form id="application-template">
<h3>Application For Benevolence</h3>
<label htmlFor="charName">Character Name</label>
<input name="charName" placeholder="Arthas" type="text"/>
<label ht... |
src/components/flows/thirdPillar/ConfirmThirdPillarMandate/ThirdPillarTermsAgreement/ThirdPillarTermsAgreement.js | TulevaEE/onboarding-client | import React from 'react';
import Types from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { FormattedMessage, useIntl } from 'react-intl';
import { actions as thirdPillarActions } from '../../../../thirdPillar';
const RECOMMENDATION_AGE = 55;
export const Th... |
frontend/app/js/components/service/details/externalurl.js | serverboards/serverboards | import React from 'react'
function ExternalUrl({url}){
return (
<iframe src={url} className="ui full height"></iframe>
)
}
export default ExternalUrl
|
files/react.slick/0.4.1/react-slick.js | markcarver/jsdelivr | (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["Slider"] = factory(... |
ajax/libs/6to5/3.3.4/browser.js | andyinabox/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.to5=e()}}(function(){var define,module,exports;return... |
wrappers/toml.js | pcm-ca/pcm-ca.github.io | import React from 'react'
import toml from 'toml-js'
import Helmet from 'react-helmet'
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
route: React.PropTypes.object,
}
},
render () {
const data = this.props.route.page.data
return (
<div>
... |
ajax/libs/rxjs/2.3.19/rx.lite.extras.js | bspaulding/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
... |
app/javascript/mastodon/features/compose/components/upload.js | tootcafe/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { FormattedMessage } fr... |
tests/react_native_tests/test_data/native_code/ToolbarWithActions/app/icons/FilterIcon/component.js | ibhubs/sketch-components | /*
* @flow
*/
import React from 'react'
import Svg, { Defs, Desc, G, Path, Polygon, Title, } from 'react-native-svg'
const FilterIcon = (props) => {
const {width, height, color='#000', fillColor='#FFF'} = props
return (
<Svg
height = '24'
version = '1.1'
vie... |
app/main.js | erlswtshrt/react-es6-boilerplate | import React from 'react';
import Router from 'react-router';
import ReactDOM from 'react-dom';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import routes from './routes';
let history = createBrowserHistory();
ReactDOM.render(<Router history={history}>{routes}</Router>, document.getElementById... |
public/src/js/components/popups/components/login/index.js | Robertmw/imagistral | /**
*
* Login popup
* @parent Popups
* @author Robert P.
*
*/
import React from 'react';
import BaseComponent from '../../../base-component/base-component';
import {branch} from 'baobab-react/higher-order';
import Auth from '../../../../services/facebook-auth';
import Cookie from '../../../../services/cookies';... |
ajax/libs/yui/3.9.0/simpleyui/simpleyui.js | 2947721120/cdnjs | /**
The YUI module contains the components required for building the YUI seed file.
This includes the script loading mechanism, a simple queue, and the core
utilities for the library.
@module yui
@main yui
@submodule yui-base
**/
/*jshint eqeqeq: false*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The... |
node_modules/react-icons/ti/spanner.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const TiSpanner = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m33.8 11.9c-0.1-0.3-0.3-0.5-0.6-0.6-0.3-0.1-0.6 0-0.8 0.2l-4.3 4.3-3.2-0.7-0.7-3.2 4.4-4.3c0.3-0.2 0.3-0.5 0.3-0.7s-0.3-0.6-0.6-0.7c-0.9-0.2-1.7-0.4-2.5-0.4-4.6 0-8.3... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.