path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
docs/app/Examples/elements/Loader/Types/TextProp.js
jcarbo/stardust
import React from 'react' import { Loader, Image, Segment } from 'stardust' // TODO: Update <Dimmer> usage after its update to v1 API const Text = () => ( <div> <Segment> <div className='ui active dimmer'> <Loader text='Loading' /> </div> <Image src='http://semantic-ui.com/images/wire...
src/components/common/Icon.js
mark4carter/react-hrtbus
import React from 'react' import Radium from 'radium' class Icon extends React.Component { render() { let height = this.props.height || '48px', width = this.props.width || '48px', source = this.props.source return ( <img src={`${source}.png`} width={width} height={height} /> ); ...
examples/js/column-filter/select-filter-with-sort.js
rolandsusans/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; const qualityType = { 0: 'good', 1: 'bad', 2: 'unknown' }; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) ...
pages/settings.js
turntwogg/final-round
import React from 'react'; import Page from '../components/Page'; import PageHeader from '../components/PageHeader'; import PageContent from '../components/PageContent'; import SettingsForm from '../components/SettingsForm'; import withAuth from '../utils/withAuth'; const Settings = ({ user }) => ( <Page name="set...
packages/react-scripts/fixtures/kitchensink/src/features/env/FileEnvVariables.js
amido/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; export default () => ( <span> <span id="feature-file-env-original-1"> {process.env.REACT_APP_ORI...
components/NavBarIcons.js
cleaskitchen/cleaskitchen.github.io
import React from 'react'; import SvgIcon from 'material-ui/SvgIcon'; const Instagram = (props) => ( <a href ="https://www.instagram.com/cleaz_kitchen/"> <SvgIcon {...props}> <path d="M16 2.881c4.275 0 4.781 0.019 6.462 0.094 1.563 0.069 2.406 0.331 2.969 0.55 0.744 0.288 1.281 0.638 1.837 1.1...
packages/material-ui-icons/src/LocalLibraryRounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M12 11.55c-1.82-1.7-4.12-2.89-6.68-3.35C4.11 7.99 3 8.95 3 10.18v6.24c0 1.68.72 2.56 1.71 2.69 2.5.32 4.77 1.35 6.63 2.87.35.29.92.32 1.27.04 1....
site/src/styles/H2.js
appbaseio/reactivesearch
import React from 'react'; import { H2 } from '@appbaseio/designkit'; export default ({ children, ...props }) => ( <H2 fontSize="2rem" lineHeight="2.4rem" {...props}> {children} </H2> );
pootle/static/js/auth/components/SignInForm.js
translate/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import assign from 'object-assign'; import React from 'rea...
test/integration/client-navigation/pages/instance-get-initial-props.js
zeit/next.js
import React from 'react' export default class InstanceInitialPropsPage extends React.Component { async getInitialProps() { return fetchData() } render() { return <p>{this.props.name}</p> } } function fetchData() { const p = new Promise((resolve) => { setTimeout(() => resolve({ name: 'Anderson ...
src/svg-icons/social/share.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialShare = (props) => ( <SvgIcon {...props}> <path d="M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0...
new-lamassu-admin/src/pages/Authentication/Login.js
lamassu/lamassu-server
import { makeStyles, Grid } from '@material-ui/core' import React from 'react' import LoginCard from './LoginCard' import styles from './shared.styles' const useStyles = makeStyles(styles) const Login = () => { const classes = useStyles() return ( <Grid container spacing={0} direction="col...
definitions/npm/react-splitter-layout_v4.x.x/test_splitter-layout.js
flowtype/flow-typed
import { describe, it } from 'flow-typed-test'; import React from 'react'; import SplitterLayout from 'react-splitter-layout'; import 'react-splitter-layout/lib/index.css'; it('checks it takes at least 1 pane', () => { /* react-splitter-layout accepts several children but will render only the * first 2. When ther...
5.3.6/webpack/prod.config.js
erikras/redux-form-docs
// Webpack config for creating the production bundle. var path = require('path') var webpack = require('webpack') var CleanPlugin = require('clean-webpack-plugin') var ExtractTextPlugin = require('extract-text-webpack-plugin') var strip = require('strip-loader') var relativeAssetsPath = '../dist' var assetsPath = path...
src/modules/misc/button/Button.js
gmmendezp/portfolio
import React, { Component } from 'react' import PropTypes from 'prop-types' import { style } from 'typestyle' import { CSS } from '../../../constants' export class Button extends Component { classNames = { base: style({ display: 'block', height: '34px', width: '100%', margin: '1px 0', ...
ajax/libs/analytics.js/2.0.1/analytics.min.js
ripple0328/cdnjs
(function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[name])return cache[name].exports;if(modules[name])return call(name,require);throw new Error('cannot find module "'+name+'"')}function call(id,require){var m=cache[id]={exports:{}};var mod=modules[id];var n...
src/Popup.js
Incubity/react-big-calendar
import React from 'react'; import getOffset from 'dom-helpers/query/offset'; import getScrollTop from 'dom-helpers/query/scrollTop'; import getScrollLeft from 'dom-helpers/query/scrollLeft'; import EventCell from './EventCell'; import { isSelected } from './utils/selection'; import localizer from './localizer'; import...
frontend/src/Settings/DownloadClients/DownloadClients/AddDownloadClientModalContent.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Alert from 'Components/Alert'; import FieldSet from 'Components/FieldSet'; import Button from 'Components/Link/Button'; import LoadingIndicator from 'Components/Loading/LoadingIndicator'; import ModalBody from 'Components/Modal/ModalBo...
index.ios.js
feedreaderco/app
import React, { Component } from 'react'; import { AppRegistry, Linking, } from 'react-native'; import App from './components/app'; import ShareExtension from './share-extension.ios'; export default class FeedReader extends Component { componentDidMount() { Linking.addEventListener('url', this._handleOpenURL...
node_modules/react-dom/dist/react-dom.js
unkaveh/cdc-frontend
/** * ReactDOM v15.6.1 */ ;(function(f) { // CommonJS if (typeof exports === "object" && typeof module !== "undefined") { module.exports = f(require('react')); // RequireJS } else if (typeof define === "function" && define.amd) { define(['react'], f); // <script> } else { var g; if (...
ajax/libs/instantsearch.js/0.14.9/instantsearch.min.js
kiwi89/cdnjs
/*! instantsearch.js 0.14.9 | © Algolia Inc. and other contributors; Licensed MIT | 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.instantse...
CompositeUi/src/views/component/Search.js
kreta/kreta
/* * This file is part of the Kreta package. * * (c) Beñat Espiña <benatespina@gmail.com> * (c) Gorka Laucirica <gorka.lauzirika@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import React from 'react'; import {connec...
src/Tooltip.js
collinwu/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; const Tooltip = React.createClass({ mixins: [BootstrapMixin], propTypes: { /** * An html id attribute, necessary for accessibility * @...
ajax/libs/places.js/0.23.0/places.js
dakshshah96/cdnjs
/*! places 0.23.0 | © Algolia | github.com/algolia/places */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'o...
ajax/libs/rxjs/2.4.10/rx.lite.js
alexmojaki/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 }; ...
test/containers_test/form.js
aichbauer/redux-valid-form
import test from 'ava'; import React from 'react'; import { shallow, mount } from 'enzyme'; import { Provider } from 'react-redux'; import { applyMiddleware, createStore, combineReducers, } from 'redux'; import configureMockStore from 'redux-mock-store'; import ReduxThunk from 'redux-thunk'; import setup from '....
poc/src/js/components/App.js
clplain/poc
/* eslint max-len: 0 */ import React from 'react'; import { LinkContainer } from 'react-router-bootstrap'; // import 'bootstrap/dist/css/bootstrap.css'; import '../../../css/toastr.css'; import '../../../css/react-bootstrap-table.css'; // import 'jquery'; // import 'bootstrap'; import { Navbar, Nav, NavItem, Gr...
ajax/libs/yui/3.17.2/scrollview-base/scrollview-base.js
xymostech/cdnjs
/* YUI 3.17.2 (build 9c3c78e) Copyright 2014 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('scrollview-base', function (Y, NAME) { /** * The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators * * @module scrollview *...
libs/angular.js/1.0.0rc4/angular-scenario.js
wayou/baiducdnstatic
/** @license * jQuery JavaScript Library v1.7 * 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 Lic...
src/components/StylesEditor/StylesEditor.SCOPE.react.js
OpusCapitaBES/js-react-showroom-client
/* What is a SCOPE file. See documentation here: https://github.com/OpusCapita/react-showroom-client/blob/master/docs/scope-component.md */ import React, { Component } from 'react'; import { showroomScopeDecorator } from '@opuscapita/react-showroom-client'; @showroomScopeDecorator export default class StylesEdi...
sites/all/modules/jquery_update/replace/jquery/1.11/jquery.min.js
sandyattune/drupal-same
/*! 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...
ajax/libs/react-redux/5.1.0-test.1/react-redux.min.js
jonobr1/cdnjs
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react"),require("redux")):"function"==typeof define&&define.amd?define(["exports","react","redux"],e):e(t.ReactRedux={},t.React,t.Redux)}(this,function(t,e,n){"use strict";function r(t){return function(){return t}}var o=function(){};...
internals/templates/containers/App/index.js
Ennovar/clock_it
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
ajax/libs/yui/3.5.1/datatable-body/datatable-body-debug.js
ZDroid/cdnjs
YUI.add('datatable-body', function(Y) { /** View class responsible for rendering the `<tbody>` section of a table. Used as the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes. @module datatable @submodule datatable-body @since 3.5.0 **/ var Lang = Y.Lang, isArray = Lang.isArray, ...
ajax/libs/angular-google-maps/1.0.15/angular-google-maps.js
KOLANICH/cdnjs
/*! angular-google-maps 1.0.15 2014-03-05 * AngularJS directives for Google Maps * git: https://github.com/nlaplante/angular-google-maps.git */ /* Author Nick McCready Intersection of Objects if the arrays have something in common each intersecting object will be returned in an new array. */ (functio...
docs/app/Examples/modules/Progress/Content/Bar.js
jcarbo/stardust
import React from 'react' import { Progress } from 'stardust' const ProgressBarExample = () => ( <Progress percent={33} /> ) export default ProgressBarExample
fusion/Typing.js
pagesource/fusion
import React from 'react'; import { keyframes } from 'emotion'; import styled from 'react-emotion'; import PropTypes from 'prop-types'; import { withTheme } from 'theming'; const type = keyframes` from { width: 0; } `; const TypingDiv = styled('p')` font-family: 'Courier'; font-size: 20px; font-weight: bold;...
ajax/libs/forerunnerdb/1.3.660/fdb-core+views.js
sashberd/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...
src/components/app.js
CollinPerkins/hslClient
import React, { Component } from 'react'; import axios from 'axios'; import QRCode from 'qrcode-react'; import qr from 'qr-encode'; import ReactDOMServer from 'react-dom/server' export default class App extends Component { constructor(props) { super(props); this.state= { imgSrc: "", hasStarted: false, ...
src/client.js
unam3/oshop_i
/** * 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...
src/components/routes/products/ProductList.js
fredmarques/petshop
import React, { Component } from 'react'; import { Col } from 'react-flexbox-grid'; class ProductsList extends Component { constructor(props) { super(props); // props this.xs = this.props.xs || 6; this.md = this.props.md || 4; this.lg = this.props.lg || 4; this.child...
src/components/CancelButton/CancelButton.js
joyvuu-dave/comeals-ui-react
/* @flow */ // rendered by Datebox import React from 'react' import classes from './CancelButton.scss' import classNames from 'classnames' type Props = { ui: { hidden: boolean, disabled: boolean }, cancelChanges: Function }; export class CancelButton extends React.Component<void, Props, void> { constr...
ajax/libs/forerunnerdb/1.3.615/fdb-core.min.js
dakshshah96/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...
javascript/src/pages/KickAssets.js
unclecheese/silverstripe-kickassets
import React from 'react'; import Router from 'react-router'; const KickAssets = React.createClass({ render: function() { return ( <div> <Router.RouteHandler /> </div> ); } }); export default KickAssets;
docs/src/shared/components/ReactMD/helpers/accessible-fake-button/index.js
lwhitlock/grow-tracker
import React from 'react'; import SimpleExamples from './SimpleExamples'; import SimpleExamplesRaw from '!!raw!./SimpleExamples'; import FakeSCSS from '!!raw!./_fake.scss'; export default [{ title: 'Simple Examples', code: ` /* SimpleExamples.jsx */ ${SimpleExamplesRaw} \`\`\` \`\`\`scss /* _fake.scss */ ${FakeS...
.storybook/examples/marker-tooltip.js
YUzhva/react-leaflet-markercluster
import React from 'react'; import L from 'leaflet'; import { Map, TileLayer, Marker, Tooltip } from 'react-leaflet'; import MarkerClusterGroup from './../../src/react-leaflet-markercluster'; import { MAP_ZOOM, MAP_MAX_ZOOM, MAP_CENTER_COORDINATES } from './constants'; import './styles.scss'; // Setup Tooltip accor...
docs/src/app/components/pages/components/TextField/ExampleError.js
manchesergit/material-ui
import React from 'react'; import TextField from 'material-ui/TextField'; const TextFieldExampleError = () => ( <div> <TextField hintText="Hint Text" errorText="This field is required" /><br /> <TextField hintText="Hint Text" errorText="The error text can be as long as you want, i...
spec/attributes.js
FormidableLabs/rapscallion
import { default as React } from "react"; import { checkElementParity } from "./_util"; describe("property to attribute mapping", () => { describe("string properties", () => { describe("simple numbers", () => { checkElementParity(<div width={30} />); }); describe("simple strings", () => { c...
src/components/Navigator.js
hao123-fe/weeport
import React from 'react' import PropTypes from 'prop-types' import {NavigationView, SplitViewCommand} from 'react-uwp' export default class Navigator extends React.Component { static contextTypes = { router: PropTypes.object } constructor () { super() this.go = this.go.bind(this) } go (path) { ...
actor-apps/app-web/src/app/components/common/ConnectionState.react.js
vanloswang/actor-platform
import React from 'react'; import classnames from 'classnames'; import ConnectionStateStore from 'stores/ConnectionStateStore'; const getStateFromStore = () => { return { connectionState: ConnectionStateStore.getState() }; }; class ConnectionState extends React.Component { constructor(props) { super(pro...
mobileapp/CustomView.js
tw-spic/charchapoint
import React from 'react'; import { Linking, MapView, Platform, StyleSheet, TouchableOpacity, View, } from 'react-native'; export default class CustomView extends React.Component { render() { if (this.props.currentMessage.location) { return ( <TouchableOpacity style={[styles.container, ...
src/components/photoshop/PhotoshopPointer.js
JedWatson/react-color
'use strict' /* @flow */ import React from 'react' import ReactCSS from 'reactcss' export class PhotoshopPointerCircle extends ReactCSS.Component { classes(): any { return { 'default': { triangle: { width: 0, height: 0, borderStyle: 'solid', borderWidth: '4...
ajax/libs/mediaelement/2.9.5/jquery.js
billybonz1/cdnjs
/*! * jQuery JavaScript Library v1.7 * 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. *...
src/__tests__/Switch-test.js
tleunen/react-mdl
/* eslint-env mocha */ import expect from 'expect'; import React from 'react'; import ReactDOM from 'react-dom'; import { render, renderDOM } from './render'; import Switch from '../Switch'; describe('Switch', () => { it('should render a label with the switch css classes', () => { const output = render(<Sw...
dashboard/src/components/dashboard/history/HistoryPage.js
leapfrogtechnology/chill
import React from 'react'; import HistoryPanel from './HistoryPanel'; /** * Renders historyPanel within page separated * for the list of history. */ const HistoryPage = () => ( <div className="incidents-list format-expanded"> <h2>Past Incidents</h2> <HistoryPanel /> </div> ); export default HistoryPag...
app/containers/NotFound/index.js
dijahmac/JobWeasel-FrontEnd
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * */ import React from 'react'; export default class NotFound extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function render() { return ( <h1> 404: Not Found ...
collect-webapp/frontend/src/datamanagement/components/recordeditor/fields/CoordinateField.js
openforis/collect
import React from 'react' import { connect } from 'react-redux' import { MenuItem, Select, TextField as MuiTextField } from '@mui/material' import { CoordinateAttributeDefinition } from 'model/Survey' import InputNumber from 'common/components/InputNumber' import L from 'utils/Labels' import Objects from 'utils/Object...
static/src/components/DetermineAuth.js
tferreira/piggydime
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import * as actionCreators from '../actions/auth' function mapStateToProps(state) { return { token: state.auth.token, userName: state.auth.userName, isAuthenticated: state.auth.isAuthenticated } }...
app/src/components/Users/index.js
jeremyhon/sia-challenge
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Route, Switch, Link, withRouter } from 'react-router-dom'; import { fetchUsers } from './actions'; import List from './views/list'; import Form from './views/form'; import Detail from './views/detail'; class Users extends Compon...
static/third/jquery/jquery-1.7.2.js
praveenaki/zulip
/*! * jQuery JavaScript Library v1.7.2 * 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. ...
packages/ringcentral-widgets/containers/DialerAndCallsTabContainer/index.js
ringcentral/ringcentral-js-widget
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import withPhone from '../../lib/withPhone'; import hasActiveCalls from '../../lib/hasActiveCalls'; import TabContentPanel from '../../components/TabContentPan...
client-src/components/parts/Header.js
Neil-G/InspectionLog
// @flow import React, { Component } from 'react'; import { Link } from 'react-router' require('./../../../public/custom.css') class Header extends Component { render() { return ( <header> <p className="container"> <Link to='/'> Cheap Engineers </Link> </p> </header> ); } } export de...
client/me/controller.js
ironmanLee/my_calypso
/** * External dependencies */ import React from 'react'; import includes from 'lodash/collection/includes'; import page from 'page'; /** * Internal dependencies */ import analytics from 'analytics'; import devicesFactory from 'lib/devices'; import i18n from 'lib/mixins/i18n'; import notices from 'notices'; import...
apps/marketplace/components/Icons/Circle/Circle.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' import PropTypes from 'prop-types' const Circle = props => ( <svg className={props.className} viewBox="0 0 24 24" width="20px" height="24px" xmlns="http://www.w3.org/2000/svg"> <path fill={props.colour} d="M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.6 0 12 0zm0 22C6....
packages/@lyra/form-builder/src/inputs/BlockEditor/nodes/InlineObject.js
VegaPublish/vega-studio
// @flow import type { BlockContentFeatures, SlateValue, Type, SlateChange, Marker } from '../typeDefs' import type {Node} from 'react' import ReactDOM from 'react-dom' import Base64 from 'slate-base64-serializer' import React from 'react' import {Block, Range} from 'slate' import {isEqual} from 'lodash' imp...
src/components/resultsPage/main.js
LegalCheck/main
import React from 'react' import Options from './options' import Summary from './summary' const SummaryPage = ({state, dispatch}) => ( <div className="results"> <Summary state={state} dispatch={dispatch}/> <Options state={state} dispatch={dispatch}/> </div> ) export default SummaryPage
src/components/widget/Devices/Device.js
metasfresh/metasfresh-webui-frontend
import React, { Component } from 'react'; import SockJs from 'sockjs-client'; import PropTypes from 'prop-types'; import Stomp from 'stompjs/lib/stomp.min.js'; class Device extends Component { constructor(props) { super(props); this.state = { value: null, valueChangeStopper: false, }; } ...
tests/components/playerComponentTest.js
mordrax/cotwmtor
import React from 'react'; import ReactDom from 'react-dom'; import {shallow} from 'enzyme'; import Player, {playerPositionStyle} from '/client/main/playerComponent.js'; describe("<Player>", () => { let component; let props = {player: { coord : [1, 2], name : 'bob', gender: 'female' } }; before...
docs/src/app/components/pages/components/Paper/ExampleSimple.js
igorbt/material-ui
import React from 'react'; import Paper from 'material-ui/Paper'; const style = { height: 100, width: 100, margin: 20, textAlign: 'center', display: 'inline-block', }; const PaperExampleSimple = () => ( <div> <Paper style={style} zDepth={1} /> <Paper style={style} zDepth={2} /> <Paper style={s...
src/scripts/lib/jquery-1.12.4.js
AndrewZheng/vue-learn
/*! * jQuery JavaScript Library v1.12.4 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright jQuery Foundation and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2016-05-20T17:17Z */ (function( global, factory ) { if ( typeof module =...
backend/front/src/Encabezado.js
JDTorresP/RestaurantMaster
import React, { Component } from 'react'; //import './css/bootstrap.css'; //import './css/styles.css'; class Encabezado extends Component { render() { return ( <header className="encabezado py-1" role="banner"> <div className="container"> <div className="rojo"> <h1 className="...
src/main/script/Index.js
krujos/willitconnect
/* eslint-env browser */ import React from 'react'; import ReactDOM from 'react-dom'; import { createStore, applyMiddleware } from 'redux'; import { Provider } from 'react-redux' import thunk from 'redux-thunk'; import EntryBox from './EntryBox'; import reducers from './reducers'; require('bootstrap/dist/css/bootstra...
lib/ui/src/settings/about.stories.js
storybooks/react-storybook
import React from 'react'; import { storiesOf } from '@storybook/react'; import { actions as createActions } from '@storybook/addon-actions'; import AboutScreen from './about'; const info = { plain: `- upgrade webpack & babel to latest\n- new addParameters and third argument to .add to pass data to addons\n- added ...
react/src/components/SingleInput.js
sdcaulley/sdcaulley-portfolio
import React from 'react'; import PropTypes from 'prop-types'; export default function SingleInput(props) { return ( <div> <label>{props.title}</label> <input name={props.name} type={props.type} value={props.content} on...
ajax/libs/jquery-footable/2.0.1.15/js/footable.js
boneskull/cdnjs
/*! * FooTable - Awesome Responsive Tables * Version : 2.0.1.5 * http://fooplugins.com/plugins/footable-jquery/ * * Requires jQuery - http://jquery.com/ * * Copyright 2014 Steven Usher & Brad Vincent * Released under the MIT license * You are free to use FooTable in commercial projects as long as this copyrig...
src/components/layout/partials/FooterNav.js
eddiesmithjr/eddiesmithjr.github.io
import React from 'react'; import classNames from 'classnames'; import { Link } from 'react-router-dom'; const FooterNav = ({ className, ...props }) => { const classes = classNames( 'footer-nav', className ); return ( <nav {...props} className={classes} > <ul className="li...
src/svg-icons/device/battery-charging-80.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryCharging80 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V9h4.93L13 7v2h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9L11...
ui/input.js
jamen/neta
import React, { Component } from 'react'; class Input extends Component { constructor(props) { super(props); this.state = { value: '', }; } render() { return ( <div className="input"> <input onKeyUp={this.props.keyup} /> </div> ); } } export default Input;
web/src/js/__tests__/components/Modal/ModalSpec.js
mhils/mitmproxy
import React from 'react' import renderer from 'react-test-renderer' import Modal from '../../../components/Modal/Modal' import { Provider } from 'react-redux' import { TStore } from '../../ducks/tutils' describe('Modal Component', () => { let store = TStore() it('should render correctly', () => { // ...
app/view/Component/index.js
Juice4213/GZHReactNativeDemo
/** * Created by tompda on 2017/2/5. */ /** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { StyleSheet, Text, View, ScrollView, Navigator, InteractionManager, } from 'react-native'; import NavitatorBar fr...
ajax/libs/react-is/0.0.0-e2fd460cc/umd/react-is.production.min.js
cdnjs/cdnjs
/** @license React vundefined * react-is.production.min.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. */ (function(){'use strict';(function(b,c){"object"===typeof exports&&"unde...
cgi/js/ext/jquery.js
Djang0/limba
/*! * 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...
angular2-tour-of-heroes/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
rchcomm/Angular2Tranning
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
ajax/libs/flocks.js/0.16.15/flocks.js
peteygao/cdnjs
/** @jsx React.DOM */ /* jshint node: true, browser: true, newcap: false */ /* eslint max-statements: 0, no-else-return: 0, brace-style: 0 */ /* eslint-env node,browser */ /** * The Flocks library module. * * @module Flocks * @main Flocks * @class Flocks */ // if it's in a <script> it's defined already ...
stalk-messenger/examples/ComponentExample/app/components/tabs/follows/SearchUserView.js
JohnKim/stalk.messenger
import React, { Component } from 'react'; import { StyleSheet, Text, View, TouchableHighlight } from 'react-native'; import GiftedListView from 'react-native-gifted-listview'; import S5Header from 'S5Header'; export default class SearchUserView extends Component { static propTypes = { navigator: Reac...
pkg/interface/link/src/index.js
ngzax/urbit
import React from 'react'; import ReactDOM from 'react-dom'; import { Root } from '/components/root'; import { api } from '/api'; import { store } from '/store'; import { subscription } from "/subscription"; api.setAuthTokens({ ship: window.ship }); subscription.start(); ReactDOM.render(( <Root /> ), document.qu...
node_modules/react-icons/md/format-align-justify.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const MdFormatAlignJustify = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m5 5h30v3.4h-30v-3.4z m0 10v-3.4h30v3.4h-30z m0 6.6v-3.2h30v3.2h-30z m0 6.8v-3.4h30v3.4h-30z m0 6.6v-3.4h30v3.4h-30z"/></g> </Icon> ) export default M...
src/svg-icons/action/pan-tool.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPanTool = (props) => ( <SvgIcon {...props}> <path d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4...
client/src/containers/Dashboard.js
HoussamOtarid/fb-photos-downloader
import React, { Component } from 'react'; import { connect } from 'react-redux'; import AlbumsGrid from '../components/AlbumsGrid'; import FacebookConnect from '../components/FacebookConnect'; import { getAlbums, getPhotos } from '../actions/albumsActions'; class Dashboard extends Component { componentWillMount() {...
src/components/base/toolbar-buttons.js
ambrinchaudhary/alloy-editor
/** * SPDX-FileCopyrightText: © 2014 Liferay, Inc. <https://liferay.com> * SPDX-License-Identifier: LGPL-3.0-or-later */ import React from 'react'; import ReactDOM from 'react-dom'; import EditorContext from '../../adapter/editor-context'; import Lang from '../../oop/lang'; /** * ToolbarButtons provides a list o...
ajax/libs/react/0.5.2/react-with-addons.js
jacobq/cdnjs
/** * React (with addons) v0.5.2 */ !function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.React=e():"undefined"!=typeof global?global.React=e():"undefined"!=typeof self&&(self.React=e())}(function(){var define,module,exports; return ...
src/containers/Playground.js
namelos/react-demo
import React, { Component } from 'react'; import Content from '../components/Content'; import EventHandler from '../components/EventHandler'; export default class Playground extends Component { render = () => <h1> <EventHandler /> </h1> }
src/boot/__tests/StylesProvider-test.js
nashvail/zulip-mobile
import React from 'react'; import { View } from 'react-native'; import { rendererWithStyle } from '../../utils/tests'; describe('StylesProvider', () => { test('renders', () => { const rendered = rendererWithStyle(<View />).toJSON(); expect(rendered.type).toEqual('View'); }); });
assets/js/feature-tours/idea-hub-module.js
google/site-kit-wp
/** * Idea Hub module Tour. * * Site Kit by Google, Copyright 2021 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * ...
ajax/libs/x-editable/1.4.4/jquery-editable/js/jquery-editable-poshytip.js
KoryNunn/cdnjs
/*! X-editable - v1.4.4 * In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery * http://github.com/vitalets/x-editable * Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */ /** Form with single input element, two buttons and two states: normal/loading. Applied as jQuery method to DIV tag (not to for...
view/src/components/BuildsTable.js
reliablejs/reliable-master
'use strict'; import React from 'react'; import dayjs from 'dayjs'; import { Link } from 'react-router-dom'; import Clipboard from 'awesome-clipboard'; import { Table, } from 'antd'; import { SettingOutlined, RightCircleOutlined, } from '@ant-design/icons'; import { FormattedMessage } from 'react-intl'; import ...
ajax/libs/yui/3.7.0/scrollview-base/scrollview-base-debug.js
robinskumar73/cdnjs
YUI.add('scrollview-base', function (Y, NAME) { /** * The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators * * @module scrollview * @submodule scrollview-base */ var getClassName = Y.ClassNameManager.getClassName, DOCUMENT = Y.config.doc, WINDOW = Y.config.win, I...
src/main/frontend/src/script/userApp/views/pages/sign-up/index.js
m544498510/may-swim-app
/** * @author May * @version 1.0.0 */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import {Link} from 'react-router'; import SignUpForm from '../../components/signUpForm'; import {userActions, getEmailErrorInfo,getSecondPsdErrorInfo} from 'user...
src/index.js
zdizzle6717/tree-machine-records
import React from 'react'; import {render} from 'react-dom'; import {Provider} from 'react-redux' import AppRoutes from './components/AppRoutes'; import store from './store'; window.onload = () => { render( <Provider store={store}> <AppRoutes /> </Provider>, document.getElementById('main') );...
ajax/libs/webshim/1.13.2-RC2/dev/shims/moxie/js/moxie.js
StoneCypher/cdnjs
/** * mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill * v1.2.1 * * Copyright 2013, Moxiecode Systems AB * Released under GPL License. * * License: http://www.plupload.com/license * Contributing: http://www.plupload.com/contributing * * Date: 2014-05-14 */ /** * Compiled inline version. (Library ...