path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
app-server/routes/testroutes.js | mitel/cerebral-steroids | /**
* Created by mitel on 01/05/15.
*/
import React from 'react';
module.exports = [
{
method: 'GET',
path: '/',
handler: function (request, reply) {
var response = reply('GET Hello, world!!!');
console.log("GET request to /");
return response;
... |
react_this/__tests__/index.ios.js | devSC/react-native | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
client/main.js | bnjbvr/kresus | import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter, Route, Switch, Link, Redirect } from 'react-router-dom';
import { connect, Provider } from 'react-redux';
import PropTypes from 'prop-types';
import throttle from 'lodash.throttle';
// Global variables
import { get, init, rx, actions ... |
src/routes.js | JimSangwine/react-redux-mocking | import React from 'react';
import {IndexRoute, Route} from 'react-router';
import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth';
import {
App,
Chat,
Home,
Widgets,
About,
Login,
LoginSuccess,
Survey,
NotFound,
} from 'containers';
export default (store) ... |
node_modules/jquery/src/sizzle/test/jquery.js | miccferr/alpinescapes | /*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-2-4
*/
(function( window, undefined ) {
// Can't do t... |
resources/_assets/svg/LogoTwitter.js | AndrewTJohnston/andrewtjohnston.com | // Returns SVG of the Twitter logo
import React from 'react'
export default React.createClass({
render() {
var transform = "translate(" + this.props.deltax + "," + this.props.deltay + ") scale(" + this.props.scale + ")";
return (
<svg version="1.1" viewBox="0 0 1000 1000" preserveAspectRatio="... |
src/components/common/SongTitleList.js | kmcarter/karaoke-song-lister | import React from 'react';
import PropTypes from 'prop-types';
const SongTitleList = props => {
return (
<ul className="list-group mt-3 mb-3">
{props.data.map(song => (
<li key={song.Id} className="list-group-item">
<div>{song.Title}</div>
<small>{song.Artist}</small>
</... |
src/package.js | gabrielcsapo/local-npm | import 'whatwg-fetch';
import React from 'react';
import moment from 'moment';
import Marked from 'marked';
import PropTypes from 'prop-types';
import { LineChart, CartesianGrid, Tooltip, Line } from 'recharts';
class Package extends React.Component {
constructor(props) {
super(props);
const { match } = p... |
ajax/libs/forerunnerdb/1.3.600/fdb-core.js | sufuf3/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/src/services/services.page.js | Thiht/docktor | // React
import React from 'react';
import { connect } from 'react-redux';
import { Scrollbars } from 'react-custom-scrollbars';
import DebounceInput from 'react-debounce-input';
// API Fetching
import ServicesThunks from './services.thunks.js';
import ServicesActions from './services.actions.js';
// Components
impor... |
app/containers/LearningPage/ImmutableForm.js | darrellesh/redux-react-boilerplate | /**
* Created by darrell-shofstall on 7/21/17.
*/
import React from 'react';
import { Field, reduxForm } from 'redux-form/immutable'; // <--- immutable import
import validate from './validate';
const renderField = ({ input, label, type, meta: { touched, error } }) => (
<div>
<label>{label}</label>
<div>
... |
app/view/clip.js | Yx3/Text-Logger | import React from 'react';
import autobind from 'autobind-decorator';
@autobind
export default class Clip extends React.Component {
constructor(props) {
super(props);
}
renderSingleWord() {
return (
<div style={{
display: 'flex',
borderBottomStyle: 'solid',
borderBottomWidt... |
client/app/scripts/auth0-lock/src/field/index.js | ALeo23/Zeus-HatersGonaHate | import React from 'react';
import { Map } from 'immutable';
import trim from 'trim';
import OptionSelectionPane from './option_selection_pane';
import * as l from '../core/index';
export function setField(m, field, value, validator = str => trim(str).length > 0, ...args) {
const prevValue = m.getIn(["field", field, ... |
src/Datetime.js | tanbo800/react-ui | "use strict"
import React from 'react'
import classnames from 'classnames'
import { overView, getOuterHeight } from './utils/dom'
import * as datetime from './utils/datetime'
import clickAway from './higherorder/clickaway'
import { requireCss } from './themes'
requireCss('datetime')
import { getLang, setLang } from ... |
ajax/libs/zeroclipboard/2.0.0/ZeroClipboard.js | mival/cdnjs | /*!
* ZeroClipboard
* The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.
* Copyright (c) 2014 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v2.0.0
*/
(function(window, undefined) {
"use strict";... |
src/components/news/NewsCategorySelect.js | mpeinado/react-starter | import React, { Component } from 'react';
class NewsCategorySelect extends Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="row">
<div className="col">
<form>
<div class="form-row">
... |
src/svg-icons/editor/vertical-align-center.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorVerticalAlignCenter = (props) => (
<SvgIcon {...props}>
<path d="M8 19h3v4h2v-4h3l-4-4-4 4zm8-14h-3V1h-2v4H8l4 4 4-4zM4 11v2h16v-2H4z"/>
</SvgIcon>
);
EditorVerticalAlignCenter = pure(EditorVerticalAlig... |
packages/material-ui-icons/src/WebRounded.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><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-2zM4 9h10.5v3.5H4V9zm0 5.5h10.5V18H5c-.55 0-1-.45-1-1v-2.5zM19 18h-2.5V9H20v8c0 .55-.45 1-1 1z" /></Rea... |
examples/animations/app.js | tkirda/react-router | import React from 'react'
import { render } from 'react-dom'
import ReactCSSTransitionGroup from 'react-addons-css-transition-group'
import StaticContainer from 'react-static-container'
import { createHistory, useBasename } from 'history'
import { Router, Route, Link } from 'react-router'
require('./app.css')
const h... |
src/mobile/public/components/AppHeader/index.js | Perslu/rerebrace | import React from 'react';
import "./styles.css";
import PersluLogo from '../PersluLogo';
import BackButton from '../BackButton';
import MenuButton from '../MenuButton';
import LeftControls from './AppHeaderLeftControls';
import RightControls from './AppHeaderRightControls';
import CenterControls from './AppHeaderCente... |
demos/forms-demo/src/components/Simple/index.js | idream3/cerebral | import React from 'react'
import {connect} from 'cerebral/react'
import {state, signal} from 'cerebral/tags'
import {css} from 'aphrodite'
import styles from './styles'
import Input from '../Fields/Input'
import {isValidForm} from 'cerebral-forms'
export default connect({
form: state`simple.form.**`,
settings: sta... |
test/CheckBox.js | redux-autoform/redux-autoform-material-ui | import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import CheckBox from '../src/components/field/CheckBox';
describe("<CheckBox/> Component", () => {
it("CheckBox instance is not null", () => {
const wrapper = shallow(<CheckBox />);
expect(wrapper).to.not.eq... |
fixtures/attribute-behavior/src/App.js | jorrit/react | import React from 'react';
import {createElement} from 'glamor/react'; // eslint-disable-line
/* @jsx createElement */
import {MultiGrid, AutoSizer} from 'react-virtualized';
import 'react-virtualized/styles.css';
import FileSaver from 'file-saver';
import {
inject as injectErrorOverlay,
uninject as uninjectError... |
__tests__/index.ios.js | glenchao/DidVisit | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/FormControl.js | JamieMason/npm-cache-benchmark | 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 ... |
packages/material-ui-icons/src/CallMissed.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M19.59 7L12 14.59 6.41 9H11V7H3v8h2v-4.59l7 7 9-9z" />
, 'CallMissed');
|
node_modules/semantic-ui-react/src/elements/Button/Button.js | jessicaappelbaum/cljs-update | import cx from 'classnames'
import _ from 'lodash'
import React, { Component, PropTypes } from 'react'
import {
customPropTypes,
createShorthandFactory,
getElementType,
getUnhandledProps,
makeDebugger,
META,
SUI,
useKeyOnly,
useKeyOrValueAndKey,
useValueAndKey,
} from '../../lib'
import Icon from '... |
app/containers/LanguageProvider/index.js | KraigWalker/frontendfriday | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
imports/ui/components/DocumentEditor.js | LukeJFernandez/bigreads | /* eslint-disable max-len, no-return-assign */
import React from 'react';
import { FormGroup, ControlLabel, FormControl, Button } from 'react-bootstrap';
import documentEditor from '../../modules/document-editor.js';
export default class DocumentEditor extends React.Component {
componentDidMount() {
documentEdi... |
ajax/libs/react-toolbox/2.0.0-beta.11/card/CardText.min.js | cdnjs/cdnjs | "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CardText=void 0;var _extends=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t,a=arguments[r];for(t in a)Object.prototype.hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},_react=require("react"),_react2=_interopRequireDefault(... |
lib/werkzeug/debug/shared/jquery.js | diyseguy/wordtoys | /*!
* jQuery JavaScript Library v1.4.4
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
examples/js/remote/remote-store-cell-edit.js | rolandsusans/react-bootstrap-table | import React from 'react';
import RemoteCellEdit from './remote-cell-edit';
function getProducts() {
const products = [];
const startId = products.length;
for (let i = 0; i < 12; i++) {
const id = startId + i;
products.push({
id: id,
name: 'Item name ' + id,
price: Math.floor((Math.rand... |
src/components/_global/headline/headline.js | musicbender/my-portfolio | import React from 'react';
import './headline.scss';
const Headline = ({ text }) => ( <h3 className="headline"> {text} </h3> );
Headline.defaultProps = {
text: ''
}
export default Headline;
|
src/client/components/console/transcripts/chatList.js | uuchat/uuchat | import React, { Component } from 'react';
import Tips from '../../common/tips';
import ChatMessageItem from '../../message/chatMessageItem';
import { fetchAsync } from '../common/utils';
export default class ChatList extends Component {
state = {
dataSource: []
};
getDataSource = async (cid, csid... |
examples/counter/containers/App.js | STRML/redux | import React from 'react';
import CounterApp from './CounterApp';
import { createRedux } from 'redux';
import { Provider } from 'redux/react';
import * as stores from '../stores';
const redux = createRedux(stores);
export default class App {
render() {
return (
<Provider redux={redux}>
{() => <Cou... |
app/components/Contact.js | leckman/purlpal | import React from 'react';
import { connect } from 'react-redux'
import { submitContactForm } from '../actions/contact';
import Messages from './Messages';
class Contact extends React.Component {
constructor(props) {
super(props);
this.state = { name: '', email: '', message: '' };
}
handleChange(event) ... |
src/docs/examples/HiddenInput/Example.js | eliaslopezgt/ps-react-eli | import React from 'react';
import HiddenInput from 'ps-react/HiddenInput';
/** All features enabled */
class ExampleAllFeatures extends React.Component {
render() {
return (
<HiddenInput
name="testname"
value="testvalue"
{...this.props} />
);
}
}
export default ExampleAllFea... |
src/app/components/layout/ProfileLink.js | meedan/check-web | import { Link } from 'react-router';
import React from 'react';
import Relay from 'react-relay/classic';
export const ProfileLink = ({ className, teamUser }) => {
if (!teamUser) return null;
const { user } = teamUser;
let url = '';
if (user.dbid && user.is_active) {
url = `/check/user/${user.dbid}`;
}
... |
examples/huge-apps/app.js | fiture/react-router | import React from 'react';
import { Router } from 'react-router';
import stubbedCourses from './stubs/COURSES';
var rootRoute = {
component: 'div',
childRoutes: [{
path: '/',
component: require('./components/App'),
childRoutes: [
require('./routes/Calendar'),
require('./routes/Course'),
... |
components/buttons/MyGroupButton.js | Jack3113/edtBordeaux | import React from 'react';
import { Text, View } from 'react-native';
import { connect } from 'react-redux';
import DrawerButton from './DrawerButton';
import style from '../../Style';
import Translator from '../../utils/translator';
class MyGroupButton extends React.PureComponent {
constructor(props) {
s... |
src/components/common/controls/Button.js | Gisto/Gisto | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { get } from 'lodash/fp';
import Icon from 'components/common/Icon';
const ButtonComponent = styled.button`
background: ${(props) => (props.invert ? 'transparent' : pr... |
src/client/components/app/app.js | martinLE/base | 'use strict';
import './app.less';
import React from 'react';
import Router from 'react-router';
import invariant from 'react/lib/invariant';
import ActionTypes from '../../flux/constants/action-types';
var DefaultRoute = Router.DefaultRoute;
var Link = Router.Link;
var Route = Router.Route;
var RouteHandler = Router.... |
react/features/invite/components/add-people-dialog/web/DialInSection.js | jitsi/jitsi-meet | // @flow
import React from 'react';
import { translate } from '../../../../base/i18n';
import { connect } from '../../../../base/redux';
import { getDialInfoPageURL, hasMultipleNumbers } from '../../../functions';
import DialInNumber from './DialInNumber';
type Props = {
/**
* The numeric identifier for t... |
pages/index.js | Code4Newark/newark-viz | /**
* React Static Boilerplate
* https://github.com/koistya/react-static-boilerplate
* Copyright (c) Konstantin Tarkus (@koistya) | MIT license
*/
import React, { Component } from 'react';
export default class extends Component {
render() {
return (
<div>
<h1>Home Page</h1>
<p>Coming ... |
docs/src/HomePage.js | mengmenglv/react-bootstrap | import React from 'react';
import NavMain from './NavMain';
import PageFooter from './PageFooter';
import Grid from '../../src/Grid';
import Alert from '../../src/Alert';
import Glyphicon from '../../src/Glyphicon';
import Label from '../../src/Label';
export default class HomePage extends React.Component {
render(... |
packages/material-ui-icons/src/ArrowDownwardRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M11 5v11.17l-4.88-4.88c-.39-.39-1.03-.39-1.42 0-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41a.9959.9959 0 00-1.41 0L13 16.17V5c0-.55-.45-1-1-1s-1 .45-1 1z" /... |
packages/material-ui-icons/lib/RssFeedSharp.js | mbrookes/material-ui | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
app/containers/NotFoundPage/index.js | shanzhaicity/frontend-demo | /**
* 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 neccessity for you then you can refactor i... |
src/components/Editor/components/Creator/index.js | jacobwindsor/pathway-presenter | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import EmptyState from './components/EmptyState';
import PreviewPanel from './components/PreviewPanel';
import EditorPanel from './components/EditorPanel';
import Paper from 'material-ui/Paper';
import FloatingActionButton from 'material-ui/F... |
www/res/js/jquery-1.6.4.min.js | hsarmiento/peoplelocator | /*! jQuery v1.6.4 http://jquery.com/ | http://jquery.org/license */
(function(a,b){function cu(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cr(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe"... |
app/javascript/mastodon/features/ui/components/modal_root.js | mhffdq/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import BundleContainer from '../containers/bundle_container';
import BundleModalError from './bundle_modal_error';
import ModalLoading from './modal_loading';
import ActionsModal from './actions_modal';
import MediaModal from './media_modal';
import VideoMo... |
src/components/textfield/demos/Error.js | isogon/material-components | import React from 'react'
import { Textfield } from '../../../'
export default () => (
<Textfield label="Number..." error="Enter a number" defaultValue="ABC" />
)
|
ajax/libs/mediaelement/2.0.6/jquery.js | jieter/cdnjs | /*!
* jQuery JavaScript Library v1.5
* 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.
*... |
client/src/component/panel/PanelAvailableComponents.js | defconcepts/react-ui-builder | 'use strict';
var _ = require('lodash');
var React = require('react');
var ReactBootstrap = require('react-bootstrap');
var Button = ReactBootstrap.Button;
var Panel = ReactBootstrap.Panel;
var ListGroup = ReactBootstrap.ListGroup;
var ListGroupItem = ReactBootstrap.ListGroupItem;
var Badge = ReactBootstrap.Badge;
var... |
ajax/libs/analytics.js/2.8.8/analytics.js | seogi1004/cdnjs | (function umd(require){
if ('object' == typeof exports) {
module.exports = require('1');
} else if ('function' == typeof define && define.amd) {
define(function(){ return require('1'); });
} else {
this['analytics'] = require('1');
}
})((function outer(modules, cache, entries){
/**
* Global
... |
docs/src/PaginationPage.js | jsbranco/react-materialize | import React from 'react';
import Row from '../../src/Row';
import Col from '../../src/Col';
import ReactPlayground from './ReactPlayground';
import PropTable from './PropTable';
import store from './store';
import Samples from './Samples';
import pagination from '../../examples/Pagination';
class PaginationPage exten... |
packages/flow-runtime-docs/src/components/docs/TypeAliasesPage.js | codemix/flow-runtime | /* @flow */
import React, { Component } from 'react';
import {observer} from 'mobx-react';
import Example from '../Example';
const simpleCode = `
type User = {name: string};
const bob: User = {name: 'Bob'};
console.log(bob);
`.trim();
const polymorphicCode = `
type Dict<K: string | number, V: number> = {[key: K]: ... |
ajax/libs/glamorous/3.10.0/glamorous.umd.tiny.min.js | holtkamp/cdnjs | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react"),require("glamor")):"function"==typeof define&&define.amd?define(["react","glamor"],t):e.glamorous=t(e.React,e.Glamor)}(this,function(e,t){"use strict";function r(){return(arguments.length>0&&void 0!==arguments[0]?argum... |
src/components/chart.js | flucivja/meteostation | import React from 'react';
import ReactDOM from 'react-dom';
import Highcharts from 'highcharts/highstock';
export default class Chart extends React.Component {
constructor(props) {
super(props);
this.state = this.getChart(props);
}
getData(props) {
var items = [];
Object.keys(props.data).forEach((date... |
app/javascript/mastodon/features/home_timeline/components/column_settings.js | yi0713/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { injectIntl, FormattedMessage } from 'react-intl';
import SettingToggle from '../../notifications/components/setting_toggle';
export default @injectIntl
class ColumnSettings extends React.... |
src/screens/Ranking/RankingPreview.js | alphasp/pxview | import React, { useState, useRef } from 'react';
import { ScrollView, FlatList, StyleSheet, RefreshControl } from 'react-native';
import { useNavigation, useScrollToTop } from '@react-navigation/native';
import { useTheme } from 'react-native-paper';
import { SafeAreaView } from 'react-native-safe-area-context';
import... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Create/FormComponents/Select.js | dewmini/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... |
node_modules/react-bootstrap/es/MediaList.js | hsavit1/gosofi_webpage | 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 ... |
fields/types/email/EmailColumn.js | wustxing/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/src/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/src/components/ItemsTableValue';
var EmailColumn = React.createClass({
displayName: 'EmailColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.obje... |
src/svg-icons/image/compare.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCompare = (props) => (
<SvgIcon {...props}>
<path d="M10 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h5v2h2V1h-2v2zm0 15H5l5-6v6zm9-15h-5v2h5v13l-5-6v9h5c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/>
</SvgIcon>
);
ImageCo... |
fixtures/fiber-debugger/src/Fibers.js | joecritch/react | import React from 'react';
import { Motion, spring } from 'react-motion';
import dagre from 'dagre';
// import prettyFormat from 'pretty-format';
// import reactElement from 'pretty-format/plugins/ReactElement';
function getFiberColor(fibers, id) {
if (fibers.currentIDs.indexOf(id) > -1) {
return 'lightgreen';
... |
src/server/frontend/render.js | jks8787/este-experimental-app | import Helmet from 'react-helmet';
import Html from './Html.react';
import Promise from 'bluebird';
import React from 'react';
import ReactDOMServer from 'react-dom/server';
import config from '../config';
import getAppAssetFilenamesAsync from './assets';
import configureStore from '../../common/configureStore';
import... |
actor-apps/app-web/src/app/components/activity/UserProfile.react.js | sfshine/actor-platform | import _ from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import classnames from 'classnames';
import ContactActionCreators from 'actions/ContactActionCreators';
import DialogActionCreators from 'actions/DialogActionCreators';
im... |
packages/chatpal-search/client/template/admin.js | pkgodara/Rocket.Chat | import { Meteor } from 'meteor/meteor';
import { ReactiveVar } from 'meteor/reactive-var';
import { Template } from 'meteor/templating';
import { TAPi18n } from 'meteor/tap:i18n';
import { RocketChat } from 'meteor/rocketchat:lib';
import toastr from 'toastr';
Template.ChatpalAdmin.onCreated(function() {
const re = ... |
packages/material-ui-icons/src/LocalHospital.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M19 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 11h-4v4h-4v-4H6v-4h4V6h4v4h4v4z" /></React.Fragment>
, 'Loc... |
ajax/libs/forerunnerdb/1.3.566/fdb-all.js | sufuf3/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... |
src/views/agenda/Edit.js | anysome/objective | /**
* Created by Layman(http://github.com/anysome) on 16/3/1.
*/
import React from 'react';
import {StyleSheet, ScrollView, View, Text, TouchableOpacity, LayoutAnimation} from 'react-native';
import moment from 'moment';
import Button from 'react-native-button';
import {analytics, styles, colors, airloy, api, L, toas... |
ajax/libs/react-router-bootstrap/0.17.1/ReactRouterBootstrap.js | pvnr0082t/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-bootstrap"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-bootstrap"], factory);
else if(typeof expor... |
src/components/icons/Notes.js | InsideSalesOfficial/insidesales-components | import React from 'react';
export default function Notes(props) {
return (
<svg
{...props.size || { width: '24px', height: '24px' }}
{...props}
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
{props.title && <title>{props.title}</title>}
<path d="M3 18h12v-2H3v2zM... |
src/svg-icons/navigation/arrow-drop-down.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationArrowDropDown = (props) => (
<SvgIcon {...props}>
<path d="M7 10l5 5 5-5z"/>
</SvgIcon>
);
NavigationArrowDropDown = pure(NavigationArrowDropDown);
NavigationArrowDropDown.displayName = 'NavigationA... |
node_modules/grunt-contrib-imagemin/node_modules/imagemin/node_modules/imagemin-pngquant/node_modules/pngquant-bin/node_modules/bin-build/node_modules/download/node_modules/decompress/node_modules/extname/node_modules/underscore.string/test/test_underscore/vendor/jquery.js | quattromani/MGF | /*!
* jQuery JavaScript Library v1.7.2
* 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.
... |
ajax/libs/analytics.js/1.3.7/analytics.min.js | gionkunz/cdnjs | (function(){function require(path,parent,orig){var resolved=require.resolve(path);if(null==resolved){orig=orig||path;parent=parent||"root";var err=new Error('Failed to require "'+orig+'" from "'+parent+'"');err.path=orig;err.parent=parent;err.require=true;throw err}var module=require.modules[resolved];if(!module._resol... |
src/OutputHolder.js | Imvoo/MiniZinc-webui | import React from 'react';
import { OutputStringToComponent } from './Outputs/Outputs';
import './Outputs/Output.css';
export var OutputHolder = React.createClass({
propTypes: {
inputs: React.PropTypes.object.isRequired,
outputs: React.PropTypes.object.isRequired,
result: React.PropTypes.ar... |
src/containers/stationData/ShortCountVehicleClassificationForStation.js | availabs/avail_app_bootstrap | import React from 'react';
import { QueryRenderer, graphql } from 'react-relay';
import relay from '../../relay.js';
// https://github.com/facebook/relay/issues/1851
const q = graphql`
query ShortCountVehicleClassificationForStationQuery(
$condition: ShortCountVehicleClassificationCondition!
) {
allShortC... |
src/components/App.js | jbarson/DeckTracker | import React from 'react';
import './App.css';
import base from '../base';
import {browserHistory} from 'react-router';
import PageHeader from './PageHeader';
import Create from './Create';
//import Navbar from './Navbar';
class App extends React.Component {
constructor() {
super();
this.state = {
user... |
ajax/libs/vue-material/1.0.0-beta-2/components/MdButton/index.js | holtkamp/cdnjs | module.exports=(function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esMod... |
src/index.js | luoshi0429/express-plus-web | import React from 'react'
import ReactDOM from 'react-dom'
import { Router, browserHistory } from 'react-router'
import './styles/index.css'
import routers from './routers'
import store from './store/configuraStore'
import { Provider } from 'react-redux'
import { getCheckedEp, getCheckedAuto, getSearchInterval, getHist... |
src/svg-icons/av/skip-previous.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvSkipPrevious = (props) => (
<SvgIcon {...props}>
<path d="M6 6h2v12H6zm3.5 6l8.5 6V6z"/>
</SvgIcon>
);
AvSkipPrevious = pure(AvSkipPrevious);
AvSkipPrevious.displayName = 'AvSkipPrevious';
AvSkipPrevious.mu... |
node_modules/node_modules/babel-plugin-jest-hoist/src/__tests__/integration-test.js | SerendpityZOEY/Fixr-RelevantCodeSearch | /**
* Copyright (c) 2014-present, 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 onca... |
src/parser/warrior/protection/CHANGELOG.js | fyruna/WoWAnalyzer | // import React from 'react';
export default [
];
|
node_modules/react-icons/md/help.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdHelp = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m25.1 18.8c0.9-1 1.5-2.3 1.5-3.8 0-3.7-2.9-6.6-6.6-6.6s-6.6 2.9-6.6 6.6h3.2c0-1.8 1.6-3.4 3.4-3.4s3.4 1.6 3.4 3.4c0 0.9-0.4 1.7-1.1 2.3l-2 2.2c-1.2 1.2-1.9 2.8-1.9 4.6v0... |
ajax/libs/mediaelement/2.9.5/jquery.js | jackdoyle/cdnjs | /*!
* 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 Licenses.
*... |
src/Marker.js | yeyus/react-vertical-timeline | import React from 'react';
import PropTypes from 'prop-types';
export default class Marker extends React.Component {
render() {
const style = {
top: `${this.context.height * (this.props.progress / 100)}px`
};
return (
<div className="timeline-marker" style={style}>
<div className="te... |
test/specs/table/table_actions.spec.js | working-minds/realizejs | import React from 'react';
import { TableActions } from 'components/table';
import { assert } from 'chai';
import { mount } from 'enzyme';
describe('<TableActions/>', () => {
it('exists', () => {
assert(TableActions);
});
it('renders with the default props', () => {
const renderedTableActions = mount(<T... |
gulpfile.js | alchapone/alchapone.github.io | 'use strict';
var gulp = require('gulp');
var del = require('del');
var spawn = require('child_process').spawn;
var path = require('path');
// Load plugins
var $ = require('gulp-load-plugins')();
var browserify = require('browserify');
var watchify = require('watchify');
var source = require('vinyl-source-stream')... |
app/javascript/mastodon/features/compose/components/reply_indicator.js | h3zjp/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from '../../../components/avatar';
import IconButton from '../../../components/icon_button';
import DisplayName from '../../../components/display_name';
import { defineMessages, injec... |
src/routes/contact/index.js | 24v/player-sankey | /**
* 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... |
src/library/Card/__tests__/CardTitle.spec.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import { shallow } from 'enzyme';
import CardTitle from '../CardTitle';
import examples from '../../../website/app/demos/Card/CardTitle/examples';
import testDemoExamples from '../../../../utils/testDemoExamples';
function shallowCardTitle(props = {}) {
const cardTitleProps = {... |
stories/button.js | iCentris/styleguide | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { Button } from 'react-bootstrap';
storiesOf('Button', module)
.addWithInfo('Simple Usage', 'This is basic usage', () => (
<Button>Default Button</Button>
))
.add('Default', () => (
<Button>Default Button</Button>
... |
src/index.js | yingchen0706/ReduxForm | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import {BrowserRouter, Route, Switch} from 'react-router-dom';
import promise from 'redux-promise';
import reducers from './reducers';
import PostsIndex from './com... |
client/src/components/Header/components/MenuButton.js | BhaveshSGupta/FreeCodeCamp | import React from 'react';
import PropTypes from 'prop-types';
const MenuButton = props => (
<button
aria-expanded={props.displayMenu}
className={
'toggle-button-nav' + (props.displayMenu ? ' reverse-toggle-color' : '')
}
onClick={props.onClick}
ref={props.innerRef}
>
Menu
</button>... |
src/Icon_CreditCardOutline.js | codefoundries/material-ui-credit-card-icons | 'use strict';
import React from 'react';
import SvgIcon from 'material-ui/SvgIcon';
export default function( props )
{
return(
<SvgIcon viewBox="0 0 60 40" {...props}>
<g>
<path fill="#CECECD" d="M60,35c0,2.75-2.25,5-5,5H5c-2.75,0-5-2.25-5-5V5c0-2.75,2.25-5,5-5h50c2.75,0,5,2.25,5,5V35z"/>
</g... |
lib/svg-icons/device/signal-cellular-connected-no-internet-4-bar.js | ProductiveMobile/material-ui | 'use strict';
var React = require('react');
var SvgIcon = require('../../svg-icon');
var DeviceSignalCellularConnectedNoInternet4Bar = React.createClass({
displayName: 'DeviceSignalCellularConnectedNoInternet4Bar',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
... |
stories/ConvertFromHTML/index.js | michalko/draft-wyswig | /* @flow */
import React, { Component } from 'react';
import { EditorState, ContentState } from 'draft-js';
import htmlToDraft from 'html-to-draftjs';
import { Editor } from '../../src';
class ConvertToRawDraftContent extends Component {
constructor(props) {
super(props);
const html = '<p>Hey this <a href=... |
ajax/libs/primereact/7.0.0-rc.1/datatable/datatable.js | cdnjs/cdnjs | this.primereact = this.primereact || {};
this.primereact.datatable = (function (exports, React, paginator, core, PrimeReact, inputtext, dropdown, button, virtualscroller) {
'use strict';
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var React_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.