path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
themes/hexo-theme-lite-1.2.4/source/static/js/1.6b5f57ee59496a220bd7.js | jskyzero/jskyzero.github.io | webpackJsonp([1],{"+uNx":function(n,t,e){var o=e("QJlY");"string"==typeof o&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals);e("rjj0")("2aca70a7",o,!0)},"9thQ":function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createDetailablePage=function(n){return{name:(n?"implicit-":"")+"post-page",comp... |
src/containers/pages/reddit/post/content/post-text.js | vFujin/HearthLounge | import React from 'react';
import { connect } from "react-redux";
import {createMarkup, iframe} from "../../utils/post";
import Loader from "../../../../../components/loaders/diamond/loader";
import Icon from "../../../../../components/icon";
const PostText = ({activePost}) => {
const {author_flair_css_class, domain... |
src/containers/Users.js | calumet/realtime-client | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { withRouter } from 'react-router';
import settings from 'src/settings';
import selectUsers from 'src/selectors/users';
import selectRoomsUsers from 'src/selectors/rooms-users';
import User from 'src/components/User';
import UsersLi... |
src/svg-icons/maps/local-cafe.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalCafe = (props) => (
<SvgIcon {...props}>
<path d="M20 3H4v10c0 2.21 1.79 4 4 4h6c2.21 0 4-1.79 4-4v-3h2c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2zm0 5h-2V5h2v3zM2 21h18v-2H2v2z"/>
</SvgIcon>
);
MapsLocalCa... |
ajax/libs/forerunnerdb/1.3.54/fdb-all.min.js | BenjaminVanRyseghem/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
app/components/genericComponents/BackgroundVideo/index.js | romainquellec/cuistot | /**
*
* BackgroundVideo
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import styled, { css } from 'styled-components';
const styles = css`
opacity: 1;
position: relative;
width: 100%;
display: none;
@media (min-width: 950px) {
display: block !important;
}
`;
const Video = styled... |
ajax/libs/preact/5.1.0-beta.23/preact.min.js | sashberd/cdnjs | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.preact=e.preact||{})}(this,function(e){function t(e,t,n){this.nodeName=e,this.attributes=t,this.children=n,this.key=t&&t.key}function n(e,t){if(t)for(var n in t)void 0!==t[n]&&(... |
src/main/resources/test/components/saiku/Content.spec.js | OSBI/meteorite-core-ui | /**
* Copyright 2016 OSBI Ltd
*
* 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 ... |
packages/material-ui-icons/src/SpeakerPhoneOutlined.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="M7 7.07L8.43 8.5c.91-.91 2.18-1.48 3.57-1.48s2.66.57 3.57 1.48L17 7.07C15.72 5.79 13.95 5 12 5s-3.72.79-5 2.07zM12 1C8.98 1 6.24 2.23 4.25 4.... |
src/containers/LikeButtonSettingsModal.js | alphasp/pxview | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { connectLocalization } from '../components/Localization';
import SingleChoiceDialog from '../components/SingleChoiceDialog';
import * as modalActionCreators from '../common/actions/modal';
import * as likeButtonSettingsActionCreato... |
src/svg-icons/image/filter-1.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter1 = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 10h2V5h-4v2h2v8zm7-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"/>
... |
test/unit/client/Form.spec.js | fervorous/fervor | import React from 'react';
import { MockedProvider } from '@apollo/react-testing';
import { Provider } from 'react-redux';
import { mount } from 'enzyme';
import { createMemoryHistory } from 'history';
import wait from 'waait';
import gql from '../../../src/shared/gqltag';
import initStore from '../../../src/shared/st... |
ajax/libs/react-data-grid/0.13.19/react-data-grid.min.js | hare1039/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactDataGrid=t(require("react")):e.ReactDataGrid=t(e.React)}(this,function(e){return function(e){function t(o){if(r[o])return r[... |
src/RadioButton/RadioButtonGroup.spec.js | verdan/material-ui | /* eslint-env mocha */
import React from 'react';
import {assert} from 'chai';
import {shallow} from 'enzyme';
import RadioButtonGroup from './RadioButtonGroup';
import getMuiTheme from '../styles/getMuiTheme';
describe('<RadioButtonGroup />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (no... |
ajax/libs/6to5/2.9.2/browser-polyfill.js | paleozogt/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... |
ajax/libs/yui/3.12.0/event-focus/event-focus-min.js | quba/cdnjs | YUI.add("event-focus",function(e,t){function u(t,r,u){var a="_"+t+"Notifiers";e.Event.define(t,{_useActivate:o,_attach:function(i,s,o){return e.DOM.isWindow(i)?n._attach([t,function(e){s.fire(e)},i]):n._attach([r,this._proxy,i,this,s,o],{capture:!0})},_proxy:function(t,r,i){var s=t.target,f=t.currentTarget,l=s.getData(... |
ajax/libs/angular.js/0.10.6/angular-scenario.js | sevypannella/cdnjs | /** @license
* jQuery JavaScript Library v1.7
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Lic... |
test/HelpBlockSpec.js | apkiernan/react-bootstrap | import React from 'react';
import $ from 'teaspoon';
import HelpBlock from '../src/HelpBlock';
describe('<HelpBlock>', () => {
it('should render correctly', () => {
expect(
$(
<HelpBlock id="foo" className="my-help-block">
Help contents
</HelpBlock>
)
.shallowRender... |
src/index.js | jamiehill/react-router-intl-routing | import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router'
import { Provider } from 'mobx-react'
import IntlWrapper from './intl/IntlWrapper'
import intl from './intl/intl.store'
import App from './app/App'
import './index.css'
ReactDOM.render(
<Provider { ...{ intl ... |
src/Components/Presentational/RoomList/RoomList.js | DeadManPoe/ReactChat | import React from 'react';
import RoomListPropTypes from './RoomListPropTypes';
import RoomItem from '../RoomItem/RoomItem';
const RoomList = (props)=>{
const onRoomClick = (id)=>{
props.onRoomClick(id);
};
const roomItems = props.rooms.map(
(item)=>(
<RoomItem key={item.id} onR... |
RN_Day10/index.ios.js | RainliFu/react-native | /**
* 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 RN_Day10 extends Component {
render() {
return (
<View style={styles.container}>
<Text... |
src/views/chore/Project.js | anysome/objective | /**
* Created by Layman(http://github.com/anysome) on 16/11/24.
*/
import React from 'react';
import {StyleSheet, ListView, RefreshControl, View, Text,
TouchableOpacity, Image, InteractionManager} from 'react-native';
import SwipeableListViewDataSource from 'SwipeableListViewDataSource';
import SwipeableListView ... |
src/components/SearchBar.js | j-der/pickmeup-ui | import React from 'react';
import TextField from 'material-ui/lib/text-field';
import Config from '../config';
import FlatButton from 'material-ui/lib/flat-button';
import RaisedButton from 'material-ui/lib/raised-button';
export default class SearchBar extends React.Component {
constructor(props) {
super(props... |
src/index.js | Perspicere/PerspicereMagazine | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { BrowserRouter, Route } from 'react-router-dom'
import './index.css'
import registerServiceWorker from './registerServiceWorker'
import store from './store'
// todo 组件数目若太多改为按需加载?
import Home from './pages/home'... |
src/components/root/head/search/search.js | hamatoyogi/imdb-app-v2 | import React from 'react';
import { TextField, RaisedButton } from 'material-ui';
import { uiStore } from '../../../../stores/ui-store';
import { handler } from '../../../../handlers/handler';
import { observer } from 'mobx-react';
@observer
export class Search extends React.Component {
render() {
const textFiel... |
packages/cf-component-table/example/basic/component.js | manatarms/cf-ui | import React from 'react';
import {
Table,
TableHead,
TableBody,
TableFoot,
TableRow,
TableHeadCell,
TableCell
} from 'cf-component-table';
const data = [[1, 2, 3], [4, 5, 6], [7, 8, 9]];
const TableComponent = () => (
<Table>
<TableHead>
<TableRow>
<TableHeadCell>One</TableHeadCell>... |
admin/lib/store.js | synthesis-js/react-synthesis | // store.js
import React from 'react';
import { createStore, compose } from 'redux';
import { syncHistoryWithStore } from 'react-router-redux';
import { browserHistory } from 'react-router';
// import root reducer
import rootReducer from './reducers/rootReducer';
// check local storage for token, save to userData
let... |
client/routes.js | SwanCourses/Mokryi-Vlad | /* eslint-disable global-require */
import React from 'react';
import { Route, IndexRoute, IndexRedirect } from 'react-router';
import App from './modules/App/App';
import Product from './modules/Product/Product';
import { isAdmin, isLoggedIn } from './util/apiCaller';
// require.ensure polyfill for node
if (typeof re... |
node_modules/react-bootstrap/es/FormControl.js | Technaesthetic/ua-tools | 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 ... |
site/WorkHard_Profile/src/AppContainer.js | harrydrippin/Workhard | import React, { Component } from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import IconButton from 'material-ui/IconButton';
import NotificationIcon from 'material-ui/svg-icons/social/notifications';
import SettingsIcon from 'ma... |
ajax/libs/angular-google-maps/2.0.5/angular-google-maps.js | Ryuno-Ki/cdnjs | /*! angular-google-maps 2.0.5 2014-10-23
* AngularJS directives for Google Maps
* git: https://github.com/angular-ui/angular-google-maps.git
*/
(function() {
String.prototype.contains = function(value, fromIndex) {
return this.indexOf(value, fromIndex) !== -1;
};
String.prototype.flare = function(flare)... |
spec/react-masonry-component-test.js | eiriklv/react-masonry-component | const TestUtils = require('react-dom/test-utils');
const React = require('react');
const ReactDOM = require('react-dom');
const MasonryComponent = require('../lib');
const expect = require('expect');
const assign = require('lodash/assign');
const masonryOptions = {
columnWidth: 60
};
const childrenElements = ['h4',... |
app/NewsDetails.js | jamesburton/newsappreactnative | import React from 'react';
import {Linking, Text, WebView, View} from 'react-native';
//import {Linking, Text, View} from 'react-native';
import HTMLView from 'react-native-htmlview';
//var NewsDetails = () => <Text>[NewsDetails]</Text>;
/*
var NewsDetails = (props) =>
<View>
<View><Text>[NewsDetails]</Tex... |
src/components/RouteWithLayout/index.js | orionsoft/parts | import React from 'react'
import {Route} from 'react-router-dom'
import PropTypes from 'prop-types'
export default class RouteWithLayout extends React.Component {
static propTypes = {
layout: PropTypes.any.isRequired,
component: PropTypes.any.isRequired,
passProps: PropTypes.object
}
static defaultP... |
packages/material-ui-icons/lib/esm/MicExternalOffSharp.js | mbrookes/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M10 5c0-1.66-1.34-3-3-3-.62 0-1.19.19-1.67.5l4.15 4.15C9.8 6.18 10 5.61 10 5zm4-1h4v11.17l2 2V2h-8v7.17l2 2zM2.1 2.1.69 3.51 5.17 8H4l1 10h1v4h8v-5.17l6.49 ... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/react-slick/src/inner-slider.js | bhathiya/test | 'use strict';
import React from 'react';
import EventHandlersMixin from './mixins/event-handlers';
import HelpersMixin from './mixins/helpers';
import initialState from './initial-state';
import defaultProps from './default-props';
import createReactClass from 'create-react-class';
import classnames from 'classnames';... |
src/svg-icons/device/location-disabled.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceLocationDisabled = (props) => (
<SvgIcon {...props}>
<path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06c-1.13.12-2.19.46-3.16.97l1.5 1.5C10.16 5.19 11.06 5 12 5c3.87 0 7 3.13 7 7 0 .94-.19 1.84-.5... |
ajax/libs/flocks.js/0.14.3/flocks.min.js | lobbin/cdnjs | if("undefined"==typeof React)var React=require("react");!function(){"use strict";function j(a,b){"string"==typeof a?s(a,["warn","debug","error","log","info","exception","assert"])?console[a]("Flocks2 ["+a+"] "+b.toString()):console.log("Flocks2 [Unknown level] "+b.toString()):void 0===h.flocks_config?console.log("Flock... |
ajax/libs/yui/3.17.2/event-focus/event-focus.js | fatso83/cdnjs | /*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('event-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Ev... |
ajax/libs/ionic/1.0.0-beta.1/js/ionic.js | ethantw/cdnjs | /*!
* Copyright 2014 Drifty Co.
* http://drifty.com/
*
* Ionic, v1.0.0-beta.1
* A powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
* By @maxlynch, @benjsperry, @adamdbradley <3
*
* Licensed under the MIT license. Please see LICENSE for more information.
*
*/
(function() {
// Create name... |
tests/routes/Home/components/HomeView.spec.js | arseneyr/yt-party | import React from 'react'
import { HomeView } from 'routes/Home/components/HomeView'
import { render } from 'enzyme'
describe('(View) Home', () => {
let _component
beforeEach(() => {
_component = render(<HomeView />)
})
it('Renders a welcome message', () => {
const welcome = _component.find('h4')
... |
client/src/pages/login/ResetForm.js | ccwukong/lfcommerce-react | import React from 'react';
import PropTypes from 'prop-types';
import { Formik, Form } from 'formik';
import * as Yup from 'yup';
import { injectIntl, FormattedMessage } from 'react-intl';
import { Input, Button } from 'reactstrap';
const accountValidation = Yup.object().shape({
username: Yup.string().required('Requ... |
ajax/libs/yasqe/2.5.1/yasqe.bundled.min.js | gokuale/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,i,r)... |
src/components/LaserPanel.js | blaqbern/report-generator | import React from 'react'
import DigitalReadout from '../components/DigitalReadout'
function LaserPanel({
laser,
handleZeroLaserClick,
handleTakeMeasurementClick,
}) {
return (
<div>
<DigitalReadout reading={laser.value} />
<button
onClick={handleZeroLaserClick}
>
{'Zero L... |
js/components/App.react.js | cameronolivier/reddit-sentiment | /**
*
* 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, { Component } from 'react';
import { connect } from 'react-redux';
import Logo from '../../img/logo.png';
class App extends Com... |
packages/material-ui-icons/src/SignalWifi2BarLockTwoTone.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path fillOpacity=".3" d="M15.5 14.5c0-2.8 2.2-5 5-5 .36 0 .71.04 1.05.11L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7L12 21.5l3.5-4.36V14.5z"... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DefaultParameters.js | peopleticker/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, { Component } from 'react';
import PropTypes from 'prop-types';
function load(id = 0) {
return [
{ id: id + 1, name... |
ninja-ebean-demo/src/main/java/assets/js/jquery.js | kidaa/ninja-ebean | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function( window, undefined ) {
// Use the correct document accordingly with window argument (sandbox)
var document = window.document,
navigator = window.navigator,
location = window.location;
var jQuery = (function() {
// Define a local copy of jQuery
var jQuer... |
Solutions/OD4B.Configuration.Async/OD4B.Configuration.AsyncWeb/Scripts/jquery-1.9.1.min.js | vnathalye/PnP | /* NUGET: BEGIN LICENSE TEXT
jQuery v1.9.1
Microsoft grants you the right to use these script files for the sole purpose of either: (i) interacting through your browser with the Microsoft website, subject to the website's terms of use; or (ii) using the files as included with a Microsoft product subject to that produc... |
src/client/components/Routes.js | fervorous/fervor | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import { compose } from 'redux';
import {
Switch,
Route,
} from 'react-router-dom';
// eslint-disable-next-line
import fervorRoutes from 'fervorAppRoutes';
import Bundle from './Bundle';
class BundleLoader extend... |
examples/js/manipulation/default-search-table.js | echaouchna/react-bootstrap-tab | /* eslint max-len: 0 */
/* eslint no-console: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
const fruits = [ 'banana', 'apple', 'orange', 'tomato', 'strawberries' ];... |
Web/src/containers/Products/index.js | CMITInternational/Guitars | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { PageHeader, Grid, Col, Row, Thumbnail, Button, Navbar } from 'react-bootstrap';
import { routerActions } from 'react-router-redux';
import productsActions from './Actions';
import productActions from '... |
node_modules/react-icons/fa/male.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaMale = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m31.4 15.7v9.3q0 0.9-0.7 1.5t-1.5 0.6-1.5-0.6-0.6-1.5v-7.9h-1.5v20.4q0 1-0.7 1.8t-1.8 0.7-1.7-0.7-0.8-1.8v-10.4h-1.4v10.4q0 1-0.7 1.8t-1.8 0.7-1.7-0.7-0.8-1.8v-20.4h-1.4... |
ajax/libs/vue/2.0.0-alpha.8/vue.common.js | AMoo-Miki/cdnjs | 'use strict';
/**
* Convert a value to a string that is actually rendered.
*/
function _toString(val) {
return val == null ? '' : typeof val === 'object' ? JSON.stringify(val, null, 2) : String(val);
}
/**
* Convert a input value to a number for persistence.
* If the conversion fails, return original string.
*... |
client/src/components/App.js | andreminz/react-hot-kit | import React from 'react';
import styles from '../index.css';
const App = () => (
<div className={styles.app}>
<h2>react-hot-kit</h2>
<p>React Application Starter Kit</p>
</div>
);
export default App;
|
app/javascript/mastodon/components/column.js | blackle/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import detectPassiveEvents from 'detect-passive-events';
import { scrollTop } from '../scroll';
export default class Column extends React.PureComponent {
static propTypes = {
children: PropTypes.node,
label: PropTypes.string,
};
scrollTop (... |
pages/index.js | ivygong/irc | import React, { Component } from 'react';
import Helmet from 'react-helmet';
import { config } from 'config';
import { Link } from 'react-router';
import { prefixLink } from 'gatsby-helpers';
export default class Home extends Component {
render () {
return (
<div className="page page--home">
<Helme... |
app/javascript/mastodon/features/ui/components/modal_loading.js | primenumber/mastodon | import React from 'react';
import LoadingIndicator from '../../../components/loading_indicator';
// Keep the markup in sync with <BundleModalError />
// (make sure they have the same dimensions)
const ModalLoading = () => (
<div className='modal-root__modal error-modal'>
<div className='error-modal__body'>
... |
packages/mui-icons-material/lib/SwipeUpAltTwoTone.js | oliviertassinari/material-ui | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
src/javascript/index.js | JeremyJonas/redux-react-router-example-app | import 'babel/polyfill';
import React from 'react';
import { render } from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import createHashHistory from 'history/lib/createHashHistory';
import Root from './Root';
/*
Needed for onTouchTap
Can go away when react 1.0 release
Check this repo:... |
src/server.js | stanxii/laiico | /**
* 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 path from 'path';
import Promise from 'bluebird'... |
docs/app/Examples/views/Comment/Content/CommentExampleAvatar.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Comment } from 'semantic-ui-react'
const CommentExampleAvatar = () => (
<Comment.Group>
<Comment>
<Comment.Avatar src='http://semantic-ui.com/images/avatar/small/elliot.jpg' />
<Comment.Content>
<Comment.Author as='a'>Elliot Fu</Comment.Author>
</Comme... |
src/components/NotificationPane.js | Padelas649/notificatio | import React from 'react'
const NotificationPane = React.createClass({
componentDidMount() {
},
onNotificationClick(event) {
event.preventDefault();
if (typeof this.props.onChange === 'function') {
this.props.onChange(event.target.id);
}
},
render() {
return (
<... |
static/lib/js/jquery-1.4.3.min.js | bhuvanshankar/userinfuser | /*!
* jQuery JavaScript Library v1.4.3
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
ajax/libs/antd/4.12.2/antd.min.js | cdnjs/cdnjs | /*!
*
* antd v4.12.2
*
* Copyright 2015-present, Alipay, Inc.
* All rights reserved.
*
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom"),require("moment")):"function"==typeof define&&define.amd?define(["react","react-dom","moment"]... |
ajax/libs/rxjs/2.2.24/rx.lite.js | akiran/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
v... |
app/javascript/mastodon/containers/compose_container.js | masarakki/mastodon | import React from 'react';
import { Provider } from 'react-redux';
import PropTypes from 'prop-types';
import configureStore from '../store/configureStore';
import { hydrateStore } from '../actions/store';
import { IntlProvider, addLocaleData } from 'react-intl';
import { getLocale } from '../locales';
import Compose f... |
sites/default/files/js/js_X95XZNDJq94B5TEMNUGuRHfDpfeJ2KawFkmASCTL4ro.js | micahcourey/Drupal8Launch | /*! jQuery v2.1.4 | (c) 2005, 2015 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 windo... |
src/theme/bootstrap.config.js | sanyamagrawal/royalgeni | /**
* Bootstrap configuration for bootstrap-sass-loader
*
* Scripts are disabled to not load jQuery.
* If you depend on Bootstrap scripts consider react-bootstrap instead.
* https://github.com/react-bootstrap/react-bootstrap
*
* In order to keep the bundle size low in production
* disable components you don't u... |
l5/src/index.js | huang6349/rn | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
} from 'react-native';
import Dva, { connect } from 'dva/mobile';
import RouterConfig from './router';
import AppModels from './models/app';
import SingleModels from... |
app/components/layouts/main-layout.js | erisalke/react-playground | import React from 'react';
import { Link } from 'react-router';
export default function (props) {
return (
<div id="wrapper">
<div id="sidebar-wrapper">
<ul className="sidebar-nav">
<li className="sidebar-brand">
<Link to="/" activeClassName="active">Home</Link>
</li... |
app/static/js/src.react/components/Notifications.js | jhia/fundayacucho-social | import React from 'react';
const Notifications = React.createClass({
render() {
return (
<p>Holi</p>
)
}
});
export default Notifications; |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/DefaultPropsNoneButState.js | MichaelDeBoey/flow | // @flow
import React from 'react';
class MyComponent extends React.Component<void, Props, State> {
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extends React.Component<void, Props, State> {
defaultProps: T;
static prop... |
src/components/Navigation.js | mikalmorello/mikalmorello.github.io | import React from 'react';
import {
Link,
withRouter
} from 'react-router-dom';
class Navigation extends React.Component {
componentWillMount() {
this.props.history.listen(() => {
this.props.closeMenu();
});
}
checkMenuState(menuState){
if (menuState === 'default') {
return '';... |
src/app/shared/ErrorBoundary/ErrorBoundary.js | JoeKarlsson1/bechdel-test | import React from 'react';
import PropTypes from 'prop-types';
class ErrorBoundary extends React.Component {
constructor(props) {
super(props);
this.state = {
hasError: false,
error: null,
errorInfo: null,
};
}
componentDidCatch(error, info) {
// Display fallback UI
this.setState({
hasError: ... |
Code/Windows_Security_Integration/src/webapp/js/jquery.tools.min.js | NASA-Tournament-Lab/CoECI-OPM-Service-Credit-Redeposit-Deposit-Application | /*
Copyright 2014 OPM.gov
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 in wr... |
electron/app/containers/AttributesContainer.js | zindlerb/static | import React from 'react';
import { connect } from 'react-redux';
import { createImmutableJSSelector } from '../utils';
import { mainViewTypes } from '../constants';
import { ComponentsContainer } from '../base_components';
import Attributes from '../components/Attributes';
const AttributesContainer = React.createCla... |
src/main.js | allanesquina/react-pomodoro | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import AppContainer from './containers/AppContainer'
import rootReducer from './reducers'
import './styles/core.scss'
// ========================================================
// Store and History Instantiation
... |
portal/src/main/webapp/js/jquery-1.11.3.js | koenighotze/Hotel-Reservation-Tool | /*!
* jQuery JavaScript Library v1.11.3
* 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: 2015-04-28T16:19Z
*/
(function( global, factory ) {
if ... |
ajax/libs/maple.js/1.2.2/maple.min.js | CyrusSUEN/cdnjs | !function t(e,r,n){function o(a,u){if(!r[a]){if(!e[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(i)return i(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=r[a]={exports:{}};e[a][0].call(c.exports,function(t){var r=e[a][1][t];return o(r?r:t)},c,c.ex... |
src/containers/Notification.js | IgorSzyporyn/wwiionline-webmap | import React from 'react';
import PropTypes from 'prop-types';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import NotificationCp from '../components/NotificationCp';
import NotificationFacility from '../components/NotificationFacility';
import * as actions from '../actions/notificatio... |
app/features/vocab/Levels/Levels.js | Kaniwani/KW-Frontend | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import cuid from 'cuid';
import Spinner from 'common/components/Spinner';
import { vocab } from 'features/vocab/actions';
import { selectVocabLevelIds, selectShouldLoad, selectLastLoad } from './selectors';
import Le... |
src/widgets/PrescriptionCart.js | sussol/mobile | /* eslint-disable react/forbid-prop-types */
/**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2019
*/
import React from 'react';
import { Text, ScrollView, StyleSheet } from 'react-native';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { PrescriptionCartRow } from './Presc... |
src/__tests__/testUtils/render.js | toomuchdesign/react-minimal-pie-chart | import React from 'react';
import { render as TLRender, act, fireEvent } from '@testing-library/react';
// @NOTE this import must finish with "/src" to allow test runner
// to remap it against bundled artefacts (npm run test:bundles:unit)
import { PieChart } from '../../../src';
const dataMock = [
{ value: 10, color... |
src/Component/React/ReactAdapter/index.js | Kitware/paraviewweb | import React from 'react';
import ReactDOM from 'react-dom';
export default class ReactContainer {
constructor(reactClass, reactProps) {
this.props = reactProps;
this.reactClass = reactClass;
this.container = null;
this.component = null;
}
setContainer(el) {
if (this.container && this.contai... |
test/integration/react-profiling-mode/pages/index.js | JeromeFitz/next.js | import React from 'react'
const Index = () => {
return (
<React.Profiler
id="hello"
onRender={(...res) => {
window.profileResults = window.profileResults || []
window.profileResults.push(res)
}}
>
<p>hello world</p>
</React.Profiler>
)
}
export default Index
|
Libraries/Image/Image.ios.js | rickbeerendonk/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
ajax/libs/jointjs/0.8.0/joint.all.min.js | jasonpang/cdnjs | /*! JointJS v0.8.0 - JavaScript diagramming library 2014-01-22
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
if(function(a,b){function c(a){var b=a.length,c=ib.type(... |
src/routes.js | ptim/react-redux-universal-hot-example | 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,
} from 'containers';
export default (store) ... |
node_modules/react-bootstrap/es/CarouselCaption.js | GregSantulli/react-drum-sequencer | 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 ... |
node_modules/react-icons/go/file-symlink-file.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const GoFileSymlinkFile = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m27.5 2.5h-22.5v35h30v-27.5l-7.5-7.5z m5 32.5h-25v-30h17.5l7.5 7.5v22.5z m-12.5-17.5c-5.8 0-10 4.3-10 12.5 1.3-5.3 5.1-7.5 10-7.5v5l10-7.5-10-7.5v5z"/></g>
... |
src/components/common/svg-icons/device/signal-cellular-4-bar.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellular4Bar = (props) => (
<SvgIcon {...props}>
<path d="M2 22h20V2z"/>
</SvgIcon>
);
DeviceSignalCellular4Bar = pure(DeviceSignalCellular4Bar);
DeviceSignalCellular4Bar.displayName = 'DeviceSign... |
Ch06/06_02/start/bulletin-board/src/App.js | MuhammadHafidzMisrudin/reactjs-basics | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
... |
client/components/common/loading.js | ShannChiang/USzhejiang | import React from 'react';
export default () => (
<div className="splash">
<div className="splash-title">
<h1>Loading...</h1>
{/*<p>some loading descriptions</p>*/}
<div className="spinner">
<div className="rect1" />
<div className="rect2" />
<div className="rect3" />
... |
src/components/__tests__/ui/form-label-test.js | shojil/bifapp | /**
* 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 FormLabel from '@ui/FormLabel';
it('FormLabel renders correctly', () => {
const tree = renderer.create(
<FormLabel>John Smith</F... |
src-client/scripts/app.js | PaulRSwift/iLuggit | import Backbone from 'backbone'
import React from 'react'
import ReactDOM from 'react-dom'
import $ from 'jquery'
import PackAuthView from './pack-auth-view.js'
import LuggAuthView from './lugg-auth-view.js'
import HomeView from './home-page.js'
import AppController from './lugg-view-controller.js'
import CargoDispla... |
src/components/CarouselComponent.js | jezzasan/taproom-react | 'use strict';
import React from 'react';
let CarouselSlideComponent = require('./CarouselSlideComponent.js');
class CarouselComponent extends React.Component {
render() {
return (
<div className="carousel-component">
<div className="carousel-text">
<h1>Create your own taproom crawl</h1>
... |
src/svg-icons/image/filter-vintage.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterVintage = (props) => (
<SvgIcon {...props}>
<path d="M18.7 12.4c-.28-.16-.57-.29-.86-.4.29-.11.58-.24.86-.4 1.92-1.11 2.99-3.12 3-5.19-1.79-1.03-4.07-1.11-6 0-.28.16-.54.35-.78.54.05-.31.08-.63.08-.9... |
app/src/containers/questions-container.js | MartinKostadinov/FeTest-with-React-and-Redux | import React from 'react';
import { connect } from "react-redux";
import ShowQuestions from '../components/showQuestions/showQuestionsComponent';
function mapStateToProps(state) {
return {
showQuestions: state.showQuestions.showQuestions,
questionsCount: state.questions.questionsCount,
curr... |
examples/auth-flow/app.js | nvartolomei/react-router | import React from 'react'
import { render } from 'react-dom'
import { browserHistory, Router, Route, Link, withRouter } from 'react-router'
import auth from './auth'
const App = React.createClass({
getInitialState() {
return {
loggedIn: auth.loggedIn()
}
},
updateAuth(loggedIn) {
this.setState... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.