path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/containers/NotFound/NotFound.js
frankievx/musicblog
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> ); }
node_modules/react-native-svg/elements/Line.js
15chrjef/mobileHackerNews
import React from 'react'; import createReactNativeComponentClass from 'react/lib/createReactNativeComponentClass'; import {LineAttributes} from '../lib/attributes'; import Shape from './Shape'; import {pathProps, numberProp} from '../lib/props'; class Line extends Shape { static displayName = 'Line'; static ...
ajax/libs/react-virtualized/9.4.0/react-virtualized.js
him2him2/cdnjs
!function(root, factory) { "object" == typeof exports && "object" == typeof module ? module.exports = factory(require("React"), require("ReactDOM")) : "function" == typeof define && define.amd ? define([ "React", "ReactDOM" ], factory) : "object" == typeof exports ? exports.ReactVirtualized = factory(require("React...
src/components/ListPagination.js
vkarpov15/shidoshi
import React from 'react'; import agent from '../agent'; const ListPagination = props => { if (props.articlesCount <= 10) { return null; } const range = []; for (let i = 0; i < Math.ceil(props.articlesCount / 10); ++i) { range.push(i); } const setPage = page => props.onSetPage(page); return ( ...
src/components/App.js
hamatoyogi/imdb-app-v2
import CSSModules from 'react-css-modules'; import React from 'react'; import DevTool from 'mobx-react-devtools'; import { observer } from 'mobx-react'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import { Root } from './root/root'; import styles from './App.css' @observer class App extends Re...
app/components/ProgressBar/index.js
MaleSharker/Qingyan
import React from 'react'; import ProgressBar from './ProgressBar'; function withProgressBar(WrappedComponent) { class AppWithProgressBar extends React.Component { constructor(props) { super(props); this.state = { progress: -1, loadedRoutes: props.location && [props.location.pathname]...
index.android.js
leechuanjun/TLRNProjectTemplate
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class TLRNProjectTemplate extends Component { render() { return ( <View style={styles.container}> ...
src/__tests__/fields/PasswordField.js
crudlio/crudl
/* globals jest, require, test, expect, describe, it, beforeEach */ import React from 'react' import { render, shallow } from 'enzyme' import field from '../../admin-schema/field' import { PasswordField } from '../../fields/PasswordField' const desc = { after: '', before: '', field: 'field', id: 'id',...
src/scenes/Login.js
kesjien/member-cards
import React, { Component } from 'react'; import { Text, View, Image, TouchableOpacity, StatusBar, KeyboardAvoidingView, ActivityIndicator, Linking, Platform, Alert, ScrollView, Modal, StyleSheet } from 'react-native'; import { Actions } from 'react-native-router-flux'; var Auth0L...
app/screens/TransactionsStatistics/TransactionsStatisticsScreenView.js
JSSolutions/Perfi
import React from 'react'; import T from 'prop-types'; import { View, Text } from 'react-native'; import { VictoryPie } from 'victory-native'; import { PieLegend } from './components'; import { Subtitle, Separator, DateFilter, TransactionItem, FlatList, SegmentedControl, AddTransactionButton, HeaderTitl...
public/javascripts/pages/main.js
kenticny/CasualData
import React from 'react'; import { Menu, Breadcrumb, Icon } from 'antd'; const ReactRouter = require('react-router'); module.exports = React.createClass({ getInitialState: function() { return { current: 'dashboard' } }, handleClick: function(e) { this.setState({ ...
src/client/assets/js/nodes/outputs/notify/node.js
me-box/databox-sdk
import React from 'react'; //import composeNode from 'utils/composeNode'; import Textfield from 'components/form/Textfield'; import Textarea from 'components/form/Textarea'; import Select from 'components/form/Select'; import Cell from 'components/Cell'; import Cells from 'components/Cells'; class Node extends React.C...
src/Select/CheckBoxList.js
ctco/rosemary-ui
import React from 'react'; import PropTypes from 'prop-types'; import find from 'lodash/find'; import Immutable from 'immutable'; import ReactList from 'react-list'; import cn from 'classnames'; import CheckBox from '../CheckBox/index'; import { isDefined, findIdentifiables } from '../util/utils'; const PROPERTY_TYPE...
ajax/libs/clappr/0.0.88/clappr.js
tonytomov/cdnjs
require=(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)...
Libraries/BugReporting/BugReporting.js
Purii/react-native
/** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
commons-26eaedd3f078f54415ea.js
tagliati/tagliat.us
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{0:function(e,t,n){"use strict";e.exports=n(155)},105:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}cat...
testauthorize/lib/yuilib/2in3/2.9.0/build/yui2-containercore/yui2-containercore.js
sorted2323/msi
YUI.add('yui2-containercore', function(Y) { var YAHOO = Y.YUI2; /* Copyright (c) 2011, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html version: 2.9.0 */ (function () { /** * Config is a utility used within an Object to allow the imple...
src/svg-icons/content/send.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentSend = (props) => ( <SvgIcon {...props}> <path d="M2.01 21L23 12 2.01 3 2 10l15 2-15 2z"/> </SvgIcon> ); ContentSend = pure(ContentSend); ContentSend.displayName = 'ContentSend'; ContentSend.muiName = ...
client/src/components/NoAccess.js
JasonProcka/venos
// --- Imports ---- // >>> React import React from 'react'; // Show a Page that says that you have no access to the current area export default class NoAccess extends React.Component { render() { return ( <div> {`You do not have access for here`} </div> );...
src/components/wrapper/standalone-modal-encrypt.js
josuerangel/signandencrypt
import React from 'react' import 'babel-polyfill'; import 'whatwg-fetch'; import ModalEncrypt from '../modal-encrypt/index.jsx'; function renderModalEncrypt(options, container, callback){ let modal = null; ReactDOM.render(<ModalEncrypt options={options} ref={ _modal => { modal = _modal; }} />, container, callback)...
src/pages/contact.js
kbariotis/kostasbariotis.com
import React from 'react'; import PropTypes from 'prop-types'; import { graphql, Link } from 'gatsby'; import { Row, Col } from 'react-flexbox-grid'; import IndexLayout from '../components/layouts/Index'; import MetaTags from '../components/blog/MetaTags'; import Header from '../components/blog/Header'; export defaul...
app/scripts/components/loading.js
hustbill/network-verification-ui
import React from 'react'; import { sample } from 'lodash'; import { findTopologyById } from '../utils/topology-utils'; import NodesError from '../charts/nodes-error'; const LOADING_TEMPLATES = [ 'Loading THINGS', 'Verifying THINGS', 'Fetching THINGS', 'Processing THINGS', 'Reticulating THINGS', 'Locatin...
src/core/components/types/ArrayType.js
remy/jsconsole
import React, { Component } from 'react'; import zip from 'lodash/zip'; import flatten from 'lodash/flatten'; import which from '../../lib/which-type'; class ArrayType extends Component { constructor(props) { super(props); this.toggle = this.toggle.bind(this); this.state = { open: props.open, ...
_share/source/web/saem/js/jquery-1.9.1.min.js
saemx/ged-sas
/*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return...
docs/pages/api-docs/skeleton.js
lgollut/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'api/skeleton'; const requireRaw = require.context('!raw-loader!./', false, /\/skeleton\.md$/); export default function Page({ do...
node_modules/bower/test/renderers/StandardRenderer.js
rao1219/Vedio
// Simulate wide terminal process.stdout.columns = 130; var expect = require('chai').expect; var helpers = require('../helpers'); var multiline = require('multiline').stripIndent; var StandardRenderer = helpers.require('lib/renderers/StandardRenderer'); describe('StandardRenderer', function () { it('logs generi...
src/svg-icons/av/queue-music.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvQueueMusic = (props) => ( <SvgIcon {...props}> <path d="M15 6H3v2h12V6zm0 4H3v2h12v-2zM3 16h8v-2H3v2zM17 6v8.18c-.31-.11-.65-.18-1-.18-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3V8h3V6h-5z"/> </SvgIcon> ); AvQu...
docs/src/examples/elements/Label/Content/LabelExampleIconShorthand.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Label } from 'semantic-ui-react' const LabelExampleIconShorthand = () => ( <Label as='a' content='Mail' icon='mail' /> ) export default LabelExampleIconShorthand
src/svg-icons/content/add-circle-outline.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentAddCircleOutline = (props) => ( <SvgIcon {...props}> <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.5...
client/lib/index.js
blckt/diploma
import '../assets/stylesheets/index.css'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import Root, { store } from './Root'; import { addLocaleData } from 'react-intl'; import en from 'react-intl/lib/locale-data/en'; import de from 'react-intl/lib/locale-data/de'...
client/components/Flass/Lecture/Analysis/Chart/ChartComponent.js
Nexters/flass
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Chart from 'chart.js'; import _ from 'lodash'; const propTypes = { labels: PropTypes.array.isRequired, data: PropTypes.array.isRequired }; const defaultProps = {}; const myBackgroundColor = [ '#B6BFC1', '#EDEEEE', '#E5E8E8'...
ajax/libs/ember-data.js/1.0.0-beta.4/ember-data.prod.js
Ryuno-Ki/cdnjs
/*! * @overview Ember Data * @copyright Copyright 2011-2013 Tilde Inc. and contributors. * Portions Copyright 2011 LivingSocial Inc. * @license Licensed under MIT license (see license.js) */ // Version: 1.0.0-beta.4 (function() { var define, requireModule; (function() { var registry = {}, seen...
app/containers/Post/index.js
vlastoun/picture-uploader-crud
import React from 'react'; import { createStructuredSelector } from 'reselect'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import DisplayPost from 'components/DisplayPost'; import ImgModal from 'components/ImgModal'; import { LOAD_DATA, SHOW_PICTURE, HIDE_MODAL } from './constants'; impo...
packages/material-ui-icons/src/Remove.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M19 13H5v-2h14v2z" /> , 'Remove');
packages/material-ui-icons/src/HowToVoteRounded.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="M11.34 15.02c.39.39 1.02.39 1.41 0l6.36-6.36c.39-.39.39-1.02 0-1.41L14.16 2.3c-.38-.4-1.01-.4-1.4-.01L6.39 8.66c-.39.39-.39 1.02 0 1.41l4.95 4.9...
ajax/libs/analytics.js/2.3.2/analytics.js
calebmer/cdnjs
(function outer(modules, cache, entries){ /** * Global */ var global = (function(){ return this; })(); /** * Require `name`. * * @param {String} name * @param {Boolean} jumped * @api public */ function require(name, jumped){ if (cache[name]) return cache[name].exports; if (mo...
packages/react-router-website/modules/docs/Core.js
react-translate-team/react-router-CN
export default { api: [ require('../../../react-router/docs/api/MemoryRouter.md'), require('../../../react-router/docs/api/Prompt.md'), require('../../../react-router/docs/api/Redirect.md'), require('../../../react-router/docs/api/Route.md'), require('../../../react-router/docs/api/Router.md'), ...
src/components/DeveloperMenu.ios.js
apoi/kahvi
import React from 'react'; import * as snapshot from '../utils/snapshot'; import * as auth0 from '../services/auth0'; import { TouchableOpacity, ActionSheetIOS, StyleSheet } from 'react-native'; /** * Simple developer menu, which allows e.g. to clear the app state. * It can be accessed through a tiny button i...
node_modules/fbjs/node_modules/core-js/library/modules/es6.promise.js
TylerKirby/pliny-app-react
'use strict'; var $ = require('./$') , LIBRARY = require('./$.library') , global = require('./$.global') , ctx = require('./$.ctx') , classof = require('./$.classof') , $export = require('./$.export') , isObject = require('./$.is-object') , anObject = require('./$.an-objec...
vendor/backbone/backbone.js
r14r/fork_javascript_lodash
// Backbone.js 1.2.1 // (c) 2010-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors // Backbone may be freely distributed under the MIT license. // For all details and documentation: // http://backbonejs.org (function(factory) { // Establish the root object, `window` (`se...
src/components/Notfound/Notfound.js
jdhanesh/ftdpwa
import React from 'react' const Notfound = () => ( <h1>Custom made 404 error page</h1> ) export default Notfound
examples/js/shopping-list/client/components/StaticImage.js
reimagined/resolve
import React from 'react' import { Image } from 'react-bootstrap' import { useStaticResolver } from '@resolve-js/react-hooks' const StaticImage = ({ src, ...otherProps }) => { const resolveStatic = useStaticResolver() return <Image {...otherProps} src={resolveStatic(src)} /> } export { StaticImage }
app/javascript/mastodon/components/display_name.js
5thfloor/ichiji-social
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { autoPlayGif } from 'mastodon/initial_state'; export default class DisplayName extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, oth...
js/react/presentational/volunteers/questionnaire/elements/question-title.js
he-he-org/site
import {h} from 'react-markup' import React, {PropTypes} from 'react' import prefixer from 'bem-prefixer' const bem = prefixer('questionnaire-question-title') class QuestionTitle extends React.Component { render() { const {mandatory, children} = this.props return h(bem('div'), children...
draft-js-counter-plugin/src/CustomCounter/index.js
dagopert/draft-js-plugins
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import unionClassNames from 'union-class-names'; class CustomCounter extends Component { static propTypes = { theme: PropTypes.any, limit: PropTypes.number, countFunction: PropTypes.func.isRequired, }; getClassNames(count...
es/Tabs/TabIndicator.js
uplevel-technology/material-ui-next
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; }; // weak import React from 'react'; import classNames from '...
examples/with-react-ga/components/Layout.js
nelak/next.js
import React from 'react' import { initGA, logPageView } from '../utils/analytics' export default class Layout extends React.Component { componentDidMount () { if (!window.GA_INITIALIZED) { initGA() window.GA_INITIALIZED = true } logPageView() } render () { return ( <div> ...
src/components/Surrounder.js
knod/cliff-effects-1
import React from 'react'; const Surrounder = function ({ Top, Left, Right, Bottom, children }) { let contents = { top: null, left: null, right: null, bottom: null }; if (Top) { contents.top = (<div className={ `top horizontal` }>{ Top }</div>); } if (Left) { contents.left = (<div className={ `left ...
ajax/libs/material-ui/5.0.0-alpha.16/legacy/Grow/Grow.min.js
cdnjs/cdnjs
import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutProperties from"@babel/runtime/helpers/esm/objectWithoutProperties";import*as React from"react";import PropTypes from"prop-types";import{elementAcceptingRef}from"@material-ui/utils";import{Transition}from"react-transition-group";import useThe...
js/components/home/placeDetails.js
crod93/googlePlacesEx-react-native
'use strict'; import React, { Component } from 'react'; import {Modal} from 'react-native'; import { connect } from 'react-redux'; import { openDrawer } from '../../actions/drawer'; import { replaceRoute } from '../../actions/route'; import { Container, Header, Title, Content, View, Text, Button, Icon} from 'native-ba...
ajax/libs/yui/3.13.0/event-custom-base/event-custom-base.js
raszi/cdnjs
YUI.add('event-custom-base', function (Y, NAME) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.Env.evt = { handles: {}, plugins: {} }; /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @mo...
web/start/dessert/meals/chocolate-souffle/js/jquery.min.js
jonathanbe/jonathanbe.github.io
/*! 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...
blueocean-material-icons/src/js/components/svg-icons/action/lock-open.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionLockOpen = (props) => ( <SvgIcon {...props}> <path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1....
src/__tests__/CardSubtitle.spec.js
reactstrap/reactstrap
import React from 'react'; import { shallow } from 'enzyme'; import { CardSubtitle } from '../'; describe('CardSubtitle', () => { it('should render with "card-subtitle" class', () => { const wrapper = shallow(<CardSubtitle>Yo!</CardSubtitle>); expect(wrapper.text()).toBe('Yo!'); expect(wrapper.hasClass(...
src/svg-icons/social/cake.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialCake = (props) => ( <SvgIcon {...props}> <path d="M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2zm4.6 9.99l-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l...
node_modules/react-icons/md/network-wifi.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const MdNetworkWifi = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m34.1 18.2l0 0.1-14.1 17.5-14.1-17.5 0-0.1-5.3-6.6c0.8-0.5 8.2-6.6 19.4-6.6s18.6 6.1 19.4 6.6z"/></g> </Icon> ) export default MdNetworkWifi
app/components/auth/signup.js
bigappleinsider/auth-client-prod
import React, { Component } from 'react'; import { reduxForm, Field, SubmissionError } from 'redux-form'; import { connect } from 'react-redux'; import * as actions from '../../actions'; const email = value => value && !/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i.test(value) ? 'Invalid email address' : undefined...
component/reactsfc/demo/index.js
FFF-team/generator-earth
import React from 'react' import ReactDOM from 'react-dom' import 'scss_mixin/<%= resetCss %>' //reset 样式 import App from './App' const rootElement = document.getElementById('root'); ReactDOM.render( <App />, rootElement )
example/index.js
Frezc/rc-mobx-form
import React from 'react' import { render } from 'react-dom' import { Form, Select, InputNumber, Switch, Radio, Slider, Button, Upload, Icon, Input } from 'antd'; const Option = Select.Option; const RadioButton = Radio.Button; const RadioGroup = Radio.Group; import { createForm, FormItem, setInternalFormItem } from...
ajax/libs/react-dom/18.0.0-rc.3/cjs/react-dom-server.node.development.js
cdnjs/cdnjs
/** * @license React * react-dom-server.node.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; if (process.env.NODE_ENV !== "production") { (functi...
app/containers/LocaleToggle/index.js
j921216063/chenya
/* * * LanguageToggle * */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import Toggle from 'components/Toggle'; import Wrapper from './Wrapper'; import messages from './messages'; import { appLocales } from '../../i18n'; import { changeLocale } from ...
Paths/React/05.Building Scalable React Apps/6-react-boilerplate-building-scalable-apps-m6-exercise-files/Before/app/components/Navigation/index.js
phiratio/Pluralsight-materials
/** * * Navigation * */ import React from 'react'; import AppBar from '../AppBar'; import styles from './styles.css'; import Drawer from '../Drawer'; function Navigation({ topics, selectTopic, toggleDrawer, isDrawerOpen }) { return ( <div className={styles.navigation}> <AppBar toggleDrawer={toggl...
src/Table.js
andrew-d/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const Table = React.createClass({ propTypes: { striped: React.PropTypes.bool, bordered: React.PropTypes.bool, condensed: React.PropTypes.bool, hover: React.PropTypes.bool, responsive: React.PropTypes.bool }, render() { let c...
files/abaaso/3.8.15/abaaso.js
Heark/jsdelivr
/** * abaaso * * @author Jason Mulligan <jason.mulligan@avoidwork.com> * @copyright 2013 Jason Mulligan * @license BSD-3 <https://raw.github.com/avoidwork/abaaso/master/LICENSE> * @link http://abaaso.com * @module abaaso * @version 3.8.15 */ ( function ( global ) { var document = global.document, locatio...
ajax/libs/foundation/4.0.4/js/vendor/jquery.min.js
jacobq/cdnjs
(function(e,t){function n(e){var t=e.length,n=lt.type(e);return lt.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e){var t=wt[e]={};return lt.each(e.match(ut)||[],function(e,n){t[n]=!0}),t}function r(e,n,i,r){if(lt.acceptData(e)){var o,a,s=lt.expan...
src/js/layout/MainPanel.js
cleberar38/esri-flux-react
import {Map} from 'js/map/Map'; import React from 'react'; export class MainPanel extends React.Component { render () { return ( <div className='app-body'> <Map /> </div> ); } }
app/javascript/mastodon/components/autosuggest_input.js
lindwurm/mastodon
import React from 'react'; import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container'; import AutosuggestEmoji from './autosuggest_emoji'; import AutosuggestHashtag from './autosuggest_hashtag'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from...
ajax/libs/material-ui/4.9.4/es/test-utils/describeConformance.js
cdnjs/cdnjs
import { assert } from 'chai'; import React from 'react'; import findOutermostIntrinsic from './findOutermostIntrinsic'; import ReactTestRenderer from 'react-test-renderer'; import testRef from './testRef'; /** * Glossary * - root component: * - renders the outermost host component * - has the `root` class if t...
src/templates/articles/Articles.js
PatrickHai/react-client-changers
import React from 'react'; import {bindActionCreators} from 'redux'; import {connect} from 'react-redux'; import * as actionCreators from './actionCreators'; import JoinChangers from '../../components/JoinChangers'; import ArticleHeader from './components/ArticleHeader'; import ArticleDes from './components/ArticleDes'...
src/components/__tests__/ui/tab-icon-test.js
arayi/SLions
/** * Test to check if the component renders correctly */ /* global it expect */ import 'react-native'; import React from 'react'; import renderer from 'react-test-renderer'; import TabIcon from '@ui/TabIcon'; it('TabIcon renders correctly', () => { const tree = renderer.create( <TabIcon icon={'help'} selecte...
src/utils/createContextWrapper.js
yickli/react-bootstrap
import React from 'react'; /** * Creates new trigger class that injects context into overlay. */ export default function createContextWrapper(Trigger, propName) { return function (contextTypes) { class ContextWrapper extends React.Component { getChildContext() { return this.props.context; }...
packages/material-ui-icons/src/ShutterSpeedOutlined.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 1H9v2h6V1zm4.03 6.39l1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0-2....
definitions/npm/react-navigation_v3.x.x/test_react-navigation.js
doberkofler/flow-typed
// @flow import type { NavigationScreenProp, } from 'react-navigation'; import { TabNavigator, StackNavigator, DrawerNavigator, } from 'react-navigation'; import React from 'react'; /** * Screens */ const FunctionalScreenComponent = ( { navigation }: { navigation: NavigationScreenProp<*> }, ) => { ret...
lib/codemod/src/transforms/__testfixtures__/storiesof-to-csf/export-names.input.js
storybooks/react-storybook
/* eslint-disable import/no-extraneous-dependencies */ import React from 'react'; import { storiesOf } from '@storybook/react'; import FlexCenter from './FlexCenter'; import { specs, urls } from './LiveView.stories'; import { ignoredRegions } from './IgnoredRegions.stories'; export { specs, urls, ignoredRegions }; st...
src/js/components/icons/base/Layer.js
odedre/grommet-final
/** * @description Layer SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @prop...
docs-ui/components/issueSyncListElement.stories.js
mvaled/sentry
import React from 'react'; import styled from 'react-emotion'; import {storiesOf} from '@storybook/react'; import {withInfo} from '@storybook/addon-info'; import space from 'app/styles/space'; import IssueSyncListElement from 'app/components/issueSyncListElement'; storiesOf('Other|IssueSyncListElement', module) .ad...
src/svg-icons/editor/border-right.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorBorderRight = (props) => ( <SvgIcon {...props}> <path d="M7 21h2v-2H7v2zM3 5h2V3H3v2zm4 0h2V3H7v2zm0 8h2v-2H7v2zm-4 8h2v-2H3v2zm8 0h2v-2h-2v2zm-8-8h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm8 8h2v-2h-2v2zm4-4h...
fluxArchitecture/src/js/components/cart/app-cart-button.js
3mundi/React-Bible
import React from 'react'; export default (props) => { return ( <button className="btn btn-default btn-sm" onClick={ props.handler }> { props.txt } </button> ) }
src/constants/ActionTypes.js
willchertoff/wiki-reference-scrape
/** * 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 keyMirror from 'fbjs/lib/keyMirror'; export defaul...
examples/js/hacker-news/client/ssr.js
reimagined/resolve
import React from 'react' import ReactDOM from 'react-dom/server' import { createResolveStore, ResolveReduxProvider } from '@resolve-js/redux' import { StaticRouter } from 'react-router' import { renderRoutes } from 'react-router-config' import { Helmet } from 'react-helmet' import { StyleSheetManager, ServerStyleSheet...
src/svg-icons/communication/forum.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationForum = (props) => ( <SvgIcon {...props}> <path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"/> </SvgIcon> ); Co...
src/svg-icons/av/playlist-add-check.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPlaylistAddCheck = (props) => ( <SvgIcon {...props}> <path d="M14 10H2v2h12v-2zm0-4H2v2h12V6zM2 16h8v-2H2v2zm19.5-4.5L23 13l-6.99 7-4.51-4.5L13 14l3.01 3 5.49-5.5z"/> </SvgIcon> ); AvPlaylistAddCheck = pure...
ajax/libs/webshim/1.14.6-RC2/dev/shims/es6.js
jamzgoodguy/cdnjs
// ES6-shim 0.8.0 (c) 2013 Paul Miller (paulmillr.com) // ES6-shim may be freely distributed under the MIT license. // For more details and documentation: // https://github.com/paulmillr/es6-shim/ webshim.register('es6', function($, webshim, window, document, undefined){ 'use strict'; var isCallableWithoutNew = fun...
pootle/static/js/shared/components/FormElement.js
iafan/zing
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import FormCheckedInput from '...
src/components/side-bar/index.js
chenchenyuyu/zhihuDaily-react
import React from 'react'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import CYComponent from '../base/index'; import { toggleSidebar } from '../../redux/actions/index'; import './style.less'; import Img from '../list-default/images/chenyu.png'; // 模拟侧边栏的数据 const sideRes = [ { na...
app/containers/App/index.js
guruganeshm/ReactJs
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) */ import React from 'react'; import Helmet from 'react-helmet'; import styled from 'styled-components'; import Header from 'components/Header';...
client/components/Header.js
glenrage/another-chance
import React from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; const LoggedOutView = props => { if (!props.currentUser) { return ( <ul className="nav navbar-nav navbar-right"> <li className="nav-item"> <Link to="/" className="nav-link"> ...
js/about/index.js
JenningsWu/Chaldea-archives
/** * @flow */ import React from 'react' import { View, Text, Linking, Alert, ScrollView, } from 'react-native' import { List, ListItem, } from 'react-native-elements' import { StackNavigator } from 'react-navigation' import Icon from 'react-native-vector-icons/FontAwesome' import NgaReference from '....
lib/components/file-title.js
danjwinter/note-taker
import React from 'react'; import path from 'path'; module.exports = (file) => { if (file) { const fileName = path.basename(file.fileName); return ( <h3>{fileName}</h3> ); } };
src/svg-icons/social/people.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPeople = (props) => ( <SvgIcon {...props}> <path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2....
tools/template/index/container/index.js
SteamerTeam/steamer-react
import React, { Component } from 'react'; import Connect from '../connect/connect'; import { } from 'page/common/constants/cgiPath'; import { } from '../constants/constants'; import './index.less'; class Wrapper extends Component { constructor(props, context) { super(props, context); this.state = {}; } c...
ajax/libs/x-editable/1.4.5/jquery-editable/js/jquery-editable-poshytip.js
menuka94/cdnjs
/*! X-editable - v1.4.5 * In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery * http://github.com/vitalets/x-editable * Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */ /** Form with single input element, two buttons and two states: normal/loading. Applied as jQuery method to DIV tag (not to for...
src/svg-icons/av/high-quality.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvHighQuality = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 11H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm7-1c0 .55-.45 1-1 1h-.75v1.5h-1....
packages/material-ui-icons/src/PhoneForwardedTwoTone.js
lgollut/material-ui
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M15.2 18.21c1.21.41 2.48.67 3.8.76v-1.5c-.88-.07-1.75-.22-2.6-.45l-1.2 1.19zM6.54 5h-1.5c.09 1.32.34 2.58.75 3.79l1.2-1.21c-.24-.83-.39-1.7-.45-2.58z" opacity=".3" /><path d="M20 ...
src/components/Loader/index.js
apedyashev/react-universal-jobs-aggregator
// libs import React from 'react'; export default function Loader() { return ( <div> <h1>Loading...</h1> </div> ); } Loader.propTypes = {};
src/routes.js
reggi/react-shopify-app
import React from 'react'; import {IndexRoute, Route} from 'react-router'; import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth'; import { App, Chat, Home, Widgets, About, Login, LoginSuccess, Survey, NotFound, Uploader } from 'containers'; export def...
src/view/expression.js
blgm/convulator
import React from 'react' import { TransitionGroup, CSSTransition } from 'react-transition-group' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { Token } from './token' import { Number } from './number' import { style } from 'typestyle' export const expressionStyle = style({ display...
test/specs/views/Comment/CommentAvatar-test.js
vageeshb/Semantic-UI-React
import faker from 'faker' import React from 'react' import * as common from 'test/specs/commonTests' import CommentAvatar from 'src/views/Comment/CommentAvatar' describe('CommentAvatar', () => { common.isConformant(CommentAvatar) describe('src', () => { it('renders img', () => { const url = faker.image...
jqwidgets/jqwidgets-react/react_jqxbargauge.js
UCF/IKM-APIM
/* jQWidgets v5.6.0 (2018-Feb) Copyright (c) 2011-2017 jQWidgets. License: https://jqwidgets.com/license/ */ import React from 'react'; const JQXLite = window.JQXLite; export const jqx = window.jqx; export default class JqxBarGauge extends React.Component { componentDidMount() { let options = this.manag...
src/helpers/__tests__/makeRouteHooksSafe-test.js
JohnKim/io.stalk.chat
import { expect } from 'chai'; import React from 'react'; import { IndexRoute, Route } from 'react-router'; import makeRouteHooksSafe from '../makeRouteHooksSafe'; describe('makeRouteHooksSafe', () => { it('should work with JSX routes', () => { const onEnter = () => { throw new Error('Shouldn\'t call onEn...