path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
resource/js/components/SearchPage/SearchResultList.js
kyonmm/crowi
import React from 'react'; import PageBody from '../Page/PageBody.js'; export default class SearchResultList extends React.Component { constructor(props) { super(props); this.getHighlightBody = this.getHighlightBody.bind(this); } getHighlightBody(body) { let returnBody = body; this.props.sea...
FoguangTemple_web/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
sozoStudio/sozoStudio.github.io
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'));
lab4/src/js/main-component.react.js
BJCheng/cs554-assignments
import React from 'react'; import ReactDOM from 'react-dom'; import Contacts from './contacts'; // import bootstrap from '../../node_modules/bootstrap/dist/css/bootstrap.css'; // import style from './style.css'; ReactDOM.render(<Contacts className="container"/>, document.getElementById('root'));
src/main/js/root/containers/Root.dev.js
Bernardo-MG/dreadball-toolkit-webpage
import React from 'react'; import PropTypes from 'prop-types'; import { Provider } from 'react-redux'; import routes from 'routes'; import { Router } from 'react-router'; import { IntlProvider } from 'react-intl'; import Cookie from 'js-cookie'; import DevTools from 'development/components/DevTools'; const locale = ...
docs/src/modules/components/DemoLanguages.js
kybarg/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Fade from '@material-ui/core/Fade'; import ToggleButton from '@material-ui/lab/ToggleButton'; import ToggleButtonGroup from '@material-ui/lab/ToggleButtonGroup'; import { JavaScript as JavaScript...
app/components/Nav.js
wederribas/battle-of-coders
import React from 'react'; import { NavLink } from 'react-router-dom'; export default function Nav() { return ( <ul className='nav'> <li> <NavLink exact activeClassName='active' to='/'>Home</NavLink> </li> <li> <NavLink activeClassName='active' to='/battle'>Battle</NavLink> ...
app/screens/Groups/Groups.js
mbernardeau/Road-to-Russia-2018
import React from 'react' import JoinGroup from './JoinGroup' import CreateGroup from './CreateGroup' import AdminGroups from './AdminGroups' import MyGroups from './MyGroups' import './groups.scss' const Groups = () => ( <div className="groups-container"> <MyGroups /> <JoinGroup /> <CreateGroup /> ...
app/containers/HomePage/index.js
rajeshbhatt/shopping-cart-redux
/* * HomePage * * This is the first thing users see of our App, at the '/' route */ import React from 'react'; import Helmet from 'react-helmet'; import { FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import { makeSelectRepos, mak...
assets/js/components/CopyModal.js
basarevych/webfm
import React from 'react'; import PropTypes from 'prop-types'; import { Map } from 'immutable'; import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap'; import { Form, FormGroup, FormText, Label, Col, Input, InputGroup, InputGroupAddon } from 'reactstrap'; import { FaFolderO, FaFileO, FaCog } fr...
js/App.js
GoldenOwlAsia/cooking-app
import React, { Component } from 'react'; import { StyleSheet } from 'react-native'; import CodePush from 'react-native-code-push'; import { Container, Content, Text, View } from 'native-base'; import Modal from 'react-native-modalbox'; import AppNavigator from './AppNavigator'; import ProgressBar from './components...
src/components/sidebar/index.js
Maxpsc/Ocean
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { Link, withRouter } from 'react-router-dom'; import { changeStyle } from 'src/redux/styleReducer'; import { avatarUrl } from 'src/host'; import Subheader from 'material-ui/Subheader'; im...
src/svg-icons/editor/short-text.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorShortText = (props) => ( <SvgIcon {...props}> <path d="M4 9h16v2H4zm0 4h10v2H4z"/> </SvgIcon> ); EditorShortText = pure(EditorShortText); EditorShortText.displayName = 'EditorShortText'; EditorShortText...
app/components/PopulatedPayment.js
cqlanus/bons
import React from 'react' import { connect } from 'react-redux' import { putOrder } from '../reducers/orders' import { browserHistory, Link } from 'react-router' // import { putPayment } from '../reducers/payment' /// correct this const mapStateToProps = (state) => ({ payment: state.payment }) const mapDispatchToPr...
admin/template/js/jcrop/jquery.min.js
cnb/GetSimpleCMS
/*! 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...
examples/huge-apps/components/Dashboard.js
RickyDan/react-router
import React from 'react'; import { Link } from 'react-router'; class Dashboard extends React.Component { render () { var { courses } = this.props; return ( <div> <h2>Super Scalable Apps</h2> <p> Open the network tab as you navigate. Notice that only the amount of y...
actor-sdk/sdk-web/src/components/Sidebar.react.js
ljshj/actor-platform
/* * Copyright (C) 2015-2016 Actor LLC. <https://actor.im> */ import { isFunction } from 'lodash'; import React, { Component } from 'react'; import { Container } from 'flux/utils'; import DelegateContainer from '../utils/DelegateContainer'; import DefaultRecent from './sidebar/Recent.react'; import DialogStore fro...
src/svg-icons/communication/screen-share.js
andrejunges/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...
ajax/libs/babel-core/6.1.12/browser.min.js
bootcdn/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;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.babel=t()}}(function(){var t,e,n;return function r(t,...
web/src/components/Home.js
jinghang/react-todo-demo
import React from 'react' const Home = () => ( <div> <h2>Home!!!</h2> </div> ) export default Home
src/modules/editor/components/blocks/ImageBlockLoader/ImageBlockLoader.js
CtrHellenicStudies/Commentary
import React from 'react'; import autoBind from 'react-autobind'; class ImageBlockLoader extends React.Component { constructor(props) { super(props); autoBind(this); } renderLoading() { if (this.props.progress === 100) { return ( <span> Processing image ... </span> ); } return ( ...
frontend/routes.js
anabiozz/blog
import React from 'react'; import IndexRoute from 'react-router/lib/IndexRoute'; // import IndexRedirect from 'react-router/lib/IndexRedirect'; import Route from 'react-router/lib/Route'; //Layouts import Layout from './containers/Layout'; //containers import Login from './containers/Login'; import LocalAuth from './co...
src/app/presentation/view/components/TitleBar.js
RPallas92/GrausJS
/** * The MIT License (MIT) * * Copyright (c) 2016 Ricardo Pallas * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to...
examples/query-params/app.js
Jonekee/react-router
import React from 'react'; import { Router, Route, Link } from 'react-router'; var User = React.createClass({ render() { var { query } = this.props.location; var age = query && query.showAge ? '33' : ''; var { userID } = this.props.params; return ( <div className="User"> <h1>User id: {u...
ajax/libs/styled-components/3.3.3-3/styled-components.min.js
seogi1004/cdnjs
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t(e.styled={},e.React)}(this,function(e,t){"use strict";var r="default"in t?t.default:t,n=/([A-Z])/g;var a=function(e){return e.replace(n,"-$1").toLowerCase...
src/toolPages/automation.js
kura52/sushi-browser
window.debug = require('debug')('info') // require('debug').enable("info") import {ipcRenderer as ipc} from './ipcRenderer' import React from 'react'; import ReactDOM from 'react-dom'; import uuid from 'node-uuid'; import Selection from '../render/react-selection/indexTable'; import path from 'path'; const PubSub = req...
src/parser/shaman/elemental/modules/talents/TotemMastery.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBo...
src/components/video_list.js
naveensoman/ReactYoutube
import React from 'react'; import VideoListItem from './video_list_item'; const VideoList = (props) => { const videoItems = props.videos.map((video) => { return ( <VideoListItem onVideoSelect={props.onVideoSelect} key={video.etag} video={video} /> ); }); return( <ul ...
src/views/ContractBusiness/Payment/ApplyPayment.js
bruceli1986/contract-react
import React from 'react' import PageHeader from 'components/PageHeader' import PaymentBasicInfoForm from 'components/PaymentBasicInfoForm' import PaymentDetailsForm from 'components/PaymentDetailsForm' import FileUpload from 'components/FileUpload' import TaskApplyForm from 'components/TaskApplyForm' import formatter ...
src/components/Link/InternalLink.js
cityofsurrey/polltal-app
import React from 'react' import PropTypes from 'prop-types' import Link from './Link' /** * Link to use for internal purposes, e.g. openning a modal */ const InternalLink = ({ children, onClick, style }) => ( <Link onClick={(event) => { event.preventDefault() onClick() }} style={style} ...
client/src/components/Header/components/Login.js
pahosler/freecodecamp
import React from 'react'; import PropTypes from 'prop-types'; import { Button } from '@freecodecamp/react-bootstrap'; import { Link } from 'gatsby'; import './login.css'; function Login({ children, ...restProps }) { return ( <Link to='/signin'> <Button {...restProps} bsStyle='default' ...
src/components/swatches/spec.js
casesandberg/react-color
/* global test, jest, expect */ import React from 'react' import renderer from 'react-test-renderer' import { mount } from 'enzyme' import * as color from '../../helpers/color' import Swatches from './Swatches' import SwatchesColor from './SwatchesColor' import SwatchesGroup from './SwatchesGroup' import { Swatch } f...
examples/js/shopping-list-redux/client/components/StaticImage.js
reimagined/resolve
import React from 'react' import { Image } from 'react-bootstrap' import { useStaticResolver } from '@resolve-js/react-hooks' const StaticImage = ({ src, ...otherProps }) => { const resolveStatic = useStaticResolver() return <Image {...otherProps} src={resolveStatic(src)} /> } export { StaticImage }
ext/packages/sencha-core/test/specs/data/Model.js
TUDOCK/tudockblog-extjs-example-mvvm
describe("Ext.data.Model", function() { beforeEach(function() { Ext.ClassManager.enableNamespaceParseCache = false; Ext.data.Model.schema.setNamespace('spec'); }); afterEach(function() { Ext.ClassManager.enableNamespaceParseCache = true; Ext.data.Model.schema.clear...
src/modules/background/components/FullscreenImage/index.js
emadalam/mesmerized
import React, { Component } from 'react'; import Image from '@components/Image'; import './style.css'; export const IMAGE_TYPE = { main: 'main', placeholder: 'placeholder' }; class FullScreenImage extends Component { state = { isLoading: true, }; handlePhotoLoad = (type = IMAGE_TYPE.main)...
app/src/js/components/settings/Header.js
legendary-code/chaos-studio-web
let React = require('react'); class Header extends React.Component { render() { return ( <label className="font-setting-subhead settings-header">{this.props.label}</label> ) } } Header.propTypes = { label: React.PropTypes.string.isRequired }; module.exports = Hea...
js-old/src/modals/VaultAccounts/vaultAccounts.spec.js
destenson/ethcore--parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any lat...
linksa/out.js
liuhui219/linksa
import React from 'react'; import { View, StyleSheet, Navigator, TouchableOpacity, TouchableHighlight, Text, Modal, TextInput, ScrollView, ActivityIndicator, InteractionManager, Dimensions, DatePickerAndroid, TimePickerAndroid, ToastAndroid, BackAndroid, Image, RefreshControl, ListView, } from '...
src/components/CountyMap/CountyMap.js
Swizec/h1b-software-salaries
import React, { Component } from 'react'; import * as d3 from 'd3'; import * as topojson from 'topojson'; import _ from 'lodash'; import County from './County'; class CountyMap extends Component { // Setup default D3 objects // projection - defines our geo projection, how the map looks // geoPath - cal...
src/svg-icons/maps/directions-subway.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsSubway = (props) => ( <SvgIcon {...props}> <path d="M12 2c-4.42 0-8 .5-8 4v9.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h12v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V6c0-3.5-3.58-4-8-4zM7.5 17c-.83 0-1.5-.67-1.5...
engine/screens/repeat-screen.js
ReddogStone/twinkle
var RepeatScreen = (function(exports) { exports.make = function(screenTemplate, termCondition) { return { init: function(canvas, prevScreen, prevState, prevTermSignal) { var wrapper = { react: function(screen, res) { if (res.term) { if (termCondition && termCondition(res.term)) { ret...
ajax/libs/js-data/1.0.0-beta.1/js-data-debug.js
mathiasrw/cdnjs
/** * @author Jason Dobry <jason.dobry@gmail.com> * @file dist/js-data-debug.js * @version 1.0.0-beta.1 - Homepage <http://www.js-data.io/> * @copyright (c) 2014 Jason Dobry * @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE> * * @overview Data store. */ !function(e){if("object"==typeof exports&&"u...
src/components/Input/Input.js
titon/toolkit
/** * @copyright 2010-2017, The Titon Project * @license http://opensource.org/licenses/BSD-3-Clause * @link http://titon.io * @flow */ import React from 'react'; import PropTypes from 'prop-types'; import formatInputName from '../../utility/formatInputName'; import emitEvent from '../../utility/emit...
ajax/libs/angular.js/0.9.9/angular-scenario.js
suy/cdnjs
/*! * jQuery JavaScript Library v1.4.2 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
js-old/src/ui/IdentityName/identityName.spec.js
destenson/ethcore--parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any lat...
app/index.js
swiecki/strigine
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, hashHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import routes from './routes'; import configureStore from './store/configureStore'; import './app.global.c...
src/svg-icons/navigation/fullscreen.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationFullscreen = (props) => ( <SvgIcon {...props}> <path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/> </SvgIcon> ); NavigationFullscreen = pure(NavigationFullscre...
packages/material-ui-icons/src/InvertColorsOffSharp.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M12 5.1v4.05l7.4 7.4c1.15-2.88.59-6.28-1.75-8.61L12 2.27 8.56 5.71l1.41 1.41L12 5.1zM4.4 4.37L2.99 5.78l2.78 2.78c-2.54 3.14-2.35 7.75.57 10....
plugins/Logs/js/components/app.js
NebulousLabs/Sia-UI
import React from 'react' import FilterControls from '../containers/filtercontrols.js' import LogView from '../containers/logview.js' import { hot } from 'react-hot-loader' const App = () => ( <div> <FilterControls /> <LogView /> </div> ) export default hot(module)(App)
ajax/libs/vue/2.0.0-rc.4/vue.common.js
redmunds/cdnjs
'use strict'; /* */ /** * Convert a value to a string that is actually rendered. */ function _toString (val) { return val == null ? '' : typeof val === 'object' ? JSON.stringify(val, null, 2) : String(val) } /** * Convert a input value to a number for persistence. * If the conversion fails...
src/Label.js
Azerothian/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...
ajax/libs/prop-types/15.5.2/prop-types.min.js
ahocevar/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.PropTypes=f()}}(function(){return function e(t,n,r){fun...
ajax/libs/swagger-ui/3.4.5/swagger-ui-standalone-preset.js
joeyparrish/cdnjs
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.SwaggerUIStandalonePreset=e():t.SwaggerUIStandalonePreset=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={...
frontend/src/components/thread/paginator.js
1905410/Misago
/* jshint ignore:start */ import React from 'react'; import { Link } from 'react-router'; // jshint ignore:line export default function(props) { return <nav className="misago-pagination pull-left"> <Pager {...props} /> <More more={props.posts.more} /> </nav>; } export function Pager(props) { if (props.p...
ajax/libs/vue/2.2.5/vue.js
jdh8/cdnjs
/*! * Vue.js v2.2.5 * (c) 2014-2017 Evan You * Released under the MIT License. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global.Vue = factory()); }(this, (function ()...
ajax/libs/video.js/7.4.1/alt/video.core.novtt.js
cdnjs/cdnjs
/** * @license * Video.js 7.4.1 <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 Versi...
src/Form.js
apkiernan/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import elementType from 'react-prop-types/lib/elementType'; import { bsClass, prefix, splitBsProps } from './utils/bootstrapUtils'; const propTypes = { horizontal: React.PropTypes.bool, inline: React.PropTypes.bool, componentClass: elementType, }; ...
src/containers/About/About.js
delwiv/saphir
import React, { Component } from 'react'; import Helmet from 'react-helmet'; import MiniInfoBar from 'components/MiniInfoBar/MiniInfoBar'; import { isLoaded as isInfoLoaded, load as loadInfo } from 'redux/modules/info'; import { asyncConnect } from 'redux-connect'; @asyncConnect([{ promise: ({ store: { dispatch, get...
client/router/index.js
wheelcomplex/go-starter-kit
import React from 'react'; import { render } from 'react-dom'; import Router from 'react-router'; import { Provider } from 'react-redux'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; import { createHistory } from 'history'; import toString from './toString'; import { Promise } from 'when...
docs/src/pages/components/menus/MenuPopupState.js
kybarg/material-ui
import React from 'react'; import Button from '@material-ui/core/Button'; import Menu from '@material-ui/core/Menu'; import MenuItem from '@material-ui/core/MenuItem'; import PopupState, { bindTrigger, bindMenu } from 'material-ui-popup-state'; function MenuPopupState() { return ( <PopupState variant="popover" p...
src/svg-icons/content/font-download.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentFontDownload = (props) => ( <SvgIcon {...props}> <path d="M9.93 13.5h4.14L12 7.98zM20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-4.05 16.5l-1.14-3H9.17l-1.12 3H5.96l5.11-13...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/CssInclusion.js
Antontsyk/react_vk
import React from 'react' import './assets/style.css' export default () => ( <p id="feature-css-inclusion">We love useless text.</p> )
app/javascript/nav/index.js
DaveSpivey/muttwhat
import React from 'react'; import ReactDOM from 'react-dom'; import NavBar from './NavBar.jsx'; document.addEventListener('DOMContentLoaded', () => { const node = document.getElementById('nav-bar'); const data = JSON.parse(node.getAttribute('data')); ReactDOM.render( <NavBar loggedIn={ data.loggedIn } ...
src/js/SelectionControls/__tests__/SwitchThumb.js
lwhitlock/grow-tracker
/* eslint-env jest */ jest.unmock('../SwitchThumb'); import React from 'react'; import { renderIntoDocument, findRenderedComponentWithType, scryRenderedComponentsWithType, } from 'react-dom/test-utils'; import SwitchThumb from '../SwitchThumb'; import AccessibleFakeInkedButton from '../../Helpers/AccessibleFake...
blueocean-material-icons/src/js/components/svg-icons/device/gps-off.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const DeviceGpsOff = (props) => ( <SvgIcon {...props}> <path d="M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06c-1.13.12-2.19.46-3.16.97l1.5 1.5C10.16 5.19 11.06 5 12 5c3.87 0 7 3.13 7 7 0 .94-.19 1.84-.52 2.65l1.5 1.5c.5-.96.84-2.02.97-3.15H23v-2...
frontend/src/components/recipes/edit/components/ControlWrapper.js
jf248/scrape-the-plate
import React from 'react'; import classNames from 'classnames'; import { withStyles } from '@material-ui/core'; const styles = theme => ({ root: { marginBottom: theme.spacing.unit * 3, }, }); ControlWrapper.defaultProps = {}; function ControlWrapper(props) { const { children, classes, className: classNameP...
examples/websdk-samples/LayerReactNativeSample/index.ios.js
layerhq/layer-js-sampleapps
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, View, Modal, StatusBar } from 'react-native'; import { Client, Query } from 'layer-websdk/index-react-native.js'; import LayerHelper from './sr...
test/components/row-test.js
josephquested/plainscreen
import { expect } from 'chai' import { shallow, render, mount } from 'enzyme' import emptyTemplate from '../../src/patterns/empty-template' import React from 'react' import Row from '../../src/components/board/Row' describe('Row', () => { it('should generate a row with an id', () => { const template = emptyTemp...
docs/src/app/components/pages/components/Tabs/ExampleSimple.js
kasra-co/material-ui
import React from 'react'; import {Tabs, Tab} from 'material-ui/Tabs'; import Slider from 'material-ui/Slider'; const styles = { headline: { fontSize: 24, paddingTop: 16, marginBottom: 12, fontWeight: 400, }, }; function handleActive(tab) { alert(`A tab with this route property ${tab.props['data...
src/main.js
salvocanna/shotio
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import './styles/main.scss' import { bindStoreToSocket } from './store/clientSocketMiddleware' // Store Initialization // ------------------------------------ const store = createStore(window.__INITIAL_STATE__) //...
static/src/app.js
andribja/airhornbot
// @flow import React from 'react'; import ReactDOM from 'react-dom'; import Layout from './components/Layout'; import './images/favicon.png'; import './images/og-facebook.png'; import './images/og-twitter.png'; ReactDOM.render( <Layout />, document.getElementById('app') );
ajax/libs/omniscient/3.0.0/omniscient.min.js
jonathantneal/cdnjs
/** * Omniscient.js v2.1.0 * Authors: @torgeir,@mikaelbr ***************************************/ !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...
packages/material-ui-icons/legacy/PlaceSharp.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" /></React.Fragment> , 'Place...
src/svg-icons/image/blur-off.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBlurOff = (props) => ( <SvgIcon {...props}> <path d="M14 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm-.2 4.48l.2.02c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5l.02.2c.09.67.61 1.19 1.28 1.2...
frontend/src/components/rightbar.js
wilsonwen/kanmeiju
import React, { Component } from 'react'; import { Link } from 'react-router'; import './rightbar.css' class Rightbar extends Component { render() { return ( <div id="rightbar-nav" className="affix hidden-xs"> <nav className="navbar"> <div className="container"> <div className="na...
ajax/libs/oojs-ui/0.16.1/oojs-ui-windows.js
brix/cdnjs
/*! * OOjs UI v0.16.1 * https://www.mediawiki.org/wiki/OOjs_UI * * Copyright 2011–2016 OOjs UI Team and other contributors. * Released under the MIT license * http://oojs.mit-license.org * * Date: 2016-03-01T21:50:12Z */ ( function ( OO ) { 'use strict'; /** * An ActionWidget is a {@link OO.ui.ButtonWidget ...
packages/babel-plugin-transform-react-constant-elements/test/fixtures/constant-elements/pure-expression-whitelist-member/output.js
PolymerLabs/babel
import Intl from 'react-intl'; var _ref = <Intl.FormattedMessage id="someMessage.foo" defaultMessage={"Some text, " + "and some more too. {someValue}"} description="A test message for babel." values={{ someValue: "A value." }} />; var Foo = React.createClass({ render: function () { return _ref; } });
test/components/Counter.spec.js
lmatteis/peer-tweet
/* eslint no-unused-expressions: 0 */ import { expect } from 'chai'; import { spy } from 'sinon'; import React from 'react'; import { renderIntoDocument, scryRenderedDOMComponentsWithTag, findRenderedDOMComponentWithClass, Simulate } from 'react-addons-test-utils'; import Counter from '../../app/components/Coun...
src/svg-icons/action/alarm-on.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAlarmOn = (props) => ( <SvgIcon {...props}> <path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.0...
src/svg-icons/action/account-box.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccountBox = (props) => ( <SvgIcon {...props}> <path d="M3 5v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2zm12 4c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm-9 8c0-2 4-3...
files/css3pie/2.0b1/PIE_IE678_uncompressed.js
justincy/jsdelivr
/* PIE: CSS3 rendering for IE Version 2.0beta1 http://css3pie.com Dual-licensed for use under the Apache License Version 2.0 or the General Public License (GPL) Version 2. */ (function( win, doc ) { var PIE = win[ 'PIE' ] || ( win[ 'PIE' ] = {} ); /** * Simple utility for merging objects * @param {Object} obj1 Th...
examples/custom-server-hapi/pages/b.js
giacomorebonato/next.js
import React from 'react' export default () => <div>b</div>
ajax/libs/rollbar.js/2.3.7/rollbar.noconflict.umd.js
joeyparrish/cdnjs
(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 === 'object') exports["rollbar"] = factory(); else root["rollb...
src/svg-icons/action/settings-backup-restore.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsBackupRestore = (props) => ( <SvgIcon {...props}> <path d="M14 12c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm-2-9c-4.97 0-9 4.03-9 9H0l4 4 4-4H5c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.51 0-2....
app/onlineProjects/OnlineProjects.js
stefanKuijers/aw-fullstack-app
// @flow import React, { Component } from 'react'; import { remote, shell } from 'electron'; import {Card, CardTitle, CardText} from 'material-ui/Card'; import Subheader from 'material-ui/Subheader'; import {List, ListItem} from 'material-ui/List'; import Avatar from 'material-ui/Avatar'; import FileFolder from 'mater...
src/docs/components/anchor/AnchorDoc.js
grommet/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Box from 'grommet/components/Box'; import Anchor from 'grommet/components/Anchor'; import Button from 'grommet/components/Button'; import EditIcon from 'grommet/components/icons/base/Edit'; import Comp...
ajax/libs/react-widgets/4.0.0-beta.2/react-widgets-simple-number.js
jonobr1/cdnjs
/*! (c) 2014 - present: Jason Quense | https://github.com/jquense/react-widgets/blob/master/License.txt */ /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ ...
tests/group-reactive.js
VeliovGroup/Meteor-flow-router-title
import { Meteor } from 'meteor/meteor'; import { FlowRouter } from 'meteor/ostrio:flow-router-extra'; import { ReactiveVar } from 'meteor/reactive-var'; if (Meteor.isServer) { return; } const groupReactiveStrTitle = 'Reactive GROUP TITLE'; const groupReactiveStrTitleNew = 'NEW Reactive GROUP TITLE'; const ...
files/instantsearch.js/0.12.3/instantsearch.min.js
MadhavBitra/jsdelivr
/*! instantsearch.js 0.12.3 | © 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...
examples/full-example/src/isomorphic/variations/bucket_D/components/dropdown.js
yahoo/mendel
/* Copyright 2015, Yahoo Inc. Copyrights licensed under the MIT License. See the accompanying LICENSE file for terms. */ import React from 'react'; class Dropdown extends React.Component { render() { return ( <ul className="dropdown bucket_D"> <li>Option D one</li> ...
ajax/libs/highcharts/3.0.7/highcharts.src.js
mohitbhatia1994/cdnjs
// ==ClosureCompiler== // @compilation_level SIMPLE_OPTIMIZATIONS /** * @license Highcharts JS v3.0.7 (2013-10-24) * * (c) 2009-2013 Torstein Hønsi * * License: www.highcharts.com/license */ // JSLint options: /*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout...
docs/src/pages/customization/components/ClassNames.js
kybarg/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { withStyles } from '@material-ui/core/styles'; import Button from '@material-ui/core/Button'; // We can inject some CSS into the DOM. const styles = { root: { background: 'linear-gradient(45deg, #FE6B8B 30%, #FF8E53 9...
components/Typography/H5.js
AptoGen/AptoGen-Website
import React from 'react'; import PropTypes from 'prop-types'; import { COLORS, TYPEOGRAPHY, TEXTSIZE } from '../../lib/styles'; const H5 = ({ children, light, style }) => { const color = light ? COLORS.texts.primary.light : COLORS.texts.primary.dark; return ( <h5 style={style} > {children} <style ...
src/components/charts/charts/table/tr.js
noahehall/udacity-corporate-dashboard
import React from 'react'; export const Tr = ({ fields, filterable, length, id, idx, th }) => { const cells = []; let i = 0; if (th && length && id && filterable) while (i < length) { cells.push( <th key={`${id}${i}`}> <input className={i === length - 1 ? 'flt_s' : 'flt'} ...
source/ui/index.js
shaefer/ultimate-equipment-charts
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import {createStore, applyMiddleware} from 'redux'; import thunk from 'redux-thunk' import reducer from '../components/reducer' import stateDefault from '../model/UltimateEquipmentAppState' import App from '../componen...
src/templates/page-template.js
hb-gatsby/gatsby-starter-lumen
// @flow strict import React from 'react'; import { graphql } from 'gatsby'; import Layout from '../components/Layout'; import Sidebar from '../components/Sidebar'; import Page from '../components/Page'; import { useSiteMetadata } from '../hooks'; import type { MarkdownRemark } from '../types'; type Props = { data: ...
node_modules/react-router/es/IndexRedirect.js
angustas/company
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import Redirect from './Redirect'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes, string = _React$PropTypes.string, object = _React$PropTypes.object; /** * An <IndexRedir...
src/svg-icons/navigation/arrow-drop-down-circle.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowDropDownCircle = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 12l-4-4h8l-4 4z"/> </SvgIcon> ); NavigationArrowDropDownCircle =...
src/routes.js
adorris1/dorris-united
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import Router from 'react-routing/src/Router'; import http from './core/HttpClient'; import App from './components/App'; import ContentList from './components/ContentList'; import ContactPage from './components/ContactP...
app/components/Footer/index.js
boogunote/mevoco-client
import React from 'react'; import messages from './messages'; import A from 'components/A'; import styles from './styles.css'; import { FormattedMessage } from 'react-intl'; import LocaleToggle from 'containers/LocaleToggle'; function Footer() { return ( <footer className={styles.footer}> <section> ...
packages/material-ui-icons/src/BloodtypeOutlined.js
callemall/material-ui
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M9 16h6v2H9zm4-7h-2v2H9v2h2v2h2v-2h2v-2h-2z" /><path d="M12 2c-5.33 4.55-8 8.48-8 11.8 0 4.98 3.8 8.2 8 8.2s8-3.22 8-8.2c0-3.32-2.67-7.25-8-11.8zm0 18c-3.35 0-6-2.57-6-6.2 0-2.34 ...