path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/primeui/4.1.8/primeui.min.js | sreym/cdnjs | var PUI={zindex:1e3,gridColumns:{1:"ui-grid-col-12",2:"ui-grid-col-6",3:"ui-grid-col-4",4:"ui-grid-col-3",6:"ui-grid-col-2",12:"ui-grid-col-11"},charSet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",scrollInView:function(t,e){var i=parseFloat(t.css("borderTopWidth"))||0,s=parseFloat(t.css("paddingTop"))||0,n=e.offset().top-t.... |
src-client/app.js | cerad/arbiter | import React from 'react';
import HelloComponent from './HelloComponent';
React.render(
<HelloComponent />,
document.getElementById('hello')
);
|
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | JuanMenendezBuitrago/angular-tour-of-heroes | import React from 'react';
import { render } from 'react-dom';
// 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';
render(<HelloWorld />, document.getElementById('react-root'));
|
app/src/components/ConveneMessage/ConveneMessage.js | ChristopherMcDonald/Convene.io | import React, { Component } from 'react';
import './ConveneMessage.css';
class ConveneMessage extends Component {
// success, info, warning, danger
render() {
return (
<div className={'ConveneMessage ' + this.props.active}>
<div className={'alert alert-dismissable alert-' + ... |
app/jsx/calendar/scheduler/components/appointment_groups/EditPage.js | djbender/canvas-lms | /*
* Copyright (C) 2016 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
vendor/sonata-project/admin-bundle/Resources/public/vendor/x-editable/dist/jqueryui-editable/js/jqueryui-editable.js | sensukho/mgcommunity | /*! X-editable - v1.5.1
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
* http://github.com/vitalets/x-editable
* Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */
/**
Form with single input element, two buttons and two states: normal/loading.
Applied as jQuery method to DIV tag (not to form tag!... |
pages/teams/single.js | turntwogg/esports-aggregator | import React from 'react';
import { Row, Col, useTheme } from '@turntwo/react-ui';
import idx from 'idx';
import Page from '../../components/Page';
import PageHeader from '../../components/PageHeader';
import PageContent from '../../components/PageContent';
import PageHero from '../../components/PageHero';
import Head... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/webpack.config.js | Default-Value/defaultvalue.info | // For instructions about this file refer to
// webpack and webpack-hot-middleware documentation
var webpack = require('webpack');
var path = require('path');
module.exports = {
debug: true,
devtool: '#eval-source-map',
context: path.join(__dirname, 'app', 'js'),
entry: [
'webpack/hot/dev-server',
'we... |
src/browser/syntheticEvents/__tests__/SyntheticEvent-test.js | varunparkhe/react | /**
* Copyright 2013-2014, 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.
*
* @emails react-co... |
src/icons/VideogameAssetIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class VideogameAssetIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M42 12H6c-2.21 0-4 1.79-4 4v16c0 2.21 1.79 4 4 4h36c2.21 0 4-1.79 4-4V16c0-2.21-1.79-4-4-4zM22 26h-... |
src/components/MonthsViewHeading.js | evandhq/react-persian-datepicker | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { persianNumber } from '../utils/persian';
import { leftArrow, rightArrow } from '../utils/assets';
export default class MonthsViewHeading extends Component {
static propTypes = {
year: PropTypes.object.isRequired,
onNextYea... |
CompositeUi/src/views/page/organization/AddMember.js | kreta/kreta | /*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <benatespina@gmail.com>
* (c) Gorka Laucirica <gorka.lauzirika@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import {connect} from 'react-redux';
impo... |
src/components/nav-helper.js | suhasdeshpande/cautious-computing-machine | import React from 'react'
import localLinks from 'local-links'
export default React.createClass({
displayName: 'NavHelper',
onClick (event) {
const pathname = localLinks.getLocalPathname(event)
if (pathname) {
event.preventDefault()
app.router.history.navigate(pathname)
}
},
rend... |
app/components/ScreenWrapper/index.js | JSSolutions/Perfi | import React from 'react';
import PropTypes from 'prop-types';
import { StyleSheet, View } from 'react-native';
import { dimensions, colors } from '../../styles';
const styles = StyleSheet.create({
rootStyle: {
flex: 1,
padding: dimensions.indent,
backgroundColor: colors.white,
},
});
const ScreenWrap... |
src/js/components/Aside.js | nicholasodonnell/moonshine | import React from 'react';
import Navigation from './Navigation';
import Collections from './Collections';
class Aside extends React.Component {
constructor() {
super();
}
componentWillMount() {
}
render() {
return (
<aside class="o-aside">
<Navigatio... |
node_modules/react-icons/md/open-in-new.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdOpenInNew = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m23.4 5h11.6v11.6h-3.4v-5.9l-16.3 16.3-2.3-2.3 16.3-16.3h-5.9v-3.4z m8.2 26.6v-11.6h3.4v11.6q0 1.4-1 2.4t-2.4 1h-23.2q-1.4 0-2.4-1t-1-2.4v-23.2q0-1.4 1-2.4t2.4-1h11... |
src/DevTools.js | TobiasBales/PlayuavOSDConfigurator | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor
toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-q"
defaultIsVisible={fal... |
__tests__/index.android.js | bengaara/simbapp | import 'react-native';
import React from 'react';
import Index from '../index.android.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
src/svg-icons/notification/airline-seat-recline-normal.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatReclineNormal = (props) => (
<SvgIcon {...props}>
<path d="M7.59 5.41c-.78-.78-.78-2.05 0-2.83.78-.78 2.05-.78 2.83 0 .78.78.78 2.05 0 2.83-.79.79-2.05.79-2.83 0zM6 16V7H4v9c0 2.76 2.24 5... |
src/svg-icons/action/open-with.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionOpenWith = (props) => (
<SvgIcon {...props}>
<path d="M10 9h4V6h3l-5-5-5 5h3v3zm-1 1H6V7l-5 5 5 5v-3h3v-4zm14 2l-5-5v3h-3v4h3v3l5-5zm-9 3h-4v3H7l5 5 5-5h-3v-3z"/>
</SvgIcon>
);
ActionOpenWith = pure(Act... |
stories/core/Card.js | rentpath/react-ui | import React from 'react'
import { Card, List } from 'react-ui-core/src'
const content = <List items={['One', 'Two', 'Three']} />
export const DefaultCard = (
<Card>
{content}
</Card>
)
|
ajax/libs/react-data-grid/1.0.58/react-data-grid.ui-plugins.min.js | cdnjs/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports.ReactDataGrid=e(require("react"),require("react-dom")):t.ReactDataGrid=e(t.React,t.ReactDOM)}(th... |
ajax/libs/primereact/6.5.1/steps/steps.esm.js | cdnjs/cdnjs | import React, { Component } from 'react';
import { classNames, ObjectUtils } from 'primereact/core';
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
function _defineProperties(target, props) {
for (var ... |
node_modules/react-icons/fa/calendar-minus-o.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const FaCalendarMinusO = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m27.2 25v1.4q0 0.3-0.2 0.5t-0.5 0.2h-12.9q-0.3 0-0.5-0.2t-0.2-0.5v-1.4q0-0.3 0.2-0.5t0.5-0.2h12.9q0.3 0 0.5 0.2t0.2 0.5z m-22.8 12.1h31.4v-22.8h-31.4v22.8z m8.... |
src/docs/components/menu/MenuExamplesDoc.js | karatechops/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import Menu from 'grommet/components/Menu';
import Anchor from 'grommet/components/Anchor';
import CheckBox from 'grommet/components/CheckBox';
import Button from 'grommet/components/Button';
import ActionsIc... |
src/components/AccountList.js | JoeEcob/Spendy | import React from 'react'
import PropTypes from 'prop-types'
const AccountList = ({
accounts,
selectedAccount,
onClick
}) => (
accounts.length === 0
? ''
: <section className="accounts hero">
<div className="container">
<p>Which account would you like to view?</p>
<div>
{accounts.ma... |
src/app/components/addComment.js | webcoding/reactui-starter | import React from 'react/addons';
import Reflux from 'reflux';
import authStore from 'stores/auth';
import ValidateComment from 'services/validateComment';
import MarkdownEditor from 'components/markdownEditor';
import BootstrapModalLink from 'components/bootstrapModalLink';
import SignupOrLoginToSaveRecipe from 'mo... |
docs/src/PageFooter.js | omerts/react-bootstrap | import React from 'react';
import packageJSON from '../../package.json';
let version = packageJSON.version;
if (/docs/.test(version)) {
version = version.split('-')[0];
}
const PageHeader = React.createClass({
render() {
return (
<footer className='bs-docs-footer' role='contentinfo'>
<div c... |
test/js/scene_ios_test.js | viromedia/viro | /**
* Copyright (c) 2015-present, Viro, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
import React, {... |
ajax/libs/js-data/1.5.2/js-data-debug.js | aashish24/cdnjs | /**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file dist/js-data-debug.js
* @version 1.5.2 - 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&&"undefine... |
app/javascript/mastodon/features/ui/components/boost_modal.js | ebihara99999/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import IconButton from '../../../components/icon_button';
import Button from '../../../components/button';
import StatusCo... |
examples/simple/index.js | shaunstanislaus/library-boilerplate | import React from 'react';
import App from './components/App';
React.render(
<App />,
document.getElementById('root')
);
|
site/pages/APIPage.js | pairyo/react-dnd | import React from 'react';
import Header from '../components/Header';
import PageBody from '../components/PageBody';
import SideBar from '../components/SideBar';
import StaticHTMLBlock from '../components/StaticHTMLBlock';
import { APIPages } from '../Constants';
export default class APIPage {
render() {
return ... |
src/components/Home.js | kid0809/react-start-kit | import React from 'react';
const Home = () => (
<div>
<h2>Home!!</h2>
</div>
)
export default Home
|
Components/Core.TaxonomyMenu/Core.TaxonomyMenuWeb/Scripts/jquery-1.9.1.min.js | rbarten/PnP | /* NUGET: BEGIN LICENSE TEXT
jQuery v1.9.1
Microsoft grants you the right to use these script files for the sole purpose of either: (i) interacting through your browser with the Microsoft website, subject to the website's terms of use; or (ii) using the files as included with a Microsoft product subject to that produc... |
src/route/sysuser/UserTabHeader.js | hustlrb/yjbAdmin | import React from 'react';
const UserTabHeader = (props) => {
return (
<div style={{display: "flex", flexFlow: "column"}}>
用户信息
<hr/>
</div>
);
};
export default UserTabHeader;
|
modules/base/rules/imports.js | samsao/javascript | module.exports = {
settings: {
'import/parser': 'babel-eslint',
'import/resolver': {
'babel-module': {},
},
},
rules: {
// FIXME: Removed after airbnb-config-base release
'import/exports-last': 'off',
'import/named': 'error',
'import/no-amd': 'error',
'import/no-anonymous-de... |
demo/components/Dashboard.js | flybears/component-react | /**
* Created by flybear on 15/11/18.
*/
import React from 'react';
import { Link } from 'react-router';
export default class Dashboard extends React.Component{
render(){
return (
<div>
This is Dashboard!
<Link to="/about">About</Link>
</div>
... |
app/javascript/mastodon/features/ui/components/audio_modal.js | kirakiratter/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Audio from 'mastodon/features/audio';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { FormattedMessage } from 'react-intl';
import { previewState } from './vide... |
examples/todo/js/components/TodoList.js | venepe/relay | /**
* 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/backbone-react-component/0.7.3/backbone-react-component.js | KyleMit/cdnjs | // Backbone React Component
// ========================
//
// Backbone.React.Component v0.7.3
//
// (c) 2014 "Magalhas" José Magalhães <magalhas@gmail.com>
// Backbone.React.Component can be freely distributed under the MIT license.
//
//
// `Backbone.React.Component` is a mixin that glues [Backbone](http:/... |
src/components/Header/Header.js | albperezbermejo/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './Header.css';
import withStyles from '../../decorators/withStyles';
import Link from '../../utils/Link';
import Navigation from '../Navigation';
@withStyles(styles)
class Header {
render() {
... |
addons/themes/arcana/layouts/Blog.js | rendact/rendact | import $ from 'jquery'
import React from 'react';
import gql from 'graphql-tag';
import {graphql} from 'react-apollo';
import moment from 'moment';
import {Link} from 'react-router';
import scrollToElement from 'scroll-to-element';
let Blog = React.createClass({
componentDidMount(){
require('../assets/css/main.c... |
src/app.js | lgraubner/webpack-boilerplate-react | // @flow
import React from 'react'
import ReactDOM from 'react-dom'
import { createStore, combineReducers, applyMiddleware } from 'redux'
import { Provider } from 'react-redux'
import createHistory from 'history/createBrowserHistory'
import { Route } from 'react-router'
import {
ConnectedRouter,
routerReducer,
... |
frontend/app/js/components/rules_v2/rule.js | serverboards/serverboards | import React from 'react'
import i18n from 'app/utils/i18n'
import {ActionList} from './action'
import When from 'app/containers/rules_v2/when'
function Rule(props){
const {rule, section, Section} = props
return (
<div id="rule" className="ui two column grid grey background" style={{margin:0, height: "100%"}}... |
Tasks.ASP.NET.SimpleOAuth2/Scripts/jquery-1.4.1.min.js | simpleverso/google-api-dotnet-client-samples | /*!
* jQuery JavaScript Library v1.4.1
* http://jquery.com/
*
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software... |
packages/material-ui-icons/src/ListAltSharp.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="M11 7h6v2h-6zM11 11h6v2h-6zM11 15h6v2h-6zM7 7h2v2H7zM7 11h2v2H7zM7 15h2v2H7z" /><path d="M3 3v18h18V3H3zm16 16H5V5h14v14z" /></g></React.Frag... |
pootle/static/js/auth/components/RequestPasswordResetSent.js | translate/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle 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 { PureRenderMixin } from... |
test/spec/decorator.js | Katochimoto/xblocks-core | import { element } from 'decorator';
import React from 'react';
var vow = require('vow');
describe('xblocks.decorator', function () {
it('Должен создать вид и элемент', function () {
var constructor = element('xb-decorator-test', {
accessors: {
test: {
get: f... |
setup/src/universal/features/common_ui/app/Header/index.js | ch-apptitude/goomi | /**
*
* Header
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import Theme from 'assets/theme';
import { UserPropTypes } from 'features/user/constants';
import HOCAuth from 'features/user/hoc/HOCAuth';
import ProfilePicture from 'features/user/components/P... |
app/scripts/Widget/plugins/Match/__tests__/pages/GoalsPage.spec.js | igr-santos/bonde-client | import React from 'react'
import { mount } from 'enzyme'
import { expect } from 'chai'
import sinon from 'sinon'
import { GoalsPage } from '../../pages'
describe('Match/pages/GoalsPage', () => {
let wrapper
let match_list = [
{
id: 43,
widget_id: 93,
first_choice: 'Framboesa',
second_c... |
node_modules/react-bootstrap/es/Glyphicon.js | FoxMessenger/nyt-react | 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 ... |
files/parsleyjs/2.2.0-rc1/parsley.remote.js | jonataswalker/jsdelivr | /*!
* Parsleyjs
* Guillaume Potier - <guillaume@wisembly.com>
* Version 2.2.0-rc1 - built Sun Aug 16 2015 14:04:07
* MIT Licensed
*
*/
!(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module depending on jQuery.
define(['jquery'], factory);
} else if ... |
src/app/Home.js | KumarSourabh-DCPL/Material_Design_Test | /**
* In this file, we create a React component
* which incorporates components provided by Material-UI.
*/
import React, { Component } from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import getMuiTheme from ... |
ajax/libs/yui/3.14.0/scrollview-base/scrollview-base-debug.js | amoyeh/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
// Local vars
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
IE = Y.UA.ie... |
node-react/client/src/landing/Landing.js | FabioZTessitore/probability | import React, { Component } from 'react';
import Error from '../error/Error';
class Landing extends Component {
constructor (props) {
super (props);
this.state = {
errorMessage: ''
};
this.changePage = this.changePage.bind(this);
this.goSignin = this.goSignin.bind(this);
this.register... |
src/svg-icons/notification/airline-seat-legroom-extra.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatLegroomExtra = (props) => (
<SvgIcon {...props}>
<path d="M4 12V3H2v9c0 2.76 2.24 5 5 5h6v-2H7c-1.66 0-3-1.34-3-3zm18.83 5.24c-.38-.72-1.29-.97-2.03-.63l-1.09.5-3.41-6.98c-.34-.68-1.03-1.... |
ajax/libs/yui/3.8.1/datatable-core/datatable-core-debug.js | Enelar/cdnjs | YUI.add('datatable-core', function (Y, NAME) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@since 3.5.0
**/
var INVALID = Y.Attribute.INVALID_VALUE,
Lang = Y.Lang,
isFunction = Lang.isFunction,
isObject = Lang.isO... |
teracy/html5boilerplate/static/html5boilerplate/js/vendor/jquery-1.10.2.js | teracyhq/django-html5-boilerplate | /*!
* 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 ) {
// ... |
ajax/libs/react-datepicker/0.24.0/react-datepicker.min.js | sajochiu/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("moment"),require("react"),require("react-onclickoutside"),require("react-dom")):"function"==typeof define&&define.amd?define(["moment","react","react-onclickoutside","react-dom"],t):"object"==typeof exports?exports.DatePicker=t(r... |
ajax/libs/angular.js/1.0.0rc4/angular-scenario.js | dannyxx001/cdnjs | /** @license
* jQuery JavaScript Library v1.7
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Lic... |
server.js | caiyongmin/react-todo | import React from 'react'
import {renderToString} from 'react-dom/server'
import {match, ReactContext} from 'react-router'
import routes from './app/router/routes'
const express = require('express')
const path = require('path')
const app = express()
app.use(express.static(path.join(__dirname, 'product')))
app.get('... |
lib/cli/test/fixtures/react_scripts/src/index.js | storybooks/react-storybook | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
src/svg-icons/maps/local-post-office.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalPostOffice = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/>
</SvgIcon>
);
MapsLocalPostOff... |
cm19/ReactJS/your-first-react-app-exercises-master/exercise-11/complete/Card.js | Brandon-J-Campbell/codemash | import React from 'react';
import styles from './Card.css';
export default function Card({ children }) {
return <div className={styles.card}>{children}</div>;
} |
src/Badge/Badge.js | resmio/mantecao | import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import { colors } from '../variables'
const StyledSpan = styled.span`
display: inline-block;
min-width: 10px;
padding: 1px 7px;
font-size: 12px;
font-weight: 700;
color: ${colors.white};
vertical-align: bo... |
ajax/libs/mobx-react/3.5.1/index.min.js | cdnjs/cdnjs | !function(){function e(e,t,o){function r(e){return o?o.findDOMNode(e):null}function n(e){var t=r(e);t&&h&&h.set(t,e),m.emit({event:"render",renderTime:e.__$mobRenderEnd-e.__$mobRenderStart,totalTime:Date.now()-e.__$mobRenderStart,component:e,node:t})}function i(){if("undefined"==typeof WeakMap)throw new Error("[mobx-re... |
packages/material-ui-icons/src/ReplyAll.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M7 8V5l-7 7 7 7v-3l-4-4 4-4zm6 1V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11z" /></g>
, 'ReplyAll');
|
pages/event/show.js | shinosakarb/tebukuro-client | // @flow
import React from 'react'
import EventView from '../../containers/EventView'
import withLayout from '../../components/Layout'
import withQueryString from '../../components/QueryString'
type Props = {
url: Object
}
const EventShowPage = (props: Props) => <EventView url={props.url} />
export default withLay... |
vendor/jquery/jquery.min.js | MIBlue119/intern | /*! jQuery v1.12.4 | (c) jQuery Foundation | 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 window?window:this,fu... |
test/helpers/shallowRenderHelper.js | YMFL/reactNews | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
client/src/components/Public/EntitySearchResultItem/EntitySearchResultItem.js | verejnedigital/verejne.digital | // @flow
import React from 'react'
import './EntitySearchResultItem.css'
import Info from '../../shared/Info/Info'
import type {NewEntityDetail} from '../../../state'
type EntitySearchResultItemProps = {|
entity: NewEntityDetail,
|}
const EntitySearchResultItem = ({entity}: EntitySearchResultItemProps) => (
<div ... |
src/client/js/news/YoutubeEmbed.js | GoodBoy123/crendorianinvitational | import React from 'react';
class YoutubeEmbed extends React.Component {
constructor(props) {
super(props)
}
render() {
return(
<iframe width="560" height="315" src={`https://www.youtube.com/embed/${this.props.src}`} frameBorder="0" allowFullScreen></iframe>
);
}
}
YoutubeEmbed.propTypes = {... |
ajax/libs/react-native-web/0.14.4/cjs/modules/usePlatformMethods/index.min.js | cdnjs/cdnjs | "use strict";exports.__esModule=!0,exports.default=usePlatformMethods;var _UIManager=_interopRequireDefault(require("../../exports/UIManager")),_createDOMProps=_interopRequireDefault(require("../createDOMProps")),_useStable=_interopRequireDefault(require("../useStable")),_react=require("react");function _interopRequire... |
examples/using-path-prefix/src/pages/b.js | Khaledgarbaya/gatsby | import React from "react"
const B = () => <p>B</p>
export default B
|
files/react/0.12.0-rc1/react.min.js | shumes/jsdelivr | /**
* React v0.12.0-rc1
*
* Copyright 2013-2014, 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... |
Examples/Movies/SearchBar.ios.js | gabrielbellamy/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,
... |
src/search-filter-title.js | MortalFlesh/react-search-filter-example | import React from 'react';
import {addons} from 'react/addons';
import Loading from './loading';
const SearchFilterTitle = React.createClass({
mixins: [addons.PureRenderMixin],
propTypes: {
title: React.PropTypes.string.isRequired,
isSearching: React.PropTypes.bool.isRequired,
children... |
packages/material-ui-icons/src/PregnantWomanSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M9 4c0-1.11.89-2 2-2s2 .89 2 2-.89 2-2 2-2-.89-2-2zm7 9c-.01-1.34-.83-2.51-2-3 0-1.66-1.34-3-3-3s-3 1.34-3 3v7h2v5h3v-5h3v-4z" />
, 'PregnantWomanSharp');
|
frontend/app/components/Loading/Loading.js | briancappello/flask-react-spa | import React from 'react'
import { PageContent } from 'components/Content'
import Spinner from './Spinner'
export default () => (
<PageContent>
<Spinner color="black"/> <strong>Loading...</strong>
</PageContent>
)
|
src/entypo/ArrowWithCircleUp.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--ArrowWithCircleUp';
let EntypoArrowWithCircleUp = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M10,0.4c-5.303,0-9.601,4.298-9.601,9.6c0,5.303,4.298,9.601,9.601,9.601c5.301,0,... |
app/main.js | Picta-it/Jammy | import React from 'react';
import ReactDOM from 'react-dom';
import createStore from './store/createStore';
import App from './containers/App';
import injectTapEventPlugin from 'react-tap-event-plugin';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getM... |
src/components/filter-list/FilterList.es6.js | widged/SOT-skills-report | /* jshint esnext: true */
import React from 'react';
let {Component} = React;
export default class CheckList extends Component {
constructor(props) {
super(props);
}
render() {
let {key, title, list} = this.props;
return (
<div data-target={{key}}>
<h3>{{tit... |
node_modules/react-bootstrap/es/Label.js | vietvd88/developer-crawler | import _Object$values from 'babel-runtime/core-js/object/values';
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-... |
mykira/webroot/js/jquery.min.js | Thealexander/KiraSaeuam | /*! jQuery v1.11.3 | (c) 2005, 2015 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... |
files/instantsearch.js/1.3.0/instantsearch.min.js | ezekutor/jsdelivr | /*! instantsearch.js 1.3.0 | © 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.instantsea... |
ajax/libs/yui/3.10.3/datatable-body/datatable-body.js | ekeneijeoma/cdnjs | 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` and `Y.DataTable` classes.
@module datatable
@submodule datatable-body
@since 3.5.0
**/
var Lang = Y.Lang,
isArray = Lang.isA... |
assets/javascripts/sso/components/AdminListGroupMemberCard.js | wchaoyi/sso | import StyleSheet from 'react-style';
import React from 'react';
import {History} from 'react-router';
import {Admin} from '../models/Models';
let AdminListGroupMemberCard = React.createClass({
mixins: [History],
getInitialState() {
return {
group_members: [],
};
},
componentWillMount() {
... |
packages/mineral-ui-icons/src/IconTapAndPlay.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconTapAndPlay(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconPro... |
ajax/libs/extjs/4.2.1/src/form/Basic.js | gionkunz/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... |
src/routes.js | akfreas/ReactTest | /*! 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 ContentPage from './components/ContentPage';
import ContactPage from './components/ContactP... |
ajax/libs/6to5/1.12.3/browser.js | tonytlwu/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.to5=e()}}(function(){var define,module,exports;return... |
src/forms/formElement/formElementFromStateSpec.js | ikanedo/react-redux-simple-validate | import React from 'react';
import formElementFromState from './formElementFromState';
describe('FormValueAttr', () => {
describe(
`Facade function which returns the value attr (key/val) from the state.
Please read - https://facebook.github.io/react/docs/forms.html
The reason why we do this is to transfor... |
src/emoji.js | wildseansy/react-native-country-picker-modal | import React from 'react';
import { Text } from 'react-native';
import nodeEmoji from 'node-emoji';
PropTypes = require('prop-types');
if (!PropTypes) {
PropTypes = React.PropTypes;
}
class Emoji extends React.Component {
static propTypes = {
name: PropTypes.string.isRequired,
}
render() {
const emo... |
src/js/components/home/index.js | jrnail23/sitterswap-ui | import React from 'react'
export default class extends React.Component {
render () {
return (
<div className='jumbotron'>
<h1>SitterSwap</h1>
<p>Online tracking system for the Takoma Park Babysitting Cooperative.</p>
</div>
)
}
}
|
example.js | unclecheese/react-selectable | import data from './sample-data';
import React from 'react';
import { render } from 'react-dom';
import SelectableGroup from './selectable-group';
import createSelectable from './createSelectable';
const isNodeInRoot = (node, root) => {
while (node) {
if (node === root) {
return true;
}
node = nod... |
client/src/components/breweries/brewery-beers.js | commoncode/ontap | /**
* BreweryBeers
*/
import React from 'react';
import propTypes from 'prop-types';
import { breweryModel, beerModel } from '../../proptypes';
const BreweryBeers = props => (
<div className="brewery-beers">
<h3 className="list-title">Beers by {props.Brewery.name}</h3>
{!props.Beers.length && (
<... |
coursera/Cryptography/Programming Assignment 1/doc/Programming Assignment 1 | Coursera_files/Selectize.js | kszatkow/kcrypt | define("bundles/phoenix/components/Selectize",["require","exports","module","jquery","react-with-addons","selectize","css!bundles/vendor/selectize/styles/selectize","css!bundles/vendor/selectize/styles/selectize.bootstrap3"],function(require,exports,module){"use strict";function _defaults(e,n){for(var s=Object.getOwnPr... |
Ethereum-based-Roll4Win/node_modules/react-overlays/es/utils/ownerWindow.js | brett-harvey/Smart-Contracts | import ReactDOM from 'react-dom';
import ownerWindow from 'dom-helpers/ownerWindow';
export default function (componentOrElement) {
return ownerWindow(ReactDOM.findDOMNode(componentOrElement));
} |
src/containers/DevTools.js | Korkemoms/amodahl.no | // @flow
import React from 'react'
// Exported from redux-devtools
import { createDevTools } from 'redux-devtools'
// Monitors are separate packages, and you can make a custom one
import DockMonitor from 'redux-devtools-dock-monitor'
import LogMonitor from 'redux-devtools-log-monitor'
const DevTools = createDevTools... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.