path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
node_modules/react-icons/io/social-windows-outline.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const IoSocialWindowsOutline = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m33.8 22h-16.9v11.6l16.9 2.5v-14.1z m1.2-1.3v16.8l-19.4-2.8v-14h19.4z m-21.9 1.3h-11.8v9.3l11.8 1.7v-11z m1.3-1.3v13.8l-14.4-2.1v-11.7h14.4z m19.4-16.8l-...
src/Affix.js
xiaoking/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import AffixMixin from './AffixMixin'; const Affix = React.createClass({ mixins: [AffixMixin], render() { let holderStyle = { top: this.state.affixPositionTop, // we don't want to expose the `style` property ...this.props.style...
src/app/screens/App/index.js
docgecko/react-alt-firebase-starter
/*! React Alt Firebase Starter */ import React from 'react'; import { Route } from 'react-router'; import App from './shared/Layout/components/Layout'; import DashboardRoute from './screens/Dashboard/index'; export default ( <Route name='app' path='/' handler={App}> {DashboardRoute} </Route> );
client/src/javascript/components/torrent-list/TorrentDetail.js
stephdewit/flood
import {FormattedDate, FormattedMessage, FormattedNumber} from 'react-intl'; import React from 'react'; import CalendarCreatedIcon from '../icons/CalendarCreatedIcon'; import CalendarIcon from '../icons/CalendarIcon'; import Checkmark from '../icons/Checkmark'; import ClockIcon from '../icons/ClockIcon'; import Commen...
src/components/App.js
swan0/react-pages-boilerplate
import { HashRouter, Route, Switch } from 'react-router-dom' import HomePage from '../components/pages/HomePage2' import React from 'react' export default () => ( <HashRouter> <Switch> <Route exact path="/" component={HomePage} /> </Switch> </HashRouter> )
react/reactRedux/redux-master/examples/todos-with-undo/src/containers/UndoRedo.js
huxinmin/PracticeMakesPerfect
import React from 'react' import { ActionCreators as UndoActionCreators } from 'redux-undo' import { connect } from 'react-redux' let UndoRedo = ({ canUndo, canRedo, onUndo, onRedo }) => ( <p> <button onClick={onUndo} disabled={!canUndo}> Undo </button> <button onClick={onRedo} disabled={!canRedo}>...
test/helpers/shallowRenderHelper.js
yuohuo/gallery-react
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
frontend/src/components/guilds_table.js
b1naryth1ef/rowboat
import React, { Component } from 'react'; import { state, VIEWS } from '../state'; import { Link } from 'react-router-dom'; import {globalState} from '../state'; import sortBy from 'lodash/sortBy'; class GuildTableRowActions extends Component { render(props, state) { let parts = []; parts.push( <Link ...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DestructuringAndAwait.js
cr101/create-react-app
/** * 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. */ import Rea...
client/screens/Users/UserSignInPending/index.js
brewsoftware/hang-ten
import React from 'react'; import UsersNavBar from '../components/UsersNavBar'; export default () => ( <UsersNavBar label="Signing In" screen="user/signingin" /> );
lib/src/app.js
SerendpityZOEY/Solr-Search-React-UI
import React from 'react'; import ReactDOM from 'react-dom'; import SolrConnector from 'react-solr-connector'; import Navbar from './navbar.js'; import baseTheme from 'material-ui/styles/baseThemes/lightBaseTheme'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import injectTapEventPlugin from 'react-tap-eve...
app/javascript/mastodon/components/load_gap.js
gol-cha/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, defineMessages } from 'react-intl'; import Icon from 'mastodon/components/icon'; const messages = defineMessages({ load_more: { id: 'status.load_more', defaultMessage: 'Load more' }, }); export default @injectIntl class LoadGap exte...
src/js/components/TableRow.js
linde12/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../utils/CSSClassnames'; const CLASS_ROOT = CSSClassnames.TABLE_ROW; export default class TableRow extends...
mobile/js/features/home/index.js
lovelypig5/mock-server
import React from 'react'; import { Text, View } from 'react-native'; import styles from '../../styles'; class Home extends React.Component { constructor() { super(); this.state = { updates: { title: "", content: [] } } }...
src/components/NotFound.js
iWader/website
// @flow import React, { Component } from 'react'; export default class NotFound extends Component { render() { return ( <h1>Whoops, this is missing</h1> ); } }
node_modules/react-icons/io/android-laptop.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoAndroidLaptop = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m34.1 32.5h5.9c0 1.8-5 2.5-7.5 2.5h-25c-2.5 0-7.5-0.7-7.5-2.5h5.9c-1.8 0-3.4-1.6-3.4-3.4v-20.7c0-1.8 1.6-3.4 3.4-3.4h28.2c1.8 0 3.4 1.6 3.4 3.4v20.7c0 1.8-1.6 3...
src/interface/others/ChangelogTab.js
fyruna/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import Changelog from 'interface/home/Changelog/SpecSpecificPanel'; const ChangelogTab = (_, { config }) => <Changelog changelog={config.changelog} />; ChangelogTab.contextTypes = { config: PropTypes.object.isRequired, }; export default ChangelogTab;
src/components/Main.js
lynnaloo/mullet
import React from 'react'; import ReactDOM from 'react-dom'; import Facebook from './Facebook'; ReactDOM.render( <Facebook title="Welcome to the Mullet Stack." subtitle="Facebook in the front. Walmart in the back." />, document.getElementById('facebook') );
client/my-sites/invites/utils.js
mmmavis/mofo-calypso
/** * Internal dependencies */ import React from 'react'; import get from 'lodash/object/get' /** * Internal dependencies */ import i18n from 'lib/mixins/i18n'; export default { acceptedNotice( invite, displayOnNextPage = true ) { let takeATour = ( <p className="invite-message__intro"> { i18n.trans...
src/svg-icons/social/public.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPublic = (props) => ( <SvgIcon {...props}> <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 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9...
web/src/js/__tests__/components/ContentView/DownloadContentButtonSpec.js
ddworken/mitmproxy
import React from 'react' import renderer from 'react-test-renderer' import DownloadContentButton from '../../../components/ContentView/DownloadContentButton' import { TFlow } from '../../ducks/tutils' let tflow = new TFlow() describe('DownloadContentButton Component', () => { it('should render correctly', () => {...
fields/types/imagerelationship/ImageRelationshipFilter.js
nickhsine/keystone
import async from 'async'; import React from 'react'; import xhr from 'xhr'; import { FormField, FormInput, SegmentedControl } from 'elemental'; import PopoutList from '../../../admin/client/components/PopoutList'; const TOGGLE_OPTIONS = [ { label: 'Linked To', value: false }, { label: 'NOT Linked To', value: true...
frontend/ext/packages/sencha-core/src/GlobalEvents.js
tlaitinen/sms
/** * An `{@link Ext.mixin.Observable Observable}` through which Ext fires global events. * * Ext.on() and Ext.un() are shorthand for {@link #addListener} and {@link #removeListener} * on this Observable. For example, to listen for the idle event: * * Ext.on('idle', function() { * // do something ...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/NoExtInclusion.js
viankakrisna/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import aFileWithoutExt from './assets/aFileWithoutExt'; const text = aFileWithoutExt.includes('base64') ? ...
node_modules/react/lib/ReactDefaultInjection.js
belongco/react-multi-select-dropdown
/** * 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. * * @providesModule ...
healthsurvey/src/main/webapp/ext/packages/ext-charts/build/ext-charts-debug.js
applifireAlgo/appApplifire
/** * @class Ext.chart.Callout * A mixin providing callout functionality for Ext.chart.series.Series. */ Ext.define('Ext.chart.Callout', { /* Begin Definitions */ /* End Definitions */ constructor: function(config) { if (config.callouts) { config.callouts.styles = Ext.applyIf(confi...
frontend/src/components/username-history/list-preview.js
1905410/Misago
import React from 'react'; import ChangePreview from 'misago/components/username-history/change-preview'; // jshint ignore:line export default class extends React.Component { shouldComponentUpdate() { return false; } render () { /* jshint ignore:start */ return <div className="username-history ui-pr...
packages/material-ui-icons/src/TrendingFlat.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M22 12l-4-4v3H3v2h15v3z" /></g> , 'TrendingFlat');
docs/src/app/components/pages/components/FloatingActionButton/Page.js
lawrence-yu/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 floatingButtonReadmeText from './README'; import floatingButtonExampleSim...
ajax/libs/yasqe/1.5.3/yasqe.bundled.min.js
amoyeh/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)...
V6ValidationTool_dist/summary/src/Recharts.min.js
WIStCart/V3ValidationTool
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("prop-types"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["prop-types","react","react-dom"],e):"object"==typeof exports?exports.Recharts=e(require("prop-types"),require("react"),require("re...
ajax/libs/material-ui/4.9.3/esm/Paper/Paper.js
cdnjs/cdnjs
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; import _extends from "@babel/runtime/helpers/esm/extends"; import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import withStyles from '../styles/withStyles'; export var styles = function styles...
components/list/ListItemContent.js
react-toolbox/react-toolbox
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { themr } from 'react-css-themr'; import { LIST } from '../identifiers'; import InjectListItemText from './ListItemText'; const types = ['auto', 'normal', 'large']; const factory = (ListItemText) ...
demo/presentation.js
havster09/react-aliens
import React, { Component } from 'react'; import Intro from './intro'; import Game from './game'; export default class Presentation extends Component { handleStart = () => { this.setState({ gameState: 1, levelIndex:0 }); }; handleDone = () => { this.setState({ gameState: 1 })...
src/svg-icons/image/center-focus-strong.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCenterFocusStrong = (props) => ( <SvgIcon {...props}> <path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm-7 7H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V...
src/routes/error/ErrorPage.js
kevinchau321/TReactr
/** * 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 PropTypes from 'prop-...
files/vue/1.0.28/vue.common.js
barisaydinoglu/jsdelivr
/*! * Vue.js v1.0.28 * (c) 2016 Evan You * Released under the MIT License. */ 'use strict'; function set(obj, key, val) { if (hasOwn(obj, key)) { obj[key] = val; return; } if (obj._isVue) { set(obj._data, key, val); return; } var ob = obj.__ob__; if (!ob) { obj[key] = val; retur...
addons/content-browse/ui/src/main/js/app.js
Commonjava/indy
/* * Copyright (C) 2011-2020 Red Hat, Inc. (https://github.com/Commonjava/indy) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 ...
src/parser/priest/holy/modules/core/HolyWordsReductionBySpell.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import HolyWordSanctify from 'parser/priest/holy/modules/spells/holyword/HolyWordSanctify'; import HolyWordChastise from 'parser/priest/holy/modules/spells/holyword/HolyWordChastise'; import HolyWordSalvation from 'parser/priest/holy/modules/spells...
client/src/components/QueriesComponent.js
krzysztofkolek/github-bugtracker
'use strict'; require('styles//Queries.css'); import React from 'react'; import { connect } from "react-redux" @connect((store) => { return { }; }) class QueriesComponent extends React.Component { propTypes: { } defaultProps: { } constructor(props) { super(props); } render() { retu...
src/components/FolderContents.js
robshocks/frontboost
import React from 'react'; import Card from './Card'; import { connect } from 'react-redux'; import fuzzysearch from 'fuzzysearch'; import { Link } from 'react-router'; const matches = (filter, processes) => fuzzysearch(filter, card.front) || fuzzysearch(filter, card.back); {/* const mapStateToProps = ({ cards, c...
fields/types/geopoint/GeoPointField.js
kumo/keystone
import Field from '../Field'; import React from 'react'; import { FormRow, FormField, FormInput } from 'elemental'; module.exports = Field.create({ displayName: 'GeopointField', focusTargetRef: 'lat', valueChanged (which, event) { this.props.value[which] = event.target.value; this.props.onChange({ path: t...
src/start/CompatibilityScreen.js
Sam1301/zulip-mobile
/* @flow */ import React, { PureComponent } from 'react'; import { StyleSheet, Text, View } from 'react-native'; import { Logo } from '../common'; import { BRAND_COLOR } from '../styles'; const styles = StyleSheet.create({ screen: { flex: 1, justifyContent: 'center', backgroundColor: BRAND_COLOR, }, ...
packages/material-ui-icons/src/SupervisorAccountSharp.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="M16.5 12c1.38 0 2.49-1.12 2.49-2.5S17.88 7 16.5 7 14 8.12 14 9.5s1.12 2.5 2.5 2.5zM9 11c1.66 0 2.99-1.34 2.99-3S10.66 5 9 5 6 6.34 6 8s1.34 3 3 ...
node_modules/react-bootstrap/es/NavbarCollapse.js
chenjic215/search-doctor
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 ...
frontend/src/components/common/Topbar.js
dimkarakostas/unimeet
import React, { Component } from 'react'; import {Navbar} from 'react-bootstrap'; import {WelcomeTopMenu} from '../welcome'; import {ChatTopMenu} from '../chat'; import logo from './img/unimeetLogo.png'; import './styles.css'; class Topbar extends Component { forgot() { this.refs.welcometopmenu.forgot(); ...
node_modules/react-bootstrap/lib/Grid.js
Crisa221/Lista-Giocatori
'use strict'; exports.__esModule = true; var _extends2 = require('babel-runtime/helpers/extends'); var _extends3 = _interopRequireDefault(_extends2); var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties'); var _objectWithoutProperties3 = _interopRequireDefault(_objectWithoutProper...
src/Main/EventsTab.js
Yuyz0112/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPELLS from 'common/SPELLS'; import Icon from 'common/Icon'; import { formatThousands } from 'common/format'; import './EventsTab.css'; function formatDuration(duration) { const sumSeconds = duration / 1000; const seconds = (sumSeconds % 60); ...
src/index.js
johnbrowe/barnanavn
import React from 'react' import ReactDOM from 'react-dom' import {BrowserRouter} from 'react-router-dom' import App from './App' import {Provider} from 'react-redux' import registerServiceWorker from './registerServiceWorker' import store from './store' // Add all changes to localstorage store.subscribe(() => { l...
src/parser/rogue/assassination/modules/talents/Nightstalker.js
fyruna/WoWAnalyzer
import React from 'react'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER'; import ItemDamageDone from 'interface/others/ItemDamageDone'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { formatPer...
ajax/libs/core-js/0.9.12/core.js
2947721120/cdnjs
/** * Core.js 0.9.12 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 Denis Pushkarev */ !function(undefined){ 'use strict'; var __e = null, __g = null; /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /*****...
src/js/components/Nav/stories/OnHeader.js
grommet/grommet
import React from 'react'; import { Avatar, Anchor, Box, Header, Nav } from 'grommet'; const items = [ { label: 'HTML', href: '#' }, { label: 'JS', href: '#' }, { label: 'CSS', href: '#' }, { label: 'REACT', href: '#' }, ]; const gravatarSrc = '//s.gravatar.com/avatar/b7fb138d53ba0f573212ccce38a7c43b?s=80'...
app/components/EditAdmins/index.js
theClubhouse-Augusta/JobWeasel-FrontEnd
/** * * EditAdmins * */ import React from 'react'; import './style.css'; import './styleM.css'; export default class EditAdmins extends React.PureComponent { constructor () { super (), this.state = { users: [], notification: "", } } componentWillMount() { this.getUsers(); } ge...
packages/mx/src/compiler/document.js
aviasales/mx
module.exports = { Document: ({node, compile, scope, source, options}) => { const children = node.children.map(child => compile(child)) let props = source`` if (scope.props.size > 0) { props = source`{${[...scope.props]}}` } const imports = source`${scope.getImports()}` const func = op...
components/Deck/Presentation/Presentation.js
slidewiki/slidewiki-platform
import React from 'react'; import PropTypes from 'prop-types'; import { handleRoute } from 'fluxible-router'; import PresentationSlide from './PresentationSlide'; import { connectToStores } from 'fluxible-addons-react'; import { Microservices } from '../../../configs/microservices'; import PresentationStore from '../.....
files/wordpress/3.7.1/js/jquery/jquery.js
shumes/jsdelivr
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license */ (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=f.trim,x=function(e,t){return new x.fn.ini...
app/javascript/mastodon/components/autosuggest_emoji.js
lynlynlynx/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import unicodeMapping from '../features/emoji/emoji_unicode_mapping_light'; import { assetHost } from 'mastodon/utils/config'; export default class AutosuggestEmoji extends React.PureComponent { static propTypes = { emoji: PropTypes.object.isRequire...
tests/components/HelpTabs.spec.js
tenshiemi/DoDidDone
import React from 'react'; import { HelpTabs } from 'components/HelpTabs'; import { shallow } from 'enzyme'; describe('(Component) HelpTabs', () => { let _wrapper; beforeEach(() => _wrapper = shallow(<HelpTabs/>)); it('Renders a help tab container', () => { const tabsContainer = _wrapper.find('Tabs'); ...
packages/material-ui-icons/src/MyLocationOutlined.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c....
src/client/index.js
ThinkingInReact/ThinkingInReact
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router } from 'react-router'; import createBrowserHistory from 'history/lib/createBrowserHistory' import App from 'containers//App'; import routes from 'routes//'; import configureStore from './store'; const...
packages/benchmarks/src/implementations/aphrodite/View.js
styled-components/styled-components
/* eslint-disable react/prop-types */ import React from 'react'; import { css, StyleSheet } from 'aphrodite/no-important'; const baseStyles = StyleSheet.create({ base: { alignItems: 'stretch', borderWidth: 0, borderStyle: 'solid', boxSizing: 'border-box', display: 'flex', flexBasis: 'auto', ...
ajax/libs/yui/3.9.0pr3/scrollview-base/scrollview-base.js
dakshshah96/cdnjs
YUI.add('scrollview-base', function (Y, NAME) { /** * The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators * * @module scrollview * @submodule scrollview-base */ // Local vars var getClassName = Y.ClassNameManager.getClassName, DOCUMENT = Y.config.doc, IE = Y.UA.ie...
src/components/users/UserConnectProgress.js
secretin/secretin-app
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Statuses } from 'utils/secretin'; import { connect } from 'react-redux'; const { DecryptMetadataStatus } = Statuses; class UserConnectProgress extends Component { static propTypes = { show: PropTypes.bool, message: PropTy...
ReactApp/db.ios.js
johnsiwicki/tbsrn
/** * Global DB Functions * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ 'use strict'; /* ============================== Initialise App =============================== */ // React // import React, { Component } from 'react'; // 3rd Party Components import RNDBMo...
test/DropdownSpec.js
xiaoking/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Dropdown from '../src/Dropdown'; import DropdownMenu from '../src/DropdownMenu'; import MenuItem from '../src/MenuItem'; import { shouldWarn } from './helpers'; import keycode from 'keycode'; class CustomMenu extends React.Compone...
src/docs/components/chart/ChartExamplesDoc.js
grommet/grommet-docs
// (C) Copyright 2014-2017 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Chart, { Area, Line, Bar, Axis, Base, Grid, HotSpots, Layers, Marker, MarkerLabel, Range } from 'grommet/components/chart/Chart'; import Value from 'grommet/components/Value'; import Box from 'gr...
src/scenes/home/components/filters/index.js
bobinette/papernet-front
import PropTypes from 'prop-types'; import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { List, Map } from 'immutable'; import classNames from 'classnames'; import './filters.scss'; const f = (tag, filters, onFilterChange) => () => { const tags = filters.get('tags') || Lis...
website-source/_build/html/_static/jquery-1.11.1.js
timeyyy/dota2-settings-tweaker
/*! * jQuery JavaScript Library v1.11.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2014-05-01T17:42Z */ (function( global, factory ) { if ...
src/routes/RequestPayment/components/AttachDocumentsForAnaesthetist.js
vijayasankar/ML2.0
import AttachDocumentField from 'components/AttachDocumentField' import Col from 'react-bootstrap/lib/Col' import React from 'react' import Row from 'react-bootstrap/lib/Row' import { reduxForm } from 'redux-form' export class AttachDocuments extends React.Component { constructor (props) { super(props) this....
src/svg-icons/device/signal-cellular-3-bar.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellular3Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/><path d="M17 7L2 22h15z"/> </SvgIcon> ); DeviceSignalCellular3Bar = pure(DeviceSignalCellular3Bar); DeviceS...
docs/app/Examples/elements/List/Variations/index.js
shengnian/shengnian-ui-react
import React from 'react' import { Message } from 'shengnian-ui-react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const ListVariations = () => ( <ExampleSection title='Types'> <ComponentExample ...
public/javascripts/select_content_dialog.js
utkarshx/canvas-lms
/** * Copyright (C) 2011 Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distributed in the...
node_modules/react-router/es6/Lifecycle.js
Technaesthetic/ua-tools
import warning from './routerWarning'; import React from 'react'; import invariant from 'invariant'; var object = React.PropTypes.object; /** * The Lifecycle mixin adds the routerWillLeave lifecycle method to a * component that may be used to cancel a transition or prompt the user * for confirmation. * * On stan...
src/dataTypes/Arr.js
mrose/react-dump
import React from 'react'; import { renderElement ,Row, Table } from '../format'; export const Arr = ( props ) => { const obj = props.obj || { } const opts = props.opts || { expand:true , format:'html' , label:'Array' } c...
ajax/libs/material-ui/5.0.0-alpha.12/es/ListItemIcon/ListItemIcon.js
cdnjs/cdnjs
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import * as React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import withStyles from '../styles/withStyles'; import ListContext f...
src/routes/UIElement/layer/index.js
shaohuawang2015/goldbeans-admin
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={{ height:...
examples/with-react-i18next/components/ExtendedComponent.js
callumlocke/next.js
import React from 'react' import { translate } from 'react-i18next' function MyComponennt ({ t }) { return ( <div> {t('extendedComponent')} </div> ) } const Extended = translate('common')(MyComponennt) export default Extended
src/views/components/AutomationEditScreen.js
physiii/home-gateway
import React from 'react'; import PropTypes from 'prop-types'; import {Switch, Redirect, Link} from 'react-router-dom'; import {Route, withRoute} from './Route.js'; import NavigationScreen from './NavigationScreen.js'; import SettingsScreenContainer from './SettingsScreenContainer.js'; import Button from './Button.js';...
node_modules/react-icons/fa/try.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const FaTry = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m32.7 18.6q0 4.2-2.1 7.8t-5.7 5.8-7.9 2.1h-3.6q-0.3 0-0.5-0.2t-0.2-0.5v-13.7l-4.8 1.5q0 0-0.2 0-0.2 0-0.4-0.1-0.3-0.2-0.3-0.6v-2.8q0-0.6 0.5-0.7l5.2-1.6v-2.1l-4.8 1.5q0 0...
ajax/libs/jquery.fancytree/2.5.1-0/jquery.fancytree.min.js
Rich-Harris/cdnjs
/*! * jquery.fancytree.js * Dynamic tree view control, with support for lazy loading of branches. * https://github.com/mar10/fancytree/ * * Copyright (c) 2006-2014, Martin Wendt (http://wwWendt.de) * Released under the MIT license * https://github.com/mar10/fancytree/wiki/LicenseInfo * * @version 2.5.0 * @dat...
src/api/Animated/createAnimatedComponent.js
Root-App/react-native-mock-render
import React from 'react'; import PropTypes from 'prop-types'; function createAnimatedComponent(Component) { class AnimatedComponent extends React.Component { static propTypes = { children: PropTypes.node, } setNativeProps() { } render() { return ( <Component ref={...
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-bricks-table-tfoot.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, ContentMixin, ColorSchemaMixin, Tools} from './../common/common.js'; import './table-tfoot.less'; export default React.createClass({ //@@viewOn:mixins mixins: [ BaseMixin, ElementaryMixin, ContentMixin, ColorSchemaMixin ], //@@vie...
core/built/public/jquery.js
lugnitdgp/blog
/*! * jQuery JavaScript Library v1.11.0 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2014-01-23T21:02Z */ (function( global, factory ) { if ...
packages/material-ui-icons/src/NearbyErrorTwoTone.js
callemall/material-ui
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M12 7.57l4.42 4.42L12 16.41l-4.42-4.42L12 7.57zm0 11.62l-7.2-7.2 7.2-7.2 6 6V7.16l-4.58-4.58c-.78-.78-2.05-.78-2.83 0l-8.01 8c-.78.78-.78 2.05 0 2.83l8.01 8c.78.78 2.05.78 2.83 0L18 16.82v-3.63l-...
ajax/libs/highmaps/1.1.6/highmaps.src.js
sufuf3/cdnjs
// ==ClosureCompiler== // @compilation_level SIMPLE_OPTIMIZATIONS /** * @license Highmaps JS v1.1.6 (2015-06-12) * * (c) 2009-2014 Torstein Honsi * * License: www.highcharts.com/license */ // JSLint options: /*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clearTi...
native/MessageList/MessageList.js
Detaysoft/react-chat-elements
import React, { Component } from 'react'; import styles from './MessageListStyle.js'; import Avatar from '../Avatar/Avatar'; import MessageBox from '../MessageBox/MessageBox'; import { ScrollView, } from 'react-native'; export class MessageList extends Component { constructor(props) { super(props); ...
ajax/libs/places.js/0.31.0/places.js
cdnjs/cdnjs
/*! 0.31.0 | © Algolia | github.com/algolia/places */ (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'...
ajax/libs/yui/3.1.1/event-custom/event-custom-debug.js
DDMAL/cdnjs
YUI.add('event-custom-base', function(Y) { /** * 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. * @module e...
app/components/PrimaryBlock/PrimaryBlock.js
klpdotorg/tada-frontend
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; import isEmpty from 'lodash.isempty'; import { Spinner } from '../../containers/common'; import { EditBlock } from '../../containers/PrimaryBlock'; import { CreateCluster } from '../../containers/PrimaryCluster'; const...
app.js
littlethree/demo
/** * Created by raojia on 16/8/22. */ 'use strict'; import React, { Component } from 'react'; import { Navigator, Platform, BackHandler, ToastAndroid, } from 'react-native'; import Home from './app/swiper'; class App extends Component { componentWillMount() { if (Platform.OS === 'android') { ...
app/javascript/mastodon/features/account_timeline/components/moved_note.js
MastodonCloud/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import AvatarOverlay from '../../../components/avatar_overlay'; import DisplayNam...
node_modules/semantic-ui-react/dist/es/modules/Modal/ModalDescription.js
mowbell/clickdelivery-fed-test
import _extends from 'babel-runtime/helpers/extends'; import cx from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { customPropTypes, getElementType, getUnhandledProps, META } from '../../lib'; /** * A modal can have a header. */ function ModalDescription(props) { var childre...
packages/mineral-ui-icons/src/IconTurnedInNot.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconTurnedInNot(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconPr...
files/core-js/0.9.8/library.js
as-com/jsdelivr
/** * Core.js 0.9.8 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 Denis Pushkarev */ !function(undefined){ 'use strict'; var __e = null, __g = null; /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******...
src/containers/OpenBoard.js
fazo96/ipfs-boards
import React from 'react' import { connect } from 'react-redux' import OpenBoardForm from '../components/OpenBoardForm' import { openBoard } from '../actions/board' function OpenBoard(props) { return <OpenBoardForm {...props} /> } function mapStateToProps(state){ return { opening: state.openBoard.open...
src/icons/font/PhotoIcon.js
skystebnicki/chamel
import React from 'react'; import PropTypes from 'prop-types'; import FontIcon from '../../FontIcon'; import ThemeService from '../../styles/ChamelThemeService'; /** * Photo button * * @param props * @param context * @returns {ReactDOM} * @constructor */ const PhotoIcon = (props, context) => { let theme = ...
app/scenes/NoMatch/index.js
jcarva/cursos_ufpb_client
import React from 'react'; export default () => ( <div> <h1>No Match</h1> </div> );
packages/material-ui-icons/src/ViewListRounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" opacity=".87" /><g><path d="M4 14h2c.55 0 1-.45 1-1v-2c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v2c0 .55.45 1 1 1zm0 5h2c.55 0 1-.45 1-1v-2c0-.55-.45-1-1-1H4c-.55...
public/js/cat_source/es6/components/header/cattol/bulk_selection_bar/BulkSelectionBar.js
Ostico/MateCat
import React from 'react' import SegmentConstants from '../../../../constants/SegmentConstants' import SegmentStore from '../../../../stores/SegmentStore' class BulkSelectionBar extends React.Component { constructor(props) { super(props) this.state = { count: 0, segmentsArray: [], changingS...
docs/pages/api/icon.js
kybarg/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './icon.md'; export default function Page() { return <MarkdownDocs markdown={markdown} />; }