path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/components/ranking-badge-background.js | ronlobo/building-os-charts | import React from 'react';
import classNames from 'classnames';
import setStateFromProps from 'decorators/set-state-from-props';
@setStateFromProps
export default class RankingBadgeBackground extends React.Component {
static propTypes = {
index: React.PropTypes.number.isRequired,
radius: React.PropTypes.num... |
node_modules/react-icons/md/exit-to-app.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdExitToApp = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m31.6 5q1.4 0 2.4 1t1 2.4v23.2q0 1.4-1 2.4t-2.4 1h-23.2q-1.4 0-2.4-1t-1-2.4v-6.6h3.4v6.6h23.2v-23.2h-23.2v6.6h-3.4v-6.6q0-1.4 1-2.4t2.4-1h23.2z m-14.8 21l4.3-4.4h-1... |
ajax/libs/primereact/7.2.1/organizationchart/organizationchart.esm.js | cdnjs/cdnjs | import React, { Component } from 'react';
import { classNames } from 'primereact/utils';
function _arrayLikeToArray(arr, len) {
if (len == null || len > arr.length) len = arr.length;
for (var i = 0, arr2 = new Array(len); i < len; i++) {
arr2[i] = arr[i];
}
return arr2;
}
function _arrayWithoutHoles(arr... |
ajax/libs/extjs/4.2.1/src/AbstractComponent.min.js | sjlu/cdnjs | Ext.define("Ext.AbstractComponent",{requires:["Ext.ComponentQuery","Ext.ComponentManager","Ext.util.ProtoElement","Ext.dom.CompositeElement","Ext.PluginManager"],mixins:{positionable:"Ext.util.Positionable",observable:"Ext.util.Observable",animate:"Ext.util.Animate",elementCt:"Ext.util.ElementContainer",renderable:"Ext... |
examples/tutorials/react-integration/front/src/App.js | softindex/datakernel | import React from 'react';
import logo from './logo.svg';
import './App.css';
function App() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
... |
node_modules/react-icons/io/ios-home.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const IoIosHome = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 8.8l12.5 10v16.2h-8.7v-10h-7.5v10h-8.8v-16.2z m0-3.8l15 12-0.9 0.9-14.1-11.3-14.1 11.3-0.9-0.9 2.5-2v-7.5h5v3.5z"/></g>
</Icon>
)
export default IoIosHome
|
src/client.js | kingpowerclick/kpc-web-backend | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createStore from './redux/create';
import ApiClient from './helpers/ApiClient';
import io from 'socket.io-client';
import... |
app/screens/settings/clock_display/clock_display.android.js | mattermost/mattermost-mobile | // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import PropTypes from 'prop-types';
import React from 'react';
import {
TouchableOpacity,
Modal,
View,
} from 'react-native';
import FormattedText from '@components/formatted_text';
import Radio... |
src/components/Option/__test__/optionTest.js | jpuri/react-draft-wysiwyg | /* @flow */
import React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
import { mount } from 'enzyme';
import Option from '..';
describe('Option test suite', () => {
it('should have a span when rendered', () => {
expect(mount(
<Option
value="b"
onClick={() => {}... |
source/components/HtmlEditor.js | TroyAlford/axis-wiki | import React from 'react'
import Loadable from 'react-loadable'
const HtmlEditor = Loadable({
loader: () => import(/* webpackChunkName: "AceEditor" */ './dynamic/AceEditor'),
loading: () => <div className="loading" />,
render: ({ default: AceEditor }, { html, readonly, ...props }) => (
<AceEditor {...props} ... |
test/integration/client-navigation/pages/snap-scroll-position.js | azukaru/next.js | import React from 'react'
export default class SnapScrollPosition extends React.Component {
constructor(props) {
super(props)
this.state = { positionY: -1 }
}
componentDidMount() {
this.setState({ positionY: window.scrollY })
}
render() {
return (
<main>
{Array.from({ length: ... |
fluxArchitecture/src/js/components/app.js | 3mundi/React-Bible | import React from 'react';
import Catalog from './catalog/app-catalog'
import Cart from './cart/app-cart'
import CatalogDetail from './product/app-catalogdetail';
import Template from './app-template';
import { Router, Route, IndexRoute } from 'react-router';
export default () => {
return (
<Router>
<Route... |
gears_jsx/node_modules/react-tools/src/addons/transitions/__tests__/ReactTransitionGroup-test.js | ChillyBwoy/gears-jsx | /**
* 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 required by applicable law or agree... |
ajax/libs/F2/1.3.3/f2.no-bootstrap.min.js | hristozov/cdnjs | /*! F2 - v1.3.3 - 04-07-2014 - See below for copyright and license */
!function(exports){if(!exports.F2||exports.F2_TESTING_MODE){/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obta... |
test/helpers/shallowRenderHelper.js | rubyconvict/6f7aaabe19ccddd002d37c9e | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
ajax/libs/material-ui/5.0.0-alpha.27/CardHeader/CardHeader.min.js | cdnjs/cdnjs | import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";import*as React from"react";import PropTypes from"prop-types";import clsx from"clsx";import{deepmerge}from"@material-ui/utils";import{unstable_composeClasses as com... |
ajax/libs/forerunnerdb/1.3.703/fdb-core+persist.min.js | cdnjs/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... |
docs/src/examples/elements/Image/States/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
const ImageStatesExamples = () => (
<ExampleSection title='States'>
<ComponentExample
title='Hidden'
description='An ... |
front/bookings/components/form/feeForm.js | RalphSleigh/bookings | import React from 'react'
import feeFactory from '../../../../shared/fee/feeFactory.js'
export default class FeeForm extends React.Component {
constructor(props) {
super(props);
this.updatePermission = this.updatePermission.bind(this);
}
updatePermission(e) {
this.props.update();
}
render() {
... |
src/containers/Login/index.js | korabh/quran.com-frontend | import React from 'react';
import FacebookTokenButton from 'components/FacebookTokenButton';
import LocaleFormattedMessage from 'components/LocaleFormattedMessage';
const logo = require('../../../static/images/logo-lg.png');
export default () => (
<div className="row" style={{ paddingTop: '10vh' }}>
<div class... |
packages/material-ui-icons/src/LibraryAdd.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let LibraryAdd = props =>
<SvgIcon {...props}>
<path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-1 9h-4v4h-2v-4H9V9h4V5h2v4h4v2z" />
</... |
ajax/libs/yui/3.9.0/simpleyui/simpleyui.js | abenjamin765/cdnjs | /**
The YUI module contains the components required for building the YUI seed file.
This includes the script loading mechanism, a simple queue, and the core
utilities for the library.
@module yui
@main yui
@submodule yui-base
**/
/*jshint eqeqeq: false*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The... |
test/wallet/transactionlist.component.js | rivine/rivine-UI | import React from 'react'
import { shallow } from 'enzyme'
import { expect } from 'chai'
import { List } from 'immutable'
import { spy } from 'sinon'
import TransactionList from '../../plugins/Wallet/js/components/transactionlist.js'
import BigNumber from 'bignumber.js'
const testTxns = List([
{
confirmed: true,
... |
src/components/Blog/Comment/CommentBlock.js | andreas-groos/mini-blog-redux | import React from 'react'
import AllowComments from './AllowComments'
import CommentBox from './CommentBox'
const CommentBlock = (props) => {
return (<div style={ { border: '1px solid lightgrey', padding: '10px' } }>
<AllowComments post={ props.post } />
{ props.post.allowComments ? <Comment... |
ajax/libs/forerunnerdb/1.2.12/fdb-all.min.js | tholu/cdnjs | !function(C){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=C();else if("function"==typeof define&&define.amd)define([],C);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self);e.ForerunnerDB=C()}}(function(){return function e(l,h,c... |
src/registerServiceWorker.js | chepilot/open_city_website | // In production, we register a service worker to serve assets from local cache.
// This lets the app load faster on subsequent visits in production, and gives
// it offline capabilities. However, it also means that developers (and users)
// will only see deployed updates on the "N+1" visit to a page, since previously... |
ajax/libs/6to5/1.11.6/browser.js | iros/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return... |
Web Developer Skills/Learn ReactJS Part II/Unit 06 Stateless Functional Components/02 Stateless Functional Components and Props/GuineaPigs.js | ummahusla/codecademy-exercise-answers | import React from 'react';
export const GuineaPigs = (props) => {
let src = props.src;
return (
<div>
<h1>Cute Guinea Pigs</h1>
<img src={src} />
</div>
);
}
|
_posts/2021-02-01-pericia-emenda/pericia-emenda_files/jquery-1.11.3/jquery.min.js | abjur/blog | /*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
app/javascript/mastodon/components/loading_indicator.js | TootCat/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
const LoadingIndicator = () => (
<div className='loading-indicator'>
<FormattedMessage id='loading_indicator.label' defaultMessage='Loading...' />
</div>
);
export default LoadingIndicator;
|
src/svg-icons/action/schedule.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSchedule = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H... |
__tests__/index.web.js | ansumanshah/react-app-kit | import React from 'react';
import ReactDOM from 'react-dom';
import App from '../src/web/App';
it('renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.render(<App />, div);
});
|
pages/postcss.js | huchenme/jiweiwei_me | import React from 'react'
import './example.css'
import Helmet from 'react-helmet'
import { config } from 'config'
export default class PostCSS extends React.Component {
render () {
return (
<div>
<Helmet
title={`${config.siteTitle} | Hi PostCSSy friends`}
/>
<h1 classNam... |
vendor/jquery/jquery.min.js | inviteyu-template/inviteyu-template.github.io | /*! jQuery v1.12.4 | (c) jQuery Foundation | 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 window?window:this,fu... |
test/specs/elements/Divider/Divider-test.js | koenvg/Semantic-UI-React | import React from 'react'
import Divider from 'src/elements/Divider/Divider'
import * as common from 'test/specs/commonTests'
describe('Divider', () => {
common.isConformant(Divider)
common.rendersChildren(Divider)
common.hasUIClassName(Divider)
common.propKeyOnlyToClassName(Divider, 'horizontal')
common.p... |
src/packages/@ncigdc/modern_components/ImageViewer/ImageViewer.relay.js | NCI-GDC/portal-ui | // @flow
import React from 'react';
import { graphql } from 'react-relay';
import { parse } from 'query-string';
import { withRouter } from 'react-router-dom';
import { parseIntParam, parseFilterParam } from '@ncigdc/utils/uri';
import { compose, withPropsOnChange, withProps, withState } from 'recompose';
import Query... |
20161210/RN-test/index.android.js | fengnovo/react-native | import React from 'react';
import { AppRegistry } from 'react-native';
import Root from './app/test02/myScrollView1';
AppRegistry.registerComponent('RNTest', ()=>Root);
|
dev/UserDirectory.js | zhaotian2470/contacts | import React from 'react';
import FlatButton from 'material-ui/FlatButton';
import TextField from 'material-ui/TextField';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
import DatePicker from 'material-ui/DatePicker';
import {Table, TableBody, TableHeader, TableHeaderCo... |
src/svg-icons/communication/vpn-key.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationVpnKey = (props) => (
<SvgIcon {...props}>
<path d="M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 ... |
node_modules/recharts/es6/shape/Sector.js | SerendpityZOEY/Fixr-RelevantCodeSearch | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
frontend/src/components/Link.js | daGrevis/msks | import _ from 'lodash'
import React from 'react'
import { connect } from 'react-redux'
import { push } from '../store/actions/router'
import { withBasePath } from '../routing/links'
const Link = props => (
<a
{..._.omit(props, ['push'])}
href={props.href ? withBasePath(props.href) : '#'}
onClick={ev => ... |
examples/server-rendering/jsapp/src/App.js | tywinstark/react | 'use strict';
var React = require('react');
var App = React.createClass({
render: function() {
return <h1>Hello {this.props.name}!</h1>;
}
});
module.exports = App;
|
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Create/FormComponents/TextArea.js | thusithak/carbon-apimgt | /*
* Copyright (c) 2017, 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... |
src/svg-icons/action/eject.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionEject = (props) => (
<SvgIcon {...props}>
<path d="M5 17h14v2H5zm7-12L5.33 15h13.34z"/>
</SvgIcon>
);
ActionEject = pure(ActionEject);
ActionEject.displayName = 'ActionEject';
ActionEject.muiName = 'Svg... |
app/components/navigation/personality/PersonalityLinks.js | VasilyShelkov/Vasily | import React, { Component } from 'react';
import Letter from './Letter';
class PersonalityLinks extends Component {
render() {
var openCB='{';
var closedCB = '}';
var personalities = ['Developer,','Explorer, ','Early-Adopter, ','Anime-Lover'].map((personality, index) => {
var personalityLetters = personal... |
benchmarks/src/implementations/react-native-web/Tweet/TweetTextPart.js | rofrischmann/fela | /* eslint-disable react/prop-types */
import { Image, StyleSheet, Text } from 'react-native';
import PropTypes from 'prop-types';
import React from 'react';
import theme from './theme';
const createTextEntity = ({ part }) => <Text>{`${part.prefix}${part.text}`}</Text>;
const createTwemojiEntity = ({ part }) => (
<I... |
app/javascript/mastodon/features/ui/components/compose_panel.js | tootcafe/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import SearchContainer from 'mastodon/features/compose/containers/search_container';
import ComposeFormContainer from 'mastodon/features/compose/containers/compose_form_container';
import NavigationContainer from 'mast... |
src/server/express.js | fk1blow/react-presentception | /*eslint-disable no-console */
import React from 'react';
import compression from 'compression';
import config from './config';
import express from 'express';
import favicon from 'serve-favicon';
import render from './render';
export default function() {
const app = express();
app.use(compression());
// TODO:... |
src/SafeAnchor.js | coderstudy/react-bootstrap | import React from 'react';
import createChainedFunction from './utils/createChainedFunction';
/**
* Note: This is intended as a stop-gap for accessibility concerns that the
* Bootstrap CSS does not address as they have styled anchors and not buttons
* in many cases.
*/
export default class SafeAnchor extends React... |
src/components/shared/PagingControls.js | chatch/stellarexplorer | import React from 'react'
import Pager from 'react-bootstrap/lib/Pager'
import {FormattedMessage} from 'react-intl'
const PagingControls = ({handleClickNext, handleClickPrev, hidePrev}) =>
<Pager>
{!hidePrev &&
<Pager.Item previous onClick={handleClickPrev} href="#">
← <FormattedMessage id="pa... |
ajax/libs/intl-tel-input/4.0.1/js/intlTelInput.js | AMoo-Miki/cdnjs | /*
International Telephone Input v4.0.1
https://github.com/Bluefieldscom/intl-tel-input.git
*/
// wrap in UMD - see https://github.com/umdjs/umd/blob/master/jqueryPlugin.js
(function(factory) {
if (typeof define === "function" && define.amd) {
define([ "jquery" ], function($) {
factory($, window... |
spec/javascripts/components/story/story_icon_spec.js | Codeminer42/cm42-central | import React from 'react';
import { shallow } from 'enzyme';
import StoryIcon from 'components/story/StoryIcon';
describe('<StoryIcon />', () => {
const iconRules = [
{ storyType: 'feature', icon: 'start', className: 'star' },
{ storyType: 'bug', icon: 'bug_report', className: 'bug' },
{ storyType: 'chor... |
src/components/Lookup/__tests__/Lookup.spec.js | propertybase/react-lds | import React from 'react';
import { mount } from 'enzyme';
import { LookupRaw as Lookup } from '../Lookup';
describe('<Lookup />', () => {
let mounted = null;
let props = {};
const sampleData = [
{
id: '1',
email: 'something@example.com',
label: 'Something',
meta: 'Very meta',
... |
src/admin/lib/CountrySelect.js | rendact/rendact | import React from 'react';
var CountrySelect = React.createClass({
render: function(){
return (
<select id={this.props.id} name={this.props.name} defaultValue={this.props.defaultValue}>
<option value="">Choose country... </option>
<option value="Afghanistan">Afghanistan</option>
<option value="Åland... |
front/src/shared/views/components/utils/intl/wrapper.js | couds/contact-list-microservices | import React, { Component } from 'react';
import { injectIntl } from 'react-intl';
class InternationalizationWrapper extends Component {
getChildContext() {
return {
intl: this.props.intl,
};
}
render() {
return this.props.children;
}
}
InternationalizationWrapper.childContextTypes = {
in... |
src/index.js | brigand/react-pixi-boilerplate | import React from 'react';
import { render } from 'react-dom';
import { App } from './App';
render(<App />, document.getElementById('pixi-root'));
|
node_modules/react-icons/md/crop-16-9.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdCrop169 = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m31.6 26.6v-13.2h-23.2v13.2h23.2z m0-16.6q1.4 0 2.4 1t1 2.4v13.2q0 1.4-1 2.4t-2.4 1h-23.2q-1.4 0-2.4-1t-1-2.4v-13.2q0-1.4 1-2.4t2.4-1h23.2z"/></g>
</Icon>
)
expo... |
ajax/libs/firebase/8.4.0-202131218423/firebase-auth.js | cdnjs/cdnjs | !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("@firebase/app")):"function"==typeof define&&define.amd?define(["@firebase/app"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).firebase)}(this,function(e){"use strict";try{!function(){function t(t){return t&&"object"==typeof t&&"... |
sites/default/files/js/js_HRC5mychXvdbjQNypS9KailI_VrlC0YXnzvLc-mNyHc.js | ongki/drupal8 | /*! jQuery v2.2.4 | (c) jQuery Foundation | 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 window?window:this,fun... |
lib/components/SvgCircle/index.js | EloB/code-test | import React from 'react';
const SvgCircle = () => (
<div />
);
export default SvgCircle;
|
examples/huge-apps/routes/Messages/components/Messages.js | rubengrill/react-router | import React from 'react'
class Messages extends React.Component {
render() {
return (
<div>
<h2>Messages</h2>
</div>
)
}
}
export default Messages
|
src/containers/App.js | ideal-life-generator/MyApp | import React, { Component } from 'react';
import { bool } from 'prop-types';
// import { Link, Route } from 'react-router-dom';
import { connect } from 'react-redux';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
// import UserProfile from './UserProfile';
import Search from './Search';
import InputI... |
packages/material-ui-icons/lib/esm/AspectRatioTwoTone.js | mbrookes/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M3 19.01h18V4.99H3v14.02zM14 15h3v-3h2v5h-5v-2zM5 7h5v2H7v3H5V7z",
opacity: ".3"
}, "0"), /*#__PURE__*/_jsx("path", {
d: "M21 3H3c-1.1 0-2 .9-2 2v14c0 1... |
examples/03 Nesting/Drop Targets/index.js | globexdesigns/react-dnd | import React, { Component } from 'react';
import Container from './Container';
export default class NestingDropTargets extends Component {
render() {
return (
<div>
<p>
<b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/03%20Nesting/Drop%20Targets'>Browse the Source</a>... |
node_modules/particle-io/node_modules/es6-shim/es6-shim.js | gregory-j-weaver/nodebots-a2handsonmuseum | /*!
* https://github.com/paulmillr/es6-shim
* @license es6-shim Copyright 2013-2016 by Paul Miller (http://paulmillr.com)
* and contributors, MIT License
* es6-shim: v0.35.1
* see https://github.com/paulmillr/es6-shim/blob/0.35.1/LICENSE
* Details and documentation:
* https://github.com/paulmillr/es6-... |
src/TypeAhead/SelectTrigger.js | selvagsz/react-power-select | import React, { Component } from 'react';
import TriggerWrapper from '../TriggerWrapper';
import AutoResizeInput from '../AutoResizeInput';
export default class SelectTrigger extends Component {
state = {};
componentWillMount() {
let value = this.getValueFromSelectedOption(this.props);
this.setState({ val... |
test/server/ModalSpec.js | nickuraltsev/react-bootstrap | import React from 'react';
import {assert} from 'chai';
import Modal from '../../src/Modal.js';
describe('Modal', () => {
it('Should be rendered on the server side', () => {
let noOp = () => {};
assert.doesNotThrow(function renderOnServerSide() {
return React.renderToString(
<Modal onHide={noO... |
blueprints/smart/files/__root__/containers/__name__.js | Gouthamve/BINS-FRONT | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
type Props = {
}
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render() {
return (
<div></div>
)
}
}
const mapStateToProps = (state) => {
return {}
}
const ... |
src/Tag.js | chris-gooley/react-materialize | import React from 'react';
import PropTypes from 'prop-types';
import Chip from './Chip';
const Tag = ({ children }) =>
<Chip close>{children}</Chip>;
Tag.propTypes = {
children: PropTypes.node
};
export default Tag;
|
shared/app/Demo/Header/Logo/index.js | pebie/react-universally-node-config | import React from 'react';
import logo from './logo.png';
function Logo() {
return <img src={logo} alt="Logo" style={{ width: '100px' }} />;
}
export default Logo;
|
examples/official-storybook/stories/addon-a11y/form.stories.js | kadirahq/react-storybook | import React from 'react';
import { Form } from '@storybook/components';
const text = 'Testing the a11y addon';
export default {
title: 'Addons/A11y/Form',
component: Form,
parameters: {
options: { selectedPanel: 'storybook/a11y/panel' },
},
};
export const WithoutLabel = () => (
<Form.Field label="">... |
ajax/libs/vue/2.0.0-beta.2/vue.common.js | sashberd/cdnjs | 'use strict';
/**
* Convert a value to a string that is actually rendered.
*/
function _toString(val) {
return val == null ? '' : typeof val === 'object' ? JSON.stringify(val, null, 2) : String(val);
}
/**
* Convert a input value to a number for persistence.
* If the conversion fails, return original string.
*... |
src/decorators/withViewport.js | amit242/scomart | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'events';
import { canUseDOM } from '../../node_modules/react/lib/ExecutionEnvironment';
let eventEmitter;
let viewport = {width: 1366, heig... |
js/components/MainSection.js | ChrisMLee/relay-mongoose-plair | import Relay from 'react-relay';
import React from 'react';
import MainSectionPlaylist from './MainSectionPlaylist';
class MainSection extends React.Component {
constructor(props){
super(props);
console.log('MainSection was called with props', props);
}
componentDidMount(){
}
componentWillReceivePro... |
src/svg-icons/action/trending-up.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTrendingUp = (props) => (
<SvgIcon {...props}>
<path d="M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"/>
</SvgIcon>
);
ActionTrendingUp = pure(ActionTrendingUp);
ActionTrending... |
test/test_helper.js | hzburki/innexiv-front-end | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
actor-apps/app-web/src/app/components/activity/GroupProfileMembers.react.js | Just-D/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import DialogActionCreators from 'actions/DialogActionCreators';
import LoginStore from 'stores/LoginStore';
import AvatarItem from 'components/common/AvatarItem.react';
const {addons: { Pure... |
packages/material-ui-icons/lib/PanToolTwoTone.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/containers/Support/index.js | TekkenChicken/t7-chicken-native | import React, { Component } from 'react';
import { View, Text, ScrollView, Linking, Image, TouchableHighlight } from 'react-native';
import LinearGradient from 'react-native-linear-gradient';
import { SupportNavHeader } from '../../components/NavigationBar';
import CustomText from '../../components/CustomText/CustomTe... |
src/svg-icons/av/playlist-play.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlaylistPlay = (props) => (
<SvgIcon {...props}>
<path d="M19 9H2v2h17V9zm0-4H2v2h17V5zM2 15h13v-2H2v2zm15-2v6l5-3-5-3z"/>
</SvgIcon>
);
AvPlaylistPlay = pure(AvPlaylistPlay);
AvPlaylistPlay.displayName = '... |
wp-content/themes/mamas/js/vender/jquery-1.11.3.js | damith322/Project1 | /*!
* jQuery JavaScript Library v1.11.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2015-04-28T16:19Z
*/
(function( global, factory ) {
if ... |
src/redux/utils/createDevToolsWindow.js | vini175pa/basic-redux-kit | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import DevTools from '../../containers/DevToolsWindow'
export default function createDevToolsWindow (store) {
const win = window.open(
null,
'redux-devtools', // give it a name so it reuses the same window
`... |
test/mapTree-test.js | razh/react-motion | import expect from 'expect';
import mapTree from '../src/mapTree';
import React from 'react';
describe('mapTree', () => {
it('should map numbers leaves correctly', () => {
const add1 = (_, a) => a + 1;
expect(mapTree(add1, 1)).toEqual(2);
expect(mapTree(add1, [])).toEqual([]);
expect(mapTree(add1, {}... |
tinymce/js/tinymce/plugins/legacyoutput/plugin.js | pvskand/addictionRemoval | (function () {
var defs = {}; // id -> {dependencies, definition, instance (possibly undefined)}
// Used when there is no 'main' module.
// The name is probably (hopefully) unique so minification removes for releases.
var register_3795 = function (id) {
var module = dem(id);
var fragments = id.split('.');
var t... |
node_modules/react-dom/lib/ReactUpdates.js | AnnotatedJS/meteor-react-start-app | /**
* 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';
var _prodInvariant = require('./reactProdInvariant'),
_assign = require('object-assign');
var CallbackQueue = req... |
examples/src/components/NumericSelect.js | MattMcFarland/react-select | import React from 'react';
import Select from 'react-select';
var ValuesAsNumbersField = React.createClass({
displayName: 'ValuesAsNumbersField',
propTypes: {
label: React.PropTypes.string
},
getInitialState () {
return {
options: [
{ value: 10, label: 'Ten' },
{ value: 11, label: 'Eleven' },
{ ... |
src/website/app/demos/Flex/Flex/examples/justifyContent.js | mineral-ui/mineral-ui | /* @flow */
import styled from '@emotion/styled';
import React from 'react';
import { ignoreSsrWarning } from '../../../../../../library/utils/emotion';
import _Flex from '../../common/DemoFlex';
import FlexItem from '../../common/DemoFlexItem';
import _DemoLayout from '../../common/DemoLayout';
import type { StyledCom... |
src/index.js | arrb/reduxSample | 'use strict';
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import configureStore from './store/configureStore';
import App from './containers/app/App';
import Emp... |
src/components/UserProfile/RoleBadge.js | nambawan/g-old | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage, defineMessages } from 'react-intl';
import withStyles from 'isomorphic-style-loader/withStyles';
import s from './RoleBadge.css';
import { isViewer, isVoter } from '../../organization';
const messages = defineMessages({
viewer:... |
submissions/leoasis/src/App.js | sensduo/flux-challenge | import React from 'react';
import { connect } from 'react-redux';
import {
getJediSlots,
wasJediBornInCurrentPlanet,
wasAnyJediBornInCurrentPlanet
} from './queries';
import JediSlot from './JediSlot';
import NavButton from './NavButton';
function noFullJediIn(slots, position) {
return !slots[position] || sl... |
containers/books-list.js | runesam/react-redux-next | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { selectBook } from '../actions';
class BooksList extends Component {
renderList() {
return this.props.books.map(book => <button key={book.title} onClick={this.props.selectBook.bin... |
src/CompositeMonitor.js | lapanoid/redux-devtools-monitor-dock | import React, { Component } from 'react';
import createRadio from './createRadio';
import R from 'ramda';
import assign from 'object-assign';
export default class CompositeMonitor extends Component {
constructor(props, context) {
super(props, context);
this.state = {monitor: null, MonitorRadio: null};
wi... |
src/components/Cart/mp/index.js | yangdongMC/kaola | import React from 'react'
import {connect} from 'dva'
import styles from './index.less'
import {Table, Checkbox} from 'antd'
import classnames from "classnames"
class MpList extends React.Component {
state = {
postionSelects: []
}
firstComing = false
componentDidUpdate() {
this._handle... |
src/client.js | expositor/universal-react | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { syncHistoryWithStore } from 'react-router-redux'
import { Router, match, browserHistory } from 'react-router';
//
import "../styles/index.css";
import createRoutes from './routes';
import configureStore from... |
app/javascript/mastodon/components/poll.js | gol-cha/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import classNames from 'classnames';
import Motion fr... |
docs/src/app/components/pages/components/DropDownMenu/ExampleSimple.js | skarnecki/material-ui | import React from 'react';
import DropDownMenu from 'material-ui/DropDownMenu';
import MenuItem from 'material-ui/MenuItem';
const styles = {
customWidth: {
width: 200,
},
};
export default class DropDownMenuSimpleExample extends React.Component {
constructor(props) {
super(props);
this.state = {va... |
springboot/GReact/src/main/resources/static/app/routes/misc/containers/Page404.js | ezsimple/java | import React from 'react'
export default class Page404 extends React.Component {
render() {
return (
<div id="content">
{/* row */}
<div className="row">
<div className="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<div className="row">
<div className="col-... |
src/routes/privacy/index.js | pitLancer/pbdorb | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../compo... |
ajax/libs/yasgui/0.0.12/yasgui.min.js | danut007ro/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r... |
client/src/templates/root.js | andris9/mailtrain | 'use strict';
import React from 'react';
import TemplatesCUD from './CUD';
import TemplatesList from './List';
import Share from '../shares/Share';
import Files from "../lib/files";
import MosaicoCUD from './mosaico/CUD';
import MosaicoList from './mosaico/List';
import {ellipsizeBreadcrumbLabel} from "../lib/helpers... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.