path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
test/client/components/input.js
berkeley-homes/near-miss-positive-intervention
import test from 'tape' import React from 'react' import { shallow } from 'enzyme' import NameInput from '../../../src/client/components/input.js' test('Name input component includes input', t => { let valueSet let value = 'value' let label = 'label' let onChange = () => { valueSet = newValue } const w...
yycomponent/menu/Menu.js
77ircloud/yycomponent
import React from 'react'; import { Menu as _Menu } from 'antd'; class Menu extends React.Component{ constructor(props){ super(props); } render(){ return (<_Menu {...this.props}/>); } } Menu.Divider = _Menu.Divider; Menu.Item = _Menu.Item; Menu.SubMenu = _Menu.SubMenu; Menu.ItemGroup = _Menu.ItemGroup...
packages/cookbook/src/examples/sdf1/index.source.js
gre/gl-react
module.exports=`//@flow import React from "react"; import { Shaders, Node, GLSL } from "gl-react"; import { Surface } from "gl-react-dom"; import timeLoop from "../../HOC/timeLoop"; const shaders = Shaders.create({ sdf1: { frag: GLSL\`#version 300 es precision highp float; in vec2 uv; out vec4 fragColor; uniform...
app/containers/Calendar/Table.js
zebbra-repos/Zeiterfassung-medi
import React from 'react'; import PropTypes from 'prop-types'; import MomentPropTypes from 'react-moment-proptypes'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import moment from 'moment'; import { fromJS } from 'immutable'; import { makeSelectTracks, makeSelectElements...
app/assets/scripts/components/modal-download/project-selector.js
openaq/openaq.org
'use strict'; import React from 'react'; import { PropTypes as T } from 'prop-types'; import c from 'classnames'; export default function ProjectSelector(props) { const { countries, fetching, fetched, datasets, projCountry, projDataset, onOptSelect, } = props; const datasetLabel = fe...
local-cli/templates/HelloWorld/App.js
Bhullnatik/react-native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { Platform, StyleSheet, Text, View } from 'react-native'; const instructions = Platform.select({ ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu', and...
frontend/app/blog/components/ArticlesLayout/ArticlesLayout.js
briancappello/flask-react-spa
import React from 'react' import classnames from 'classnames' import { PageContent } from 'components' import { CONTENT_TOP } from 'constants.js' import { ALL } from 'blog/constants' import CategoryList from '../CategoryList' import TagList from '../TagList' import './articles-layout.scss' export default class Ar...
ajax/libs/react-dom/18.0.0-rc.0-next-4de99b3ca-20220221/cjs/react-dom-server-legacy.node.development.js
cdnjs/cdnjs
/** * @license React * react-dom-server-legacy.node.development.js * * 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. */ 'use strict'; if (process.env.NODE_ENV !== "production") { ...
app/javascript/mastodon/features/ui/components/embed_modal.js
clworld/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { FormattedMessage, injectIntl } from 'react-intl'; import api from '../../../api'; export default @injectIntl class EmbedModal extends ImmutablePureComponent { static propTypes...
ajax/libs/rxjs/2.3.10/rx.all.compat.js
svvitale/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/web/forms/fields/__tests__/TextArea-test.js
asha-nepal/AshaFusionCross
/** * Copyright 2018 Yuichiro Tsuchiya * * 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 agr...
information/blendle-frontend-react-source/app/modules/premiumSignup/components/Progress/index.js
BramscoChill/BlendleParser
import React from 'react'; import { object } from 'prop-types'; import ExperimentsStore from 'stores/ExperimentsStore'; import { DeeplinkOnboardingSkipProviderStep, DeeplinkOnboardingSkipProviderStepSkipStep, } from 'config/runningExperiments'; import { assignedExperimentVariant } from 'helpers/experiments'; impor...
src/components/app.js
benjaminboruff/CityWeather
import React, { Component } from 'react'; import SearchBar from '../containers/search_bar'; import WeatherList from '../containers/weather_list'; export default class App extends Component { render() { return ( <div> <SearchBar /> <WeatherList /> </div> ); } }
src/components/hocs/withRoleFilter.js
Portgass/prototype-orders
import React from 'react' import { connect } from 'react-redux' import { intersection } from 'ramda' /** * Shows component if user is in group * * @param {React.Component} WrappedComponent * @param {{ showOn: string[] | string, fallback: React.Component }} options * @returns {React.Component} */ const withRoleF...
src/interface/others/ItemDamageTaken.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { formatNumber, formatPercentage } from 'common/format'; class ItemDamageTaken extends React.PureComponent { static propTypes = { amount: PropTypes.number.isRequired, approximate: PropTypes.bool, }; static contextTypes = { parser: ...
public/js/components/products/ProductCreate.js
novirael/administration-poc
import React from 'react'; import { connect } from 'react-redux'; import { Grid, PageHeader, Form } from 'react-bootstrap'; import BaseLayout from '../BaseLayout'; import ProductForm from './ProductForm'; import { createProduct } from '../../actions/productActions'; @connect((store) => ({ productForm: store.fo...
src/components/BlogHeader.js
planningFor/react-build
import React, { Component } from 'react'; require('../css/BlogHeader.scss'); /** * App component is top component of all. */ const BlogHeader = () => ( <header className="blog-header"> <h2>关于我的博客</h2> <div className="blog-header-img"> </div> <p>这个个人博客,主要目的是记录自己平时学习当中所遇到的一些问题。把这些问...
src/components/conversation/MessageList/MessageList.js
rlesniak/tind3r.com
// @flow import React, { Component } from 'react'; import { observer, inject } from 'mobx-react'; import { last } from 'lodash'; import moment from 'moment'; import MessageStore from 'stores/MessageStore'; import Person from 'models/Person'; import { CurrentUser } from 'models/CurrentUser'; import Message from '../Me...
src/components/jeet/plain-wordmark/JeetPlainWordmark.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './JeetPlainWordmark.svg' /** JeetPlainWordmark */ function JeetPlainWordmark({ width, height, className }) { return ( <SVGDeviconInline className={'JeetPlainWordmar...
src/containers/Post.js
Seeingu/medium-demo
/* 写文章 */ import React, { Component } from 'react'; import styled from 'styled-components'; import { MainContainer, PrimaryButton, media, RootContainer, TextArea } from '../styles'; import Header from '../components/Header'; import { Redirect } from 'react-router'; import { connect } from 're...
examples/sections/src/components/Placeholder/Placeholder.js
bluetidepro/react-styleguidist
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import './Placeholder.css'; /** * Image placeholders. * * @example ./Example.md */ export default class Placeholder extends Component { static propTypes = { type: PropTypes.oneOf([ 'animal', 'bacon', 'beard', 'bear', '...
web/src/RechargeRecord.js
Novemser/InMemoryTelecomService
/** * Created by kevin on 12/11/2016. */ import React from 'react'; import {Table, TableBody, TableFooter, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table'; import FlatButton from 'material-ui/FlatButton'; const tableData_1 = [ { money: '100元', time: '2016/12...
ajax/libs/forerunnerdb/1.4.21/fdb-core.js
froala/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...
test/NavItemSpec.js
xsistens/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import NavItem from '../src/NavItem'; describe('NavItem', function () { it('Should add active class', function () { let instance = ReactTestUtils.renderIntoDocument( <NavItem active={true}> Item content </NavIte...
ajax/libs/forerunnerdb/1.3.395/fdb-core.min.js
sreym/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...
src/svg-icons/image/control-point.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageControlPoint = (props) => ( <SvgIcon {...props}> <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-...
examples/sections/src/components/Button/Button.js
styleguidist/react-styleguidist
import React from 'react'; import PropTypes from 'prop-types'; import './Button.css'; /** * The only true button. */ export default function Button({ color, size, children }) { const styles = { color, fontSize: Button.sizes[size], }; return ( <button className="button" style={styles}> {children} </bu...
public/assets/application-ad0a7c7d0de16be638aef1a3a8cfb588.js
lirontz/Zimmerman
/*! * jQuery JavaScript Library v1.7.1 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
ajax/libs/jquery.fancytree/2.5.1-0/jquery.fancytree.min.js
emijrp/cdnjs
/*! * jquery.fancytree.js * Dynamic tree view control, with support for lazy loading of branches. * https://github.com/mar10/fancytree/ * * Copyright (c) 2006-2014, Martin Wendt (http://wwWendt.de) * Released under the MIT license * https://github.com/mar10/fancytree/wiki/LicenseInfo * * @version 2.5.0 * @dat...
client/node_modules/react-router/es6/IndexRedirect.js
ronniehedrick/scapeshift
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import Redirect from './Redirect'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var object = _React$PropTypes.object; /** * An <IndexRedir...
node_modules/native-base/__tests__/basic/Button.ios.js
tausifmuzaffar/bisApp
import 'react-native'; import renderer from 'react-test-renderer'; import React from 'react'; import { Button } from './../../src/basic/Button'; // import Icon from '../../../Components/Widgets/Icon'; // Note: test renderer must be required after react-native. jest.mock('Platform', () => { const Platform = requi...
ajax/libs/pdf.js/2.0.345/pdf.js
holtkamp/cdnjs
/** * @licstart The following is the entire license notice for the * Javascript code in this page * * Copyright 2017 Mozilla Foundation * * 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...
src/components/search-bar.component.ios.js
Antoine38660/git-point
import React from 'react'; import RNSearchBar from 'react-native-search-bar'; type Props = { textColor?: string, textFieldBackgroundColor?: string, showsCancelButton?: boolean, placeholder?: string, onFocus: Function, onCancelButtonPress: Function, onSearchButtonPress: Function, }; export const SearchBa...
ajax/libs/react-virtualized/4.6.2/react-virtualized.min.js
jdh8/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports["react-virtualized"]=t(require("react")):e["react-virtualized"]=t(e.React)}(this,function(e){return function(e){function t(r){if(...
ajax/libs/forerunnerdb/1.3.656/fdb-core+views.min.js
tonytomov/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...
pages/about.js
trungtin/staticPage
/** * 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>About Us</h1> <p>Coming s...
src/components/pages/Account/Login.js
ESTEBANMURUZABAL/my-ecommerce-template
/** * Imports. */ import React from 'react'; import connectToStores from 'fluxible-addons-react/connectToStores'; import {FormattedMessage} from 'react-intl'; import {Link} from 'react-router'; // Flux import AccountStore from '../../../stores/Account/AccountStore'; import CartStore from '../../../stores/Cart/CartSt...
vendor/htmlburger/carbon-fields/assets/js/fields/components/color/index.js
FolsomCreative/storynav
/** * The external dependencies. */ import React from 'react'; import PropTypes from 'prop-types'; import { compose, withHandlers, withState, setStatic } from 'recompose'; /** * The internal dependencies. */ import Field from 'fields/components/field'; import Colorpicker from 'fields/components/color/picker'; ...
ajax/libs/rxjs/2.3.6/rx.lite.extras.js
x112358/cdnjs
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. ;(function (factory) { var objectTypes = { 'boolean': false, 'function': true, 'object': true, 'number': false, 'string': false, ...
node_modules/jsx-loader/node_modules/react-tools/src/browser/server/ReactMarkupChecksum.js
zenners/Stash-Roulette
/** * Copyright 2013-2014, 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. * * @providesModule ...
ajax/libs/jquery.fancytree/2.7.0/jquery.fancytree.min.js
narikei/cdnjs
/*! * jquery.fancytree.js * Dynamic tree view control, with support for lazy loading of branches. * https://github.com/mar10/fancytree/ * * Copyright (c) 2006-2014, Martin Wendt (http://wwWendt.de) * Released under the MIT license * https://github.com/mar10/fancytree/wiki/LicenseInfo * * @version 2.7.0 * @dat...
react-flux-mui/js/material-ui/src/svg-icons/editor/linear-scale.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorLinearScale = (props) => ( <SvgIcon {...props}> <path d="M19.5 9.5c-1.03 0-1.9.62-2.29 1.5h-2.92c-.39-.88-1.26-1.5-2.29-1.5s-1.9.62-2.29 1.5H6.79c-.39-.88-1.26-1.5-2.29-1.5C3.12 9.5 2 10.62 2 12s1.12 2.5 ...
src/components/exercises/missing-text.component.js
serlo-org/serlo-abc
import { addIndex, indexOf, map } from 'ramda'; import React from 'react'; import { View, Text } from 'react-native'; import { DEFAULT } from '../../styles/text'; import WordImageWithSounds from '../common/WordImageWithSounds'; import TextPicker from '../common/TextPicker'; import Video from '../common/Video'; import ...
test/components/ListContainer.spec.js
martinkwan/HNGRY
import React from 'react'; import { shallow } from 'enzyme'; import ListContainer from '../../src/components/listContainer'; describe('(Component) ListContainer', () => { let wrapper; beforeEach(() => { wrapper = shallow(<ListContainer />); }); it('renders self successfully', () => { expect(wrapper).to...
.eslintrc.js
casavi/react-region-select
module.exports = { "env": { "browser": true, "es6": true, "commonjs": true }, "extends": ["eslint:recommended", "plugin:react/recommended"], "parserOptions": { "ecmaFeatures": { "experimentalObjectRestSpread": true, "jsx": true }, "sourceType": "module" }, "plugins": [ "react" ], "rules": { ...
packages/material-ui-icons/src/Timer3.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0zm0 0h24v24H0z" /><path d="M11.61 12.97c-.16-.24-.36-.46-.62-.65-.25-.19-.56-.35-.93-.48.3-.14.57-.3.8-.5.23-.2.42-.41.57-.64.15-.23.27-.46.34-.71.08-.24.11-.49...
src/components/icons/LaunchIcon.js
austinknight/ui-components
import React from 'react'; const LaunchIcon = props => ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24"> {props.title && <title>{props.title}</title>} <path d="M0 0h24v24H0z" fill="none" /> <path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-....
client/src/pages/portfolio/investmentForm/UnitsField.js
Antholimere/FyctoView
import React from 'react' import TextField from 'material-ui/TextField'; class renderUnitsField extends React.Component { render() { const { input, meta: {touched, error} } = this.props return( <div> <TextField {...input} id="number" label="Units"...
js/app.js
sogko/relay-starter-kit
import 'babel/polyfill'; import App from './components/App'; import AppHomeRoute from './routes/AppHomeRoute'; import React from 'react'; import ReactDOM from 'react-dom'; import Relay from 'react-relay'; ReactDOM.render( <Relay.RootContainer Component={App} route={new AppHomeRoute()} />, document.getEl...
test/CardTitleSpec.js
mattBlackDesign/react-materialize
/* global describe, it */ import React from 'react'; import { shallow } from 'enzyme'; import { assert } from 'chai'; import CardTitle from '../src/CardTitle'; let wrapper = shallow( <CardTitle image=''> I am a very simple card </CardTitle> ); describe('<CardTitle />', () => { it('should render', () => { ...
tools/lib/fetch.js
ihnat/work-hard
/** * React Starter Kit (http://www.reactstarterkit.com/) * * Copyright © 2014-2015 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 http from 'http'; export default async (url) => new...
src/components/EventTable.js
branchology/branchology
import React from 'react'; import NoRecords from './NoRecords'; const EventTable = ({events, title = 'Events'}) => ( <div> <div className="box box-info"> <div className="box-header with-border"> <h3 className="box-title"> <i className="fa fa-calendar" /> {title} </h3> &nbs...
packages/material-ui-icons/src/WavesRounded.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M17 16.99c-1.35 0-2.2.42-2.95.8-.65.33-1.18.6-2.05.6-.9 0-1.4-.25-2.05-.6-.75-.38-1.57-.8-2.95-.8s-2.2.42-2.95.8c-.43.22-.81.41-1.27.52-.45.1-.78.46-.78.91v.1c0 .6.56 1.03 1.14.91.74-.15 1.3-.43 1.81-...
ajax/libs/yui/3.17.1/event-custom-base/event-custom-base-debug.js
ruiaraujo/cdnjs
/* YUI 3.17.1 (build 0eb5a52) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('event-custom-base', function (Y, NAME) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.En...
ajax/libs/jQuery-Validation-Engine/2.6.2/jquery-1.8.2.min.js
gf3/cdnjs
/*! jQuery v1.8.2 jquery.com | jquery.org/license */ (function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==...
examples/search-highlighting/index.js
6174/slate
import { Editor } from 'slate-react' import { State } from 'slate' import React from 'react' import initialState from './state.json' /** * Define a schema. * * @type {Object} */ const schema = { marks: { highlight: { backgroundColor: '#ffeeba' } } } /** * The rich text example. * * @type {...
app/app.js
hieubq90/react-boilerplate-3.4.0
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
src/routes/Dashboard/components/Annotator/Annotator.js
imrenagi/rojak-web-frontend
import React from 'react' import { Icon, Table, Button } from 'semantic-ui-react' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import * as Actions from './../../actions' import { withRouter } from 'react-router-dom' import AnnotatorModal from './../AnnotationModal' class Annotator ...
app/javascript/mastodon/features/ui/components/video_modal.js
alarky/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ExtendedVideoPlayer from '../../../components/extended_video_player'; import { defineMessages, injectIntl } from 'react-intl'; import IconButton from '../../../components/icon_button'; impor...
ajax/libs/flocks.js/0.14.2/flocks.min.js
steadiest/cdnjs
if("undefined"==typeof React)var React=require("react");!function(){"use strict";function j(a,b){"string"==typeof a?s(a,["warn","debug","error","log","info","exception","assert"])?console[a]("Flocks2 ["+a+"] "+b.toString()):console.log("Flocks2 [Unknown level] "+b.toString()):void 0===h.flocks_config?console.log("Flock...
ee/app/engagement-dashboard/client/components/data/CounterSet.js
subesokun/Rocket.Chat
import { Grid } from '@rocket.chat/fuselage'; import React from 'react'; import { Counter } from './Counter'; export function CounterSet({ counters = [] }) { return <Grid> {counters.map(({ count, variation, description }, i) => <Grid.Item key={i}> <Counter count={count} variation={variation} descrip...
src/@ui/HorizontalTileFeed/TileFeed.tests.js
NewSpring/Apollos
import React from 'react'; import renderer from 'react-test-renderer'; import Providers from '@ui/TestProviders'; import TileFeed from './'; describe('The TileFeed component', () => { it('renders correctly', () => { const tree = renderer.create( <Providers> <TileFeed content={[ ...
src/message/headers/StreamMessageHeader.js
saketkumar95/zulip-mobile
import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import { Touchable } from '../../common'; import TopicMessageHeader from './TopicMessageHeader'; import { streamNarrow } from '../../utils/narrow'; import { foregroundColorFromBackground } from '../../utils/color'; import StreamIcon from...
src/components/article/Audio.js
garfieldduck/twreporter-react
/* eslint no-unused-vars:0 */ 'use strict' import { Image } from './Image' import { replaceStorageUrlPrefix } from '../../utils/index' import CircleProgressButton from './CircleProgressButton' import CSSTransitionGroup from 'react-addons-css-transition-group' import Player from 'react-howler' import React from 'react' ...
src/svg-icons/maps/satellite.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsSatellite = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.99h3C8 6.65 6.66 8 5 8V4.99zM5 12v-2c2.76 0 5-2.25 5-5.01h2C12 8.86 8....
test/integration/prerender-legacy/pages/blog/[post].js
zeit/next.js
import React from 'react' export async function unstable_getStaticParams() { return ['/blog/post-1'] } export async function getStaticProps({ params }) { return { props: { post: params.post, time: (await import('perf_hooks')).performance.now(), }, } } export default () => { return <div />...
src/svg-icons/content/mail.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentMail = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/> </SvgIcon> ); ContentMail = pure(Conte...
src/modules/xman/components/FlightList/ActionButtons/McsModeButtons.js
devteamreims/4me.react
import React, { Component } from 'react'; import { connect } from 'react-redux'; import McsButton from './McsButton'; import UndoButton from './UndoButton'; class McsModeButtons extends Component { handleMcs = (event) => { // eslint-disable-line no-unused-vars const { readOnly, setMcs, minimu...
packages/@vega/components/src/views/ArticleMetaRow.js
VegaPublish/vega-studio
import PropTypes from 'prop-types' import React from 'react' import styles from './styles/ArticleMetaRow.css' export default class ArticleMetaRow extends React.Component { static propTypes = { title: PropTypes.string, children: PropTypes.node } state = { isOpen: true } handleTitleClick = () => ...
client/src/components/UsedOnTable/tests/UsedOnTable-test.js
silverstripe/silverstripe-admin
/* global jest, describe, beforeEach, it, expect */ import React from 'react'; import ReactTestUtils from 'react-dom/test-utils'; import { Component as UsedOnTable } from '../UsedOnTable'; import provideUsedOnData from '../provideUsedOnData'; describe('UsedOnTable', () => { let props = null; describe('provideUsed...
Paths/React/05.Building Scalable React Apps/6-react-boilerplate-building-scalable-apps-m6-exercise-files/Before/app/containers/HomePage/index.js
phiratio/Pluralsight-materials
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a neccessity for you then you can refactor it and remove * the ...
js/jqwidgets/demos/react/app/chart/customdrawing/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxChart from '../../../jqwidgets-react/react_jqxchart.js'; class App extends React.Component { transformPath(path, wScale, hScale, xOffset, yOffset) { let output = ''; for (let i = 0; i < path.length; i++) { if (path[...
dac/ui/src/pages/HomePage/components/forms/FormatForms/XLSFormatForm.js
dremio/dremio-oss
/* * Copyright (C) 2017-2019 Dremio Corporation * * 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 l...
dist/1.10.2/jquery-ajax-offset.min.js
michael829/jquery-builder
/*! jQuery v1.10.2 -ajax,-ajax/script,-ajax/jsonp,-ajax/xhr,-offset | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */ (function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2 -ajax,-ajax/script,-ajax/jsonp,-aj...
paraviewweb/src/React/Widgets/SelectionEditorWidget/rule/index.js
CordyChen/VisMechan
import React from 'react'; import RuleRender from './RuleRender'; import SelectionBuilder from '../../../../Common/Misc/SelectionBuilder'; function extractMaxDepth(rule, currentDepth) { if (!rule || !rule.terms || rule.terms.length === 0) { return currentDepth; } const ruleSelector = rule.type; if (ruleS...
ui-centric-question(react)/node_modules/react-router/es6/IndexRoute.js
foobearer/code-challenge
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { component, components, falsy } from './InternalPropTypes'; var func = React.PropTypes.func; /** * An <IndexRoute> i...
src/mask.js
jaketrent/react-social-icons
import PropTypes from 'prop-types' import React from 'react' import { colorFor, maskFor } from './networks.js' import { socialSvgMask } from './styles.js' function getStyle({ bgColor, networkKey }) { return { ...socialSvgMask, fill: bgColor || colorFor(networkKey) } } function Mask({ bgColor, networkKey,...
sites/all/modules/jquery_update/replace/jquery/1.7/jquery.js
Alexabr23/bomberos120
/*! * jQuery JavaScript Library v1.7.1 * http://jquery.com/ * * Copyright 2011, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2011, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
vendor/yiisoft/yii2/assets/yii.gridView.js
Jaaviieer/PrograWeb
/** * Yii GridView widget. * * This is the JavaScript widget used by the yii\grid\GridView widget. * * @link http://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license http://www.yiiframework.com/license/ * @author Qiang Xue <qiang.xue@gmail.com> * @since 2.0 */ (function ($) { ...
src/ui/pages/boards/List.js
dhruv-kumar-jha/productivity-frontend
'use strict'; import React, { Component } from 'react'; import { Link, browserHistory } from 'react-router'; import { FormattedMessage } from 'react-intl'; import translate from 'app/global/helper/translate'; import { graphql } from 'react-apollo'; import UpdateListMutation from 'app/graphql/mutations/lists/Update'; ...
src/web/forms/fields/TextUnitInput/index.js
asha-nepal/AshaFusionCross
/** * Copyright 2017 Yuichiro Tsuchiya * * 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 agr...
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js
tikotzky/react-router
import React from 'react'; import { Link } from 'react-router'; class Sidebar extends React.Component { //static loadProps (params, cb) { //cb(null, { //assignments: COURSES[params.courseId].assignments //}); //} render () { //var { assignments } = this.props; var assignments = COURSES[th...
client/extensions/woocommerce/components/form-location-select/countries.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { localize } from 'i18n-calypso'; import { bindActionCreators } from 'redux'; /** * Internal dependencies */ import { areLocationsLoaded, get...
src/App.js
sjchmiela/inspirowani.pl
import React from 'react'; import LogoSection from './sections/LogoSection/LogoSection'; import IntroductionSection from './sections/IntroductionSection/IntroductionSection'; import VideoSection from './sections/VideoSection/VideoSection'; import AboutSection from './sections/AboutSection/AboutSection'; import Calasanz...
ajax/libs/phaser/2.0.5/custom/p2.js
Ryuno-Ki/cdnjs
/** * The MIT License (MIT) * * Copyright (c) 2013 p2.js authors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to ...
ajax/libs/react/0.12.0-rc1/react-with-addons.js
emmy41124/cdnjs
/** * React (with addons) v0.12.0-rc1 */ !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.React=e()}...
flow-typed/npm/babel-preset-react_vx.x.x.js
jedwards1211/react-transition-context
// flow-typed signature: 9ff7f1607d2c164ea030e1a91be8c0e7 // flow-typed version: <<STUB>>/babel-preset-react_v^6.5.0/flow_v0.56.0 /** * This is an autogenerated libdef stub for: * * 'babel-preset-react' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share you...
RN/reactjs/reactjs-demo/demo/function-component.js
puyanLiu/LPYFramework
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import './index.css'; /** * 函数式组件 * 一个函数就是一个组件,函数式组件只能接受props而无法像类组件一样可以在constructor里面初始化state * 函数式组件就是一种只能接受props和提供render方法的类组件 * * @param {*} props */ const HelloWorld = (props) => { const sayHi = (event) => alert("Hello World");...
src/components/Player/components/Volume/volume-on-icon.js
spb-frontend/spb-frontend.ru
import React from 'react' export default () => ( <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 286.374 286.374' enableBackground='new 0 0 286.374 286.374'> <path d='M233.636 26.767l-33.372 28.5c25.659 21.07 42.006 52.616 42.006 87.92 0 35.305-16.347 66.851-42.006 87.921l33.372 28.499c32.3...
client/containers/Utils/Search.js
Mignon-han/issue-processing
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { invalidateIssue, } from '../../actions/issue'; import Search from '../../components/Utils/Search'; const mapDispatchToProps = (dispatch) => ({ invalidateIssue: (value) => dispatch(invalidateIssue(value)) }); const mapStateToPro...
ajax/libs/yui/3.8.0/datatable-core/datatable-core-debug.js
pwnall/cdnjs
YUI.add('datatable-core', function (Y, NAME) { /** The core implementation of the `DataTable` and `DataTable.Base` Widgets. @module datatable @submodule datatable-core @since 3.5.0 **/ var INVALID = Y.Attribute.INVALID_VALUE, Lang = Y.Lang, isFunction = Lang.isFunction, isObject = Lang.isO...
storybook/stories/CenterView/index.js
timLoewel/sites
import React from 'react'; import { View } from 'react-native'; import style from './style'; export default function CenterView(props) { return ( <View style={style.main}> {props.children} </View> ); }
app/javascript/mastodon/features/compose/index.js
RobertRence/Mastodon
import React from 'react'; import ComposeFormContainer from './containers/compose_form_container'; import NavigationContainer from './containers/navigation_container'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import { mountCom...
src/js/components/icons/base/PlatformSafariOption.js
odedre/grommet-final
/** * @description PlatformSafariOption SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.text...
packages/material-ui-icons/src/PowerSettingsNewSharp.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M13 3h-2v10h2V3zm4.83 2.17l-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9....
docs/server.js
yickli/react-bootstrap
import 'colors'; import React from 'react'; import express from 'express'; import path from 'path'; import Router from 'react-router'; import routes from './src/Routes'; import httpProxy from 'http-proxy'; import metadata from './generate-metadata'; import ip from 'ip'; const development = process.env.NODE_ENV !== 'p...
src/Main/Status/WclApiRequests.js
hasseboulen/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import Chart from './Chart'; class WclApiRequests extends React.PureComponent { static propTypes = { history: PropTypes.array, timeSpanMinutes: PropTypes.number.isRequired, }; render() { const { history, timeSpanMinutes } = this.props; ...
lib/components/split-pane.js
stefanivic/hyper
/* eslint-disable quote-props */ import React from 'react'; import Component from '../component'; export default class SplitPane extends Component { constructor(props) { super(props); this.handleDragStart = this.handleDragStart.bind(this); this.onDrag = this.onDrag.bind(this); this.onDragEnd = this....
ajax/libs/material-ui/5.0.0-alpha.10/esm/Tooltip/Tooltip.min.js
cdnjs/cdnjs
import _extends from"@babel/runtime/helpers/esm/extends";import _slicedToArray from"@babel/runtime/helpers/esm/slicedToArray";import _objectWithoutProperties from"@babel/runtime/helpers/esm/objectWithoutProperties";import _defineProperty from"@babel/runtime/helpers/esm/defineProperty";import*as React from"react";import...
packages/react-server-website/components/homepage-body.js
szhou8813/react-server
import React from 'react'; // import {Component} from 'react'; import Markdown from './Markdown'; import GetStartedSection from './content/HomeGetStartedSection.md'; import WhySection from './content/HomeWhySection.md'; import ContributingSection from './content/HomeContributingSection.md'; import {Link} from "react-se...