path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
packages/material-ui-icons/lib/esm/LibraryBooksSharp.js | mbrookes/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M4 6H2v16h16v-2H4V6zm18-4H6v16h16V2zm-3 9H9V9h10v2zm-4 4H9v-2h6v2zm4-8H9V5h10v2z"
}), 'LibraryBooksSharp'); |
client/src/components/commons/notFound.component.js | andela-opikuda/documentManagementSystem | import React, { Component } from 'react';
import { Row, Col } from 'react-materialize';
import { Link } from 'react-router';
/**
* @class NotFound
* @extends {Component}
*/
class NotFound extends Component {
/**
* Renders not found page
* @returns {void}
* @memberof NotFound
*/
render() {
return... |
src/parser/warlock/affliction/modules/features/Darkglare.js | sMteX/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER, SELECTED_PLAYER_PET } from 'parser/core/Analyzer';
import Enemies from 'parser/shared/modules/Enemies';
import { encodeTargetString } from 'parser/shared/modules/EnemyInstances';
import Events from 'parser/core/Events';
import SPELLS from 'common/SPELLS';... |
app/javascript/mastodon/features/community_timeline/index.js | SerCom-KC/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader fro... |
examples/todomvc/containers/App.js | cyongen/redux | import React, { Component } from 'react';
import TodoApp from './TodoApp';
import { createRedux } from 'redux';
import { Provider } from 'redux/react';
import * as stores from '../stores';
const redux = createRedux(stores);
export default class App extends Component {
render() {
return (
<Provider redux={... |
src/server.js | ezmionline/rd-jagertrain-display | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import 'babel-core/polyfill';
import path from 'path';
import express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import Router from './routes';
import Html from './components/Html';
import assets from './a... |
src/GodPantheon.js | Visovsiouk/smite-random-picker | import React from 'react';
import { Col } from 'react-bootstrap';
import db from "./components/firebase";
/*"Pantheon" option component*/
class GodPantheon extends React.Component {
constructor(props) {
super(props);
this.state = {
pantheon: 'All',
pantheons: []
};
this.pantheonChange = this.pantheonCha... |
src/modals/GridModal.js | diogofcunha/react-data-grid-extensions | import React from 'react';
import PropTypes from 'prop-types';
import { Modal, ModalBody, ModalFooter, ModalHeader, Button } from 'elemental';
import '../styles/modules.css';
const GridModal = ({
isOpen,
onClose,
headerProps,
children,
handleSubmit,
isSubmitDisabled }) => {
return (
<Modal i... |
examples/point.js | yiminghe/dom-align | import React from 'react';
import { alignPoint } from '../src';
import ReactDOM from 'react-dom';
import createReactClass from 'create-react-class';
class Demo extends React.Component {
state = {
sy: 't',
sx: 'l',
overflowAdjust: false,
};
onChangeY = ({ target: { value } }) => {
this.setState({... |
src/components/projects/show/Section.js | tehfailsafe/portfolioReact | import React from 'react';
const Section = React.createClass({
render(){
return(
<div className="section" style={{backgroundColor: this.props.bg}}>
{ this.props.title &&
<div className="copy">
<h4>{this.props.title}</h4>
</div>
}
{this.props.... |
Ethereum-based-Roll4Win/node_modules/react-bootstrap/es/AbstractNavItem.js | brett-harvey/Smart-Contracts | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose";
import classNames from 'classnames';
import React from 'react';
import NavContext from '.... |
examples/dynamic-segments/app.js | hgezim/react-router | import React from 'react';
import { Router, Route, Link, Redirect } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
<ul>
<li><Link to="/user/123">Bob</Link></li>
<li><Link to="/user/abc">Sally</Link></li>
</ul>
{this.props.children}
... |
src/client.js | janimattiellonen/discgolfresults | import $ from 'jquery';
window.jQuery = require('jquery');
window.$ = window.jQuery;
import React from 'react';
import ReactDOM from 'react-dom';
import { browserHistory as history } from 'react-router';
import { createStore } from './util/redux';
import {createApp} from './util/app';
import * as reducers from './red... |
app/components/Accounts/Delegation.js | soosgit/vessel | // @flow
import React, { Component } from 'react';
import { Button, Divider, Form, Grid, Header, Input, Message, Modal, Segment, Table } from 'semantic-ui-react';
import InputRange from 'react-input-range';
import NumericLabel from '../../utils/NumericLabel';
import AccountName from '../global/AccountName';
export de... |
src/components/DangerButton/DangerButton-test.js | joshblack/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import DangerButton from '../DangerButton';
import { shallow, mount } from 'enzyme';
import Search16 from '@carbon... |
src/components/Report/Kind/NetWorth.js | ayastreb/money-tracker | import Chartist from 'chartist';
import 'chartist-plugin-tooltips';
import 'chartist-plugin-tooltips/dist/chartist-plugin-tooltip.css';
import 'chartist/dist/chartist.min.css';
import abbreviate from 'number-abbreviate';
import PropTypes from 'prop-types';
import React from 'react';
import ChartistGraph from 'react-cha... |
catalog/static/extjs/release/pkgs/pkg-forms.js | redsolution/django-catalog | /*
* Ext JS Library 3.3.1
* Copyright(c) 2006-2010 Sencha Inc.
* licensing@sencha.com
* http://www.sencha.com/license
*/
Ext.form.Field=Ext.extend(Ext.BoxComponent,{invalidClass:"x-form-invalid",invalidText:"The value in this field is invalid",focusClass:"x-form-focus",validationEvent:"keyup",validateOnBlur:true,v... |
src/icons/Arrow.js | ericyd/surfplot-ui | /**
* Icon uses a 100x100 grid for layout
*/
import React from 'react';
import Icon from './Icon';
const Arrow = props => (
<Icon className={props.className}>
<path d='M0 10 L40 50 L0 90 L0 10'/>
</Icon>
);
Arrow.propTypes = {
className: React.PropTypes.string
};
export default Arrow;
|
app/javascript/mastodon/components/button.js | TootCat/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
class Button extends React.PureComponent {
static propTypes = {
text: PropTypes.node,
onClick: PropTypes.func,
disabled: PropTypes.bool,
block: PropTypes.bool,
secondary: PropTypes.bool,
size:... |
ajax/libs/angular.js/0.9.3/angular-scenario.min.js | masahirotanaka/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.
... |
ajax/libs/6to5/2.4.2/browser-polyfill.js | featurist/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... |
react/TickCircleIcon/TickCircleIcon.iconSketch.js | seekinternational/seek-asia-style-guide | import React from 'react';
import TickCircleIcon from './TickCircleIcon';
export const symbols = {
'TickCircleIcon -> with filled': <TickCircleIcon filled={true} />,
'TickCircleIcon -> without filled': <TickCircleIcon filled={false} />
};
|
actor-apps/app-web/src/app/components/dialog/MessagesSection.react.js | amezcua/actor-platform | /*
* Copyright (C) 2015 Actor LLC. <https://actor.im>
*/
import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import { MessageContentTypes } from 'constants/ActorAppConstants';
import MessageActionCreators from 'actions/MessageActionCreators';
... |
src/svg-icons/editor/highlight.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorHighlight = (props) => (
<SvgIcon {...props}>
<path d="M6 14l3 3v5h6v-5l3-3V9H6zm5-12h2v3h-2zM3.5 5.875L4.914 4.46l2.12 2.122L5.62 7.997zm13.46.71l2.123-2.12 1.414 1.414L18.375 8z"/>
</SvgIcon>
);
Edito... |
ajax/libs/backbone.radio/0.2.0/backbone.radio.min.js | Sneezry/cdnjs | // Backbone.Radio v0.1.0
!function(a,b){if("function"==typeof define&&define.amd)define(["backbone","underscore"],function(a,c){return b(a,c)});else if("undefined"!=typeof exports){var c=require("backbone"),d=require("underscore");module.exports=b(c,d)}else b(a.Backbone,a._)}(this,function(a,b){"use strict";function c... |
node_modules/react-native-wheel-picker/index.js | marsinearth/decisionmaker | 'use strict';
import React from 'react';
import {
PickerIOS,
Platform,
} from 'react-native';
import WheelCurvedPicker from './WheelCurvedPicker'
module.exports = (Platform.OS === 'ios' ? PickerIOS : WheelCurvedPicker)
|
react/src/app/screens/Welcome/screens/Login/screens/Lists/screens/List/components/List.js | JasonKDarby/listopolis | import React from 'react';
import { getListById } from '../../../../../../../../../shared/ListAPI';
import './List.css';
import LoadingWithBlinkingDots from '../../../shared/LoadingWithBlinkingDots';
export default class List extends React.Component {
constructor() {
super();
this.state = {
... |
frontend/src/components/CharacterCard.js | pequalsnp/eve-isk-tracker | import React from 'react';
import { Media } from 'react-bootstrap';
import numeral from 'numeral';
const CharacterCard = ({character}) => {
return (
<div>
<Media>
<Media.Left>
<img width={64} height={64} src={character.portraitURLs.px64} alt={character.name}/>
</Media.Left>
... |
modules/dreamview/frontend/src/components/TeleopMonitor/ConsoleTeleop.js | ApolloAuto/apollo | import React from 'react';
import { inject, observer } from 'mobx-react';
import { TELEOP_WS } from 'store/websocket';
import CheckboxItem from 'components/common/CheckboxItem';
import AudioControl from 'components/TeleopMonitor/AudioControl';
import MonitorSection from 'components/TeleopMonitor/MonitorSection';
imp... |
actor-apps/app-web/src/app/components/activity/GroupProfile.react.js | fengshao0907/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import ReactZeroClipboard from 'react-zeroclipboard';
import { IntlMixin, FormattedMessage } from 'react-intl';
import { Styles, Snackbar } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import classnames from '... |
ajax/libs/Swiper/3.4.0/js/swiper.jquery.js | BenjaminVanRyseghem/cdnjs | /**
* Swiper 3.4.0
* Most modern mobile touch slider and framework with hardware accelerated transitions
*
* http://www.idangero.us/swiper/
*
* Copyright 2016, Vladimir Kharlampidi
* The iDangero.us
* http://www.idangero.us/
*
* Licensed under MIT
*
* Released on: October 16, 2016
*/
(function () {
... |
Libraries/Image/ImageBackground.js | exponent/react-native | /**
* 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.
*
* @flow
* @format
*/
'use strict';
const Image = require('./Image');
const React = require('react');
const StyleSheet = require... |
src/components/Modals/WordStudyResults.js | jcuenod/react-lafwebpy-client | import React from 'react'
// import TabulatedResults from './TabulatedResults'
import ReactTable from 'react-table'
import 'react-table/react-table.css'
import Select from 'react-select'
import 'react-select/dist/react-select.css'
import {term_to_english} from 'data/MorphCodes'
class WordStudyResults extends React.C... |
fields/types/cloudinaryimages/CloudinaryImagesField.js | tanbo800/keystone | import _ from 'underscore';
import React from 'react';
import Field from '../Field';
import { Button, FormField, FormInput, FormNote } from 'elemental';
const SUPPORTED_TYPES = ['image/gif', 'image/png', 'image/jpeg', 'image/bmp', 'image/x-icon', 'application/pdf', 'image/x-tiff', 'image/x-tiff', 'application/postscri... |
docs/src/PageHeader.js | PeterDaveHello/react-bootstrap | import React from 'react';
const PageHeader = React.createClass({
render() {
return (
<div className='bs-docs-header' id='content'>
<div className='container'>
<h1>{this.props.title}</h1>
<p>{this.props.subTitle}</p>
</div>
</div>
);
}
});
export default Pag... |
fields/types/number/NumberField.js | helloworld3q3q/keystone | import React from 'react';
import Field from '../Field';
import { FormInput } from 'elemental';
module.exports = Field.create({
displayName: 'NumberField',
statics: {
type: 'Number',
},
valueChanged (event) {
var newValue = event.target.value;
if (/^-?\d*\.?\d*$/.test(newValue)) {
this.props.onChange({
... |
examples/create-react-app-example/src/index.js | socketio/socket.io | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
// If you want your app to work offline and load f... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | asimauchi/simauchiPrintingRevamp | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
docs/app/Examples/modules/Dropdown/Types/DropdownExampleSearchInMenu.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Dropdown, Input } from 'semantic-ui-react'
import { tagOptions } from '../common'
// tagOptions = [
// {
// text: 'Important',
// value: 'Important',
// label: { color: 'red', empty: true, circular: true },
// },
// ...
// ]
const DropdownExampleSearchInMenu = () =... |
src/components/ExperienceSearch/ExperienceBlock/index.js | goodjoblife/GoodJobShare | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import cn from 'classnames';
import { Heading, P } from 'common/base';
import ThumbsUp from 'common/reaction/ThumbsUp';
import Comment from 'common/reaction/Comment';
import styles from './ExperienceBlock.module.css... |
ajax/libs/history/4.7.1/history.js | pvnr0082t/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["History"] = factory();
else
root["Histo... |
src/pages/index.js | sparkdesignsystem/spark-design-system | import React from 'react';
import {
SprkStack,
SprkStackItem,
SprkCard,
SprkLink,
SprkHeading,
SprkText,
} from '@sparkdesignsystem/spark-react';
import Layout from '../components/layouts/Layout';
import componentsMedia from '../images/components.svg';
import developersMedia from '../images/developers.svg';... |
src/svg-icons/social/sentiment-satisfied.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialSentimentSatisfied = (props) => (
<SvgIcon {...props}>
<circle cx="15.5" cy="9.5" r="1.5"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S1... |
packages/material-ui-icons/lib/Shortcut.js | mbrookes/material-ui | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
src/svg-icons/content/remove-circle.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentRemoveCircle = (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 2zm5 11H7v-2h10v2z"/>
</SvgIcon>
);
ContentRemoveCircle = pure(ContentRemoveCir... |
ajax/libs/rxjs/2.3.24/rx.all.js | CyrusSUEN/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false... |
node_modules/react-icons/fa/header.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const FaHeader = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m37.5 37.1q-0.9 0-2.9 0t-3-0.1q-1 0-2.9 0.1t-3 0q-0.5 0-0.8-0.4t-0.3-1q0-0.7 0.4-1.1t0.8-0.3 1.2-0.2 1-0.3q0.7-0.5 0.7-3.2l0-8.7q0-0.5 0-0.7-0.3-0.1-1.1-0.1h-15.1q-0.8... |
src/svg-icons/hardware/computer.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareComputer = (props) => (
<SvgIcon {...props}>
<path d="M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"/>
</SvgIcon>
);
HardwareComputer ... |
assets/javascripts/kitten/components/graphics/icons/align-left-icon/index.js | KissKissBankBank/kitten | import React from 'react'
import PropTypes from 'prop-types'
export const AlignLeftIcon = ({ color, title, ...props }) => (
<svg
width="14"
height="10"
viewBox="0 0 14 10"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
{title && <title>{title}</title>}>
<path d="M9 8v2H0V8h9zm5-4v2H0V4... |
src/views/components/formatted-integer/index.spec.js | zerubeus/sawt | import React from 'react';
import { render } from 'enzyme';
import FormattedInteger from './index';
describe('views', () => {
describe('FormattedInteger', () => {
it('should insert comma to separate groups of thousands', () => {
expect(render(<FormattedInteger value={1000} />).text()).toBe('1,000');
... |
test/ThumbnailSpec.js | insionng/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Thumbnail from '../src/Thumbnail';
describe('Thumbnail', function () {
it('Should have a thumbnail class and be an anchor', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Thumbnail href="#" src="#" al... |
test/test-0.6.0.js | wkh237/react-native-fetch-blob-dev | import RNTest from './react-native-testkit/'
import React from 'react'
import RNFetchBlob from 'react-native-fetch-blob'
import {
StyleSheet,
Text,
View,
ScrollView,
Platform,
Dimensions,
Image,
} from 'react-native';
const fs = RNFetchBlob.fs
const { Assert, Comparer, Info, prop } = RNTest
const descri... |
app/components/Icon/index.js | aleksandrenko/apollo-cc | import './style.less';
import React from 'react';
const Component = React.createClass({
propTypes: {
icon: React.PropTypes.string.isRequired,
size: React.PropTypes.oneOfType([
React.PropTypes.string,
React.PropTypes.number
]),
style: React.PropTypes.object
},
getDefaultProps() {
... |
src/svg-icons/maps/beenhere.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsBeenhere = (props) => (
<SvgIcon {...props}>
<path d="M19 1H5c-1.1 0-1.99.9-1.99 2L3 15.93c0 .69.35 1.3.88 1.66L12 23l8.11-5.41c.53-.36.88-.97.88-1.66L21 3c0-1.1-.9-2-2-2zm-9 15l-5-5 1.41-1.41L10 13.17l7.59... |
index.js | kadira-samples/react-storybook-demo | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from './containers/App'
import configureStore from './store/configureStore'
import 'todomvc-app-css/index.css'
const store = configureStore()
render(
<Provider store={store}>
<A... |
ajax/libs/react/16.0.0-beta.2/umd/react.production.min.js | froala/cdnjs | /**
* react.production.min.js v16.0.0-beta.2
*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.React=t()}(this,function(){"use strict";function e(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called wit... |
lib/containers/__tests__/report.js | conveyal/scenario-editor | // @flow
import nock from 'nock'
import React from 'react'
import {
mockRegion,
mockProject,
mockWithProvider
} from '../../utils/mock-data'
import Report from '../report'
const {describe, expect, it} = global
describe('Container > Report', () => {
it('renders correctly', () => {
// ensure that /api/regio... |
ajax/libs/rxjs/2.3.8/rx.all.js | melvinsembrano/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false... |
src/svg-icons/action/lock-open.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLockOpen = (props) => (
<SvgIcon {...props}>
<path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 ... |
src/partialApplication/defaultProps.js | xaviervia/react-dream | export default f => reactDream => reactDream.defaultProps(f)
|
tests/routes/Issues/components/Issue.spec.js | sdurighello/react-github-issues | import React from 'react'
import { bindActionCreators } from 'redux'
import { Issue } from 'routes/Issues/components/Issue'
import { shallow } from 'enzyme'
describe('(Component) Issue', () => {
let _props, _spies, _wrapper
beforeEach(() => {
_spies = {}
_props = {
issue : {id: 1, number: 7, title: ... |
src/ModalTitle.js | natlownes/react-bootstrap | import React from 'react';
import classNames from 'classnames';
class ModalTitle extends React.Component {
render() {
return (
<h4
{...this.props}
className={classNames(this.props.className, this.props.modalClassName)}>
{ this.props.children }
</h4>
);
}
}
ModalTitle.pr... |
src/routes/app/routes/DataGraph/components/xDashboard.js | ahthamrin/kbri-admin2 | import React from 'react';
import QueueAnim from 'rc-queue-anim';
import KPIsChart from './KPIsChart';
import AquisitionChart from './AquisitionChart';
import StatBoxes from './StatBoxes';
import EngagementStats from './EngagementStats';
import BenchmarkChart from './BenchmarkChart';
const Main = () => (
<div classN... |
src/app/controllers/Moon.js | mazahell/eve-react-app | import React from 'react'
import {connect} from 'react-redux'
import {unmountMoon, getScheme, updFalse, updPrice, recalculate} from '../actions/moonActions'
import {setHead} from '../actions/appActions'
import {map} from 'lodash'
// components
import TableResourses from './../components/resourses/moon/Tables'
import C... |
node_modules/react-bootstrap/es/Grid.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 ... |
classic/src/scenes/mailboxes/src/Scenes/AccountWizardScene/MailboxWizardScene/WizardConfigure/WizardConfigure.js | wavebox/waveboxapp | import React from 'react'
import PropTypes from 'prop-types'
import { accountStore } from 'stores/account'
import WizardConfigureGeneric from '../../Common/WizardConfigure/WizardConfigureGeneric'
import WizardConfigureGmail from '../../Common/WizardConfigure/WizardConfigureGmail'
import WizardConfigureMicrosoft from '.... |
src/main/archetype/ui.frontend.react/src/components/RouteHelper/RouteHelper.js | Adobe-Marketing-Cloud/aem-project-archetype | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Copyright 2020 Adobe Systems Incorporated
~
~ 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
~
~ htt... |
js/app/signin/handler.js | monetario/web |
'use strict';
import React from 'react';
import {Router, Route, Link} from 'react-router'
import Reflux from 'reflux';
import Store from './store';
import SignInForm from './components';
var SignInHandler = React.createClass({
mixins: [
Reflux.listenTo(Store, 'onStoreUpdate')
],
getInitialState() {
... |
ReactJS/04.React-Form-Exercise/demoToday/src/components/form/formFields/Input.js | Martotko/JS-Web | import React from 'react'
import Valid from './../validationComponents/Valid'
import Invalid from './../validationComponents/Invalid'
let Input = props => {
return (
<div>
<label htmlFor={props.data}>{props.name}</label>
<div>
<input
style={{ width: '300px' }}
onChange... |
src/components/Excel.js | luanau/react-slingshot-pdps | import React, {Component, PropTypes} from 'react';
class Excel extends Component {
constructor(props) {
super(props);
this.state = {
data: this.props.initialData,
sortby: null,
descending: false
}; // initial state
//Bind the event... |
ajax/libs/ember-data.js/2.4.0/ember-data.js | sufuf3/cdnjs | (function(){
"use strict";
/*!
* @overview Ember Data
* @copyright Copyright 2011-2016 Tilde Inc. and contributors.
* Portions Copyright 2011 LivingSocial Inc.
* @license Licensed under MIT license (see license.js)
* @version 2.4.0
*/
var define, requireModule, require, requirejs;
(function() ... |
app/components/AppPopover/index.js | czy0729/react-alumni | /**
* antd-mobile Popover
* @version 170215 1.0
*/
'use strict';
import React from 'react';
import classNames from 'classnames';
import { Popover } from 'antd-mobile';
const prefixCls = 'components__app-popover';
class AppPopover extends React.Component {
static propTypes = {
overlay: React.PropTypes.... |
src/DatePicker/DateDisplay.spec.js | kittyjumbalaya/material-components-web | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import getMuiTheme from '../styles/getMuiTheme';
import {dateTimeFormat} from './dateUtils';
import DateDisplay from './DateDisplay';
describe('<DateDisplay />', () => {
const muiTheme = getMuiTheme();
c... |
index.android.js | yohnz/maoyanFilm | /**
* https://github.com/yohnz/maoyanFilm
*/
import React, {
AppRegistry,
Component,
StyleSheet,
Text,
View,
} from 'react-native';
import film from "./main"
AppRegistry.registerComponent('film', () => film);
|
sites/v.chinadebate.org/modules/standard/ctools/js/dependent.js | 404pnf/d7sites | /**
* @file
*
* Written by dmitrig01 (Dmitri Gaskin) for CTools; this provides dependent
* visibility for form items in CTools' ajax forms.
*
* To your $form item definition add:
* - '#process' => array('CTools_process_dependency'),
* - Add '#dependency' => array('id-of-form-item' => array(list, of, values, tha... |
ajax/libs/forerunnerdb/1.3.152/fdb-legacy.js | rlugojr/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/relay-runtime/store/RelayReader.js | kassens/relay | /**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
*/
// flowlint ambiguous-object-type:error
'use strict';
import type {
ReaderActorChange,
... |
src/svg-icons/image/filter-hdr.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterHdr = (props) => (
<SvgIcon {...props}>
<path d="M14 6l-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22L14 6z"/>
</SvgIcon>
);
ImageFilterHdr = pure(ImageFilterHdr);
ImageFilterHdr.displayName... |
src/js/containers/FilterSelection/index.js | nathanuphoff/datahub.client | import React from 'react'
import { ActiveFilters } from '../../components'
export default function FilterSelection({ props }) {
return <nav className='container menu'>
<ActiveFilters props={props} />
</nav>
}
|
src/modules/header/HeaderRenderer.js | kuzzmi/rmndrz | import React from 'react';
import './Header.scss';
export default () =>
<div className="HeaderComponent">
<div className="text">
<span className="name">
rmndrz
</span>
<span className="version">
v1.0.0
</span>
</div>
... |
ajax/libs/intl-tel-input/8.0.1/js/intlTelInput.js | nolsherry/cdnjs | /*
* International Telephone Input v8.0.1
* https://github.com/jackocnr/intl-tel-input.git
* Licensed under the MIT license
*/
// wrap in UMD - see https://github.com/umdjs/umd/blob/master/jqueryPluginCommonjs.js
(function(factory) {
if (typeof define === "function" && define.amd) {
define([ "jquery" ],... |
classic/src/scenes/wbfa/generated/FARServer.pro.js | wavebox/waveboxapp | import React from 'react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faServer } from '@fortawesome/pro-regular-svg-icons/faServer'
export default class FARServer extends React.Component {
render () {
return (<FontAwesomeIcon {...this.props} icon={faServer} />)
}
}
|
app/javascript/mastodon/features/mutes/index.js | tri-star/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... |
docs/app/Examples/modules/Embed/Types/EmbedExampleVimeo.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Embed } from 'semantic-ui-react'
const EmbedExampleVimeo = () => (
<Embed
id='125292332'
placeholder='http://semantic-ui.com/images/vimeo-example.jpg'
source='vimeo'
/>
)
export default EmbedExampleVimeo
|
src/components/presentational/ProductDetails/ProductDetails.js | AurimasSk/DemoStore | import React from 'react';
import PropTypes from 'prop-types';
const ProductDetails = ( {product} ) => {
return (
<div className="container-fluid productDetails">
https://medium.com/@danparkk/react-modals-scalable-customizable-neat-components-f2088d60f3d3 <div className="row">
... |
src/components/DemoPageIndex/DemoPageIndex.react.js | OpusCapitaBES/js-react-showroom-client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import './DemoPageIndex.less';
import DemoPage from '../DemoPage';
import localLoader from '../../local-loader/index';
export default
class DemoPageIndex extends Component {
constructor(props) {
super(props);
this.state = {
i... |
src/svg-icons/editor/border-right.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderRight = (props) => (
<SvgIcon {...props}>
<path d="M7 21h2v-2H7v2zM3 5h2V3H3v2zm4 0h2V3H7v2zm0 8h2v-2H7v2zm-4 8h2v-2H3v2zm8 0h2v-2h-2v2zm-8-8h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm8 8h2v-2h-2v2zm4-4h... |
Public/javascripts/app/jquery.min.js | skylmsgq/Jczd | /*! 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... |
src/components/Location.js | leoasis/redux-state-router | import React from 'react';
import { connect } from 'react-redux';
import { createHistory } from 'history';
class Route extends React.Component {
static childContextTypes = {
renderUrl: React.PropTypes.func
};
render() {
return this.props.children();
}
getChildContext() {
return { renderUrl: th... |
packages/rmw-shell/src/providers/Firebase/Messaging/with.js | TarikHuber/react-most-wanted | import Context from './Context'
import React from 'react'
const withContainer = (Component) => {
const ChildComponent = (props) => {
return (
<Context.Consumer>
{(value) => {
return <Component {...value} {...props} />
}}
</Context.Consumer>
)
}
return ChildComponent... |
app/components/landing/Instructions.js | Block-and-Frame/block-and-frame | import React, { Component } from 'react';
import InstructionItem from './InstructionItem';
import InstructionText from './InstructionText.js';
class Instructions extends Component {
constructor(props) {
super(props);
this.state = {
showCredentials: false,
};
this.handleClick = this.handleClick.... |
ajax/libs/preact/10.0.0-alpha.3/preact.module.js | extend1994/cdnjs | var l,n,u,t,i,r={},e=[],f=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i;function o(l,n){for(var u in n)l[u]=n[u];return l}function c(l){var n=l.parentNode;n&&n.removeChild(l)}function s(l,n,u){var t,i,r,e,f=arguments;if(null==n&&(n={}),arguments.length>3)for(u=[u],t=3;t<arguments.length;t++)u.push(f... |
packages/material-ui-icons/lib/esm/Textsms.js | mbrookes/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"
}), 'Textsms'); |
admin/client/App/shared/Popout/index.js | linhanyang/keystone | /**
* A Popout component.
* One can also add a Header (Popout/Header), a Footer
* (Popout/Footer), a Body (Popout/Body) and a Pan (Popout/Pane).
*/
import React from 'react';
import Portal from '../Portal';
import Transition from 'react-addons-css-transition-group';
const SIZES = {
arrowHeight: 12,
arrowWidth: ... |
app/javascript/mastodon/features/ui/components/upload_area.js | mosaxiv/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spring';
import { FormattedMessage } from 'react-intl';
export default class UploadArea extends React.PureComponent {
static propTypes = {
active: PropTypes.boo... |
client/src/components/AuthBadge/index.js | Pairboard/Pairboard | import React from 'react';
import { observer } from 'mobx-react';
import AuthBadgeComponent from './AuthBadge';
import authStore from '../../stores/auth';
class AuthBadgeConnected extends React.Component {
componentDidMount() {
authStore.checkAuth();
}
render() {
return (
<AuthBadgeComponent
... |
src/browser/app/App.js | chad099/react-native-boilerplate | // @flow
import type { State } from '../../common/types';
import * as themes from '../themes';
import Container from './Container';
import Footer from './Footer';
import Header from './Header';
import Helmet from 'react-helmet';
import React from 'react';
import common from '../../common/app/common';
import favicon fro... |
src/Form/ReduxFormFields.js | boldr/boldr-ui | // @flow
import React from 'react';
import Checkbox from './Checkbox';
import Control from './Control';
import Help from './Help';
import FormField from './Field/FormField';
import Label from './Label';
import Radio from './Radio';
import Input from './Input';
import TextArea from './TextArea';
import SelectInput from ... |
docs/app/Examples/collections/Grid/Variations/GridExamplePaddedVertically.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Grid, Image } from 'semantic-ui-react'
const GridExamplePaddedVertically = () => (
<div>
<p>The following grid has vertical gutters.</p>
<Grid columns={2} padded='vertically'>
<Grid.Column>
<Image src='http://semantic-ui.com/images/wireframe/paragraph.png' />... |
ajax/libs/forerunnerdb/1.3.925/fdb-core+views.min.js | dada0423/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.