path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
src/components/stream/presenter.js
clothiersphere/sound-candy
import React from 'react'; function Stream({ tracks = [] }) { return ( <div> { tracks.map((track, key) => { return <div className="track" key={key}>{track.title}</div> }) } </div> ); } export default Stream;
src/components/menu.js
jozsefs/frontend-quiz-app
import React, { PropTypes } from 'react'; import MenuItem from './menu-item'; class Menu extends React.Component { render() { return ( <ul> {this.props.items.map((item, index) => ( <MenuItem route={item.get('route')} title={item.get('title')} className=...
components/dialog/dialogBody.js
react-material-design/react-material-design
import React from 'react'; import PropTypes from 'prop-types'; import { Section } from 'glamorous'; /** Dialog Body */ const DialogBody = ({ children }) => ( <Section id="my-mdc-dialog-description" className="mdc-dialog__body" > {children} </Section> ); DialogBody.propTypes = { ...
files/instantsearch.js/0.5.0/instantsearch.min.js
MadhavBitra/jsdelivr
/*! instantsearch.js 0.5.0 | © Algolia SAS | github.com/algolia/instantsearch.js */!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.instantsearch=t():e.instantsearch=t()}(this,function(){return functio...
HomeRange/app/pages/mine/Wode.js
Onlyjson/yanShu_Project
/** * @author: zhangyh-k@glondon.com * @description:https://github.com/i6mi6/react-native-parallax-scroll-view * ScrollView * @Date: 2017/11/2 下午4:15 */ import React, { Component } from 'react'; import { StyleSheet, Text, View, Image, ScrollView, DeviceEventEmitter } from 'react-native'; i...
misc/jquery.js
cfdp/enterung.dk
/*! * jQuery JavaScript Library v1.4.4 * 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....
web_frontend/react_tic-tac-toe/src/index.js
axnion/playground
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; function Square(props) { return ( <button className="square" onClick={props.onClick}> {props.value} </button> ) } class Board extends React.Component { renderSquare(i) { return ( <Squar...
src/components/pages/organDetail.js
yiweimatou/yiweimatou-mobile
import React from 'react' class organDetail extends React.Component { constructor(props){ super(props) } render(){ return ( <div>detail</div> ) } } export default organDetail
packages/material-ui-icons/src/CakeRounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M12.68 5.88c.7-.24 1.22-.9 1.3-1.64.05-.47-.05-.91-.28-1.27L12.42.75c-.19-.33-.67-.33-.87 0l-1.28 2.22c-.17.3-.27.65-.27 1.03 0 1.32 1.3 2.35...
ajax/libs/babel-polyfill/7.0.0-alpha.9/polyfill.js
cdnjs/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...
app/components/todolist/Todo.js
flanamacca/react-learning-kit
import React from 'react' import PropTypes from 'prop-types'; // ES6 import classNames from 'classnames/bind'; import styles from '../../css/todolist.css'; const cx = classNames.bind(styles); const Todo = ({ text, completed, onClick, onRemoveTodoClick }) => ( <li> <input className={cx('todoToggle')} type="ch...
app/components/HorizonalBarChart/Bar.js
thuy616/react-d3-charts
import React from 'react'; import PropTypes from 'prop-types'; type Props = { data: PropTypes.object.isRequired, xScale: PropTypes.func.isRequired, yScale: PropTypes.func.isRequired, colorScale: PropTypes.func.isRequired } export default ({ data, xScale, yScale, colorScale }: Props) => { return ( ...
lib/codemod/src/transforms/__testfixtures__/storiesof-to-csf/parameters-as-var.input.js
storybooks/storybook
/* eslint-disable import/no-extraneous-dependencies */ import React from 'react'; import { storiesOf } from '@storybook/react'; import Canvas from './Canvas'; const CHROMATIC_DELAY = { chromatic: { delay: 500 } }; storiesOf('Canvas', module).add('loading', () => <Canvas loading />, CHROMATIC_DELAY);
src/components/__tests__/TabList-test.js
reactjs/react-tabs
import React from 'react'; import renderer from 'react-test-renderer'; import Tab from '../Tab'; import TabList from '../TabList'; import TabPanel from '../TabPanel'; import Tabs from '../Tabs'; import { TabListWrapper, TabWrapper } from './helpers/higherOrder'; jest.mock('react', () => { const originalModule = jest...
grunt/tasks/npm-react-tools.js
hawsome/react
'use strict'; var fs = require('fs'); var grunt = require('grunt'); var src = 'npm-react-tools'; var dest = 'build/npm-react-tools/'; function buildRelease() { if (grunt.file.exists(dest)) { grunt.file.delete(dest); } // read our required files from package.json var pkgFiles = grunt.config.data.pkg.file...
docs/src/pages/system/basics/CssProp.js
Kagami/material-ui
import React from 'react'; import styled, { ThemeProvider } from 'styled-components'; import NoSsr from '@material-ui/core/NoSsr'; import { createMuiTheme } from '@material-ui/core/styles'; import { compose, spacing, palette, css } from '@material-ui/system'; const Box = styled.div` ${css( compose( spacing...
js/setup.js
msbu-tech/msbu-tech-anywhere
/** * Copyright (c) 2016 MSBU Tech. All Rights Reserved. * This program is distributed under MIT License. */ 'use strict'; import React from 'react'; import { Platform } from 'react-native'; import { Navigation } from 'react-native-navigation'; import { iconsMap, iconsLoaded } from './assets/appicons'; import code...
app/scripts/routes.js
dmlond/duke-data-service-portal
import React from 'react'; import { Route, DefaultRoute, NotFoundRoute } from 'react-router'; import App from './pages/app.jsx'; import Login from './pages/login.jsx'; import Home from './pages/home.jsx'; import Project from './pages/project.jsx'; import Folder from './pages/folder.jsx'; import File from './pages/file...
src/components/local-form-component.js
davidkpiano/react-redux-form
import React from 'react'; import PropTypes from 'prop-types'; import Form from './form-component'; import combineForms from '../reducers/forms-reducer'; import { createStore } from 'redux'; import omit from '../utils/omit'; class LocalForm extends React.Component { constructor(props) { super(props); this.s...
packages/material-ui-icons/src/Battery60Outlined.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V11h10V5.33z" /><path d="M7 11v9.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V11H7z" /></React...
packages/material-ui-icons/src/NotInterested.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20...
client/layout/guided-tours/main-tour.js
tinkertinker/wp-calypso
import React from 'react'; import { translate } from 'i18n-calypso'; import { overEvery as and } from 'lodash'; import { makeTour, Tour, Step, Next, Quit, Continue, Link, } from 'layout/guided-tours/config-elements'; import { isNewUser, isEnabled, selectedSiteIsPreviewable, selectedSiteIsCustomizable, prev...
lib/voronoi/voronoi.js
team-parsnips/ReD3
import React from 'react'; import * as d3 from 'd3'; class Voronoi extends React.Component { constructor(props) { super(props); this.state = { voronoi: null, polygon: null, link: null, site: null, options: { 'polyFill': this.props.polyFill || 'none', } } ...
wp-content/themes/realestate/HTML/gallery/multimedia-gallery/js/jquery.min.js
nguyenthai2010/realestate
/*! jQuery v1.8.3 jquery.com | jquery.org/license */ (function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===...
client/src/components/AppContainer.js
no-stack-dub-sack/alumni-network
import Account from './dashboard/Account'; import { CatchAll } from '../App'; import Community from './dashboard/Community'; import { connect } from 'react-redux'; import GitterEmbed from './dashboard/GitterEmbed'; import Landing from './dashboard/Landing'; import Mentorship from './dashboard/Mentorship'; import { popu...
app/routes.js
csreyes/TLCJournal
import React from 'react'; import {Route} from 'react-router'; import App from './components/App'; import Journal from './components/Journal'; export default ( <Route handler={App}> <Route path='/' handler={Journal} /> </Route> );
app/containers/SignInPage/index.js
coocooooo/webapp
/** * Sign In Form * * Contain validator */ import React from 'react'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { Form } from 'semantic-ui-react'; import { inputEmail, inputPassword, pingStart } from './actions'; import...
packages/wix-style-react/src/CustomModalLayout/docs/examples/BasicExample.js
wix/wix-style-react
/* eslint-disable */ import React from 'react'; import { Checkbox } from 'wix-style-react'; class BasicExample extends React.Component { render() { return ( <CustomModalLayout primaryButtonText="Save" secondaryButtonText="Cancel" onCloseButtonClick={() => {}} title="Create N...
examples/universal/client/index.js
bottledsmoke/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import configureStore from '../common/store/configureStore'; import App from '../common/containers/App'; const initialState = window.__INITIAL_STATE__; const store = configureStore(initialState); const rootElement = do...
pages/blog/index.js
Aleyasen/DarshanVis-UI
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; export default class extends Component { render() { return ( <div> <h1>Blog</h1> <p>Coming soon....
js/overlay_core.js
volodalexey/spachat
import React from 'react' var overlay_core = function() { }; overlay_core.prototype = { __class_name: "overlay_core", toggleWaiter: function(show) { var self = this; self.waiter_outer_container = document.querySelector('[data-role="waiter_outer_container"]'); self.waiter_outer_container.classList[(s...
web/src/containers/HeaderContainer.js
jonwho/reddit-clone
import React, { Component } from 'react'; import { GREY1 } from '../styles/colors'; const styles = { header: { // border-box includes margin and padding in the box sizing width calculation // otherwise it will add margin and padding to the box and it will outgrow the viewport // which makes it scroll ...
components/BreadcrumbItem.js
hellobrian/carbon-components-react
import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; import Link from './Link'; const propTypes = { children: PropTypes.node, className: PropTypes.string, href: PropTypes.string, }; const BreadcrumbItem = ({ children, className, href, ...other }) => { const class...
aplicaciones_informaticas/frontendCentrosSalud/src/components/Statistics/Statistics.js
awainer/7539
import React, { Component } from 'react'; import { hospitalService } from '../../services'; import Dropdown from 'react-toolbox/lib/dropdown'; import { Button } from 'react-toolbox/lib/button'; var DatePicker = require('react-datepicker'); var moment = require('moment'); import 'react-datepicker/dist/react-datepicker...
src/isomorphic/classic/class/__tests__/ReactClassMixin-test.js
carlosipe/react
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @emails react-co...
src/components/Tag/Tag-story.js
wfp/ui
import React from 'react'; import { storiesOf } from '@storybook/react'; import { withKnobs, select, text } from '@storybook/addon-knobs'; import Tag, { types as typesList } from '../Tag'; import TagSkeleton from '../Tag/Tag.Skeleton'; const types = typesList.reduce( (o, type) => ({ ...o, [type]: `${type} (...
packages/react-native-renderer/src/ReactNativeComponent.js
kaushik94/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow * @format */ import type { MeasureInWindowOnSuccessCallback, MeasureLayoutOnSuccessCallback, MeasureOnSuccessCallb...
sources/js/locationForm.js
lshap/streetlivesnyc
'use strict'; import React from 'react'; import { Location } from './models.js'; import '../scss/location.scss'; import '../scss/input_field.scss'; import '../scss/button.scss'; module.exports.LocationForm = React.createClass({ getInitialState: function() { return { enableSubmit: false ...
newclient/scripts/components/user/questionnaire-summary/question-summary/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program 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, either version 3 of the Lic...
test/GithubRepository-test.js
mamal72/react-github-components
/* eslint-env mocha */ import React from 'react'; import { shallow } from 'enzyme'; import { expect } from 'chai'; import { GithubRepository } from '../'; describe('<GithubRepository />', () => { it('should render a "GithubRepository" component with username and repository', () => { const wrapper = shallow(<Gith...
src/containers/FuelSavingsPage.js
hanndbn/appDemo
import React from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import * as actions from '../actions/fuelSavingsActions'; import FuelSavingsForm from '../components/FuelSavingsForm'; export const FuelSavingsPage = (props) => { return ( ...
app/javascript/mastodon/features/home_timeline/index.js
MitarashiDango/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { expandHomeTimeline } from '../../actions/timelines'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader from '../../comp...
app/javascript/mastodon/features/ui/components/mute_modal.js
esetomo/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { injectIntl, FormattedMessage } from 'react-intl'; import Toggle from 'react-toggle'; import Button from '../../../components/button'; import { closeModal } from '../../../actions/modal'; import { muteAccount }...
ajax/libs/rxjs/2.3.12/rx.all.compat.js
CosmicWebServices/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/components/videoDetail.js
gabriellisboa/reduxStudies
import React from 'react'; const VideoDetail = ({ video }) => { if(!video) { return <div>Loading...</div> } const videoId = video.id.videoId; const url = `https://www.youtube.com/embed/${videoId}`; return ( <div className="video-detail"> <div className="embed-responsi...
ajax/libs/primereact/6.5.0-rc.2/avatar/avatar.esm.js
cdnjs/cdnjs
import React, { Component } from 'react'; import { classNames, ObjectUtils } from 'primereact/utils'; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var...
ajax/libs/angular-data/1.4.3/angular-data.js
quba/cdnjs
/** * @author Jason Dobry <jason.dobry@gmail.com> * @file angular-data.js * @version 1.4.3 - Homepage <http://angular-data.pseudobry.com/> * @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/> * @license MIT <https://github.com/jmdobry/angular-data/blob/master/LICENSE> * * @overview Data store for Angular.js....
src/config.js
duheng/Mozi
import React from 'react'; import { Platform, Image, } from 'react-native'; import StackViewStyleInterpolator from 'react-navigation-stack/src/views/StackView/StackViewStyleInterpolator'; import NavigationButton from './components/NavigationButton'; import { window, } from '../app'; import { tabBar, } from '../tab'; ...
docs/src/app/components/pages/components/Stepper/GranularControlStepper.js
manchesergit/material-ui
import React from 'react'; import { Step, Stepper, StepButton, } from 'material-ui/Stepper'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; const getStyles = () => { return { root: { width: '100%', maxWidth: 700, margin: 'auto', }...
src/snowflake.js
bartonhammond/snowflake
'use strict' /** * # snowflake * Snowflake ![snowflake](https://cloud.githubusercontent.com/assets/1282364/11599365/1a1c39d2-9a8c-11e5-8819-bc1e48b30525.png) */ /** * ## imports * */ /** * ### React * * Necessary components from ReactNative */ import React from 'react' import { AppRegistry, StyleSh...
src/applications/static-pages/events/components/Events/index.unit.spec.js
department-of-veterans-affairs/vets-website
// Node modules. import React from 'react'; import { expect } from 'chai'; import { shallow } from 'enzyme'; // Relative imports. import Results from '../Results'; import Search from '../Search'; import { Events } from '.'; describe('Events <Events>', () => { it('renders content', () => { // Set up. const wr...
src/parser/druid/restoration/modules/talents/Flourish.js
sMteX/WoWAnalyzer
import React from 'react'; import { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import StatisticBox from 'interface/others/StatisticBox'; import { formatPercentage, formatNumber } from 'common/format'; import calculateEffectiveHealing from 'parser/core/calculateEffectiveHealing'; import SpellIcon from 'comm...
packages/lore-hook-dialog/src/templates/Dialog.js
lore/lore-forms
import PropTypes from 'prop-types'; import React from 'react'; import createReactClass from 'create-react-class'; import { connect } from 'lore-hook-connect'; export default connect(function() { return {}; }, { subscribe: true })(createReactClass({ displayName: 'Dialog', propTypes: { dialog: PropTypes.node....
basicTest/js/jquery-1.11.2.min.js
720kb/TeachMusicRTC
/*! jQuery v1.11.2 | (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...
react-flux-mui/js/material-ui/src/svg-icons/social/sentiment-neutral.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSentimentNeutral = (props) => ( <SvgIcon {...props}> <path d="M9 14h6v1.5H9z"/><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 10C1...
src/js/components/_threads/filters/DoubleChoiceFilter.js
nekuno/client
/** TODO : Not used yet but useful for editing profile **/ import PropTypes from 'prop-types'; import React, { Component } from 'react'; import ThreadSelectedFilter from './ThreadSelectedFilter'; import ThreadUnselectedFilter from './ThreadUnselectedFilter'; import TextRadios from '../../ui/TextRadios'; export default...
ajax/libs/yui/3.1.1/loader/loader.js
bspaulding/cdnjs
YUI.add('loader-base', function(Y) { /** * The YUI loader core * @module loader * @submodule loader-base */ (function() { var VERSION = Y.version, CONFIG = Y.config, BUILD = '/build/', ROOT = VERSION + BUILD, CDN_BASE = Y.Env.base, GALLERY_VERSION = ...
app/javascript/mastodon/components/media_gallery.js
nonoz/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from './icon_button'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { isIOS } from '../is_mobile'; const messages = defineMessages({ toggle_...
app/components/Modal/ContainerTransitionGroup.js
acebusters/ab-web
import CSSTransitionGroup from 'react-addons-css-transition-group'; import styled from 'styled-components'; const appear = 'modal-container-appear'; const appearActive = 'modal-container-appear-active'; const appearTimeout = 200; export const ContainerTransitionGroup = styled(CSSTransitionGroup).attrs({ transitionN...
ajax/libs/material-ui/5.0.0-alpha.4/useMediaQuery/useMediaQuery.js
cdnjs/cdnjs
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = useMediaQuery; var _extends2 = _interopRequir...
ajax/libs/flocks.js/0.14.2/flocks.js
sevypannella/cdnjs
/** @jsx React.DOM */ /* jshint node: true, browser: true, newcap: false */ /** * The Flocks library module. * * @module Flocks * @main Flocks */ // if it's in a <script> it's defined already // otherwise assume commonjs if (typeof React === 'undefined') { var React = require('react'...
src/renderers/shared/reconciler/__tests__/ReactCompositeComponentDOMMinimalism-test.js
ZhouYong10/react
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @emails react-co...
docs/src/SupportPage.js
jakubsikora/react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; export default class Page extends React.Component { render() { return ( <div> <NavMain activePage="support" /> <PageHeader title="Nee...
app/javascript/mastodon/components/autosuggest_input.js
yukimochi/mastodon
import React from 'react'; import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container'; import AutosuggestEmoji from './autosuggest_emoji'; import AutosuggestHashtag from './autosuggest_hashtag'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from...
src/routes/app/routes/forms/routes/steppers/components/HonrizontalNonLinear.js
ahthamrin/kbri-admin2
import React from 'react'; import { Step, Stepper, StepButton, } from 'material-ui/Stepper'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; /** * Non-linear steppers allow users to enter a multi-step flow at any point. * * This example is similiar t...
src/svg-icons/navigation/fullscreen.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationFullscreen = (props) => ( <SvgIcon {...props}> <path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/> </SvgIcon> ); NavigationFullscreen = pure(NavigationFullscre...
src/i18n/i18n-client.js
anekpattanakij/react-redux-i18n-hot-universal-boilerplate
import i18n from 'i18next'; import XHR from 'i18next-xhr-backend'; import { LanguageDetector } from 'i18next-express-middleware'; import appConfig from 'app/config'; const options = { whitelist: appConfig.i18n.whitelist, fallbackLng: appConfig.i18n.fallback, // have a common namespace used around the full app...
src/components/ErrorArea/index.js
u-wave/web
import React from 'react'; import PropTypes from 'prop-types'; import Snackbar from '@mui/material/Snackbar'; function ErrorArea({ error, onDismiss }) { return ( <div className="ErrorArea"> <Snackbar ContentProps={{ className: 'ErrorArea-snackbar' }} open={!!error} message={error ??...
docs/src/pages/system/sizing/Values.js
callemall/material-ui
import * as React from 'react'; import Box from '@material-ui/core/Box'; export default function Values() { return ( <Box sx={{ width: '100%' }}> <Box sx={{ width: 1 / 4, bgcolor: 'grey.300', p: 1, my: 0.5 }}>Width 1/4</Box> <Box sx={{ width: 300, bgcolor: 'grey.300', p: 1, my: 0.5 }}>Width 300</Box>...
ajax/libs/yasqe/2.2.4/yasqe.bundled.min.js
bdukes/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.YASQE=e()}}(function(){var e;return function t(e,i,r)...
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Media.js
Akkuma/npm-cache-benchmark
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-ext/yui/build/container/container.js
michaelbushe/shrine-bower
/* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html version: 2.8.2r1 */ (function () { /** * Config is a utility used within an Object to allow the implementer to * maintain a list of local configuration properties and lis...
src/app/client.js
champel/react-toolbox-starter
import 'react-toolbox/lib/commons.scss'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.js'; ReactDOM.render(<App />, document.getElementById('app'));
docs/src/pages/customization/components/ClassesNesting.js
kybarg/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Button from '@material-ui/core/Button'; const useStyles = makeStyles({ root: { background: 'linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)', borderRadius: 3, border: 0, color: 'white', height: 48, paddi...
packages/material-ui-icons/src/StayCurrentPortraitRounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M17 1.01L7 1c-1.1 0-1.99.9-1.99 2v18c0 1.1.89 2 1.99 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z" /></g></React.Fragment> , ...
lib/utils/plugins.js
spncrgr/hyper
import {remote} from 'electron'; import {connect as reduxConnect} from 'react-redux'; // patching Module._load // so plugins can `require` them wihtout needing their own version // https://github.com/zeit/hyper/issues/619 import React from 'react'; import ReactDOM from 'react-dom'; import Component from '../component'...
react-components/scripts/docs/utils.js
pwcong/FrontEnd-Dev
const prettier = require('prettier'); exports.getEntryCode = (appPath, packages) => { const code = ` import React from 'react'; import ReactDOM from 'react-dom'; import { HashRouter as Router } from 'react-router-dom'; import App from '${appPath}'; const components = [ ${packages ...
packages/fyndiq-illustrations/src/search-no-result.js
fyndiq/fyndiq-ui
import React from 'react' import PropTypes from 'prop-types' import colors from 'fyndiq-styles-colors' import styles from '../illustrations.css' const SearchNoResultIllustration = ({ className }) => ( <svg viewBox="0 0 201 200" className={` ${styles.illustration} ${className} `} > <def...
client/main/components/notification/Notification.container.js
alexandarnikita/wen
import { connect } from 'react-redux'; import Notification from './Notification'; import * as module from '../../redux/modules/notifications.module'; import { NOTIFICATION_ERROR, NOTIFICATION_EVENT } from '../../core/notification.constants'; export function mapStateToProps( state, { notification: { des...
src/App.js
RVMendoza/react-es6-postcss-boilerplate
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <header className="App-header u-paddingAm u-marginBm u-flex u-flexJustifyCenter u-flexCol u-textCenter"> <img src={logo} cla...
src/modules/components/icons/Gear.js
ruebel/synth-react-redux
import React from 'react'; import PropTypes from 'prop-types'; import Icon from './Icon'; const Gear = ({ height = '24', styleName, width = '24', fill = '#4682b4' }) => { return ( <svg xmlns="http://www.w3.org/2000/svg" width={width} height={height} viewBox="0 0 24 24" className={st...
front-end/src/components/TeamColumns.js
keithb418/scrum-team-app
import React from "react"; import PropTypes from "prop-types"; import TeamColumn from "./TeamColumn"; import AddTeamColumn from "./AddTeamColumn"; const TeamColumns = ({ teams, deleteTeam, deleteTeamMember, changeTeam }) => { const teamColumns = teams.map((team) => <TeamColumn key={team._id} id={te...
src/svg-icons/action/view-headline.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewHeadline = (props) => ( <SvgIcon {...props}> <path d="M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"/> </SvgIcon> ); ActionViewHeadline = pure(ActionViewHeadline); ActionViewHeadline.d...
example/src/navigation/index.js
elarasu/roverz-chat
/** * App Navigation */ import React from 'react'; import { StatusBar, } from 'react-native'; import { Actions, Scene, ActionConst } from 'react-native-router-flux'; import { ChatNavBar, NavBarBack, RoomView, SearchRoomView, MessageImageView, ReplyMessageView, Placeholder, VideoPlayer, // NavBack...
webapp/src/main/webapp/resources/js/vendor/formsy-react-components/mixins/component.js
andrewslater/java-application-skeleton
'use strict'; var React = require('react'); module.exports = { propTypes: { layout: React.PropTypes.string }, contextTypes: { layout: React.PropTypes.string }, getDefaultProps: function getDefaultProps() { return { disabled: false, validatePristin...
ajax/libs/vis/3.3.0/vis.js
karlfreeman/cdnjs
/** * vis.js * https://github.com/almende/vis * * A dynamic, browser-based visualization library. * * @version 3.3.0 * @date 2014-08-29 * * @license * Copyright (C) 2011-2014 Almende B.V, http://almende.com * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file e...
app/components/ToolWithPullQuote/index.js
rapicastillo/beautifulrising-client
/** * * ToolWithPullQuote * */ import React from 'react'; import styled from 'styled-components'; import Markdown from 'react-markdown'; import { RouterLink } from 'utils/markdown'; import { injectIntl } from 'react-intl'; const Content = styled.div``; const Viewport = styled.div``; const PullQuote = styled.blockquote...
src/react/Checkbox.js
onap-sdc/sdc-ui
import React from 'react'; class Checkbox extends React.Component { render() { let { checked = false, disabled, value, label, inputRef, className, name } = this.props; let dataTestId = this.props['data-test-...
ajax/libs/zeroclipboard/2.0.0-beta.6/ZeroClipboard.Core.js
Showfom/cdnjs
/*! * ZeroClipboard * The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface. * Copyright (c) 2014 Jon Rohan, James M. Greene * Licensed MIT * http://zeroclipboard.org/ * v2.0.0-beta.6 */ (function(window, undefined) { "use s...
ajax/libs/muicss/0.9.36/react/mui-react.js
ahocevar/cdnjs
(function (global) { var babelHelpers = global.babelHelpers = {}; babelHelpers.classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }; babelHelpers.createClass = function () { function define...
src/parser/hunter/marksmanship/modules/talents/SerpentSting.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellLink from "common/SpellLink"; import ItemDamageDone from 'interface/others/ItemDamageDone'; import { formatPercentage } from 'common/format'; import TalentStatisticBox from 'interface/others/TalentS...
src/svg-icons/editor/short-text.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorShortText = (props) => ( <SvgIcon {...props}> <path d="M4 9h16v2H4zm0 4h10v2H4z"/> </SvgIcon> ); EditorShortText = pure(EditorShortText); EditorShortText.displayName = 'EditorShortText'; EditorShortText...
ajax/libs/material-ui/5.0.0-alpha.35/Grid/GridContext.js
cdnjs/cdnjs
import * as React from 'react'; /** * @ignore - internal component. */ const GridContext = /*#__PURE__*/React.createContext(); if (process.env.NODE_ENV !== 'production') { GridContext.displayName = 'GridContext'; } export default GridContext;
ajax/libs/highmaps/1.1.0/highmaps.src.js
F2X/cdnjs
// ==ClosureCompiler== // @compilation_level SIMPLE_OPTIMIZATIONS /** * @license Highmaps JS v1.1.0 (2015-02-16) * * (c) 2009-2014 Torstein Honsi * * License: www.highcharts.com/license */ // JSLint options: /*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clearTi...
client/src/components/svg/ModalCloseIcon.js
Wiredcraft/jekyllpro-cms
import React from 'react'; export default props => { return ( <svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg" > <path d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z" /> </svg...
packages/@lyra/components/src/labels/DefaultLabel.js
VegaPublish/vega-studio
import PropTypes from 'prop-types' import React from 'react' import styles from 'part:@lyra/components/labels/default-style' export default class DefaultLabel extends React.PureComponent { static propTypes = { className: PropTypes.string, children: PropTypes.node, level: PropTypes.number } render() {...
src/components/Link.js
lingxiao-Zhu/react-redux-demo
/** * Created by larry on 2017/1/6. */ import React from 'react'; const Link = ({active,children,onClick}) => { if(active){ return <span>{children}</span> } return( <a href="#" onClick={e=>{ e.preventDefault(); onClick(); }} > {children} </a> ) } expor...
app/react-or-core.js
biggyspender/or.js
import or from 'or-core' import React from 'react' import ReactDOM from 'react-dom' /////////////////////// react hook //////////////////////// var oconnect = (e, name) => { new or.com(() => { //this function will be called when any of render's dependencies change if (e.mounted()) { le...
www/src/containers/survey/SurveyContainer.js
cygwin255/SimpleSurvey
import React from 'react' import { connect } from 'react-redux' import Survey from 'components/survey/Survey' import * as actions from 'actions' import { editSurveySelector, editSurveyPagesCountSelector, editSurveyOptionsSelector, editSurveyPageNamesSelector } from 'reducers/surveyReducer/EditSurveyReducer' imp...
src/client.js
torresandres/reactx
/** * 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 {Provider} from 'react-redux'; imp...