path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
docs/src/pages/utils/transitions/SimpleGrow.js | Kagami/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import Switch from '@material-ui/core/Switch';
import Paper from '@material-ui/core/Paper';
import Grow from '@material-ui/core/Grow';
const styles = theme => ({
root: {
height: 180,
},
conta... |
public/js/cat_source/es6/components/segments/SegmentTarget.js | matecat/MateCat | import React from 'react'
import _ from 'lodash'
import EditArea from './Editarea'
import TagUtils from '../../utils/tagUtils'
import CursorUtils from '../../utils/cursorUtils'
import Customizations from '../../utils/customizations'
import SegmentConstants from '../../constants/SegmentConstants'
import SegmentStore fr... |
src/svg-icons/hardware/toys.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareToys = (props) => (
<SvgIcon {...props}>
<path d="M12 12c0-3 2.5-5.5 5.5-5.5S23 9 23 12H12zm0 0c0 3-2.5 5.5-5.5 5.5S1 15 1 12h11zm0 0c-3 0-5.5-2.5-5.5-5.5S9 1 12 1v11zm0 0c3 0 5.5 2.5 5.5 5.5S15 23 12 2... |
actor-apps/app-web/src/app/components/activity/ActivityHeader.react.js | darioajr/actor-platform | import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class ActivityHeader extends React.Component {
static propTypes = {
close: React.PropTypes.func,
title: React.PropTypes.stri... |
ajax/libs/webshim/1.14.3/dev/shims/combos/26.js | barkinet/cdnjs | /**
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
* v1.2.1
*
* Copyright 2013, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*
* Date: 2014-05-14
*/
/**
* Compiled inline version. (Library ... |
techCurriculum/ui/solutions/2.5/src/components/Message.js | jennybkim/engineeringessentials | /**
* Copyright 2017 Goldman Sachs.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
ajax/libs/clappr/0.0.64/clappr.js | jmusicc/cdnjs | require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)... |
node_modules/react-icons/md/watch.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdWatch = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m10 20c0 5.5 4.5 10 10 10s10-4.5 10-10-4.5-10-10-10-10 4.5-10 10z m23.4 0c0 4.2-2.1 8-5.1 10.5l-1.7 9.5h-13.2l-1.7-9.5c-3.1-2.5-5.1-6.3-5.1-10.5s2-8 5.1-10.5l1.7-9.5h13... |
packages/react-test-renderer/src/__tests__/ReactShallowRendererMemo-test.js | tomocchino/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';
import * as PropTypes from 'prop-types';
import * as React from ... |
src/components/languageSwitcher/languageSwitcher.js | EncontrAR/backoffice | import React from 'react';
export default ({ config, changeTheme, selectedId }) => {
const { id, label, options } = config;
return (
<div className="themeSwitchBlock">
<h4>
{label}
</h4>
<div className="themeSwitchBtnWrapper">
{options.map(option => {
const { themeNa... |
app/scripts/components/node-details/node-details-relatives.js | hustbill/network-verification-ui | import React from 'react';
import { Map as makeMap } from 'immutable';
import { NODE_DETAILS_DATA_ROWS_DEFAULT_LIMIT } from '../../constants/limits';
import NodeDetailsRelativesLink from './node-details-relatives-link';
export default class NodeDetailsRelatives extends React.Component {
constructor(props, context)... |
src/components/ScrollArea.js | xiCO2k/react-scroll-area | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import className from 'classnames';
import DOMHelper from '../helpers/DOMHelper';
import style from './ScrollArea.css';
import Track from './Track/Track';
import Overflow from './Overflow/Overflow';
import Inner from './Inner/Inner';
expor... |
fields/types/select/SelectField.js | mikaoelitiana/keystone | import Field from '../Field';
import React from 'react';
import Select from 'react-select';
import { FormInput } from 'elemental';
/**
* TODO:
* - Custom path support
*/
module.exports = Field.create({
displayName: 'SelectField',
valueChanged (newValue) {
// TODO: This should be natively handled by the Selec... |
src/Grid/test/GridStylesSpec.js | suitejs/suite | import React from 'react';
import ReactDOM from 'react-dom';
import Grid from '../index';
import { createTestContainer, getDOMNode, getStyle, itChrome } from '@test/testUtils';
import '../styles/index';
describe('Grid styles', () => {
itChrome('Should render the correct styles', () => {
const instanceRef = Reac... |
app/javascript/mastodon/features/notifications/components/notification.js | increments/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import StatusContainer from '../../../containers/status_container';
import AccountContainer from '../../../containers/account_container';
import { FormattedMessage } from 'react-intl';
import Perma... |
tests/integration-test.js | mbland/slack-github-issues | 'use strict'
require('coffee-script/register')
var Helper = require('hubot-test-helper')
var scriptHelper = new Helper('../hubot/slack-emoji-issues.js')
var User = require('@slack/client/lib/models/user')
var ReactionMessage = require('hubot-slack/src/reaction-message')
var SlackRtmDataStore = require('../lib/slack-r... |
files/jquery/1.8.3/jquery.js | cedricbousmanne/jsdelivr | /*!
* jQuery JavaScript Library v1.8.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time)
*/
(function(... |
Examples/Movies/MovieScreen.js | jaredly/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
app/containers/HomePage/EstimatorForm.js | andyzeli/Bil | import React from 'react';
import Form from 'components/Form';
import { Field, FieldArray, reduxForm } from 'redux-form/immutable';
import validate from './validate';
import Label from 'components/Label';
const EstimatorForm = (props) => {
const { handleSubmit, pristine, reset, submitting } = props
return (
... |
__tests__/index.android.js | HaxZz/react-native-minesweeper | import 'react-native'
import React from 'react'
import renderer from 'react-test-renderer'
import Index from '../index.android'
// Note: test renderer must be required after react-native.
it('renders correctly', () => {
renderer.create(<Index />)
})
|
lib/yuilib/3.17.2/event-focus/event-focus-debug.js | IvanHod/moodle | /*
YUI 3.17.2 (build 9c3c78e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('event-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Ev... |
src/addons/dragAndDrop/withDragAndDrop.js | intljusticemission/react-big-calendar | import PropTypes from 'prop-types'
import React from 'react'
import clsx from 'clsx'
import { accessor } from '../../utils/propTypes'
import EventWrapper from './EventWrapper'
import EventContainerWrapper from './EventContainerWrapper'
import WeekWrapper from './WeekWrapper'
import { mergeComponents } from './common'
... |
ajax/libs/parsley.js/2.4.4/parsley.js | extend1994/cdnjs | /*!
* Parsley.js
* Version 2.4.4 - built Thu, Aug 4th 2016, 9:54 pm
* http://parsleyjs.org
* Guillaume Potier - <guillaume@wisembly.com>
* Marc-Andre Lafortune - <petroselinum@marc-andre.ca>
* MIT Licensed
*/
// The source code below is generated by babel as
// Parsley is written in ECMAScript 6
//
var _slice = Array.... |
components/Wrapper/Wrapper.js | NGMarmaduke/bloom | import PropTypes from 'prop-types';
import React from 'react';
import cx from 'classnames';
import css from './Wrapper.css';
const Wrapper = ({ children, className }) => (
<div className={ cx(css.root, className) }>{ children }</div>
);
Wrapper.propTypes = {
children: PropTypes.node,
className: PropTypes.strin... |
4.2.0/src/index.js | erikras/redux-form-docs | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import store from 'redux/store'
import DevTools from './components/DevTools'
import component from './routes'
import Perf from 'react-addons-perf'
import devToolsEnabled from './devToolsEnabled'
const dest = document.ge... |
src/svg-icons/av/mic-off.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvMicOff = (props) => (
<SvgIcon {...props}>
<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.18l5.98 5.99zM4.27 3L3 4.2... |
app/clients/next/lib/helper.js | koapi/koapp | import React from 'react'
import axios from 'axios'
import config from '../config'
import qs from 'query-string'
import TreeModel from 'tree-model'
import numeral from 'numeral'
import moment from 'moment'
import { Router } from '../routes'
export const user = {
required ({ store, req, res }) {
const { oauth } =... |
src/index.js | oliverox/react-typewrite | import React, { Component } from 'react';
import PropTypes from 'prop-types';
const TYPING = 1, ERASING = -1;
// Calculate total characters and words
const calculateCharacterCount = (el, charCount = 0) => {
if (el === ' ') {
charCount++;
} else {
React.Children.forEach(el.props.children, child => {
i... |
src/app/components/Item/Item.js | harsh376/Hector | import React from 'react';
function Item({ value }) {
return (
<div className="item">
<p><i>{value}</i></p>
</div>
);
}
Item.propTypes = {
value: React.PropTypes.string,
};
Item.defaultProps = {
value: '',
};
export default Item;
|
results/handlebars/js/jquery.min.js | lefloh/ozark-viewengine-loadtests | /*! 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==... |
librarian/static/js/ui-0be0f005.js | danielberndt/Feature_Langpop | /*! 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... |
packages/material-ui-icons/src/ExposureNeg2Rounded.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="M15.05 16.29l2.86-3.07c.38-.39.72-.79 1.04-1.18.32-.39.59-.78.82-1.17s.41-.78.54-1.17.19-.79.19-1.18c0-.53-.09-1.02-.27-1.46s-.44-.81-.78-1.1... |
src/widgets/UserBrief/BadgeInfo.js | mydearxym/mastani | import React from 'react'
import { ICON_CMD } from '@/config'
import {
Wrapper,
BadgeWrapper,
BadgeIcon,
BadgeTitle,
} from './styles/badge_info'
const BadgeInfo = ({ user: { achievement } }) => {
const { seniorMember, donateMember, sponsorMember } = achievement
return (
<Wrapper>
{seniorMembe... |
cra-ua-aware-code-splitting/src/index.js | GoogleChromeLabs/adaptive-loading | /*
* Copyright 2019 Google LLC
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
ajax/libs/react/0.11.0/react-with-addons.min.js | nagyist/OpenF2-cdnjs | /**
* React (with addons) v0.11.0
*
* Copyright 2013-2014 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... |
Client/src/js/init.js | WadeBarnes/schoolbus | import $ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import Promise from 'bluebird';
import './utils/shims';
Promise.config({
cancellation: true,
});
import App from './app.jsx';
import * as Api from './api';
import { ApiError } from './utils/http';
var initializationEl = docume... |
ajax/libs/react-data-grid/0.14.2/react-data-grid.min.js | joeyparrish/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactDataGrid=t(require("react"),require("react-dom")):e.ReactDataGrid=t(e.React,e.ReactDOM)}(th... |
actor-apps/app-web/src/app/components/Login.react.js | hmoraes/actor-platform | import _ from 'lodash';
import React from 'react';
import classNames from 'classnames';
import { Styles, RaisedButton, TextField } from 'material-ui';
import { AuthSteps } from 'constants/ActorAppConstants';
import Banner from 'components/common/Banner.react';
import LoginActionCreators from 'actions/LoginActionCre... |
src/components/itemsManager/ItemTransferModal.js | MrRandol/littleLight | /******************
REACT IMPORTS
******************/
import React from 'react';
import { Modal, View, ScrollView, Text, Image, Button, Dimensions, TouchableOpacity, TouchableWithoutFeedback } from 'react-native';
/*****************
CUSTOM IMPORTS
******************/
import T from 'i18n-react';
var styl... |
app/utils/AutoScroll.js | davidnum/chat | import React from 'react';
import ReactDom from 'react-dom';
export default function (ComposedComponent, property) {
class AutoScroll extends React.Component {
componentDidMount() {
this.scrollToBottom();
}
componentWillUpdate(nextProps) {
if (this.props[property] !== nextProps[property]) {... |
extension/examples/todomvc/test/components/Header.spec.js | gaearon/redux-devtools | import expect from 'expect';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import Header from '../../components/Header';
import TodoTextInput from '../../components/TodoTextInput';
function setup() {
const props = {
addTodo: expect.createSpy(),
};
const renderer = TestUtils.cre... |
src/svg-icons/action/dns.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDns = (props) => (
<SvgIcon {...props}>
<path d="M20 13H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zM7 19c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM20 3H4c-.55 0-1 .45-1 1v... |
packages/material-ui/src/Slide/Slide.js | kybarg/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import debounce from '../utils/debounce';
import { Transition } from 'react-transition-group';
import { elementAcceptingRef } from '@material-ui/utils';
import { useForkRef } from '../utils/reactHelpers';
import useTheme fr... |
wp-includes/js/jquery/jquery.js | ihsansatriawan/fimwp | /*! 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... |
test/components/Test.js | loggur/react-redux-provide | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import TestItem from './TestItem';
export default class Test extends Component {
static propTypes = {
placeholder: PropTypes.string.isRequired,
list: PropTypes.arrayOf(PropTypes.object).isRequired,
unshiftItem: PropTypes.func.i... |
packages/mineral-ui-icons/src/IconPlace.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconPlace(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}>
... |
src/components/characterCard/CharacterCard.js | Beardles/novelizr | import React from 'react'
import { Button, Card, Header, Icon } from 'semantic-ui-react'
const CharacterCard = ({ characterCard, handleDeleteClick }) => (
<Card>
<Card.Content header={characterCard.character} />
<Card.Content>
<Header sub>Details</Header>
<p>{characterCard.d... |
app/javascript/mastodon/components/collapsable.js | 3846masa/mastodon | import React from 'react';
import Motion from 'react-motion/lib/Motion';
import spring from 'react-motion/lib/spring';
import PropTypes from 'prop-types';
const Collapsable = ({ fullHeight, isVisible, children }) => (
<Motion defaultStyle={{ opacity: !isVisible ? 0 : 100, height: isVisible ? fullHeight : 0 }} style=... |
grid-app/web/js/libs/pickadate/tests/jquery.1.9.1.js | Sotera/social-sandbox | /*!
* 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... |
src/Page1.js | babizhu/webApp | /**
* Created by liu_k on 2015/11/24.
*/
import React, { Component } from 'react';
import { Icon,Menu, Breadcrumb,Affix } from 'antd';
const SubMenu = Menu.SubMenu;
import App from './App';
import styles from "./page1.css";
//import astyles1 from "./css/test.scss";
class Page1 extends Component {
render() {... |
App/Components/Shared/AlertMessageComponent.js | BALEHOK/motodo | import React from 'react';
import { View, Text } from 'react-native';
import styles from './Styles/AlertMessageComponentStyle';
import * as Animatable from 'react-native-animatable';
import { Metrics } from '../../Themes/';
import Icon from 'react-native-vector-icons/Ionicons';
export default class AlertMessage extend... |
src/components/Select/styles/LoadingState.js | Bandwidth/shared-components | import React from 'react';
import Loader from 'components/Loader';
import Input from 'components/Input';
import Arrow from './Arrow';
import Controls from './Controls';
import styled from 'styled-components';
const FakeInput = styled(props => <Input as="div" {...props} />)`
height: 53px;
`;
const Overlay = styled(L... |
example/examples/DisplayLatLng.js | ksincennes/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
} from 'react-native';
import MapView, { MAP_TYPES } from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122... |
public/api-doc/swagger-ui-standalone-preset.js | iakhator/document-manager | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.SwaggerUIStandalonePreset=e():t.SwaggerUIStandalonePreset=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={... |
app/javascript/mastodon/features/ui/util/reduced_motion.js | foozmeat/mastodon | // Like react-motion's Motion, but reduces all animations to cross-fades
// for the benefit of users with motion sickness.
import React from 'react';
import Motion from 'react-motion/lib/Motion';
import PropTypes from 'prop-types';
const stylesToKeep = ['opacity', 'backgroundOpacity'];
const extractValue = (value) =>... |
assets/jqwidgets/demos/react/app/tabs/keyboardnavigation/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxTabs from '../../../jqwidgets-react/react_jqxtabs.js';
class App extends React.Component {
componentDidMount() {
this.refs.myTabs.focus();
}
render() {
let tabsHTML = `
<ul style="margin-left: 30px;">
... |
features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/devportal/source/Tests/setupTests.js | jaadds/carbon-apimgt | /*
* Copyright (c) 2019, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
ajax/libs/angular.js/0.9.13/angular-scenario.js | rileyjshaw/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.
... |
packages/demos/demo/src/components/Login/CreateUser.js | yusufsafak/cerebral | import React from 'react'
import { connect } from 'cerebral/react'
import { signal, state } from 'cerebral/tags'
import translations from '../../common/compute/translations'
import Input from './Input'
import { form } from '@cerebral/forms'
import resolveTranslation from '../../helpers/resolveTranslation'
export defau... |
frontend/src/scripts/components/CounterControls.js | bilalbarki/jenkins_test | import React from 'react';
import { connect } from 'react-redux';
import { increment, decrement } from '../data/actions/counter';
class CounterControls extends React.Component {
render() {
return (
<div>
<button onClick={this.props.increment}>+</button>
<button onClick={this.props.decrement... |
src/App.js | drop-table-ryhmatyo/tekislauta-front | import React from 'react';
import Helmet from 'react-helmet';
import Header from './Header';
import './styles/App.css';
const App = (props) => (
<div className="App">
<Header />
<div className="App__body">
<Helmet title="Home" titleTemplate="%s - tekislauta"/>
{props.children}
</div>
</div>... |
src/components/Assessments.js | daskalov/vwm | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
TouchableHighlight,
} from 'react-native';
import Icon from 'react-native-vector-icons/MaterialIcons';
import stylesCommon from '../values/styles';
class Assessments extends Component {
tapMenu() {
this.props.navigator.push({
... |
ui/src/main/js/components/Time.js | apache/aurora | import moment from 'moment';
import React from 'react';
export function RelativeTime({ ts }) {
return <span>{moment(ts).fromNow()}</span>;
}
|
src/extensions/default/JavaScriptQuickEdit/unittest-files/jquery-ui/tests/jquery-1.7.1.js | falcon1812/brackets | /*!
* jQuery JavaScript Library v1.7.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.
... |
containers/user/AddClass.js | harvard-tabula/frontend | import React from 'react';
import { connect } from 'react-redux';
import { addClass } from '../../actions/user';
const AddClassComponent = ({ dispatch }) => (
<div className="section is-small">
<div className="container has-text-centered">
<a
className="button"
onClick={e => {
e.p... |
lib/components/notifications.js | bekher/hyperterm | import React from 'react';
import Component from '../component';
import Notification_ from './notification';
import { decorate } from '../utils/plugins';
const Notification = decorate(Notification_);
export default class Notifications extends Component {
template (css) {
return <div className={ css('view') }>
... |
src/greeting.js | Driftersk/generic-webpack-docker | import React from 'react';
export default class Greeting extends React.Component {
constructor() {
super();
}
render() {
return (
<div className='greeting'>
Hello, {this.props.name}!
<img src="images/electronics/image.jpg" width={64}/>
</div>
);
}
} |
react/src/containers/Home/Home.js | LaraDock/laradock | import React from 'react';
import messages from "./../../assets/Local/messages";
import { connect } from 'react-redux';
class Home extends React.Component {
render(){
const { lang } = this.props;
const message = messages[lang]
return(
<div className="container my-5">
... |
node_modules/react-router/es/withRouter.js | taforyou/testtesttest-yo | 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]; } } } return target; };
import invariant from 'invariant';
import React from 'react';... |
src/svg-icons/editor/strikethrough-s.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorStrikethroughS = (props) => (
<SvgIcon {...props}>
<path d="M7.24 8.75c-.26-.48-.39-1.03-.39-1.67 0-.61.13-1.16.4-1.67.26-.5.63-.93 1.11-1.29.48-.35 1.05-.63 1.7-.83.66-.19 1.39-.29 2.18-.29.81 0 1.54.11 ... |
ajax/libs/onsen/2.0.0-beta.4/js/angular-onsenui.min.js | maruilian11/cdnjs | /*! angular-onsenui.js for onsenui - v2.0.0-beta.4 - 2016-01-08 */
!function(){var initializing=!1,fnTest=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/;this.Class=function(){},Class.extend=function(prop){function Class(){!initializing&&this.init&&this.init.apply(this,arguments)}var _super=this.prototype;initializing=!0... |
src/svg-icons/device/battery-charging-30.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryCharging30 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v9.17h2L13 7v5.5h2l-1.07 2H17V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M11 20v-5.5H7... |
src/client/components/UserPollsPage.js | dgrcode/FCC-Voting-App | 'use strict';
import React from 'react';
import PollsListContainer from '../containers/PollsListContainer';
export default class UserPollsPage extends React.Component {
render () {
return (
<div className="app-root">
<h1>My polls</h1>
<h3>{this.props.user.name}, here are your polls</h3>
... |
src/components/button.js | nordsoftware/react-foundation | import React from 'react';
import PropTypes from 'prop-types';
import { ButtonSizes, ButtonColors } from '../enums';
import { GeneralPropTypes, FlexboxPropTypes, createClassName, generalClassNames, removeProps, objectKeys, objectValues } from '../utils';
/**
* Button property types.
*
* @type {Object}
*/
const But... |
src/scripts/Progress.js | williamthing/yoda | 'use strict';
import React from 'react';
export default React.createClass({
getDefaultProps() {
return {
height: 10,
color: '#0bD318'
}
},
render() {
var completed = this.props.completed;
if (completed < 0) {
completed = 0;
}
if (completed > 100) {
completed = 1... |
packages/core/admin/admin/src/components/UnauthenticatedLogo/index.js | wistityhq/strapi | import React from 'react';
import styled from 'styled-components';
import { useConfigurations } from '../../hooks';
const Img = styled.img`
height: ${72 / 16}rem;
`;
const Logo = () => {
const { authLogo } = useConfigurations();
return <Img src={authLogo} aria-hidden alt="" />;
};
export default Logo;
|
src/main-views/home.js | spahvenn/react-api-front | import React, { Component } from 'react';
class Home extends Component {
render(){
return(
<div className="row">
<div className="col-md-12">
<h1>Home page</h1>
<p>this is home page</p>
</div>
</div>
)
}
}
export default Home
|
ajax/libs/yui/3.10.1/event-focus/event-focus-coverage.js | mival/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/event-focus/event-focus.js']) {
__coverage__['build/event-focus/event-focus.js'] = {"path":"build/event-focus/event-focus.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"... |
ajax/libs/react/0.5.0/react-with-addons.min.js | contolini/cdnjs | /**
* React (with addons) v0.5.0
*
* Copyright 2013 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
docs/app/components/layout/main/components/playground.js | jasonleibowitz/react-toolbox | import React from 'react';
import Editor from '../../../editor';
import Preview from '../../../preview';
import codeText from '../modules/examples/example.txt';
import style from './playground.scss';
class Playground extends React.Component {
static propTypes = {
className: React.PropTypes.string
};
state =... |
packages/material-ui-icons/src/FilterDramaRounded.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.61 5.64 5.36 8.04 2.35 8.36 0 10.9 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78... |
ajax/libs/forerunnerdb/1.3.653/fdb-all.js | pvnr0082t/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
src/parser/demonhunter/havoc/modules/spells/MetaBuffUptime.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS/index';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage, formatDuration } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
/*
example repo... |
src/client/components/Join/Join.js | kowhai-2016/flatme | import React from 'react'
import { Control, Errors, Form } from 'react-redux-form'
import { Col } from 'react-bootstrap'
const isNumber = val => !isNaN(Number(val))
const maxLength = length => val => val && val.length <= length
const passwordMatch = vals => vals.confirmPassword === vals.password
const required = val =... |
src/containers/tableDescriptions/ShortCountVolumeTableDescription.js | availabs/avail_app_bootstrap | import React from 'react';
import { QueryRenderer, graphql } from 'react-relay';
import relay from '../../relay.js';
// https://github.com/facebook/relay/issues/1851
export default function ShortCountVolumeTableDescription(props) {
const q = graphql`
query ShortCountVolumeTableDescriptionQuery {
__type(na... |
app/utils/injectSaga.js | ninjaref/ninjaref | import React from 'react';
import PropTypes from 'prop-types';
import hoistNonReactStatics from 'hoist-non-react-statics';
import getInjectors from './sagaInjectors';
/**
* Dynamically injects a saga, passes component's props as saga arguments
*
* @param {string} key A key of the saga
* @param {function} saga A r... |
tests/baselines/reference/jsxJsxsCjsTransformCustomImportPragma(jsx=react-jsx).js | microsoft/TypeScript | //// [tests/cases/conformance/jsx/jsxs/jsxJsxsCjsTransformCustomImportPragma.tsx] ////
//// [preact.tsx]
/// <reference path="/.lib/react16.d.ts" />
/* @jsxImportSource preact */
const a = <>
<p></p>
text
<div className="foo"></div>
</>
export {};
//// [react.tsx]
/// <reference path="/.lib/react16.d.ts" /... |
node_modules/grunt-react/node_modules/react-tools/src/classic/element/__tests__/ReactElement-test.js | boyers/hamlit | /**
* 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/rxjs/2.3.25/rx.lite.extras.js | cgvarela/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'und... |
src/components/GameStartReadyScreen.js | hostables/musicquiz | import React from 'react'
import {
Screen,
ScreenHeader,
ScreenBody,
ScreenFooter
} from './screen'
import ExpandoButton from './ExpandoButton'
import GameUsersList from './GameUsersList'
import './GameStartReadyScreen.css'
const GameStartReadyScreen = ({gameId, game}) => (
<Screen className="GameStartReadyS... |
src/containers/Root.js | 199911/experimental-blog | import React from 'react'
import {
BrowserRouter as Router,
Route,
Link
} from 'react-router-dom'
import FrontPage from '../pages/FrontPage';
import ArticlePage from '../pages/ArticlePage';
const Root = () => (
<Router>
<div>
<Route exact path="/react-blog/" component={FrontPage}/>
... |
node_modules/browser-sync/node_modules/socket.io-client/socket.io.js | Shashwat78/ngCourse-webApp | (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["io"] = factory();
else
root["io"] = fac... |
src/components/Dashboard/Analytics/notable_stats.js | gperl27/liftr-v2 | import React, { Component } from 'react';
function avg(arr){
return arr.reduce(function(x, y){
return x + y;
})/arr.length;
}
class NotableStats extends Component {
render() {
if(this.props.stats.length === 0){
return <div>Waiting for choice to be made...</div>
}
const weights = this.prop... |
src/templates/resume-job.js | angeloocana/angeloocana | import React from 'react';
import JobPage from '../components/Resume/JobPage';
import graphql from 'graphql';
const JobRoute = (props) => (<JobPage {...props} />);
export default JobRoute;
export const pageQuery = graphql`
query ResumeJob {
site {
siteMetadata {
resume {
menu {
... |
sites/all/modules/contrib/jquery_update/replace/jquery/1.8/jquery.js | vhin0210/microkups | /*!
* jQuery JavaScript Library v1.8.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time)
*/
(function(... |
packages/material-ui-icons/src/KeyboardCapslockRounded.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 8.41l3.89 3.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L12.71 6.3a.9959.9959 0 0 0-1.41 0l-4.6 4.59c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 8.41zM7 18h10c.55 0 1-.45 1-... |
client/src/containers/Editor/tests/Editor-test.js | silverstripe/silverstripe-asset-admin | /* global jest, jasmine, describe, it, expect, beforeEach, FormData */
jest.mock('containers/FormBuilderLoader/FormBuilderLoader');
jest.mock('components/FormBuilderModal/FormBuilderModal');
import React from 'react';
import ReactTestUtils from 'react-dom/test-utils';
import { Component as Editor } from '../Editor';
... |
assets/jsx/views/home/components/home.js | Tjorriemorrie/besetfree | import React from 'react'
import { Link } from 'react-router'
class Home extends React.Component {
render() {
console.info('[Home] render');
return <div className="home">
<div className="jumbo">
<div className="wrapper">
<div className="hero">
... |
app/containers/ForecastListItem/index.js | andyfrith/weather.goodapplemedia.com | /**
* ForecastListItem
*
* Lists the info of a forecast
*/
import React from 'react';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { makeSelectCurrentUser } from 'containers/App/selectors';
import ListItem from 'components/ListItem';
import Img from './Img';
im... |
src/svg-icons/action/update.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionUpdate = (props) => (
<SvgIcon {...props}>
<path d="M21 10.12h-6.78l2.74-2.82c-2.73-2.7-7.15-2.8-9.88-.1-2.73 2.71-2.73 7.08 0 9.79 2.73 2.71 7.15 2.71 9.88 0C18.32 15.65 19 14.08 19 12.1h2c0 1.98-.88 4.5... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.