target stringlengths 5 300 | feat_repo_name stringlengths 6 76 | text stringlengths 26 1.05M |
|---|---|---|
src/containers/NoMatch.js | mastodonkaigi/mastodonkaigi.org | import React from 'react';
import styled from 'styled-components';
const Root = styled.div`
margin: 0;
padding: 1rem 5rem;
`;
const Title = styled.h1`
font-size: 2rem;
margin: 0;
padding: 0 1rem 1rem;
`;
export default () => (
<Root>
<Title>404 Not Found</Title>
</Root>
);
|
ajax/libs/forerunnerdb/1.3.808/fdb-core+persist.min.js | him2him2/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
client/webpack.config.vendor.js | osu-cass/AP_ScoringGuide | const path = require("path");
const webpack = require("webpack");
const CopyWebpackPlugin = require("copy-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const bundleOutputDir = "../server/public/client/";
module.exports = env => {
const isDevBuild = (env && env.dev);
return [
... |
examples/shopping-cart/src/components/ProductsList.js | lifeiscontent/redux | import React from 'react'
import PropTypes from 'prop-types'
const ProductsList = ({ title, children }) => (
<div>
<h3>{title}</h3>
<div>{children}</div>
</div>
)
ProductsList.propTypes = {
children: PropTypes.node,
title: PropTypes.string.isRequired
}
export default ProductsList
|
ajax/libs/yui/3.5.1/event-custom-base/event-custom-base.js | manorius/cdnjs | YUI.add('event-custom-base', function(Y) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module ev... |
mxcube3/ui/components/Tasks/Helical.js | mguijarr/mxcube3 | import React from 'react';
import { reduxForm } from 'redux-form';
import { Modal, Button } from 'react-bootstrap';
import validate from './validate';
/* eslint camelcase: 0 */
class Helical extends React.Component {
constructor(props) {
super(props);
this.runNow = this.handleSubmit.bind(this, true);
t... |
src/app/components/resourses/planetsheet/Panel.js | maullerz/eve-react | import React from 'react';
import { connect } from 'react-redux';
import { updateVars, searchOutputSystem, searchInputSystem } from '../../../actions/planetSheetActions';
// components
import SystemSellBuy from './../../blocks/SystemSellBuy';
class Panel extends React.Component {
// Get suggestions
getSuggestion... |
modules/__tests__/History-test.js | Nedomas/react-router | /*eslint-env mocha */
import expect from 'expect'
import React from 'react'
import History from '../History'
import Router from '../Router'
import Route from '../Route'
import createHistory from 'history/lib/createMemoryHistory'
describe('History Mixin', function () {
let node
beforeEach(function () {
node = ... |
react/ThumbsUpIcon/ThumbsUpIcon.js | seek-oss/seek-style-guide | import svgMarkup from './ThumbsUpIcon.svg';
import React from 'react';
import Icon from '../private/Icon/Icon';
export default function ThumbsUpIcon(props) {
return <Icon markup={svgMarkup} {...props} />;
}
ThumbsUpIcon.displayName = 'ThumbsUpIcon';
|
ajax/libs/forerunnerdb/1.3.659/fdb-all.js | brix/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... |
.storybook/Button.stories.js | kylpo/kylpo-monorepo | import React from 'react'
import { storiesOf, action } from '@kadira/storybook'
import Button from '../packages/Button'
storiesOf('Button', module)
.add('with text child', () => (
<Button>
This is a button
</Button>
))
|
test/components/ChoresList_spec.js | craveytrain/chores | import React from 'react';
import ReactDOM from 'react-dom';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import { ChoresList } from '../../src/components/chores/List';
const chores = [
{
id: 'make-bed',
name: 'Make bed',
completed: false
},
{
id: 'clear... |
src/routes/home/Home.js | binyuace/vote | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
packages/nova-core/lib/containers/withNew.js | JstnEdr/Telescope | /*
Generic mutation wrapper to insert a new document in a collection and update
a related query on the client with the new item and a new total item count.
Sample mutation:
mutation moviesNew($document: MoviesInput) {
moviesNew(document: $document) {
...MoviesNewFormFragment
}
}
Arguments:
-... |
internals/templates/containers/NotFoundPage/index.js | carney520/lg-react-boilerplate | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it... |
dist/1.10.2/jquery-ajax-deprecated-dimensions-event-alias-offset.min.js | jgallen23/jquery-builder | /*! jQuery v1.10.2 -event-alias,-ajax,-ajax/script,-ajax/jsonp,-ajax/xhr,-offset,-dimensions,-deprecated | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10... |
src/components/OrderSnpTable.js | hunt-genes/fasttrack | import React from 'react';
export default class OrderSnpTable extends React.Component {
static propTypes = {
snps: React.PropTypes.array,
results: React.PropTypes.array,
}
render() {
const { snps, results } = this.props;
return (
<table>
<thead>
... |
frontend/src/components/customStepper/StepIcon.js | unicef/un-partner-portal | import React from 'react';
import PropTypes from 'prop-types';
import CheckCircle from 'material-ui-icons/CheckCircle';
import { withStyles } from 'material-ui/styles';
import StepPositionIcon from './StepPositionIcon';
export const styleSheet = theme => ({
checkIcon: {
fill: theme.palette.secondary[500],
},... |
lib/views/annotation-container.js | jneuendorf/code-annotations | import React from 'react'
import PropTypes from 'prop-types'
import AnnotationList from './annotation-list'
import Annotation from './annotation'
import AnnotationsDb from '../annotations-db'
import {DELETE_CONFIRM_MESSAGE} from '../constants'
import * as Config from '../config'
import * as Utils from '../utils'
impor... |
ajax/libs/forerunnerdb/1.3.324/fdb-core.js | pombredanne/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... |
client/components/CodeEditor/Language_Dropdown.js | Elektro1776/Project_3 | import React, { Component } from 'react';
import Dropdown from 'react-toolbox/lib/dropdown';
const languages = [
{ value: 'css', label: 'CSS' },
{ value: 'handlebars', label: 'Handlebars' },
{ value: 'html', label: 'HTML' },
{ value: 'java', label: 'Java' },
{ value: 'javascript', label: 'Javascript' },
{ ... |
ajax/libs/yasr/2.4.13/yasr.bundled.min.js | amoyeh/cdnjs | !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){... |
packages/ui-toolkit/src/breakpoints/query.js | yldio/joyent-portal | import React from 'react';
import MediaQuery from 'react-responsive';
import pascalCase from 'pascal-case';
import screens from './screens';
const toQuery = label => ({ children, ...rest }) => (
<MediaQuery query={screens[label]}>{children}</MediaQuery>
);
export default Object.keys(screens).reduce(
(sum, label)... |
src/components/Counter/Counter.js | aurel-tackoen/spencer.io | import React from 'react'
import classes from './Counter.scss'
export const Counter = (props) => (
<div>
<h2 className={classes.counterContainer}>
Counter:
{' '}
<span className={classes['counter--green']}>
{props.counter}
</span>
</h2>
<button className='btn btn-default' ... |
src/components/matches/Match/OtherMatchTeamTitle.js | TTCErembodegem/TTC-React-Front | import React from 'react';
import PropTypes from '../../PropTypes.js';
import {OpponentLink} from '../../teams/controls/OpponentLink.js';
export const OtherMatchTeamTitle = ({team, readonlyMatch, isHome, withPosition}) => {
const opponent = isHome ? readonlyMatch.home : readonlyMatch.away;
return <OpponentLink tea... |
client2/src/components/react-burger-menu/test/CrossIcon.spec.js | frolicking-ampersand/CodeOut | 'use strict';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import { assert, expect } from 'chai';
import createShallowComponent from './utils/createShallowComponent';
import CrossIcon from '../lib/CrossIcon';
describe('CrossIcon component', () => {
let component;
const mockStylesPr... |
src/svg-icons/image/filter-6.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilter6 = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-8-2h2c1.1 0 2-.89 2-2v-2... |
pages/arrange/index.js | southern-ground/stack-shellybrown.com | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import _ from '../../node_m... |
app/javascript/mastodon/components/status_content.js | nonoz/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import escapeTextContentForBrowser from 'escape-html';
import PropTypes from 'prop-types';
import emojify from '../emoji';
import { isRtl } from '../rtl';
import { FormattedMessage } from 'react-intl';
import Permalink from './permal... |
ajax/libs/vega/3.0.0-beta.27/vega-core.js | hare1039/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('d3-array'), require('d3-request'), require('d3-dsv'), require('topojson'), require('d3-time-format'), require('d3-shape'), require('d3-path'), require('d3-scale'), require('d3-scale-chromatic'), requ... |
files/rxjs/2.2.26/rx.lite.js | as-com/jsdelivr | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
v... |
ajax/libs/angular-google-maps/2.0.2/angular-google-maps.js | melvinsembrano/cdnjs | /*! angular-google-maps 2.0.2 2014-10-21
* 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/routes/admin/index.js | zsu13579/whatsgoinontonight | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Layout from '../../co... |
examples/universal/server.js | usufruct/redux | import path from 'path';
import Express from 'express';
import qs from 'qs';
import React from 'react';
import configureStore from './store/configureStore';
import { Provider } from 'react-redux';
import App from './containers/App';
import { fetchCounter } from './api/counter';
const app = Express();
const port = 3000... |
actor-apps/app-web/src/app/components/modals/Contacts.react.js | fengchenlianlian/actor-platform | //
// Deprecated
//
import _ from 'lodash';
import React from 'react';
import { PureRenderMixin } from 'react/addons';
import ContactActionCreators from 'actions/ContactActionCreators';
import DialogActionCreators from 'actions/DialogActionCreators';
import ContactStore from 'stores/ContactStore';
import Modal from... |
index.ios.js | DanFoad/Memento | /**
* 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 Memento extends Component {
render() {
return (
<View style={styles.container}>... |
src/components/mail/mailPagination.js | EncontrAR/backoffice | import React, { Component } from 'react';
export default class PaginationControl extends Component {
render() {
return (
<div className="isoMailPagination">
<button type="button" className="prevPage">
<i className="ion-ios-arrow-back" />
</button>
<button type="button" cl... |
2-alpha/src/components/RestrictionSitesPreview.js | saturninoharris/primer-design | import _ from 'lodash'
import React from 'react'
import styled from 'styled-components'
import { lighten } from 'polished'
import * as api from '../api'
const Container = styled.div`
display: flex;
flex-wrap: nowrap;
justify-content: space-between;
`
const REItem = styled.div`
&&& p {
margin-bottom: 0;
... |
ajax/libs/forerunnerdb/1.3.585/fdb-core+views.min.js | seogi1004/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
ajax/libs/rxjs-dom/2.0.7/rx.dom.js | nouveller/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
(function (root, factory) {
var freeExports = typeof exports == 'object' && exports,
freeModule = typeof module == 'object' && module && module.exports == freeExports && modu... |
src/components/ListErrors.js | cfilby/react-mobx-realworld-example-app | import React from 'react';
class ListErrors extends React.Component {
render() {
const errors = this.props.errors;
if (errors) {
return (
<ul className="error-messages">
{
Object.keys(errors).map(key => {
return (
<li key={key}>
... |
ajax/libs/yui/3.9.0/event-custom-base/event-custom-base-debug.js | KOLANICH/cdnjs | YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @mo... |
src/AppBundle/Resources/static/jsx/app/Template.js | viszerale-therapie/simple-courses | import React from 'react';
import ReactDOM from 'react-dom';
import tl from '../util/translator';
import DataTable from '../util/DataTable';
import actions from '../util/actions';
import dataDefinition from '../data/Template';
export default {
init : function(data, meta) {
ReactDOM.render((
<div>
<h1>{tl.... |
ajax/libs/styled-components/3.4.1/styled-components.cjs.js | seogi1004/cdnjs | 'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var hyphenate = _interopDefault(require('fbjs/lib/hyphenateStyleName'));
var Stylis = _interopDefault(require('stylis'));
var... |
packages/react-server-examples/code-splitting/components/Header.js | redfin/react-server | import React from 'react';
import {logging} from 'react-server';
import PropTypes from "prop-types";
const logger = logging.getLogger(__LOGGER__);
const Header = ({ headerText }) => {
logger.info("rendering the header");
return (
<div className="header">
React-Server { headerText }
</div>
);
};
Header.prop... |
packages/eslint-config-react/test/rules/react-no-unused.js | moxystudio/eslint-config | import React, { Component } from 'react';
// `jsx-uses-react` - prevent React to be incorrectly marked as unused
// ---------------------------------------------------------------------
// Should not give an error
{
class MyComponent extends Component {
render() {
return <div>foo</div>;
... |
boilerplate/test/spec/shared/components/full-button/full-button.spec.js | ruddell/ignite-jhipster | import 'react-native'
import React from 'react'
import { shallow } from 'enzyme'
import renderer from 'react-test-renderer'
import FullButton from '../../../../../app/shared/components/full-button/full-button'
test('FullButton component renders correctly', () => {
const tree = renderer.create(<FullButton onPress={(... |
lib/jquery.min.js | Makenia/MyK | /*! 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... |
imports/ui/pages/runs/NewRun.js | KyneSilverhide/team-manager | import React from 'react';
import { Panel } from 'react-bootstrap';
import RunEditor from '../../components/runs/RunEditor.js';
const NewRun = ({ versions, teams, developers, teamId }) => (
<div className="NewRun">
<h4 className="page-header">Ajout d'une nouveau run</h4>
<Panel header="Visibilité" bsStyle="i... |
node_modules/react-native/local-cli/generator/templates/__tests__/index.android.js | 15chrjef/mobileHackerNews | 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 />
);
});
|
dist/js-data.js | willruggiano/js-data | /*!
* js-data
* @version 2.3.0 - Homepage <http://www.js-data.io/>
* @author Jason Dobry <jason.dobry@gmail.com>
* @copyright (c) 2014-2015 Jason Dobry
* @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE>
*
* @overview Robust framework-agnostic data store.
*/
(function webpackUniversalModul... |
docs/src/components/Concept/Typography.js | abouthiroppy/scuba | import React from 'react';
import { Code, Paper } from '../../../../src';
const Typography = () => (
<div>
<h2>Typography</h2>
<h3>Font</h3>
<p>
<em>Scuba </em>
uses
<a
rel="noopener noreferrer"
href="https://fonts.google.com/specimen/Cabin"
target="_blank"
... |
source/client/containers/todos/AddTodoButton.js | soccio/Horizon_Hapi_Redux | import React from 'react';
import { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as actions from '../../actions';
import styles from './styles';
class AddTodoButton extends Component {
constructor(props) {
super(props);
}
c... |
ajax/libs/yui/3.17.1/datatable-body/datatable-body.js | qrohlf/cdnjs | /*
YUI 3.17.1 (build 0eb5a52)
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... |
ajax/libs/yasgui/0.0.7/yasgui.bundled.min.js | yogeshsaroya/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r... |
src/native/me/MePage.js | sikhote/davidsinclair | // @flow
import type { State, User } from '../../common/types';
import React from 'react';
import SignOut from '../auth/SignOut';
import getUserPhotoUrl from '../../common/users/getUserPhotoUrl';
import { Box, Text } from '../../common/components';
import { Image } from 'react-native';
import { Redirect } from 'react-r... |
projects/wedding/js/jquery.js | lozh88/Portfolio | /*! jQuery v1.11.1 | (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... |
app/screens/Settings/SettingsScreenView.js | JSSolutions/Perfi | import React from 'react';
import T from 'prop-types';
import { Text, View } from 'react-native';
import { Subtitle, Select, ScreenWrapper, Icon, Button } from '../../components';
import currencies from '../../constants/currencies';
import s from './styles';
import { dimensions, colors } from '../../styles';
const ... |
src/routes.js | aspsoluciones/mcw-client | import React from 'react';
import { Provider } from 'react-redux';
import { Router, Route} from 'react-router'
//ROUTES
import App from './containers/App';
import Public from './containers/Public';
import Dashboard from './containers/Dashboard';
import Login from './containers/Login';
import Forbidden from './containe... |
WebView.js | azureplus/ZhiHuDaily-React-Native | 'use strict';
var React = require('react-native');
var {
requireNativeComponent,
PropTypes
} = React;
class ObservableWebView extends React.Component {
constructor() {
super();
this._onChange = this._onChange.bind(this);
}
_onChange(event: Event) {
if (!this.props.onScrollChange) {
return... |
app/javascript/mastodon/containers/status_container.js | ashfurrow/mastodon | import React from 'react';
import { connect } from 'react-redux';
import Status from '../components/status';
import { makeGetStatus, makeGetPictureInPicture } from '../selectors';
import {
replyCompose,
mentionCompose,
directCompose,
} from '../actions/compose';
import {
reblog,
favourite,
bookmark,
unreb... |
ajax/libs/video.js/5.0.0-21/video.js | dannyxx001/cdnjs | /**
* @license
* Video.js 5.0.0-21 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*
* Includes vtt.js <https://github.com/mozilla/vtt.js>
* Available under Apache License Ve... |
src/components/ImageFigure.js | liuqiao1/react-gallery | /*class ImageFigure extends React.Component {
render() {
return (
<figure>
<img src="" alt={}/>
</figure>
)
}
}*/
require('./ImageFigure.less');
//如果不引入React:Uncaught ReferenceError: React is not defined
import React from 'react'
//import styles from './ImageFigure.less'
const ... |
node_modules/node_modules/material-ui/svg-icons/places/child-friendly.js | SerendpityZOEY/Fixr-RelevantCodeSearch | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
app/containers/Production/SectionPotPlant.js | frascata/vivaifrappi | import React from 'react';
import styled from 'styled-components';
import { FormattedMessage } from 'react-intl';
import messages from './messages';
import H1 from '../../components/H1/index';
import Text from '../../components/Text/index';
import PotPlantGallery from './PotPlantGallery';
const Div = styled.div`
`;... |
ajax/libs/highmaps/1.0.2/highcharts.src.js | jacoborus/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highcharts JS v4.0.1-modified ()
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout,... |
node_modules/react-icons/go/key.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const GoKey = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m27.5 2.5c-5.5 0-10 4.5-10 10 0 0.8 0.1 1.5 0.3 2.2l-15.3 15.3v2.5l2.5 2.5h5l2.5-2.5v-2.5h2.5v-2.5h2.5v-2.5h5l2.8-2.8c0.7 0.2 1.5 0.3 2.2 0.3 5.6 0 10-4.5 10-10s-4.4-10-1... |
src/svg-icons/action/history.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHistory = (props) => (
<SvgIcon {...props}>
<path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 ... |
src/components/attributes/d3-parsed/AttrListItem.js | C-JSN/D3-ID3 | import React, { Component } from 'react';
//
// As soon as we have the attribute object parsed the code commented out below is
// the over layout and styling.
class AttrListItem extends Component {
constructor(props) {
super(props);
this.state = {
checkbox: false
};
this.handleCheckbox = this.... |
packages/react-scripts/fixtures/kitchensink/src/features/env/ShellEnvVariables.js | HelpfulHuman/helpful-react-scripts | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
export default () =>
<span id="feature-shell-env-variables">
{process.env.REACT_APP_SHELL_ENV_MESSAGE}... |
ajax/libs/yui/3.14.0/event-custom-base/event-custom-base-debug.js | andyinabox/cdnjs | YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @mo... |
node_modules/react-router/es/IndexLink.js | Right-Men/Ironman | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
import React from 'react';
import Link from './Link';
/**
*... |
ajax/libs/forerunnerdb/1.3.591/fdb-legacy.min.js | sashberd/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
src/app.js | tutsplus/build-a-wiki-with-react-and-firebase | import React from 'react';
import Router from 'react-router';
import App from './components/App';
import Page from './components/Page';
const {Route} = Router;
var routes = <Route handler={App}>
<Route name='page' path='/page/:id' handler={Page} />
</Route>;
Router.run(routes, Router.HistoryLocation, Root =>
... |
src/routes/chart/barChart/index.js | zhouchao0924/SLCOPY | import React from 'react'
import PropTypes from 'prop-types'
import { Row, Col, Card, Button } from 'antd'
import Container from '../Container'
import {
BarChart,
Bar,
XAxis,
YAxis,
CartesianGrid,
Tooltip,
Legend,
} from 'recharts'
const data = [
{
name: 'Page A',
uv: 4000,
pv: 2400,
am... |
src/frontend/components/Invoices/index.js | Koleso/invoicer | import React from 'react';
import NumberFormat from 'react-number-format';
import dateFormat from 'dateformat';
import { overdue, dueDate } from 'helpers/overdue';
import { subjectNameById } from 'helpers/subjects';
// Components
import { Grid, GridColumn } from 'components/Grid';
import Box from 'components/Box';
imp... |
ajax/libs/yui/3.10.0pr1/event-focus/event-focus-coverage.js | sashberd/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/event-focus/event-focus.js']) {
__coverage__['build/event-focus/event-focus.js'] = {"path":"build/event-focus/event-focus.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"... |
test/containers_test/form.js | aichbauer/redux-valid-form | import test from 'ava';
import React from 'react';
import { shallow, mount } from 'enzyme';
import { Provider } from 'react-redux';
import {
applyMiddleware,
createStore,
combineReducers,
} from 'redux';
import configureMockStore from 'redux-mock-store';
import ReduxThunk from 'redux-thunk';
import setup from '.... |
src/game/piece/white-bishop.js | howardjing/chess-calculator | // @flow
// https://commons.wikimedia.org/wiki/Category:SVG_chess_pieces
import React from 'react';
type Props = {
width: number | string,
height: number | string,
};
const WhiteBishop = ({
width,
height,
}: Props) => (
<svg
viewBox="0 0 45 45"
style={{
width: width,
height: height,
... |
adminclient/src/util/errors.js | typesettin/periodicjs.ext.reactadmin | import React from 'react';
// import utilities from './index';
import AppError404 from '../components/AppError404';
export const get404Error = function _get404Error(options) {
let { getState, _handleFetchPaths, state, custom404Error, componentData, windowTitle, navLabel, errorComponents, errorCode, resources, e, /* ... |
src/svg-icons/action/three-d-rotation.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionThreeDRotation = (props) => (
<SvgIcon {...props}>
<path d="M7.52 21.48C4.25 19.94 1.91 16.76 1.55 13H.05C.56 19.16 5.71 24 12 24l.66-.03-3.81-3.81-1.33 1.32zm.89-6.52c-.19 0-.37-.03-.52-.08-.16-.06-.29-.... |
src/components/ProposalInput/DateInput.js | nambawan/g-old | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, FormattedMessage } from 'react-intl';
import FormField from '../FormField';
import { utcCorrectedDate } from '../../core/helpers';
import Box from '../Box';
import FormValidation from '../FormValidation';
import { dateToValidation, ... |
app/components/Chunk/__tests__/index-test.js | ModusCreateOrg/budgeting-sample-app-webpack2 | import React from 'react';
import { shallow } from 'enzyme';
import Loading from 'components/Loading';
import Chunk from '..';
// mock 'load' function that resolves to a component
const LoadedComponent = () => <div>loaded</div>;
const mockLoad = async () => ({ default: LoadedComponent });
// mock nested component
jes... |
src/Main/ManaUsageGraph.js | mwwscott0/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import ChartistGraph from 'react-chartist';
import Chartist from 'chartist';
import 'chartist-plugin-legend';
import { formatThousands } from 'common/format';
import 'Main/Mana.css';
const formatDuration = (duration) => {
const seconds = Math.floor(dur... |
src/Element/inner/View.js | dht/lpm | import React from 'react';
import Base from './Base';
const View = (props) => {
const {content} = props,
containerStyle = {...styleView, backgroundImage: `url(${content})`}
return <Base {...props} containerStyle={containerStyle}>
</Base>
}
export default View;
const styleView = {
position: '... |
_site/assets/themes/twitter/js/jquery-1.6.1.min.js | uestcshuo/uestcshuo.github.io | /*!
* jQuery JavaScript Library v1.6.1
* 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 Licenses.
... |
tu.js | okboy5555/demo | import React, { Component } from 'react';
// 引入 ECharts 主模块
import echarts from 'echarts/lib/echarts';
// 引入柱状图
import 'echarts/lib/chart/bar';
// 引入提示框和标题组件
import 'echarts/lib/component/tooltip';
import 'echarts/lib/component/title';
import 'echarts'
class Tu extends React.Component {
componentDidMount(){
... |
internals/scripts/extract-intl.js | DeekshithShetty/hydra | /* eslint-disable */
/**
* This script will extract the internationalization messages from all components
and package them in the translation json files in the translations file.
*/
const fs = require('fs');
const nodeGlob = require('glob');
const transform = require('babel-core').transform;
const animateProgress... |
ExampleApp/index.android.js | joonhocho/react-native-linkedin-sdk | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableHighlight
} from 'react-native';
import LinkedInSDK from 'react-native-linkedin-sdk';
export default class ExampleApp exten... |
examples/simple-admin/src/layout/Footer.js | ucokfm/admin-lte-react | import React from 'react';
import FooterWrapper from 'admin-lte-react/FooterWrapper';
export default function Footer() {
return (
<FooterWrapper>
<div className="pull-right hidden-xs">
<b>Version</b> 0.0.1
</div>
<strong>
<span>Copyright © 2016 </span>
<a href="htt... |
index.ios.js | xiaobuu/react-native-redux-router-boilerplate | 'use strict';
import React, { AppRegistry } from 'react-native';
import App from './src/containers/app';
AppRegistry.registerComponent('Counter', () => App);
|
index.android.js | yabeow/sinhvienuit | import { AppRegistry } from 'react-native';
import App from './App';
AppRegistry.registerComponent('SinhVienUIT', () => App); |
ajax/libs/react-quill/0.4.0/react-quill.min.js | keicheng/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("quill"),require("react"),require("react-dom"),require("react-dom/server")):"function"==typeof define&&define.amd?define(["quill","react","react-dom","react-dom/server"],t):"object"==typeof exports?exports.ReactQuill=t(require("qu... |
web/admin/js/jquery.js | MahdiDhifi/Symfony-Project | /*! jQuery v1.11.1 | (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/svg-icons/action/watch-later.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionWatchLater = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z"/>
</SvgIcon>
);
ActionWatchLater = pure(Ac... |
app/views/components/go-back-button/index.js | get-focus/focus-demo-app | import React from 'react';
import {withRouter} from 'react-router';
import ButtonBack from 'focus-components/button-back';
const GoBackComponent = ({router}) => (
<ButtonBack back={router.goBack} />
);
export default withRouter(GoBackComponent);
|
vendor/htmlburger/carbon-fields/assets/js/fields/components/color/picker.js | Apiki/gb-plugin-api | /**
* The external dependencies.
*/
import React from 'react';
import PropTypes from 'prop-types';
import onClickOutside from 'react-onclickoutside';
import { SketchPicker } from 'react-color';
import { compose, withHandlers } from 'recompose';
/**
* Render a colorpicker popover.
*
* @param {Object} props... |
src/components/TimetableScreen.js | Dennitz/Timetable | // @flow
import React from 'react';
import {
Animated,
Dimensions,
FlatList,
TouchableWithoutFeedback,
ScrollView,
View,
} from 'react-native';
import moment from 'moment';
import i18n from 'react-native-i18n';
import TimetableWeek from '../containers/TimetableWeek';
import { AddButton, EditButton } from '... |
ajax/libs/yui/3.11.0/event-focus/event-focus-coverage.js | StoneCypher/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/event-focus/event-focus.js']) {
__coverage__['build/event-focus/event-focus.js'] = {"path":"build/event-focus/event-focus.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"... |
imports/ui/components/surveyBuilder/FormInspector.js | ctagroup/home-app | import React from 'react';
import AutoForm from 'uniforms-bootstrap3/AutoForm';
import AutoField from 'uniforms-bootstrap3/AutoField';
import VariableField from '/imports/ui/components/surveyBuilder/formFields/VariableField';
import { handleFormTransform } from './helpers';
export default class FormInspector extends ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.