path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
node_modules/yeoman-test/node_modules/inquirer/node_modules/rx/dist/rx.lite.js | tubook/generator-website-app | // Copyright (c) Microsoft, All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'function': true,
'object': true
};
function checkGlobal(value) {
return (value && value.Object === Object) ? value : null;
}
var freeExpor... |
src/js/components/MaskedInput/stories/Filtered.js | HewlettPackard/grommet | import React from 'react';
import { Box, Grommet, MaskedInput } from 'grommet';
import { grommet } from 'grommet/themes';
const data = {
Cummings: [
'a pretty day',
'i carry your heart with me',
'if you like my poems let them',
],
Chaucer: ["The Knight's Tale", 'The General Prologue', "The Friar's Ta... |
src/icons/IosSearchStrong.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosSearchStrong extends React.Component {
render() {
if(this.props.bare) {
return <g>
<path d="M344.5,298c15-23.6,23.8-51.6,23.8-81.7c0-84.1-68.1-152.3-152.1-152.3C132.1,64,64,132.2,64,216.3
c0,84.1,68.1,152... |
src/mobile/components/DrawerMenu/index.js | u-wave/web | import React from 'react';
import PropTypes from 'prop-types';
import { useTranslator } from '@u-wave/react-translate';
import Drawer from '@mui/material/Drawer';
import MenuList from '@mui/material/MenuList';
import MenuItem from '@mui/material/MenuItem';
import ListItemIcon from '@mui/material/ListItemIcon';
import L... |
docs/src/Routes.js | jakubsikora/react-bootstrap | import React from 'react';
import Root from './Root';
import HomePage from './HomePage';
import IntroductionPage from './IntroductionPage';
import GettingStartedPage from './GettingStartedPage';
import ComponentsPage from './ComponentsPage';
import SupportPage from './SupportPage';
import NotFoundPage from './NotFound... |
src/svg-icons/social/party-mode.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPartyMode = (props) => (
<SvgIcon {...props}>
<path d="M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 3c1.63 0 3.06.79 3.98 2H12c-1.66 0-3 1.34-3 3 0 .... |
src/icons/ScheduledIcon.js | resmio/mantecao | import React from 'react'
import Icon from '../Icon'
const ScheduledIcon = props =>
<Icon {...props}>
<g transform="translate(0, -1)">
<path d="M7.8 6.2L7.8 9.7M5.5 12.8L26.5 12.8M23.8 6.2L23.8 9.7M3 9C3 8.4 3.5 7.9 4 7.9L28 7.9C28.6 7.9 29 8.4 29 9L29 28C29 28.6 28.5 29 28 29L4 29C3.4 29 3 28.6 3 28L3 9ZM... |
components/Navbar.ios.js | kkwokwai22/snacktime | import React, { Component } from 'react';
import {
Text,
View,
Image,
TouchableHighlight
} from 'react-native';
import styles from '../styles.ios.js';
export default class Nav extends Component {
border(color) {
return {
borderColor: color,
borderWidth: 5,
}
}
render() {
return (
... |
src/config/routes.js | jmporchet/bravakin-client | import React from 'react';
import { Switch, Route } from 'react-router-dom';
import Authenticated from '../containers/Authenticated';
import Authorize from '../containers/Authorize';
import Homepage from '../components/Homepage';
const routes = (
<Switch>
<Route exact path="/sign-in" component={Homepage}/>
... |
wail-ui/components/sortDirection/sortIndicator.js | N0taN3rd/wail | import React from 'react'
import PropTypes from 'prop-types'
import SortDirection from './sortDirection'
import cn from 'classnames'
const SortIndicator = ({ sortDirection }) => {
const classNames = cn('sortHeader', {
'sortHeader--ASC': sortDirection === SortDirection.ASC,
'sortHeader--DESC': sortDirection =... |
src/app/components/containers/userLogin-form-container.js | ishaan-puniani/moopy-server | /**
* Created by ishaan.puniani on 2016-11-27.
*/
import React from 'react';
import {login, getProfile, register} from '../../api/user-api';
import {connect} from 'react-redux';
import {cookiesGet} from 'redux-cookies';
import store from '../../store';
const LoginFormContainer = React.createClass({
componentDidM... |
examples/js/column-filter/demo.js | neelvadgama-hailo/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import TextFilter from './text-filter';
import TextFilterWithDefaultValue from './text-filter-with-default-value';
import ProgrammaticallyTextFilter from './text-filter-programmatically';
import RegexFilter from './regex-filter';
import ProgrammaticallyRegexFilter from... |
src/index.js | Chewser/chewser_react | import React from 'react';
import ReactDom from 'react-dom';
import { Route, Router, browserHistory } from 'react-router';
import "./styles/style.css";
import Main from './components/Main/Main';
ReactDom.render(
<Router history={browserHistory}>
<Route path="/" component={Main} />
</Router>,
document.getEl... |
test/client/app/components/pages/admin/test-admin-u2f.js | LINKIWI/apache-auth | import {mount, shallow} from 'enzyme';
import React from 'react';
import request from 'browser-request';
import sinon from 'sinon';
import test from 'tape';
import AdminU2F from '../../../../../../src/client/app/components/pages/admin/admin-u2f';
const loading = (func) => func(() => {});
test('Security keys are load... |
app/javascript/flavours/glitch/components/short_number.js | Kirishima21/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { toShortNumber, pluralReady, DECIMAL_UNITS } from '../util/numbers';
import { FormattedMessage, FormattedNumber } from 'react-intl';
// @ts-check
/**
* @callback ShortNumberRenderer
* @param {JSX.Element} displayNumber Number to display
* @param... |
ajax/libs/react/0.12.0-rc1/react.js | thesandlord/cdnjs | /**
* React v0.12.0-rc1
*/
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.React=e()}}(function(){v... |
app/javascript/mastodon/containers/account_container.js | MastodonCloud/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { makeGetAccount } from '../selectors';
import Account from '../components/account';
import {
followAccount,
unfollowAccount,
blockAccount,
unblockAccount,
muteAc... |
client/src/components/helpers/ButtonSpacer.js | otavioarc/freeCodeCamp | import React from 'react';
function ButtonSpacer() {
return <div className='button-spacer' style={{ padding: '5px 0' }} />;
}
ButtonSpacer.displayName = 'ButtonSpacer';
export default ButtonSpacer;
|
blueocean-material-icons/src/js/components/svg-icons/device/signal-cellular-connected-no-internet-0-bar.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const DeviceSignalCellularConnectedNoInternet0Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M20 22h2v-2h-2v2zm0-12v8h2v-8h-2z"/>
</SvgIcon>
);
DeviceSignalCellularConnectedNoInternet0Bar.displayNam... |
src/Collapse.js | blue68/react-bootstrap | import React from 'react';
import Transition from 'react-overlays/lib/Transition';
import domUtils from './utils/domUtils';
import CustomPropTypes from './utils/CustomPropTypes';
import deprecationWarning from './utils/deprecationWarning';
import createChainedFunction from './utils/createChainedFunction';
let capitali... |
examples/SimpleExample/index.ios.js | Gabrn/react-native-persistent-job | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class SimpleExample extends Component {
render() {
return (
<View style={styles.conta... |
src/components/Pagination.js | fhelwanger/react-datatable | import React from 'react';
export default class Pagination extends React.Component {
handleClickPage(page, e) {
e.preventDefault();
if (page < 1) page = 1;
if (page > this.totalPages()) page = this.totalPages();
this.props.onChangePage(page - 1);
}
currentPage() {
return this.props.current... |
examples/star-wars/js/components/StarWarsApp.js | meteor/relay-runtime-query | /**
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNES... |
ajax/libs/phaser/2.0.7/custom/p2.js | boneskull/cdnjs | /**
* The MIT License (MIT)
*
* Copyright (c) 2013 p2.js authors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to ... |
src/js/components/app.js | chuckharmston/react-boilerplate | var React = require('react');
var Router = require('react-router');
var AppFooter = require('./footer');
var AppHeader = require('./header');
var RouteHandler = Router.RouteHandler;
var App = React.createClass({
render: function () {
return (
<body>
<header>
<AppHeader/>
</head... |
web/vendor/flot/jquery.js | dicePrime/b2 | /*!
* jQuery JavaScript Library v1.8.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time)
*/
(function(... |
stories/CurrentRefinements.stories.js | algolia/react-instantsearch | import React from 'react';
import { storiesOf } from '@storybook/react';
import {
CurrentRefinements,
Menu,
NumericMenu,
HierarchicalMenu,
Panel,
RangeInput,
RefinementList,
ToggleRefinement,
} from 'react-instantsearch-dom';
import { WrapWithHits } from './util';
const stories = storiesOf('CurrentRefi... |
example/pages/tab/navbar_auto.js | n7best/react-weui | import React from 'react';
import { Tab, NavBarItem, Article } from '../../../build/packages';
export default class NavBarAutoDemo extends React.Component {
render() {
return (
<Tab type="navbar">
<NavBarItem label="Nav1">
<Article>
<h... |
ajax/libs/IndexedDBShim/3.0.0-rc.1/indexeddbshim-noninvasive.js | wout/cdnjs | (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"){g=self}else{g=this}g.setGlobalVars ... |
docs/gatsby-config.js | apollostack/apollo-client | const themeOptions = require('gatsby-theme-apollo-docs/theme-options');
module.exports = {
pathPrefix: '/docs/react',
plugins: [
{
resolve: 'gatsby-theme-apollo-docs',
options: {
...themeOptions,
root: __dirname,
subtitle: 'Client (React)',
description: 'A guide to u... |
src/routes/property/index.js | medevelopment/updatemeadmin |
import React from 'react';
import Property from './Property';
import Layout from '../../components/Layout';
export default {
path: '/property/:id',
action({ params }) {
return { title: 'Property', component: <Layout><Property params={params} /></Layout> };
}
};
|
node_modules/react-bootstrap/es/ModalFooter.js | darklilium/Factigis_2 | 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 ... |
app/components/app.js | matthewglover/react-redux-material-ui | import React from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import Paper from 'material-ui/Paper';
import Header from './header';
import VisibleTodoList from '../containers/visible_todo_list';
const style = {
padding: '10px',
display: 'flex',
flexDirection: 'column',
alignIt... |
ajax/libs/react-virtualized/2.4.0/react-virtualized.min.js | joeyparrish/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports["react-virtualized"]=t(require("react")):e["react-virtualized"]=t(e.React)}(this,function(e){return function(e){function t(r){if(... |
ajax/libs/reactive-coffee/1.2.0/reactive-coffee.min.js | Eruant/cdnjs | (function(){var a,b=[].slice,c={}.hasOwnProperty,d=function(a,b){function d(){this.constructor=a}for(var e in b)c.call(b,e)&&(a[e]=b[e]);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a};a=function(a,c){var e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V... |
client/src/components/PublicationStatus/PublicationStatus.js | zerolab/wagtail | import PropTypes from 'prop-types';
import React from 'react';
/**
* Displays the publication status of a page in a pill.
*/
const PublicationStatus = ({ status }) => (
<span className={`o-pill c-status${status.live ? ' c-status--live' : ''}`}>
{status.status}
</span>
);
PublicationStatus.propTypes = {
st... |
src/screens/plan/components/PlanDetail/PlanDetail.js | vio-lets/Larkyo-Client | import React from 'react';
import './PlanDetail.css';
export default class PlanDetail extends React.Component {
constructor() {
super();
this.state = {
planTemplate: [
{
id: "1", day: "1", plan: [{destination: "Auckland", activity: ["Auckland Zoo"]}]
... |
app/src/assets/js/components/views/player.js | Huskie/ScottishPremiershipData | /* Player view component */
import React from 'react';
import firebaseApp from '../../modules/firebase';
import PlayerHeroComponent from '../global/player-hero';
import PlayerPerformanceStatsComponent from '../global/player-performance-stats';
import PlayerPersonalDetailsComponent from '../global/player-personal-deta... |
ajax/libs/angular-google-maps/2.0.5/angular-google-maps.js | wallin/cdnjs | /*! angular-google-maps 2.0.5 2014-10-23
* AngularJS directives for Google Maps
* git: https://github.com/angular-ui/angular-google-maps.git
*/
(function() {
String.prototype.contains = function(value, fromIndex) {
return this.indexOf(value, fromIndex) !== -1;
};
String.prototype.flare = function(flare)... |
src/svg-icons/navigation/chevron-left.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationChevronLeft = (props) => (
<SvgIcon {...props}>
<path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/>
</SvgIcon>
);
NavigationChevronLeft = pure(NavigationChevronLeft);
NavigationChevronLeft.dis... |
stories/index.js | shawngustaw/material-ui-password-field | /**
* Notice: Some code was adapted from Material-UI's TextField component.
* Copyright (c) 2014 Call-Em-All (https://github.com/callemall/material-ui)
*/
import React from 'react'
import { storiesOf, action, linkTo } from '@kadira/storybook'
import lightBaseTheme from 'material-ui/styles/baseThemes/lightBas... |
app/react-icons/fa/database.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaDatabase extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m20.1 17.1q5.3 0 9.9-0.9t7.3-2.9v3.8q0 1.6-2.3 2.9t-6.3 2.1-8.6 0.8-8.6-0.8... |
docs/app/Examples/collections/Table/Types/TableExampleStriped.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Icon, Table } from 'semantic-ui-react'
const TableExampleStriped = () => {
return (
<Table celled striped>
<Table.Header>
<Table.Row>
<Table.HeaderCell colSpan='3'>Git Repository</Table.HeaderCell>
</Table.Row>
</Table.Header>
<Table... |
example/examples/MapStyle.js | tt-sport-mobile/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Dimensions,
} from 'react-native';
import MapView from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4324;
const LATITUDE_DELTA = 0.0922;
const... |
test/PositionSpec.js | omerts/react-bootstrap | import pick from 'lodash/object/pick';
import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Position from '../src/Position';
import overlayPositionUtils from '../src/utils/overlayPositionUtils';
import {render} from './helpers';
describe('Position', function () {
it('Should outp... |
src/account-info/AccountDetailsScreen.js | nashvail/zulip-mobile | /* @flow */
import React, { Component } from 'react';
import { connect } from 'react-redux';
import type { Auth, Actions, UserType } from '../types';
import boundActions from '../boundActions';
import { getAuth, getAccountDetailsUser } from '../selectors';
import { Screen } from '../common';
import AccountDetails from... |
packages/material-ui-icons/src/Search.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 ... |
docusaurus/src/theme/DocItem/HistoryPage.js | BlankOn/wiki | import React from 'react';
const HistoryPage = ({historyUrl}) => (
<a
href={historyUrl}
target="_blank"
style={{marginRight: '15px'}}
rel="noreferrer noopener">
<svg
fill="currentColor"
height="1.2em"
width="1.2em"
preserveAspectRatio="xMidYMid meet"
viewBox="0 0 16 ... |
ajax/libs/cyclejs-core/0.10.0/cycle.js | BobbieBel/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.Cycle=e()}}(function(){var define,module,exports;retu... |
tosort/2016/jspm/lib_react_102/index.js | Offirmo/html_tests | import React from 'react';
import ReactDOM from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin'
import { applyMiddleware, createStore } from 'redux'
import { isFSA } from 'flux-standard-action'
import createLogger from 'redux-logger';
import { Provider } from 'react-redux'
import {Iterable} from ... |
assets/jqwidgets/demos/react/app/tabs/scrolling/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxTabs from '../../../jqwidgets-react/react_jqxtabs.js';
import JqxRadioButton from '../../../jqwidgets-react/react_jqxradiobutton.js';
class App extends React.Component {
componentDidMount() {
this.refs.rightButton.on('checked', (event)... |
src/svg-icons/notification/disc-full.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationDiscFull = (props) => (
<SvgIcon {...props}>
<path d="M20 16h2v-2h-2v2zm0-9v5h2V7h-2zM10 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 10c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"/>
... |
fields/types/cloudinaryimages/CloudinaryImagesColumn.js | concoursbyappointment/keystoneRedux | import React from 'react';
import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
const moreIndicatorStyle = {
color: '#888',
fontSize: '.8rem',
};
var Cloudin... |
src/components/Header/Header.js | kswang2400/WOMO | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './Header.less';
import withStyles from '../../decorators/withStyles';
import Link from '../../utils/Link';
import Navigation from '../Navigation';
@withStyles(styles)
class Header {
render() {
... |
styleguide/sections/Forms.js | tomgatzgates/loggins | /* eslint no-alert: 0*/
import React, { Component } from 'react';
import Section from '../components/Section';
import MaskedFormInput from 'components/MaskedFormInput/MaskedFormInput';
import EmailMultiInput from 'components/EmailMultiInput/EmailMultiInput';
import SelectableInput from 'components/SelectableInput/S... |
react-flux-mui/js/material-ui/src/svg-icons/editor/format-list-numbered.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatListNumbered = (props) => (
<SvgIcon {...props}>
<path d="M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z"/... |
docs/app/Examples/modules/Accordion/index.js | koenvg/Semantic-UI-React | import React from 'react'
import Types from './Types'
import Variations from './Variations'
import Usage from './Usage'
const AccordionExamples = () => (
<div>
<Types />
<Variations />
<Usage />
</div>
)
export default AccordionExamples
|
src/common/components/RouteBackground.js | killpowa/Twickt-Launcher | import React from 'react';
const RouteBackground = () => {
return (
<div
css={`
position: absolute;
background: ${props => props.theme.palette.secondary.main};
width: 100%;
height: 100%;
z-index: -1;
`}
/>
);
};
export default RouteBackground;
|
tilapp/src/containers/Scenes/Capture/Index/index.js | tilap/tilapp | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import merge from 'deep-assign';
import { Container } from 'native-base';
import processBarcode from './services/processBarcode';
import { ReverseCameraIcon, ReverseCameraActiveIcon, FlashCameraIcon, Fla... |
src/components/TagForm.js | neontribe/spool | import React, { Component } from 'react';
import Button from './Button';
import TouchIcon from './TouchIcon';
import styles from './css/TagForm.module.css';
class TagForm extends Component {
constructor (props) {
super(props);
this.handleChange = this.handleChange.bind(this);
this.continu... |
ajax/libs/react-instantsearch/4.0.8/Connectors.min.js | jdh8/cdnjs | /*! ReactInstantSearch 4.0.8 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
!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.Connectors=t(require("reac... |
app/index.js | feijihn/lotto | require('smoothscroll-polyfill').polyfill();
import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import configureStore from './store/configureStore';
import {Router, hashHistory} from 'react-router';
import routes from './routes';
const initialState = window.__INITIAL_S... |
lib/blocks/text.js | pairyo/kattappa | import React from 'react';
//console.log(MediumEditorComponent);
class BlockText extends React.Component {
constructor(props) {
super(props);
this.captureReturn = this.captureReturn.bind(this);
this.onContentChanged = this.onContentChanged.bind(this);
this.splitBlock = this.splitBlock.bind(this);
... |
packages/material-ui-icons/src/WebSharp.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M22 4H2v16h20V4zM4 9h10.5v3.5H4V9zm0 5.5h10.5V18H4v-3.5zM20 18h-3.5V9H20v9z" /></React.Fragment>
, 'WebSharp');
|
packages/react/src/components/organisms/UtilityPanel/UtilityPanel.stories.js | massgov/mayflower | import React from 'react';
import { StoryPage } from 'StorybookConfig/preview';
import UtilityPanel from '.';
import UtilityPanelDocs from './UtilityPanel.md';
import UtilityPanelData from './UtilityPanel.json';
export const UtilityPanelExample = (args) => <UtilityPanel {...args} />;
UtilityPanelExample.storyName =... |
app.js | jordansissel/react-playground | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import 'babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
import Location from '.... |
src/components/Crawler/JobsAddEdit/stories.js | saitodisse/scrap-cerebral-2 | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import JobsAddEdit from './index';
storiesOf('JobsAddEdit', module)
.add('form', () => (
<JobsAddEdit
new_job={{
job_name: 'Job Name',
url: 'http://url',
}}
/>
))
;
|
ajax/libs/rxjs/2.1.20/rx.js | LaurensRietveld/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
(function (window, undefined) {
var freeExports = typeof exports == 'object' && exports,
freeModule = typeof module == 'object' && module && module.exports == freeExports &&... |
app/components/EditProject/EditProject.js | Jberivera/pandoras-wall | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import style from './EditProject.scss';
import classNames from 'classnames/bind';
import {
addGroup
} from './actions';
const css = classNames.bind(style);
import EditTaskGroup from '../TaskGroup/EditTaskGr... |
externallib/jquery.min.js | Nithis111/AIT-Tech | /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
src/components/Hexagon.js | garfieldduck/twreporter-react | import React from 'react'
if (process.env.BROWSER) {
require('./Hexagon.css')
}
export default (props) => {
return (
<div className="hexagon-bg" style={props.style}>{props.children}</div>
)
}
|
src/ui/Footer.js | k3rmitt/beer-tender | import React from 'react';
import {Navbar} from 'react-bootstrap';
export default () => (
<Navbar fixedBottom>
<Navbar.Header>
<Navbar.Brand>
PunkAPI powered
</Navbar.Brand>
</Navbar.Header>
</Navbar>
);
|
src/components/Devices/Devices.react.js | RMCoder198/chat.susi.ai | import React, { Component } from 'react';
import susiAndroid from '../../images/susi-test.gif';
import susiiOSGif from '../../images/ios_demo.gif';
import susiDesktop from '../../images/susi.gif';
import './Devices.css';
import { Link } from 'react-router-dom';
import PropTypes from 'prop-types';
import StaticAppBar fr... |
app/javascript/mastodon/features/standalone/hashtag_timeline/index.js | MitarashiDango/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { expandHashtagTimeline } from 'mastodon/actions/timelines';
import Masonry from 'react-masonry-infinite';
import { List as ImmutableList } from 'immut... |
1m_Redux_Lynda/Ex_Files_Learning_Redux/Exercise Files/Ch05/05_04/finished/src/components/ui/SkiDayList.js | yevheniyc/Autodidact | import { PropTypes } from 'react'
import { Link } from 'react-router'
import SkiDayRow from './SkiDayRow'
import Terrain from 'react-icons/lib/md/terrain'
import SnowFlake from 'react-icons/lib/ti/weather-snow'
import '../../stylesheets/SkiDayList.scss'
const SkiDayList = ({ days, filter, onRemoveDay=f=>f }) => {
... |
angular2-tour-of-heroes/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | rchcomm/Angular2Tranning | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
_~2017/apollo/apollo-simple/src/App.js | zhoukekestar/drafts | import React, { Component } from 'react';
import { gql, ApolloClient, createNetworkInterface, ApolloProvider, graphql } from 'react-apollo';
const Feed = ({ data }) => {
if (data.networkStatus === 1) {
return <p>loading...</p>;
}
if (data.error) {
return <p>Error! {data.error.message}</p>;
}
conso... |
lib/components/report/__tests__/days-of-service.js | conveyal/scenario-editor | // @flow
import renderer from 'react-test-renderer'
import React from 'react'
import DaysOfService from '../days-of-service'
describe('Report > DaysOfService', () => {
it('renders correctly', () => {
const props = {
monday: true,
tuesday: true
}
// mount component
const tree = renderer... |
blueprints/layout/files/__test__/layouts/__name__Layout.spec.js | mjasinski5/dashboardWookiees | import React from 'react'
describe('(Layout) <%= pascalEntityName %>', () => {
it('should exist', () => {
})
})
|
src/components/HostInfo.js | cpsubrian/redis-explorer | import React from 'react'
import pureRender from 'pure-render-decorator'
import ImmutablePropTypes from 'react-immutable-proptypes'
import {Paper} from 'material-ui'
@pureRender
class HostInfo extends React.Component {
static propTypes = {
hostInfo: ImmutablePropTypes.map
}
static infoGroups = [
{
... |
client/public/src/components/GroupBox.js | openview2017/openview | import React from 'react'
/**
* getClassName
*/
var getClassName = function(className){
return typeof(className) ==="string" ? className.trim() : "";
}
/**
* Group box header
*/
export class GBHeader extends React.Component {
/**
* render
* @return {ReactElement} markup
*/
rende... |
app/javascript/mastodon/components/avatar_overlay.js | ebihara99999/mastodon | import React from 'react';
import PropTypes from 'prop-types';
class AvatarOverlay extends React.PureComponent {
static propTypes = {
staticSrc: PropTypes.string.isRequired,
overlaySrc: PropTypes.string.isRequired,
};
render() {
const {staticSrc, overlaySrc} = this.props;
const baseStyle = {
... |
docs/src/FooterPage.js | jareth/react-materialize | import React from 'react';
import Row from '../../src/Row';
import Col from '../../src/Col';
import ReactPlayground from './ReactPlayground';
import PropTable from './PropTable';
import store from './store';
import Samples from './Samples';
import footer from '../../examples/Footer';
const component = 'Footer';
class... |
example/index.js | Stonelinks/react-toggle | import React from 'react'
import Toggle from '../index.es6'
// In your code this would be:
// import Toggle from 'react-toggle'
require("../style.less")
var App = React.createClass({
displayName: 'App',
getInitialState() {
return {
cheeseIsReady: false,
baconIsReady: false,
biscuitIsReady:... |
src/layouts/index.js | FCCManila/blog | import React from 'react'
import Link from 'gatsby-link'
import { rhythm, scale } from '../utils/typography'
class Template extends React.Component {
render () {
const { location, children, data } = this.props
let header
let rootPath = `/`
if (typeof __PREFIX_PATHS__ !== `undefined` && __PREFIX_PAT... |
components/product-page/details-pane.js | dwest-teo/wattos-spaceship-emporium | import React from 'react';
import PropTypes from 'prop-types';
import {
Flex,
Box,
Text,
Button,
config,
} from '../../components/base';
import SvgIcon from '../../components/svg-icons';
const { breakpoints } = config.get();
const styles = {
detailsPaneOuter: {
width: '100%',
[breakpoints[0]]: {
... |
src/pages/yumarimel.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Yumarimel' />
)
|
ajax/libs/yui/3.16.0/datatable-body/datatable-body.js | CosmicWebServices/cdnjs | /*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base... |
new-lamassu-admin/src/components/Status.js | naconner/lamassu-server | import Chip from '@material-ui/core/Chip'
import { makeStyles } from '@material-ui/core/styles'
import React from 'react'
import {
tomato,
mistyRose,
pumpkin,
secondaryColorDarker as spring4,
inputFontWeight,
spring3,
zircon,
primaryColor,
smallestFontSize,
inputFontFamily,
spacer,
linen
} from... |
viz/fountain/components/cdr-fountain.js | DSSG2017/florence | /* global window,document */
import React from 'react';
import {render} from 'react-dom';
import MapGL from 'react-map-gl';
import DeckGLOverlay from './deckgl-overlay.js';
import LegendInfo from './legend-info';
import Fountain from './fountain';
import Toggle from './toggle';
import {json as requestJson} from 'd3-re... |
uiexplorer/examples/ThemeConstants.js | tipsi/tipsi-ui-kit | import React from 'react'
import { View, Text } from 'react-native'
import register from '../core/utils/register'
import { ThemeConstants } from '../../src'
const Square = ({ color, name }) => (
<View style={{ flex: 1, alignItems: 'center', flexDirection: 'column' }}>
<View style={{ width: 50, height: 50, backgr... |
extensions/chat/containers/ChatContainer.js | axax/lunuc | import React from 'react'
import PropTypes from 'prop-types'
import compose from 'util/compose'
import {Link} from 'client/util/route'
import ChatMessage from '../components/chat/ChatMessage'
import CreateChat from '../components/chat/CreateChat'
import AddChatUser from '../components/chat/AddChatUser'
import AddChatMe... |
modules/jjwg_Areas/javascript/jquery-1.4.2.min.js | adamjakab/SuiteCRM | /*!
* 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.
... |
src/views/module_b/b.js | hhhyaaon/webpack_demo | import React from "react"
import ReactDOM from "react-dom"
export default class B extends React.Component {
constructor(props) {
super(props)
}
render() {
return <h1>Component B</h1>
}
} |
src/components/icons/HourGlassIcon.js | InsideSalesOfficial/insidesales-components | import React from 'react';
import { colors, generateFillFromProps } from '../styles/colors.js';
const HourGlassIcon = props => (
<svg {...props.size || { width: '15px', height: '25px' }} {...props} viewBox="0 0 15 25">
{props.title && <title>{props.title}</title>}
<g stroke="none" strokeWidth="1" ... |
src/layout/content.js | siimple/siimple-elements | import React from "react";
import {classNames, hyperscript as h} from "neutrine-utils";
import {omit} from "kofi";
import "siimple/scss/layout/_content.scss";
//Content layout component
export default class Content extends React.Component {
render() {
//Content props
let props = omit(this.props, [... |
node_modules/react-icons/fa/sort-alpha-asc.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const FaSortAlphaAsc = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m27.6 9.1h3.9l-1.6-4.9-0.2-1q-0.1-0.4-0.1-0.5h-0.1l0 0.5q0 0-0.1 0.4t-0.2 0.6z m-10.2 23q0 0.3-0.2 0.6l-7.1 7.1q-0.2 0.2-0.5 0.2-0.3 0-0.5-0.2l-7.2-7.1q-0.3-0.4-... |
js/src/modals/Shapeshift/Value/value.spec.js | jesuscript/parity | // Copyright 2015, 2016 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 la... |
app/javascript/mastodon/features/ui/components/column.js | 8796n/mastodon | import React from 'react';
import ColumnHeader from './column_header';
import PropTypes from 'prop-types';
const easingOutQuint = (x, t, b, c, d) => c*((t=t/d-1)*t*t*t*t + 1) + b;
const scrollTop = (node) => {
const startTime = Date.now();
const offset = node.scrollTop;
const targetY = -offset;
const dur... |
node_modules/semantic-ui-react/dist/es/collections/Form/FormSelect.js | mowbell/clickdelivery-fed-test | import _extends from 'babel-runtime/helpers/extends';
import React from 'react';
import { customPropTypes, getElementType, getUnhandledProps, META } from '../../lib';
import Select from '../../addons/Select';
import FormField from './FormField';
/**
* Sugar for <Form.Field control={Select} />.
* @see Form
* @see S... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.