path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/components/Feedback/Feedback.js
chaudhryjunaid/chaudhryjunaid.com
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import withStyles from 'isom...
src/svg-icons/action/settings-bluetooth.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsBluetooth = (props) => ( <SvgIcon {...props}> <path d="M11 24h2v-2h-2v2zm-4 0h2v-2H7v2zm8 0h2v-2h-2v2zm2.71-18.29L12 0h-1v7.59L6.41 3 5 4.41 10.59 10 5 15.59 6.41 17 11 12.41V20h1l5.71-5.71-4.3-4....
packages/wix-style-react/src/Table/DataTable/docs/Example.js
wix/wix-style-react
import React from 'react'; import DataTable from '..'; import s from './Example.scss'; const style = { width: '966px', }; const baseData = [ { firstName: 'Meghan', lastName: 'Bishop' }, { firstName: 'Sara', lastName: 'Porter' }, { firstName: 'Deborah', lastName: 'Rhodes' }, { firstName: 'Walter', lastName: ...
stories/ToggleRefinement.stories.js
algolia/react-instantsearch
import React from 'react'; import { storiesOf } from '@storybook/react'; import { Panel, ToggleRefinement } from 'react-instantsearch-dom'; import { WrapWithHits } from './util'; const stories = storiesOf('ToggleRefinement', module); stories .add('default', () => ( <WrapWithHits linkedStoryGroup="ToggleRefineme...
ajax/libs/6to5/2.4.2/browser.js
gogoleva/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...
__tests__/components/Select.spec.js
romagny13/react-form-validation
import React from 'react'; import { mount, shallow } from 'enzyme'; import { Select } from '../../src/index'; describe('Select', () => { it('Should render with values', () => { let props = { name: 'my-field', value: 'a', dataSource: ['a', 'b'] }; const ...
packages/xo-web/src/xo-app/home/index.js
vatesfr/xo-web
import * as ComplexMatcher from 'complex-matcher' import _ from 'intl' import ActionButton from 'action-button' import Button from 'button' import CenterPanel from 'center-panel' import classNames from 'classnames' import Component from 'base-component' import cookies from 'js-cookie' import defined, { get } from '@xen...
test/browser/keys.js
zeromake/zreact
import { h, Component, render } from 'zreact'; /** @jsx h */ describe('keys', () => { let scratch; before( () => { scratch = document.createElement('div'); (document.body || document.documentElement).appendChild(scratch); }); beforeEach( () => { scratch.innerHTML = ''; }); after( () => { scratch.paren...
components/menu/mixinComponent.js
TDFE/td-ui
import React from 'react'; export default class MixinComponent extends React.Component { renderItem = (child, index) => { const { prefixCls, level, openKeys, selectedKeys, domKeys, onSelect, onOpenChange, mode, multiple } = this.props; const eventKey = this.props.eventKey || ''; let newChildProps = { ...
src/components/CreateView.js
Journey316/resume
import React, { Component } from 'react'; class CreateView extends React.Component { renderItems() { const { createdArr } = this.props; const generateArr = this.props.createdArr; return createdArr.map((el, index) => { return ( <li className="list__item" key={index}> <a>{el.title}...
src/routes/privacy/index.js
kkdubey/gauri
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../co...
src/Label.js
roadmanfong/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Label = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'label', bsStyle: 'default' }; }, render() { let classes = this.getBsClassSe...
ajax/libs/cleave.js/0.7.12/cleave.js
tonytomov/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["Cleave"] = factory(); else root["Cleave...
app/components/About.js
licaon/progressive_app
import React from 'react'; const About = () => ( <div>About page</div> ); export default About;
src/Parser/Mage/Arcane/CONFIG.js
hasseboulen/WoWAnalyzer
import React from 'react'; import { Sharrq, Herusx } from 'CONTRIBUTORS'; import SPECS from 'common/SPECS'; import Warning from 'common/Alert/Warning'; import Wrapper from 'common/Wrapper'; import CombatLogParser from './CombatLogParser'; import CHANGELOG from './CHANGELOG'; export default { // The people that hav...
CompositeUi/src/views/composition/MyOrganizationsDashboardWidget.js
kreta-io/kreta
/* * This file is part of the Kreta package. * * (c) Beñat Espiña <benatespina@gmail.com> * (c) Gorka Laucirica <gorka.lauzirika@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import AddIcon from './../../svg/add.svg'...
ajax/libs/jquery/1.8.0/jquery-1.8.0.min.js
simonewebdesign/cdnjs
/*! jQuery v@1.8.0 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=...
node_modules/react-bootstrap/es/Grid.js
hsavit1/gosofi_webpage
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
app/javascript/mastodon/features/ui/components/media_modal.js
ambition-vietnam/mastodon
import React from 'react'; import ReactSwipeableViews from 'react-swipeable-views'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ExtendedVideoPlayer from '../../../components/extended_video_player'; import classNames from 'classnames'; import { defineMessages, i...
ajax/libs/intl-tel-input/5.7.6/js/intlTelInput.js
sreym/cdnjs
/* International Telephone Input v5.7.6 https://github.com/Bluefieldscom/intl-tel-input.git */ // wrap in UMD - see https://github.com/umdjs/umd/blob/master/jqueryPlugin.js (function(factory) { if (typeof define === "function" && define.amd) { define([ "jquery" ], function($) { factory($, window...
tests/components/Title-test.js
abzfarah/Pearson.NAPLAN.GnomeH
import {test} from 'tape'; import React from 'react'; import TestUtils from 'react-addons-test-utils'; import Title from '../../src/components/Title'; import CSSClassnames from '../../src/components/utils/CSSClassnames'; const CLASS_ROOT = CSSClassnames.TITLE; test('loads a Title', (t) => { t.plan(3); const shal...
EEG101/src/scenes/bci-01.js
NeuroTechX/eeg-101
import React, { Component } from "react"; import { Text, View, ViewPagerAndroid, Image } from "react-native"; import { connect } from "react-redux"; import { MediaQueryStyleSheet } from "react-native-responsive"; import I18n from "../i18n/i18n"; import LinkButton from "../components/LinkButton"; import PopUp from "../...
ajax/libs/jQuery-Validation-Engine/2.6.2/jquery-1.8.2.min.js
AbsoluteMSTR/cdnjs
/*! jQuery v1.8.2 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==...
js/react-redux-todos/containers/AddTodo.js
xiecg/record
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.value)); input.value ...
src/client/index.js
ngnono/hello-babel
/** * Created by lianghongpeng on 2016/10/17. * http://reactjs.cn/react/docs/getting-started-zh-CN.html * http://www.ruanyifeng.com/blog/2016/09/react-technology-stack.html */ import ReactDOM from 'react-dom' import React from 'react'; import {createStore, applyMiddleware, combineReducers} from 'redux'; i...
src/List/ListItemText.spec.js
dsslimshaddy/material-ui
// @flow import React from 'react'; import { assert } from 'chai'; import { createShallow, getClasses } from '../test-utils'; import ListItemText from './ListItemText'; describe('<ListItemText />', () => { let shallow; let classes; before(() => { shallow = createShallow({ dive: true }); classes = getCl...
node_modules/rs-theme/src/index.js
labibramadhan/hybrid-apps-development
import React from 'react'; import ReactDOM from 'react-dom'; import RSRoutes from './routes/client/default'; import {FixNamedRoutesSupport} from "react-router-named-routes"; FixNamedRoutesSupport(RSRoutes); let render; export default render = () => { ReactDOM.render(RSRoutes, document.getElementById('app')); }
src/helpers/__tests__/connectData-test.js
moje-skoly/web-app
import { expect } from 'chai'; import React from 'react'; import { div } from 'react-dom'; import connectData from '../connectData'; describe('connectData', () => { let fetchData; let fetchDataDeferred; let WrappedComponent; let DataComponent; beforeEach(() => { fetchData = 'fetchDataFunction'; fetc...
20170525/zhihu/src/App5.js
fengnovo/react-native
import React, { Component } from 'react'; import { WebView } from 'react-native'; class App extends Component { render() { return ( <WebView source={{uri: 'https://github.com/facebook/react-native'}} style={{marginTop: 20}} /> ); } } export default App;
Libraries/Text/Text.js
DanielMSchmidt/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...
client/screens/Users/UserSignUp/index.js
francixcoag/trace_packages
import React from 'react'; import UsersNavBar from '../components/UsersNavBar'; import FormContainer from './FormContainer'; export default () => ( <div> <UsersNavBar label="Registar" screen="user/signup" /> <FormContainer /> </div> );
src/server.js
servak/material-ui-sample
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel-core/polyfill'; import path from 'path'; import express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import Router from './routes'; import Html from './components/Html'; const server = global....
src/containers/champs_type_filter.js
dukarc/lolchamps
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { setFilterTypes } from '../actions/index'; class ChampsTypeFilter extends Component { constructor(props) { super(props); this.onChange = this.onChange.bind(this); } onChange(event) { this.props.setFilterTypes(ev...
spec/components/boxSpec.js
carpeliam/timebox-light
/* eslint-env jasmine */ import React from 'react'; import TestUtils from 'react-addons-test-utils'; import Box from '../../src/assets/components/Box'; describe('Box', () => { let box; let callbackSpy; beforeEach(() => { callbackSpy = jasmine.createSpy('callback'); box = TestUtils.renderIntoDocument( ...
src/svg-icons/device/wifi-lock.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceWifiLock = (props) => ( <SvgIcon {...props}> <path d="M20.5 9.5c.28 0 .55.04.81.08L24 6c-3.34-2.51-7.5-4-12-4S3.34 3.49 0 6l12 16 3.5-4.67V14.5c0-2.76 2.24-5 5-5zM23 16v-1.5c0-1.38-1.12-2.5-2.5-2.5S18 13....
src/svg-icons/social/share.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialShare = (props) => ( <SvgIcon {...props}> <path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0...
node_modules/react-router/es6/withRouter.js
dwmorrisdev/ReactWeather
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import invariant from 'invariant'; import React from 'react';...
src/store_enhancers/devTools.js
Rico75/ricardoswebconsulting-react-php
import React from 'react'; import { createStore as initialCreateStore, compose } from 'redux'; export let createStore = initialCreateStore; console.log('__DEV__:', __DEV__); //if (__DEV__) { if (1==0) { createStore = compose( require('redux-devtools').createDevTools(), require('redux-devtools').persistState(...
docs/src/modules/components/HomeBackers.js
allanalexandre/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { withStyles } from '@material-ui/core/styles'; import NoSsr from '@material-ui/core/NoSsr'; import MarkdownElement from 'docs/src/modules/components/MarkdownElement'; import Container from '@material-ui/core/Co...
ajax/libs/react-datepicker/0.6.1/react-datepicker.min.js
ahocevar/cdnjs
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("moment"),require("react-onclickoutside")):"function"==typeof define&&define.amd?define(["react","moment","react-onclickoutside"],e):"object"==typeof exports?exports.DatePicker=e(require("react"),require("moment")...
src/main/webapp/js/bundle.min.js
salgum1114/sgoh-blog
!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}var r=n(1),i=o(r),a=n(36),s=o(a),u=n(182),c=o(u...
ajax/libs/yui/3.9.1/datatable-body/datatable-body.js
codfish/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...
frontend/node_modules/react/lib/onlyChild.js
andres81/auth-service
/** * Copyright 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * */ 'use strict'...
app/components/NavigationBar/UIElementsFolder.js
aoshmyanskaya/tko
import React from 'react'; import { Button } from 'react-bootstrap'; import Ink from 'react-ink'; class UIElementsFolder extends React.Component { constructor(props) { super(props); this.state = { hideList: false, activeKey: 1 }; this.toggleList = this.toggleList.bind(this); } toggleList() { th...
js/components/Label.js
eugeneglova/react-redux-form
import React from 'react'; const Label = ({ text, required }) => ( <label> {required ? '*' : ''} {text}: </label> ); export default Label;
packages/material-ui-icons/src/ContactsSharp.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="M20 0H4v2h16V0zM4 24h16v-2H4v2zM22 4H2v16h20V4zM12 6.75c1.24 0 2.25 1.01 2.25 2.25s-1.01 2.25-2.25 2.25S9.75 10.24 9.75 9 10.76 6.75 12 6.75z...
docs/src/app/components/pages/components/Dialog/ExampleDialogDatePicker.js
kasra-co/material-ui
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; import DatePicker from 'material-ui/DatePicker'; /** * Dialogs can be nested. This example opens a Date Picker from within a Dialog. */ export defa...
node_modules/babel-preset-es2015/node_modules/babel-plugin-check-es2015-constants/node_modules/babel-runtime/node_modules/core-js/modules/es6.promise.js
df-a/par-cw
'use strict'; var LIBRARY = require('./_library') , global = require('./_global') , ctx = require('./_ctx') , classof = require('./_classof') , $export = require('./_export') , isObject = require('./_is-object') , aFunction = req...
new.js
rubyvyu/messenger-insights
//const topics = ["hackathons", "facebook", "food"]; //const friends = ["Henry", "Emma"]; //const ignore_friends = ["James"]; let topics = []; let friends = []; let ignore_friends = []; let min_reacts = 2; let always_ignore = false; const Filters = { unreadMessagesButton: '._5f0v._4wzs', messages: '[aria-label...
packages/wix-style-react/src/TimeInputWip/docs/index.story.js
wix/wix-style-react
import React from 'react'; import { header, tabs, tab, description, importExample, title, divider, example, playground, api, testkit, } from 'wix-storybook-utils/Sections'; import { storySettings } from '../test/storySettings'; import TimeInputWip from '..'; import SectionHelper from '../../Sect...
src/svg-icons/content/sort.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentSort = (props) => ( <SvgIcon {...props}> <path d="M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"/> </SvgIcon> ); ContentSort = pure(ContentSort); ContentSort.displayName = 'ContentSort'; ContentSort.mui...
src/containers/NotFound/NotFound.js
simonghales/mapping
import React from 'react'; export default function NotFound() { return ( <div className="container"> <h1>Doh! 404!</h1> <p>These are <em>not</em> the droids you are looking for!</p> </div> ); }
ajax/libs/react-router/0.10.0/react-router.min.js
dada0423/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.ReactRouter=e()}}(function(){var define;return functi...
ajax/libs/yui/3.10.1/datatable-core/datatable-core-coverage.js
vfonic/cdnjs
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/datatable-core/datatable-core.js']) { __coverage__['build/datatable-core/datatable-core.js'] = {"path":"build/datatable-core/datatable-core.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13"...
app/components/LoadingIndicator/index.js
davecyen/react-boilerplate-material
import React from 'react'; import Circle from './Circle'; import Wrapper from './Wrapper'; const LoadingIndicator = () => ( <Wrapper> <Circle /> <Circle rotate={30} delay={-1.1} /> <Circle rotate={60} delay={-1} /> <Circle rotate={90} delay={-0.9} /> <Circle rotate={120} delay={-0.8} /> <Cir...
src/Interpolate.js
victorzhang17/react-bootstrap
// https://www.npmjs.org/package/react-interpolate-component // TODO: Drop this in favor of es6 string interpolation import React from 'react'; import ValidComponentChildren from './utils/ValidComponentChildren'; const REGEXP = /\%\((.+?)\)s/; const Interpolate = React.createClass({ displayName: 'Interpolate', ...
src/ui/components/views/Offline.js
scrollback/pure
/* @flow */ import React, { Component } from 'react'; import Radium from 'radium'; import shallowCompare from 'react-addons-shallow-compare'; import Colors from '../../Colors'; import Page from './Page/Page'; const styles = { container: { padding: 16, backgroundColor: Colors.white, }, image: { marginLeft: 16...
ajax/libs/6to5/3.5.0/browser-polyfill.js
boneskull/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
src/SplitButton.js
jontewks/react-bootstrap
import React from 'react'; import BootstrapMixin from './BootstrapMixin'; import Button from './Button'; import Dropdown from './Dropdown'; import SplitToggle from './SplitToggle'; class SplitButton extends React.Component { render() { let { children, title, onClick, target, href, ...
src/app/components/Nav.js
arraqib/react-weather
import React from 'react'; import { Link, IndexLink } from 'react-router'; import { List, ListItem } from 'material-ui'; import ActionAccountBalance from 'material-ui/svg-icons/action/account-balance'; import ActionCardGiftcard from 'material-ui/svg-icons/action/card-giftcard'; import ActionAssignment from 'material-...
node_modules/react-icons/io/android-arrow-dropright.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoAndroidArrowDropright = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m15 10l10 10-10 10v-20z"/></g> </Icon> ) export default IoAndroidArrowDropright
bootstrap/js/jquery-1.10.2.min.js
codeispoetry/timelapse
/*! 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...
src/containers/Articles/Form.js
mcnamee/react-native-starter-app
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import Layout from '../../components/Articles/Form'; class ArticlesFormContainer extends Component { constructor() { super(); this.state = { error: null, success: null, loading: false }; } ...
app/javascript/src/components/packageBlocks/AppList.js
michelson/chaskiq
import React from 'react' import List, { ListItem, ListItemText, ItemListPrimaryContent, ItemListSecondaryContent } from '../../components/List' import { LeftArrow, } from '../../components/icons' import { BaseInserter } from './baseInserter' import Button from '../../components/Button' import Progress ...
src/components/Button/Submit.js
titon/toolkit
/** * @copyright 2010-2017, The Titon Project * @license http://opensource.org/licenses/BSD-3-Clause * @link http://titon.io * @flow */ import React from 'react'; import PropTypes from 'prop-types'; import Button from './Button'; import type { ButtonProps } from './types'; export default function T...
docs/app/Examples/collections/Grid/Types/GridExampleCelled.js
aabustamante/Semantic-UI-React
import React from 'react' import { Grid, Image } from 'semantic-ui-react' const GridExampleCelled = () => ( <Grid celled> <Grid.Row> <Grid.Column width={3}> <Image src='/assets/images/wireframe/image.png' /> </Grid.Column> <Grid.Column width={13}> <Image src='/assets/images/wire...
src/data/sequelize.js
koistya/react-starter-kit
/** * 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 Sequelize from 'sequelize'; import { databaseUrl } ...
packages/material-ui-icons/src/FindInPage.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M20 19.59V8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c.45 0 .85-.15 1.19-.4l-4.43-4.43c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5c0 1.02-.31 1.96-.83 2.75L20 19.59zM...
src/Main/DamageTakenTable.js
hasseboulen/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SpellLink from 'common/SpellLink'; import Icon from 'common/Icon'; import { formatNumber } from 'common/format'; export const MITIGATED_NONE = 0; export const MITIGATED_MAGICAL = 1; export const MITIGATED_PHYSICAL = 2; class DamageTakenTable exten...
src/components/RepoList/RepoListStories.js
DeloitteDigitalUK/react-redux-starter-app
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import _ from 'lodash'; import RepoList from './index'; const repo = { author: 'DeloitteDigitalUK', avatar: 'https://avatars.githubusercontent.com/u/10812267?v=3', description: 'Starter app with React, Redux, Webpack, CSS Modules, API cal...
packages/material-ui-icons/src/ExposureNeg1.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let ExposureNeg1 = props => <SvgIcon {...props}> <path d="M4 11v2h8v-2H4zm15 7h-2V7.38L14 8.4V6.7L18.7 5h.3v13z" /> </SvgIcon>; ExposureNeg1 = pure(ExposureNeg1); ExposureNeg1.muiName = 'SvgIcon'; export ...
node_modules/react-icons/io/android-radio-button-on.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoAndroidRadioButtonOn = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m19.8 11.9c4.4 0 8.1 3.6 8.1 8.1s-3.7 8.1-8.1 8.1-8.2-3.6-8.2-8.1 3.7-8.1 8.2-8.1z m0-8.1c8.9 0 16.2 7.3 16.2 16.2s-7.3 16.3-16.2 16.3-16.3-7.4-16.3-16.3...
src/air.js
hochbrian/weather-card
import React from 'react' import { Badge } from 'reactstrap' export default class AirBadge extends React.Component { constructor() { super() this.state = { aqi: 0, alert: 'default' } } componentWillReceiveProps(newProps) { var alert = '' if (newProps.aqi < 50) { alert = '...
examples/src/CustomRenderer/CustomRenderer.js
DanielMontesDeOca/react-autosuggest
require('./CustomRenderer.less'); import React, { Component } from 'react'; import utils from '../utils'; import Autosuggest from '../../../src/Autosuggest'; import SourceCodeLink from '../SourceCodeLink/SourceCodeLink'; import suburbs from 'json!../suburbs.json'; function population(suburbObj) { return suburbObj.s...
src/pages/tag-cloud.js
voidxnull/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2015 Loki Education (Social Enterprise) This program 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, either version 3 of the License, o...
src/components/App.js
clayhan/reactserver
import React from 'react'; import Home from './Home'; import Navbar from './Navbar'; export default class App extends React.Component { constructor(props) { super(props); } render() { console.log('===================='); console.log('Rendering App.js'); console.log('===================='); ...
admin/client/App/components/Navigation/Primary/index.js
cermati/keystone
/** * The primary (i.e. uppermost) navigation on desktop. Renders all sections and * the home-, website- and signout buttons. */ import React from 'react'; import { Container } from '../../../elemental'; import PrimaryNavItem from './NavItem'; var PrimaryNavigation = React.createClass({ displayName: 'PrimaryNavig...
lib/Footer.js
nitrog7/nl-fluid
'use strict'; var _index = require('/Users/grosales/dev/nl-fluid/node_modules/redbox-react/lib/index.js'); var _index2 = _interopRequireDefault(_index); var _index3 = require('/Users/grosales/dev/nl-fluid/node_modules/react-transform-catch-errors/lib/index.js'); var _index4 = _interopRequireDefault(_index3); var _...
node_modules/react-router/es6/IndexLink.js
jotamaggi/react-calendar-app
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import React from 'react'; import Link from './Link'; /** *...
packages/material-ui-icons/src/SignalWifiOffSharp.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="M23.64 7c-.45-.34-4.93-4-11.64-4-1.32 0-2.55.14-3.69.38L18.43 13.5 23.64 7zM3.41 1.31L2 2.72l2.05 2.05C1.91 5.76.59 6.82.36 7L12 21.5l3.91-4....
app/javascript/mastodon/features/account_gallery/components/media_item.js
hyuki0000/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import Permalink from '../../../components/permalink'; export default class MediaItem extends ImmutablePureComponent { static propTypes = { media: Immutable...
frontend/src/components/castlist/CastList.js
tanzdervampire/website
// @flow import React from 'react'; import PropTypes from 'prop-types'; import { red500, grey50 } from 'material-ui/styles/colors'; import Paper from 'material-ui/Paper'; import { Tabs, Tab } from 'material-ui/Tabs'; import { List } from 'material-ui/List'; import Subheader from 'material-ui/Subheader'; import Swipea...
node_modules/react-bootstrap/es/Image.js
ASIX-ALS/asix-final-project-frontend
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/@ui/UserAvatarView/UserAvatarView.stories.js
NewSpring/Apollos
import React from 'react'; import { storiesOf } from '@storybook/react-native'; import FlexedView from '@ui/FlexedView'; import UserAvatarView from './'; const photo = { url: 'https://dg0ddngxdz549.cloudfront.net/images/cached/images/remote/http_s3.amazonaws.com/ns.images/all/member_images/members.nophoto_1000_1000_...
src/routes/Counter/components/Counter.js
robertcasanova/personal-website
import React from 'react' export const Counter = (props) => ( <div style={{ margin: '0 auto' }} > <h2>Counter: {props.counter}</h2> <button className='btn btn-default' onClick={props.increment}> Increment </button> {' '} <button className='btn btn-default' onClick={props.doubleAsync}> ...
ajax/libs/inferno/1.0.0-alpha7/inferno-compat.min.js
ahocevar/cdnjs
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(e.InfernoCompat=e.InfernoCompat||{})}(this,function(e){"use strict";function n(e){return e instanceof Array}function t(e){var n=e.component;return!s(n.prototype)&&!s(n.prototype.r...
ajax/libs/reactive-coffee/0.0.1/reactive-coffee.js
juliusrickert/cdnjs
(function() { var DepArray, DepCell, DepMgr, Depmap, Ev, MappedDepArray, ObsArray, ObsCell, ObsMap, RawHtml, Recorder, SrcArray, SrcCell, SrcMap, bind, depMgr, ev, events, lagBind, mkMap, mktag, mkuid, nextUid, popKey, recorder, rx, rxt, specialAttrs, tag, tags, _fn, _i, _len, _ref, _ref1, _ref2, _ref3, __hasProp...
Libraries/Image/Image.ios.js
Maxwell2022/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...
ajax/libs/rxjs/2.4.7/rx.lite.extras.compat.js
LeaYeh/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, 'und...
app/javascript/mastodon/containers/account_container.js
mstdn-jp/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { makeGetAccount } from '../selectors'; import Account from '../components/account'; import { followAccount, unfollowAccount, blockAccount, unblockAccount, muteAc...
vendor/github.com/aws/aws-sdk-go/doc-src/aws-godoc/templates/jquery.js
nhr/origin
/*! jQuery v1.8.2 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===...
ajax/libs/6to5/3.6.3/browser.js
perdona/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...
react-dev/components/page.js
575617819/yanghang
import React from 'react'; import Paper from 'material-ui/Paper'; import Remarkable from 'remarkable'; import DOMPurify from 'dompurify'; //Prevents XSS when using dangerouslySetInnerHTML //Dynamic Page Component, this is what works with the Jekyll-React plugin. If you don't want your page crawled by the Search Engin...
misc/jquery.js
anastasiiashevchenko/diplom
/*! * jQuery JavaScript Library v1.4.4 * 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/components/layouts/page-layout.js
mberneti/ReactAdmin
import React from 'react'; const pageLayout = props => { return ( <div id="page-wrapper"> <div className="row"> <div className="col-lg-12"> <h1 className="page-header">{props.title}</h1> </div> </div> {props.children} </div> ); }; export default pageLayout;
test/module/Assignment.spec.js
NUS-Workload-Predictor/front-end
import React from 'react'; import { mount, shallow } from 'enzyme'; import { expect } from 'chai'; import configureStore from 'redux-mock-store'; const fetch = require('isomorphic-fetch'); import App from '../containers/App'; const middlewares = []; const mockStore = configureStore(middlewares); function setup() {...
src/SplitToggle.js
xiaoking/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...
website-prototyping-tools/playground.js
almasakchabayev/relay
/** * 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. */ import 'babel/pol...
app/app/components/SideMenu/EntitiesMenu.js
lycha/masters-thesis
import React from 'react'; import {Link} from 'react-router'; import EntitiesProductSubMenu from './EntitiesProductSubMenu' class EntitiesMenu extends React.Component { constructor(props) { super(props); this.displayName = 'EntitiesMenu'; } componentDidMount() { } render() { ...
packages/material-ui-icons/src/BluetoothConnected.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M7 12l-2-2-2 2 2 2 2-2zm10.71-4.29L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1.88 1.88L13 9.59V5.83zm1.88 10.46L13 18.17v-3.76l1.88 1.88zM1...