path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
ajax/libs/jquery/1.4.3/jquery.min.js
dannyxx001/cdnjs
/*! * jQuery JavaScript Library v1.4.3 * 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. ...
app/javascript/mastodon/components/display_name.js
mhffdq/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; export default class DisplayName extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, }; render () { const displayNameHtml = { __html: this.props.account.get('display_name_ht...
ajax/libs/preact-compat/1.8.3/preact-compat.js
maruilian11/cdnjs
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('proptypes'), require('preact-svg'), require('preact')) : typeof define === 'function' && define.amd ? define(['proptypes', 'preact-svg', 'preact'], factory) : (global.preactCompat = factory(...
boxroom/archive/backup-js-bling-2018-04-28/boxroom/archive/js-surface-2018-01-27/boxroom/archive/2017-10-23-before-redesign/src/main/js-surface-standalone.js
mcjazzyfunky/js-surface
import { createElement, defineComponent, defineClassComponent, defineFunctionalComponent, defineStandardComponent, hyperscript, isElement, isRenderable, mount, unmount, Adapter, Config } from './js-surface-preact'; export { createElement, defineComponent, def...
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-common-content-mixin.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import Tools from './tools.js' import TextCorrector from '../bricks/text-corrector.js' export const ContentMixin = { //@@viewOn:statics statics: { UU5_Common_ContentMixin: { requiredMixins: ['UU5_Common_BaseMixin'], defaults: { standardMode: 'standard', o...
src/pages/css-grid/06-position-items.js
MozillaDevelopers/playground
import React from 'react'; import Main from './components/_Main'; import CodeBlock from '../../components/CodeBlock'; import DevHomework from '../../components/layout/DevHomework'; import CodepenLink from '../../components/CodepenLink'; // images import numbers from '../../components/img/terms/numbers.svg'; import gri...
ajax/libs/vue-material/1.0.0-beta-1/components/MdMenu/index.js
sashberd/cdnjs
module.exports=(function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esMod...
src/SplitToggle.js
zanjs/react-bootstrap
import React from 'react'; import DropdownToggle from './DropdownToggle'; export default class SplitToggle extends React.Component { render() { return ( <DropdownToggle {...this.props} useAnchor={false} noCaret={false} /> ); } } SplitToggle.defaultProps = DropdownToggle...
packages/shared/forks/SchedulerTracing.umd.js
jdlehman/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import React from 'react'; const ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; const { ...
examples/todomvc/index.js
btbright/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; import 'todomvc-app-css/index.css'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} ...
src/presentation/components/layout.component.js
vilellaj/tweet-sense
'use strict'; import React from 'react'; import { Link } from 'react-router'; import HeaderComponent from './header.component'; import BackGroundComponent from './background.component'; export default class LayoutComponent extends React.Component { constructor(props) { super(props); } render()...
docs/.storybook/config.js
rhalff/storybook
import React from 'react'; import { configure, addDecorator } from '@storybook/react'; import { MemoryRouter } from 'react-router'; import 'bootstrap/dist/css/bootstrap.css'; import '../src/css/main.css'; addDecorator(story => <MemoryRouter>{story()}</MemoryRouter>); function loadStories() { require('../src/storie...
src/components/Section/index.js
matyunya/teatralium
import React from "react"; import styled, { keyframes } from "styled-components"; import HomepageLink from "../HomepageLink"; import Share from "../Share"; import { phone } from "../../utils/media"; const fadein = keyframes` from { opacity: 0.2; } to { opacity: 1; } `; const StyledSection = styled.section` m...
gatsby-ssr.js
amcsi/szeremi
import React from 'react'; import App from './app/components/pages/_App'; import Page from './app/components/pages/_Page'; import calculateInitialState from './app/core/calculateInitialState'; import configureStore from './app/core/configureStore'; /** * Implement Gatsby's SSR (Server Side Rendering) APIs in this fil...
src/components/EditorWidgets/Boolean/BooleanControl.js
Aloomaio/netlify-cms
import PropTypes from 'prop-types'; import React from 'react'; import ImmutablePropTypes from "react-immutable-proptypes"; import { isBoolean } from 'lodash'; import { Toggle } from 'UI'; export default class BooleanControl extends React.Component { render() { const { value, field, forID, ...
node_modules/babel-runtime/node_modules/core-js/client/library.js
vitorgomateus/NotifyMe
/** * core-js 2.4.1 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2016 Denis Pushkarev */ !function(__e, __g, undefined){ 'use strict'; /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require f...
src/reducers/utils/cells.js
sburba/laduradura
import update from 'react-addons-update' export const setSelected = (state, row, col, selected) => update(state, { puzzle: { cells: { [row]: { [col]: { $merge: { selected } } } } } }) export const clearSelection = (state) => { let nextState = state, n = state.puzzle.extent; for(let i = 0; i < n; i++) { for(...
app/src/pages/TermsScreen.js
skunkmb/Ablo
import React, { Component } from 'react'; import { Text, View, ScrollView, StyleSheet } from 'react-native'; import { darkTheme } from '../themes.js'; import Logo from '../common/Logo.js'; let themeStyles = darkTheme.styleSheet let styleOptions = darkTheme.options; export default class TermsScreen extends Component { ...
blueocean-material-icons/src/js/components/svg-icons/av/mic.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvMic = (props) => ( <SvgIcon {...props}> <path d="M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72h-1.7z"...
WebSite4/Scripts/jquery-1.9.1.js
alekseybochkov/WebRAS
/*! * 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 ...
node_modules/grunt-contrib-watch/node_modules/tiny-lr/node_modules/qs/test/browser/jquery.js
shuuuuun/study-closure
/*! * jQuery JavaScript Library v1.6.2 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
ims-react/src/index.js
womkim/integrated-management-system
/** * Created by womkim on 2017/10/18. */ import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import store from '@/store' import Router from '@/router' import 'antd/dist/antd.css' render( <Provider store={store}> <Router /> </Provider>, document.getElement...
app/components/logo.js
mthmulders/lin2go
import React from 'react'; import { Image } from 'react-native'; import styles from '../styles'; import logo from '../resources/logo.png'; export default () => ( <Image source={ logo } style={ styles.logo } /> );
src/containers/views/tests/pageedit.spec.js
jekyll/jekyll-admin
import React from 'react'; import { shallow } from 'enzyme'; import { PageEdit } from '../PageEdit'; import Errors from '../../../components/Errors'; import Button from '../../../components/Button'; import { page } from './fixtures'; const defaultProps = { page, errors: [], fieldChanged: false, updated: fals...
actor-apps/app-web/src/app/components/modals/CreateGroup.react.js
x303597316/actor-platform
import React from 'react'; import CreateGroupActionCreators from 'actions/CreateGroupActionCreators'; import CreateGroupStore from 'stores/CreateGroupStore'; import CreateGroupForm from './create-group/Form.react'; import Modal from 'react-modal'; import { KeyCodes } from 'constants/ActorAppConstants'; const appEl...
src/svg-icons/image/crop-5-4.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCrop54 = (props) => ( <SvgIcon {...props}> <path d="M19 5H5c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 12H5V7h14v10z"/> </SvgIcon> ); ImageCrop54 = pure(ImageCrop54); ImageCro...
app/src/components/Alerts/U2EDriverOutdatedAlert.js
Opentrons/labware
// @flow import * as React from 'react' import { Link as InternalLink } from 'react-router-dom' import styled from 'styled-components' import { AlertModal, CheckboxField, Link, useToggle, } from '@opentrons/components' import { useTrackEvent } from '../../analytics' import { U2E_DRIVER_UPDATE_URL, U2E_DRIV...
React.WebPack.Init/src/main.js
yodfz/JS
// 核心 import React from 'react'; import ReactDom from 'react-dom'; // UI import HelloWorld from './components/HelloWorld'; // class App extends React.Component { // render() { // return (<h1>hello world</h1>); // }; // } // const App = () => <h1>hello world,const!</h1>; // export default helloworld; console.log(...
src/index.js
nprail/nprail.github.io
import React from 'react' import ReactDOM from 'react-dom' import './themes/green-white.css' // import "./themes/red-white.css"; // import "./themes/grey-white.css"; // import "./themes/white-indigo."; // import "./themes/white-blue.css"; // import "./themes/white-grey.css"; // import "./themes/white-red.css"; // impo...
Redux_examples/todos-with-undo/src/containers/AddTodo.js
hiddaorear/jsTips
import React from 'react' import { connect } from 'react-redux' import { addTodo } from '../actions' let AddTodo = ({ dispatch }) => { let input return ( <div> <form onSubmit={e => { e.preventDefault() if (!input.value.trim()) { return } dispatch(addTodo(input.v...
app/src/components/Skills/SkillItemBarChart.js
RyanCCollins/ryancollins.io
import React from 'react'; import { Column } from 'react-foundation'; import { Motion, spring } from 'react-motion'; import elementInViewport from '../../../lib/isVisible'; class SkillItemBarChart extends React.Component { constructor(props) { super(props); this.setWidthStyle = this.setWidthStyle.bind(this);...
src/views/Main/Container.js
nt591/Wilks-Calculator
import React from 'react' import Header from 'components/Header/Header.js' import styles from './styles.module.css' const Container = React.createClass({ render() { return ( <div className={styles.wrapper}> <Header /> Hello from the container </div> ) } }) export default Conta...
app/js/pages/HomePage.js
jamiltz/Myelin
'use strict'; var React = require('react/addons'); var Link = require('react-router').Link; var DocumentTitle = require('react-document-title'); var HomePage = React.createClass({ propTypes: { currentUser: React.PropTypes.object.isRequired }, render: function() { return ( <DocumentT...
examples/huge-apps/routes/Course/routes/Assignments/routes/Assignment/components/Assignment.js
natorojr/react-router
import React from 'react'; class Assignment extends React.Component { render () { var { courseId, assignmentId } = this.props.params; var { title, body } = COURSES[courseId].assignments[assignmentId] return ( <div> <h4>{title}</h4> <p>{body}</p> </div> ); } } export d...
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js
buddhike/react-router
import React from 'react'; import { Link } from 'react-router'; class Sidebar extends React.Component { render () { var assignments = COURSES[this.props.params.courseId].assignments return ( <div> <h3>Sidebar Assignments</h3> <ul> {assignments.map(assignment => ( ...
ajax/libs/react-native-web/0.0.0-ec235e734/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...
ajax/libs/yui/3.9.0/event-custom-base/event-custom-base.js
thisispiers/cdnjs
YUI.add('event-custom-base', function (Y, NAME) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.Env.evt = { handles: {}, plugins: {} }; /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @mo...
examples/listen/index.js
sskyy/redux-task
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import App from './App' import { Provider } from 'react-redux' import { createStore, compose } from 'redux' import { createEnhancer } from 'redux-task' import countListener from './listener' import reducer from './reducer' // store co...
src/ModalFooter.js
azmenak/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalFooter extends React.Component { render() { return ( <div {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> {this.props.children} </div> ); } } ModalFooter....
examples/with-scoped-stylesheets-and-postcss/pages/index.js
callumlocke/next.js
import React from 'react' import Head from 'next/head' import {stylesheet, classNames} from './styles.css' export default () => ( <p className={classNames.paragraph}> <Head><style dangerouslySetInnerHTML={{__html: stylesheet}} /></Head> bazinga </p> )
app/components/SessionMap/index.js
opensessions/opensessions
import React, { PropTypes } from 'react'; import ItemMap from '../ItemMap'; import SessionTile from '../SessionTile'; export default class SessionMap extends React.Component { // eslint-disable-line react/prefer-stateless-function static contextTypes = { store: PropTypes.object }; static propTypes = { ...
docs/src/pages/demos/dialogs/FormDialog.js
cherniavskii/material-ui
import React from 'react'; import Button from 'material-ui/Button'; import TextField from 'material-ui/TextField'; import Dialog, { DialogActions, DialogContent, DialogContentText, DialogTitle, } from 'material-ui/Dialog'; export default class FormDialog extends React.Component { state = { open: false, ...
src/svg-icons/maps/layers.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLayers = (props) => ( <SvgIcon {...props}> <path d="M11.99 18.54l-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27-7.38 5.74zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16z"/> </SvgIcon> ); MapsLayers = pure(MapsLayer...
src/client.js
docunext/minimalist-react-component
import React from 'react'; import ReactDOM from 'react-dom'; import App from './containers/App'; import createFetch from './createFetch'; import history from './history'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import testApp from './store/reducers'; const initialState = window.__I...
node_modules/babel-preset-react-hmre/test/Test.js
ProjectSunday/rooibus
import React from 'react' export default class Test extends React.Component { render() { return ( <div>Winning?</div> ) } }
app/views/Player/LifeBar.js
thomasboyt/bipp
import React from 'react'; import RenderedCanvas from '../lib/RenderedCanvas'; const LifeBar = React.createClass({ propTypes: { width: React.PropTypes.number.isRequired, height: React.PropTypes.number.isRequired, hp: React.PropTypes.number.isRequired, }, renderCanvas(ctx) { const percentFilled...
src/App.js
Va5s0/fuel-calculator
import React, { Component } from 'react'; import './App.css'; import TextInput from './Components/TextInput'; import Output from './Components/Output'; import Grid from 'react-bootstrap/lib/Grid'; import Row from 'react-bootstrap/lib/Row'; import Col from 'react-bootstrap/lib/Col'; class App extends Component { cons...
node_modules/react-icons/ti/info-large-outline.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const TiInfoLargeOutline = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m23.7 26.7l0.9-1.8c1.4-2.7 1.5-5.4 0.5-7.6-0.2-0.5-0.5-0.8-0.8-1.2 2.4-1 4-3.4 4-6.1 0-3.7-3-6.7-6.6-6.7s-6.7 3-6.7 6.7c0 1.3 0.4 2.5 1 3.5-2.8 0.6-4.6 2.1-4...
app/javascript/mastodon/components/display_name.js
mosaxiv/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; export default class DisplayName extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, }; render () { const displayNameHtml = { __html: this.props.account.get('display_name_ht...
src/svg-icons/action/settings-cell.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsCell = (props) => ( <SvgIcon {...props}> <path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM16 .01L8 0C6.9 0 6 .9 6 2v16c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V2c0-1.1-.9-1.99-2-1.99zM16 16H8V4h8v12z"...
app/jsx/conditional_release_stats/components/breakdown-details.js
djbender/canvas-lms
/* * Copyright (C) 2016 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
production/js/moris/jquery.min.js
vinay20045/gentelella
/*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
lab3/lab3-14/platforms/firefoxos/www/js/main.min.js
alejo8591/phonegap-july
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){function c(a){var b=a.length,c=eb.type(a);return"functi...
fields/types/location/LocationColumn.js
Redmart/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/client/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTableValue'; const SUB_FIELDS = ['street1', 'suburb', 'state', 'postcode', 'country']; var LocationColumn = React.createClass({ displayName: 'Loc...
web/src/js/components/Dashboard/HeartsContainer.js
gladly-team/tab
import graphql from 'babel-plugin-relay/macro' import { createFragmentContainer } from 'react-relay' import Hearts from 'js/components/Dashboard/HeartsComponent' export default createFragmentContainer(Hearts, { user: graphql` fragment HeartsContainer_user on User { vcCurrent tabsToday } `, })
packages/babel-plugin-transform-es2015-classes/test/fixtures/regression/2775/actual.js
CrocoDillon/babel
import React, {Component} from 'react'; export default class RandomComponent extends Component { constructor(){ super(); } render() { return ( <div className='sui-RandomComponent'> <h2>Hi there!</h2> </div> ); } }
fixture-package-preset-env/src/index.js
rtsao/create-universal-package
// @flow /* eslint-disable no-console */ import React from 'react'; import {browser} from './browser.js'; import {node} from './node.js'; if (__NODE__) { console.log(node); } if (__BROWSER__) { console.log(browser); } export function square(x: number) { return x * x; } export function Component() { return...
files/react/0.14.0-alpha1/react.js
yyx990803/jsdelivr
/** * React v0.14.0-alpha1 */ (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=s...
src/renderers/dom/client/wrappers/__tests__/ReactDOMSelect-test.js
yongxu/react
/** * 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. * * @emails react-co...
MobileApp/node_modules/react-native-vector-icons/lib/create-icon-set.js
VowelWeb/CoinTradePros.com
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { NativeModules, Platform, PixelRatio, processColor, Text, } from './react-native'; import createIconButtonComponent from './icon-button'; import createTabBarItemIOSComponent from './tab-bar-item-ios'; import createToolbarAn...
client/views/admin/settings/inputs/StringSettingInput.stories.js
VoiSmart/Rocket.Chat
import { Field } from '@rocket.chat/fuselage'; import { action } from '@storybook/addon-actions'; import React from 'react'; import StringSettingInput from './StringSettingInput'; export default { title: 'admin/settings/inputs/StringSettingInput', component: StringSettingInput, decorators: [(storyFn) => <Field>{st...
src/svg-icons/places/casino.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesCasino = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM7.5 18c-.83 0-1.5-.67-1.5-1.5S6.67 15 7.5 15s1.5.67 1.5 1.5S8.33 18 7.5 18z...
src/frontend/web_application/src/scenes/SearchResults/index.js
CaliOpen/CaliOpen
import { createSelector } from 'reselect'; import { bindActionCreators, compose } from 'redux'; import { connect } from 'react-redux'; import { search, loadMore, getKey, hasMore, } from '../../store/modules/search'; import { withSearchParams } from '../../modules/routing'; import Presenter from './presenter'; const ...
src/components/header/index.js
AliaksandrMamonenka/weather-react
import React from 'react'; import './style.less'; class Header extends React.Component { render() { console.warn('SECOND: render method'); return ( <h1 className="header_title"> {this.props.title} </h1> ); }; componentWillMount(){ console.warn('FIRST: component...
app/pages/_app.js
jaredpalmer/formik
import React from 'react'; import '../styles/globals.css'; function MyApp({ Component, pageProps }) { return <Component {...pageProps} />; } export default MyApp;
Docker/KlusterKiteMonitoring/klusterkite-web/src/components/Paginator/Paginator.js
KlusterKite/KlusterKite
import React from 'react'; import { Pagination } from 'react-bootstrap'; export default class Paginator extends React.Component { static propTypes = { totalItems: React.PropTypes.number.isRequired, currentPage: React.PropTypes.number.isRequired, itemsPerPage: React.PropTypes.number.isRequired, onSele...
src/parser/demonhunter/vengeance/modules/pain/PainDetails.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import Panel from 'interface/others/Panel'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import { formatPercentage } from 'common/format'; import Icon from 'common/Icon'; import ResourceBreakdown from 'parser/shar...
ajax/libs/preact/5.0.1-beta.14/preact.dev.js
menuka94/cdnjs
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (factory((global.preact = global.preact || {}))); }(this, function (exports) { function VNode(nodeName, attributes, childre...
docs/src/pages/lab/toggle-button/ToggleButtons.js
Kagami/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import FormatAlignLeftIcon from '@material-ui/icons/FormatAlignLeft'; import FormatAlignCenterIcon from '@material-ui/icons/FormatAlignCenter'; import FormatAlignRightIcon from '@material-ui/icons/Forma...
app/javascript/mastodon/features/video/index.js
ashfurrow/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { is } from 'immutable'; import { throttle, debounce } from 'lodash'; import classNames from 'classnames'; import { isFullscreen, requestFullscreen, exitFullscreen } from '../...
src/components/google_map_component.js
Viggiecc/React_Redux
import React from 'react'; import { withGoogleMap, GoogleMap } from 'react-google-maps'; // Wrap all `react-google-maps` components with `withGoogleMap` HOC // and name it GettingStartedGoogleMap export default (props) => { const GettingStartedGoogleMap = withGoogleMap(props => ( <GoogleMap defaultZoom={1...
pkg/interface/link/src/js/components/skeleton.js
ngzax/urbit
import React, { Component } from 'react'; import classnames from 'classnames'; import { HeaderBar } from './lib/header-bar'; import { ChannelsSidebar } from './lib/channel-sidebar'; export class Skeleton extends Component { render() { let rightPanelHide = this.props.rightPanelHide ? "dn-s" : ""; let...
frontend/src/components/common/card.js
unicef/un-partner-portal
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import { CardHeader } from 'material-ui/Card'; import Paper from 'material-ui/Paper'; import Typography from 'material-ui/Typography'; import PaddedContent from './paddedContent'; const styleSheet = (theme)...
test/integration/image-component/default/pages/invalid-placeholder-blur.js
zeit/next.js
import React from 'react' import Image from 'next/image' const Page = () => { return ( <div> <Image id="invalid-placeholder-blur" src="/test.png" placeholder="blur" width={200} height={200} /> </div> ) } export default Page
src/routes/register/index.js
jwilliams33490/save-a-little-ui
/** * 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 from 'react'; import Register from './Registe...
ajax/libs/reactive-coffee/1.2.2/reactive-coffee.js
theironcook/cdnjs
(function() { var rxFactory, __slice = [].slice, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = ne...
node_modules/react-icons/io/ios-basketball-outline.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoIosBasketballOutline = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m19.8 3.8c8.9 0 16.2 7.2 16.2 16.2s-7.3 16.3-16.2 16.3-16.3-7.3-16.3-16.3 7.3-16.2 16.3-16.2z m14.9 16.2c0-4.3-1.9-8.2-4.9-10.9-1.1 2.6-2.4 5-4 7.4 1.1 0...
packages/material-ui-icons/tpl/SvgIcon.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '{{{ muiRequireStmt }}}'; let {{className}} = props => <SvgIcon {...props}> {{{paths}}} </SvgIcon>; {{className}} = pure({{className}}); {{className}}.muiName = 'SvgIcon'; export default {{className}};
src/renderers/shared/reconciler/__tests__/ReactCompositeComponentNestedState-test.js
dfosco/react
/** * 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. * * @emails react-co...
src/organisms/cards/SummaryCard/index.js
policygenius/athenaeum
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import LinkWrapper from 'atoms/LinkWrapper'; import Text from 'atoms/Text'; import Spacer from 'atoms/Spacer'; import Icon from 'atoms/Icon'; import Layout from 'atoms/Layout'; import Col from 'atoms/Layout/Col'; impor...
analysis/paladinholy/src/modules/checklist/Component.js
anom0ly/WoWAnalyzer
import { t, Trans } from '@lingui/macro'; import SPELLS from 'common/SPELLS'; import COVENANTS from 'game/shadowlands/COVENANTS'; import { SpellLink } from 'interface'; import { TooltipElement } from 'interface'; import Checklist from 'parser/shared/modules/features/Checklist'; import GenericCastEfficiencyRequirement f...
src/admin/client/routes/customers/groups/index.js
cezerin/cezerin
import React from 'react'; import GroupEdit from 'modules/customerGroups/edit'; import Groups from 'modules/customerGroups/list'; export default () => ( <div className="row row--no-gutter col-full-height"> <div className="col-xs-12 col-sm-4 col-md-3 col--no-gutter scroll col-full-height"> <Groups showAll={false}...
client/modules/Post/__tests__/components/PostListItem.spec.js
jessicarobins/det
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import PostListItem from '../../components/PostListItem/PostListItem'; import { mountWithIntl, shallowWithIntl } from '../../../../util/react-intl-test-helper'; const post = { name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: ...
frontend/src/Components/Form/PasswordInput.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React from 'react'; import TextInput from './TextInput'; import styles from './PasswordInput.css'; // Prevent a user from copying (or cutting) the password from the input function onCopy(e) { e.preventDefault(); e.nativeEvent.stopImmediatePropagation(); } function Passwo...
pathfinder/architecturestack/src/Report.js
leanix/leanix-custom-reports
import React, { Component } from 'react'; import CommonQueries from './common/CommonGraphQLQueries'; import DataIndex from './common/DataIndex'; import Utilities from './common/Utilities'; import SelectField from './SelectField'; import Checkbox from './Checkbox'; import Legend from './Legend'; import Matrix from './Ma...
app/javascript/mastodon/main.js
mosaxiv/mastodon
import * as registerPushNotifications from './actions/push_notifications'; import { default as Mastodon, store } from './containers/mastodon'; import React from 'react'; import ReactDOM from 'react-dom'; import ready from './ready'; const perf = require('./performance'); function main() { perf.start('main()'); i...
src/ui-components/Icon.js
nuagenetworks/visualization-framework
import React from 'react'; import PropTypes from 'prop-types'; const Icon = ({ name, size, avatar }) => { const style = avatar ? { borderRadius: 3, height: size, width: size } : { height: size }; return ( <img alt={name} src={`${process.env.PUBLIC_URL}/icons/${name}.png`} ...
node_modules/react-icons/md/filter-center-focus.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdFilterCenterFocus = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m20 15q2 0 3.5 1.5t1.5 3.5-1.5 3.5-3.5 1.5-3.5-1.5-1.5-3.5 1.5-3.5 3.5-1.5z m11.6 16.6v-6.6h3.4v6.6q0 1.4-1 2.4t-2.4 1h-6.6v-3.4h6.6z m0-26.6q1.4 0 2.4 1t1 ...
ajax/libs/mobx/2.5.0-rc1/mobx.umd.min.js
brix/cdnjs
/** MobX - (c) Michel Weststrate 2015, 2016 - MIT Licensed */ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:...
docs/src/app/components/pages/components/DatePicker/Page.js
ngbrown/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import datePickerReadmeText from './README'; import DatePickerExampleSimple from...
packages/material-ui-icons/src/ReceiptTwoTone.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="M5 19.09h14V4.91H5v14.18zM6 7h12v2H6V7zm0 4h12v2H6v-2zm0 4h12v2H6v-2z" opacity=".3" /><path d="M19.5 3.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1...
resources/Routes.js
AndrewTJohnston/andrewtjohnston.com
import React from 'react' import { Route, IndexRoute } from 'react-router' import App from './App' import Contact from './_pages/Contact' import Home from './_pages/Home' import Post0001 from './_content/content0001/Post0001' import Post0002 from './_content/content0002/Post0002' import Post0003 from './_content/conten...
res/js/build/jquery-1.4.2.js
Raconeisteron/posit-mobile.web
/*! * 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. ...
akvo/rsr/spa/app/main.js
akvo/akvo-rsr
/* global document */ import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { AppContainer } from 'react-hot-loader' import JavascriptTimeAgo from 'javascript-time-ago' import { notification, Icon } from 'antd' import en from 'javascript-time-ago/locale/en' import axio...
lib/index.js
StephanieEA/firebae
import React from 'react'; import { render } from 'react-dom'; import Application from './components/Application'; import firebase from './firebase'; require('./css/reset.scss') require('./css/style.scss'); render(<Application/>, document.getElementById('application'));
src/js/components/icons/base/Volume.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/components/story/PostImage.js
danpersa/remindmetolive-react
import React from 'react'; import OneImage from './OneImage'; import buildSrc from './buildSrc'; import PropTypes from 'prop-types'; const PostImage = (props) => { return ( <OneImage src={buildSrc(props.dirPath, "image", props.number, "1200")} /> ); }; PostImage.propTypes = { dirPath: PropTypes.string.isRe...
backend/static/admin/js/jquery.js
XXangelXX/egresados
/*! * jQuery JavaScript Library v1.11.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2014-12-17T15:27Z */ (function( global, factory ) { if ...
07-tree-shaking/resources/assets/js/app3.js
Imballinst/webpack-incremental-tutorial
import React from 'react'; import feelsBadMan from '../img/feelsbadman.png'; import jquery from 'jquery'; import moment from 'moment'; import '../scss/index.scss'; console.log('xp');
test/MonthPickerSpec.js
yyssc/ssc-grid
import React from 'react'; import ReactTestUtils from 'react-addons-test-utils'; import ReactDOM from 'react-dom'; import MonthPicker from '../src/MonthPicker'; describe('<MonthPicker>', () => { // helper function function getNode(instance) { return ReactDOM.findDOMNode(instance); } it('没有任何参数时候文本框应该为空...