path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch04/04_01/start/src/index.js
yevheniyc/C
import React from 'react' import { render } from 'react-dom' import { SkiDayList } from './components/SkiDayList' window.React = React render( // SkiDayList represents a table, wich days representing each row <SkiDayList days={ [ { resort: "Squaw Valley", date: new Date("1/2/2016"), powder: true, ...
src/sheetElems/textQuestion/presentation.js
lukaszmakuch/quiz
import React from 'react'; export default props => (<span className="question" data-question-type="textQuestion">{props.question.value}</span>);
src/routes/routes.js
byronsha/open_dota
import React from 'react' import { Router, Route, IndexRedirect, hashHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import { Provider } from 'react-redux' import store from '../store/store' import App from '../containers/App' import Matches from '../containers/Matches' import ...
src/components/projects/content/CokeJourney.js
tehfailsafe/portfolioReact
import React from 'react' import Section from '../show/Section' import ImageFull from '../show/ImageFull' import VideoPlayer from '../show/VideoPlayer' import CopySplitLeft from '../show/CopySplitLeft' import CopySplitRight from '../show/CopySplitRight' import Copy from '../show/Copy' const Audi = React.createClass({...
src/components/CountBar.js
byronsha/open_dota
import React from 'react' const CountBar = ({height, width, color, text}) => { const styles = { text: { paddingBottom: '8px' }, bar: { height: `${height}px`, width: `${width}%`, background: color } } return ( <div> <div style={styles.text}>{text}</div> <di...
src/components/score_card.js
adamakers/Scoreboard
import React from 'react'; import styles from './../styles/score_card.css'; const ScoreCard = ({team}) => { //create fn that will determine number of Time Outs team has and then draw it and then call it in render() return ( <div className="team"> <h2 className="team-name pb-2">{team.name}</h2> <...
src/components/SocialIcon.js
RcrsvSquid/rcrsvsquid.github.io
import React from 'react' import styled from 'styled-components' import { Center } from './mixins' const SocialIconStyle = styled.a` ${Center} width: 20%; padding: 10px 5px; height: 8vh; transition: all 200ms ease; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.14)) drop-shadow(0 1px 5px rgba(0, 0, 0, ...
ajax/libs/F2/1.4.0/f2.no-bootstrap.js
danut007ro/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...
ajax/libs/vkui/4.27.0/cssm/components/View/ViewInfinite.js
cdnjs/cdnjs
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties"; import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray"; import _objectSpread from "@babel/runtime/helpers/objectSpread2"; import _classCallCheck from "@babel/r...
src/Autosuggest.js
JacksonKearl/react-autosuggest-ie11-compatible
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import shallowEqualArrays from 'shallow-equal/arrays'; import Autowhatever from 'react-autowhatever'; import { defaultTheme, mapToAutowhateverTheme } from './theme'; const alwaysTrue = () => true; const defaultShouldRenderSuggestions = value...
client/ingest/csv-input.js
jaketrent/gratigoose
import React from 'react' import styleable from 'react-styleable' import css from './csv-input.css' const { func } = React.PropTypes class CsvInput extends React.Component { constructor(props) { super(props) this.handleChange = this.handleChange.bind(this) this.handleBtnClick = this.handleBtnClick.bind...
app/javascript/mastodon/features/account_timeline/components/header.js
hugogameiro/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import InnerHeader from '../../account/components/header'; import ActionBar from '../../account/components/action_bar'; import MissingIndicator from '../../../components/missing_indicator'; import ...
server/sonar-web/src/main/js/apps/settings/licenses/__tests__/LicensesApp-test.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
app/javascript/mastodon/features/compose/components/upload_button.js
nonoz/mastodon
import React from 'react'; import IconButton from '../../../components/icon_button'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 're...
src/svg-icons/maps/pin-drop.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsPinDrop = (props) => ( <SvgIcon {...props}> <path d="M18 8c0-3.31-2.69-6-6-6S6 4.69 6 8c0 4.5 6 11 6 11s6-6.5 6-11zm-8 0c0-1.1.9-2 2-2s2 .9 2 2-.89 2-2 2c-1.1 0-2-.9-2-2zM5 20v2h14v-2H5z"/> </SvgIcon> ); ...
src/renderer/Components/view.js
farnabaz/darling
import React from 'react'; class View extends React.Component { constructor(props) { super(props); this.state = {}; // register for model dispatch this.props.model.register( this.handleModelEvents.bind(this) ); } handleModelEvents(payload) { } componentDidMount() { this.pr...
extensions/amp-date-picker/0.1/test/test-amp-date-picker-bind.js
erwinmombay/amphtml
/** * Copyright 2019 The AMP HTML Authors. All Rights Reserved. * * 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 a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless require...
src/components/cards/card_back.js
camboio/yooneau
import React from 'react'; export default class CardBack extends React.Component{ render(){ return( <svg className="card-back-component" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 158.7 243.8"> <g id="Layer_3"> <path id="XMLID_2_" className="c0" d="M146.7 243.8H12c-6.6...
src/routes/Counter/components/Counter.js
Havoc-Todo/havoc-web
import React from 'react' export const Counter = (props) => ( <div style={{ margin: '0 auto' }} > <h2>Counter: {props.count}, Clicks: {props.clicks}</h2> <button className='btn btn-default' onClick={() => { props.increment() props.click() }}> Increment </button> {' '} <butto...
test/TableSpec.js
cgvarela/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Table from '../src/Table'; describe('Table', () => { it('Should be a table', () => { let instance = ReactTestUtils.renderIntoDocument( <Table /> ); assert.equal(React.findDOMNode(instance).nodeName, 'TABLE'); ...
app/src/components/Footer/Links/index.js
AlexandreBourdeaudhui/abourdeaudhui.fr
/* * Package Import */ import React from 'react'; import { Link } from 'react-router-dom'; /* * Local Import */ /* * Code */ const links = [ { label: 'Page de Contact', slug: '/contact', }, { label: 'Mentions légales', slug: '/mentions-legales', }, { label: 'Plan du site', sl...
examples/official-storybook/stories/addon-storyshots.stories.js
rhalff/storybook
import React from 'react'; import { storiesOf } from '@storybook/react'; storiesOf('Addons|Storyshots', module) .add('text', () => <div>This is a test</div>) .add('table', () => ( <table> <thead> <tr> <th>name</th> <th>type</th> <th>default</th> <th>descrip...
client/components/templates/LostSection/LostSection.js
djizco/boilerplate-react
import React from 'react'; import Section from 'react-bulma-companion/lib/Section'; import Title from 'react-bulma-companion/lib/Title'; export default function LostSection() { return ( <Section className="is-full-page"> <Title className="app-title" size="1"> 404 </Title> <p> T...
test/AlertSpec.js
Terminux/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import ReactDOM from 'react-dom'; import Alert from '../src/Alert'; describe('Alert', () => { it('Should output a alert with message', () => { let instance = ReactTestUtils.renderIntoDocument( <Alert> <strong>Message...
packages/material-ui-icons/src/LocalAirport.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z" /></g> , 'LocalAirport');
app/screens/social/profile1.js
andry-baka/dapur-ngebul-app
import React from 'react'; import { View, ScrollView, } from 'react-native'; import { RkText, RkButton, RkStyleSheet } from 'react-native-ui-kitten'; import {Avatar} from '../../components/avatar'; import {Gallery} from '../../components/gallery'; import {data} from '../../data/'; import formatNumber from '../....
js/components/footer/index.js
LetsBuildSomething/vmag_mobile
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Button, Icon, Text, Left, Body, Right, List, ListItem } from 'native-base'; import { Actions } from 'react-native-router-flux'; ...
react/Header/components/UserAccount/UserAccount.js
seekinternational/seek-asia-style-guide
import React, { Component } from 'react'; import { Button, Text } from 'seek-asia-style-guide/react'; import PropTypes from 'prop-types'; import { AUTHENTICATED, UNAUTHENTICATED, AUTH_PENDING } from '../../../private/authStatusTypes'; import styles from './UserAccount.less'; import UserAccountMenu from '../UserAccountM...
src/client/components/hoc/Order/withOrders.hoc.js
DBCDK/content-first
import React from 'react'; import {connect} from 'react-redux'; export const withOrders = WrappedComponent => { const Wrapper = class extends React.Component { render() { return <WrappedComponent {...this.props} />; } }; const mapStateToProps = state => { return { orders: state.orderRedu...
test/integration/scss-fixtures/npm-import-nested/pages/_app.js
azukaru/next.js
import React from 'react' import App from 'next/app' import '../styles/global.scss' class MyApp extends App { render() { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
src/components/volume-control/VolumeControl.js
video-react/video-react
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import VolumeBar from './VolumeBar'; const propTypes = { className: PropTypes.string }; export default function VolumeControl({ className, ...rest }) { return ( <div className={classNames( classN...
node_modules/vue/dist/vue.runtime.js
manuelblanch/inventory
/*! * Vue.js v2.3.3 * (c) 2014-2017 Evan You * Released under the MIT License. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global.Vue = factory()); }(this, (function ()...
ajax/libs/antd/1.3.1/antd.min.js
sufuf3/cdnjs
/*! * antd v1.3.1 * * Copyright 2015-present, Alipay, Inc. * All rights reserved. */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.antd=...
ajax/libs/vue/1.0.0-alpha.3/vue.js
perfect-pixell/cdnjs
/*! * Vue.js v1.0.0-alpha.3 * (c) 2015 Evan You * Released under the MIT License. */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define(factory); else ...
src/components/Header/Refresher/index.js
RayBenefield/halo-forge
import React from 'react'; import equip from './equip'; const Refresher = ({ refresh }) => ( <svg onClick={refresh} style={{ display: 'inline-block', color: 'rgb(255, 255, 255)', fill: 'currentcolor', height: '24px', width: '24px', ...
ajax/libs/react-relay/0.6.1/relay.js
nolsherry/cdnjs
/** * Relay v0.6.1 */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("React"), require("ReactDOM")); else if(typeof define === 'function' && define.amd) define(["React", "ReactDOM"], factory); else if(ty...
src/index.js
Xuefeng-Zhu/pumpup-lite
/** * Index - this is where everything * starts - but offloads to app.js * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ /* global __DEV__ */ import React from 'react' import { applyMiddleware, compose, createStore } from 'redux' import { connect, Provider } from 'react-re...
app/components/Dashboard/Advanced.js
acebusters/ab-web
import React from 'react'; import PropTypes from 'prop-types'; import Alert from 'components/Alert'; import Button from 'components/Button'; import H2 from 'components/H2'; import { Pane, Section, Text, ButtonGroup, TabIcon as ModeIcon, } from './styles'; // eslint-disable-next-line react/prefer-stateless-f...
ajax/libs/rxjs/2.3.3/rx.js
sparkgeo/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (undefined) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, 'undefined': false...
react-native-app/App.js
nnecec/laboratory
import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import App from './src/App' export default App
test/server.js
masotime/react-engine
/*-------------------------------------------------------------------------------------------------------------------*\ | Copyright (C) 2015 PayPal | | ...
src/__tests__/Menu-test.js
joshq00/react-mdl
/* eslint-env mocha */ import expect from 'expect'; import React from 'react'; import { render } from './render'; import Menu from '../Menu'; describe('Menu', () => { it('should render an ul list', () => { const output = render(<Menu target="none" />); expect(output.type).toBe('ul'); }); ...
imports/client/ui/pages/Template/SecondSection/index.js
focallocal/fl-maps
import React from 'react' import { Container, Row, Col } from 'reactstrap' import i18n from '/imports/both/i18n/en' import DCSLink from '/imports/client/ui/components/DCSLink/index.js' import './styles.scss' const { title, content } = i18n.Template.second_section const { first, second, third, fourth, fifth, ...
ajax/libs/rxjs-dom/3.0.1/rx.dom.js
magoni/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, 'undefined': false }; var ...
python/op/op_site/op_static/npm/node_modules/core-js/client/shim.js
cmos3511/cmos_linux
/** * core-js 2.5.7 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2018 Denis Pushkarev */ !function(__e, __g, undefined){ 'use strict'; /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The r...
clients/packages/admin-client/src/components/steps/steps-container.spec.js
nossas/bonde-client
/* eslint-disable no-unused-expressions */ import React from 'react' import { expect } from 'chai' import { shallow } from 'enzyme' import { StepsContainer, StepContent } from '../../components/steps' describe('components/steps/steps-container', () => { it('should render without crashed', () => { const containe...
public/js/vendor/jquery-1.10.2.min.js
vskrip/vsproj
/*! 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...
ui/js/dfv/src/fields/wysiwyg/index.js
pods-framework/pods
import React from 'react'; import ReactQuill from 'react-quill'; import PropTypes from 'prop-types'; import TinyMCE from './tinymce'; import { toBool } from 'dfv/src/helpers/booleans'; import { FIELD_COMPONENT_BASE_PROPS } from 'dfv/src/config/prop-types'; import 'react-quill/dist/quill.snow.css'; import './wysiwyg....
packages/react/components/fab-backdrop.js
iamxiaoma/Framework7
import React from 'react'; import Utils from '../utils/utils'; import __reactComponentSetProps from '../runtime-helpers/react-component-set-props.js'; class F7FabBackdrop extends React.Component { constructor(props, context) { super(props, context); } render() { const self = this; const props = self...
react-client/src/index.js
dhanushuUzumaki/Journal
/* global document */ import React from 'react'; import ReactDOM from 'react-dom'; import createHistory from 'history/createBrowserHistory'; import { ConnectedRouter } from 'react-router-redux'; import { Provider } from 'react-redux'; import configureStore from './store/'; import App from './components/App'; import './...
demo/src/containers/Popover.js
ilxanlar/cathode
import React from 'react'; import { Button, ButtonGroup, Popover } from '../../../src'; const tooltipContent = 'This is a popover!'; export default () => ( <div> <h2>Popover</h2> <ButtonGroup> <Popover trigger={true} placement="top" content={tooltipContent}> <Button size="xs"> true/...
src/SafeAnchor.js
justinanastos/react-bootstrap
import React from 'react'; import createChainedFunction from './utils/createChainedFunction'; /** * Note: This is intended as a stop-gap for accessibility concerns that the * Bootstrap CSS does not address as they have styled anchors and not buttons * in many cases. */ export default class SafeAnchor extends React...
packages/material-ui-icons/src/StreetviewSharp.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M12.56 14.33c-.34.27-.56.7-.56 1.17V21h7c1.1 0 2-.9 2-2v-5.98c-.94-.33-1.95-.52-3-.52-2.03 0-3.93.7-5.44 1.83z" /><circle cx="18" cy="6" r="5" /><path d="M11.5 6c0-1.08.27-2.1.74-3H5c-...
lib/ui/src/modules/ui/components/layout/usplit.js
jribeiro/storybook
import React from 'react'; import PropTypes from 'prop-types'; const gripSize = 1; const splitSize = 10; const wrapStyle = { vertical: shift => ({ width: splitSize, marginLeft: shift - splitSize / 2, marginRight: -shift - splitSize / 2, position: 'relative', }), horizontal: shift => ({ heigh...
ajax/libs/yui/3.11.0/datatable-body/datatable-body.js
saitheexplorer/cdnjs
YUI.add('datatable-body', function (Y, NAME) { /** View class responsible for rendering the `<tbody>` section of a table. Used as the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes. @module datatable @submodule datatable-body @since 3.5.0 **/ var Lang = Y.Lang, isArray = Lang.isA...
templates/shape5_vertex/vertex/admin/js/jquery.min.js
pepanek/familyboat
/*! jQuery v@1.8.1 jquery.com | jquery.org/license */ (function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==...
app/containers/App.js
Pabloader/socket.io-debugger
import React, {Component, PropTypes} from "react"; import Connector from "./Connector.js"; import TimeLine from "./TimeLine.js"; import TopBar from "./TopBar.js"; import {connect} from "react-redux"; class App extends Component { render() { return ( <div> <TopBar /> ...
app/javascript/mastodon/features/compose/components/upload_button.js
Kirishima21/mastodon
import React from 'react'; import IconButton from '../../../components/icon_button'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 're...
src/components/label/label.stories.js
teamleadercrm/teamleader-ui
import React from 'react'; import { IconInfoBadgedSmallFilled, IconMarkerSmallOutline } from '@teamleader/ui-icons'; import { Icon, Input, Label, TextSmall, Tooltip } from '../../index'; import { addStoryInGroup, LOW_LEVEL_BLOCKS } from '../../../.storybook/utils'; const TooltippedIcon = Tooltip(Icon); export default...
ajax/libs/react-modal/0.1.1/react-modal.min.js
the-destro/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.ReactModal=e()}}(function(){return function e(t,n,r){...
edwin/client/static/js/utils/ControllerComponent.js
mythmon/edwin
import React from 'react'; import Immutable from 'immutable'; /** * Base for components that need to use stores, and want autobinding. * @class */ export default class ControllerComponent extends React.Component { constructor(props) { super(props); this.state = {}; for (let name of this.autoBind) { ...
articleChrome/css/js/PIE_IE678.js
pf12345/article-save
/* PIE: CSS3 rendering for IE Version 2.0beta1 http://css3pie.com Dual-licensed for use under the Apache License Version 2.0 or the General Public License (GPL) Version 2. */ (function( win, doc ) { var PIE = win[ 'PIE' ] || ( win[ 'PIE' ] = {} ); /** * Simple utility for merging objects * @param...
src/Main/News/Articles/2018-01-31-1st-Anniversary/Timeline.js
hasseboulen/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import './Timeline.css'; const Timeline = ({ children }) => ( <div className="timeline year-recap"> {children} </div> ); Timeline.propTypes = { children: PropTypes.node.isRequired, }; export default Timeline;
ajax/libs/yui/3.8.0/simpleyui/simpleyui-debug.js
gereon/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 global namespace obj...
src/Parser/Shaman/Enhancement/Modules/Items/Tier21_4set.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import Enemies from 'Parser/Core/Modules/Enemies'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPerc...
src/routes/index.js
daxiangaikafei/QBGoods
import React from 'react' import { Route, IndexRoute, Router } from 'dva/router' import CoreLayout from '../containers/layout' import HotGoods from 'views/Hotgoods/page' import MyCustom from 'views/MyCustom/page' import Themes from 'views/MyCustom/Themes' import SelfSupport from 'views/SelfSupport/page' import GatherGo...
ajax/libs/react-dom/16.0.0-alpha.9/cjs/react-dom-server.development.js
sashberd/cdnjs
'use strict'; var invariant = require('fbjs/lib/invariant'); var warning = require('fbjs/lib/warning'); var ExecutionEnvironment = require('fbjs/lib/ExecutionEnvironment'); var _assign = require('object-assign'); var emptyFunction = require('fbjs/lib/emptyFunction'); var EventListener = require('fbjs/lib/EventListener...
ajax/libs/material-ui/4.9.3/esm/Avatar/Avatar.js
cdnjs/cdnjs
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import withStyles from '../styles/withStyles'; import Person from '../internal/svg...
packages/material-ui-icons/src/VerticalAlignCenterOutlined.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M8 19h3v4h2v-4h3l-4-4-4 4zm8-14h-3V1h-2v4H8l4 4 4-4zM4 11v2h16v-2H4z" /> , 'VerticalAlignCenterOutlined');
docs/src/app/components/pages/components/RaisedButton/ExampleIcon.js
owencm/material-ui
import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import {fullWhite} from 'material-ui/styles/colors'; import ActionAndroid from 'material-ui/svg-icons/action/android'; import FontIcon from 'material-ui/FontIcon'; const style = { margin: 12, }; const RaisedButtonExampleIcon = () => ( ...
actor-apps/app-web/src/app/components/SidebarSection.react.js
sfshine/actor-platform
import React from 'react'; //import { Styles, Tabs, Tab } from 'material-ui'; //import ActorTheme from 'constants/ActorTheme'; import HeaderSection from 'components/sidebar/HeaderSection.react'; import RecentSection from 'components/sidebar/RecentSection.react'; //import ContactsSection from 'components/sidebar/Conta...
react/features/video-quality/components/VideoQualitySlider.web.js
gpolitis/jitsi-meet
// @flow import { withStyles } from '@material-ui/core/styles'; import clsx from 'clsx'; import React, { Component } from 'react'; import type { Dispatch } from 'redux'; import { createToolbarEvent, sendAnalytics } from '../../analytics'; import { setAudioOnly } from '../../base/audio-only'; import { translate } from ...
packages/react-server-website/components/Header.js
szhou8813/react-server
import React from 'react'; import {Link, getCurrentRequestContext} from "react-server"; import SvgLogo from './assets/SvgLogo'; import SvgClose from './assets/SvgClose'; import SvgHambut from './assets/SvgHambut'; import './Header.less'; const links = [ { label: "Docs", path: "/docs", internal: true, }, { ...
app/components/NavBar/index.js
Rohitbels/KolheshwariIndustries
/** * * NavBar * */ import React from 'react'; import {Nav,Navbar,NavItem,NavDropdown,MenuItem} from 'react-bootstrap' import {Link } from 'react-router'; import {LinkContainer} from 'react-router-bootstrap'; class NavBar extends React.Component { // eslint-disable-line react/prefer-stateless-function render() { ...
ajax/libs/angular.js/0.9.7/angular-scenario.min.js
masahirotanaka/cdnjs
/*! * jQuery JavaScript Library v1.4.2 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
src/setupTests.js
fyruna/WoWAnalyzer
import React from 'react'; import Enzyme from 'enzyme'; import Adapter from 'enzyme-adapter-react-16'; import 'jest-enzyme'; // better matchers Enzyme.configure({ adapter: new Adapter(), }); if (process.env.CI) { // Hide all console output console.log = jest.fn(); console.warn = jest.fn(); console.error = j...
ajax/libs/forerunnerdb/1.3.726/fdb-core+views.min.js
humbletim/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...
plugins/system/web357framework/elements/assets/js/jquery-1.10.2.min.js
psychito/joom
/* ====================================================== # Web357 Framework - Joomla! System Plugin v1.4.5 # ------------------------------------------------------- # For Joomla! 3.0 # Author: Yiannis Christodoulou (yiannis@web357.eu) # Copyright (©) 2009-2017 Web357. All rights reserved. # License: GNU/GPLv3, http://...
docs/src/pages/premium-themes/onepirate/modules/components/Toolbar.js
Kagami/material-ui
import React from 'react'; import { withStyles } from '@material-ui/core/styles'; import MuiToolbar from '@material-ui/core/Toolbar'; export const styles = theme => ({ root: { height: 64, [theme.breakpoints.up('sm')]: { height: 70, }, }, }); function Toolbar(props) { return <MuiToolbar {...pro...
admin/client/App/shared/Popout/PopoutFooter.js
benkroeger/keystone
/** * Render a footer for a popout */ import React from 'react'; const BUTTON_BASE_CLASSNAME = 'Popout__footer__button Popout__footer__button--'; const PopoutFooter = React.createClass({ displayName: 'PopoutFooter', propTypes: { children: React.PropTypes.node, primaryButtonAction: React.PropTypes.func, pri...
components/Favorite.js
flyerq/movie-list
import React from 'react'; import PropTypes from 'prop-types'; import { View, Text, StyleSheet, TouchableWithoutFeedback } from 'react-native'; // import Expo from 'expo'; import { Ionicons } from '@expo/vector-icons'; import PersistentData from '../data/PersistentData'; import Toast from './Toast'; export def...
src/main/resources/ui/components/JobSummaryView.js
lionelnicolas/chronos
import React from 'react' import {observer} from 'mobx-react' import $ from 'jquery' import 'bootstrap' import {JsonStore} from '../stores/JsonStore' import JsonEditor from './JsonEditor' $(document).ready(function(){ $('[data-toggle="tooltip"]').tooltip() }) @observer class JobSummaryView extends React.Component {...
modules/__tests__/RouterContext-test.js
aaron-goshine/react-router
import expect from 'expect' import React from 'react' import { render, unmountComponentAtNode } from 'react-dom' import match from '../match' import { routerShape } from '../PropTypes' import RouterContext from '../RouterContext' import { createRouterObject } from '../RouterUtils' describe('RouterContext', () => { ...
201 - Responsive Web Design/project/js/headsupgrid/jquery-1.6.2.min.js
SpaceLab1/webdesign
/*! * jQuery JavaScript Library v1.6.2 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
src/RaisedButton/RaisedButton.js
spiermar/material-ui
import React, {Component, PropTypes} from 'react'; import transitions from '../styles/transitions'; import {fade} from '../utils/colorManipulator'; import {createChildFragment} from '../utils/childUtils'; import EnhancedButton from '../internal/EnhancedButton'; import Paper from '../Paper'; function validateLabel(prop...
test/SplitButtonSpec.js
JimiHFord/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import SplitButton from '../src/SplitButton'; import MenuItem from '../src/MenuItem'; import Button from '../src/Button'; describe('SplitButton', function() { const simple = ( <SplitButton title='Title' id='test-id'> <MenuIte...
app/scripts/components/TabMenu/TabMenu.spec.js
igr-santos/hub-client
import React from 'react' import { mount } from 'enzyme' import { expect } from 'chai' import TabMenu from './TabMenu' describe('TabMenu', () => { let wrapper let props = { title: 'Foo Bar Title!', } before(() => { wrapper = mount( <TabMenu {...props}> <div id="foo">Foo div children</d...
src/frontend/containers/auth/user.js
PiGarageDoor/garage-pi
import React from 'react'; import { connect } from 'react-redux'; import { browserHistory } from 'react-router'; import { getAuthPropType } from 'proptypes'; export function requireUserAuth(Component) { class Authenticated extends React.Component { constructor(props) { super(props); this.checkAuth =...
triton/src/index.js
Penson122/Third-Year-Project
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; import './index.css'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
modules/__tests__/transitionHooks-test.js
skevy/react-router
/*eslint-env mocha */ /*eslint react/prop-types: 0*/ import expect, { spyOn } from 'expect' import React from 'react' import createHistory from 'history/lib/createMemoryHistory' import execSteps from './execSteps' import Router from '../Router' describe('When a router enters a branch', function () { let node, Dashb...
website/next.config.js
ricardclau/packer
const withHashicorp = require('@hashicorp/nextjs-scripts') const path = require('path') const redirects = require('./redirects.next') module.exports = withHashicorp({ defaultLayout: true, transpileModules: ['is-absolute-url', '@hashicorp/react-.*'], mdx: { resolveIncludes: path.join(__dirname, 'pages/partials') ...
app/javascript/mastodon/features/ui/components/follow_requests_nav_link.js
abcang/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { fetchFollowRequests } from 'mastodon/actions/accounts'; import { connect } from 'react-redux'; import { NavLink, withRouter } from 'react-router-dom'; import IconWithBadge from 'mastodon/components/icon_with_badge'; import { List as ImmutableList }...
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/actual.js
TarikHuber/react-redux-material-starter-kit
import React from 'react'; const First = React.createNotClass({ displayName: 'First' }); class Second extends React.NotComponent {}
Examples/UIExplorer/UIExplorerIntegrationTests/js/SimpleSnapshotTest.js
tsdl2013/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ 'use strict...
ajax/libs/babel-polyfill/6.1.17/polyfill.js
keicheng/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...
App.js
thuyiya/movie-app
import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; export default class App extends React.Component { render() { return ( <View style={styles.container}> <Text>Open up App.js to start working on your app!</Text> </View> ); } } const styles = StyleSheet.cr...
examples/src/components/WithPlaylist.js
kenfehling/react-designable-audio-player
import React from 'react'; import {connectAudioPlayer, TitleMarquee, TimeSlider, Playlist} from 'react-designable-audio-player'; import './WithPlaylist.css'; import tracks from '../tracks'; const AudioPlayer = ({play, stop, next, prev, goto, gotoAndPlay, isPlaying, timeElapsed, currentTrack:{number}}) => ( <div cl...
ajax/libs/yui/3.7.0/datatable-body/datatable-body-coverage.js
matteofigus/cdnjs
if (typeof _yuitest_coverage == "undefined"){ _yuitest_coverage = {}; _yuitest_coverline = function(src, line){ var coverage = _yuitest_coverage[src]; if (!coverage.lines[line]){ coverage.calledLines++; } coverage.lines[line]++; }; _yuitest_coverfunc = functio...
contrib/views/storm/src/main/resources/scripts/utils/Utils.js
alexryndin/ambari
/** Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use...
src/components/ColumnDefinition.js
GriddleGriddle/Griddle
import React, { Component } from 'react'; import PropTypes from 'prop-types'; export default class ColumnDefinition extends Component { static propTypes = { //The name of the column that this definition applies to. id: PropTypes.string.isRequired, //The order that this column appears in. If not specifie...