path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/routes.js | nase-skoly/web-app | import React from 'react';
import {IndexRoute, Route} from 'react-router';
import {
App,
About,
Home,
How,
Detail,
Comparison,
Contact,
Filter,
NotFound,
SchoolPreview,
} from './pages';
export default () => {
/**
* Please keep routes in alphabetical order
*/
return ... |
packages/material-ui/src/NativeSelect/NativeSelect.js | Kagami/material-ui | // @inheritedComponent Input
import React from 'react';
import PropTypes from 'prop-types';
import { componentPropType } from '@material-ui/utils';
import NativeSelectInput from './NativeSelectInput';
import withStyles from '../styles/withStyles';
import formControlState from '../FormControl/formControlState';
import ... |
src/index.js | wincent/hextrapolate | /**
* Copyright 2003-present Greg Hurrell. All rights reserved.
* Licensed under the terms of the MIT license.
*
* @flow
*/
import App from './App';
import React from 'react';
import ReactDOM from 'react-dom';
ReactDOM.render(<App />, document.getElementById('root'));
|
app/containers/HomePage/CentreView.js | castlemilk/nutry-web | import React from 'react';
import Grid from 'react-bootstrap/lib/Grid';
import Row from 'react-bootstrap/lib/Row';
import Col from 'react-bootstrap/lib/Col';
export default class CenterView extends React.Component {
render() {
return (
<Grid>
<Row className="show-grid">
... |
src/js/base/backbone.js | AlloyTeam/AlloyAnimation | // Backbone.js 1.1.1
// (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://backbonejs.org
(function(root, factory) {
// Set up Backbone appropriately for ... |
app/javascript/mastodon/features/ui/components/columns_area.js | imomix/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import HomeTimeline from '../../home_timeline';
import Notifications from '../../notifications';
import PublicTimeline from '../... |
node_modules/material-ui/svg-icons/action/work.js | millerman86/CouponProject | '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... |
imports/client/ui/pages/Admin/UserSearch/index.js | focallocal/fl-maps | import React, { Component } from 'react';
import {Form, FormGroup, Input, Button} from 'reactstrap'
class UserSearch extends Component {
constructor(props) {
super(props);
this.userToSearch = React.createRef();
}
searchForUser = (e) => {
e.preventDefault();
this.props.searchForUser(this.userToSea... |
ajax/libs/jointjs/0.9.2/joint.nojquery.js | maruilian11/cdnjs | /*! JointJS v0.9.2 - JavaScript diagramming library 2014-09-16
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/**
* @license
* Lo-Dash 2.2.1 (Custom Build) <http://... |
ajax/libs/raven.js/3.25.0/console,ember,vue/raven.js | sufuf3/cdnjs | /*! Raven.js 3.25.0 (80dffad) | github.com/getsentry/raven-js */
/*
* Includes TraceKit
* https://github.com/getsentry/TraceKit
*
* Copyright 2018 Matt Robenolt and other contributors
* Released under the BSD license
* https://github.com/getsentry/raven-js/blob/master/LICENSE
*
*/
(function(f){if(typeof expor... |
client/src/components/dashboard/profile/photo-booth.js | mikelearning91/seeme-starter | import React from 'react';
import { captureUserMedia, S3Upload } from './utils/rtc-utils';
import Webcam from './utils/webcam';
import RecordRTC from 'recordrtc';
import Playback from './utils/playback';
import mui from 'material-ui';
import MdIconPack from 'react-icons/lib/md';
import MdCamera from 'react-icons/lib/md... |
modules/__tests__/transitionTo-test.js | KamilSzot/react-router | import expect from 'expect';
import React from 'react';
import createHistory from 'history/lib/createHashHistory';
import resetHash from './resetHash';
import execSteps from './execSteps';
import Router from '../Router';
import Route from '../Route';
describe('transitionTo', function () {
beforeEach(resetHash);
v... |
src/index.js | codinglobster/PHOTO-GALLERY | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('content'));
|
ajax/libs/yui/3.4.0/event-focus/event-focus-debug.js | wormful/cdnjs | YUI.add('event-focus', function(Y) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
useActivate = YLang.isFunction(
Y.DOM.create('<p onbeforeactivate="... |
__tests__/index.android.js | Joel-Raju/SpaceExplorer | 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 />
);
});
|
docs/src/pages/component-demos/selection-controls/Switches.js | dsslimshaddy/material-ui | // @flow weak
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import green from 'material-ui/colors/green';
import Switch from 'material-ui/Switch';
const styles = {
bar: {},
checked: {
color: green[500],
'& + $bar': {
ba... |
ajax/libs/analytics.js/2.8.25/analytics.js | nolsherry/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
... |
node_modules/semantic-ui-react/dist/es/collections/Form/FormRadio.js | SuperUncleCat/ServerMonitoring | import _extends from 'babel-runtime/helpers/extends';
import React from 'react';
import { customPropTypes, getElementType, getUnhandledProps, META } from '../../lib';
import Radio from '../../addons/Radio';
import FormField from './FormField';
/**
* Sugar for <Form.Field control={Radio} />.
* @see Form
* @see Radi... |
src/Profile.js | zugarzeeker/zugarzeeker.github.io | import React from 'react'
import { Link } from 'legendary-pancake'
import './Profile.scss'
import 'bootstrap/dist/css/bootstrap.css'
import cn from 'classnames'
import ProfilePicture from './ProfilePicture'
import ProfileInformation from './ProfileInformation'
export default function Profile ({ children }) {
return ... |
app/jsx/developer_keys/ManualConfigurationForm/Placement.js | djbender/canvas-lms | /*
* Copyright (C) 2019 - 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... |
src/key.spec.js | benmvp/react-composite-events | // @flow
import React from 'react'
import {shallow} from 'enzyme'
import {withKeyRemainDown, withKeyRemainUp} from './key'
const Dummy = () => <div />
jest.useFakeTimers()
describe('`withKeyRemainDown`', () => {
it('calls handler after key down & default 500 ms', () => {
const EnhancedAnchor = withKeyRemainDow... |
App/Story.js | johnwalley/hacker-news | import React from 'react';
import {
StyleSheet,
Text,
TouchableHighlight,
View,
} from 'react-native';
const styles = StyleSheet.create({
container: {
backgroundColor: 'white',
paddingLeft: 10,
paddingRight: 10,
},
title: {
fontSize: 18,
color: 'black',
fontWeight... |
src/components/summary_title.js | dbaronov/weather-widget-react-noredux | import React, { Component } from 'react';
class SummaryTitle extends Component {
render() {
return (
<div className="weather-widget__results-title col-lg-12">
<div className="weather-widget__results-city">
<h2> Weather in London as follows: </h2>
... |
test/TableSpec.js | xsistens/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Table from '../src/Table';
describe('Table', function () {
it('Should be a table', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Table />
);
assert.equal(React.findDOMNode(instance).nodeName,... |
src/toolbar/SearchField.js | prajapati-parth/react-bootstrap-table | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
class SearchField extends Component {
getValue() {
return ReactDOM.findDOMNode(this).value;
}
setValue(value) {
ReactDOM.findDOMNode(this).value = value;
}
render() {
const {
c... |
misc/jquery.js | juliocesardiaz/lemon_drupal |
/*!
* 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.... |
ajax/libs/jquery/1.6.4/jquery.min.js | visualjeff/cdnjs | /*! 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"... |
src/components/chat/index.js | yamalight/bpjs-electron | // npm packages
import React from 'react';
// our packages
import Message from './message';
export default class Chat extends React.Component {
constructor(props) {
super(props);
this.state = {
episode: props.episode,
connected: false,
username: undefined,
messages: [],
};
}
... |
react-family/webpack.dev.config.js | DayangLee/Programming-learning | const path = require('path');
module.exports = {
/* 入口 */
entry: [
'react-hot-loader/patch',
path.join(__dirname, 'src/index.js'),
],
/*输出到dist文件夹,输出文件名字为bundle.js*/
output: {
path: path.join(__dirname, './dist'),
filename: 'bundle.js'
},
/* 别名配置 */
resolve:{
alia... |
test/ButtonToolbarSpec.js | bbc/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ButtonToolbar from '../src/ButtonToolbar';
import ButtonGroup from '../src/ButtonGroup';
import Button from '../src/Button';
describe('ButtonToolbar', () => {
it('Should output a button toolbar', () => {
let instance = React... |
src/containers/HomePage/Poll.js | ReactPoland/react-community | import React, { Component } from 'react';
import { Card, CardTitle, CardText, CardActions } from 'material-ui/Card';
import { RadioButton, RadioButtonGroup } from 'material-ui/RadioButton';
import FlatButton from 'material-ui/FlatButton';
class Poll extends Component {
state = {
value: ''
}
handleChange = (... |
ajax/libs/thorax/2.2.0/thorax-combined.js | snorpey/cdnjs | /*!
* jQuery JavaScript Library v1.9.0
* 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-1-14
*/
(function( window, undefined ) {
"use strict";... |
ajax/libs/babel-core/5.2.6/browser-polyfill.js | alexmojaki/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/tools/code-template/ui/UserTable.js | steem/qwp-antd | import React from 'react'
import PropTypes from 'prop-types'
import { Modal, Button, Form, message } from 'antd'
import styles from './UserTable.less'
import classnames from 'classnames'
import DateTable from 'components/DataTable'
import { DropOption } from 'components'
import { Link } from 'dva/router'
import RandomA... |
projeto/fatec/src/App.js | frbaroni/curso_react | import React, { Component } from 'react';
import OiMundo from './OiMundo.js';
import Beber from './Beber.js';
import Estado from './Estado.js';
import Eventos from './Eventos.js';
import './App.css';
function PrimeiroComponente(props) {
return <span>Olá {props.nome}</span>
}
class App extends Component {
render... |
ajax/libs/grommet-index/0.4.0/grommet-index.min.js | cdnjs/cdnjs | var GrommetIndex=function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={exports:{},id:n,loaded:!1};return e[n].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){try{(function(){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object... |
src/app/components/player/volume-button.js | feedm3/unhypem-frontend | /**
* @author Fabian Dietenberger
*/
'use strict';
import React from 'react';
import VolumePopup from './volume-popup';
import songDispatcher from '../../dispatcher/song-dispatcher';
import ACTION from '../../constants/action';
import SvgIcon from '../common/svg-icon';
import volumeUpIcon from '../../../assets/img/... |
ui/src/main/js/components/InstanceHistoryItem.js | rdelval/aurora | import moment from 'moment';
import React from 'react';
import Icon from 'components/Icon';
import StateMachine from 'components/StateMachine';
import {
getClassForScheduleStatus,
getDuration,
taskToStateMachine
} from 'utils/Task';
import { SCHEDULE_STATUS } from 'utils/Thrift';
export function InstanceHistor... |
src/routes/content/index.js | kutou/react-starter-kit | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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 Content from './Content'... |
src/app/views/notFound.js | eordano/sherlock | import React from 'react'
import { Link } from 'react-router'
export class NotFoundView extends React.Component {
render () {
return (
<div className='container-fluid text-center'>
<div className='row'>
<h1>Oops... nothing found here (404)</h1>
<hr />
<Link to='/'>Back... |
packages/material-ui-icons/src/PhonelinkRing.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let PhonelinkRing = props =>
<SvgIcon {...props}>
<path d="M20.1 7.7l-1 1c1.8 1.8 1.8 4.6 0 6.5l1 1c2.5-2.3 2.5-6.1 0-8.5zM18 9.8l-1 1c.5.7.5 1.6 0 2.3l1 1c1.2-1.2 1.2-3 0-4.3zM14 1H4c-1.1 0-2 .9-2 2v18c0 1.1... |
assets/javascripts/jquery.js | tdg5/simple_hueman | /*! jQuery v1.11.2 | (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... |
ajax/libs/react-redux-form/1.4.4/ReactReduxForm.min.js | seogi1004/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-redux"),require("redux"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-redux","redux","react-dom"],t):"object"==typeof exports?exports.ReactReduxForm=t(require("react"),... |
node_modules/react-icons/md/repeat-one.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdRepeatOne = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m21.6 25h-2.5v-6.6h-2.5v-1.8l3.4-1.6h1.6v10z m6.8 3.4v-6.8h3.2v10h-20v5l-6.6-6.6 6.6-6.6v5h16.8z m-16.8-16.8v6.8h-3.2v-10h20v-5l6.6 6.6-6.6 6.6v-5h-16.8z"/></g>
... |
information/blendle-frontend-react-source/app/components/navigation/LogoLink/index.js | BramscoChill/BlendleParser | import React from 'react';
import PropTypes from 'prop-types';
import { pure } from 'recompose';
import classNames from 'classnames';
import { BlendleLogo } from '@blendle/lego';
import Link from 'components/Link';
import CSS from './LogoLink.scss';
const LogoLink = ({ className, ...props }) => {
const linkClassName... |
__tests__/index.android.js | marcpechaitis/ForestWatch | 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 />
);
});
|
web/old_src/SnapshotDraggable.js | vmprobe/vmprobe | import React from 'react';
import PureComponent from 'react-pure-render/component';
import { DragSource } from 'react-dnd';
import DragTypes from './DragTypes';
const snapshotDragSource = {
beginDrag(props) {
return {
handleDrop: props.handleDrop,
};
}
};
class SnapshotDraggable extends PureCompone... |
src/components/contacts/contactList.js | EncontrAR/backoffice | import React, { Component } from 'react';
import Input from '../uielements/input';
import DeleteButton from './deleteButton';
import { PropTypes } from "prop-types";
const Search = Input.Search;
function filterContacts(contacts, search) {
search = search.toUpperCase();
return search
? contacts.filter(contact =... |
app/javascript/mastodon/components/status_action_bar.js | anon5r/mastonon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import IconButton from './icon_button';
import DropdownMenuContainer from '../containers/dropdown_menu_container';
import { defineMessages, injectIntl } from 'react-intl';
import ImmutablePureCompo... |
packages/material-ui-icons/src/LabelOffSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M22 12l-4.97-7H8.66l10.7 10.73zM2 4l1 1v14h14l2 2 1.41-1.41L3.44 2.62z" />
, 'LabelOffSharp');
|
src/server.js | magnusbae/fluffy-beat | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import 'babel-core/polyfill';
import path from 'path';
import express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import Router from './routes';
import Html from './components/Html';
const server = global.... |
src/js/view/stats.js | chemdemo/react-webpack-todos | /*
* @Author: dmyang
* @Date: 2015-07-31 18:39:12
* @Last Modified by: dmyang
* @Last Modified time: 2015-08-18 21:47:16
*/
'use strict';
import React from 'react';
let Stats = React.createClass({
render() {
let props = this.props;
let filter = props.filter;
return (
<sec... |
ajax/libs/tinymce/4.4.0/plugins/legacyoutput/plugin.js | jdh8/cdnjs | /**
* plugin.js
*
* Released under LGPL License.
* Copyright (c) 1999-2015 Ephox Corp. All rights reserved
*
* License: http://www.tinymce.com/license
* Contributing: http://www.tinymce.com/contributing
*
* This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u elements, al... |
Examples/Movies/SearchBar.ios.js | hydraulic/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,
... |
blueocean-material-icons/src/js/components/svg-icons/action/theaters.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionTheaters = (props) => (
<SvgIcon {...props}>
<path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z"/>
</SvgIcon>
);
ActionTheaters.displayNam... |
ajax/libs/react-chartjs/0.7.3/react-chartjs.min.js | keicheng/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom"),require("Chartjs")):"function"==typeof define&&define.amd?define(["react","react-dom","Chartjs"],e):"object"==typeof exports?exports["react-chartjs"]=e(require("react"),require("react-dom"),require("C... |
src/components/TopBar.js | csmalin/reduxchat | import React, { Component } from 'react';
export default class TopBar extends Component {
render() {
return (
<div>
Teste
</div>
);
}
} |
src/components/PasswordInput/PasswordInput.spec.js | dryzhkov/ps-react-dr | import React from 'react';
import renderer from 'react-test-renderer';
import PasswordInput from './PasswordInput';
import { shallow } from 'enzyme';
describe('PasswordInput', () => {
test('hides password quality by default', () => {
const tree = renderer.create(<PasswordInput
htmlId="test"
... |
packages/jsbattle-webpage/src/components/test/LiveCodeCheatSheetTab.spec.js | jamro/jsbattle | import React from 'react';
import {shallow} from 'enzyme';
import LiveCodeCheatSheetTab from '../LiveCodeCheatSheetTab.js';
test('LiveCodeCheatSheetTab renders properly', () => {
const wrapper = shallow(<LiveCodeCheatSheetTab />);
expect(wrapper.render().get(0)).toHaveProperty('name', 'div');
expect(wrapper.rend... |
src/NodeGraphVis.js | brysgo/thoughtnet | import React, { Component } from 'react';
import SourceBit from './lib/source_bit'
import { Layer, Circle, Line, Stage, Group, Text } from 'react-konva';
class NodeGraphVis extends Component {
constructor({network}) {
super();
this.state = {timestep: 0};
this.network = network;
}
componentDidMoun... |
src/JSONObjectNode.js | borm/react-json-tree | import React from 'react';
import PropTypes from 'prop-types';
import JSONNestedNode from './JSONNestedNode';
// Returns the "n Items" string for this node,
// generating and caching it if it hasn't been created yet.
function createItemString(data) {
const len = Object.getOwnPropertyNames(data).length;
return `${l... |
examples/huge-apps/routes/Course/components/Course.js | frankleng/react-router | import React from 'react';
import Dashboard from './Dashboard';
import Nav from './Nav';
var styles = {};
styles.sidebar = {
float: 'left',
width: 200,
padding: 20,
borderRight: '1px solid #aaa',
marginRight: 20
};
class Course extends React.Component {
render () {
let { children, params } = this.pro... |
ajax/libs/angular.js/1.0.5/angular-scenario.js | sadhat/cdnjs | /*!
* 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.
... |
docs-ui/components/tag.stories.js | looker/sentry | import React from 'react';
import {storiesOf} from '@storybook/react';
import {withInfo} from '@storybook/addon-info';
import Tag from 'app/views/settings/components/tag';
storiesOf('Tags', module)
.add(
'default',
withInfo('A basic tag-like thing. If you pass no type, it will be gray')(() => (
<Tag>D... |
app/components/RepositoryCommit.js | yneves/atom-orbital-command | 'use babel';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import autoBind from 'class-autobind';
export default class RepositoryCommit extends Component {
static propTypes = {
commitMessage: PropTypes.string.isRequired,
gitCommit: PropTypes.func.isRequired,
setCommitMess... |
node_modules/react-virtualized/dist/es/Grid/defaultCellRangeRenderer.js | Alex-Shilman/Drupal8Node |
import React from 'react';
import cn from 'classnames';
/**
* Default implementation of cellRangeRenderer used by Grid.
* This renderer supports cell-caching while the user is scrolling.
*/
export default function defaultCellRangeRenderer(_ref) {
var cellCache = _ref.cellCache;
var cellClassName = _ref.cellCla... |
src/packages/recompose/__tests__/mapPropsStream-test.js | acdlite/recompose | import React from 'react'
import { mount } from 'enzyme'
import setObservableConfig from '../setObservableConfig'
import rxjs4Config from '../rxjs4ObservableConfig'
import { mapPropsStream } from '../'
setObservableConfig(rxjs4Config)
// Most of mapPropsStream's functionality is covered by componentFromStream
test('m... |
src/components/album-item/AlbumItem.js | paramsinghvc/harp | import React, { Component } from 'react';
import { Link } from 'react-router';
require('./AlbumItem.scss');
export default class AlbumItem extends Component {
render() {
return (
<Link to={`/album/${this.props.album.getIn(['id'])}`} className="album-item"
aria-labelledby={`album-${thi... |
src/scripts/VideoMeta.js | whoisandie/yoda | 'use strict';
import React from 'react';
import {MetaMixin} from './Mixins';
export default React.createClass({
mixins: [MetaMixin],
propTypes: {
channel: React.PropTypes.string.isRequired,
views: React.PropTypes.string.isRequired,
published: React.PropTypes.string.isRequired
},
render() {
r... |
ajax/libs/rxjs/2.3.3/rx.lite.compat.js | emmy41124/cdnjs | // 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... |
public/plugins/jquery-inputmask/min/inputmask/jquery.inputmask.min.js | anakpantai/buteti | /*!
* jquery.inputmask.min.js
* https://github.com/RobinHerbots/jquery.inputmask
* Copyright (c) 2010 - 2016 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 3.3.2-106
*/
/*
* Input Mask plugin for jquery
* http://github.com/RobinHerbots/jquery.inputmask
... |
pollard/components/XSSeparator.js | spncrlkt/pollard | import React from 'react';
const XSSeparator = () =>
<div className="visible-xs-block col-xs-12" style={{ marginTop: 5 }} />
export default XSSeparator;
|
packages/react-devtools-shared/src/devtools/views/Profiler/CommitFlamegraphListItem.js | rricard/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import React, {Fragment, memo, useCallback, useContext} from 'react';
import {areEqual} from 'react-window';
import {b... |
ajax/libs/react-sortable-hoc/0.0.11/react-sortable-hoc.js | sashberd/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
src/browser/main.js | marekv69/twitterTestApp | import Bluebird from 'bluebird';
import React from 'react';
import ReactDOM from 'react-dom';
import Router from 'react-router';
import configureStore from '../common/configureStore';
import createRoutes from './createRoutes';
import {IntlProvider} from 'react-intl';
import {Provider} from 'react-redux';
import {browse... |
examples/LinkingExample/__tests__/index.android.js | Steviey/win-react-navigation | 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 />
);
});
|
app/javascript/mastodon/features/ui/components/navigation_panel.js | 5thfloor/ichiji-social | import React from 'react';
import { NavLink, withRouter } from 'react-router-dom';
import { FormattedMessage } from 'react-intl';
import Icon from 'mastodon/components/icon';
import { profile_directory, showTrends } from 'mastodon/initial_state';
import NotificationsCounterIcon from './notifications_counter_icon';
impo... |
ajax/libs/onsen/1.3.9/js/onsenui.js | holtkamp/cdnjs | /*! onsenui - v1.3.9 - 2015-09-07 */
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// JavaScript Dynamic Content shim for Windows Store apps
(function () {
if (window.MSApp && M... |
src/client.js | devcharleneg/twitter-react-app | /**
* 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 'whatwg-fetch';
import React from 'react';
impor... |
src/Frontend/test/components/portal/signup/SuccessSpec.js | Sententiaregum/Sententiaregum | /*
* This file is part of the Sententiaregum project.
*
* (c) Maximilian Bosch <maximilian@mbosch.me>
* (c) Ben Bieler <ben@benbieler.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
'use strict';
import React from 'react';
... |
src/containers/unit/ModeLine/TopBar/MobileView/ArticleBar/index.js | mydearxym/mastani | import React from 'react'
import ImgFallback from '@/widgets/ImgFallback'
import {
Wrapper,
InnerWrapper,
BaseInfo,
Title,
Avatar,
} from '../../../styles/top_bar/mobile_view/article_bar'
const ArticleBar = ({ visible, viewingArticle }) => {
const { author, title } = viewingArticle
return (
<Wrapp... |
packages/wix-style-react/src/CustomModalLayout/docs/examples/ModalExample.js | wix/wix-style-react | /* eslint-disable */
import React from 'react';
import { Modal, Button, Box, Checkbox } from 'wix-style-react';
class ModalExample extends React.Component {
state = {
isModalOpened: false,
};
openModal = () => this.setState({ isModalOpened: true });
closeModal = () => this.setState({ isModalOpened: false... |
src/PaginationButton.js | jesenko/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import createSelectedEvent from './utils/createSelectedEvent';
import elementType from 'react-prop-types/lib/elementType';
const PaginationButton = React.createClass({
propTypes: {
className: React.PropTypes.string,
eventKey: React.PropTypes.on... |
gadget-system-teamwork/src/components/sub-components/ListCommentPage.js | TeodorDimitrov89/JS-Web-Teamwork-2017 | import React from 'react'
import { Link } from 'react-router-dom'
import Auth from '../users/Auth'
const ListCommentPage = (props) => (
<div className='comments'>
<div className='comment-box'>
<span className='comment-count'>#{props.index}</span>
<span>{props.author} says:</span>
<p>{pro... |
node_modules/react-icons/md/airline-seat-legroom-reduced.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdAirlineSeatLegroomReduced = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m8.4 20q0 2 1.4 3.5t3.6 1.5h6.6v3.4h-6.6q-3.5 0-5.9-2.5t-2.5-5.9v-15h3.4v15z m24.9 12q0.2 1.2-0.5 2.1t-1.9 0.9h-7.5v-5l1.6-6.6h-10q-2 0-3.5-1.5t-1.5... |
ajax/libs/remoteStorage/0.10.1/remotestorage-nocache.amd.js | kennynaoh/cdnjs | /** remotestorage.js 0.10.0, http://remotestorage.io, MIT-licensed **/
define([], function() {
/** FILE: lib/promising.js **/
(function(global) {
function getPromise(builder) {
var promise;
if(typeof(builder) === 'function') {
setTimeout(function() {
try {
builder(promise);
}... |
App/src/features/calendar/Activity/Activity.js | DupK/dashboard-epitech | /**
* Created by desver_f on 10/03/17.
*/
import React, { Component } from 'react';
import moment from 'moment';
import { Platform, StyleSheet, View } from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
import ENIcon from 'react-native-vector-icons/Entypo';
import { observer } from 'mobx-react... |
src/yearpicker/YearPicker.js | buildo/rc-datepicker | import React from 'react';
import t from 'tcomb';
import { props } from 'tcomb-react';
import View from 'react-flexview';
import { pure, skinnable } from '../utils';
import { MomentDate, Value, Mode } from '../utils/model';
import YearPickerTop from './YearPickerTop';
import YearPickerBody from './YearPickerBody';
@pu... |
src/notifications/screens/notifications.screen.js | housseindjirdeh/git-point | /* eslint-disable no-nested-ternary */
import React, { Component } from 'react';
import { connect } from 'react-redux';
import {
StyleSheet,
FlatList,
View,
ScrollView,
Text,
TouchableOpacity,
Image,
Platform,
} from 'react-native';
import { ButtonGroup, Card, Icon } from 'react-native-elements';
impor... |
app/coffeescripts/calendar/sidebar.js | djbender/canvas-lms | /*
* Copyright (C) 2012 - 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... |
src/svg-icons/action/input.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionInput = (props) => (
<SvgIcon {...props}>
<path d="M21 3.01H3c-1.1 0-2 .9-2 2V9h2V4.99h18v14.03H3V15H1v4.01c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98v-14c0-1.11-.9-2-2-2zM11 16l4-4-4-4v3H1v2h10v3z"/>
</... |
node_modules/react-router-dom/Switch.js | chenjic215/search-doctor | 'use strict';
exports.__esModule = true;
var _Switch = require('react-router/Switch');
var _Switch2 = _interopRequireDefault(_Switch);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = _Switch2.default; // Written in this round about way for babel-tra... |
ajax/libs/forerunnerdb/1.3.613/fdb-core+views.js | maruilian11/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/app/scripts/components/topologies.js | dilgerma/scope | import React from 'react';
import { connect } from 'react-redux';
import classnames from 'classnames';
import { clickTopology } from '../actions/app-actions';
class Topologies extends React.Component {
constructor(props, context) {
super(props, context);
this.onTopologyClick = this.onTopologyClick.bind(thi... |
src/routes/decks/index.js | zerubeus/voicifix | import React from 'react';
import Decks from './Decks';
export default {
path: '/decks',
action() {
return <Decks />;
},
};
|
tests/baselines/reference/tsxStatelessFunctionComponentOverload6.js | jwbay/TypeScript | //// [file.tsx]
import React = require('react')
export interface ClickableProps {
children?: string;
className?: string;
}
export interface ButtonProps extends ClickableProps {
onClick: React.MouseEventHandler<any>;
}
export interface LinkProps extends ClickableProps {
to: string;
}
export interfa... |
examples/FlatListExample.js | instea/react-native-popup-menu | import React, { Component } from 'react';
import { FlatList, Alert, StyleSheet } from 'react-native';
import {
MenuProvider,
Menu,
MenuTrigger,
MenuOptions,
MenuOption,
} from 'react-native-popup-menu';
Menu.debug = true;
const data = new Array(500)
.fill(0)
.map((a, i) => ({ key: i, value: 'item' + i }... |
src/svg-icons/device/battery-charging-90.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryCharging90 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V8h5.47L13 7v1h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9L12... |
src/views/About.js | tmbtech/react-to-life | import React from 'react';
import MiniInfoBar from '../components/MiniInfoBar';
export default class SignUp {
render() {
return (
<div>
<h1>About Us</h1>
<div>Hey! You found the mini info bar! The following component is display-only.</div>
<MiniInfoBar/>
</div>
);
}
}
|
html.js | dashcommunity/blog | import React from 'react'
import DocumentTitle from 'react-document-title'
import { prefixLink } from 'gatsby-helpers'
const BUILD_TIME = new Date().getTime()
module.exports = React.createClass({
displayName: 'HTML',
propTypes: {
body: React.PropTypes.string,
},
render() {
const {body,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.