path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
ajax/libs/es6-shim/0.33.7/es6-shim.js
jonathantneal/cdnjs
/*! * https://github.com/paulmillr/es6-shim * @license es6-shim Copyright 2013-2015 by Paul Miller (http://paulmillr.com) * and contributors, MIT License * es6-shim: v0.33.7 * see https://github.com/paulmillr/es6-shim/blob/0.33.7/LICENSE * Details and documentation: * https://github.com/paulmillr/es6-...
src/views/Blocks/Link.js
abachman/my-new-tab
import React from 'react' import PropTypes from 'prop-types' import ReactDOM from 'react-dom' import { setImageOnCanvas } from '../../lib/images' import { GridBlockWrapper } from './Base' class LinkImage extends React.Component { componentDidUpdate() { this.renderImage() } renderImage() { const canvas...
src/scenes/ProductList/index.web.js
Manuelandro/Universal-Commerce
import React from 'react' import { withRouter } from 'react-router' import { graphql, compose } from 'react-apollo' import { ProductlistQuery } from '../../../server/graphql/queries/product' import ProductList from './component.web' import { ScrollView } from '../../components/web/' const ProductListWithData = (props...
test/client/component/signup.spec.js
andela-opikuda/documentManagementSystem
import expect from 'expect'; import React from 'react'; import { shallow, mount } from 'enzyme'; import signUpPage from '../../../client/src/components/authPages/signUpPage.jsx'; import renderer from 'react-test-renderer' import sinon from 'sinon'; function setup() { const props = { errors: {}, userProps: {}...
JavaScript/React/Pro React/First App/src/components/Search/index.js
batazor/MyExampleAndExperiments
import React, { Component } from 'react'; import { render } from 'react-dom'; class Search extends Component { constructor() { super(); this.state = { searchTerm: "React" }; } handleChange(event) { this.setState({ searchTerm: event.target.value }); } render() { return ( <div...
packages/material-ui-icons/src/VideocamOffRounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M21 14.2V8.91c0-.89-1.08-1.34-1.71-.71L17 10.5V7c0-.55-.45-1-1-1h-5.61l8.91 8.91c.62.63 1.7.18 1.7-.71zM2.71 2.56c-.39.39-.39 1.02 0 1.41L4.73 6H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12...
ajax/libs/yasr/2.4.3/yasr.bundled.min.js
luanlmd/cdnjs
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){...
docs/src/modules/components/PageTitle.js
Kagami/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { pageToTitle } from 'docs/src/modules/utils/helpers'; import PageContext from 'docs/src/modules/components/PageContext'; // TODO: it really wants to be named useTitle but we're not quite there yet. function PageTitle(props) { return ( <PageCo...
Samples/Excel.JsonToOfficeTable/Excel.JsonToOfficeTableWeb/Scripts/jquery-1.9.1.min.js
chrisobriensp/PnP
/* NUGET: BEGIN LICENSE TEXT jQuery v1.9.1 Microsoft grants you the right to use these script files for the sole purpose of either: (i) interacting through your browser with the Microsoft website, subject to the website's terms of use; or (ii) using the files as included with a Microsoft product subject to that produc...
src/star/ui/offerbutton/OfferButton.js
flysonic10/initial-celestial-offering
import React from 'react' class OfferButton extends React.Component { render() { let starIndex = this.props.starIndex; let offerAmount = this.props.offerAmount; return( <button onClick={(event) => this.props.onEnterOffer(event, starIndex, offerAmount)}>Enter Offer</button> ) } } export defa...
packages/web/src/components/screens/accounts/AccountHeader.js
hwaterke/inab
import PropTypes from 'prop-types' import React from 'react' import styled from 'styled-components' import {media, paddingVertical} from '../../../styles/styleUtils' import {Amount} from '../../Amount' import {HeaderContainer} from '../../presentational/atoms/HeaderContainer' const Header = styled.div` ${paddingVert...
ajax/libs/yui/3.17.2/event-custom-base/event-custom-base.js
iros/cdnjs
/* YUI 3.17.2 (build 9c3c78e) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('event-custom-base', function (Y, NAME) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.En...
src/components/directs/single/head-info/EditIconLink.js
VGraupera/1on1tracker
import React from 'react'; import { Link } from 'react-router'; import IconButton from 'material-ui/IconButton'; import EditIcon from 'material-ui/svg-icons/editor/mode-edit'; import PropTypes from 'prop-types'; import HideOnArchivedHOC from '../../../../HOCs/archive/HideOnArchivedHOC'; const propTypes = { id: Prop...
client/src/components/ProportionConstraintField/tests/ProportionConstraintField-test.js
open-sausages/silverstripe-asset-admin
/* global jest, jasmine, describe, it, expect, beforeEach */ import React from 'react'; import ReactTestUtils from 'react-dom/test-utils'; import { Component as ProportionConstraintField } from '../ProportionConstraintField'; // eslint-disable-next-line react/prop-types const FieldGroup = ({ children }) => <div>{chil...
src/svg-icons/maps/local-see.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalSee = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5...
jquery-mockup/dist/bundle.js
jewpaltz/2017fall
!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};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.__esModule?function(){return ...
src/pages/admin/hardware/index.js
sqdron/sqdron.UI
import React from 'react' export const Hardware = () => ( <div > <h1>Hardware</h1> </div> ) export default Hardware
admin/Menu.js
romainquellec/cuistot
import React from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import compose from 'recompose/compose'; import MenuItem from 'material-ui/MenuItem'; import SettingsIcon from 'material-ui/svg-icons/action/settings'; import LabelIcon from 'material-ui/svg-icons/action/label'; impor...
fixtures/unstable-async/suspense/src/components/Spinner.js
jameszhan/react
import React from 'react'; import './Spinner.css'; const SPINNER_SIZES = { small: 30, medium: 50, large: 70, }; const STROKE_WIDTHS = { small: 4, medium: 5, large: 6, }; const PATH_CLASS_NAMES = { small: 'SmallSpinnerPath', medium: 'MediumSpinnerPath', large: 'LargeSpinnerPath', }; // Heavily insp...
packages/material-ui-icons/src/SignalWifi0BarOutlined.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z" /> , 'SignalWifi0BarOutlined');
examples/src/App.js
krasimir/hocbox
import React, { Component } from 'react'; import AddingNewToDo from './components/AddingNewToDo'; import ListTodos from './components/ListTodos'; import Footer from './components/Footer'; class App extends Component { render() { return ( <div className='main'> <AddingNewToDo /> <ListTodos /...
examples/files/core_components/text.js
dabbott/react-native-express
import React from 'react' import { StyleSheet, Text, View } from 'react-native' export default function App() { return ( <View style={styles.container}> <Text style={styles.text}>Hello!</Text> </View> ) } const styles = StyleSheet.create({ container: { flex: 1, justifyContent: 'center', ...
src/components/Posts/Posts.js
oct16/Blog-FE
import React from 'react'; import PropTypes from 'prop-types'; import { timeFormat } from 'common' import s from './Posts.css'; import Link from 'components/Link'; class Posts extends React.Component { static propTypes = { posts: PropTypes.arrayOf(PropTypes.shape( { title: PropTypes.string.isRequ...
Gframwork/public/ManagerBeta/ext/packages/ext-charts/src/chart/Chart.js
atglab/gframework
/** * Charts provide a flexible way to achieve a wide range of data visualization capablitities. * Each Chart gets its data directly from a {@link Ext.data.Store Store}, and automatically * updates its display whenever data in the Store changes. In addition, the look and feel * of a Chart can be customized using {@...
packages/material-ui-icons/src/OfflinePinTwoTone.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M12 4c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8zm5 13H7v-2h10v2zm-6.7-3L7 10.7l1.4-1.4 1.9 1.9 5.3-5.3L17 7.3 10.3 14z" opacity=".3" /><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 ...
src/index.js
lnrd256/twitter_client
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import promise from 'redux-promise' import App from './components/app'; import reducers from './reducers'; import {Router,browserHistory} from 'react-router'; import...
src/giraffe-ui/petition/details.js
MoveOnOrg/mop-frontend
import React from 'react' import { Link } from 'react-router' import PropTypes from 'prop-types' import CaretRightSvg from '../svgs/caret-right.svg' export const Details = ({ children }) => ( <div className='petition-details col-10 col-lg-12 my-5'> <div className='petition-details__content'>{children}</div> <...
ajax/libs/forerunnerdb/1.3.477/fdb-core.js
sajochiu/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/dashboard/connected_update_server_list.js
yock/forte-gui
import React from 'react'; import { connect } from 'react-redux'; import UpdateServerList from './update_server_list'; const mapStateToProps = (state) => { return { servers: state.servers } } export default const ConnectedUpdateServerList = connect( mapStateToProps )(UpdateServerList);
src/website/app/demos/Table/Table/bestPractices.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Table from '../../../../../library/Table'; import type { BestPractices } from '../../../pages/ComponentDoc/types'; const bestPractices: BestPractices = [ { type: 'do', description: `If one or more columns in your table are sortable, make sure one of those column...
client/views/setupWizard/steps/RegisterServerStep.stories.js
VoiSmart/Rocket.Chat
import React from 'react'; import RegisterServerStep from './RegisterServerStep'; export default { title: 'components/setupWizard/steps/RegisterServerStep', component: RegisterServerStep, }; export const _default = () => ( <RegisterServerStep step={[1, 2, 3, 4, 'final'][3]} title={'Register Server'} active={true}...
components/online.js
gembarrett/hamara-internet-app
import React from 'react'; import { StyleSheet, ImageBackground, TouchableOpacity, Text, View, Button, ScrollView, Image } from 'react-native'; import MenuText from './sub/menuText.js'; import {lvl1Nav} from '../routes/lvl1.js'; import { online } from '../routes/lvl2.js'; import { prefs } from '../routes/prefs.js'; imp...
src/routes/MyResource/components/AddConfig/AddConfig.js
TheModevShop/craft-app
import React from 'react'; import _ from 'lodash'; import formIsComplete from 'utility/formIsComplete'; import AddConfigForm from 'components/Forms/AddConfigForm'; import './add-config.less'; class AddConfig extends React.Component { constructor(...args) { super(...args); this.state = { form: new AddCo...
lib/cli/test/fixtures/already_has_storybook/src/index.js
rhalff/storybook
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
packages/slate-html-serializer/test/serialize/block-with-is-void.js
AlbertHilb/slate
/** @jsx h */ import React from 'react' import h from '../helpers/h' export const rules = [ { serialize(obj, children) { if (obj.kind == 'block' && obj.type == 'image') { return React.createElement('img') } } } ] export const input = ( <state> <document> <image /> </d...
fields/types/date/DateColumn.js
everisARQ/keystone
import React from 'react'; import moment from 'moment'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var DateColumn = React.createClass({ displayName: 'DateColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.obj...
web/src/js/__tests__/components/Header/FilterDocsSpec.js
zlorb/mitmproxy
import React from 'react' import renderer from 'react-test-renderer' import FilterDocs from '../../../components/Header/FilterDocs' describe('FilterDocs Component', () => { let mockResponse = { json: () => { return { commands: [['cmd1', 'foo'], ['cmd2', 'bar']]}} }, promise = Promise.re...
ajax/libs/styled-components/3.4.0/styled-components.esm.min.js
extend1994/cdnjs
import hyphenate from"fbjs/lib/hyphenateStyleName";import Stylis from"stylis";import _insertRulePlugin from"stylis-rule-sheet";import React,{cloneElement,Component,createElement}from"react";import PropTypes from"prop-types";import stream from"stream";import hoistStatics from"hoist-non-react-statics";import{isValidEleme...
src/examples/redux/Step1.js
newbreedofgeek/react-stepzilla
'use strict'; import React, { Component } from 'react'; export default class Step1 extends Component { constructor(props) { super(props); } // not required as this component has no forms or user entry isValidated() { console.log('isValidated works as well...'); } render() { return ( <d...
web-app/js/jQuery/jquery-1.8.3.min.js
UMich-Neptune-Transmart/transmartApp
/*! jQuery v1.8.3 jquery.com | jquery.org/license */ (function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===...
client/components/common/FormRenderWrappers.spec.js
karuppiah7890/Mail-for-Good
import React from 'react'; import { shallow } from 'enzyme'; import { expect } from 'chai'; import { renderSettingsDropdownList, renderDropdownList, renderCombobox, renderSettingsField, renderField, renderEditorTypeRadio, renderTextEditor } from './FormRenderWrappers'; describe('(Component) renderSettin...
app/src/components/Users/index.js
jeremyhon/sia-challenge
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Route, Switch, Link, withRouter } from 'react-router-dom'; import { fetchUsers } from './actions'; import List from './views/list'; import Form from './views/form'; import Detail from './views/detail'; class Users extends Compon...
deps/v8/test/mjsunit/es6/symbols.js
hellotomfan/v8-coroutine
// Copyright 2013 the V8 project authors. All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of ...
docs/app/Examples/views/Comment/Variations/CommentExampleThreaded.js
ben174/Semantic-UI-React
import React from 'react' import { Button, Comment, Form, Header } from 'semantic-ui-react' const CommentExampleThreaded = () => ( <Comment.Group threaded> <Header as='h3' dividing>Comments</Header> <Comment> <Comment.Avatar as='a' src='http://semantic-ui.com/images/avatar/small/matt.jpg' /> <Co...
common/routes/Discussion/components/CommentBox.js
Notist/front-end
import React, { PropTypes, Component } from 'react'; import { connect } from 'react-redux'; import marked from 'marked'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import RaisedButton from 'material-ui/RaisedButton'; import { Card, CardActions, CardText } from 'material-ui/Card'; import { yello...
node_modules/babel-core/node_modules/babel-runtime/node_modules/core-js/client/shim.js
diztinct-tim/PTS
/** * core-js 1.2.6 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 Denis Pushkarev */ !function(__e, __g, undefined){ 'use strict'; /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require f...
src/components/settlement/Shade.js
HuZai/react_settlement
/** * Created by zhengHu on 16-10-8. * 单条信息展示组件 */ import React from 'react'; class SettlementTextList extends React.Component { constructor(props) { super(props); this.state = {classNames: 'mixin-pops selected'}; } handleMove(evnet) { console.log(evnet); event.stopPropagation(); event.pr...
node_modules/react-icons/go/beer.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const GoBeer = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m35 10h-7.5v-5c0-2.8-6.2-5-13.7-5s-13.8 2.2-13.8 5v30c0 2.8 6.2 5 13.8 5s13.7-2.2 13.7-5v-5h7.5s2.5-1.2 2.5-2.5v-15s-1.1-2.5-2.5-2.5z m-27.5 22.5h-2.5v-20h2.5v20z m7.5 2...
scripts/apps/contacts/directives/ContactEditorDirective.js
jerome-poisson/superdesk-client-core
/* eslint-disable react/no-render-return-value */ import React from 'react'; import ReactDOM from 'react-dom'; import {replaceUrls} from '../../contacts/helpers'; import {ContactFormContainer as ContactFormContainerComponent} from '../../contacts/components/Form'; ContactEditorDirective.$inject = [ 'contacts', ...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Apis.js
dewmini/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/li...
docs/src/app/components/pages/components/DatePicker/Page.js
w01fgang/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...
js/src/DappRequests/dappRequests.js
destenson/ethcore--parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any lat...
src/svg-icons/action/lightbulb-outline.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLightbulbOutline = (props) => ( <SvgIcon {...props}> <path d="M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1...
app/assets/javascripts/jquery.min.js
akratech/Akraconference
/*! jQuery v1.11.2 | (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...
app/javascript/mastodon/features/compose/components/text_icon_button.js
foozmeat/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class TextIconButton extends React.PureComponent { static propTypes = { label: PropTypes.string.isRequired, title: PropTypes.string, active: PropTypes.bool, onClick: PropTypes.func.isRequired, ariaControls: PropTypes.s...
ajax/libs/6to5/1.14.0/browser.js
kirbyfan64/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...
src/components/app.js
jersear8278/TaxiLocation
import React, { Component } from 'react'; import SelectBar from './select_bar'; import GoogleMap from './google_map'; import Directions from './directions'; export default class App extends Component { constructor(props){ super(props) } render() { return ( <div> <SelectBar /> <...
imports/ui/components/generic/index.js
ctagroup/home-app
import React from 'react'; import { formatDate, formatDateTime } from '/imports/both/helpers'; import { ClientName } from './ClientName'; import { Link } from './Link'; import { ErrorLabel } from './ErrorLabel'; export { ClientName, Link, ErrorLabel }; export const Date = ({ date }) => <span>{formatDate(date)}</span...
src/renderer/pages/player.js
venobo/app
import React from 'react' import classNames from 'classnames' import debounce from 'debounce' import {dispatch} from '../lib/dispatcher' export default class PlayerPage extends React.Component { initialState = { uiShown: true, isTest: false, isDragging: false, scrubbingLabel: null, showAudioMen...
actor-apps/app-web/src/app/components/modals/AppCacheUpdate.react.js
fengchenlianlian/actor-platform
import React from 'react'; import Modal from 'react-modal'; //import pureRender from 'pure-render-decorator'; import { Styles, FlatButton } from 'material-ui'; import AppCacheStore from 'stores/AppCacheStore'; import AppCacheActionCreators from 'actions/AppCacheActionCreators'; import { KeyCodes } from 'constants/Act...
src/ReactBoilerplate/Scripts/components/TwoFactor/TwoFactor.js
pauldotknopf/react-dot-net
import React, { Component } from 'react'; import { connect } from 'react-redux'; import SendCodeForm from './SendCodeForm'; import VerifyCodeForm from './VerifyCodeForm'; import { resetLoginState } from 'redux/modules/account'; class TwoFactor extends Component { componentWillUnmount() { this.props.resetLoginSta...
packages/material-ui-icons/src/PauseCircleFilled.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 14H9V8h2v8zm4 0h-2V8h2v8z" /> , 'PauseCircleFilled');
docs/src/app/components/pages/components/FontIcon/ExampleIcons.js
pradel/material-ui
import React from 'react'; import FontIcon from 'material-ui/FontIcon'; import {red500, yellow500, blue500} from 'material-ui/styles/colors'; const iconStyles = { marginRight: 24, }; const FontIconExampleIcons = () => ( <div> <FontIcon className="material-icons" style={iconStyles}>home</FontIcon> <FontIco...
react/features/base/react/components/native/BaseIndicator.js
gpolitis/jitsi-meet
// @flow import React, { Component } from 'react'; import { View } from 'react-native'; import { Icon } from '../../../icons'; import { type StyleType } from '../../../styles'; import styles from './indicatorstyles'; import { BASE_INDICATOR } from './styles'; type Props = { /** * Overwritten background co...
node_modules/es6-module-loader/node_modules/babel-core/node_modules/core-js/index.js
ksomville/Angular2-Hearthstone
/** * Core.js 0.6.1 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 Denis Pushkarev */ !function(global, framework, undefined){ 'use strict'; /****************************************************************************** * Module : common ...
ajax/libs/forerunnerdb/1.3.848/fdb-core+views.min.js
rlugojr/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...
packages/material-ui-icons/src/ViewHeadlineOutlined.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z" /></g></React.Fragment> , 'ViewHeadlineOutlined');
app/javascript/mastodon/features/ui/components/__tests__/column-test.js
mosaxiv/mastodon
import React from 'react'; import { mount } from 'enzyme'; import Column from '../column'; import ColumnHeader from '../column_header'; describe('<Column />', () => { describe('<ColumnHeader /> click handler', () => { const originalRaf = global.requestAnimationFrame; beforeEach(() => { global.requestA...
ajax/libs/angular-google-maps/2.0.10/angular-google-maps.js
baig/cdnjs
/*! angular-google-maps 2.0.10 2014-11-25 * AngularJS directives for Google Maps * git: https://github.com/angular-ui/angular-google-maps.git */ /* ! The MIT License Copyright (c) 2010-2013 Google, Inc. http://angularjs.org Permission is hereby granted, free of charge, to any person obtaining a copy of this sof...
ajax/libs/yui/3.9.0pr2/simpleyui/simpleyui.js
cnbin/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...
compare/src/index.js
garris/BackstopJS
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import store from './store.js'; import App from './components/App'; ReactDOM.render( <Provider store={store}> <App /> </Provider>, document.getElementById('root') );
src/containers/NotFoundPage.js
kmcarter/karaoke-song-lister
import React from 'react'; import { Link } from 'react-router-dom'; const NotFoundPage = () => { return ( <div className="row"> <div className="col-12"> <h1>404 Page Not Found</h1> <Link to="/"> Go back to homepage </Link> </div> </div> ); }; export default NotFoundPage;
ajax/libs/alt/0.17.3/alt-with-addons.js
KOLANICH/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react/addons")); else if(typeof define === 'function' && define.amd) define(["react", "react/addons"], factory); else if(typeof exports ===...
ajax/libs/yasqe/2.1.0/yasqe.bundled.min.js
blairvanderhoof/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASQE=e()}}(function(){var e;return function t(e,r,i)...
Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js
christopherdro/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/scenes/home/squads/squadsTable/squadsTable.js
alexspence/operationcode_frontend
import React, { Component } from 'react'; import { SQUAD_COLUMNS } from 'shared/constants/table'; import { getSquads } from 'shared/utils/apiHelper'; import IndexTable from 'shared/components/indexTable/indexTable'; import SquadsModal from './squadsModal'; export default class SquadsTable extends Component { state ...
app/main.js
RamonGebben/drone-fight-scoreboard
import React from 'react'; import {render} from 'react-dom'; import ScoreBoard from './components/ScoreBoard.js'; import './stylesheets/main.css'; function renderShell() { const shell = document.createElement('div'); shell.id = 'app'; document.body.appendChild(shell); render(<ScoreBoard />, document.querySel...
src/components/theme-legacy/petition-flag.js
MoveOnOrg/mop-frontend
import React from 'react' import { Link } from 'react-router' import PropTypes from 'prop-types' export const PetitionFlag = ({ petition, reasonsArray, isOpen, setOpen, setClosed, flagged, submitFlag }) => { const reasons = reasonsArray.map(([reason, description]) => ( <span key={reason}> <bu...
packages/react-esc/src/server.js
TriPSs/react-esc
import React from 'react' import { renderToString } from 'react-dom/server' import Helmet from 'react-helmet' import { Provider } from 'react-redux' import { StaticRouter } from 'react-router-dom' import { Resolver } from 'react-esc-resolver' import debug from 'debug' import hasOwnProperty from 'has-own-property' impor...
packages/material-ui-icons/src/LibraryBooksSharp.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M4 6H2v16h16v-2H4V6zm18-4H6v16h16V2zm-3 9H9V9h10v2zm-4 4H9v-2h6v2zm4-8H9V5h10v2z" /> , 'LibraryBooksSharp');
src/routes/UIElement/layer/index.js
mapengze/Antd-Backstage
import React from 'react' import { layer } from '../../../components' import { Table, Row, Col, Button, Card } from 'antd' let Enum = { default: 1, } const IcoPage = () => { const handleButtonClick = (key) => { if (key === Enum.default) { layer.open({ title: '默认弹层', content: <div style={...
js/jquery.js
hyunseolim/startbootstrap-stylish-portfolio
/*! jQuery v1.11.1 | (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...
modules/App.js
jdeskins/k8s-custom-dashboard
import React from 'react' import NavLink from './NavLink' import { Link } from 'react-router' export default React.createClass({ getInitialState: function() { return { username: '' } }, render() { return ( <div> <header className="main-header"> <nav className="navbar...
server/src/server.js
opensessions/opensessions
import React from 'react'; import { renderToString, renderToStaticMarkup } from 'react-dom/server'; import { match, RouterContext, browserHistory } from 'react-router'; import { Provider } from 'react-redux'; import configureStore from '../../app/store'; import App from '../../app/containers/App'; import AppServer fro...
app/App.js
mkamranhamid/react-Firebase-Playlist
import React, { Component } from 'react'; import { Router, Route, Link, IndexRoute, hashHistory, browserHistory } from 'react-router'; import {Signup} from './components/Signup.js'; import {Home} from './components/Home.js'; import {Signin} from './components/Signin.js'; import {EditUser} from './components/EditUser.js...
src/containers/app/index.js
furkanpur/create-react-redux-app
import React, { Component } from 'react'; import { Link, Route } from 'react-router-dom'; import Home from '../home'; import Github from '../github'; class App extends Component { render() { return ( <div> <div> <header> <Link to="/">H...
packages/material-ui-icons/src/HdSharp.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="M21 3H3v18h18V3zM11 15H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-4V9zm1.5 4.5h2v-3h-2v3z" /></React.Fragment> ,...
src/app/utils/SlateEditor/Align.js
steemit/steemit.com
import React from 'react'; export default class Align extends React.Component { getAlignClass = () => { const { node } = this.props; switch (node.data.get('align')) { case 'text-right': return 'text-right'; case 'text-left': return 'text-left'...
src/components/TodoItem/__tests__/index.js
henriquesosa/electron-intro
jest.unmock('./') import React from 'react' import ReactDOM from 'react-dom' import TestUtils from 'react-addons-test-utils' import TodoItem from './' describe('TodoItem Component', () => { it('shows a title', () => { // const TodoItem = TestUtils.renderIntoDocument( // <TodoItem /> // ) // const TodoItem...
src/components/Box.js
nitrog7/nl-fluid
import React from 'react'; import Component from './Component'; export default class Box extends Component { static propTypes() { return { direction: React.PropTypes.string, children: React.PropTypes.string, grow: React.PropTypes.number, halign: React.PropTypes.string, order: React....
tests/Rules-isUrl-spec.js
bitgaming/formsy-react
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import Formsy from './..'; import { InputFactory } from './utils/TestInput'; const TestInput = InputFactory({ render() { return <input value={this.getValue()} readOnly/>; } }); const TestForm = React.createClass({ render() { re...
packages/material-ui-icons/src/PersonAddSharp.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z...
mine-data/src/common/withTracking.js
BerlingskeMedia/nyhedsbreveprofil
import React, { Component } from 'react'; import { pageview } from 'react-ga'; export const withTracking = WrapperComponent => { if (window.location.host.includes('profil.berlingskemedia.dk')) { return class WithTracking extends Component { componentDidMount() { pageview(window.location.pathname + ...
site/src/components/DemoBox.js
dmsnell/elemental
import React from 'react'; import classnames from 'classnames'; import E from '../../../src/constants'; const ALIGN_TRANSFORM = { 'center': 'center', 'left': 'flex-start', 'right': 'flex-end', }; var DemoBox = React.createClass({ propTypes: { align: React.PropTypes.oneOf(['center', 'left', 'right']), children...
lib/components/sidebar/panel-element-editor/attributes-editor/hole-attributes-editor.js
dearkaran/react-planner
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = undefined; var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _propTypes = require('prop-types'); var _propTypes2 = _interopRequireDefault(_propTypes); var _propertyLenghtMeasure = requir...
src/components/Navigation/Navigation.js
bhj/karaoke-forever
import React from 'react' import { NavLink } from 'react-router-dom' import Button from 'components/Button' import styles from './Navigation.css' const Navigation = React.forwardRef((props, ref) => ( <div className={`${styles.container} bg-blur`} ref={ref}> <NavLink to='/library' className={({ isActive }) => isA...
src/js/components/VoteSelector/VoteSelector.js
shane-arthur/react-redux-and-more-boilerplate
import React, { Component } from 'react'; import { styles } from './styles'; import Radium from 'radium'; const io = require('socket.io-client') const socket = io(`http://localhost:3000`); @Radium export default class VoteSelector extends Component { _getAdditionIcon() { const image = require('../../../.....
local-cli/templates/HelloNavigation/views/chat/ChatScreen.js
doochik/react-native
'use strict'; import React, { Component } from 'react'; import { ActivityIndicator, Button, ListView, StyleSheet, Text, TextInput, View, } from 'react-native'; import KeyboardSpacer from '../../components/KeyboardSpacer'; import Backend from '../../lib/Backend'; export default class ChatScreen extends C...
src/components/menu/menu-button.js
aautem/aa
import React from 'react'; import PropTypes from 'prop-types'; import { Button } from 'react-native-elements'; const styles = require('../../styles/app'); export default class MenuButton extends React.Component { constructor(props) { super(props); } render() { return ( <Button raised ...
ajax/libs/material-ui/4.9.3/es/AppBar/AppBar.js
cdnjs/cdnjs
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import withStyles from '../styles/withStyles'; import capitalize from '....