path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
InstitutionalApp/app.js | michelmarcondes/ReactNativeStudies | //import React from 'react';
// import {
// StyleSheet,
// View,
// StatusBar
// } from 'react-native';
import { StackNavigator } from 'react-navigation';
import HomeScreen from './src/components/homeScreen';
import ClientsScreen from './src/components/clientScreen';
import ContactScreen from './src/components/... |
test/test_helper.js | karimsamir/React_blog | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
src/interface/icons/Strength.js | yajinni/WoWAnalyzer | import React from 'react';
const icon = props => (
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="16 16 32 32" className="icon" {...props}>
<path d="M49.771,31.52H47.57v-6.691c0-0.821-0.672-1.492-1.492-1.492c-0.821,0-1.492,0.672-1.492,1.492 c0-0.821-0.672-1.492-1.492-1.492S41.6,24.008,41.6,24.828... |
public/flatify/client/bower_components/jquery.ui/tests/jquery-1.10.2.js | selldat/coinbinator | /*!
* jQuery JavaScript Library v1.10.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-03T13:48Z
*/
(function( window, undefined ) {
// ... |
src/svg-icons/av/fiber-new.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFiberNew = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zM8.5 15H7.3l-2.55-3.5V15H3.5V9h1.25l2.5 3.5V9H8.5v6zm5-4.74H11v... |
src/components/Header/Header.js | jifeon/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './Header.css';
import withStyles from '../../decorators/withStyles';
import Link from '../../utils/Link';
import Navigation from '../Navigation';
@withStyles(styles)
class Header {
render() {
... |
ajax/libs/foundation/4.1.2/js/vendor/jquery.js | abhi901abhi/cdnjs | /*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-2-4
*/
(function( window, undefined ) {
// Can't do t... |
django/webcode/webcode/frontend/node_modules/react-bootstrap/es/ModalDialog.js | OpenKGB/webcode | 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 ... |
ajax/libs/highcharts/3.0.7/highcharts.src.js | michaelgarner/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highcharts JS v3.0.7 (2013-10-24)
*
* (c) 2009-2013 Torstein Hønsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout... |
src/shared/components/signUpLink/signUpLink.js | NestorSegura/operationcode_frontend | import React from 'react';
import { Link } from 'react-router-dom';
import PropTypes from 'prop-types';
const SignUpLink = ({ text }) => (
<Link to="/join">{text}</Link>
);
SignUpLink.propTypes = {
text: PropTypes.string
};
SignUpLink.defaultProps = {
text: 'Sign up'
};
export default SignUpLink;
|
app/javascript/mastodon/features/notifications/components/column_settings.js | imas/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage } from 'react-intl';
import ClearColumnButton from './clear_column_button';
import GrantPermissionButton from './grant_permission_button';
import SettingToggle from './set... |
src/scenes/home/informationForm/informationForm.js | NestorSegura/operationcode_frontend | import React, { Component } from 'react';
import { Redirect } from 'react-router-dom';
import Section from 'shared/components/section/section';
import FormButton from 'shared/components/form/formButton/formButton';
import { patchBackend } from 'shared/utils/apiHelper';
import Identifier from './formComponents/identifie... |
src/renderer/views/nav.js | minodisk/markn | import React from 'react'
import fileStore from '../stores/file'
import historyStore from '../stores/history'
import historyAction from '../actions/history'
import menuAction from '../actions/menu'
export default class NavComponent extends React.Component {
displayName = 'NavComponent'
constructor (props) {
s... |
react-router-webpack-code-splitting/src/app.js | LiuuY/code-splitting-demo | import React from 'react'
import {BrowserRouter, Link, Route} from 'react-router-dom'
// getComponent is a function that returns a promise for a component
// It will not be called until the first mount
function asyncComponent(getComponent) {
return class AsyncComponent extends React.Component {
static Component =... |
src/svg-icons/image/crop-rotate.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropRotate = (props) => (
<SvgIcon {...props}>
<path d="M7.47 21.49C4.2 19.93 1.86 16.76 1.5 13H0c.51 6.16 5.66 11 11.95 11 .23 0 .44-.02.66-.03L8.8 20.15l-1.33 1.34zM12.05 0c-.23 0-.44.02-.66.04l3.81 3.81... |
node_modules/react-icons/md/add-shopping-cart.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdAddShoppingCart = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m12 24.6q0 0.4 0.3 0.4h19.3v3.4h-20q-1.3 0-2.3-1.1t-0.9-2.3q0-0.8 0.4-1.6l2.2-4.1-6-12.7h-3.4v-3.2h5.5q1.6 3.2 3.1 6.6 0.4 0.7 1.8 3.7t2.2 4.7h11.7q5.9-10.7 6... |
libraries/mobx/timer-strict/src/index.js | vivaxy/course | import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import { useStrict } from 'mobx';
import AppState from './AppState';
import App from './App';
import './index.css';
useStrict(true);
const appState = new AppState();
render(<App appState={appState} />, doc... |
node_modules/aphrodite/examples/src/examples-ssr.js | ed1d1a8d/macweb | /* @flow */
import ReactDOMServer from 'react-dom/server';
import React from 'react';
import { StyleSheetServer } from '../../src/index.js';
import StyleTester from './StyleTester.js';
export default function() {
const data = StyleSheetServer.renderStatic(
() => ReactDOMServer.renderToString(<StyleTester ... |
packages/spacebars-tests/template_tests.js | shmiko/meteor | var divRendersTo = function (test, div, html) {
Tracker.flush({_throwFirstError: true});
var actual = canonicalizeHtml(div.innerHTML);
test.equal(actual, html);
};
var nodesToArray = function (array) {
// Starting in underscore 1.4, _.toArray does not work right on a node
// list in IE8. This is a workaround... |
src/Home.js | grommet/grommet-docs | // (C) Copyright 2014-2017 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import { findDOMNode } from 'react-dom';
import Article from 'grommet/components/Article';
import Header from 'grommet/components/Header';
import Heading from 'grommet/components/Heading';
import Footer from ... |
packages/my-joy-instances/src/mocks/theme.js | geek/joyent-portal | import React from 'react';
import { ThemeProvider } from 'styled-components';
import {
theme,
RootContainer,
PageContainer,
ViewContainer
} from 'joyent-ui-toolkit';
export default ({ children, ss }) => (
<ThemeProvider theme={theme}>
{ss ? (
<RootContainer>
<PageContainer>
<ViewC... |
src/utils/fs.js | juliocanares/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import fs from 'fs';
const exists = filename => new Promise(resolve => {
fs.exists(filename, resolve);
});
const readFile = filename => new Promise((resolve, reject) => {
fs.readFile(filename, 'utf8', (err, data) => {
if (err) {
r... |
client/modules/App/components/Footer/Footer.js | aksm/refactored-palm-tree | import React from 'react';
import { FormattedMessage } from 'react-intl';
// Import Style
import styles from './Footer.css';
// Import Images
import bg from '../../header-bk.png';
export function Footer() {
return (
<div style={{ background: `#FFF url(${bg}) center` }} className={styles.footer}>
{/* <p>&c... |
packages/material-ui-icons/src/ContentCut.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M9.64 7.64c.23-.5.36-1.05.36-1.64 0-2.21-1.79-4-4-4S2 3.79 2 6s1.79 4 4 4c.59 0 1.14-.13 1.64-.36L10 12l-2.36 2.36C7.14 14.13 6.59 14 6 14c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4c0-.59-.13-1.14-.3... |
src/app/topApp.js | thiagolucio/REACT-whiteLabel | import React from 'react';
import {Toolbar, ToolbarGroup, ToolbarSeparator, ToolbarTitle} from 'material-ui/Toolbar';
export default class TopApp extends React.Component {
render() {
return (
<Toolbar className="toolbar-top">
<ToolbarGroup>
<img ... |
src/components/SignUpView.js | dggriffin/MPSOhhh | require('styles/App.css');
import React from 'react';
import {RaisedButton, TextField} from 'material-ui';
class SignUpView extends React.Component {
constructor(props) {
super(props);
this.state = {
firstName: '',
lastName: '',
teamName: ''
};
}
handleOnClick() {... |
spec/javascripts/jsx/blueprint_courses/components/ExpandableLockOptionsSpec.js | venturehive/canvas-lms | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
demo/components/select/MultiSelectDemo.js | ctco/rosemary-ui | import React from 'react';
import {MultiSelect} from '../../../src';
import DemoWithSnippet from '../../layout/DemoWithSnippet';
export default class MultiSelectDemo extends React.Component {
constructor(props) {
super(props);
this.manyOptions = this.generateOptions(1000);
}
generateOptio... |
src/web/forms/fields/SubformList/__mocks__/index.js | asha-nepal/AshaFusionCross | /**
* Copyright 2017 Yuichiro Tsuchiya
*
* 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 agr... |
test/jasmine/tests/transform_multi_test.js | etpinard/plotly.js | var Plotly = require('@lib/index');
var Filter = require('@src/transforms/filter');
var Plots = require('@src/plots/plots');
var Lib = require('@src/lib');
var createGraphDiv = require('../assets/create_graph_div');
var destroyGraphDiv = require('../assets/destroy_graph_div');
var customAssertions = require('../asse... |
indico/web/client/js/jquery/widgets/track_role_widget.js | DirkHoffmann/indico | // This file is part of Indico.
// Copyright (C) 2002 - 2021 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.
import React from 'react';
import ReactDOM from 'react-dom';
import {TrackACLField} from 'indico/rea... |
packages/react-reconciler/src/__tests__/ReactIncrementalErrorHandling-test.internal.js | VioletLife/react | /**
* 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.
*
* @emails react-core
* @jest-environment node
*/
'use strict';
let PropTypes;
let ReactFeatureFlags;
let React;
let ReactNoop;
... |
packages/material-ui-icons/src/Language.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Language = props =>
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56... |
jujugui/static/gui/src/app/components/inspector/relate-to/endpoint/test-endpoint.js | mitechie/juju-gui | /* Copyright (C) 2017 Canonical Ltd. */
'use strict';
const React = require('react');
const InspectorRelateToEndpoint = require('./endpoint');
const ButtonRow = require('../../../button-row/button-row');
const CheckListItem = require('../../../check-list-item/check-list-item');
const jsTestUtils = require('../../../... |
app/jsx/styleguide/ReactModalExample.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... |
src/components/Counter.js | 25sprout/web-starter | import React from 'react';
import styles from '../css/counter.css';
class Counter extends React.Component {
constructor() {
super();
this.state = { number: 0 };
this.handlePlus = this.handlePlus.bind(this);
this.handleMinus = this.handleMinus.bind(this);
}
handlePlus() {
this.setState({ number: this.st... |
src/admin/src/components/controls/forms/form_number.js | jgretz/zen-express | import React from 'react';
import { NumberInput } from '../inputs';
export const formNumber = (field) =>
<NumberInput
key={field.name}
name={field.name}
label={field.name}
/>;
|
src/components/Sidebar/index.js | vogelino/design-timeline | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import './Sidebar.css';
import SelectMessage from './SelectMessage';
import SidebarContent from './SidebarContent';
export const SidebarComponent = ({ selectedEvent }) => (
<div className="sidebar">
{!selectedEvent... |
ajax/libs/styled-components/3.4.9/styled-components-no-parser.esm.min.js | joeyparrish/cdnjs | import hyphenate from"fbjs/lib/hyphenateStyleName";import React,{cloneElement,Component,createElement}from"react";import Stylis from"stylis";import _insertRulePlugin from"stylis-rule-sheet";import PropTypes from"prop-types";import stream from"stream";import hoistStatics from"hoist-non-react-statics";import{isValidEleme... |
templates/backOffice/default/assets/js/libs/jquery.js | soberanes/thelia | /*! jQuery v1.10.1 | (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.1",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.in... |
examples/src/components/CustomRender.js | millerized/react-select | import React from 'react';
import Select from 'react-select';
var DisabledUpsellOptions = React.createClass({
displayName: 'DisabledUpsellOptions',
propTypes: {
label: React.PropTypes.string,
},
getInitialState () {
return {};
},
setValue (value) {
this.setState({ value });
console.log('Support level sel... |
docs/src/app/components/pages/components/Stepper/VerticalLinearStepper.js | IsenrichO/mui-with-arrows | import React from 'react';
import {
Step,
Stepper,
StepLabel,
StepContent,
} from 'material-ui/Stepper';
import RaisedButton from 'material-ui/RaisedButton';
import FlatButton from 'material-ui/FlatButton';
/**
* Vertical steppers are designed for narrow screen sizes. They are ideal for mobile.
*
* To use t... |
ajax/libs/rollbar.js/2.4.5/rollbar.noconflict.umd.js | sufuf3/cdnjs | (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["rollbar"] = factory();
else
root["rollb... |
examples/example-jest/src/MyComponent.spec.js | PepsRyuu/mocha-istanbul-ui | import React from 'react';
import { createRenderer } from 'react-test-renderer/shallow';
import MyComponent from './MyComponent';
describe('MyComponent', () => {
it ('should render message prop', () => {
let renderer = createRenderer();
renderer.render(<MyComponent message="Hello World" />);
... |
src/pages/login/page.js | suttonj/topshelf | import React from 'react';
import { browserHistory } from 'react-router';
import styles from './style.css';
export default class LoginPage extends React.Component {
signUp() {
browserHistory.push('/home');
}
render() {
return (
<div className={styles.content}>
<h1 className={styles.head... |
demo/react-0.14.3/React-Learning/react-webpack/js/timer.js | waterbolik/prestudy | import React from 'react';
let Timer = React.createClass({
//初始化状态变量
getInitialState(){
return {elapsed: 0};
},
//当组件在页面上渲染完成之后调用
componentDidMount(){
this.timer = setInterval(this.tick,50);
},
//当组件刚刚从页面中移除或销毁时调用
componentWillUnmount(){
clearInterval(this.timer);
},
tick(){
//每50ms... |
src/client/pages/about.react.js | sljuka/portfulio | import Component from '../components/component.react';
import React from 'react';
class Home extends Component {
render() {
return (
<div className='row about-page'>
<div className='col-md-4 col-xs-12 cv-pick'>
<div>
<div className='personal-pic'>
</div>
</d... |
app/app.js | bhefty/react-redux-boilerplate | /**
* app.js
* This is the entry file for the application.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill'
// Import third party modules
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { ConnectedRouter } from 'react-router-redux'
im... |
Examples/UIExplorer/NavigationExperimental/NavigationCompositionExample.js | pglotov/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
src/atoms/FlashMessage/index.js | policygenius/athenaeum | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import styles from './flash_message.module.scss';
function FlashMessage(props) {
const {
children,
variant,
} = props;
return (
<div className={classnames(styles['flash-message'], styles[variant])}>
... |
docs/app/Examples/collections/Breadcrumb/Content/BreadcrumbDividerExample.js | jcarbo/stardust | import React from 'react'
import { Breadcrumb } from 'stardust'
const BreadcrumbDividerExample = () => (
<Breadcrumb>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider>/</Breadcrumb.Divider>
<Breadcrumb.Section link>Registration</Breadcrumb.Section>
<Breadcrumb.Divider>/</Breadcr... |
dashboard/components/log.js | vinnyhuang/fw-dev-dashboard | import React, { Component } from 'react';
import ansiHTML from 'ansi-html';
import Parser from 'html-react-parser';
ansiHTML.setColors({
reset: ['111111','ffffff'],
black: '111111',
white: 'ffffff',
red: 'ff4136',
green: '2ecc40',
yellow: 'ffdc00',
blue: '0074d9',
magenta: ... |
tweets-component.js | manubamba/react-twitter | import React from 'react';
import {connect} from 'react-redux';
import Tweet from './tweet';
@connect(({tweets}) => ({
tweets
}))
export default class TweetsComponent extends React.Component {
static propTypes = {
tweets: React.PropTypes.object,
};
constructor(props) {
super(props);
}
render() ... |
src/server.js | Justkant/WhatAShop | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
import ApiC... |
actor-apps/app-web/src/app/components/DialogSection.react.js | KitoHo/actor-platform | import _ from 'lodash';
import React from 'react';
import { PeerTypes } from 'constants/ActorAppConstants';
import MessagesSection from 'components/dialog/MessagesSection.react';
import TypingSection from 'components/dialog/TypingSection.react';
import ComposeSection from 'components/dialog/ComposeSection.react';
i... |
server/sonar-web/src/main/js/apps/background-tasks/header.js | joansmith/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program 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 3 of the License... |
examples/auth-with-shared-root/components/Logout.js | djkirby/react-router | import React from 'react'
import auth from '../utils/auth'
const Logout = React.createClass({
componentDidMount() {
auth.logout()
},
render() {
return <p>You are now logged out</p>
}
})
module.exports = Logout
|
analysis/paladinretribution/src/modules/features/Checklist/Module.js | anom0ly/WoWAnalyzer | import CastEfficiency from 'parser/shared/modules/CastEfficiency';
import Combatants from 'parser/shared/modules/Combatants';
import BaseChecklist from 'parser/shared/modules/features/Checklist/Module';
import PreparationRuleAnalyzer from 'parser/shared/modules/features/Checklist/PreparationRuleAnalyzer';
import React ... |
src/components/QuestionItem/QuestionItem.js | poeschko/ask-refugeescode | // @flow
import React from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import FaEdit from 'react-icons/lib/fa/edit';
import s from './QuestionItem.css';
import type Question from '../../data/flow/Question';
class QuestionItem extends React.Component {
static defaultProps = {
open... |
node_modules/native-base/Components/Widgets/Textarea.js | mk007sg/threeSeaShells | /* @flow */
'use strict';
import React from 'react';
import {View, TextInput} from 'react-native';
import NativeBaseComponent from '../Base/NativeBaseComponent';
import computeProps from '../../Utils/computeProps';
export default class Textarea extends NativeBaseComponent {
propTypes: {
style : React.PropTy... |
src/components/Feedback/Feedback.js | medevelopment/updatemeadmin | /**
* 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 withStyles from 'isom... |
ajax/libs/yui/3.6.0/event-focus/event-focus.js | drewbaumann/cdnjs | YUI.add('event-focus', function(Y) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
arrayIndex = Y.Array.indexOf,
useActivate = YLang.isFunction(
Y... |
src/components/video_list.js | IanY57/ReduxSimpleStarter | import React from 'react';
import VideoListItem from './video_list_item';
const VideoList = (props) => {
const videoItems = props.videos.map((video) => {
return(
<VideoListItem
onVideoSelect={props.onVideoSelect}
key={video.etag}
video={video}
... |
src/parser/shared/modules/items/bfa/dungeons/RezansGleamingEye.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS/index';
import ITEMS from 'common/ITEMS/index';
import Analyzer from 'parser/core/Analyzer';
import ItemStatistic from 'interface/statistics/ItemStatistic';
import BoringItemValueText from 'interface/statistics/components/BoringItemValueText';
import UptimeI... |
src/js/components/app.js | maxkernw/React-Flux | import React from 'react';
import AppData from './app-data';
import Register from './register/app-register';
import Header from './app-header';
import UserDetail from './app-datadetail';
import {Router, Route, IndexRoute} from 'react-router';
import Login from './app-loginform';
export default () =>{
return (
<R... |
src/tests/Header.spec.js | johnstew/cdnjs-ext | import { expect } from 'chai';
import React from 'react';
import { shallow } from 'enzyme';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import Header from '../components/Header';
import { APP_PRIMARY_COLOR } from '../global/styles';
describe('<CopyButton />', () => {
const muiTheme = getMuiTheme();
c... |
src/js/views/Artist/Related.js | jaedb/Iris | import React from 'react';
import { Grid } from '../../components/Grid';
export default ({ artist }) => {
return (
<div className="body related-artists">
<section className="grid-wrapper no-top-padding">
<Grid items={artist.related_artists} />
</section>
</div>
);
};
|
frontendsrc/components/Fourbyfour.js | nongaap/minimax | import fetch from 'isomorphic-fetch';
import React, { Component } from 'react';
import Row from './Row';
function getInitialState() {
return {
rows: [
['', '', '', ''],
['', '', '', ''],
['', '', '', ''],
['', '', '', ''],
],
turn: 'X',
player: 'HUMAN',
enableO: false,
... |
packages/icons/src/md/maps/DirectionsWalk.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdDirectionsWalk(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M26 11c2.2 0 4-1.8 4-4s-1.8-4-4-4-4 1.8-4 4 1.8 4 4 4zm-7.5 6.8L13 46h4.2l3.5-16 4.3 4v12h4V30.9l-4.1-4.1 1.2-6C28.7 24 32.6 26 37 26v-4c-3.7 ... |
src/client/athrun/core/container/screens/components/menulist.js | cnfi/laboratory | import React, { Component } from 'react';
import { Link } from 'react-router';
import { Menu, Icon } from 'antd';
class MenuList extends React.Component{
render() {
const {navs, subRoute, menuClickHandler} = this.props;
let items = navs.map((item,index) => {
return (
... |
packages/material-ui-icons/src/InsertChartTwoTone.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="M19 5H5v14h14V5zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z" opacity=".3" /><path d="M3 5v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2... |
ajax/libs/reactive-coffee/1.0.0/reactive-coffee.js | evanbleiweiss/cdnjs | (function() {
var DepArray, DepCell, DepMap, DepMgr, Ev, FakeObsCell, FakeSrcCell, IndexedArray, IndexedDepArray, IndexedMappedDepArray, MappedDepArray, ObsArray, ObsCell, ObsMap, ObsMapEntryCell, RawHtml, Recorder, SrcArray, SrcCell, SrcMap, SrcMapEntryCell, asyncBind, bind, depMgr, ev, events, firstWhere, flatten, ... |
server/src/assets/javascripts/components/select_buttons.react.js | joe-re/automock | import React from 'react';
export default class SelectButtons extends React.Component {
handleClickSelectButton() {
this.props.onClickSelectButton(this.props.selectedFromNotSelectedFiles);
}
handleClickUnselectButton() {
this.props.onClickUnselectButton(this.props.selectedFromSelectedFiles.id);
}
ren... |
docs/src/app/components/pages/components/Chip/ExampleSimple.js | lawrence-yu/material-ui | import React from 'react';
import Avatar from 'material-ui/Avatar';
import Chip from 'material-ui/Chip';
import FontIcon from 'material-ui/FontIcon';
import SvgIconFace from 'material-ui/svg-icons/action/face';
import {blue300, indigo900} from 'material-ui/styles/colors';
const styles = {
chip: {
margin: 4,
},... |
test/NavbarSpec.js | tonylinyy/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Navbar from '../src/Navbar';
import Nav from '../src/Nav';
describe('Nav', function () {
it('Should create nav element', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Navbar />
);
let nav = ... |
admin/client/App/components/Navigation/Mobile/index.js | alobodig/keystone | /**
* The mobile navigation, displayed on screens < 768px
*/
import React from 'react';
import Transition from 'react-addons-css-transition-group';
import MobileSectionItem from './SectionItem';
const ESCAPE_KEY_CODE = 27;
const MobileNavigation = React.createClass({
displayName: 'MobileNavigation',
propTypes: ... |
src/mixins/style-propable.js | ntgn81/material-ui | import React from 'react';
import ImmutabilityHelper from '../utils/immutability-helper';
import Styles from '../utils/styles';
// This mixin isn't necessary and will be removed
/**
* @params:
* styles = Current styles.
* props = New style properties that will override the current style.
*/
export default {
p... |
ajax/libs/thorax/2.2.1/thorax-combined-mobile.js | MMore/cdnjs | /* Zepto v1.1.2 - zepto event ajax form ie - zeptojs.com/license */
var Zepto = (function() {
var undefined, key, $, classList, emptyArray = [], slice = emptyArray.slice, filter = emptyArray.filter,
document = window.document,
elementDisplay = {}, classCache = {},
cssNumber = { 'column-count': 1, 'colum... |
src/media/js/addon/components/install.js | mozilla/marketplace-content-tools | import React from 'react';
export default class AddonInstall extends React.Component {
static propTypes = {
install: React.PropTypes.func.isRequired,
installErrorMessage: React.PropTypes.string,
isInstalled: React.PropTypes.bool,
isInstalling: React.PropTypes.bool,
manifestUrl: React.PropTypes.s... |
components/list/ListItemAction.js | showings/react-toolbox | import React from 'react';
import PropTypes from 'prop-types';
import { themr } from 'react-css-themr';
import { LIST } from '../identifiers';
const ListItemAction = ({ action, theme }) => {
const { onClick, onMouseDown } = action.props;
const stopRipple = onClick && !onMouseDown;
const stop = e => e.stopPropaga... |
tests/client/core/containers/TestHandleLogin.js | mstriemer/usetopscore-widgets | import React from 'react';
import { renderIntoDocument } from 'react-addons-test-utils';
import { findDOMNode } from 'react-dom';
import { Provider } from 'react-redux';
import cookie from 'react-cookie';
import { createStore } from 'redux';
import HandleLogin, { mapDispatchToProps } from 'core/containers/HandleLogin';... |
client/extensions/woocommerce/woocommerce-services/components/checkbox/index.js | Automattic/woocommerce-connect-client | /** @format */
/* eslint-disable wpcalypso/jsx-gridicon-size */
/**
* External dependencies
*/
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Gridicon from 'gridicons';
import { omit } from 'lodash';
const Checkbox = props => {
const { className, disabled... |
src/parser/shared/modules/earlydotrefreshes/EarlyDotRefreshesInstantsSuggestion.js | fyruna/WoWAnalyzer | import React from 'react';
import { formatPercentage } from 'common/format';
import SpellLink from 'common/SpellLink';
function suggest(when, suggestion) {
when(suggestion).addSuggestion((suggest, actual, recommended) => {
return suggest(<>You refreshed <SpellLink id={suggestion.spell.id} /> early {suggest... |
ajax/libs/yui/3.9.0pr1/event-custom-base/event-custom-base.js | emmansun/cdnjs | YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @mo... |
src/svg-icons/action/settings-bluetooth.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsBluetooth = (props) => (
<SvgIcon {...props}>
<path d="M11 24h2v-2h-2v2zm-4 0h2v-2H7v2zm8 0h2v-2h-2v2zm2.71-18.29L12 0h-1v7.59L6.41 3 5 4.41 10.59 10 5 15.59 6.41 17 11 12.41V20h1l5.71-5.71-4.3-4.... |
squealy/squealy-web/src/Components/ReactTags/Suggestions.js | devashishsharma2302/testing-heroku-deployment | import React, { Component } from 'react';
const maybeScrollSuggestionIntoView = (suggestionEl, suggestionsContainer) => {
const containerHeight = suggestionsContainer.offsetHeight
const suggestionHeight = suggestionEl.offsetHeight
const relativeSuggestionTop = suggestionEl.offsetTop - suggestionsContainer.scrol... |
examples/todomvc/containers/App.js | sapegin/redux-devtools | import React, { Component } from 'react';
import TodoApp from './TodoApp';
import { createStore, combineReducers, compose } from 'redux';
import { devTools, persistState } from 'redux-devtools';
import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react';
import { Provider } from 'react-redux';
import *... |
ajax/libs/react-dom/16.9.0-rc.0/cjs/react-dom-server.browser.development.js | extend1994/cdnjs | /** @license React v16.9.0-rc.0
* react-dom-server.browser.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
if (process.env.NODE_ENV !== "productio... |
src/components/MacroProgressBar.js | codeslinger/kenko | import React, {Component} from 'react';
import PropTypes from 'prop-types';
export default class MacroProgressBar extends Component {
static propTypes = {
value: PropTypes.number.isRequired,
target: PropTypes.object.isRequired,
label: PropTypes.string.isRequired,
units: PropTypes.string,
};
dete... |
packages/icons/src/md/maps/StreetView.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdStreetView(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M23.12 30.66C26.13 28.4 29.95 27 34 27c2.09 0 4.11.38 6 1.05V40c0 2.2-1.8 4-4 4H22V33a3 3 0 0 1 1.12-2.34zM34 24c-5.523 0-10-4.477-10-10S28.477 4 ... |
ajax/libs/analytics.js/1.5.1/analytics.js | steakknife/cdnjs | ;(function(){
/**
* Require the given path.
*
* @param {String} path
* @return {Object} exports
* @api public
*/
function require(path, parent, orig) {
var resolved = require.resolve(path);
// lookup failed
if (null == resolved) {
orig = orig || path;
parent = parent || 'root';
var err = new ... |
step7-unittest/node_modules/babel-plugin-transform-class-properties/node_modules/core-js/client/core.js | jintoppy/react-training | /**
* core-js 2.4.1
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2016 Denis Pushkarev
*/
!function(__e, __g, undefined){
'use strict';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require f... |
src/Parser/Shaman/Restoration/Modules/Items/T21_2Set.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import Analyzer from 'Parser/Core/Analyzer';
import AbilityTracker from 'Parser/Core/Modules/AbilityTracker';
import Combatants from 'Parser/Core/Modules/Combatants';
impor... |
node_modules/react-native/Libraries/Components/MapView/MapView.js | hpdmitriy/Bjj4All | /**
* 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/analytics.js/2.3.3/analytics.js | andrepiske/cdnjs | (function outer(modules, cache, entries){
/**
* Global
*/
var global = (function(){ return this; })();
/**
* Require `name`.
*
* @param {String} name
* @param {Boolean} jumped
* @api public
*/
function require(name, jumped){
if (cache[name]) return cache[name].exports;
if (mo... |
actor-apps/app-web/src/app/components/activity/GroupProfile.react.js | chieryw/actor-platform | import React from 'react';
import DialogActionCreators from 'actions/DialogActionCreators';
import LoginStore from 'stores/LoginStore';
import PeerStore from 'stores/PeerStore';
import DialogStore from 'stores/DialogStore';
import GroupStore from 'stores/GroupStore';
import InviteUserActions from 'actions/InviteUserA... |
docs/src/app/components/pages/components/Popover/ExampleAnimation.js | IsenrichO/mui-with-arrows | import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import Popover, {PopoverAnimationVertical} from 'material-ui/Popover';
import Menu from 'material-ui/Menu';
import MenuItem from 'material-ui/MenuItem';
export default class PopoverExampleAnimation extends React.Component {
constructor(... |
docs/src/app/components/pages/components/Chip/Page.js | kasra-co/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 chipReadmeText from './README';
import ChipExampleSimple from './ExampleS... |
examples/react/src/interaction/Hover.stories.js | oblador/loki | import React from 'react';
import './hover.css';
export default {
title: 'Hover',
};
export const Hover = () => <div className="hover">I should be blue</div>;
Hover.storyName = 'default';
|
packages/ringcentral-widgets/components/MessageItem/index.js | ringcentral/ringcentral-js-widget | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import messageTypes from 'ringcentral-integration/enums/messageTypes';
import messageDirection from 'ringcentral-integration/enums/messageDirection';
import parseNumber from 'ringcentral-integration/lib/pa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.