path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
fluxible-router/client.js
src-code/flux-examples
/** * Copyright 2014, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ /*global App, document, window */ import React from 'react'; import debug from 'debug'; import app from './app'; import { createElementWithContext } from 'fluxible-addons-react'; const ...
ajax/libs/grommet/2.0.0-beta.3/grommet.min.js
cdnjs/cdnjs
var Grommet=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(...
frontend/src/components/common/Header.js
icedcoffeeallday/CostPers
import React from 'react'; import { Text, View } from 'react-native'; const Header = (props) => { const { textStyle, viewStyle } = styles; return ( <View style={viewStyle}> <Text style={textStyle}>CostPers</Text> </View> ); }; const styles = { viewStyle: { backgroundColor: '#F8F8F8', j...
src/components/MediaListPage.js
n1207n/react-like-or-not
import React from 'react'; import Dialog from 'material-ui/Dialog'; import {GridList, GridTile} from 'material-ui/GridList'; import FontIcon from 'material-ui/FontIcon'; import IconButton from 'material-ui/IconButton'; import Star from 'material-ui/svg-icons/toggle/star'; import ListIcon from 'material-ui/svg-icons/ac...
server/sonar-web/src/main/js/apps/component-measures/components/IconTree.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
ajax/libs/forerunnerdb/1.3.628/fdb-core.min.js
pombredanne/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...
ajax/libs/rxjs/2.4.10/rx.lite.compat.js
zimbatm/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 }; ...
docs/src/screens/home/more-oss.js
FormidableLabs/spectacle
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { BodyCopy } from '../../components/body-copy'; import { Button } from '../../components/button'; import { OSSBadge } from '../../components/oss-badge'; import { SecondaryTitle } from '../../components/seconda...
web/react/tests/layouts/CoreLayout.spec.js
Croissong/nussnougat
import React from 'react' import TestUtils from 'react-addons-test-utils' import CoreLayout from 'layouts/CoreLayout/CoreLayout' function shallowRender (component) { const renderer = TestUtils.createRenderer() renderer.render(component) return renderer.getRenderOutput() } function shallowRenderWithProps (props...
cm19/ReactJS/your-first-react-app-exercises-master/exercise-12/friends/Friends.entry.js
Brandon-J-Campbell/codemash
import React from 'react'; import myFriends from '../data/friends'; import Friends from './Friends'; export default function FriendsEntry() { return <Friends friends={myFriends} /> }
docs/src/examples/views/Advertisement/Types/AdvertisementExampleLargeLeaderboard.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Advertisement } from 'semantic-ui-react' const AdvertisementExampleLargeLeaderboard = () => ( <Advertisement unit='large leaderboard' test='Large Leaderboard' /> ) export default AdvertisementExampleLargeLeaderboard
client/modules/core/containers/check_role.js
JSSolutions/Databazel
import { useDeps, composeWithTracker, composeAll } from 'mantra-core'; import React from 'react'; import CheckRole from '../components/partial/check_role.jsx'; import Loading from '../../core/components/partial/loading.jsx'; export const composer = ({ context, onlyAdmin }, onData) => { const { Meteor } = context();...
app/utils/blockRenderer.js
kevin940726/remarkbelow
import React from 'react'; import syntax from './syntax.css'; const blockRenderer = contentBlock => { const text = contentBlock.getText(); return { component: () => ( <div className={syntax.block}> {text} </div> ), }; }; export default blockRenderer;
RNTester/js/PanResponderExample.js
thotegowda/react-native
/** * Copyright (c) 2015-present, 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. * * @flow wea...
packages/material-ui-icons/src/TerrainTwoTone.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="M5 16h3.04l-1.52-2.03z" opacity=".3" /><path d="M9.78 11.63l1.25 1.67L14 9.33 19 16h-8.46l-4.01-5.37L1 18h22L14 6l-4.22 5.63zM5 16l1.52-2.03L8.0...
__tests__/index.ios.js
zza19900808/MovieTalk
import 'react-native'; import React from 'react'; import Index from '../index.ios.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
redux-demo/todomvc/src/components/TodoTextInput.spec.js
zhangjunhd/react-examples
import React from 'react' import TestUtils from 'react-addons-test-utils' import TodoTextInput from './TodoTextInput' const setup = propOverrides => { const props = Object.assign({ onSave: jest.fn(), text: 'Use Redux', placeholder: 'What needs to be done?', editing: false, newTodo: false }, pro...
app/components/home.js
mthmulders/lin2go
import React, { Component } from 'react'; import { Text, View } from 'react-native'; import { connect } from 'react-redux'; import Button from 'apsl-react-native-button'; import { showStats, startGame } from '../actions'; import styles from '../styles'; export const Home = (props) => ( <View> <Button style={ st...
client/src/containers/Quiz/Quiz.js
pqmcgill/stamp-wedding-app
import React from 'react'; import QuizQuestion from '../../components/QuizQuestion'; import Score from '../../components/Score'; import CompatibleImg from '../../components/CompatibleImg'; import RSVPButton from '../../components/RSVPButton'; import { Grid, Row, Col } from 'react-flexbox-grid-aphrodite'; import { css }...
packages/benchmarks/src/implementations/aphrodite/View.js
css-components/styled-components
/* eslint-disable react/prop-types */ import React from 'react'; import { css, StyleSheet } from 'aphrodite/no-important'; const baseStyles = StyleSheet.create({ base: { alignItems: 'stretch', borderWidth: 0, borderStyle: 'solid', boxSizing: 'border-box', display: 'flex', flexBasis: 'auto', ...
components/ViroVideo.js
viromedia/viro
/** * Copyright (c) 2015-present, Viro Media, 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. */ import { ...
src/components/appBody.js
markup-app/markup
'use strict'; import React from 'react'; import {connect} from 'react-redux'; const propTypes = { bannerMode: React.PropTypes.string }; class AppBody extends React.Component { render() { var classList = '-app-body-ref'; if (!this.props.isLoaded) { classList += ' -fade-out'; } return ( ...
ajax/libs/mediaelement/2.10.1/jquery.js
mzdani/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/components/Resume/Skills/SkillBar.js
karajrish/karajrish.github.io
import React from 'react'; import PropTypes from 'prop-types'; const SkillBar = ({ data, categories }) => { const { category, competency, title } = data; // TODO: Consider averaging colors const titleStyle = { background: categories .filter((cat) => category.includes(cat.name)) .map((cat) => cat...
core/components/ErrorBoundary.js
wp-pwa/wp-pwa
/* eslint-disable class-methods-use-this, no-console */ import React from 'react'; import PropTypes from 'prop-types'; class ErrorBoundary extends React.Component { static propTypes = { children: PropTypes.node.isRequired, }; componentDidCatch(error, info) { console.warn(error, info); const name = ...
react-universal-web-apps-simple/app/components/common/NoMatch.js
joekraken/react-demos
import React from 'react'; export default class NoMatch extends React.Component { render() { return ( <section className="app-content"> <header className="section-header"> <h3 className="title">Not Found</h3> </header> </section> ...
13. ReactJS Fundamentals - Feb 2019/03. Events and Forms/Fog-App/src/App/AppFooter.js
zrusev/SoftwareUniversity2016
import React from 'react'; import SimpleSnackbar from "./SnackBar"; const AppFooter = (props) => (<SimpleSnackbar showSnack={props.showSnack} message={props.message} />); export default AppFooter;
docs/src/examples/views/Feed/Types/FeedExampleEventsProp.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Feed } from 'semantic-ui-react' const events = [ { date: '1 Hour Ago', image: '/images/avatar/small/elliot.jpg', meta: '4 Likes', summary: 'Elliot Fu added you as a friend', }, { date: '4 days ago', image: '/images/avatar/small/helen.jpg', meta: '1 L...
src/components/Tooltip/index.js
vogelino/design-timeline
import React from 'react'; import PropTypes from 'prop-types'; import Icon from '../Icon'; import { combineCssClasses } from '../../helpers/styleHelper'; import './Tooltip.css'; const Tooltip = ({ className, content, iconId, color: backgroundColor, show, }) => ( <span className={combineCssClasses({ [classNa...
ajax/libs/react-highcharts/5.0.2/index.js
tonytomov/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define.amd) define(["react"], factory); else if(typeof exports === 'object') exports["Highcharts"] = fact...
Week04/Week04Example/CoursesAPI/Scripts/jquery-1.10.2.js
vignirk/2015-T-514-VEFT
/* NUGET: BEGIN LICENSE TEXT * * Microsoft grants you the right to use these script files for the sole * purpose of either: (i) interacting through your browser with the Microsoft * website or online service, subject to the applicable licensing or use * terms; or (ii) using the files as included with a Microsoft p...
app/components/Waiting/index.js
zillding/hangouts
/** * * Waiting * */ import React from 'react'; import Icon from 'material-ui/svg-icons/social/people'; import { Flex } from 'react-flex'; import styles from './styles.css'; const iconStyle = { height: 46, width: 46, }; const Waiting = () => ( <Flex column justifyContent="center" className={style...
webapp/src/components/orthology/orthologyTable.js
alliance-genome/agr_prototype
import React, { Component } from 'react'; import { Link } from 'react-router'; import MethodHeader from './methodHeader'; import MethodCell from './methodCell'; import BooleanCell from './booleanCell'; import HelpIcon from './helpIcon'; const columns = [ {name: 'Species'}, {name: 'Gene symbol'}, {name: 'Count'},...
ajax/libs/react-virtualized/4.2.1/react-virtualized.min.js
keicheng/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(n){if(...
ajax/libs/jquery-tools/1.2.7/jquery.tools.min.js
mathiasrw/cdnjs
/*! * jQuery Tools v1.2.7 - The missing UI library for the Web * * dateinput/dateinput.js * overlay/overlay.js * overlay/overlay.apple.js * rangeinput/rangeinput.js * scrollable/scrollable.js * scrollable/scrollable.autoscroll.js * scrollable/scrollable.navigator.js * tabs/tabs.js * tabs/tabs.sli...
src/render.js
pshrmn/cryptonite
import React from 'react'; import ReactDOM from 'react-dom'; import { ApolloProvider } from 'react-apollo'; import { CuriProvider } from '@curi/react'; import client from './apolloClient'; import Header from './components/Header'; import Footer from './components/Footer'; import 'scss/base.scss'; import 'scss/main.s...
packages/material-ui-icons/src/Filter3Outlined.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-1.5c0-.83-.67-1.5-1.5-1.5.83 0 1.5-.67 1.5-1.5V7c0-1.11-.9-2-2-2h-4...
blueocean-material-icons/src/js/components/svg-icons/action/euro-symbol.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionEuroSymbol = (props) => ( <SvgIcon {...props}> <path d="M15 18.5c-2.51 0-4.68-1.42-5.76-3.5H15v-2H8.58c-.05-.33-.08-.66-.08-1s.03-.67.08-1H15V9H9.24C10.32 6.92 12.5 5.5 15 5.5c1.61 0 3.09.59 4.23 1.57L21 5.3C19.41 3.87 17.3 3 15 3c-3.92 ...
app/index.js
ethan605/react-native-zero
/** * ZeroProj App index * @providesModule ZeroProj.App */ import React from 'react'; import { StatusBar, StyleSheet, View } from 'react-native'; import CodePush from 'react-native-code-push'; import { Provider } from 'react-redux'; // Components import AppExperimentals from './components/AppExperimentals'; import...
ajax/libs/jquery-jcrop/0.9.12/js/jquery.min.js
saitheexplorer/cdnjs
/*! jQuery v1.9.0 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license */(function(e,t){"use strict";function n(e){var t=e.length,n=st.type(e);return st.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Tt[e]={};return st.each(e.matc...
client/src/layouts/App.Router.js
arpitgo4/Express-React-Scaffold
import React from 'react'; import { Router, Route, IndexRoute, Link, IndexLink, browserHistory, hashHistory } from 'react-router'; import AppLayout from './App.layout'; import NodeJS from '../components/Body/Nodejs.component'; import ExpressJS from '../components/Body/Expressjs.component'; import ReactJS from '../com...
src/svg-icons/image/brush.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrush = (props) => ( <SvgIcon {...props}> <path d="M7 14c-1.66 0-3 1.34-3 3 0 1.31-1.16 2-2 2 .92 1.22 2.49 2 4 2 2.21 0 4-1.79 4-4 0-1.66-1.34-3-3-3zm13.71-9.37l-1.34-1.34c-.39-.39-1.02-.39-1.41 0L9 12.25...
frontend/web/assets/7eeaf204/yii.gridView.js
MOSOSJAN/apartment
/** * 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/esm/components/graphics/icons-next/users-icon-next/index.js
KissKissBankBank/kitten
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["color", "title"]; import React from 'react'; import PropTypes from 'prop-types'; export var UsersIconNext = function UsersIconNext(_ref) { var color...
blueocean-material-icons/src/js/components/svg-icons/image/assistant-photo.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageAssistantPhoto = (props) => ( <SvgIcon {...props}> <path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"/> </SvgIcon> ); ImageAssistantPhoto.displayName = 'ImageAssistantPhoto'; ImageAssistantPhoto.muiName = 'SvgIcon'; export default ImageAss...
ajax/libs/vkui/4.29.0/cjs/components/ModalRoot/ModalRoot.js
cdnjs/cdnjs
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default; Object.defineProperty(exports, "__esModule", { value: true }); exports.ModalRootTouch = void 0; var _jsxRuntim...
client/modules/Post/components/PostCreateWidget/PostCreateWidget.js
phumberdroz/pizzastore
import React, { Component, PropTypes } from 'react'; // Import Style import styles from './PostCreateWidget.css'; class PostCreateWidget extends Component { addPost = () => { const nameRef = this.refs.name; const titleRef = this.refs.title; const contentRef = this.refs.content; if (nameRef.value && ...
packages/material-ui-icons/src/StorageRounded.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="M4 20h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2zm0-3h2v2H4v-2zM2 6c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2zm...
src/svg-icons/navigation/arrow-downward.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowDownward = (props) => ( <SvgIcon {...props}> <path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"/> </SvgIcon> ); NavigationArrowDownward = pure(NavigationArrowDownward); Na...
src/DatePicker/components/Calendar.js
ambitioninc/react-ui
import React from 'react'; import {getClassName, chunk} from '../../utils'; class Calendar extends React.Component { render() { const className = getClassName( 'react-ui-date-picker-calendar', this.props.calendarClassName ); const subHeaderClassName = getClassName(...
src/svg-icons/places/fitness-center.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesFitnessCenter = (props) => ( <SvgIcon {...props}> <path d="M20.57 14.86L22 13.43 20.57 12 17 15.57 8.43 7 12 3.43 10.57 2 9.14 3.43 7.71 2 5.57 4.14 4.14 2.71 2.71 4.14l1.43 1.43L2 7.71l1.43 1.43L2 10.57 ...
server/server.js
tomzmtl/Brew-Master
import Express from 'express'; import mongoose from 'mongoose'; import bodyParser from 'body-parser'; import path from 'path'; // Webpack Requirements import webpack from 'webpack'; import config from '../webpack.config.dev'; import webpackDevMiddleware from 'webpack-dev-middleware'; import webpackHotMiddleware from '...
App/Containers/SonderDebug.js
MapReactor/Sonder
'use strict'; /* eslint no-console: 0 */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import Mapbox, { MapView } from 'react-native-mapbox-gl'; import { StyleSheet, Text, StatusBar, View, ScrollView } from 'react-native'; import Styles from './Styles/MapViewStyle' import C...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Base/Footer/Footer.js
ChamNDeSilva/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/li...
js/components/ingredientList.js
codeocelot/soylent-industries
import React from 'react' import $ from 'jquery' import {Checkbox, LeftNav} from 'material-ui' import IngredientActions from '../actions/ingredientActions' import IngredientStore from '../stores/ingredientStore' import constants from '../constants/constants' export default class IngredientList extends React.Component{...
src/store/reducers.js
przeor/ReactC
import { combineReducers } from 'redux' import { routerReducer as router } from 'react-router-redux' import session from '../modules/session' export const makeRootReducer = (asyncReducers) => { return combineReducers({ // Add sync reducers here router, session, ...asyncReducers }) } export const i...
test/render-to-string/components/without-resolve.js
Brogency/baobab-react-resolver
import React from 'react'; export default React.createClass({ displayName: 'RootComponent', render() { return ( <div></div> ); }, });
packages/cp-frontend/src/components/messaging/loader.js
yldio/copilot
import React from 'react'; import styled from 'styled-components'; import { P, StatusLoader } from 'joyent-ui-toolkit'; const Container = styled.div` display: flex; flex-direction: column; flex-wrap: nowrap; justify-content: center; align-content: center; align-items: center; flex: 1 0 auto; align-se...
src/search/facet-box/index.js
sebez/focus-components
import React from 'react'; import builder from 'focus-core/component/builder'; import type from 'focus-core/component/types'; import {translate} from 'focus-core/translation'; let assign = require('object-assign'); let omit = require('lodash/object/omit'); // Components let Facet = require('./facet').component; let I...
src/index.js
leobeltran/reactStarter
import React from 'react'; import {render} from 'react-dom'; import Gravatar from './gravatar'; render(<Gravatar/>,document.getElementById('root'));
src/js/components/icons/base/SearchAdvanced.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/svg-icons/notification/no-encryption.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationNoEncryption = (props) => ( <SvgIcon {...props}> <path d="M21 21.78L4.22 5 3 6.22l2.04 2.04C4.42 8.6 4 9.25 4 10v10c0 1.1.9 2 2 2h12c.23 0 .45-.05.66-.12L19.78 23 21 21.78zM8.9 6c0-1.71 1.39-3.1 3.1...
src/root/components/Root.js
nordsoftware/react-boilerplate
// @flow import React from 'react' import {BrowserRouter as Router, Route} from 'react-router-dom' import Hello from '../../hello/components/Hello' import css from './Root.css' const Root = () => ( <div className={css.component}> <Router> <div className={css.routes}> <Route exact path="/" componen...
stories/components/pages/login/index.js
one-love/storybook
import React from 'react'; import cssModules from 'react-css-modules'; import styles from './login.scss'; function Login() { return ( <div styleName="login"> <div> <h1 styleName="center">Login</h1> </div> <form role="form"> <div styleName="position--relative"> <input ...
frontend/src/App.js
4devs/symfony-react
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import { ConnectedRouter } from 'react-router-redux'; import Root from './components/Root'; import store from './redux'; import history from './history'; import './config'; class App extends Component { render() { return ( <...
react/Textarea/textAreaUtils.spec.js
seek-oss/seek-style-guide
/* eslint-disable react/jsx-key */ import React from 'react'; import { formatInvalidText } from './textAreaUtils.js'; import Highlight from '../Highlight/Highlight'; describe('contentEditableUtils', () => { describe('formatInvalidText', () => { const style = 'my-class-name'; describe('invalidText is a strin...
src/index.js
kazandzhiro/react_mobx
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'mobx-react'; import { BrowserRouter as Router, Route, Switch} from 'react-router-dom'; import createBrowserHistory from 'history/createBrowserHistory'; import { RouterStore, syncHistoryWithStore } from 'mobx-react-router'; import St...
src/js/components/city__list__container/index.js
Arlefreak/arlefreakClient
import PropTypes from 'prop-types'; import React from 'react'; import Remarkable from 'remarkable'; import Page from '../../containers/page'; import List from '../city__list'; import CategoryList from '../../containers/portfolio/filter__categories'; import TagList from '../../containers/portfolio/filter__tags'; impor...
lib/svg-icons/hardware/laptop-mac.js
JonatanGarciaClavo/material-ui
'use strict'; var React = require('react/addons'); var PureRenderMixin = React.addons.PureRenderMixin; var SvgIcon = require('../../svg-icon'); var HardwareLaptopMac = React.createClass({ displayName: 'HardwareLaptopMac', mixins: [PureRenderMixin], render: function render() { return React.createElement( ...
core/src/plugins/access.ajxp_conf/res/js/AdminWorkspaces/panel/SharesList.js
pydio/pydio-core
/* * Copyright 2007-2017 Charles du Jeu - Abstrium SAS <team (at) pyd.io> * This file is part of Pydio. * * Pydio 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 License, o...
Project 07 - Animated Form/src/containers/Login.js
DCKT/30DaysofReactNative
// @flow import React from 'react' import { View, Animated } from 'react-native' import { Form, Item, Input, Button, Text as NText } from 'native-base' const styles = { item: { paddingHorizontal: 15, backgroundColor: '#fff', marginHorizontal: 10, marginBottom: 20, borderRadius: 10, borderBot...
app/javascript/mastodon/components/collapsable.js
foozmeat/mastodon
import React from 'react'; import Motion from '../features/ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import PropTypes from 'prop-types'; const Collapsable = ({ fullHeight, isVisible, children }) => ( <Motion defaultStyle={{ opacity: !isVisible ? 0 : 100, height: isVisible ? fullHeight :...
app/javascript/mastodon/features/ui/components/audio_modal.js
tri-star/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Audio from 'mastodon/features/audio'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { previewState } from './video_modal'...
ajax/libs/video.js/4.12.12/video.dev.js
emmy41124/cdnjs
/** * @fileoverview Main function src. */ // HTML5 Shiv. Must be in <head> to support older browsers. document.createElement('video'); document.createElement('audio'); document.createElement('track'); /** * Doubles as the main function for users to create a player instance and also * the main library object. * ...
modules/RouteUtils.js
djkirby/react-router
import React from 'react' function isValidChild(object) { return object == null || React.isValidElement(object) } export function isReactChildren(object) { return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild)) } function createRoute(defaultProps, props) { return { ...defaultProps...
ajax/libs/forerunnerdb/1.3.36/fdb-core.js
jonathantneal/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...
ajax/libs/react/15.0.2-alpha.2/react.js
BenjaminVanRyseghem/cdnjs
/** * React v15.0.2-alpha.2 */ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined")...
app/javascript/mastodon/features/ui/components/block_modal.js
theoria24/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { injectIntl, FormattedMessage } from 'react-intl'; import { makeGetAccount } from '../../../selectors'; import Button from '../../../components/button'; import { closeModal } from '../../../actions/modal'; impo...
src/react.js
tchon/redux
import React from 'react'; import createAll from './components/createAll'; export const { Provider, Connector, provide, connect } = createAll(React);
example/src/List.js
Monar/react-immutable-pure-component
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import MuiList from '@material-ui/core/List'; import { RenderCount } from './RenderCount'; import Item from './Item'; import Paper from '@material-ui/core/Paper'; // eslint-disable-next-line import...
src/index.js
josephfusco/APFT
import React from 'react'; import ReactDOM from 'react-dom'; import App from 'containers/App'; import registerServiceWorker from './registerServiceWorker'; import './index.css'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
Realization/frontend/czechidm-acc/src/content/system/SystemSynchronizationLogDetail.js
bcvsolutions/CzechIdMng
import PropTypes from 'prop-types'; import React from 'react'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; // import { Basic, Domain, Managers, Utils, Advanced } from 'czechidm-core'; import { SynchronizationLogManager, SyncActionLogManager} from '../../redux'; import SynchronizationAction...
packages/material-ui-icons/src/CastForEducation.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path transform="scale(0.5, 0.5)" d="M42 6H6c-2.2 0-4 1.8-4 4v6h4v-6h36v28H28v4h14c2.2 0 4-1.8 4-4V10c0-2.2-1.8-4-4-4zM2 36v6h6c0-3.32-2.68-6-6-6zm0-8v4c5.52 0 10 4.48 10 10h4c0-7.74-6.26-14-14...
src/Label.js
jontewks/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Label = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'label', bsStyle: 'default' }; }, render() { let classes = this.getBsClassSe...
src/components/common/svg-icons/action/bookmark-border.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionBookmarkBorder = (props) => ( <SvgIcon {...props}> <path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2zm0 15l-5-2.18L7 18V5h10v13z"/> </SvgIcon> ); ActionBookmarkBorder = pure(ActionBook...
src/components/Player/components/Modal/components/StreamLAN.js
jaruba/PowderPlayer
import React from 'react'; import { clipboard, shell } from 'electron'; import { app } from 'remote'; import ModalActions from '../actions'; import ModalStore from '../store'; import PlayerStore from '../../../store'; import player from '../../../utils/player'; import QRCode from 'rc-qrcode'; import ip fro...
src/components/canvas.js
camboio/yooneau
import React, { Component } from 'react'; import * as PIXI from 'pixi.js' export default class Canvas extends Component { constructor( props ) { super(props); //bind our animate function this.animate = this.animate.bind(this); } /** * In this case, ...
ajax/libs/react/0.11.0-rc1/react-with-addons.min.js
billybonz1/cdnjs
/** * React (with addons) v0.11.0-rc1 * * Copyright 2013-2014 Facebook, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unle...
src/components/DateIntervalPicker/DateIntervalPicker.js
denimar/denibudget
const moment = require('moment'); import React from 'react' import { Glyphicon, Button } from 'react-bootstrap'; const DateRangePicker = require('react-bootstrap-daterangepicker/lib'); import './daterangepicker.css'; import FaCalendarMinusO from 'react-icons/lib/fa/calendar'; import './DateIntervalPicker.scss'; import ...
ajax/libs/vuetify/3.0.0-alpha.7/vuetify.min.js
cdnjs/cdnjs
/*! * Vuetify v3.0.0-alpha.7 * Forged by John Leider * Released under the MIT License. */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("vue")); else if(typeof define === 'function' && define.amd) def...
ajax/libs/video.js/5.0.0-rc.36/video.js
iwdmb/cdnjs
/** * @license * Video.js 5.0.0-rc.36 <http://videojs.com/> * Copyright Brightcove, Inc. <https://www.brightcove.com/> * Available under Apache License Version 2.0 * <https://github.com/videojs/video.js/blob/master/LICENSE> * * Includes vtt.js <https://github.com/mozilla/vtt.js> * Available under Apache License...
app/javascript/mastodon/components/status_content.js
KnzkDev/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { isRtl } from '../rtl'; import { FormattedMessage } from 'react-intl'; import Permalink from './permalink'; import classnames from 'classnames'; import PollContainer from 'mastodon/containe...
ajax/libs/yui/3.3.0pr3/event-custom/event-custom-base.js
mgoldsborough/cdnjs
YUI.add('event-custom-base', function(Y) { /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module event-custom */ Y.Env.evt = { handles: {}, plugins: {} }; /** * Custom event engine, DOM event listener abstraction layer, synthetic DOM * events. * @module ev...
packages/material-ui-icons/src/AppBlockingOutlined.js
callemall/material-ui
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M18 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm-2.5 4c0-1.38 1.12-2.5 2.5-2.5.42 0 .8.11 1.15.29l-3.36 3.36c-.18-.35-.29-.73-.29-1.15zm2.5 2.5c-.42 0-.8-.11-1.15-.29l3...
Paths/React/05.Building Scalable React Apps/7-react-boilerplate-building-scalable-apps-m7-exercise-files/After/app/components/Navigation/index.js
phiratio/Pluralsight-materials
/** * * Navigation * */ import React from 'react'; import styles from './styles.css'; import AppBar from '../AppBar'; import Drawer from '../Drawer'; function Navigation({ topics, selectTopic, toggleDrawer, isDrawerOpen, email }) { return ( <div className={styles.navigation}> <AppBar toggleDrawe...
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...
app/javascript/mastodon/features/follow_requests/index.js
3846masa/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { ScrollContainer } from 'react-router-scroll'; import Column from '../ui/components...
ajax/libs/babel-core/5.2.5/browser-polyfill.js
Amomo/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...
docs/src/examples/modules/Dropdown/States/DropdownExampleDisabled.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Dropdown } from 'semantic-ui-react' const options = [ { key: 1, text: 'Choice 1', value: 1 }, { key: 2, text: 'Choice 2', value: 2 }, ] const DropdownExampleDisabled = () => ( <Dropdown text='Dropdown' options={options} disabled /> ) export default DropdownExampleDisabled
node_modules/react-error-overlay/lib/containers/StackTrace.js
oiricaud/horizon-education
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...