path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/containers/BehaviourCategoryPage.js
merrettr/school-ui
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import { fetchBehaviourCategories } from '../actions'; import List from '../components/List'; import ListItem from '../components/ListItem'; import Spinner from '../components/Spinner'; import Hea...
src/About.js
xkawi/create-react-app-now
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; class About extends Component { render() { return ( <div>About page here <Link to='/'>back</Link> | <Link to='/anything'>or Test Not Found Page</Link></div> ); } } export default About;
src/server/helpers/error.js
bookbrainz/bookbrainz-site
/* * Copyright (C) 2015-2016 Sean Burke * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is d...
src/components/Common/List/Components/Scroll/Views/Mobile/tpl.js
LifeSourceUA/lifesource.ua
import React from 'react'; import Swipeable from 'vendor/Swipeable'; import PropTypes from 'prop-types'; import Styles from './Styles/main.scss'; import BP from 'lib/breakpoints'; function Mobile(props) { const { mediaType } = props; const swipeParams = { containerWidth: BP.isPhonePortrait(mediaType)...
packages/@lyra/vision/src/containers/VisionContainer.js
VegaPublish/vega-studio
import React from 'react' import DelayedSpinner from '../components/DelayedSpinner' import ErrorDialog from '../components/ErrorDialog' import VisionGui from '../components/VisionGui' import LoadingContainer from './LoadingContainer' // Loads the most basic data from a Lyra project class VisionContainer extends Loadin...
node_modules/react-router/es/Switch.js
morselapp/shop_directory
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...
src/routes/algorithms/grid.js
loganfreeman/react-is-fun
import React from 'react'; import {GridList, GridTile} from 'material-ui/GridList'; import IconButton from 'material-ui/IconButton'; import Subheader from 'material-ui/Subheader'; import StarBorder from 'material-ui/svg-icons/toggle/star-border'; import {LeftTab, RightTab} from './tabs'; import _ from 'underscore'; ...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/DefaultProps.js
TiddoLangerak/flow
// @flow import React from 'react'; class MyComponent extends React.Component<DefaultProps, Props> { static defaultProps: DefaultProps = {}; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component<DefaultProps, ...
src/client/pages/app/canvas/sensor/ResourceWrapper.js
doemski/cblocks
import React from 'react'; import PropTypes from 'prop-types'; import NumberResource from './resourceWrapper/NumberResource'; import SwitchResource from './resourceWrapper/SwitchResource'; import StringResource from './resourceWrapper/StringResource'; import MultiResource from './resourceWrapper/MultiResource'; import ...
src/routes/notFound/NotFound.js
egut/react-docker-demo
/** * 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-...
node_modules/botpress/lib/cli/templates/create/webpack.js
sanj44/icicibot
var webpack = require('webpack') var nodeExternals = require('webpack-node-externals') var pkg = require('./package.json') var nodeConfig = { devtool: 'source-map', entry: ['./src/index.js'], output: { path: './bin', filename: 'node.bundle.js', libraryTarget: 'commonjs2' }, externals: [nodeExtern...
packages/react-esc-render-jss/src/server.js
TriPSs/react-esc
import React from 'react' import { JssProvider, SheetsRegistry, jss } from 'react-jss' import createGenerateClassName from './utils/createGenerateClassName' import renderHtmlLayout from './utils/renderHtmlLayout' import collapseWhitespace from './utils/collapseWhitespace' export default class JssServer { construc...
src/routes/login/Login.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-...
src/svg-icons/maps/directions-car.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsCar = (props) => ( <SvgIcon {...props}> <path d="M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1...
app/javascript/mastodon/features/compose/components/search_results.js
Chronister/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage, defineMessages, injectIntl } from 'react-intl'; import AccountContainer from '../../../containers/account_container'; import StatusContainer from '../../../containers/sta...
frontend/src/components/controls/ReplayURLBar/index.js
webrecorder/webrecorder
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Form, InputGroup } from 'react-bootstrap'; import { remoteBrowserMod } from 'helpers/utils'; import { InfoWidget, RemoteBrowserSelect } from 'containers'; import TimeFormat from 'components/TimeFormat'; import './style.scss'; c...
ajax/libs/js-data/2.0.0-beta.5/js-data-debug.js
cdnjs/cdnjs
/*! * js-data * @version 2.0.0-beta.5 - Homepage <http://www.js-data.io/> * @author Jason Dobry <jason.dobry@gmail.com> * @copyright (c) 2014-2015 Jason Dobry * @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE> * * @overview Robust framework-agnostic data store. */ (function webpackUnivers...
app/javascript/mastodon/features/enquete/components/enquete_inputs.js
dwango/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; import Collapsable from '../../../components/collapsable'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; const messa...
app/components/FreemouthHeader/index.js
g00dman5/freemouthmedia
/** * * FreemouthHeader * */ import React from 'react'; class FreemouthHeader extends React.PureComponent { constructor(props){ super(props); } render() { const navStyle={ border: "1px solid #bbbbbb", borderRadius:"5px", display: "flex", flexDirection: "row", justifyCont...
stories/components/pages/index.js
one-love/storybook
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import Cluster from './cluster'; import ClusterList from './cluster-list'; import Service from './service'; import ServiceList from './service-list'; import Provision from './provision'; import ProvisionList from './provision-list'; import Login ...
docs/src/app/components/pages/components/RadioButton/ExampleSimple.js
pradel/material-ui
import React from 'react'; import {RadioButton, RadioButtonGroup} from 'material-ui/RadioButton'; import ActionFavorite from 'material-ui/svg-icons/action/favorite'; import ActionFavoriteBorder from 'material-ui/svg-icons/action/favorite-border'; const styles = { block: { maxWidth: 250, }, radioButton: { ...
web/src/components/resourceTypes/index.js
caicloud/cyclone
import React from 'react'; import { Route, Switch } from 'react-router-dom'; import List from './component/List'; import CreateOrUpdate from './component/create'; import Detail from './component/detail'; import PropTypes from 'prop-types'; const Resource = ({ match }) => { return ( <Switch> <Route path="/r...
Realization/frontend/czechidm-acc/src/content/role/RoleSystemTable.js
bcvsolutions/CzechIdMng
import PropTypes from 'prop-types'; import React from 'react'; import uuid from 'uuid'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import _ from 'lodash'; // import { Basic, Advanced, Utils } from 'czechidm-core'; import SearchParameters from 'czechidm-core/src/domain/SearchParamete...
app/imports/client/services/autolink.js
part-up/app
import React from 'react'; import autolinker from 'autolinker'; import openWeb from '/imports/client/services/openWeb'; export default function autolink(source) { const text = autolinker.link(source, { replaceFn: (autolinker, match) => { if (match.getType() === 'url') { const ur...
examples/js/sort/custom-sort-with-extra-data-table.js
echaouchna/react-bootstrap-tab
import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; const qualityType = { 0: 'good', 1: 'bad', 2: 'unknown' }; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId...
examples/src/index.js
nkiateam/polestar-antd
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('app'));
test/PageHeaderSpec.js
JimiHFord/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import PageHeader from '../src/PageHeader'; describe('PageHeader', function () { it('Should output a div with content', function () { let instance = ReactTestUtils.renderIntoDocument( <PageHeader> <strong>Content</str...
app/javascript/mastodon/components/autosuggest_input.js
im-in-space/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...
services/ui/src/pages/backups.js
amazeeio/lagoon
import React from 'react'; import * as R from 'ramda'; import { withRouter } from 'next/router'; import Head from 'next/head'; import { Query } from 'react-apollo'; import MainLayout from 'layouts/MainLayout'; import EnvironmentWithBackupsQuery from 'lib/query/EnvironmentWithBackups'; import BackupsSubscription from 'l...
app/javascript/flavours/glitch/components/avatar.js
im-in-space/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from 'flavours/glitch/util/initial_state'; import classNames from 'classnames'; export default class Avatar extends React.PureComponent { static propTypes = { account...
test/test_helper.js
LucasCaixeta/weather
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
ajax/libs/forerunnerdb/1.3.804/fdb-core+persist.js
sreym/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/js/components/Email/partial/LandingPage.js
ajainsyn/project
import React from 'react'; import emailNotification from '../../../../assets/images/email-notification.jpg'; import SyntaxHighlighter from 'react-syntax-highlighter'; import { githubGist } from 'react-syntax-highlighter/dist/styles'; const LandingPage = ({...props}) => ( <section className="section" id="emai...
ajax/libs/js-data/2.0.0-beta.1/js-data-debug.js
Dervisevic/cdnjs
/*! * js-data * @version 2.0.0-beta.1 - Homepage <http://www.js-data.io/> * @author Jason Dobry <jason.dobry@gmail.com> * @copyright (c) 2014-2015 Jason Dobry * @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE> * * @overview Robust framework-agnostic data store. */ (function webpackUnivers...
Mr.Mining/MikeTheMiner/dist/Santas_helpers/Sia_wallet/resources/app/plugins/Files/js/components/transfersbutton.js
patel344/Mr.Miner
import PropTypes from 'prop-types' import React from 'react' const FileTransfersButton = ({unread, actions}) => { const onTransfersClick = () => actions.toggleFileTransfers() return ( <div className="transfers-button" onClick={onTransfersClick}> <i className="fa fa-bars fa-2x" /> {unread > 0 ? ( <span cl...
app/javascript/mastodon/features/ui/index.js
corzntin/mastodon
import React from 'react'; import classNames from 'classnames'; import Redirect from 'react-router-dom/Redirect'; import NotificationsContainer from './containers/notifications_container'; import PropTypes from 'prop-types'; import LoadingBarContainer from './containers/loading_bar_container'; import TabsBar from './co...
Examples/UIExplorer/AdSupportIOSExample.js
kidaa/react-native
/** * The examples provided by Facebook are for non-commercial testing and * evaluation purposes only. * * Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ...
app/src/index.js
Opentrons/labware
// client entry point and application manifest import React from 'react' import ReactDom from 'react-dom' import { Provider } from 'react-redux' import { createStore, applyMiddleware, compose } from 'redux' import thunk from 'redux-thunk' import { ConnectedRouter, routerMiddleware } from 'connected-react-router' impor...
app/javascript/mastodon/features/ui/util/react_router_helpers.js
mimumemo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { Switch, Route } from 'react-router-dom'; import ColumnLoading from '../components/column_loading'; import BundleColumnError from '../components/bundle_column_error'; import BundleContainer from '../containers/bundle_container'; // Small wrapper t...
ajax/libs/material-ui/4.9.10/Popover/Popover.min.js
cdnjs/cdnjs
"use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard"),_interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.getOffsetTop=getOffsetTop,exports.getOffsetLeft=getOffsetLeft,exports.default=ex...
src/components/ListItem/demo/wanshi1/index.js
lebra/lebra-components
import React, { Component } from 'react'; import ListItem from '../../index'; import { render } from 'react-dom'; import { MockData } from "./mock.js"; import './index.less' export default class ListDemo extends Component{ onClick=()=>{ alert('has clicked'); } getDom = () =>{ let domArr = [...
ReportSystem/src/main/webapp/resources/js/components/index/index.js
LittleLazyCat/TXEY
import './style/index.css' import React from 'react' import { Row, Col } from 'antd'; import SiderMenu from '../common/sidermenu' import AreaStack from '../echarts/areastack' import UserMgt from '../antd/usermgt' import HeatmapCartesian from '../echarts/heatmapcartesian' export default class Index extends React.Compon...
Scenarios/Branding.Themes/Branding.ThemesWeb/Scripts/jquery-1.9.1.min.js
timothydonato/PnP
/* NUGET: BEGIN LICENSE TEXT jQuery v1.9.1 Microsoft grants you the right to use these script files for the sole purpose of either: (i) interacting through your browser with the Microsoft website, subject to the website's terms of use; or (ii) using the files as included with a Microsoft product subject to that produc...
node_modules/react-bootstrap/es/Alert.js
xuan6/admin_dashboard_local_dev
import _Object$values from 'babel-runtime/core-js/object/values'; 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-...
src/components/VotesList/VotesList.js
nambawan/g-old
import React from 'react'; import PropTypes from 'prop-types'; import withStyles from 'isomorphic-style-loader/withStyles'; import cn from 'classnames'; import s from './VotesList.css'; import FetchError from '../FetchError'; import history from '../../history'; import Avatar from '../Avatar'; const onThumbnailClick =...
node_modules/enzyme/test/Debug-spec.js
NathanBWaters/jb_club
import { expect } from 'chai'; import React from 'react'; import { spaces, indent, debugNode, } from '../src/Debug'; import { mount } from '../src/'; import { describeWithDOM, describeIf, itIf, } from './_helpers'; import { REACT013 } from '../src/version'; describe('debug', () => { describe('spaces(n)'...
app/components/Header/UserMenu.js
juanda99/arasaac-frontend
import React from 'react' import PropTypes from 'prop-types' import IconButton from 'material-ui/IconButton' import IconMenu from 'material-ui/IconMenu' import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert' import MenuItem from 'material-ui/MenuItem' import muiThemeable from 'material-ui/styles/muiTheme...
dva/wd/src/components/Card.js
imuntil/React
import React from 'react'; import { Link } from 'dva/router' import styles from './Card.css'; import { IMGURL } from '../constant' import PriceLabel from './PriceLabel' function Card({ customStyle, data: { _id, sku, cn = 'xxx', en = 'xxx', content = 0, truePrice = 100, image1: pic = 'pro1036cfc9-954f-4e2...
libraries/mobx/timer/src/index.js
vivaxy/course
import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import AppState from './AppState'; import App from './App'; import './index.css'; const appState = new AppState(); render(<App appState={appState} />, document.getElementById('root')); if (module.hot) { ...
src/app.js
djyaron/react5
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel/polyfill'; import React from 'react'; import FastClick from 'fastclick'; import emptyFunction from 'react/lib/emptyFunction'; import App from './components/App'; import Dispatcher from './core/Dispatcher'; import AppActions from './...
packages/node_modules/cerebral/src/views/react/Container.js
yusufsafak/cerebral
import React from 'react' import PropTypes from 'prop-types' import { throwError } from '../../utils' class Container extends React.Component { getChildContext() { const { controller } = this.props if (!controller) { throwError('You are not passing controller to Container') } return { controll...
example/example.component.js
kodyl/react-flexr
import { HydrateSSR, Grid, Cell, stylesheet, findMatch, findBreakpoints, optimizedResize } from '../lib'; import Demo from './demo.component'; import React, { Component } from 'react'; import StyleSheet from 'stilr'; export default class Example extends Component { constructor(props) { super(props)...
creditcardsimulation_redux_hooks/src/components/others/login.js
balaSpyrus/code
import React, { Component } from 'react'; class Login extends Component { constructor() { super(); this.state = { username: '', password: '', passwordFieldType: 'password', isSubmitted: false } } handleUserChange = (event) => { ...
target/work/plugins/jquery-1.10.2.2/web-app/js/jquery/jquery-1.10.2.js
redbox-mint-contrib/redbox-rest-api
/*! * jQuery JavaScript Library v1.10.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-07-03T13:48Z */ (function( window, undefined ) { // ...
project/spa/static/spa/js/libs/backbone.paginator/test/vendor/jquery.js
rishatsharafiev/crm
/*! * jQuery JavaScript Library v1.9.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-2-4 */ (function( window, undefined ) { // Can't do t...
browser/scripts/Components/Chat/Sidebar.js
blurrah/WsChat
import React from 'react'; export default class Sidebar extends React.Component { constructor(props) { super(props); } render() { let users; if (this.props.users.length > 0) { users = this.props.users.map((name) => { return <li key={name}><a href="#">{n...
lib/react/react.min.js
librey/front-end-experience
/** * React v0.14.6 * * 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. *...
ajax/libs/react/18.0.0-alpha-75f3ddebf-20211101/umd/react.production.min.js
cdnjs/cdnjs
/** @license React vundefined * react.production.min.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. */ (function(){'use strict';(function(c,y){"object"===typeof exports&&"undefin...
ajax/libs/6to5/2.11.4/browser-polyfill.js
BitsyCode/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...
code/web/node_modules/react-bootstrap/es/HelpBlock.js
zyxcambridge/RecordExistence
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 ...
components/BtnContainer/BtnContainer.js
rdjpalmer/bloom
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import cx from 'classnames'; import css from './BtnContainer.css'; export default class BtnContainer extends Component { static propTypes = { className: PropTypes.string, children: PropTypes.node.isRequired, type: PropTypes.on...
node_modules/react-icons/md/video-library.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const MdVideoLibrary = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m20 24.1l10-7.5-10-7.5v15z m13.4-20.7c1.8 0 3.2 1.4 3.2 3.2v20c0 1.8-1.4 3.4-3.2 3.4h-20c-1.8 0-3.4-1.6-3.4-3.4v-20c0-1.8 1.6-3.2 3.4-3.2h20z m-26.8 6.6v23.4h23....
react/features/base/react/components/native/NavigateSectionListSectionHeader.js
bgrozev/jitsi-meet
// @flow import React, { Component } from 'react'; import Container from './Container'; import styles from './styles'; import Text from './Text'; import type { SetionListSection } from '../../Types'; type Props = { /** * A section containing the data to be rendered */ section: SetionListSection } ...
examples/todomvc/test/components/Header.spec.js
mikekidder/redux
import expect from 'expect' import React from 'react' import TestUtils from 'react-addons-test-utils' import Header from '../../components/Header' import TodoTextInput from '../../components/TodoTextInput' function setup() { const props = { addTodo: expect.createSpy() } const renderer = TestUtils.createRend...
ajax/libs/6to5/1.14.7/browser.js
andersem/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return...
src/browser/app/Header.js
redcom/doctori-romani-in-berlin
// @flow import type { State, User } from '../../common/types'; import React from 'react'; import { Box } from '../../common/components'; import { compose } from 'ramda'; import { connect } from 'react-redux'; type HeaderProps = { viewer: ?User }; const Header = ({ viewer }: HeaderProps) => ( <Box flexWrap="wra...
app/javascript/mastodon/features/notifications/components/filter_bar.js
tateisu/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Icon from 'mastodon/components/icon'; const tooltips = defineMessages({ mentions: { id: 'notifications.filter.mentions', defaultMessage: 'Mentions' }, favourites: { id: '...
src/javascript/index/update_button.js
apertus-open-source-cinema/elmyra
import Octicon, { Alert, Check, CloudUpload, X } from '@primer/octicons-react'; import React from 'react'; export default function UpdateButton({ visualization }) { const uploadSelect = event => { document.getElementById(`${visualization.id}-upload`).click(); event.preventDefault(); }; const uploadFaile...
modules/__tests__/Router-test.js
brownbathrobe/react-router
/*eslint-env mocha */ /*eslint react/prop-types: 0*/ import expect from 'expect' import React from 'react' import createHistory from 'history/lib/createMemoryHistory' import Router from '../Router' import Route from '../Route' describe('Router', function () { let node beforeEach(function () { node = document....
examples/force-suggest.js
eternalsky/select
/* eslint no-console: 0 */ import React from 'react'; import Select, { Option } from 'rc-select'; import 'rc-select/assets/index.less'; import { fetch } from './common/tbFetchSuggest'; import ReactDOM from 'react-dom'; class Search extends React.Component { state = { disabled: false, data: [], value: un...
web-front/js/app.js
yasuhiro-okada-aktsk/sample_rails_react_ssr
import React from 'react'; import ReactDOM, {render} from 'react-dom'; import createRoot from './createRoot'; import CourseListPage from './containers/CourseListPage'; import Calendar from './containers/Calendar'; window.CourseListPage = createRoot(CourseListPage); window.Calendar = createRoot(Calendar);
src/Stepper/StepConnector.spec.js
tan-jerene/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import {PlainStepConnector as StepConnector} from './StepConnector'; import getMuiTheme from '../styles/getMuiTheme'; describe('<StepConnector />', () => { const muiTheme = getMuiTheme(); const themedShal...
imports/plugins/included/social/client/templates/social.js
khayong/reaction
import { Reaction } from "/client/api"; import { Packages } from "/lib/collections"; import { merge } from "lodash"; Template.reactionSocial.onCreated(function () { const self = this; return this.autorun(function () { const subscription = Reaction.Subscriptions.Packages; if (subscription.ready()) { c...
public/javascripts/vendor/jquery.js
laraveltokyo/laravel-forums
/*! * jQuery JavaScript Library v1.10.2 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-07-03T13:48Z */ (function( window, undefined ) { // ...
src/partialApplication/translate.js
xaviervia/react-dream
export default f => reactDream => reactDream.translate(f)
packages/ringcentral-widgets/components/ForwardForm/index.js
u9520107/ringcentral-js-widget
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import isBlank from 'ringcentral-integration/lib/isBlank'; import RecipientsInput from '../RecipientsInput'; import TextInput from '../TextInput'; import Button from '../Button'; import styles from './st...
src/containers/DevTools.js
donnycrash/react-redux-electron-starter-kit
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' export default createDevTools( <DockMonitor toggleVisibilityKey='ctrl-h' changePositionKey='ctrl-q' > <LogMonitor /> </Dock...
ajax/libs/angular-google-maps/2.1.0-X.6/angular-google-maps_dev_mapped.js
bsquochoaidownloadfolders/cdnjs
/*! angular-google-maps 2.1.0-X.6 2015-03-16 * AngularJS directives for Google Maps * git: https://github.com/angular-ui/angular-google-maps.git */ ; (function( window, angular, undefined ){ 'use strict'; /* ! The MIT License Copyright (c) 2010-2013 Google, Inc. http://angularjs.org Permission is hereby grante...
src/scripts/components/card/Card.component.js
kodokojo/kodokojo-ui-commons
/** * Kodo Kojo - Software factory done right * Copyright © 2017 Kodo Kojo (infos@kodokojo.io) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at ...
examples/geo-search/src/index.js
algolia/react-instantsearch
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import 'instantsearch.css/themes/algolia.css'; import './style.css'; ReactDOM.render(<App />, document.getElementById('root'));
src/svg-icons/action/feedback.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFeedback = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"/> </SvgIcon> ); ActionFeedback = pure(Acti...
12_ReactJS Fundamentals/04_routing/src/index.js
akkirilov/SoftUniProject
import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter } from 'react-router-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<BrowserRouter><App /></BrowserRouter>, document.getElementById('root')); registerSe...
src/containers/SideBarButtonsContainer.js
bartw/slidux
import { connect } from 'react-redux'; import { addSlide, openExport, switchTheme, startPresentation, clear } from '../actions'; import SideBarButtons from '../components/SideBarButtons'; const mapStateToProps = (state, ownProps) => { return {}; }; const mapDispatchToProps = (dispatch) => { return { o...
node_modules/react-icons/io/waterdrop.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const IoWaterdrop = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m21.2 3c3.1 3.3 11.3 12.5 11.3 22.5 0 6.7-5.6 12-12.5 12-4.4 0-8.3-2.1-10.5-5.4-0.4-0.7-0.8-1.5-1.1-2.3-0.6-1.3-0.9-2.7-0.9-4.3v-0.3c0.1-5.2 2.4-10.2 5-14.3 1.6-2.4...
node_modules/hjs-webpack/examples/just-assets-no-html/src/Hello.js
Kgiberson/welp
import React from 'react' class Hello extends React.Component { render () { return ( <div className='container'> <header role='banner'> <h1>Assets Only Example</h1> </header> <p>During dev, we just need <em>something</em> to include the script tag:</p> <p><code>&lt...
app/components/Userpic.js
alexindigo/ndash
import React, { Component } from 'react'; import { Image, View } from 'react-native'; import gravatarApi from 'gravatar-api'; export default class Userpic extends Component { render() { const imageUri = gravatarApi.imageUrl({email: this.props.profile.email, secure: true}); return ( <Image st...
node_modules/material-ui/svg-icons/image/navigate-next.js
meetdheeraj/NewsAggregator
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('../../SvgIcon'); var _SvgIcon2 = _interopRequireDe...
examples/time/approot/Scripts/jquery-1.6.4.min.js
maartenba/SignalR.Node
/*! jQuery v1.6.4 http://jquery.com/ | http://jquery.org/license */ (function(a,b){function cu(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cr(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe"...
src/app/components/navbar.js
benigeri/soapee-ui
import React from 'react'; import Reflux from 'reflux'; import cx from 'classnames'; import {Link, State} from 'react-router'; import NavLink from 'components/navLink'; import ButtonUserNotifications from 'components/buttonUserNotifications'; import authStore from 'stores/auth'; export default React.createClass( { ...
wrappers/toml.js
simonrose121/portfolio
import React from 'react' import toml from 'toml-js' import DocumentTitle from 'react-document-title' import { config } from 'config' module.exports = React.createClass({ propTypes () { return { route: React.PropTypes.object, } }, render () { const data = this.props.route.page.data return (...
src/frontend/pages/About.js
pantao/hapi-react-isomorphic-boilerplate
import React, { Component } from 'react'; import { Link } from 'react-router'; import Helmet from 'react-helmet'; const startDevelopOnOSXBash = `# 安装 homebrew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" # 使用 brew 安装 wget brew install wget # 安装 MongoDB brew insta...
app/javascript/mastodon/features/compose/index.js
pixiv/mastodon
import classNames from 'classnames'; import React from 'react'; import ComposeFormContainer from './containers/compose_form_container'; import NavigationContainer from './containers/navigation_container'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } ...
admin/client/App/screens/List/components/Filtering/ListFiltersAdd.js
brianjd/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import Transition from 'react-addons-css-transition-group'; import classnames from 'classnames'; import ListFiltersAddForm from './ListFiltersAddForm'; import Popout from '../../../../shared/Popout'; import PopoutList from '../../../../shared/Popout/P...
nlyyAPP/component/揭盲/揭盲申请/单个受试者特定揭盲/MLDgssztdjmLB.js
a497500306/nlyy_APP
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, TouchableOpacity, Navigator, TextInput, ActivityIndicator, Alert, ListView, } from 'react-native'; var ...
packages/carbon-react/src/components/Tooltip/Tooltip.stories.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import { Tooltip, Button } from 'carbon-components-react'; import { OverflowMenuVertical16 } from '@carbon/icons-react'; import React from 'r...
spec/javascripts/jsx/blueprint_courses/components/LockBannerSpec.js
djbender/canvas-lms
/* * Copyright (C) 2017 - present 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 distribut...
src/js/components/ui/forms/HorizontalInput.js
knowncitizen/tripleo-ui
/** * Copyright 2017 Red Hat Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
src/components/itemsManager/GuardianSelector.js
MrRandol/littleLight
/****************** REACT IMPORTS ******************/ import React from 'react'; import { View, Image, Text, Modal, TouchableOpacity, TouchableWithoutFeedback, Dimensions, Button } from 'react-native'; /***************** CUSTOM IMPORTS ******************/ import T from 'i18n-react'; var styles = require('../../st...
src/components/obligee/ThirdDialog.js
axmand/react-webpack-redux
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; // import Button from 'material-ui/Button'; import Dialog from 'material-ui/Dialog'; // import List, { ListItem, ListItemText } from 'material-ui/List'; // import Divider from 'material-ui/Divi...
client/components/Common/ViewStack.js
Mignon-han/issue-processing
import React, { Component } from 'react'; import './css/style.css'; import { Panel } from 'react-bootstrap'; class ViewStack extends Component { constructor(props) { super(props); } render() { let { view, children } = this.props; view = typeof view === 'number' ? view : 0; children = children ||...