path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/components/Modal/components/Plugin.js | jaruba/PowderPlayer | import React from 'react';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import ModalActions from '../actions';
import ModalStore from '../store';
import _ from 'lodash';
import plugins from '../../../utils/plugins';
import ls from 'local-storage';
export
default React.createClass({
mixins: [P... |
src/components/testlistselectform.js | bhuvanmalik007/mission-admission | import React from 'react'
import { Field, reduxForm } from 'redux-form'
import PropTypes from 'prop-types'
import Box from 'grommet/components/Box'
import Form from 'grommet/components/Form'
import { Dropdown } from 'office-ui-fabric-react/lib/Dropdown'
import { LowPadButton } from '../pages/myflashcards/localcomponent... |
src/components/auth/signup.js | LiJuons/react-dribbble | import React, { Component } from 'react';
import { reduxForm } from 'redux-form';
import * as actions from '../../actions';
import ReCAPTCHA from 'react-google-recaptcha';
class Signup extends Component {
componentWillMount() {
this.props.clearError();
}
handleFormSubmit(formProps){ this.props.signupUser(fo... |
dev/main.js | bhargav175/learn-js | import React from 'react';
import ReactDOM from 'react-dom';
import Source from '../src/index';
/*
* Root Dev Component
*/
class Main extends React.Component{
render(){
return <div>Main
<Source/>
</div>;
}
}
export default Main;
ReactDOM.render(<Main/>,document.getElementById('app')); |
src/components/Navigation.js | vsherms/LifeCoach | import React from 'react';
import { Link } from 'react-router';
import { observer, inject } from 'mobx-react';
import { Navbar, Nav, NavItem, NavDropdown } from 'react-bootstrap';
import { NavbarHeader, NavbarToggle, NavbarCollapse, NavbarBrand } from 'react-bootstrap/lib/NavbarHeader';
import { LinkContainer } from 'r... |
src/index.js | sunpy1106/pm_react | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
import { Provider } from 'react-redux';
import { createStore ,compose,applyMiddleware} from 'redux';
import reducers from './reducers';
import reduxImmutableStateInvariant from 'redux-immutable-state-invariant';... |
SpinningIcon.js | entria/react-native-fontawesome | import React, { Component } from 'react';
import { Animated, Easing } from 'react-native';
import Icon from './Icon';
class SpinningIcon extends Component {
spinValue = new Animated.Value(0);
componentDidMount(){
this.spin();
};
spin = () => {
this.spinValue.setValue(0);
An... |
src/Parser/DemonHunter/Vengeance/Modules/Statistics/Spells/SigilOfFlame.js | enragednuke/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import AbilityTracker from 'Parser/Core/Modules/AbilityTracker';
import Enemies from 'Parser/Core/Modules/Enemies';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage, formatThousands, formatD... |
static/docs/lib/jquery-1.8.0.min.js | jzajac2/node-sonos-http-api | /*! jQuery v@1.8.0 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d=... |
src/__tests__/IconToggle-test.js | Graf009/react-mdl | /* eslint-env mocha */
import expect from 'expect';
import React from 'react';
import { render } from './render';
import IconToggle from '../IconToggle';
import Icon from '../Icon';
describe('IconToggle', () => {
it('should render an input checkbox inside a <label> ', () => {
const output = render(<IconTog... |
lib/react/Link.js | lukemorton/republic | import React from 'react'
import PropTypes from 'prop-types'
const Link = (props, context) => {
const app = context.app || props.app
const url = app.url(props.action, props.params)
return app.buildLink({ ...props, url })
}
Link.contextTypes = {
app: PropTypes.object
}
export default Link
|
app/components/Popular.js | mohamekasem/reactstart | import React from 'react';
import ProtoTypes from 'prop-types';
import api from '../utils/api';
// import the child components
import RepoGrid from './popular-Child/Repo-Grid';
import SelectLanguage from './popular-Child/SelectLanguages';
// import Reusable Component
import Loading from './Loading'
export default cl... |
src/SectionHeaderSubsection/index.js | christianalfoni/ducky-components | import IconAvaWrapper from '../IconAvaWrapper';
import React from 'react';
import PropTypes from 'prop-types';
import LabelTitle from '../LabelTitle';
import Wrapper from '../Wrapper';
import Typography from '../Typography';
import classNames from 'classnames';
import styles from './styles.css';
function SectionHeader... |
client/src/containers/App/index.js | deoxxa/don | // @flow
import React from 'react';
import Header from 'components/Header';
import Inner from 'components/Inner';
import styles from './styles.css';
const App = ({ children }: { children?: React.Children }) => (
<div>
<Header />
<div className={styles.content}>
<Inner>
{children}
</In... |
packages/@react-boilerplates/mvc-react/test/render.js | dog-days/create-react-boilerplate-app | import React from 'react';
import { render } from 'react-dom';
import Container from 'test/app.jsx';
//监控model全局对象
window.spyModelObj = { sagas: {}, reducers: {} };
export default function renderApp() {
const rootDOM = document.getElementById('root');
//先移除
render(<span />, rootDOM);
//后渲染
render(<Container... |
actor-apps/app-web/src/app/components/sidebar/ContactsSection.react.js | sc4599/actor-platform | import _ from 'lodash';
import React from 'react';
import { Styles, RaisedButton } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import ContactStore from 'stores/ContactStore';
import ContactActionCreators from 'actions/ContactActionCreators';
import AddContactStore from 'stores/AddContactStore'... |
docs/src/app/pages/pieces/block.js | ButuzGOL/constructor | import React from 'react';
import DocumentTitle from 'react-document-title';
import Doc from '../../components/doc';
import { Block, Panel, Div, H3 } from 'constructor';
export default class BlockPage extends React.Component {
render() {
return (
<DocumentTitle title="Block component - Constructor">
... |
wp-includes/js/jquery/jquery.js | digisavvy/ragmag | /*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
geonode/contrib/monitoring/frontend/src/components/organisms/ws-analytics/index.js | timlinux/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import HoverPaper from '../../atoms/hover-paper';
import HR from '../../atoms/hr';
import WSServiceSelect from '../../molecules/ws-service-select';
import ResponseTime from '../../cels/response-time';
import Throughput... |
app/javascript/mastodon/components/__tests__/display_name-test.js | mimumemo/mastodon | import React from 'react';
import renderer from 'react-test-renderer';
import { fromJS } from 'immutable';
import DisplayName from '../display_name';
describe('<DisplayName />', () => {
it('renders display name + account name', () => {
const account = fromJS({
username: 'bar',
acct: 'bar@baz',
... |
app/javascript/mastodon/features/ui/index.js | kirakiratter/mastodon | import classNames from 'classnames';
import React from 'react';
import { HotKeys } from 'react-hotkeys';
import { defineMessages, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import { Redirect, withRouter } from 'react-router-dom';
import PropTypes from 'prop-types';
import NotificationsContai... |
wp-includes/js/jquery/jquery.js | annegrundhoefer/randy | /*! jQuery v1.11.2 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
ajax/libs/video.js/5.0.0-rc.45/alt/video.novtt.js | keicheng/cdnjs | /**
* @license
* Video.js 5.0.0-rc.45 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports... |
ajax/libs/primereact/6.3.1/components/avatargroup/AvatarGroup.min.js | cdnjs/cdnjs | "use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.Ava... |
ajax/libs/ag-grid/4.2.7/ag-grid.noStyle.js | redmunds/cdnjs | // ag-grid v4.2.7
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["agGrid"] = factory();
e... |
examples/componentjs/bower_components/componentjs/component.js | lingjuan/todomvc | /*
** ComponentJS -- Component System for JavaScript <http://componentjs.com>
** Copyright (c) 2009-2013 Ralf S. Engelschall <http://engelschall.com>
**
** 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 obt... |
Components/Feedback.js | subvisual/2017.mirrorconf.com | import React from 'react';
import _ from 'lodash';
import '../css/Components/Feedback';
import quote from '../images/quote.svg';
import feedbackText from '../data/feedback';
import FeedbackSlider from './FeedbackSlider';
import Section from './Section';
import TextTitle from './TextTitle';
import WhiteBox from './Whi... |
sites/all/modules/contrib/jquery_update/replace/jquery/1.5/jquery.min.js | reload/dockhub-testing | /*!
* jQuery JavaScript Library v1.5.1
* 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/image/wb-cloudy.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageWbCloudy = (props) => (
<SvgIcon {...props}>
<path d="M19.36 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.64-4.96... |
src/js/components/FilterTag/index.js | nathanuphoff/datahub.client | import React from 'react'
// import style from 'index.css'
import { eventHandlers } from './events'
export default function FilterTag({ props, content }) {
const { name, value, active } = content
const { toggleActivity } = eventHandlers(props, content)
const className = [ active ? 'active' : '', 'tag' ].jo... |
definitions/npm/@storybook/react_v4.x.x/flow_v0.25.x-v0.71.x/test_react_v4.x.x.js | splodingsocks/FlowTyped | // @flow
import { describe, it } from 'flow-typed-test';
import React from 'react';
import {
storiesOf,
addDecorator,
addParameters,
clearDecorators,
getStorybook,
forceReRender,
configure,
setAddon,
type RenderFunction,
type Story,
} from '@storybook/react';
const Button = props => <button {...pr... |
src/navigation/index.js | banovotz/WatchBug2 | /**
* App Navigation
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React from 'react';
import { Actions, Scene, ActionConst } from 'react-native-router-flux';
// Consts and Libs
import { AppConfig } from '@constants/';
// Components
import Drawer from '@containers/u... |
src/svg-icons/action/hourglass-full.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHourglassFull = (props) => (
<SvgIcon {...props}>
<path d="M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6z"/>
</SvgIcon>
);
ActionHourglassFull = pure(ActionHour... |
src/containers/Login/Login.js | prakash-u/react-redux | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import LoginForm from 'components/LoginForm/LoginForm';
import FacebookLogin from 'components/FacebookLogin/FacebookLogin';
import * as authActions from 'redux/modules/... |
react/examples/Unit_Tests/src/components/App.js | jsperts/workshop_unterlagen | import React from 'react';
import ClickContainer from '../containers/Click';
function App() {
return <ClickContainer />;
}
export default App;
|
src/test.js | pekkis/kino-kobros | import store from './store';
import { renderToString } from 'react-dom/server'
import { match, RouterContext } from 'react-router'
import React from 'react';
import createRoutes from './routes';
const routes = createRoutes(store);
import createHistory from 'history/lib/createMemoryHistory';
import { Provider } from '... |
ajax/libs/pileup/0.5.1/pileup.min.js | hanbyul-here/cdnjs | !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.pileup=t()}}(function(){var t;return function e(t,n,r){... |
resources/assets/admin/components/Campaign/index.js | DoSomething/northstar | import React from 'react';
import gql from 'graphql-tag';
import { map, isEmpty } from 'lodash';
import { format, parseISO } from 'date-fns';
import { useQuery } from '@apollo/react-hooks';
import TextBlock from '../utilities/TextBlock';
import Action, { ActionFragment } from '../Action';
import EntityLabel from '../u... |
local-cli/templates/HelloWorld/__tests__/App.js | rickbeerendonk/react-native | import 'react-native';
import React from 'react';
import App from '../App';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<App />
);
});
|
app/javascript/mastodon/components/loading_indicator.js | res-ac/mstdn.res.ac | import React from 'react';
import { FormattedMessage } from 'react-intl';
const LoadingIndicator = () => (
<div className='loading-indicator'>
<div className='loading-indicator__figure' />
<FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' />
</div>
);
export default LoadingIndicat... |
tilapp/src/containers/Scenes/Book/Sell/index.js | tilap/tilapp | import React, { Component } from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { Button, Container, Content, Form, H3, Input, Item, Picker, Text, View } from 'native-base';
import { BookStateIcon, ListRightArrowIcon, LocationIcon, PriceIcon } from '~/components/Icons';
impor... |
src/js/Pickers/__tests__/TimePicker.js | lwhitlock/grow-tracker | /* eslint-env jest */
jest.unmock('../TimePicker');
import React from 'react';
import { findDOMNode } from 'react-dom';
import {
renderIntoDocument,
findRenderedComponentWithType,
} from 'react-dom/test-utils';
import TimePicker from '../TimePicker';
import TimePickerHeader from '../TimePickerHeader';
import Cloc... |
src/screen/Oscilloscope/components/FFTGraph.js | wavicles/fossasia-pslab-apps | import React, { Component } from 'react';
import {
ResponsiveContainer,
Line,
LineChart,
XAxis,
YAxis,
CartesianGrid,
Tooltip,
Legend,
Label,
} from 'recharts';
import { withTheme } from 'styled-components';
import { GraphWrapper } from './Settings.styles';
const electron = window.require('electron')... |
app/components/body/content.js | Rorchackh/Sink | import React from 'react'
import HeaderTab from './tabs/header_tab'
export default class Content extends React.Component {
constructor(props) {
super(props)
this.services = []
}
componentWillReceiveProps(nextProps) {
if (nextProps.soapClient) {
this.services = nextPro... |
bower_components/angular/docs/js/pages-data.js | Jom901/FunMind | // Meta data used by the AngularJS docs app
angular.module('pagesData', [])
.value('NG_PAGES', {
"api/ng": {
"docType": "module",
"id": "module:ng",
"name": "ng",
"area": "api",
"outputPath": "partials/api/ng/index.html",
"path": "api/ng",
"searchTerms": {
"titleWords": "ng",
... |
examples/todomvc/components/Header.js | pletcher/redux | import React, { PropTypes, Component } from 'react';
import TodoTextInput from './TodoTextInput';
export default class Header extends Component {
static propTypes = {
addTodo: PropTypes.func.isRequired
};
handleSave(text) {
if (text.length !== 0) {
this.props.addTodo(text);
}
}
render() {... |
src/containers/Root.js | kusaeva/firebase-chat | import React from 'react'
const Root = () => (
<div>Hello React Hot Loader!</div>
)
export default Root
|
__tests__/App.js | lukaszgoworko/pan | import 'react-native';
import React from 'react';
import App from '../src/App/App.react';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<App />
);
});
|
frontend/src/Calendar/Header/CalendarHeaderConnector.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { gotoCalendarNextRange, gotoCalendarPreviousRange, gotoCalendarToday, setCalendarView } from 'Store/Actions/calendarActions';
import createDimensionsSel... |
admin/src/components/MobileNavigation.js | stosorio/keystone | import blacklist from 'blacklist';
import classnames from 'classnames';
import React from 'react';
import { Container } from 'elemental';
const Transition = React.addons.CSSTransitionGroup;
var MobileListItem = React.createClass({
displayName: 'MobileListItem',
propTypes: {
className: React.PropTypes.string,
chi... |
kcfinder/cache/base.js | yutuo/wp-kcfinder | /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
mclient/doc/html/_static/jquery.js | YolandaYang/wp-laravel | /*!
* 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.
... |
packages/xo-web/src/common/xo-json-schema-input/xo-subject-input.js | vatesfr/xo-web | import React from 'react'
import { SelectSubject } from 'select-objects'
import XoAbstractInput from './xo-abstract-input'
import { PrimitiveInputWrapper } from '../json-schema-input/helpers'
// ===================================================================
export default class SubjectInput extends XoAbstractIn... |
ajax/libs/vue/1.0.18/vue.js | Amomo/cdnjs | /*!
* Vue.js v1.0.18
* (c) 2016 Evan You
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Vue = factory());
}(this, function () {... |
app/components/Assert.js | cskeppstedt/electron-tap-view | import React from 'react'
import styles from './Assert.css'
import classNamesBind from 'classnames/bind'
const classNames = classNamesBind.bind(styles)
export default ({ assert }) => {
const rootStyles = classNames('root', {
'ok': assert.ok,
'not-ok': !assert.ok
})
return (
<div className={rootStyl... |
src/components/login/icons/FacebookIcon.js | juanda99/arasaac | import React from 'react'
import Facebook from 'svg-icons/facebook'
import {white} from 'material-ui/styles/colors'
const style = {
top: 7,
position: 'relative',
width: 30,
marginLeft: 40
}
const FacebookIcon = () => (
<Facebook style={style} color={white} />
)
export default FacebookIcon
|
packages/material-ui-icons/src/MicOff.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0zm0 0h24v24H0z" /><path d="M19 11h-1.7c0 .74-.16 1.43-.43 2.05l1.23 1.23c.56-.98.9-2.09.9-3.28zm-4.02.17c0-.06.02-.11.02-.17V5c0-1.66-1.34-3-3-3S9 3.34 9 5v.18l... |
src/Menu/SimpleMenu/SimpleMenu.js | gutenye/react-mc | // @flow
import React from 'react'
import cx from 'classnames'
import { MDCSimpleMenuFoundation, util } from '@material/menu/dist/mdc.menu'
import * as helper from '../../helper'
import type { PropsC } from '../../types'
class Menu extends React.Component {
props: {
/** items: [{text, disabled, ...props}] */
... |
android/source/component/postList.js | cloudfavorites/favorites | import React, { Component } from 'react';
import {
View,
ListView
} from 'react-native';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import * as PostAction from '../action/post';
import PostRow from '../component/pos... |
app/javascript/mastodon/components/__tests__/avatar-test.js | lynlynlynx/mastodon | import React from 'react';
import renderer from 'react-test-renderer';
import { fromJS } from 'immutable';
import Avatar from '../avatar';
describe('<Avatar />', () => {
const account = fromJS({
username: 'alice',
acct: 'alice',
display_name: 'Alice',
avatar: '/animated/alice.gif',
avatar_static:... |
ajax/libs/angular.js/0.9.3/angular-scenario.js | NUKnightLab/cdnjs | /*!
* jQuery JavaScript Library v1.4.2
* 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.
... |
src/svg-icons/toggle/star-half.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ToggleStarHalf = (props) => (
<SvgIcon {...props}>
<path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.... |
site_libs/jquery-1.11.3/jquery.min.js | dialektike/dialektike.github.com | /*! jQuery v1.11.3 | (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 wind... |
ui/src/main/frontend/src/containers/Home.js | Dokuro-YH/alice-projects | import React, { Component } from 'react';
import axios from 'axios';
class Home extends Component {
state = {
data: {}
}
componentDidMount() {
axios.get('/api/hello/sayHello')
.then(response => this.setState({ data: response.data }))
}
render() {
return (
<div>
<p>{this.state.... |
app/app.js | prudhvisays/newsb | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
impor... |
packages/@lyra/state-router/demo-server/components/NeverUpdate.js | VegaPublish/vega-studio | import React from 'react'
import ProductCounter from './ProductCounter'
export default class NeverUpdate extends React.Component {
shouldComponentUpdate() {
return false
}
render() {
return (
<span>
Hello this is a component that never updates. It includs another
component that depe... |
local-cli/install.js | adamterlson/react-native | /**
* Copyright 2004-present Facebook. All Rights Reserved.
*/
'use strict';
var fs = require('fs');
var path = require('path');
var exec = require('child_process').exec;
var NODE_MODULE_PATH = path.resolve(__dirname, 'node_modules');
var PODFILE_PATH = path.resolve(__dirname, 'Podfile');
function addDependency... |
frontend/src/Artist/Editor/Tags/TagsModal.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React from 'react';
import Modal from 'Components/Modal/Modal';
import TagsModalContentConnector from './TagsModalContentConnector';
function TagsModal(props) {
const {
isOpen,
onModalClose,
...otherProps
} = props;
return (
<Modal
isOpen={isOpen}... |
test/notifications-alert-test.js | knledg/react-blur-admin | import React from 'react';
import {expect} from 'chai';
import {mount} from 'enzyme';
import { noop } from 'lodash';
import { NotificationsAlert } from '../src';
describe('<NotificationsAlert/>', function() {
const component = mount(<NotificationsAlert markAllAsReadOnClick={noop} allNotificationsOnClick={noop} sett... |
packages/import-sort-playground/babylon.js | renke/import-sort | import "a";
import * as b from "b";
import React from 'react';
import ReactDOM from 'react-dom';
import Search from '@uber/react-inline-icons/search';
import f from "f";
import isEqual from 'lodash/isEqual';
import {TextInput} from '@uber/react-inputs';
import {a, c, i} from "e";
import {connectToStyles} from '@uber/s... |
ajax/libs/es6-shim/0.25.0/es6-shim.js | sajochiu/cdnjs | /*!
* https://github.com/paulmillr/es6-shim
* @license es6-shim Copyright 2013-2014 by Paul Miller (http://paulmillr.com)
* and contributors, MIT License
* es6-shim: v0.25.0
* see https://github.com/paulmillr/es6-shim/blob/0.25.0/LICENSE
* Details and documentation:
* https://github.com/paulmillr/es6-... |
src/components/general/Error.js | shojil/bifapp | /**
* Error Screen
*
<Error text={'Server is down'} />
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React from 'react';
import PropTypes from 'prop-types';
import { View } from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
// Consts and... |
server/node_modules/react-router-dom/es/MemoryRouter.js | Atanasov86/Car-System | export { MemoryRouter as default } from 'react-router'; |
packages/core/admin/admin/src/pages/InstalledPluginsPage/index.js | wistityhq/strapi | import React from 'react';
import { CheckPagePermissions } from '@strapi/helper-plugin';
import { Helmet } from 'react-helmet';
import { useIntl } from 'react-intl';
import adminPermissions from '../../permissions';
import Plugins from './Plugins';
const InstalledPluginsPage = () => {
const { formatMessage } = useIn... |
src/NavItem.js | gianpaj/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import SafeAnchor from './SafeAnchor';
const NavItem = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
linkId: React.PropTypes.string,
onSelect: React.PropTypes.func,
active: React... |
app/components/Main.js | betofigueiredo/base-jump-logbook | import React, { Component } from 'react';
import { Link } from 'react-router';
class Main extends Component {
render () {
return (
<div className="main-wrapper">
{React.cloneElement(this.props.children, this.props)}
</div>
);
}
}
export default Main;
|
ajax/libs/mobx/3.1.7/mobx.umd.min.js | extend1994/cdnjs | /** MobX - (c) Michel Weststrate 2015, 2016 - MIT Licensed */
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:... |
assets/jqwidgets/demos/react/app/scheduler/events/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxScheduler from '../../../jqwidgets-react/react_jqxscheduler.js';
class App extends React.Component {
componentDidMount() {
// gets scrollbable height.
let scrollHeight = this.refs.myScheduler.scrollHeight();
// scroll 7... |
src/components/Link/Link.js | kuao775/mandragora | /**
* 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/reactstrap/lib/CardDeck.js | mohammed52/something.pk | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
__tests__/index.android.js | liuboshuo/react-native-food | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
fields/types/color/ColorField.js | suryagh/keystone | import ColorPicker from 'react-color';
import Field from '../Field';
import React from 'react';
import { FormInput, InputGroup } from 'elemental';
const PICKER_TYPES = ['chrome', 'compact', 'material', 'photoshop', 'sketch', 'slider', 'swatches'];
const TRANSPARENT_BG
= `<svg width="24" height="24" viewBox="0 0 24 24... |
client/engines/historyUtils.js | Cellarise/cell-cycle | import React from 'react';
import R from 'ramda';
import Collapse from '../page/collapse.jsx';
import {formattedBrokenDateTimeAMPM} from '../utils';
import {TimelineTypeIcon, RenderReply, RenderActivityCommentsHeader} from './engineUtils';
import {getEventName} from './eventUtils';
import {createSyntheticEvent, getValu... |
client/modules/core/components/.stories/home.js | thancock20/voting-app | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { withKnobs, text, boolean, number, object } from '@kadira/storybook-addon-knobs';
import { setComposerStub } from 'react-komposer';
import Home from '../home.jsx';
storiesOf('core.Home', module)
.addDecorator(withKnobs)
.add(... |
packages/components/src/Skeleton/Skeleton.component.js | Talend/ui | import React from 'react';
import PropTypes from 'prop-types';
import { useTranslation } from 'react-i18next';
import Icon from '../Icon';
import skeletonCssModule from './Skeleton.scss';
import { getTheme } from '../theme';
import I18N_DOMAIN_COMPONENTS from '../constants';
import '../translate';
const theme = getThe... |
react/exercises/part_05/src/components/ContactForm.js | jsperts/workshop_unterlagen | import React from 'react';
import PropTypes from 'prop-types';
import './ContactForm.css';
function ContactForm({ onCancel }) {
return (
<form className="contact-form">
<div className="row">
<div className="col-xs-6">
<div className="form-group">
<label htmlFor="name">Name:</... |
src/App.js | jeetiss/client | import React from 'react'
import Login from './containers/login'
import Messages from './containers/messages'
import Chat from './containers/chat'
import Admin from './containers/admin'
import Loader from './components/loader'
import theme from './theme'
import { connect } from 'react-redux'
import { selectUser } from ... |
ajax/libs/video.js/4.9.1/video.dev.js | KOLANICH/cdnjs | /**
* @fileoverview Main function src.
*/
// HTML5 Shiv. Must be in <head> to support older browsers.
document.createElement('video');
document.createElement('audio');
document.createElement('track');
/**
* Doubles as the main function for users to create a player instance and also
* the main library object.
*
... |
react/features/recording/components/LiveStream/native/GoogleSigninForm.js | jitsi/jitsi-meet | // @flow
import React, { Component } from 'react';
import { Text, View } from 'react-native';
import { _abstractMapStateToProps } from '../../../../base/dialog';
import { translate } from '../../../../base/i18n';
import { connect } from '../../../../base/redux';
import { StyleType } from '../../../../base/styles';
im... |
src/interface/icons/Patreon.js | ronaldpereira/WoWAnalyzer | import React from 'react';
// From the GitHub branding website.
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 292 104" className="icon" {...other}>
<path fillRule="evenodd" d="M284.367244,104 L284.367244,1.42108547e-14 L291.998128,1.42108547e-14 L291.998128,104 L284.367244... |
icandevit/src/components/Home.js | yeli-buonya/icandevit.io | import React from 'react';
import { fadeInLeft, fadeInRight } from 'react-animations';
import Radium, { Style, StyleRoot } from 'radium';
import { bounce } from 'react-animations';
const styles = {
fadeInLeft: {
animation: 'x 2s',
animationName: Radium.keyframes(fadeInLeft, 'fadeInLeft')
},
... |
src/svg-icons/image/filter-frames.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterFrames = (props) => (
<SvgIcon {...props}>
<path d="M20 4h-4l-4-4-4 4H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H4V6h4.52l3.52-3.5L15.52 6H20v14zM18 8H6v10h12"/>
</... |
ajax/libs/phaser/2.1.0/custom/p2.js | askehansen/cdnjs | /**
* The MIT License (MIT)
*
* Copyright (c) 2013 p2.js authors
*
* 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 ... |
src/Grid/components/__tests__/Header-test.js | ambitioninc/react-ui | import Mingus from 'mingus';
import React from 'react';
import fixtures from './fixtures';
import Header from '../Header';
Mingus.createTestCase('HeaderTest', {
testRender() {
const columnIndex = 0;
const column = fixtures.columns[columnIndex];
const rendered = this.renderComponent(
... |
src/components/Actions/index.js | fedebertolini/json-editor | import React from 'react';
import EditButton from './EditButton';
import DeleteButton from './DeleteButton';
import AddArrayItemButton from './AddArrayItemButton';
import AddObjectPropertyButton from './AddObjectPropertyButton';
import './styles.css';
const Actions = ({ path, allowAddItem, allowAddProperty, allowDelet... |
slides/images/milliseconds_files/jquery.js | joshbroton/you-dont-need-jquery | /*! jQuery v1.7.2 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde... |
src/svg-icons/editor/format-italic.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatItalic = (props) => (
<SvgIcon {...props}>
<path d="M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4z"/>
</SvgIcon>
);
EditorFormatItalic = pure(EditorFormatItalic);
EditorFormatItalic.displayName ... |
DemoApp/lib/field-error/index.js | andyfen/react-native-UIKit | import React from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';
import { gutter, error } from '../variables';
const FieldError = ({ errorMsg, error, color, marginBottom }) => (
<View style={[styles.container, { marginBottom }]}>
{error ? <Text style={{ color }}>
{errorMsg}
</T... |
src/components/Welcome.js | drakang4/creative-project-manager | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { primary, secondary } from '../styles/color';
const Wrapper = styled.div`
width: 100vw;
height: 100vh;
linear-gradient(45deg, ${primary}, ${secondary});
`;
const Welcome = (props) => {
return (
<... |
effcalculator/frontend/assets/js/routes/detectors/components/SingleInput.js | alvcarmona/efficiencycalculatorweb | /**
* Created by alvarocbasanez on 31/07/17.
*/
import React from 'react';
const SingleInput = (props) => (
<div className="form-group">
<label className="form-label">{props.title}</label>
<input
className="form-input"
name={props.name}
type={props.inputType}
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.