path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
vcomp/Example.js | chezhe/Vidi | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Image
} from 'react-native';
import {Surface} from 'gl-react-native'
import HelloGL from './HelloGL'
import Saturation from './Saturation'
import HueRotate from './HueRotate'
import PieProgress from './PieProgress'
import OneFingerRespo... |
static/src/components/RegisterView.js | dternyak/React-Redux-Flask | /* eslint camelcase: 0, no-underscore-dangle: 0 */
import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import Paper from 'material-ui/Paper';
import * as action... |
ajax/libs/react-native-web/0.15.7/exports/ProgressBar/index.js | cdnjs/cdnjs | function _extends() { _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; }; return _extends.apply(this, arguments); }
f... |
Console/app/node_modules/rc-tabs/es/utils.js | RisenEsports/RisenEsports.github.io | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import React from 'react';
export function toArray(children) {
// allow [c,[a,b]]
var c = [];
React.Children.forEach(children, function (child) {
if (child) {
c.push(child);
}
});
return c;
}
export function getActiveIndex(chi... |
packages/react-scripts/template/src/index.js | HelpfulHuman/helpful-react-scripts | import React from 'react';
import ReactDOM from 'react-dom';
import registerServiceWorker from './registerServiceWorker';
import createStore from './Services/Store';
import createHistory from 'history/createBrowserHistory';
import { syncHistoryWithStore } from 'react-router-redux';
import { Provider } from 'react-redux... |
src/interface/home/ReportSelectionHeader.js | sMteX/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Trans } from '@lingui/macro';
import { hasPremium } from 'interface/selectors/user';
import { ReactComponent as Logo } from 'interface/images/logo.svg';
import Warning from 'interface/common/Alert/Warning';
i... |
src/articles/2017-12-24-Version-2-0/index.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import { Zerotorescue } from 'CONTRIBUTORS';
import RegularArticle from 'interface/news/RegularArticle';
import ChecklistOverview from './checklist-overview.png';
import ChecklistItem from './checklist-item.png';
import Results2point0 from './results-2.0.png';
export default (
<RegularAr... |
examples/src/components/Virtualized.js | Paveltarno/react-select | import React from 'react';
import VirtualizedSelect from 'react-virtualized-select';
const DATA = require('../data/cities');
var CitiesField = React.createClass({
displayName: 'CitiesField',
getInitialState () {
return {};
},
updateValue (newValue) {
this.setState({
selectValue: newValue
});
},
render ... |
src/ChallengeCardLabel2/index.js | DuckyTeam/ducky-components | import LabelSmall from '../LabelSmall';
import React from 'react';
import PropTypes from 'prop-types';
import Typography from '../Typography';
import classNames from 'classnames';
import styles from './styles.css';
function ChallengeCardLabel2(props) {
return (
<div className={classNames(styles.wrapper, {... |
server/sonar-web/src/main/js/apps/about/components/BugIconForSonarQubeDotCom.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info 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, o... |
frontend/tests/components/user-menu/user-menu.js | 1905410/Misago | import assert from 'assert';
import React from 'react'; // jshint ignore:line
import { UserMenu, UserNav, CompactUserNav } from 'misago/components/user-menu/user-nav'; // jshint ignore:line
import misago from 'misago/index';
import dropdown from 'misago/services/mobile-navbar-dropdown';
import store from 'misago/servic... |
ajax/libs/react-native-web/0.14.5/vendor/react-native/Animated/createAnimatedComponent.js | cdnjs/cdnjs | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* @format
*/
'use strict';
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.leng... |
src/TableViewCell.js | aksonov/react-native-tableview | import React from 'react';
import { requireNativeComponent } from 'react-native';
const RNCellView = requireNativeComponent('RNCellView', null);
export default class TableViewCell extends React.Component {
constructor(props) {
super(props);
this.state = { width: 0, height: 0 };
}
render() {
return ... |
Example/__tests__/index.ios.js | kyo504/react-native-sample-module | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/templates/not-found-template.js | faizhasim/faizhasim.github.io | // @flow strict
import React from 'react';
import Sidebar from '../components/Sidebar';
import Layout from '../components/Layout';
import Page from '../components/Page';
import { useSiteMetadata } from '../hooks';
const NotFoundTemplate = () => {
const { title, subtitle } = useSiteMetadata();
return (
<Layout... |
app/src/index.js | FearTheFrail/first-contributions | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
ajax/libs/forerunnerdb/1.3.720/fdb-core.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... |
packages/material-ui-icons/src/BatteryCharging20.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M11 20v-3H7v3.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V17h-4.4L11 20z" /><path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V17h4v-2.5H9L13 7v5.5h2L12.6 1... |
test/FormControlsSpec.js | RichardLitt/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import FormControls from '../src/FormControls';
describe('Form Controls', function () {
describe('Static', function () {
it('renders a p element wrapped around the given value', function () {
const instance = ReactTestUtils.r... |
src/FloatingLabel.js | Sharlaan/material-ui-superselectfield | import React, { Component } from 'react';
import { floatingLabelTypes } from './types';
import { floatingLabelDefaultProps } from './defaultProps';
export default class FloatingLabel extends Component {
state = { flabelHeight: 0 };
static propTypes = floatingLabelTypes;
static defaultProps = floatingLabelDefau... |
src/renderers/dom/shared/utils/__tests__/getEventCharCode-test.js | wmydz1/react | /**
* Copyright 2016-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.
*
* @emails react... |
site/components/Cover.js | pairyo/react-dnd | import React from 'react';
import './Cover.less';
export default class Cover {
render() {
return (
<div className="Cover">
<div className="Cover-header">
<p className="Cover-description">
Drag and Drop for React
</p>
</div>
</div>
);
}
} |
components/editor/FakeTag.js | postor/react-builder | import React from 'react'
import { Glyphicon, Modal } from 'react-bootstrap'
import TagSelectModal from './TagSelectModal'
import tags from '../../static/editor/tags'
import { tagTypes, treeEvents } from './define'
const tagKeys = Object.keys(tags)
class FakeTag extends React.Component {
render() {
const { dat... |
resources/assets/js/todo/components/Header.react.js | bionikspoon/react-comment | import React from 'react';
var TodoActions = require('../actions/TodoActions');
var TodoTextInput = require('./TodoTextInput.react.js');
export default React.createClass({
/**
* @return {object}
*/
render() {
return (
<header id="header">
... |
app/jsx/editor/ExternalToolDialog.js | djbender/canvas-lms | /*
* Copyright (C) 2019 - 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... |
config/webpack/production.js | kulakowka/isomorphic-react | const { resolve } = require('path')
const webpack = require('webpack')
// const ChunkManifestPlugin = require('chunk-manifest-webpack-plugin')
// const WebpackChunkHash = require('webpack-chunk-hash')
const ManifestPlugin = require('webpack-manifest-plugin')
module.exports = {
// context: resolve(__dirname, 'src'),
... |
mobile/project/__tests__/index.ios.js | CornellProjects/hlthpal | import 'react-native';
import React from 'react';
import Index from '../index.ios.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/select/SelectField.js | everisARQ/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... |
ajax/libs/es6-shim/0.30.0/es6-shim.js | ericelliott/cdnjs | /*!
* https://github.com/paulmillr/es6-shim
* @license es6-shim Copyright 2013-2015 by Paul Miller (http://paulmillr.com)
* and contributors, MIT License
* es6-shim: v0.27.1
* see https://github.com/paulmillr/es6-shim/blob/0.27.1/LICENSE
* Details and documentation:
* https://github.com/paulmillr/es6-... |
src/faicon.js | xorkevin/stratosphere | import React from 'react';
class FaIcon extends React.PureComponent {
render(){
if(this.props.border){
return <span className="faicon border">
<span className="inner">
<i className={"fa fa-" + this.props.icon}></i>
</span>
</span>;
} else {
return <i className={"fa... |
node_modules/react-bootstrap/es/DropdownToggle.js | ASIX-ALS/asix-final-project-frontend | 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 ... |
js/components/Header/2.js | alaxa27/Lukeat | import React, { Component } from "react";
import {
Container,
Header,
Title,
Content,
Button,
Icon,
Left,
Right,
Body,
Text
} from "native-base";
import styles from "./styles";
class Header2 extends Component {
// eslint-disable-line
render() {
return (
<Container style={styles.con... |
docs/app/Examples/modules/Progress/States/ProgressExampleDisabled.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Progress } from 'semantic-ui-react'
const ProgressExampleDisabled = () => (
<Progress percent={60} disabled>
Disabled
</Progress>
)
export default ProgressExampleDisabled
|
app/components/home.js | erisalke/react-playground | import React from 'react';
import TicTacToe from './game/tictactoe';
import {emitEvent} from '../api/websockets'
const Home = React.createClass({
render: function() {
return (
<div className="home-page">
<h1>React-Redux Playground</h1>
<p>
Hey hello :)
</p>
<p>
<butt... |
Training/extzip/ext-4.2.1.883/docs/output/Ext.form.field.Base.js | aloksguha/ExtJS_AngJS_Summit | Ext.data.JsonP.Ext_form_field_Base({"alternateClassNames":["Ext.form.BaseField","Ext.form.Field"],"aliases":{"widget":["field"]},"enum":null,"parentMixins":["Ext.state.Stateful","Ext.util.Animate","Ext.util.ElementContainer","Ext.util.Floating","Ext.util.Observable","Ext.util.Positionable","Ext.util.Renderable"],"tagna... |
examples/websdk-samples/react/src/components/announcements/TextMessagePart.js | layerhq/layer-js-sampleapps | import React, { Component } from 'react';
export default class TextMessagePart extends Component {
render() {
return <div className='bubble text'>{this.props.messagePart.body}</div>;
}
}
|
packages/core/admin/admin/src/content-manager/components/FieldTypeIcon/index.js | wistityhq/strapi | import React from 'react';
import PropTypes from 'prop-types';
import Date from '@strapi/icons/Date';
import Boolean from '@strapi/icons/Boolean';
import Email from '@strapi/icons/Email';
import Enumeration from '@strapi/icons/Enumeration';
import Media from '@strapi/icons/Media';
import Relation from '@strapi/icons/Re... |
src/scripts/components/navigation.js | melonmanchan/teamboard-client-react | import page from 'page';
import React from 'react';
import Action from '../actions';
import UserAction from '../actions/user';
import SettingsAction from '../actions/settings';
import BroadcastAction from '../actions/broadcast';
import UserStore from '../stores/user';
import Avatar from '../com... |
app/jsx/shared/components/UserSearchSelectorItem.js | djbender/canvas-lms | /*
* Copyright (C) 2019 - 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... |
components/CardStatus.js | hellobrian/carbon-components-react | import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames';
const propTypes = {
status: PropTypes.number,
className: PropTypes.string,
runningText: PropTypes.string,
notRunningText: PropTypes.string,
stoppedText: PropTypes.string,
};
const defaultProps = {
status: 0... |
packages/netlify-cms-core/src/components/Editor/EditorPreviewPane/EditorPreviewContent.js | netlify/netlify-cms | import PropTypes from 'prop-types';
import React from 'react';
import { isElement } from 'react-is';
import { ScrollSyncPane } from 'react-scroll-sync';
import { FrameContextConsumer } from 'react-frame-component';
/**
* We need to create a lightweight component here so that we can access the
* context within the Fr... |
ajax/libs/inferno-devtools/1.6.2/inferno-devtools.js | sufuf3/cdnjs |
/*!
* Inferno.DevTools v1.6.2
* (c) 2017 Dominic Gannaway'
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('inferno'), require('inferno-component')) :
typeof define === 'function' && define.amd ? define(['inferno',... |
src/containers/Section/Posts/test.js | keyfoxth/my-blog | import React from 'react'
import ReactMarkdown from 'react-markdown'
import post from 'raw!./md/test.md'
import './style'
export default () => (
<ReactMarkdown source={post} className="post"/>
)
|
node_modules/react-icons/fa/caret-square-o-down.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const FaCaretSquareODown = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m28.6 15.1q0.4 0.7-0.2 1.4l-7.1 10q-0.4 0.6-1.2 0.6t-1.1-0.6l-7.2-10q-0.5-0.7-0.1-1.4 0.4-0.8 1.3-0.8h14.3q0.9 0 1.3 0.8z m3 15.6v-21.4q0-0.3-0.2-0.5t-0.5-0.... |
client/js/components/MovieShowtimes.js | juliancantillo/royal-films | import React from 'react';
import CinemasList from './CinemasList'
import APIServices from '../utils/APIServices'
export default class MovieShowtime extends React.Component {
static propTypes = {
movie: React.PropTypes.string,
};
constructor(props) {
super(props);
this.state = {
functions: []... |
docs/app/Examples/elements/Button/Types/ButtonExampleAnimated.js | koenvg/Semantic-UI-React | import React from 'react'
import { Button, Icon } from 'semantic-ui-react'
const ButtonExampleAnimated = () => (
<div>
<Button animated>
<Button.Content visible>Next</Button.Content>
<Button.Content hidden>
<Icon name='right arrow' />
</Button.Content>
</Button>
<Button animate... |
src/index.js | psychobolt/react-native-boilerplate | import 'intl';
import React from 'react';
import { AppRegistry, Text } from 'react-native';
import { Provider } from 'react-redux';
import { IntlProvider } from 'react-intl';
// config
import configureStore from './configureStore';
// app
import App from './App';
import { getLocale } from './Shared/utils';
const sto... |
ext-4.2.1/src/panel/Table.js | xantus/ext-js-gpl | /*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as
published by the Free Software Foundation and appearing in the file LICENSE included in... |
app/components/findFriends.js | it-surya/hack-jeninvest | import React from 'react';
import {
StyleSheet,
TouchableOpacity,
View
} from 'react-native';
import {
RkText,
RkTheme
} from 'react-native-ui-kitten';
import {FontAwesome} from '../assets/icons';
export class FindFriends extends React.Component {
constructor(props) {
super(props);
}
render() {
... |
src/docs/ComponentPage.js | MallikarjunaMG/react-components | import React from 'react';
import PropTypes from 'prop-types';
import Example from './Example';
import Props from './Props';
const ComponentPage = ({component}) => {
const {name, description, props, examples } = component;
return (
<div className='componentpage'>
<h2>{name}</h2>
<p>{description}</p... |
client2/src/components/whiteboard/gallery.js | frolicking-ampersand/Board | import React, { Component } from 'react';
import Slider from 'react-slick';
import Painting from './painting';
export default class Gallery extends Component {
constructor (){
super(...arguments);
this.state = {
data: this.props.data,
}
}
componentWillReceiveProps(nextProps){
this.setStat... |
src/client/songs/latest.react.js | steida/songary | import Component from '../components/component.react';
import DocumentTitle from 'react-document-title';
import Loading from '../components/loading.react';
import React from 'react';
import SongLink from '../songs/songlink.react';
import listenFirebase from '../firebase/listenfirebase';
import {Link} from 'react-router... |
ajax/libs/yui/3.7.1/datatable-body/datatable-body-debug.js | jaslernl/cdnjs | YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.
@module datatable
@submodule datatable-body
@since 3.5.0
**/
var Lang = Y.Lang,
isArray = Lang.isA... |
gatsby-strapi-tutorial/cms/plugins/content-manager/admin/src/containers/SettingsPage/index.js | strapi/strapi-examples | /**
*
* SettingsPage
*/
import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators, compose } from 'redux';
import { createStructuredSelector } from 'reselect';
import cn from 'classnames';
import { get, sortBy } from 'lodash';
import PropTypes from 'prop-types';
import Input fro... |
src/ReactWrapper.js | toddw/enzyme | import React from 'react';
import cheerio from 'cheerio';
import flatten from 'lodash/flatten';
import unique from 'lodash/uniq';
import compact from 'lodash/compact';
import createWrapperComponent from './ReactWrapperComponent';
import {
instHasClassName,
childrenOfInst,
parentsOfInst,
buildInstPredicate,
in... |
packages/cf-component-icon/src/reactsvgs/List.js | jroyal/cf-ui | import React from 'react';
import PropTypes from 'prop-types';
const List = ({ className, label }) => (
<svg
className={className}
aria-label={label}
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
>
<rect x="1.589" y="2.539" width="1.98" height="1.98" />
<rect x="5.425" y="2.539" wi... |
src/dumb/coordinate_plane/CoordinatePlane.js | jeckhummer/wf-constructor | import React from 'react';
import {ScrollSync} from '../common/ScrollSync';
import {ScrollScope} from '../common/ScrollScope';
import {Grid} from '../common/Grid';
export class CoordinatePlane extends React.Component {
constructor(props, state) {
super(props, state);
this.state = {
xScr... |
src/components/partials/ProtoForm.js | MattMcFarland/codepix-client | import React from 'react';
// import { /* Icon, Button,*/ } from './Elements';
const convertChildren = (children) => {
return React.Children.map(children, (node) => {
if (node.type === 'div') {
return node;
}
if (node.type === 'Expander') {
return convertChildren(node.props.children);
}
... |
ajax/libs/yui/3.17.0/datatable-body/datatable-body-debug.js | dominicrico/cdnjs | /*
YUI 3.17.0 (build ce55cc9)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base... |
tests/layouts/CoreLayout.spec.js | DenisPronin/react-redux-example | import React from 'react'
import TestUtils from 'react-addons-test-utils'
import CoreLayout from 'layouts/CoreLayout/CoreLayout'
function shallowRender (component) {
const renderer = TestUtils.createRenderer()
renderer.render(component)
return renderer.getRenderOutput()
}
function shallowRenderWithProps (props... |
src/js/admin/categories/confirm-dialog/confirm-dialog.js | ucev/blog | import React from 'react'
import { connect } from 'react-redux'
import Dialog from '$components/dialogs/confirm-dialog'
import {
deleteCategoryConfirm,
deleteCategoryCancel,
} from '$actions/categories'
const ConfirmDialog = ({ visible, confirm, cancel }) => {
return (
<Dialog
title="确认删除此类别?"
v... |
front/app/js/components/controls/common/Animate.js | nudoru/React-Starter-3 | import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import {compose, identity} from 'ramda';
import TransitionGroupPlus from 'react-transition-group-plus';
import {NOOP, omit, getDOMElements} from '../../../utils/componentUtils';
/*
Wrapper for GreenSock Animations and Reac... |
app/components/navigators/rootNavigator/RootNavigation.js | MutatedBread/binary-academy-rn | import React, { Component } from 'react';
import {
addNavigationHelpers,
} from 'react-navigation';
import RootNav from './RootNav.js';
export default class RootNavigation extends Component {
constructor(props) {
super(props);
}
render() {
return (
<RootNav navigation={ad... |
packages/material-ui-icons/src/Input.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M21 3.01H3c-1.1 0-2 .9-2 2V9h2V4.99h18v14.03H3V15H1v4.01c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98v-14c0-1.11-.9-2-2-2zM11 16l4-4-4-4v3H1v2h10v3z" /></g>
, 'Input');
|
Libraries/Utilities/AlertIOS.js | shinate/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
jenkins-design-language/src/js/components/material-ui/svg-icons/action/timeline.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionTimeline = (props) => (
<SvgIcon {...props}>
<path d="M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05.... |
webapp/client/src/App.js | mikemag/MonkeyCAM | /*
* Copyright 2013-2017 Michael M. Magruder (https://github.com/mikemag)
*
* This source code is licensed under the Apache license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import './App.css';
import { Route, Switch } from 'react-router-do... |
ajax/libs/yui/3.4.1/event-custom-base/event-custom-base-debug.js | janpaepke/cdnjs | YUI.add('event-custom-base', function(Y) {
/**
* 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.
* @module ev... |
packages/material-ui-icons/src/Business.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Business = props =>
<SvgIcon {...props}>
<path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2... |
src/components/custom-components/System/Spinner/SpinnerGlobal.js | ArtyomVolkov/music-search | import React, { Component } from 'react';
import { connect } from 'react-redux';
// Components
import { CircularProgress } from 'material-ui';
// Styles
import './SpinnerGlobal.scss';
@connect(
state => ({
spinner: state.system.spinner
}),
dispatch => ({})
)
class SpinnerGlobal extends Component {
render ... |
src/icons/AndroidArrowBack.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class AndroidArrowBack extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g id="Icon_8_">
<g>
<path d="M427,234.625H167.296l119.702-119.702L256,85L85,256l171,171l29.922-29.924L167.296,277.375... |
ajax/libs/react-dom/16.3.1/cjs/react-dom.development.js | sufuf3/cdnjs | /** @license React v16.3.1
* react-dom.development.js
*
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
if (process.env.NODE_ENV !== "production") {
(function() {
'use... |
EventEmitter.Client/src/components/UserLoader/users.js | Stelmashenko-A/EventEmitter | import React from 'react'
import Select from 'react-select'
import 'react-select/dist/react-select.css'
import axios from 'axios'
const UserLoader = React.createClass({
displayName: 'UserLoader',
propTypes: {
value: React.PropTypes.object,
onChange: React.PropTypes.func
},
getInitialState () {
retu... |
src/svg-icons/action/check-circle.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCheckCircle = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/>
</SvgIcon>
);
ActionChec... |
tests/test_controls.js | saschwarz/react-svgpathplayer | import chai from 'chai';
import spies from 'chai-spies';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import Controls from '../src/controls';
chai.use(spies);
var expect = chai.expect;
function setupControls(props) {
let renderer = TestUtils.createRenderer()
renderer.render(<Control... |
frontend/src/main/web/src/index.js | mvehar/zanata-server | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { mapValues } from 'lodash'
import { createStore, applyMiddleware, compose } from 'redux'
import thunk from 'redux-thunk'
import createLogger from 'redux-logger'
import { hashHistory } from 'react-router'
import { syncHistory } ... |
ajax/libs/yui/3.7.0/datatable-body/datatable-body-debug.js | kevinburke/cdnjs | YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.
@module datatable
@submodule datatable-body
@since 3.5.0
**/
var Lang = Y.Lang,
isArray = Lang.isA... |
ajax/libs/webshim/1.15.2/dev/shims/es6.js | sympmarc/cdnjs | // ES6-shim 0.15.0 (c) 2013-2014 Paul Miller (http://paulmillr.com)
// ES6-shim may be freely distributed under the MIT license.
// For more details and documentation:
// https://github.com/paulmillr/es6-shim/
webshim.register('es6', function($, webshim, window, document, undefined){
'use strict';
var isCallableW... |
app/static/src/diagnostic/TestList.js | SnowBeaver/Vision | import React from 'react';
import FormGroup from 'react-bootstrap/lib/FormGroup';
import FormControl from 'react-bootstrap/lib/FormControl';
import Accordion from 'react-bootstrap/lib/Accordion';
import Panel from 'react-bootstrap/lib/Panel';
import {Link} from 'react-router';
import NewTestForm from './NewTestForm';
i... |
pootle/static/js/editor/containers/EditorContainer.js | r-o-b-b-i-e/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import { qAll } from 'utils/do... |
ajax/libs/yui/3.6.0pr1/datatable-body/datatable-body.js | upgle/cdnjs | YUI.add('datatable-body', function(Y) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.
@module datatable
@submodule datatable-body
@since 3.5.0
**/
var Lang = Y.Lang,
isArray = Lang.isArray,
... |
ajax/libs/6to5/1.12.24/browser-polyfill.js | jessepollak/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... |
docs/app/Examples/elements/Label/Groups/LabelExampleGroupCircular.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Label } from 'semantic-ui-react'
const LabelExampleGroupCircular = () => (
<Label.Group circular>
<Label as='a'>11</Label>
<Label as='a'>22</Label>
<Label as='a'>33</Label>
<Label as='a'>44</Label>
<Label as='a'>141</Label>
</Label.Group>
)
export default Lab... |
src/datablock.js | flywingdevelopers/rn-naive | /**
* <DataBlock view|style={} textViewStyle={} textStyle={} inputStyle={} />
*
* +---------------------+
* | Text |
* +---------------------+
* | ___________________ +
* +---------------------+
*
* Kevin Lee 16 Aug 2017
**/
import React from 'react'
import { View, StyleSheet, ViewPropTypes } fr... |
src/js/components/GamesTable.js | bcongdon/gdq-stats | import React from 'react'
import Stat from './Stat'
import { connect } from 'react-redux'
import { PropTypes } from 'prop-types'
import Col from 'react-bootstrap/lib/Col'
import Row from 'react-bootstrap/lib/Row'
import Grid from 'react-bootstrap/lib/Grid'
import OverlayTrigger from 'react-bootstrap/lib/OverlayTrigger'... |
index.js | drcmda/react-springy-parallax | import React from 'react'
import PropTypes from 'prop-types'
import Animated from 'animated/lib/targets/react-dom'
export default class extends React.Component {
static propTypes = {
pages: PropTypes.number.isRequired,
effect: PropTypes.func,
scrolling: PropTypes.bool,
horizontal: P... |
src/app/Header.js | nkbt/esnext-quickstart | import React from 'react';
import styles from './Header.css';
const Header = () =>
<header className={styles.header}>
<a className={styles.logo} href="/">Logo</a>
</header>;
export default Header;
|
docs/src/app/pages/pieces/list.js | ButuzGOL/constructor | import React from 'react';
import DocumentTitle from 'react-document-title';
import Doc from '../../components/doc';
import { List } from 'constructor';
export default class ListPage extends React.Component {
render() {
return (
<DocumentTitle title="List component - Constructor">
<article classN... |
src/theme/ThemeDecorator.js | xavcz/react-orbital | import React from 'react';
import styled, { ThemeProvider } from 'styled-components';
import ThemeSwitch from './ThemeSwitch';
import themesList from './list';
class ThemeDecorator extends React.Component {
constructor(props) {
super(props);
const [firstTheme] = themesList;
this.state = {
selecte... |
src/routes.js | dmitrif/react-redux-universal-hot-example | import React from 'react';
import {IndexRoute, Route} from 'react-router';
import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth';
import {
App,
Chat,
Home,
Widgets,
About,
Login,
LoginSuccess,
Survey,
NotFound,
} from 'containers';
export default (store) ... |
examples/src/components/CustomSingleValue.js | katienreed/react-select | import React from 'react';
import Gravatar from 'react-gravatar';
var SingleValue = React.createClass({
propTypes: {
placeholder: React.PropTypes.string,
value: React.PropTypes.object
},
render () {
var obj = this.props.value;
var size = 15;
var gravatarStyle = {
borderRadius: 3,
display: 'inline-bl... |
docs/src/app/components/pages/components/SvgIcon/ExampleIcons.js | ichiohta/material-ui | import React from 'react';
import ActionHome from 'material-ui/svg-icons/action/home';
import ActionFlightTakeoff from 'material-ui/svg-icons/action/flight-takeoff';
import FileCloudDownload from 'material-ui/svg-icons/file/cloud-download';
import HardwareVideogameAsset from 'material-ui/svg-icons/hardware/videogame-as... |
docs/app/Examples/collections/Grid/ResponsiveVariations/GridExampleDoubling.js | koenvg/Semantic-UI-React | import React from 'react'
import { Grid, Image } from 'semantic-ui-react'
const GridExampleDoubling = () => (
<Grid doubling columns={5}>
<Grid.Column>
<Image src='http://semantic-ui.com/images/wireframe/image.png' />
</Grid.Column>
<Grid.Column>
<Image src='http://semantic-ui.com/images/wire... |
demo09/src/index.js | lxlneo/reactdemo | import React from 'react'
import { render } from 'react-dom'
import { browserHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import Root from './containers/Root'
import configureStore from './store/configureStore'
const store = configureStore()
const history = syncHistoryWithSto... |
visualizer/client/src/index.js | ucsb-seclab/dr_checker | import React from 'react';
import { render } from 'react-dom';
import config from 'react-global-configuration';
import MainStructure from './pages/main';
// Application settings
config.set({
// server endpoint
endpoint: 'http://localhost:5000',
});
render(<MainStructure />, document.querySelector('#root')); // es... |
src/index.js | tborisova/fridment-react | import React from 'react';
import ReactDOM from 'react-dom';
import './css/index.css';
import App from './components/App';
import registerServiceWorker from './registerServiceWorker';
import 'bootstrap/dist/css/bootstrap.css';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
docs/0.5d174723c0c06b2232a2.js | lhf-nife/quark-ui | webpackJsonp([0],{"0P4F":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"default",function(){return r});var a=n("Jmof"),l=(n.n(a),n("lkey")),s=n("UJDU"),i=n("Pp2j"),o=n("WB2H"),r=class extends a.Component{constructor(e){super(e),this.state={}}render(){var e=()=>{s.a.config({placemen... |
src/components/About.js | gabrielzzarate/portfolio-2017 | import React, { Component } from 'react';
import VisibilitySensor from 'react-visibility-sensor';
import { TimelineMax } from 'gsap';
import animation from '../actions/animations';
import Contact from './Contact';
function AboutSectionHead(props) {
return (
<div className="section-head about">
<h2 className="se... |
admin/src/components/ListHeaderTitle.js | woody0907/keystone | import classnames from 'classnames';
import CurrentListStore from '../stores/CurrentListStore';
import Popout from './Popout';
import PopoutList from './PopoutList';
import React from 'react';
import vkey from 'vkey';
import { FormNote } from 'elemental';
const Transition = React.addons.CSSTransitionGroup;
var ListHe... |
app/javascript/mastodon/features/domain_blocks/index.js | primenumber/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debou... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.