path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
editor/components/BottomBar.js | VishalRohra/chroma-tone | import React from 'react'
import PureComponent from 'react-pure-render/component';
import classNames from 'classnames'
import _ from 'lodash'
import PaperBar from './PaperBar'
import ButtonGroups from './ButtonGroups'
export default class BottomBar extends PureComponent {
render() {
let closed = this.props.close... |
ajax/libs/tinymce/4.5.1/plugins/legacyoutput/plugin.js | joeyparrish/cdnjs | /**
* plugin.js
*
* Released under LGPL License.
* Copyright (c) 1999-2015 Ephox Corp. All rights reserved
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*
* This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u elements, al... |
node_modules/react-icons/io/android-globe.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const IoAndroidGlobe = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m19.8 3.8c8.9 0 16.2 7.2 16.2 16.2s-7.3 16.3-16.2 16.3-16.3-7.3-16.3-16.3 7.3-16.2 16.3-16.2z m-1.8 30c0.5-1.1 1.7-2.2 0.7-3-0.7-0.6-1.3-1.1-1.8-1.7-0.2-0.1-0.9-... |
js/jqwidgets/demos/react/app/chart/chartannotations/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxChart from '../../../jqwidgets-react/react_jqxchart.js';
class App extends React.Component {
render() {
let source =
{
datatype: 'csv',
datafields: [
{ name: 'Country' },
... |
test/CollapsibleNavSpec.js | pieter-lazzaro/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Navbar from '../src/Navbar';
import CollapsibleNav from '../src/CollapsibleNav';
import Nav from '../src/Nav';
import NavItem from '../src/NavItem';
describe('CollapsibleNav', function () {
it('Should create div and add collapse... |
ajax/libs/angular-google-maps/1.0.17/angular-google-maps.js | mikelambert/cdnjs | /*! angular-google-maps 1.0.17 2014-03-30
* AngularJS directives for Google Maps
* git: https://github.com/nlaplante/angular-google-maps.git
*/
(function() {
angular.element(document).ready(function() {
if (!(google || (typeof google !== "undefined" && google !== null ? google.maps : void 0) || (google.maps.... |
jenkins-design-language/src/js/components/material-ui/svg-icons/image/navigate-next.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageNavigateNext = (props) => (
<SvgIcon {...props}>
<path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/>
</SvgIcon>
);
ImageNavigateNext.displayName = 'ImageNavigateNext';
ImageNavigateNext.muiName = 'SvgIcon';
export default ImageN... |
node_modules/react-bootstrap/es/ModalTitle.js | caughtclean/but-thats-wrong-blog | 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 ... |
src/static/containers/CategoryNavigation/index.js | qwertypomy/rental | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as actionCreators from '../../actions/category';
import TreeView from '../../components/TreeView';
import './styles.scss';
class CategoryNavigationView extends React.Component {
static propTypes... |
examples/src/components/UsersField.js | sarahbkim/react-select-custom | import GravatarOption from './CustomOption';
import GravatarValue from './CustomSingleValue';
import React from 'react';
import Select from 'react-select';
const USERS = require('../data/users');
var UsersField = React.createClass({
propTypes: {
hint: React.PropTypes.string,
label: React.PropTypes.string,
},
r... |
docs/src/sections/TooltipSection.js | Terminux/react-bootstrap | import React from 'react';
import Anchor from '../Anchor';
import PropTable from '../PropTable';
import ReactPlayground from '../ReactPlayground';
import Samples from '../Samples';
export default function TooltipSection() {
return (
<div className="bs-docs-section">
<h2 className="page-header">
<A... |
ajax/libs/react-virtualized/9.7.1/react-virtualized.js | dakshshah96/cdnjs | !function(root, factory) {
"object" == typeof exports && "object" == typeof module ? module.exports = factory(require("React"), require("ReactDOM")) : "function" == typeof define && define.amd ? define([ "React", "ReactDOM" ], factory) : "object" == typeof exports ? exports.ReactVirtualized = factory(require("React... |
src/svg-icons/notification/folder-special.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationFolderSpecial = (props) => (
<SvgIcon {...props}>
<path d="M20 6h-8l-2-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-2.06 11L15 15.28 12.06 17l.78-3.33-2.59-2.24 3.41-.29... |
docs/src/Root.js | mmartche/boilerplate-shop | import React from 'react';
const Root = React.createClass({
statics: {
/**
* Get the list of pages that are renderable
*
* @returns {Array}
*/
getPages() {
return [
'index.html',
'introduction.html',
'getting-started.html',
'components.html',
... |
node_modules/react-bootstrap/es/NavItem.js | jkahrs595/website | 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 ... |
src/components/Profile.js | branchology/branchology | import React from 'react';
import Helmet from 'react-helmet';
import ProfileCard from './ProfileCard';
import EventTable from './EventTable';
import RelationshipTable from './RelationshipTable';
export default ({person}) => (
<div>
<Helmet title={person.preferredName.displayName} />
<div className="row">
... |
src/app/components/side-nav.js | kmiracle-iscs/wca-react-poc | import React from 'react';
import { Link } from 'react-router'
import styles from '../../index.css';
import T from '../../config/translate';
export class SideNav extends React.Component {
render() {
return (
<div className={styles.sideNav}>
<ul style={{listStyle: 'none'}}>
... |
src/containers/AppBase.js | sheminusminus/dealz | import React from 'react';
import Header from './Header';
import SideMenu from './SideMenu';
import Footer from './Footer';
var AppBase = React.createClass({
getInitialState() {
return {
menuOpen: false,
menuOptions: [],
activeOption: 0,
userInfo: {}
};
},
componentWillMount() {
this.setState({
... |
packages/vx-legend/src/legends/Ordinal.js | Flaque/vx | import React from 'react';
import PropTypes from 'prop-types';
import Legend from './Legend';
import valueOrIdentity from '../util/valueOrIdentity';
LegendOrdinal.propTypes = {
scale: PropTypes.func.isRequired,
domain: PropTypes.array,
labelTransform: PropTypes.func,
labelFormat: PropTypes.func,
};
export def... |
project/src/scenes/Blog/components/ArticleFooter/ArticleFooter.js | boldr/boldr | /* @flow */
import React from 'react';
import styled from 'styled-components';
import Link from 'react-router-dom/Link';
export type Props = {
firstName: string,
avatarUrl: string,
lastName: string,
bio: string,
username: string,
};
const AFooter = styled.footer`@media (min-width: 700px) {padding: 70px 100p... |
03msFestVSNodeJSTS/03msFestVSNodeJSTS/Scripts/polyfill/polyfill.js | rostacik/msfest16demos | (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... |
web/src/AddIndexer.js | cardigann/cardigann | import React, { Component } from 'react';
import { Col, Form, Panel, FormGroup, Button } from 'react-bootstrap';
import Select from 'react-select';
let buildOptions = function(indexers) {
return indexers.map((indexer) => {
return { value: indexer.id, label: indexer.name };
});
}
class AddIndexer extends Compo... |
site/src/containers/Post.js | lostpebble/pebblebed | import React from 'react'
import { getRouteProps, Link } from 'react-static'
//
export default getRouteProps(({ post }) => (
<div>
<Link to="/blog/">{'<'} Back</Link>
<br />
<h3>{post.title}</h3>
<p>{post.body}</p>
</div>
))
|
assets/node_modules/react/lib/ReactBrowserEventEmitter.js | migzisreallywewwhat/techno-site | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule ... |
httpdocs/theme/react/hooks-app/app-supporters/components/Supporters.js | KDE/ocs-webserver | import React from 'react';
import {filterDuplicated} from './util';
const Supporters = (props) => {
return (
<div className="supporters-container">
<ul>{
props.supporters.filter(filterDuplicated).map((s,index) =>
<li key={index}>
<a href={props.baseUrlStore+'/u/'+s.user... |
2-alpha/src/components/MultilineWidth.js | saturninoharris/primer-design | import React, { Component } from 'react'
import { connect } from 'react-redux'
import { setMultilineWidth } from '../actions/index'
import { getMultilineWidth } from '../selectors'
class MultilineWidth extends Component {
componentDidMount() {
// More hacky than a oxford union hackathon with knives.
this.pro... |
ajax/libs/es6-shim/0.23.0/es6-shim.js | amwmedia/cdnjs | /*!
* https://github.com/paulmillr/es6-shim
* @license es6-shim Copyright 2013-2014 by Paul Miller (http://paulmillr.com)
* and contributors, MIT License
* es6-shim: v0.23.0
* see https://github.com/paulmillr/es6-shim/blob/0.22.2/LICENSE
* Details and documentation:
* https://github.com/paulmillr/es6-... |
src/forms/controls/list-checkboxes.spec.js | Zenika/Pogues | import React from 'react';
import { shallow } from 'enzyme';
import ListCheckboxes from './list-checkboxes';
import GenericOption from './generic-option';
import { fakeFieldProps, fakeEvent } from 'utils/test/test-utils';
describe('Form controls - List checkboxes', () => {
test('Should render as many checkboxes as... |
ajax/libs/inferno-compat/1.0.0-beta41/inferno-compat.js | sufuf3/cdnjs | /*!
* inferno-compat v1.0.0-beta41
* (c) 2016 Dominic Gannaway
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('./inferno-component'), require('./inferno')) :
typeof define === 'function' && define.amd ? d... |
ajax/libs/vue/2.1.4/vue.runtime.common.js | holtkamp/cdnjs | /*!
* Vue.js v2.1.4
* (c) 2014-2016 Evan You
* Released under the MIT License.
*/
'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)
}... |
app/javascript/mastodon/features/ui/components/video_modal.js | Ryanaka/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Video from 'mastodon/features/video';
import ImmutablePureComponent from 'react-immutable-pure-component';
import Footer from 'mastodon/features/picture_in_picture/components/footer';
import... |
Admin/Pager/Index.js | wangmengling/MaoMobxBlog | import React, { Component } from 'react';
import Pager from './Pager';
export default () => (
<Pager />
) |
app/javascript/mastodon/components/media_attachments.js | musashino205/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { MediaGallery, Video, Audio } from 'mastodon/features/ui/util/async-components';
import Bundle from 'mastodon/features/u... |
ajax/libs/react-router/0.13.3/ReactRouter.js | dlueth/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReactRouter"] = fac... |
app/scripts/components/metric-selector.js | hustbill/autorender-js | import React from 'react';
import { connect } from 'react-redux';
import { unhoverMetric } from '../actions/app-actions';
import { availableMetricsSelector } from '../selectors/node-metric';
import MetricSelectorItem from './metric-selector-item';
class MetricSelector extends React.Component {
constructor(props, co... |
src/frontend/screens/not-found.js | Koleso/invoicer | import React from 'react';
// Components
import { Grid, GridColumn } from 'components/Grid';
import Screen from 'components/Screen';
import Box from 'components/Box';
import EmptyState from 'components/EmptyState';
const NotFound = () => (
<Screen title="Stránka nenalezena">
<Grid>
<GridColumn>
<Box>
<... |
lib/Button/stories/general.js | folio-org/stripes-components | import React from 'react';
import Button from '../Button';
export default () => (
<div>
<Button>Default</Button>
<Button buttonStyle="primary">Primary</Button>
<Button buttonStyle="danger">Danger</Button>
<Button buttonStyle="success">Success</Button>
<Button buttonStyle="warning">Warning</Button... |
src/js/components/Spinner.js | slavapavlutin/pavlutin-node | import React from 'react';
import Spin from './Spinner.styled';
function Spinner({ color }) {
return <Spin color={color}>Loading...</Spin>;
}
export default Spinner;
|
src/index.js | zdizzle6717/tree-machine-records | import React from 'react';
import {render} from 'react-dom';
import {Provider} from 'react-redux'
import AppRoutes from './components/AppRoutes';
import store from './store';
window.onload = () => {
render(
<Provider store={store}>
<AppRoutes />
</Provider>,
document.getElementById('main')
);... |
assets/slide/demo/scripts/jquery-1.9.0.min.js | mayursn/lms_classes | /*! 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... |
ajax/libs/extjs/4.2.1/src/form/field/ComboBox.js | ducin/cdnjs | /*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as
published by the Free Software Foundation and appearing in the file LICENSE included in... |
packages/material-ui-icons/src/FlipOutlined.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M15 21h2v-2h-2v2zm4-12h2V7h-2v2zM3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2zm16-2v2h2c0-1.1-.9-2-2-2zm-8 20h2V1h-2v22zm8-6h2v-2h-2v2... |
lib/date-picker/createPicker.js | bebeanan/monkey-ui | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
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]; } } }... |
react-server-list/src/ServerThumbnail.js | u-wave/hub | import React from 'react';
import PropTypes from 'prop-types';
import Button from '@mui/material/Button';
import Card from '@mui/material/Card';
import CardContent from '@mui/material/CardContent';
import CardActions from '@mui/material/CardActions';
import Typography from '@mui/material/Typography';
import IconButton ... |
modules/__tests__/Routing-test.js | mikepb/react-router | var expect = require('expect');
var React = require('react');
var Router = require('../index');
var Route = require('../components/Route');
var { Foo, Bar, Nested } = require('../TestUtils');
describe('creating routes from ReactChildren', function () {
it('works with falsy children', function (done) {
var routes... |
sites/all/modules/contrib/jquery_update/replace/jquery/1.9/jquery.min.js | eleanorw13/Mercy-College | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
src/components/SearchResultsEmpty.js | cascada-io/island | import React from 'react';
import { Card, CardText } from 'material-ui/Card';
const SearchResultsEmpty = () => (
<Card>
<CardText>
<div style={{ color: '#ccc', fontSize: 'larger', padding: '1em', textAlign: 'center' }}>
NO MATCHING FOODS
</div>
</CardText>
</Card>
);
export default Sea... |
ajax/libs/webshim/1.14.4-RC3/dev/shims/es6.js | nouveller/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/components/antd/calendar/index.js | hyd378008136/olymComponents | import React from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import FullCalendar from 'rc-calendar/lib/FullCalendar';
import { PREFIX_CLS } from './Constants';
import Header from './Header';
import { getComponentLocale, getLocaleCode } from '../_util/getLocale';
function noop() { return n... |
pages/getting-started/page-layout-examples/sign-in-side.js | allanalexandre/material-ui | import 'docs/src/modules/components/bootstrap';
// --- Post bootstrap -----
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import AppTheme from 'docs/src/modules/components/AppTheme';
import SignInSide from 'docs/src/pages/getting-started/page-layout-examples/sign-... |
packages/bonde-admin-canary/src/scenes/Auth/scenes/ForgetPassword/SubmittedSuccessfully.js | ourcities/rebu-client | import React from 'react'
import { I18n } from 'react-i18next'
import {
Flexbox,
IconColorful,
Title,
Text
} from 'bonde-styleguide'
import { ButtonLink } from 'components/Link'
export default () => (
<I18n ns='auth'>
{(t) => {
const spacing = { bottom: 25 }
return (
<Flexbox>
... |
src/parser/monk/mistweaver/modules/talents/RisingMist.js | fyruna/WoWAnalyzer | import React from 'react';
import { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import { formatNumber, formatPercentage } from 'common/format';
import TalentStatisticBox from 'interface/others/TalentStatisticBox';
import SPELLS from 'common/SPELLS';
import Analyzer from 'parser/core/Analyzer';
import Abil... |
packages/react/src/components/organisms/HeaderSlim/HeaderSlim.stories.js | massgov/mayflower | import React from 'react';
import { StoryPage } from 'StorybookConfig/preview';
import logo from '@massds/mayflower-assets/static/images/logo/stateseal.png';
import SiteLogoHeader from 'MayflowerReactMedia/SiteLogo';
import ButtonWithIcon from 'MayflowerReactButtons/ButtonWithIcon';
import IconSearch from 'MayflowerRe... |
tests/mocha/unit-tests/react/components/Template/template.header.navigation.spec.js | blueliquiddesigns/gravity-forms-pdf-extended | import React from 'react'
import { mount } from 'enzyme'
import configureStore from 'redux-mock-store'
import { Provider } from 'react-redux'
import { HashRouter as Router } from 'react-router-dom'
import TemplateHeaderNavigation from '../../../../../../src/assets/js/react/components/Template/TemplateHeaderNavigation'
... |
ajax/libs/react-instantsearch/5.0.3/Dom.min.js | jonobr1/cdnjs | /*! ReactInstantSearch 5.0.3 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e.ReactInstantSearch=e.ReactInstantSearch||{},e.Rea... |
pootle/static/js/browser/components/PendingTaskContainer.js | evernote/zing | /*
* Copyright (C) Zing contributors.
*
* This file is a part of the Zing project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import TaskAPI from 'api/TaskAPI';... |
src/components/homePage.js | bryomckim/psadmin | "use strict";
var React = require('react');
var Router = require('react-router');
var Link = Router.Link;
var Home = React.createClass({
render: function() {
return (
<div className="jumbotron">
<h1>Pluralsight Administration</h1>
<p>React, React Router, and Flux for ultra-responsive web apps... |
6.4.2/examples/syncValidation/dist/bundle.js | erikras/redux-form-docs | !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="/dist/",t(0)}([function(e,t,n){n(275),e.exports=n(274)},function(e,t,n){var r=n(4),o=n(37),i=n(20),a=n(21),u=n(38),s="prototype",... |
src/containers/Login/component/Loging/Loging.js | MeetDay/dreampark-web | /**
* @Author: WangChao
* @Date: 2017-07-11T08:53:12+08:00
* @Email: crazyitcoder9527@126.com
* @Project: dreampark-web
* @Last modified by: WangChao
* @Last modified time: 2017-09-02T10:52:17+08:00
*/
import React from 'react';
import PropTypes from 'prop-types';
import { Phone, Password, LoginButton } f... |
analysis/warlockdestruction/src/modules/features/Havoc.js | yajinni/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Enemies from 'parser/shared/modules/Enemies';
import Events from 'parser/core/Events';
import SPELLS from 'common/SPELLS';
import { formatThousands, formatNumber, formatPercentage } from 'common/format';
import Statis... |
App/Components/ChatPage.js | OUCHUNYU/Ralli | import groupsApi from'../Utils/groupsApi.js'
import usersApi from'../Utils/usersApi.js'
import Firebase from 'firebase'
import React, { Component } from 'react';
import {
StyleSheet,
Text,
AlertIOS,
ListView,
View,
TextInput,
TouchableHighlight,
Image,
} from 'react-native';
let styles = StyleSheet.c... |
client/components/Img/Img.js | XuHaoJun/tiamat | import React from 'react';
import { connect } from 'react-redux';
import LazyLoad from 'react-lazyload';
import MobileDetect from 'mobile-detect';
import { getUserAgent } from '../../modules/UserAgent/UserAgentReducer';
import Loading from './Loading';
export function getStyles() {
const styles = {
img: {
... |
src/index.js | ccjeng/coin | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './css/normalize.css'
import './css/index.css';
import 'bootstrap/dist/css/bootstrap.css'
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
src/bundles/SellerRegistration/components/DisclosuresForm/DisclosuresForm.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react';
import PropTypes from 'prop-types'
import {connect} from 'react-redux';
import { Form } from 'react-redux-form';
import { required } from '../../../../validators';
import Layout from '../../../../shared/Layout';
import BaseForm from '../../../../shared/form/BaseForm';
import Submi... |
ajax/libs/yui/3.11.0/event-focus/event-focus.js | Assalaam/cdnjs | YUI.add('event-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
arrayIndex = Y.Array.indexOf,
useActivate = (function() {
... |
wp-content/themes/polis-theme/js/caroufredsel/jquery-1.8.2.min.js | brasadesign/wp-polis | /*! jQuery v1.8.2 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d===... |
src/components/Footer.js | pascalwhoop/pascalwhoop.github.io | import React from 'react'
import {graphql} from 'gatsby'
import { StaticQuery } from 'gatsby'
import {faIconMapper} from '../functions/icons'
const Footer = ({ data }) => {
let contactInfo = data.allDataYaml.edges[0].node.owner.contact
return (
<footer id="footer">
<div className="inner">
<ul cla... |
app/index.js | leofle/electron_manifesto | 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... |
docs/src/components/InputSubmit.js | johnpolacek/styled-system-html | import React from 'react'
import {Input} from 'styled-system-html'
const InputSubmit = props =>
<Input
type="submit"
fontSize={1}
m={0}
px={3}
py={2}
color='white'
bg='blue'
{...props}
css={{
cursor:'pointer',
fontFamily: 'inherit',
display: 'inline-block',
... |
Libraries/Components/Touchable/TouchableOpacity.js | pandiaraj44/react-native | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow strict-local
* @format
*/
import Pressability, {
type PressabilityConfig,
} from '../../Pressability/Pressability';
im... |
templates/rubix/demo/src/common/header.js | jeffthemaximum/jeffline | import React from 'react';
import ReactDOM from 'react-dom';
import classNames from 'classnames';
import { Link, withRouter } from 'react-router';
import l20n, { Entity } from '@sketchpixy/rubix/lib/L20n';
import {
Label,
SidebarBtn,
Dispatcher,
NavDropdown,
NavDropdownHover,
Navbar,
Nav,
NavItem,
... |
sites/all/modules/contrib/jquery_update/replace/jquery/1.10/jquery.js | tarasdj/iCer | /*!
* jQuery JavaScript Library v1.10.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-03T13:48Z
*/
(function( window, undefined ) {
// ... |
app/containers/About/index.js | thuantrinh/math_is_hard | import React from 'react';
import styled from 'styled-components';
const Paragraph = styled.span`
font-size: 1em;
margin: 1vh 0;
display:inline-block;
`
export default class About extends React.Component { // eslint-disable-line react/prefer-stateless-function
shouldComponentUpdate() {
return false;
}
... |
components/app.js | scriptit/github-api-gui | 'use strict';
import React from 'react';
import github from '../lib/github-basic';
import Login from './login';
import ApiClient from './api-client';
export default React.createClass({
getInitialState() {
return {
client: github({version: 3}),
authenticated: false
};
},
logout(e) {
e.pre... |
ajax/libs/knockout-validation/2.0.1/knockout.validation.js | ppoffice/cdnjs | /*=============================================================================
Author: Eric M. Barnard - @ericmbarnard
License: MIT (http://opensource.org/licenses/mit-license.php)
Description: Validation Library for KnockoutJS
Version: 2.0.1
===================... |
app/components/FooterNav/index.js | cbradley3/CharlieBradleyIII | /**
*
* FooterNav
*
*/
import React from 'react';
import {Link} from "react-router";
import Responsive from 'react-responsive';
class FooterNav extends React.PureComponent {
handleScroll = (num) => {
window.scroll(0,num);
}
render() {
const footerStyle={
display:"flex",
flexDirection:"row",... |
app/javascript/mastodon/components/status.js | Kirishima21/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from './avatar';
import AvatarOverlay from './avatar_overlay';
import AvatarComposite from './avatar_composite';
import RelativeTimestamp from './relative_timestamp';
import DisplayNa... |
examples/examples.js | buildo/rc-datepicker | import 'moment/locale/fr.js';
import React from 'react';
import ReactDOM from 'react-dom';
import { DatePicker, DatePickerInput } from '../src';
import '../src/style.scss';
class Example extends React.Component {
state = {
datePickerDate: '2015-05-13',
datePickerInputDate: null,
datePickerInputDate2: ... |
static/src/components/RegisterView.js | kdog1425/React-Redux-Flask-Web-Crawler | /* eslint camelcase: 0, no-underscore-dangle: 0 */
import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
import Paper from 'material-ui/Paper';
import * as action... |
entry_types/scrolled/package/spec/frontend/AudioPlayerControls-spec.js | codevise/pageflow | import {AudioPlayerControls} from 'frontend/AudioPlayerControls';
import {useFile} from 'entryState';
import React from 'react';
import '@testing-library/jest-dom/extend-expect'
import {useFakeTranslations} from 'pageflow/testHelpers';
import {renderInEntry} from 'support';
import {getInitialPlayerState, getPlayerAct... |
src/components/wp/admin-header.js | NatalieMac/simple-event-listing | import React from 'react';
export default function( props ) {
return <h1>{ props.children }</h1>;
}
|
frontend/src/screens/monitor/widgets/stages/stages.js | linea-it/qlf | import React, { Component } from 'react';
import Table from '@material-ui/core/Table';
import TableBody from '@material-ui/core/TableBody';
import TableCell from '@material-ui/core/TableCell';
import TableHead from '@material-ui/core/TableHead';
import TableRow from '@material-ui/core/TableRow';
import _ from 'lodash';... |
index.android.js | Abrax20/snap-react | // @flow
import React, { Component } from 'react';
import { AppRegistry } from 'react-native';
import App from './src/App.js';
export default class reactSnap extends Component {
render() {
return (
<App />
);
}
}
AppRegistry.registerComponent('reactSnap', () => reactSnap);
|
ajax/libs/forerunnerdb/1.3.423/fdb-all.js | dhenson02/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... |
gulpfile.js | pas256/bower-gulp | /* My Gulp File */
'use strict';
// Gulp and friends
var gulp = require('gulp');
var plugins = require('gulp-load-plugins')();
var del = require('del');
var browserSync = require('browser-sync').create();;
var reload = browserSync.reload;
// The default task builds the site for production. From here, the entire site... |
src/svg-icons/device/signal-cellular-0-bar.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellular0Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M2 22h20V2z"/>
</SvgIcon>
);
DeviceSignalCellular0Bar = pure(DeviceSignalCellular0Bar);
DeviceSignalCellular0Bar.displayN... |
packages/material-ui-icons/src/SignalCellularConnectedNoInternet4Bar.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let SignalCellularConnectedNoInternet4Bar = props =>
<SvgIcon {...props}>
<path d="M20 18h2v-8h-2v8zm0 4h2v-2h-2v2zM2 22h16V8h4V2L2 22z" />
</SvgIcon>;
SignalCellularConnectedNoInternet4Bar = pure(SignalCe... |
example/server.js | ForbesLindesay/redux-wait | 'use strict';
import fs from 'fs';
import express from 'express';
import browserify from 'browserify-middleware';
import React from 'react';
import stringify from 'js-stringify';
import Root from './containers/Root';
import MemoryHistory from 'react-router/lib/MemoryHistory';
import createStore from './store';
const ... |
src/components/Repo/Graph/Chart/Chart.js | 879479119/Github-Mobile | import React from 'react'
import { Icon } from 'antd'
import cls from 'classnames'
import AreaChart from './AreaChart'
import BarChart from './BarChart'
import LinearChart from './LinearChart'
import PunchChart from './PunchChart'
import './Chart.scss'
export default function ({
data, width = 1000, height = 160, typ... |
src/svg-icons/editor/format-indent-decrease.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatIndentDecrease = (props) => (
<SvgIcon {...props}>
<path d="M11 17h10v-2H11v2zm-8-5l4 4V8l-4 4zm0 9h18v-2H3v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z"/>
</SvgIcon>
);
EditorFormatIndentDecre... |
app/data/FactsData.js | chena/taiwan-matters | import React from 'react';
import styles from '../styles.css';
import unTwImg from '../images/un-tw.png';
import card1 from '../images/sdg-3.jpg';
import card2 from '../images/sdg-5.jpg';
import card3 from '../images/sdg-9.jpg';
import card4 from '../images/sdg-10.jpg';
import card5 from '../images/sdg-13.jpg';
impor... |
ajax/libs/angular-google-maps/2.1.4/angular-google-maps_dev_mapped.js | bsquochoaidownloadfolders/cdnjs | /*! angular-google-maps 2.1.4 2015-06-14
* AngularJS directives for Google Maps
* git: https://github.com/angular-ui/angular-google-maps.git
*/
;
(function( window, angular, undefined ){
'use strict';
/*
!
The MIT License
Copyright (c) 2010-2013 Google, Inc. http://angularjs.org
Permission is hereby granted, f... |
Examples/UIExplorer/ImageCapInsetsExample.js | Bronts/react-native | /**
* The examples provided by Facebook are 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,
... |
tests/components/FAQs.spec.js | tenshiemi/DoDidDone | import React from 'react';
import { FAQs } from 'components/FAQs';
import { shallow } from 'enzyme';
describe('(Component) FAQs', () => {
let _wrapper;
beforeEach(() => _wrapper = shallow(<FAQs/>));
it('Renders an FAQ', () => {
const faq = _wrapper.find('h2');
expect(faq).to.exist;
expect(faq.text(... |
docs/app/Examples/elements/Input/Variations/InputExampleTransparent.js | ben174/Semantic-UI-React | import React from 'react'
import { Input } from 'semantic-ui-react'
const InputExampleTransparent = () => (
<Input transparent placeholder='Search...' />
)
export default InputExampleTransparent
|
src/atoms/Icon/index.js | sjofartstidningen/bryggan | import React from 'react';
import PropTypes from 'prop-types';
import styled, { css } from 'styled-components';
import LogotypePaths from './Logotype';
const IconWrapper = styled.span`
position: relative;
display: inline-flex;
align-self: center;
width: 1em;
height: 1em;
`;
const IconSvg = styled.svg`
wid... |
src/modules/Imagelist/components/Images.js | YBox-POS/possys | import React from 'react';
import { Text, Image, View } from 'react-native';
import GridView from 'react-native-super-grid';
import styles from './styles';
const ExImages = ({ imagesa, followImage, unfollowImage }) => (
<GridView
itemWidth={103}
items={imagesa}
style={styles.gridView}
enableEmptySe... |
src/react/index.js | pabloalonsos/redux-devtools | import React from 'react';
import createDevTools from '../createDevTools';
export const DevTools = createDevTools(React);
export { default as LogMonitor } from './LogMonitor';
export { default as DebugPanel } from './DebugPanel';
|
vendor/bundle/gems/jquery-rails-2.1.1/vendor/assets/javascripts/jquery.js | masukomi/mobtvse | /*!
* jQuery JavaScript Library v1.8.0
* 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: Thu Aug 09 2012 16:24:48 GMT-0400 (Eastern Daylight Time)
*/
(function(... |
src/pages/fashionista.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Fashionista' />
)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.