path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
src/js/components/icons/base/FormAdd.js | odedre/grommet-final | /**
* @description FormAdd SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @pr... |
docs/jquery.js | ruslankonev/uikit | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
src/scenes/home/components/VideosList/AddToFavoritesButton.js | ismaelgt/english-accents-map | import React from 'react'
import PropTypes from 'prop-types'
class AddToFavouritesButton extends React.Component {
componentDidMount () {
componentHandler.upgradeDom()
}
componentDidUpdate () {
componentHandler.upgradeDom()
}
isFavorite (id) {
return this.props.favorites.indexOf(id) > -1
}
... |
app/components/twitter/Twitter.js | JoeDahle/fic | // core
import React from 'react';
import PropTypes from 'react';
// components
import Loading from '../../components/loading/Loading';
// styles
var style = require('./_index.scss');
// data
var Timeline = require('react-twitter-widgets').Timeline;
var Twitter = React.createClass({
getInitialState: function()... |
client/src/slides.js | paulsonnentag/schaudepot | import React, { Component } from 'react';
import { Template } from './template';
export class Slides extends Component {
render () {
var offset= '-' + (this.props.current * 100) + '%';
return (
<div className="slides"
style={{marginLeft: offset}}>
{this.props.slides.map((slide, i) =... |
app/javascript/mastodon/components/load_pending.js | tootsuite/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
export default class LoadPending extends React.PureComponent {
static propTypes = {
onClick: PropTypes.func,
count: PropTypes.number,
}
render() {
const { count } = this.props;
return ... |
packages/component/src/Attachment/Assets/DownloadIcon.js | billba/botchat | import PropTypes from 'prop-types';
import React from 'react';
const ICON_SIZE_FACTOR = 22;
const DownloadIcon = ({ className, size }) => (
<svg className={className} height={ICON_SIZE_FACTOR * size} viewBox="0 0 31.8 46" width={ICON_SIZE_FACTOR * size}>
<path d="M26.8,23.8l-10.9,11L5,23.8l1.6-1.6l8.2,8.3V5H17v... |
Gruntfile.js | afc163/react | 'use strict';
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jsx: require('./grunt/config/jsx'),
browserify: require('./grunt/config/browserify'),
npm: require('./grunt/config/npm'),
clean: [
'./build',
'./*.gem',
'./docs/_site',... |
packages/react-instantsearch-dom/src/components/__tests__/MenuSelect.js | algolia/react-instantsearch | import React from 'react';
import renderer from 'react-test-renderer';
import Enzyme, { mount } from 'enzyme';
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
import MenuSelect from '../MenuSelect';
Enzyme.configure({ adapter: new Adapter() });
describe('MenuSelect', () => {
it('default menu select', () =... |
src/main.js | vfreitas-/react-shopping-list | import React from 'react'
import { render } from 'react-dom'
import App from './App.jsx'
render(
<App />,
document.getElementById('app')
)
|
node_modules/react-select/src/Value.js | pris54/reactjs-simple-form | import React from 'react';
import classNames from 'classnames';
const Value = React.createClass({
displayName: 'Value',
propTypes: {
children: React.PropTypes.node,
disabled: React.PropTypes.bool, // disabled prop passed to ReactSelect
id: React.PropTypes.string, // Unique id ... |
src/components/__tests__/FormButton-test.js | MakeSchool-17/ios-app-DennisAleynikov | /**
* # FormButton-test.js
*
* This class tests that the form button displays correctly
*
* *Note:* if you want to understand the structures here, add a
* ```console.log``` and then ```npm test```.
*/
'use strict';
jest.autoMockOff();
/**
* ## Imports
*/
const React = require('react-native');
const { View }... |
ajax/libs/babel-core/5.6.2/browser-polyfill.min.js | jackdoyle/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/components/widget/SongList/TrackItem.js | industral/RoteSonne.js | import React from 'react'
const TrackItem = (props) => {
let classList = () => {
var output = [];
if (props.selectedFile === props.trackInfo.get('file')) {
output.push('selected');
}
if (props.playingFile === props.trackInfo.get('file')) {
output.push('active');
}
return output... |
ajax/libs/gyrejs/0.0.13/gyrejs.js | seogi1004/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("Immutable"));
else if(typeof define === 'function' && define.amd)
define(["Immutable"], factory);
else if(typeof exports === 'object')
exports["GyreJS"] = ... |
src/entries/primary.js | tsupol/semi-starter | /* eslint-disable import/default */
import React from 'react';
import {render} from 'react-dom';
import {Provider} from 'react-redux';
import {Router, browserHistory, useRouterHistory} from 'react-router';
import {createHashHistory} from 'history';
import routes from '../routes/primary';
import configureStore from '..... |
app/components/shared/pagination.js | nypl-registry/browse | import React from 'react'
import { Link } from 'react-router'
import { stringify } from 'qs'
const Pagination = React.createClass({
propTypes () {
return {
total: React.PropTypes.int.isRequired,
query: React.PropTypes.object.isRequired,
basePath: React.PropTypes.string.isRequired,
result... |
src/components/Settings/FontSizeOptions/index.js | korabh/quran.com-frontend | import React, { Component, PropTypes } from 'react';
import * as customPropTypes from 'customPropTypes';
import LocaleFormattedMessage from 'components/LocaleFormattedMessage';
import Icon from 'quran-components/lib/Icon';
const styles = require('./styles.scss');
class FontSizeOptions extends Component {
handleOpti... |
src/auth/authForm.spec.js | otaviosoares/thinkific-challenge-ui | import React from 'react';
import { shallow }from 'enzyme';
import AuthForm from './authForm';
test('<AuthForm /> submits', () => {
const mockClick = jest.fn();
const component = shallow(
<AuthForm handleSubmit={mockClick}></AuthForm>
);
component.find('form').simulate('submit');
expect(mockClick).toHave... |
ui/app/pages/Policies/Policies.js | StamusNetworks/scirius | import React from 'react';
import { Link } from 'ui/helpers/Link';
import UIBreadcrumb from 'ui/components/UIBreadcrumb';
const Policies = () => (
<div>
<UIBreadcrumb
items={[
'Stamus ND',
<Link app to='stamus-nd/policies'>Policies</Link>,
]}
/>
Policies
</div>
);
Policies.m... |
src/svg-icons/editor/insert-invitation.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorInsertInvitation = (props) => (
<SvgIcon {...props}>
<path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"/>
... |
www/src/pages/docs.js | TaitoUnited/taito-cli | import React from 'react';
import { graphql } from 'gatsby';
import { flattenListData } from '../utils';
import Page from '../components/Page';
import SEO from '../components/SEO';
import GitHubEditLink from '../components/GitHubEditLink';
import Spacing from '../components/Spacing';
export default ({ data }) => {
... |
src/control/settings/index.js | BuildFire/placesPlugin2 | import React from 'react';
import { render } from 'react-dom';
import Settings from './settings';
const container = document.getElementById('mount');
function renderApp() {
render(<Settings />, container);
}
// Setup HMR re-rendering
if (module.hot) {
module.hot.accept();
module.hot.accept('./settings', render... |
ajax/libs/vue-i18n/9.2.0-beta.25/vue-i18n.esm-bundler.js | cdnjs/cdnjs | /*!
* vue-i18n v9.2.0-beta.25
* (c) 2021 kazuya kawaguchi
* Released under the MIT License.
*/
import { getGlobalThis, format, makeSymbol, isObject, isPlainObject, isArray, isString, hasOwn, isBoolean, isRegExp, isFunction, assign, isNumber, warn, createEmitter, isEmptyObject } from '@intlify/shared';
import { ... |
old/stuff/vendor/fontawesome-free/js/brands.js | AlexFine/alexfine.github.io | /*!
* Font Awesome Free 5.8.1 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
*/
(function () {
'use strict';
var _WINDOW = {};
var _DOCUMENT = {};
try {
if (typeof window !== 'undefined') _WINDOW = win... |
node_modules/react-router/es6/Route.js | akh000/YoutubeApp | import React from 'react';
import invariant from 'invariant';
import { createRouteFromReactElement } from './RouteUtils';
import { component, components } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.string;
var func = _React$PropTypes.func;
/**
* A <Route> is use... |
public/assets/application-c1324494f268332ca998e63859906f39.js | mwanamayi/tozoya | /*!
* jQuery JavaScript Library v1.10.0
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-05-24T18:39Z
*/
function buildPrivatePub(doc){var sel... |
clients/packages/admin-client/src/components/editor-wysihtml/wysihtml-toolbar-insert-image.spec.js | nossas/bonde-client | /* eslint-disable no-unused-expressions */
import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import { WYSIHTMLToolbarInsertImage } from '../../components/editor-wysihtml';
describe('client/components/editor-wysihtml/wysihtml-toolbar-insert-image', () => {
let wrapper;
con... |
app/javascript/flavours/glitch/features/ui/components/zoomable_image.js | im-in-space/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import IconButton from 'flavours/glitch/components/icon_button';
import { defineMessages, injectIntl } from 'react-intl';
const messages = defineMessages({
compress: { id: 'lightbox.compress', defaultMessage: 'Compress image view box' },
expand: { id: ... |
packages/material-ui-icons/src/Lock.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.... |
ajax/libs/vue-material/1.0.0-beta-2/components/MdApp/index.js | sashberd/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... |
mobile/mock ups/auth/src/components/common/Card.js | parammehta/TravLendar | import React from 'react';
import { View } from 'react-native';
const Card = (props) => {
return (
<View style={styles.containerStyle}>
{props.children}
</View>
);
};
const styles = {
containerStyle: {
borderWidth: 1,
borderRadius: 2,
borderColor: '#ddd',
border... |
test/frontend/app/components/ui/test-button.js | LINKIWI/linkr | import React from 'react';
import {mount} from 'enzyme';
import sinon from 'sinon';
import test from 'tape';
import Button from '../../../../../frontend/app/components/ui/button';
test('Enabled button', (t) => {
const spy = sinon.spy();
const button = mount(
<Button
onClick={spy}
>
text
</... |
WebDriverAgent/Inspector/node_modules/babel-core/browser-polyfill.js | sixleaves/WDUSBClient | (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... |
public/client.js | chtefi/react-isomorphic | import React from 'react';
import App from './App';
const payload = window.INITIAL_PAYLOAD;
React.render(<App {...payload} />, document.getElementById('app'));
|
app/containers/DevToolbar/index.js | hlex/vms | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as ApplicationActions from '../../actions/applicationActions';
const mapStateToProps = state => state;
const actions = {
...ApplicationActions
};
const mapDispatchToProps = dispatc... |
src/layouts/CoreLayout/CoreLayout.js | daveham/ilgmrdx | import React from 'react';
import Footer from 'components/Footer';
import 'styles/core.scss';
import styles from './styles.scss';
export const CoreLayout = ({ children }) => {
return (
<div className={styles.pageContainer}>
<div className={styles.viewContainer}>
{children}
</div>
<Foote... |
client/components/settings/backup/import.js | bnjbvr/kresus | import React from 'react';
import { connect } from 'react-redux';
// Global variables
import { actions } from '../../../store';
import { translate as $t } from '../../../helpers';
class ImportModule extends React.Component {
state = {
withPassword: false,
validPassword: false
};
refPasswo... |
src/Nav.js | kishoreyarram/my-portfolio | import React, { Component } from 'react';
import { Link } from 'react-router';
class Nav extends Component {
constructor(props) {
super(props);
this.state = {
showNavBar: false,
};
this.renderNav = this.renderNav.bind(this);
this.onNavshow = this.onNavshow.bind(this);
}
onNavshow() {
... |
src/svg-icons/image/hdr-on.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageHdrOn = (props) => (
<SvgIcon {...props}>
<path d="M21 11.5v-1c0-.8-.7-1.5-1.5-1.5H16v6h1.5v-2h1.1l.9 2H21l-.9-2.1c.5-.3.9-.8.9-1.4zm-1.5 0h-2v-1h2v1zm-13-.5h-2V9H3v6h1.5v-2.5h2V15H8V9H6.5v2zM13 9H9.5v6H13... |
webpack.config.babel.js | sunstorymvp/RWR-boilerplate | const path = require('path');
const webpack = require('webpack');
const postcssImport = require('postcss-import');
const mqpacker = require('css-mqpacker');
const autoprefixer = require('autoprefixer');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const CleanWebpackPlugin = require('clean-webpack-p... |
website/irulez/src/components/admin_menu/inputs/_new_table_Inputs.js | deklungel/iRulez | import React, { Component } from 'react';
import DialogMenu from '../DialogMenu';
import EnhancedTable from '../Table';
import PropTypes from 'prop-types';
import { withSnackbar } from 'notistack';
import AuthService from '../../AuthService';
import { withStyles } from '@material-ui/core/styles';
import { components } ... |
files/algoliasearch.zendesk-hc/1.5.0/algoliasearch.zendesk-hc.min.js | Asaf-S/jsdelivr | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.algoliasearchZendeskHC=e()}}(function(){var e;return fu... |
src/svg-icons/hardware/memory.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareMemory = (props) => (
<SvgIcon {...props}>
<path d="M15 9H9v6h6V9zm-2 4h-2v-2h2v2zm8-2V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1 0-2 .9-2 2v2H3v2h2v2H3v2h2v2c0 1.1.9 2 2 2h2v2h2v-2h2v2h2v-2h2c1.1 ... |
src/lib/validation.js | terakilobyte/socketreact | /*
Simple serial "one by one" sync/async promises based validation.
*/
import Promise from 'bluebird';
import React from 'react';
import validator from 'validator';
export class ValidationError extends Error {
constructor(message: string, prop: string) {
super();
this.message = message;
this.prop = pro... |
Lumino/js/components/GatewaysList/GatewayView.js | evonove/lumino | import React from 'react';
import PropTypes from 'prop-types';
import { Text, TouchableOpacity } from 'react-native';
import styles from './style';
/**
* View of a single gateway.
* @param {string} [name]. The gateway's name.
* @param {string} [status]. The status of the gateway's connection.
*/
const GatewayVi... |
src/app/containers/NavContainer.js | paulawasylow/e-commerce-react-app | import React, { Component } from 'react';
import { Link } from 'react-router';
import { data } from '../API/data';
import Navigation from '../components/Navigation';
class NavContainer extends Component {
static propTypes = {
categories: React.PropTypes.array,
category: React.PropTypes.object
}
... |
test/TableSpec.js | Sipree/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ReactDOM from 'react-dom';
import Table from '../src/Table';
describe('Table', () => {
it('Should be a table', () => {
let instance = ReactTestUtils.renderIntoDocument(
<Table />
);
assert.equal(ReactDOM.findD... |
app/components/top.js | pompopo/pomhub | import React from 'react'
import { connect } from 'react-redux'
import { fetchUser } from '../actions/github'
import { selectTab } from '../actions/tab'
import EventList from './events/event-list'
import NotificationList from './notifications/notification-list'
export default class Top extends React.Component {
comp... |
src/applications/financial-status-report/pages/income/dependents/records.js | department-of-veterans-affairs/vets-website | import React from 'react';
import ItemLoop from '../../../components/ItemLoop';
import CardDetailsView from '../../../components/CardDetailsView';
export const uiSchema = {
'ui:title': () => (
<>
<legend className="schemaform-block-title">Your dependents</legend>
<p className="vads-u-padding-top--2">... |
src/containers/Table/itemDetails.testno.js | Restry/RSS | import expect from 'expect';
import React from 'react';
import { mount, shallow } from 'enzyme';
import TestUtils from 'react-addons-test-utils';
import { ItemDetailsForm as EditableTable} from './itemDetails';
function setup(saving) {
const props = {
course: {}, saving: saving, errors: {},
onSave: () => {... |
fields/types/cloudinaryimages/CloudinaryImagesField.js | kwangkim/keystone | import _ from 'underscore';
import React from 'react';
import Field from '../Field';
import { Button, FormField, FormInput, FormNote } from 'elemental';
import Lightbox from '../../../admin/src/components/Lightbox';
const SUPPORTED_TYPES = ['image/gif', 'image/png', 'image/jpeg', 'image/bmp', 'image/x-icon', 'applicat... |
src/components/common/TextInput.spec.js | doron2402/react-redux | import expect from 'expect';
import React from 'react';
import {mount, shallow} from 'enzyme';
import TestUtils from 'react-addons-test-utils';
import TextInput from './TextInput';
function setup({label}) {
const props = {
name: '',
label: label || '',
onChange: () => {},
placeholder: '',
value: ... |
__tests__/index.android.js | sunilgautam/ReduxTodo | 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 />
);
});
|
files/cignium-hypermedia-client/1.5.8/client.min.js | MadhavBitra/jsdelivr | var Cignium=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function o(e){"string"==typ... |
app/components/Search/SearchBox.js | CaptainFact/captain-fact-frontend | import React from 'react'
import { SearchBox as AlgoliaSearchBox } from 'react-instantsearch-dom'
import styled from 'styled-components'
import { withNamespaces } from 'react-i18next'
import { withRouter } from 'react-router'
const StyledSearchBox = styled(AlgoliaSearchBox)`
input[type='search'] {
border: 1px so... |
src/js/components/ImageFull.js | hadnazzar/ModernBusinessBootstrap-ReactComponent | import React from 'react';
export default class Body extends React.Component {
render() {
return(
<div class="container">
<div class="row">
<div class="col-lg-12">
<img class="img-responsive" src={this.props.imgLink} alt=""/>
</div>
</di... |
app/containers/agentsSearchResults.js | nypl-registry/browse |
import React from 'react'
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import { stringify } from 'qs'
import WindowTitleMixin from '../lib/windowTitleMixin'
import HeaderNav from '../components/shared/headerNav'
import Footer from '../components/shared/footer.js'
import SearchResul... |
app/javascript/mastodon/features/status/components/detailed_status.js | cobodo/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import StatusContent from '../../../components/status_content';
import MediaGallery from... |
ajax/libs/onsen/2.0.0-alpha.1/js/onsenui_all.min.js | nolsherry/cdnjs | /*! onsenui - v2.0.0-alpha - 2015-10-22 */
function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a func... |
src/modules/community/layouts/CommunityLayout/CommunityLayout.js | CtrHellenicStudies/Commentary | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { compose } from 'react-apollo';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
// layouts & components
import Header from '../../.... |
examples/todomvc/test/components/MainSection.spec.js | JoeStanton/redux | import expect from 'expect'
import React from 'react'
import TestUtils from 'react-addons-test-utils'
import MainSection from '../../components/MainSection'
import TodoItem from '../../components/TodoItem'
import Footer from '../../components/Footer'
import { SHOW_ALL, SHOW_COMPLETED } from '../../constants/TodoFilters... |
client/components/SearchResults.js | forkful/forkful | import React from 'react';
import { connect } from 'react-redux';
import RecipeContainer from '../../client/components/RecipeContainer.js';
import '../scss/_search.scss';
const SearchResults = (props) => (
<div className="search-results container">
<div className="row">
<div className="col-xs-12">
... |
components/logo.js | mars/heroku-nextjs | import React from 'react'
// Circle Right icon designed by Hector (CC license): https://thenounproject.com/term/circle-right/557979
export default (props) => <svg viewBox="0 0 1150.9491 1151.219" {...props}><g transform="translate(1904.506,419.41757)"><path d="m -1354.6565,731.56083 c -20.4904,-1.2663 -41.6453,-3.3398... |
src/svg-icons/content/redo.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentRedo = (props) => (
<SvgIcon {...props}>
<path d="M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/>
</Sv... |
src/containers/Asians/_components/BreakRoundMotions/SmallMotions.js | westoncolemanl/tabbr-web | import React from 'react'
import { connect } from 'react-redux'
import Card, {
CardHeader
} from 'material-ui/Card'
import List, {
ListItem,
ListItemText
} from 'material-ui/List'
import Divider from 'material-ui/Divider'
export default connect(mapStateToProps)(({
breakRound,
motionsById,
motionsDebatedCo... |
concrete/js/build/vendor/backbone/backbone.js | ryanneilstroud/xsericon | // Backbone.js 1.1.2
// (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 ... |
examples/with-custom-webpack-config/src/server.js | jaredpalmer/react-production-starter | import App from './App';
import React from 'react';
import express from 'express';
import { renderToString } from 'react-dom/server';
const assets = require(process.env.RAZZLE_ASSETS_MANIFEST);
const server = express();
server
.disable('x-powered-by')
.use(express.static(process.env.RAZZLE_PUBLIC_DIR))
.get('/... |
modules/components/Redirect.js | lmtdit/react-router | var React = require('react');
var Configuration = require('../Configuration');
var PropTypes = require('../PropTypes');
/**
* A <Redirect> component is a special kind of <Route> that always
* redirects to another route when it matches.
*/
var Redirect = React.createClass({
displayName: 'Redirect',
mixins: [ C... |
examples/master-detail/app.js | trotzig/react-router | import React, { findDOMNode } from 'react';
import { Router, History, Route, IndexRoute, Link } from 'react-router';
import ContactStore from './ContactStore';
var App = React.createClass({
getInitialState() {
return {
contacts: ContactStore.getContacts(),
loading: true
};
},
componentWillMo... |
examples/huge-apps/routes/Calendar/components/Calendar.js | Jastrzebowski/react-router | import React from 'react';
class Calendar extends React.Component {
static loadProps(params, cb) {
setTimeout(() => {
cb(null, {
events: [{
id: 0, title: 'essay due'
}]
})
}, 1000);
}
render () {
var { events } = this.props;
return (
<div>
<h2... |
src/Jumbotron.js | pieter-lazzaro/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import CustomPropTypes from './utils/CustomPropTypes';
const Jumbotron = React.createClass({
propTypes: {
/**
* You can use a custom element for this component
*/
componentClass: CustomPropTypes.elementType
},
getDefaultProps() {
... |
src/client/ui-harness.js | philcockfield/ui-harness | /**
* Main entry point for the UIHarness in the browser.
*/
import React from 'react';
import ReactDOM from 'react-dom';
import api from '../shared/api-internal';
import bdd from '../shared/bdd';
import Shell from '../components/Shell';
// Ensure the 'describe/it' statements are in the global namespace.
bdd.regist... |
test/TagSpec.js | jsbranco/react-materialize | /* global describe, it, expect */
import React from 'react';
import { shallow } from 'enzyme';
import Tag from '../src/Tag';
const child = 'hey';
const wrapper = shallow(
<Tag>{child}</Tag>
);
describe('Tabs', () => {
it('should create list of Tab itemt', () => {
expect(wrapper.contains(child)).to.equal(true... |
docs/src/pages/premium-themes/onepirate/modules/views/AppFooter.js | lgollut/material-ui | import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Grid from '@material-ui/core/Grid';
import Link from '@material-ui/core/Link';
import Container from '@material-ui/core/Container';
import Typography from '../components/Typography';
import TextField from '../components/TextField';... |
client/portfolio2017/src/Components/ContacList/ContacList.js | corrortiz/portafolio2017 | import React, { Component } from 'react';
import PropTypes from 'prop-types';
//MUI Components
import { withStyles } from 'material-ui/styles';
import List, { ListItem, ListItemText } from 'material-ui/List';
import Avatar from 'material-ui/Avatar';
import Phone from 'material-ui-icons/Phone';
import Email from 'materi... |
node_modules/react-bootstrap/es/ButtonToolbar.js | CallumRocks/ReduxSimpleStarter | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/components/WeatherIcons/CloudSec.js | Cirych/WeatherApp | import React from 'react';
export const CloudSec = ({ color = 'grey' }) =>
<g id="cloudSec">
<path id="cloud2" fill={color} stroke="black" strokeWidth="10000" d="M497451 118775c5747,-609 11547,-1078 17400,-1078 61502,0 111358,50702 111358,113246 0,61006 -47519,111048 -107527,113211l-314540 34 -714 0c-55247,0 -10003... |
ajax/libs/react-select/0.5.5/react-select.js | ahocevar/cdnjs | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Select = f()}}... |
ajax/libs/6to5/3.5.3/browser.js | perdona/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return... |
src/components/Register.js | cedjud/nst-prototype | import React, { Component } from 'react';
import fire from '../fire.js';
import {
Segment,
Button,
Header,
Form,
Icon
} from 'semantic-ui-react';
import { Redirect, Link } from 'react-router-dom';
import './Register.css';
class Register extends Component {
constructor(props){
super(props);
this.st... |
Javascript/ReactJS/MyMoney/lib/components/AddExpense.js | Page-Carbajal/Software-Engineering | import React from 'react';
class AddExpense extends React.Component
{
addExpenseClick(e)
{
e.preventDefault();
var name = this.refs.name.value.trim();
var amount = this.refs.amount.value.trim();
var date = this.refs.date.value.trim();
var category = this.refs.category.v... |
src/components/ReactHotReloadWrapper.js | evonsdesigns/markts-app | import React from 'react';
import { hot } from 'react-hot-loader';
import AppRoutes from './AppRoutes';
export default hot(module)(AppRoutes); |
ajax/libs/yui/3.14.1/scrollview-base/scrollview-base-coverage.js | athanclark/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/scrollview-base/scrollview-base.js']) {
__coverage__['build/scrollview-base/scrollview-base.js'] = {"path":"build/scrollview-base/scrollview-base.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":... |
ajax/libs/core-js/0.4.4/core.js | ericelliott/cdnjs | /**
* Core.js 0.4.4
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(global, framework, undefined){
'use strict';
/******************************************************************************
* Module : common ... |
ajax/libs/react-data-grid/0.12.19/react-data-grid-with-addons.js | jdh8/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReactDataGrid"] = f... |
ajax/libs/forerunnerdb/1.3.848/fdb-core+views.js | iwdmb/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... |
docs/public/js/simple.min.js | HsuTing/cat-components | webpackJsonp([0],Array(125).concat([function(e,t,n){"use strict";/**
* Checks if two values are equal. Values may be primitives, arrays, or objects.
* Returns true if both arguments have the same keys and values.
*
* @see http://underscorejs.org
* @copyright 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
* @licens... |
ajax/libs/react-bootstrap-typeahead/0.8.4/react-bootstrap-typeahead.min.js | sreym/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactBootstrapTypeahead=t(require("react"),require("react-dom")):e.ReactBootstrapTypeahead=t(e.R... |
src/Tabs.js | apkiernan/react-bootstrap | import React from 'react';
import requiredForA11y from 'react-prop-types/lib/isRequiredForA11y';
import uncontrollable from 'uncontrollable';
import Nav from './Nav';
import NavItem from './NavItem';
import UncontrolledTabContainer from './TabContainer';
import TabContent from './TabContent';
import { bsClass as setBs... |
wp-content/themes/blankslate/bower_components/jquery/jquery.js | BooMaryMo/RaMay | /*!
* jQuery JavaScript Library v1.10.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-03T13:48Z
*/
(function( window, undefined ) {
// ... |
containers/App.js | TechAtNYU/rsvp | import React , { Component, PropTypes } from 'react'
import { connect } from 'react-redux'
import {
toggleProfile,
updateEmail,
updateNNumber,
postPerson,
filterSkills,
updateActiveTypeaheadField,
deleteTypeaheadSelection,
onHoverTypeahead,
} from '../actions'
import VisibleEventList fro... |
src/components/PreviousButtonContainer.js | ttrentham/Griddle | import React from 'react';
import { connect } from '../utils/griddleConnect';
import { textSelector, hasPreviousSelector, classNamesForComponentSelector, stylesForComponentSelector } from '../selectors/dataSelectors';
const enhance = OriginalComponent => connect((state, props) => ({
text: textSelector(state, { key: ... |
src/timelines/components/NotificationCard.js | algernon/mad-tooter | // @flow
/* The Mad Tooter -- A Mastodon client
* Copyright (C) 2017 Gergely Nagy
*
* This program 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, either version 3 of the
* License, or (at your o... |
stories/filelformgroup.stories.js | JimBarrows/Bootstrap-React-Components | import {storiesOf} from '@storybook/react'
import {action} from '@storybook/addon-actions'
import React from 'react'
import FileFormGroup from '../src/formgroups/FileFormGroup'
storiesOf('Form Groups/File', module)
.addDecorator((story) => <div className="container">{<form>{story()}</form>}</div>)
.add('Default'... |
test/4.example.js | namjul/eslint-plugin-flowtype-errors | /* eslint-disable */
/**
* @flow
*/
import React, { Component } from 'react';
class Foo extends Component {
props: {
firstName: Object,
lastName: string,
}
render() {
return (
<div>
<h1>Hello {this.props.firstName} {this.props.lastName}</h1>
</div>
);
}
}
export default... |
client/trello/src/app/components/BoardOptionsItem/BoardOptionsItem.js | Madmous/Trello-Clone | import React from 'react';
import FontAwesome from 'react-fontawesome';
import PropTypes from 'prop-types';
import './BoardOptionsItem.css';
const propTypes = {
iconName: PropTypes.string.isRequired,
boardName: PropTypes.string.isRequired
}
export default function BoardOptionsItem(props) {
const { iconName, ... |
web/test/portal/components/Pagination.js | trendmicro/serverless-survey-forms | import '../../helpers/env';
import DomMock from '../../helpers/dom-mock';
import { wrapInTestContext } from '../../helpers/dnd-test';
import expect from 'expect';
import React from 'react';
import TestUtils from 'react-dom/test-utils';
import Pagination from '../../../portal/src/components/Form/Pagination';
import Item... |
app/collections/settings.spec.js | jelliotartz/Panoptes-Front-End | /* eslint prefer-arrow-callback: 0, func-names: 0, 'react/jsx-filename-extension': [1, { "extensions": [".js", ".jsx"] }] */
import React from 'react';
import assert from 'assert';
import { shallow } from 'enzyme';
import sinon from 'sinon';
import DisplayNameSlugEditor from '../partials/display-name-slug-editor';
imp... |
docs/app/Examples/collections/Message/Variations/MessageFloatingExample.js | jcarbo/stardust | import React from 'react'
import { Message } from 'stardust'
const MessageFloatingExample = () => (
<Message floating>
Way to go!
</Message>
)
export default MessageFloatingExample
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.