path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/svg-icons/editor/show-chart.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorShowChart = (props) => ( <SvgIcon {...props}> <path d="M3.5 18.49l6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"/> </SvgIcon> ); EditorShowChart = pure(EditorShowChart); EditorShowChart.displayNa...
pages/jedi/meet.js
uclaacm/website
import faSlack from '@fortawesome/free-brands-svg-icons'; import { faEnvelope } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { NextSeo } from 'next-seo'; import Link from 'next/link'; import React from 'react'; import JEDINav from '../../components/...
app/components/signinbutton/SignInButton.js
JoeDahle/fic
import React from 'react'; import PropTypes from 'react'; var SignInButton = React.createClass({ PropTypes: { text: PropTypes.string, active: PropTypes.boolean }, getDefaultProps: function(){ return { text: 'Sign in', active: true } }, render: function() { return ( <but...
src/SettingsPrivacyGeneral/index.js
christianalfoni/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import SettingsItem from '../SettingsItem'; function SettingsPrivacyGeneral(props) { return ( <SettingsItem inactive label={'Innstilling'} onClick={props.onClick} value={props.privacySettings ? props.privacySettings : 'normal...
src/components/Cell.js
dzsobacsi/dungeon-game
import React from 'react' let Cell = props => <div className={"cell " + props.type + " " + props.legend} /> export default Cell
src/app/routes/Counter/components/Counter.js
react-map/lr-map
import React from 'react' import { IndexLink, Link } from 'react-router'; import Subheader from 'material-ui/Subheader'; import IconButton from 'material-ui/IconButton'; import NavigationClose from 'material-ui/svg-icons/hardware/keyboard-arrow-left'; import Nav from '../../../components/Nav/Nav'; import styles from ...
ajax/libs/yui/3.9.0pr1/event-focus/event-focus-coverage.js
him2him2/cdnjs
if (typeof _yuitest_coverage == "undefined"){ _yuitest_coverage = {}; _yuitest_coverline = function(src, line){ var coverage = _yuitest_coverage[src]; if (!coverage.lines[line]){ coverage.calledLines++; } coverage.lines[line]++; }; _yuitest_coverfunc = functio...
src/client/components/Menu.js
vanpaz/vbi
import React from 'react' import Avatar from 'material-ui/lib/avatar' import AppBar from 'material-ui/lib/app-bar' import RaisedButton from 'material-ui/lib/raised-button' import IconButton from 'material-ui/lib/icon-button' import LeftNav from 'material-ui/lib/left-nav' import NavigationMenuIcon from 'material-ui/lib...
src/js/components/profile/OtherProfileDataList.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import ProfileData from './ProfileData' export default class OtherProfileDataList extends Component { static propTypes = { profileWithMetadata: PropTypes.array.isRequired, metadata : PropTypes.object.isRequired...
src/js/components/InfiniteScroll/stories/Variable.js
HewlettPackard/grommet
import React from 'react'; import { grommet } from 'grommet/themes'; import { Grommet, Box, InfiniteScroll, Text } from 'grommet'; const allItems = Array(240) .fill() .map((_, i) => i + 1); export const Height = () => ( <Grommet theme={grommet}> <Box> <InfiniteScroll items={allItems}> {item =...
examples/with-inferno/src/index.js
bringking/react-web-animation
import React from 'react'; import { render } from 'react-dom'; // import examples import App from './app'; // render render(<App/>, document.getElementById('root'));
src/svg-icons/navigation/arrow-drop-down.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowDropDown = (props) => ( <SvgIcon {...props}> <path d="M7 10l5 5 5-5z"/> </SvgIcon> ); NavigationArrowDropDown = pure(NavigationArrowDropDown); NavigationArrowDropDown.displayName = 'NavigationA...
pages/advanced/index.js
CarlRosell/glamorous-website
import React from 'react' import {withContent} from '../../components/locale' import Layout from '../../components/layout' import PageSections from '../../components/page-sections' function Advanced({url, content, locale}) { return ( <Layout pathname={url ? url.pathname : ''} locale={locale}> <PageSections...
node_modules/react-bootstrap/es/Grid.js
lucketta/got-quote-generator
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
web/src/index.js
RanaRunning/rana
import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter as Router, Route, Redirect, } from 'react-router-dom'; import { ThemeProvider } from 'styled-components'; import './index.css'; import '../semantic/dist/semantic.min.css'; import theme from './common/theme'; import App from './c...
pages/api/dialog-content-text.js
Kagami/material-ui
import 'docs/src/modules/components/bootstrap'; // --- Post bootstrap ----- import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './dialog-content-text.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default Page;
src/routes/Home/components/HomeView.js
lodelestra/SWClermont_2016
import React from 'react' import './HomeView.scss' import { Row, Col, ButtonToolbar, Button } from 'react-bootstrap' export const HomeView = () => ( <div> <div className='header'> <div className='content'> <Row className='landing-header'> <Col md={2}> ImpoCible </Col...
src/routes/not-found/NotFound.js
taekungngamonosus/monoreact
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
src/view/react/choiceEditors/ShowButton.js
MetaSolutionsAB/rdforms
/* eslint-disable no-unused-vars,max-len */ import React, { useMemo } from 'react'; import SearchIcon from '@mui/icons-material/Search'; import IconButton from '@mui/material/IconButton'; import SvgIcon from '@mui/material/SvgIcon'; function SearchAndCreateIcon(props) { return ( <SvgIcon {...props}> <path ...
src/interface/icons/Patreon.js
anom0ly/WoWAnalyzer
import React from 'react'; // From the GitHub branding website. const Icon = ({ ...other }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 292 104" className="icon" {...other}> <path fillRule="evenodd" d="M284.367244,104 L284.367244,1.42108547e-14 L291.998128,1.42108547e-14 L291.998128,104...
src/DateContentRow.js
TeaBough/react-big-calendar
import clsx from 'clsx' import getHeight from 'dom-helpers/height' import qsa from 'dom-helpers/querySelectorAll' import PropTypes from 'prop-types' import React from 'react' import { findDOMNode } from 'react-dom' import * as dates from './utils/dates' import BackgroundCells from './BackgroundCells' import EventRow f...
ajax/libs/material-ui/5.0.0-alpha.3/FormLabel/FormLabel.min.js
cdnjs/cdnjs
"use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard"),_interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.styles=void 0;var _objectWithoutProperties2=_interopRequireDefau...
src/components/Lobby.js
mleonard87/chapp-client
import React from 'react'; import PureRenderMixin from 'react-addons-pure-render-mixin'; import PersonList from './PersonList'; import RoomList from './RoomList'; import RoomCreate from './RoomCreate'; import {connect} from 'react-redux'; import * as actionCreators from '../actions/lobby'; export const Lobby = React....
ui-lib/Context/Theme.js
nikgraf/future-react-ui
import React from 'react'; export default class Theme extends React.Component { static childContextTypes = { theme: React.PropTypes.object, }; getChildContext() { return { theme: this.props.theme, }; } render() { return <div>{ this.props.children }</div>; } }
src/components/FormRuta.js
aurigadl/EnvReactAsk
import React from 'react' import SelectInput from './SelectInput.js' import {remoteData} from '../utils/mrequest'; import {Tooltip, Card , Form , Input , message, Col, Row, Button, Icon} from 'antd'; const FormItem = Form.Item; const InputGroup = Input.Group; var FormRuta = Form.create()(React.createClass({ get...
src/Components/Articles/article-details.js
gabriel-lopez-lopez/gll-billin-code-challenge
/** * Componente que representa la ficha de edición de artículos. * */ import React, { Component } from 'react'; import { PropTypes } from 'prop-types'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; // Consultas y mutaciones disponibles para los datos import { ARTICLE_DETAIL...
src/Dropdown.js
glenjamin/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; import mapContextToProps from 'react-context-toolbox/mapContextToProps'; import { elementType } from 'prop-types-extra'; import BaseDropdown from 'react-overlays/Dropdown'; import chain from './utils/createChainedFuncti...
frontend/scripts/components/users/UsersList.js
jakubzloczewski/react-exercise
import React from 'react'; import UsersListItem from './UsersListItem.js'; import Paper from './../common/Paper.js'; class UsersList extends React.Component { render() { const {groups} = this.props.GroupsStore; const {users} = this.props.UsersStore; const {assignments} = this.props.Assignm...
ajax/libs/F2/1.3.2/f2.no-easyXDM.js
sashberd/cdnjs
;(function(exports) { if (exports.F2 && !exports.F2_TESTING_MODE) { return; } /*! JSON.org requires the following notice to accompany json2: Copyright (c) 2002 JSON.org http://json.org Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d...
cerberus-dashboard/src/components/SecureDataForm/SecureDataForm.js
Nike-Inc/cerberus-management-service
/* * Copyright (c) 2020 Nike, inc. * * Licensed under the Apache License, Version 2.0 (the "License") * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
04/js/components/CommentBox.js
arcthur/react-book-examples
import React, { Component } from 'react'; import { Container } from 'flux/utils'; import CommentStore from '../stores/CommentStore'; import CommentList from './CommentList'; import CommentForm from './CommentForm'; class CommentBox extends Component { static getStores() { return [CommentStore]; } static cal...
Android/CodeDArmor/app/src/main/assets/www/js/backbone.js/backbone.js
cobaltians/CodeDArmor
// Backbone.js 1.1.0 // (c) 2010-2011 Jeremy Ashkenas, DocumentCloud Inc. // (c) 2011-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors // Backbone may be freely distributed under the MIT license. // For all details and documentation: // http://backbonejs.org (function(...
demos/buttons/demos/icon-accent.js
isogon/styled-mdl-website
import React from 'react' import { Button, Icon } from 'styled-mdl' const demo = () => ( <Button icon accent> <Icon name="add" /> </Button> ) const caption = 'Accent colored icon button' const code = ` <Button icon accent> <Icon name="add" /> </Button> ` export default { demo, caption, code }
src/components/Header/index.js
blurbyte/hack-the-news
import React from 'react'; // components import Logo from '../Icons/Logo'; import Banner from './Banner'; import Tagline from './Tagline'; import Wrapper from './Wrapper'; class Header extends React.Component { // static component no need to rerender shouldComponentUpdate() { return false; } render() { ...
src/components/blog/Pagination.js
kbariotis/kostasbariotis.com
import React from 'react'; import { Link } from 'gatsby'; import PropTypes from 'prop-types'; import { Row, Col } from 'react-flexbox-grid'; const newerPostsStyle = { float: 'left', '@media(max-width: 768px)': { display: 'block', float: 'none', marginBottom: '1em', }, }; const olderPostsStyle = { f...
node_modules/react-bootstrap/es/DropdownButton.js
C0deSamurai/muzjiks
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from...
node_modules/react-router-dom/BrowserRouter.js
Aznachang/CompanyPersonelReactJS
'use strict'; exports.__esModule = true; var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _propTypes = require('prop-types'); var _propTypes2 = _interopRequireDefault(_propTypes); var _createBrowserHistory = require('history/createBrowserHistory'); var _createBrowserHistory2 = _in...
src/svg-icons/communication/comment.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationComment = (props) => ( <SvgIcon {...props}> <path d="M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM18 14H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/> </SvgIcon> ); Co...
fields/types/textarea/TextareaField.js
nickhsine/keystone
import Field from '../Field'; import React from 'react'; module.exports = Field.create({ displayName: 'TextareaField', renderField () { var styles = { height: this.props.height, }; return <textarea name={this.props.path} styles={styles} ref="focusTarget" value={this.props.value} onChange={this.valueChanged}...
src/routes/About/components/About.js
mywentu/react-blog
import React from 'react' import Helmet from 'react-helmet' export const About = () => ( <div> <Helmet title='关于我' /> <h1>关于</h1> <hr /> <h3>博客的由来</h3> <ul> <li>自从暑假开始学React就一直想做一个完整的网站,就磨磨蹭蹭用react+node+mysql写出来的</li> <li>还有就是养成记录的习惯,好记性不如烂笔头嘛!</li> <li>不会设计啊 界面好丑 我继续加油</li> ...
src/svg-icons/action/rounded-corner.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRoundedCorner = (props) => ( <SvgIcon {...props}> <path d="M19 19h2v2h-2v-2zm0-2h2v-2h-2v2zM3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm0-4h2V3H3v2zm4 0h2V3H7v2zm8 16h2v-2h-2v2zm-4 0h2v-2h-2v2zm4 0h2v-2h-2v...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/Props.js
TiddoLangerak/flow
// @flow import React from 'react'; class MyComponent extends React.Component { props: Props; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component { props: Props; defaultProps: T; static props: T...
packages/main-nav/src/js/react.js
govau/uikit
/*! [replace-name] v[replace-version] */ /*************************************************************************************************************************************************************** * * mainNav function * * Horizontal list of links to key areas on the website. Usually located in the header. * ...
node_modules/react-router/es/withRouter.js
AdamB59/Klient
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import invariant from 'invariant'; import React from 'react';...
ajax/libs/react-bootstrap-typeahead/1.2.0/react-bootstrap-typeahead.min.js
hare1039/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactBootstrapTypeahead=t(require("react"),require("react-dom")):e.ReactBootstrapTypeahead=t(e.R...
node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-block-scoping/node_modules/babel-runtime/node_modules/core-js/client/shim.js
bernardAdark/myCrib-doc
/** * core-js 1.2.6 * https://github.com/zloirock/core-js * License: http://rock.mit-license.org * © 2015 Denis Pushkarev */ !function(__e, __g, undefined){ 'use strict'; /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require f...
src/router/App.js
change-soft8/cs-project-antd
import React from 'react' import RightSider from '../components/rightSider/rightSider' import Header from '../components/header/header' import { Row, Col } from 'antd'; import '../style/App.css'; export default class App extends React.Component { state = { rightSiderMode: 'inline', } componentWill...
app/utils/createTheStore.js
denisflorkin/signup-react
// import React from 'react' // import ReactDOM from 'react-dom' import { createStore, applyMiddleware, compose } from 'redux'; import thunk from 'redux-thunk'; /** * create the store */ // If Redux DevTools Extension is installed use it, otherwise use Redux compose const composeEnhancers = process.env.NODE_ENV ...
ajax/libs/webshim/1.14.6-RC2/dev/shims/es6.js
prosenjit-itobuz/cdnjs
// ES6-shim 0.8.0 (c) 2013 Paul Miller (paulmillr.com) // ES6-shim may be freely distributed under the MIT license. // For more details and documentation: // https://github.com/paulmillr/es6-shim/ webshim.register('es6', function($, webshim, window, document, undefined){ 'use strict'; var isCallableWithoutNew = fun...
src/App/Body/BugReportButton.js
ksmithbaylor/emc-license-summarizer
import React from 'react'; import RaisedButton from 'material-ui/lib/raised-button'; export default function BugReportButton() { return ( <div style={style.container}> <RaisedButton label="Feedback?" linkButton href="mailto:ksmithbaylor@gmail.com?subject=Intelligent Capture Decoder ...
examples/huge-apps/components/App.js
freeyiyi1993/react-router
import React from 'react'; import Dashboard from './Dashboard'; import GlobalNav from './GlobalNav'; class App extends React.Component { static loadProps (params, cb) { console.log('App', 'loadProps'); cb(null, { courses: COURSES }); } render () { var { courses, loading } = this.props; return (...
ajax/libs/graphiql/0.6.2/graphiql.min.js
brix/cdnjs
!function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{var g;g="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,g.GraphiQL=f()}}(function(){var define;return function e(...
docs/app/Examples/elements/List/Variations/ListExampleVeryRelaxedHorizontal.js
clemensw/stardust
import React from 'react' import { Image, List } from 'semantic-ui-react' const ListExampleVeryRelaxedHorizontal = () => ( <List horizontal relaxed='very'> <List.Item> <Image avatar src='http://semantic-ui.com/images/avatar/small/daniel.jpg' /> <List.Content> <List.Header as='a'>Daniel Louise...
js/App.js
nico1000/feedr
import React from 'react'; import Menu from './Menu'; import Feeding from './Feeding'; import pckg from '../package.json'; import DateFormat from 'dateformat'; const dispStates = { LIST: 'LIST', FEEDING: 'FEEDING', EDITING: 'EDITING', }; export default class App extends React.Component { constructor(props) ...
app/classifier/components/TaskTabs/TaskTabs.spec.js
amyrebecca/Panoptes-Front-End
/* eslint func-names: 0, import/no-extraneous-dependencies: ["error", { "devDependencies": true }] prefer-arrow-callback: 0, "react/jsx-boolean-value": ["error", "always"] */ import React from 'react'; import PropTypes from 'prop-types'; import { mount } from 'enzyme'; import { expect } from 'chai'; import Tas...
admin/client/App/shared/InvalidFieldType.js
jacargentina/keystone
/** * Renders an "Invalid Field Type" error */ import React from 'react'; const InvalidFieldType = function (props) { return ( <div className="alert alert-danger"> Invalid field type <strong>{props.type}</strong> at path <strong>{props.path}</strong> </div> ); }; InvalidFieldType.propTypes = { path: Reac...
app/javascript/mastodon/components/missing_indicator.js
Toootim/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; const MissingIndicator = () => ( <div className='missing-indicator'> <div> <FormattedMessage id='missing_indicator.label' defaultMessage='Not found' /> </div> </div> ); export default MissingIndicator;
openex-front/src/components/TagField.js
Luatix/OpenEx
import React, { Component } from 'react'; import * as R from 'ramda'; import { LabelOutlined } from '@mui/icons-material'; import Box from '@mui/material/Box'; import withStyles from '@mui/styles/withStyles'; import { connect } from 'react-redux'; import Dialog from '@mui/material/Dialog'; import DialogTitle from '@mui...
main.js
pushkin-consortium/front-end
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-present 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 'babel-polyfill'; imp...
src/components/pages/Auth/Login/Form.spec.js
apedyashev/reactjs-jobs-aggregator
import test from 'ava'; // import {/* shallow, */mount} from 'enzyme'; // import React from 'react'; // import LoginForm from './Form'; // import {Input} from 'components/dumb/Base'; // import configureStore from 'redux-mock-store'; // import jsdom from 'jsdom'; // import MuiThemeProvider from 'material-ui/styles/MuiTh...
force_dir/node_modules/react-bootstrap/es/InputGroupButton.js
wolfiex/VisACC
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
Realization/frontend/czechidm-core/src/content/identity/authority/IdentityAuthorities.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; // import * as Basic from '../../../components/basic'; import * as Utils from '../../../utils'; import { IdentityManager, DataManager } from '../../../redux'; import AuthoritiesPanel from '../../role/AuthoritiesPanel';...
src/main/resources/ui/components/JobEditor.js
motusllc/chronos
import React from 'react' import { observer } from 'mobx-react' import JobForm from '../models/JobForm' import Select from 'react-select' import $ from 'jquery' $(document).ready(function() { $('.collapse').on('shown.bs.collapse', function() { $(this).parent().find('.glyphicon-chevron-down').removeClass('glyphic...
src/routes/Buyer/components/Buyer.js
mertsev/blockchain-escrow
import React from 'react' import PropTypes from 'prop-types' import 'web3' import 'ethjs' var addr; var check = false var code = '60606040525b33600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060023481151561005257fe5b046000819055503460005...
src/routes/Home/components/HomeView.js
CarlTheLandlord/spotify-checker
import React from 'react' import SpotifyLogo from '../assets/Spotify_logo.png' import './HomeView.scss' export const HomeView = () => ( <div> <h4>Welcome!</h4> <img className='logo' src={SpotifyLogo} /> </div> ) export default HomeView
src/svg-icons/av/av-timer.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvAvTimer = (props) => ( <SvgIcon {...props}> <path d="M11 17c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1-1 .45-1 1zm0-14v4h2V5.08c3.39.49 6 3.39 6 6.92 0 3.87-3.13 7-7 7s-7-3.13-7-7c0-1.68.59-3.22 1.58-4.42L12 13l1.41-...
es/components/viewer2d/area.js
vovance/3d-demo
import React from 'react'; import PropTypes from 'prop-types'; import polylabel from 'polylabel'; import areapolygon from 'area-polygon'; var STYLE_TEXT = { textAnchor: 'middle', fontSize: '12px', fontFamily: '"Courier New", Courier, monospace', pointerEvents: 'none', fontWeight: 'bold', //http://stackove...
web/src/components/Nav/index.js
nickhagenov/skiscool_backend
import qs from 'query-string'; import React from 'react'; import Link from '../Link'; const name = 'Simon'; const Nav = () => ( <nav> <Link to="Home">Home</Link> <Link to={[ 'edit', { name }]}>edit</Link> <Link to={[ 'test', { name }]}>TestDevice</Link> <Link to={[ 'signup', { name }]}>AccountView<...
ajax/libs/yasgui/1.0.6/yasgui.bundled.min.js
ripple0328/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r...
docs/src/app/components/pages/components/DropDownMenu/ExampleOpenImmediate.js
pomerantsev/material-ui
import React from 'react'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem'; export default class DropDownMenuOpenImmediateExample extends React.Component { constructor(props) { super(props); this.state = {value: 2}; } handleChange = (event, index, value)...
ajax/libs/babel-polyfill/6.1.19/polyfill.js
CyrusSUEN/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...
react-flux/demo02/src/AppView.js
majunbao/xue
import React from 'react'; import AppActions from './AppActions'; function AppView(props){ const onChange = (e) => props.onUpdateDraft(e.target.value); const onClick = (e) => props.onAdd(props.lists.draft); return( <div> <input onChange={onChange} /> <button onClick={onClick}>add</button> <...
node_modules/react-router/es6/Redirect.js
narmeen12/ecan
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { formatPattern } from './PatternUtils'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.st...
assets/js/my-events.js
justicedemocrats/admin
import React from 'react' import { render } from 'react-dom' import MyEvents from './components/my-events' render(<MyEvents />, document.getElementById('app'))
react-ui/src/shared/Layout.js
EdwinJow/truthindata
import React, { Component } from 'react'; import '../css/main.css'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import Paper from 'material-ui/Paper'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; import { Link } from 'react-router' import injectTapEventPlugin...
ajax/libs/yui/3.17.1-rc-1/event-custom-base/event-custom-base-debug.js
nareshs435/cdnjs
YUI.add('event-custom-base', function (Y, NAME) { /** * 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. * @mod...
test/defaults.spec.js
mirrorjs/mirror
import React from 'react' import defaults, { options } from 'defaults' import { render } from 'index' import { store } from 'store' beforeEach(() => { jest.resetModules() }) describe('mirror.defaults', () => { it('options should be exported', () => { expect(options).toBeDefined() }) it('should not throw...
cheesecakes/plugins/content-manager/admin/src/components/FilterOptions/index.js
strapi/strapi-examples
/** * * FilterOptions * */ import React from 'react'; import PropTypes from 'prop-types'; import { get } from 'lodash'; import cn from 'classnames'; import InputSelect from 'components/InputSelect/Loadable'; import Add from './Add'; import Div from './Div'; import InputWithAutoFocus from './InputWithAutoFocus'; ...
13.react-router/src/components/UserAdd.js
zhufengnodejs/201615node
import React from 'react'; import {hashHistory} from 'react-router'; /** 1. 获取文件框的值 2. 封装成一个对象并添加ID 3. 把此对象保存到localStoage里 4. 跳回列表页 **/ export default class UserAdd extends React.Component{ handleSubmit(){ let username = this.username.value; let user = {username}; let users = localStorage.getIte...
ajax/libs/inferno/1.2.0/inferno-devtools.js
holtkamp/cdnjs
/*! * inferno-devtools v1.2.0 * (c) 2017 Dominic Gannaway * Released under the MIT License. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('inferno'), require('inferno-component')) : typeof define === 'function' && define.amd ? define(['inferno', 'i...
src/svg-icons/image/view-compact.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageViewCompact = (props) => ( <SvgIcon {...props}> <path d="M3 19h6v-7H3v7zm7 0h12v-7H10v7zM3 5v6h19V5H3z"/> </SvgIcon> ); ImageViewCompact = pure(ImageViewCompact); ImageViewCompact.displayName = 'ImageVie...
client/components/AuthFormLogin.js
escape-hatch/escapehatch
import React from 'react'; import PropTypes from 'prop-types'; import signupLoginScss from './scss/SignupLogin.scss'; const AuthFormLogin = props => { const { name, displayName, handleLoginSubmit, error, prevPath } = props; return ( <div className="container"> <div className="row"> <div className="c...
files/videojs/4.12.2/video.dev.js
vvo/jsdelivr
/** * @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. * ...
ajax/libs/yasr/2.3.2/yasr.bundled.min.js
akiran/cdnjs
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){...
examples/with-loadable-components/src/Footer.js
jaredpalmer/react-production-starter
import React from 'react'; const Footer = () => <div>This is my Footer</div>; export default Footer;
src/svg-icons/file/folder-open.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileFolderOpen = (props) => ( <SvgIcon {...props}> <path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z"/> </SvgIcon> ); FileFolderOpen = pure(F...
src/main.js
attdona/bota
import React from 'react' import ReactDOM from 'react-dom' import createBrowserHistory from 'history/lib/createBrowserHistory' import { useRouterHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import createStore from './store/createStore' import AppContainer from './containers/Ap...
ui/src/main/js/components/UpdateInstanceSummary.js
medallia/aurora
import React from 'react'; import InstanceViz from 'components/InstanceViz'; import { instanceSummary, updateStats } from 'utils/Update'; function UpdateStats({ update }) { const stats = updateStats(update); return (<div className='update-summary-stats'> <h5>Instance Summary</h5> <span className='stats'>...
src/components/Bible/BibleBooksList.js
bibleexchange/be-front-new
import React from 'react'; import BibleBook from './BibleBook'; export default class BibleBooksList extends React.Component { render() { const closeAll = this.props.closeAll; let filterBy = this.props.filterBy.toLowerCase(); let books = []; if (this.props.bible !== null && this.props.bible.books !==...
app/components/shared/SectionLoader.js
fotinakis/buildkite-frontend
import React from 'react'; import Spinner from './Spinner'; export default class SectionLoader extends React.PureComponent { render() { return ( <div className="center my4"> <Spinner /> </div> ); } }
UI/Buttons/ButtonStopWatch.js
Datasilk/Dedicate
import React from 'react'; import { View, TouchableOpacity} from 'react-native'; import {G, Path} from 'react-native-svg'; import SvgIcon from 'ui/SvgIcon'; import AppStyles from 'dedicate/AppStyles'; export default class ButtonStopWatch extends React.Component { constructor(props){ super(props); } ...
web/src/App.js
cardigann/cardigann
import React, { Component } from 'react'; import { PageHeader, Button, Glyphicon } from 'react-bootstrap'; import CopyToClipboard from 'react-copy-to-clipboard'; import './App.css'; import AddIndexer from "./AddIndexer"; import IndexerList from "./IndexerList"; import ConfigModal from "./ConfigModal"; import SearchMod...
docs/src/app/components/pages/components/AppBar/Page.js
lawrence-yu/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import appBarReadmeText from './README'; import AppBarExampleIcon from './ExampleI...
src/Row.js
dozoisch/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import elementType from 'react-prop-types/lib/elementType'; import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils'; const propTypes = { componentClass: elementType, }; const defaultProps = { componentClass: 'div', }; class Row ...
src/svg-icons/maps/local-post-office.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalPostOffice = (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> ); MapsLocalPostOff...
tests/flow/react/createElementRequiredProp_string.js
Pajn/prettier
// @flow import React from 'react'; class Bar extends React.Component { props: { test: number, }; render() { return ( <div> {this.props.test} </div> ) } } class Foo extends React.Component { render() { const Cmp = Math.random() < 0.5 ? 'div' : Bar; return (<Cmp/>); ...
app/components/Pages/AddMatch.js
alexpell00/FRCUltimateManager
/* * @Author: alexpelletier * @Date: 2016-03-20 16:24:37 * @Last Modified by: alexpelletier * @Last Modified time: 2016-03-24 05:38:31 */ import React from 'react'; import request from 'superagent'; import Select from 'react-select'; import { Link, hashHistory } from 'react-router'; // import ScemaDataEntryRow fr...
client/node_modules/uu5g03/dist-node/bricks/dropdown-item.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, ContentMixin} from '../common/common.js'; import Link from './link.js'; import Span from './span.js'; import './dropdown-item.less' export default React.createClass({ //@@viewOn:mixins mixins: [ BaseMixin, ElementaryMixin, ContentMixin ...
src/svg-icons/av/pause.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPause = (props) => ( <SvgIcon {...props}> <path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/> </SvgIcon> ); AvPause = pure(AvPause); AvPause.displayName = 'AvPause'; AvPause.muiName = 'SvgIcon'; export default AvP...
src/svg-icons/communication/screen-share.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationScreenShare = (props) => ( <SvgIcon {...props}> <path d="M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.11-.9-2-2-2H4c-1.11 0-2 .89-2 2v10c0 1.1.89 2 2 2H0v2h24v-2h-4zm-7-3.53v-2.19c-2.78 0-4.61.85-6 2.72.56...