path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | vvlladimir/mbd | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
1m_Redux_Lynda/Ex_Files_Learning_Redux/Exercise Files/Ch05/05_04/finished/src/routes.js | yevheniyc/C | import React from 'react'
import { Router, Route, IndexRoute, hashHistory } from 'react-router'
import { App, Whoops404 } from './components'
import SkiDayCount from './components/containers/SkiDayCount'
import AddDayForm from './components/containers/AddDayForm'
import SkiDayList from './components/containers/SkiDayLi... |
pkg/users/delete-account-dialog.js | martinpitt/cockpit | /*
* This file is part of Cockpit.
*
* Copyright (C) 2020 Red Hat, Inc.
*
* Cockpit is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any l... |
app/routes/index.js | phoenixmusical/web-client | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import Layout from '../layout/Layout';
import LayoutQuery from '../layout/LayoutQuery';
import NotFoundPage from './error/NotFoundPage';
import HomePage from './home/HomePage';
import HomePageQuery from './home/HomePageQuery';
import Commi... |
app/javascript/mastodon/features/account_timeline/index.js | mstdn-jp/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { fetchAccount } from '../../actions/accounts';
import { expandAccountFeaturedTimeline, expandAccountTimeline } from '../../actions/timelines';
import ... |
src/native/app/components/Link.js | robinpokorny/este | // @flow weak
import React from 'react';
import { Match } from 'react-router';
import { Text } from './';
const Link = ({
activeStyle,
children,
exactly,
onPress,
style,
to,
}, { router }) => (
<Match exactly={exactly} pattern={to}>
{({ matched }) => (
<Text
onPress={() => {
r... |
analysis/paladinholy/src/modules/beacons/MissingBeacons.js | anom0ly/WoWAnalyzer | import { Trans } from '@lingui/macro';
import SPELLS from 'common/SPELLS';
import { SpellIcon } from 'interface';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import StatisticBox, { STATISTIC_ORDER } from 'parser/ui/StatisticBox';
import React from 'react';
... |
packages/material-ui-icons/src/ChildCareTwoTone.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="M19 10c-.1 0-.19.02-.29.03-.2-.67-.49-1.29-.86-1.86C16.6 6.26 14.45 5 12 5S7.4 6.26 6.15 8.17c-.37.57-.66 1.19-.86 1.86-.1-.01-.19-.03-.29-.03-1... |
ajax/libs/react-native-web/0.15.4/exports/YellowBox/index.js | cdnjs/cdnjs | /**
* Copyright (c) Nicolas Gallagher.
* 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.
*
*
*/
import React from 'react';
import UnimplementedView from '../../modules/UnimplementedVie... |
src/Eventplanner/DayColumn.js | ctco/rosemary-ui | import React from 'react';
import PropTypes from 'prop-types';
import { findDOMNode } from 'react-dom';
import cn from 'classnames';
import Selection, { getBoundsForNode } from './Selection';
import dates from './utils/dates';
import { isSelected } from './utils/selection';
import localizer from './localizer';... |
fields/types/relationship/RelationshipField.js | vokal/keystone | import async from 'async';
import Field from '../Field';
import { listsByKey } from '../../../admin/client/utils/lists';
import React from 'react';
import Select from 'react-select';
import xhr from 'xhr';
import {
Button,
FormInput,
InlineGroup as Group,
InlineGroupSection as Section,
} from '../../../admin/client... |
node_modules/react-color/lib/components/chrome/Chrome.js | together-web-pj/together-web-pj | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Chrome = undefined;
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _reactcss = require('reactcss');... |
react/reactRedux/redux-master/examples/shopping-cart/src/components/ProductsList.spec.js | huxinmin/PracticeMakesPerfect | import React from 'react'
import { shallow } from 'enzyme'
import ProductsList from './ProductsList'
const setup = props => {
const component = shallow(
<ProductsList title={props.title}>{props.children}</ProductsList>
)
return {
component: component,
children: component.children().at(1),
h3: co... |
react/javascript/demo-embeds/src/App.js | looker-open-source/extension-examples | /*
MIT License
Copyright (c) 2022 Looker Data Sciences, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modi... |
ajax/libs/forerunnerdb/1.3.723/fdb-core.min.js | sashberd/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... |
src/index.js | ClintAst/manageStateRedux | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware()(createStore);
ReactDOM.render(
<Provi... |
test/hompage-test.js | melissa-c/Comms | import test from 'ava'
import React from 'react'
import {shallow, render, mount} from 'enzyme'
import HomePage from '../src/components/homepage'
import Header from '../src/components/header'
test ('Homepage commponents adds to <HomePage> ', t => {
const wrapper = shallow(<HomePage />)
var homepg = wrapper.find('di... |
ajax/libs/react-instantsearch/4.0.0-beta.4/Dom.js | pvnr0082t/cdnjs | /*! ReactInstantSearch 4.0.0-beta.4 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof def... |
wp-includes/js/jquery/jquery.js | ibrahimcesar/blumpa-wp | /*! 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/poll.js | KnzkDev/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import classNames from 'classnames';
import { vote, f... |
webpack.config.dev.js | eantler/simmeme-client | var webpack = require('webpack');
var cssnext = require('postcss-cssnext');
var postcssFocus = require('postcss-focus');
var postcssReporter = require('postcss-reporter');
module.exports = {
devtool: 'cheap-module-eval-source-map',
entry: {
app: [
'eventsource-polyfill',
'webpack-hot-middleware/cl... |
packages/react-dom/src/client/ReactDOMFiberOption.js | syranide/react | /**
* Copyright (c) 2013-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.
*
* @flow
*/
import React from 'react';
import warning from 'fbjs/lib/warning';
let didWarnSelectedSetOnOption = false;
function flatte... |
app/web/components/moviePoster/index.js | GilbertLS/MovieCircle | import React from 'react';
import { browserHistory } from 'react-router';
import OnVisible from 'react-on-visible';
import style from './style.scss';
export default class MoviePoster extends OnVisible {
constructor(props) {
super(props);
this.state = {
loaded: false,
}
this.handleImageOnLoad... |
imports/ui/components/study_plan/AcadYrSectionContainer.js | nus-mtp/nus-oracle | import { Meteor } from 'meteor/meteor';
import { createContainer } from 'meteor/react-meteor-data';
import { getAllSemestersInPlanner } from '../../../api/student-logic-controller/crud-controller/semester/methods.js';
import AcadYrSection from './AcadYrSection.jsx';
export default AcadYrSectionContainer = createContai... |
src/svg-icons/image/hdr-weak.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageHdrWeak = (props) => (
<SvgIcon {...props}>
<path d="M5 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm12-2c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4... |
definitions/npm/@storybook/addon-actions_v3.x.x/test_addon-actions_v3.x.x.js | mwalkerwells/flow-typed | // @flow
import React from 'react';
import { action, decorateAction } from '@storybook/addon-actions'
const Button = (props) => <button {...props} />;
const firstArgAction = decorateAction([
args => args.slice(0, 1)
]);
// $ExpectError
const erroneous = action(123);
// $ExpectError
const erroneousDecorate = decor... |
src/browser/components/focus.js | redcom/doctori-romani-in-berlin | // @flow weak
// Higher order component for focusing elements by ValidationError.
import React from 'react';
import { ValidationError } from '../../common/lib/validation';
import { findDOMNode } from 'react-dom';
const focus = (errorProp) =>
(WrappedComponent) => class Wrapper extends React.Component {
component... |
ajax/libs/yui/3.17.1/event-custom-base/event-custom-base.js | ljharb/cdnjs | /*
YUI 3.17.1 (build 0eb5a52)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.En... |
lib/yuilib/3.7.3/build/event-focus/event-focus-debug.js | gesdev/Moodle-ESVIAL | /*
YUI 3.7.3 (build 5687)
Copyright 2012 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 Event ... |
packages/material-ui-icons/src/OndemandVideoSharp.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="M23 3H1v16h7v2h8v-2h6.99L23 3zm-2 14H3V5h18v12zm-5-6l-7 4V7l7 4z" /></g></React.Fragment>
, 'OndemandVideoSharp');
|
ajax/libs/yui/3.11.0pr1/scrollview-base/scrollview-base-debug.js | yinghunglai/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... |
resources/js/layout/Public.js | moeen-basra/laravel-react | //import libs
import React from 'react'
import PropTypes from 'prop-types'
// import components
import Navigation from '../common/navigation/index'
import ScrollTop from '../common/scroll-top/index'
import Footer from '../common/footer/index'
const containerStyle = {
paddingTop: '3.5rem',
}
const displayName = 'Pu... |
sites/all/modules/contrib/jquery_update/replace/jquery/1.9/jquery.min.js | bed718/udnew | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
V2-Node/esquenta.v2/UI/src/containers/DefaultLayout/DefaultAside.js | leandrocristovao/esquenta | import React, { Component } from 'react';
import { Nav, NavItem, NavLink, Progress, TabContent, TabPane, ListGroup, ListGroupItem } from 'reactstrap';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { AppSwitch } from '@coreui/react'
const propTypes = {
children: PropTypes.node,
};
c... |
docs/src/app/components/pages/components/TimePicker/Page.js | xmityaz/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 timePickerReadmeText from './README';
import TimePickerExampleSimple from... |
src/svg-icons/device/battery-charging-20.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryCharging20 = (props) => (
<SvgIcon {...props}>
<path d="M11 20v-3H7v3.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V17h-4.4L11 20z"/><path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 ... |
ajax/libs/forerunnerdb/1.3.504/fdb-core.min.js | jonobr1/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... |
src/Table/TableHead.spec.js | und3fined/material-ui | // @flow weak
/* eslint-env mocha */
import React from 'react';
import { assert } from 'chai';
import { createShallowWithContext } from 'test/utils';
import TableHead, { styleSheet } from './TableHead';
describe('<TableHead />', () => {
let shallow;
let classes;
before(() => {
shallow = createShallowWithCo... |
packages/material-ui-icons/src/SettingsApplicationsRounded.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="M12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm7-7H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-1.75 9c0 .23-... |
createJestTest.js | skeie/jest-snapshot-generator | function createJestTest(filename) {
const fileWithOutExt = filename.replace(/\.[^/.]+$/, "");
const readableFilename = capitalizeFirstLetter(fileWithOutExt);
return (
`import React from 'react';
import renderer from 'react-test-renderer';
import ${readableFilename} from '../${readableFilename}';
test('Shoul... |
packages/material-ui-icons/src/FirstPageRounded.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M24 0v24H0V0h24z" opacity=".87" /><path d="M17.7 15.89L13.82 12l3.89-3.89c.39-.39.39-1.02 0-1.41a.9959.9959 0 0 0-1.41 0l-4.59 4.59c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39... |
test/test.js | misakimatsumoto2524/merj | 'use strict';
import React from 'react';
import { expect } from 'chai';
import { shallow, mount, render } from 'enzyme';
import sinon from 'sinon';
//import each component in its own import statement as needed
import Foo from '../app/components/foo.js';
import Header from '../app/components/header.js'
//use shallow if... |
src/components/Page/Page.js | Ozaroni/modestLifer | /**
* 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-... |
client/scripts/components/dynamic-icons/kuali-logo/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
Lic... |
src/routes.js | flibertigibet/react-redux-starter-kit-custom | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App';
import Counter from './containers/CounterContainer'; // eslint-disable-line import/no-named-as-default
import NotFoundPage from './components/NotFoundPage';
export default (
<Route path='/' component={Ap... |
ajax/libs/angular.js/1.0.0rc9/angular-scenario.js | chrisyip/cdnjs | /*!
* jQuery JavaScript Library v1.7.2
* 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 Licenses.
... |
src/svg-icons/file/folder.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileFolder = (props) => (
<SvgIcon {...props}>
<path d="M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"/>
</SvgIcon>
);
FileFolder = pure(FileFolder);
FileFolder.d... |
src/components/HomeScreen.js | teamstrobe/mancreact-client | import React, { Component } from 'react';
import apiFetch from '../apiFetch';
import { eventsURI } from '../config/urls';
import UpcomingEventHero from './UpcomingEventHero';
import PreviousMeetupsList from './PreviousMeetupsList';
import Spinner from './Spinner';
class HomeScreen extends Component {
state = {
... |
src/parser/rogue/outlaw/modules/core/ComboPoints.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import resourceSuggest from 'parser/shared/modules/resourcetracker/ResourceSuggest';
import ComboPointTracker from '../../../shared/resources/ComboPointTracker';
class... |
src/components/pages/Home/sections/TeamSection_old/Partners/index.js | humaniq/humaniq-pwa-website | import React from 'react'
import * as T from 'prop-types'
import './styles.scss'
import { cssClassName } from 'utils'
const cn = cssClassName('M_Partners_H')
const _createPartners = partners =>
partners.map(({ name, img, url, title }) => (
<a href={url} target="_blank" key={`partner-${name}`} className={cn('par... |
js/app.js | catalinmiron/react-boilerplate | import 'file?name=[name].[ext]!../serviceworker.js';
import 'file?name=[name].[ext]!../manifest.json';
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/serviceworker.js').then(function(registration) {
// Registration was successful
console.log('ServiceWorker registration successful with... |
ajax/libs/monaco-editor/0.4.0/min/vs/editor/editor.main.nls.ja.js | sashberd/cdnjs | /*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.4.2(1ebfb1b687c4345ac9c6da39051431a46c120a65)
* Released under the MIT license
* https://github.com/Microsoft/vscode/blob/master/LICENSE.txt
*-------------------------------------... |
src/index.js | JoshHarris85/React-Video-Player | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import YTSearch from 'youtube-api-search';
import VideoList from './Components/video_list';
import SearchBar from './Components/search_bar';
import VideoDetail from './Components/video_detail'
import _ from 'lodash'
// Insert your youtube api ... |
docs/src/sections/PaginationSection.js | HPate-Riptide/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function PaginationSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
... |
src/views/not-found/NotFoundView.js | kallaspriit/react-base | import React from 'react';
import { Link } from 'react-router-dom';
export default () => (
<div className="not-found-view">
<h1>Page not found</h1>
<Link to="/">Navigate to index</Link>
</div>
);
|
docs/src/app/AppRoutes.js | igorbt/material-ui | import React from 'react';
import {
Route,
Redirect,
IndexRoute,
} from 'react-router';
// Here we define all our material-ui ReactComponents.
import Master from './components/Master';
import Home from './components/pages/Home';
import RequiredKnowledge from './components/pages/get-started/RequiredKnowledge';
i... |
src/components/post/Create.js | react-in-action/letters-social | import PropTypes from 'prop-types';
import React from 'react';
import Filter from 'bad-words';
import classnames from 'classnames';
import DisplayMap from '../map/DisplayMap';
import LocationTypeAhead from '../map/LocationTypeAhead';
/**
* Component that allows users to create posts
* @type {Object}
*/
class Creat... |
entry_types/scrolled/package/src/frontend/thirdPartyConsent/Toggle.js | codevise/pageflow | import React from 'react';
import styles from './Toggle.module.css';
import ToggleOnIcon from '../icons/toggleOn.svg';
import ToggleOffIcon from '../icons/toggleOff.svg';
export function Toggle({id, checked, onChange}) {
const Icon = checked ? ToggleOnIcon : ToggleOffIcon;
return (
<button id={id}
... |
src/components/Chat/Markup/Bold.js | welovekpop/uwave-web-welovekpop.club | import React from 'react';
import PropTypes from 'prop-types';
const Bold = ({ children, ...props }) => <b {...props}>{children}</b>;
Bold.propTypes = {
children: PropTypes.node.isRequired,
};
export default Bold;
|
app/app.js | eddiewang/tinderapp | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
import 'babel-polyfill';
// TODO constrain eslint import/no-unresolved rule to this block
// Load the manifest.json file and the .htaccess file
import 'file?name=[name].[ext]!./manifest.json'; // eslint-disable-lin... |
src/Parser/Shaman/Restoration/Modules/Talents/HighTide.js | enragednuke/WoWAnalyzer | import React from 'react';
import SpellIcon from 'common/SpellIcon';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
class HighTide extends Analyzer {
healing = 0;
... |
src/components/Content/index.js | IntellectionStudio/intellection.kz | import React from 'react';
import styles from './index.css';
const Content = ({children}) => (
<div className={styles.content}>{children}</div>
);
export default Content;
|
themes/frontend/assets/vendor/node_modules/reactify/node_modules/react-tools/src/core/__tests__/ReactIdentity-test.js | fonea/velon | /**
* 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.
*
* @emails react-co... |
ajax/libs/victory/0.0.4/victory.min.js | redmunds/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.Victory=e(require("react")):t.Victory=e(t.React)}(this,function(__WEBPACK_EXTERNAL_MODULE_6__){return function(t){function e(r){i... |
src/svg-icons/editor/pie-chart.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorPieChart = (props) => (
<SvgIcon {...props}>
<path d="M11 2v20c-5.07-.5-9-4.79-9-10s3.93-9.5 9-10zm2.03 0v8.99H22c-.47-4.74-4.24-8.52-8.97-8.99zm0 11.01V22c4.74-.47 8.5-4.25 8.97-8.99h-8.97z"/>
</SvgIco... |
util/tests/getFocusableElements-test.js | folio-org/stripes-components | import React from 'react';
import { describe, beforeEach, it } from 'mocha';
import { expect } from 'chai';
import FocusableHarness from './FocusableHarness/FocusableHarness';
import FocusableInteractor from './FocusableHarness/FocusableInteractor';
import { getNextFocusable, getPreviousFocusable } from '../getFocusab... |
src/containers/Home/Home.js | hahoocn/hahoo-admin | import React from 'react';
import Helmet from 'react-helmet';
import config from '../../config';
import {
Navbar,
PageWrapper,
PageHeader,
} from '../../components';
class Home extends React.Component {
state = {}
render() {
// const styles = require('./Home.css');
return (
<div>
<Helm... |
docs/src/app/components/pages/components/RaisedButton/ExampleComplex.js | spiermar/material-ui | import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import ActionAndroid from 'material-ui/svg-icons/action/android';
import FontIcon from 'material-ui/FontIcon';
const styles = {
button: {
margin: 12,
},
exampleImageInput: {
cursor: 'pointer',
position: 'absolute',
to... |
src/svg-icons/action/favorite-border.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFavoriteBorder = (props) => (
<SvgIcon {...props}>
<path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 2... |
src/containers/NotFound/NotFound.js | LifeSourceUA/lifesource.ua | import React from 'react';
/* eslint-disable react/prefer-stateless-function */
export default function NotFound() {
return (
<section>
<div>Not found</div>
</section>
);
}
|
src/router.js | sujiehua/ReactAppTest | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/http';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactPage';
... |
data-browser-ui/public/app/components/documentation/cloudRole.js | CloudBoost/cloudboost | import React from 'react'
import ReactDOM from 'react-dom'
import { observer } from "mobx-react"
import { Card, CardActions, CardHeader, CardMedia, CardTitle, CardText } from 'material-ui/Card'
@observer
class CloudRole extends React.Component {
constructor() {
super()
this.state = {
}
... |
examples/react-native/App.js | SimenB/socket.io | import React, { Component } from 'react';
import { StyleSheet, Text, View } from 'react-native';
import io from 'socket.io-client';
const socket = io("192.168.0.28:3000"); // replace with the IP of your server, when testing on real devices
export default class App extends Component {
constructor(props) {
super(... |
examples/todomvc/test/components/TodoItem.spec.js | gajus/redux | import expect from 'expect'
import React from 'react'
import TestUtils from 'react-addons-test-utils'
import TodoItem from '../../components/TodoItem'
import TodoTextInput from '../../components/TodoTextInput'
function setup( editing = false ) {
const props = {
todo: {
id: 0,
text: 'Use Redux',
... |
src/browser/components/Checkbox.js | reedlaw/read-it | // @flow
import type { Color } from '../../common/themes/types';
import React from 'react';
import { Button, Text } from '../../common/components';
// Checkbox with SVG icon.
// - flaticon.com
// - thenounproject.com
// TODO: Make it universal. Add focus style.
export type CheckboxProps = {
color?: Color,
disabl... |
packages/react-scripts/fixtures/kitchensink/src/features/webpack/UnknownExtInclusion.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... |
geonode/contrib/monitoring/frontend/src/components/organisms/stats/index.js | simod/geonode | import React from 'react';
import HealthCheck from '../../cels/health-check';
import Uptime from '../../cels/uptime';
import Alerts from '../../cels/alerts';
import Errors from '../../cels/errors';
import styles from './styles';
class Stats extends React.Component {
render() {
return (
<div style={styles.... |
src/browser/me/MePage.js | redcom/doctori-romani-in-berlin | // @flow
import type { State, User } from '../../common/types';
import React from 'react';
import SignOut from '../auth/SignOut';
import getUserPhotoUrl from '../../common/users/getUserPhotoUrl';
import linksMessages from '../../common/app/linksMessages';
import { Box, Image, Text } from '../../common/components';
impo... |
renderer/components/Icon/BigArrowRight.js | LN-Zap/zap-desktop | import React from 'react'
const SvgBigArrowRight = props => (
<svg height="1em" viewBox="0 0 40 28" width="1em" {...props}>
<g
fill="none"
fillRule="evenodd"
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
>
<path d="M1 14h38M24 27l15-13L24 1" />
</g... |
src/svg-icons/av/featured-play-list.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFeaturedPlayList = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 8H3V9h9v2zm0-4H3V5h9v2z"/>
</SvgIcon>
);
AvFeaturedPlayList = pu... |
ajax/libs/react/0.14.0-rc1/react-with-addons.min.js | dhowe/cdnjs | /**
* React (with addons) v0.14.0-rc1
*
* 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 ... |
ajax/libs/react-native-web/0.13.16/cjs/vendor/react-native/Animated/AnimatedImplementation.js | cdnjs/cdnjs | /**
* 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.
*
*
* @format
* @preventMunge
*/
'use strict';
exports.__esModule = true;
exports.default = void 0;
var _AnimatedEvent = require("./A... |
js/3s-dashboard/00.jquery-1.7.min.js | denis-sokolov/3s | /*! jQuery v1.7 jquery.com | jquery.org/license */
(function(a,b){function cA(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cx(a){if(!cm[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cn||(cn=c.createElement("iframe"),cn.frameBorder=... |
ajax/libs/algoliasearch.zendesk-hc/3.0.0-alpha.2/algoliasearch.zendesk-hc.min.js | cdnjs/cdnjs | parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot... |
src/svg-icons/maps/local-mall.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalMall = (props) => (
<SvgIcon {...props}>
<path d="M19 6h-2c0-2.76-2.24-5-5-5S7 3.24 7 6H5c-1.1 0-1.99.9-1.99 2L3 20c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-7-3c1.66 0 3 1.34 3 3H9c0-1.66 1.3... |
src/components/home/Project.js | psongpin/Personal-Website-v2 | import React from 'react'
import { Col } from 'reactstrap'
const Project = ({ name, imgUrl, liveUrl }) => (
<Col className='portfolio-list-item' xs='12' md='6' lg='4'>
<div className='profolio-bg' style={{backgroundImage: `url(${imgUrl})`}}>
<a className='link-overlay' href={ liveUrl } target='_blank'>
... |
newclient/scripts/components/config/declarations/declarations/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
Lic... |
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-common-color-schema-mixin.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import Environment from '../environment/environment.js'
import './color-schema.less';
import './color-schema/default.less';
import './color-schema/yellow.less';
import './color-schema/yellow-rich.less';
import './color-schema/orange.less';
import './color-schema/orange-rich.less';
import './... |
app/jsx/external_apps/components/ExternalToolsTableRow.js | venturehive/canvas-lms | /*
* Copyright (C) 2014 - 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... |
TEMA3/EJERCICIOS/scripts/vendor/jquery.js | redradix/Redradix-course-angular-november2015 | /*!
* 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 ... |
demo/src/index.js | googleinterns/measurement-library | import React from 'react';
import ReactDOM from 'react-dom';
import {BrowserRouter} from 'react-router-dom';
import {App} from './App.js';
import {store} from './store/store.js';
import {Provider} from 'react-redux';
ReactDOM.render(
<React.StrictMode>
<Provider store={store}>
<BrowserRouter>
... |
public/js/cat_source/es6/components/analyze/JobAnalyzeHeader.js | matecat/MateCat | import React from 'react'
import _ from 'lodash'
class JobAnalyzeHeader extends React.Component {
constructor(props) {
super(props)
}
calculateWords() {
this.total = 0
this.payable = 0
let self = this
this.props.totals.forEach(function (chunk) {
self.payable = self.payable + chunk.get(... |
frontend/components/DetailPanel.js | datoszs/czech-lawyers | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import {wrapLinkMouseEvent} from '../util';
import PanelBody from './PanelBody';
import styles from './DetailPanel.less';
const DetailPanel = ({children, footer, title, onClick, href}) => (
<a
className={cla... |
__tests__/components/Anchor-test.js | linde12/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React from 'react';
import renderer from 'react-test-renderer';
import Anchor from '../../src/js/components/Anchor';
import FakeIcon from '../mocks/FakeIcon';
describe('Anchor', () => {
it('has correct default options', () => {
const ... |
dev-server/index.js | alvita/ringcentral-js-widget | import React from 'react';
import ReactDOM from 'react-dom';
import { createStore } from 'redux';
import Phone from './Phone';
import App from './containers/App';
import apiConfig from './api-config';
import brandConfig from './brandConfig';
import version from './version';
import prefix from './prefix';
const phone =... |
newclient/scripts/components/dynamic-icons/plus-icon/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
Lic... |
src/user/components/nav_bar.js | foundersandcoders/sail-back | import React from 'react'
import ReactDOM from 'react-dom'
import { map, zip } from 'ramda'
import { Navbar, Nav, NavItem } from 'react-bootstrap'
class NavigationBar extends React.Component {
componentDidMount () {
const navBar = ReactDOM.findDOMNode(this.refs.navigation_bar)
const collapsibleNav = navBar.q... |
src/js/Containers/NavigationContainer.js | RoyalSix/Eagle-Connect | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Image,
TextInput,
ListView,
TouchableHighlight
} from 'react-native';
const timer = require('react-native-timer');
import { connect } from 'react-redux'
import ChapelContainer from './C... |
examples/InputCheckbox.js | jsbranco/react-materialize | import React from 'react';
import Input from '../src/Input';
import Row from '../src/Row';
export default
<Row>
<Input name='group1' type='checkbox' value='red' label='Red' />
<Input name='group1' type='checkbox' value='yellow' label='Yellow' defaultValue='checked' />
<Input name='group1' type='checkbox' v... |
files/jquery/1.8.3/jquery-1.8.3.min.js | 2947721120/garrulous-octo-rutabaga | /*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.