path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
src/layouts/core/core-layout.spec.js | davidrhyswhite/react-redux-starter-kit | import React from 'react';
import CoreLayout from './index.jsx';
describe('(Layout) Core', function () {
it('Should have a working test.', function () {
expect(true).to.be.true;
});
});
|
ajax/libs/6to5/2.10.0/browser.js | mathiasrw/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/index.js | mikekidder/redux-form | import React from 'react';
import {connect} from 'react-redux';
import createAll from './createAll';
const isNative =
typeof window !== 'undefined' &&
window.navigator &&
window.navigator.product &&
window.navigator.product === 'ReactNative';
export const {
actionTypes,
addArrayValue,
blur,
change,
... |
packages/spacebars-compiler/codegen.js | jrudio/meteor | // ============================================================
// Code-generation of template tags
// The `CodeGen` class currently has no instance state, but in theory
// it could be useful to track per-function state, like whether we
// need to emit `var self = this` or not.
var CodeGen = SpacebarsCompiler.CodeGen ... |
app/components/Switch/Switch.js | arnef/ligatool-hamburg | import React from 'react';
import { Switch as RNSwitch, Platform, View } from 'react-native';
import { connect } from 'react-redux';
import Touchable from '../Touchable';
import Text from '../Text';
import styles from './styles';
import { getColor } from '../../redux/modules/user';
function Switch(props) {
const { ... |
src/utils/CustomPropTypes.js | xiaoking/react-bootstrap | import React from 'react';
import warning from 'react/lib/warning';
import childrenToArray from './childrenToArray';
const ANONYMOUS = '<<anonymous>>';
/**
* Create chain-able isRequired validator
*
* Largely copied directly from:
* https://github.com/facebook/react/blob/0.11-stable/src/core/ReactPropTypes.js#L9... |
ajax/libs/angular-google-maps/2.0.4/angular-google-maps.js | hcxiong/cdnjs | /*! angular-google-maps 2.0.4 2014-10-22
* AngularJS directives for Google Maps
* git: https://github.com/angular-ui/angular-google-maps.git
*/
(function() {
String.prototype.contains = function(value, fromIndex) {
return this.indexOf(value, fromIndex) !== -1;
};
String.prototype.flare = function(flare)... |
src/components/DetailedChit.js | paramadeep/chit | import React, {useContext, useMemo, useState} from 'react';
import {Text, StyleSheet} from 'react-native';
import {ChitsContext} from '../contexts/ChitsContext';
import chitsModel from '../models/chits';
import {updateInstallment} from '../models/chit';
import AddInstallment from './AddInstallment';
import Installments... |
lib/icons/IosDrag.js | fbfeix/react-icons | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("val... |
docs/app/Examples/collections/Breadcrumb/Content/index.js | aabustamante/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const BreadcrumbContentExamples = () => (
<div>
<ExampleSection title='Content'>
<ComponentExample
title='Divider'
... |
src/svg-icons/communication/stop-screen-share.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationStopScreenShare = (props) => (
<SvgIcon {...props}>
<path d="M21.22 18.02l2 2H24v-2h-2.78zm.77-2l.01-10c0-1.11-.9-2-2-2H7.22l5.23 5.23c.18-.04.36-.07.55-.1V7.02l4 3.73-1.58 1.47 5.54 5.54c.61-.33 1... |
src/components/mock/MotionCard.js | tituomin/council-compass | import React from 'react';
import { Link } from 'react-router-dom';
import classNames from 'classnames';
import { voteValueDescription } from '../../utils';
export default function MotionCard({_case, totalCount, userVote, index}) {
const userVoteSummary = (userVote !== undefined ? 'Äänestit ' + voteValueDescription... |
packages/example-phone/src/scripts/components/connection-status.js | udaysrinath/spark-js-sdk | import React from 'react';
export default function ConnectionStatus({connected, connecting}) {
let message;
if (connected) {
message = `connected`;
}
else if (connecting) {
message = `connecting`;
}
else {
message = `not connected`;
}
return <span className="connection-status">{message}</s... |
docs/pages/api-docs/list-item-text.js | lgollut/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'api/list-item-text';
const requireRaw = require.context('!raw-loader!./', false, /\/list-item-text\.md$/);
export default functi... |
blueprints/form/files/__root__/forms/__name__Form/__name__Form.js | donnycrash/react-redux-electron-starter-kit | import React from 'react'
import { reduxForm } from 'redux-form'
export const fields = []
const validate = (values) => {
const errors = {}
return errors
}
type Props = {
handleSubmit: Function,
fields: Object,
}
export class <%= pascalEntityName %> extends React.Component {
props: Props;
defaultProps = ... |
internals/templates/routes.js | plasticanthony/coffee-dates | // These are the pages you can go to.
// They are all wrapped in the App component, which should contain the navbar etc
// See http://blog.mxstbr.com/2016/01/react-apps-with-pages for more information
// about the code splitting business
import { getAsyncInjectors } from 'utils/asyncInjectors';
const errorLoading = (e... |
src/components/__tests__/ui/tab-icon-test.js | visa-innovation-sf/ldn-retail-demo | /**
* Test to check if the component renders correctly
*/
/* global it expect */
import 'react-native';
import React from 'react';
import renderer from 'react-test-renderer';
import TabIcon from '@ui/TabIcon';
it('TabIcon renders correctly', () => {
const tree = renderer.create(
<TabIcon icon={'help'} selecte... |
src/svg-icons/av/play-circle-outline.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlayCircleOutline = (props) => (
<SvgIcon {...props}>
<path d="M10 16.5l6-4.5-6-4.5v9zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 ... |
examples/ariatemplates/js/lib/aria/ariatemplates-1.3.5.js | Anasskebabi/todomvc | /*
* Aria Templates 1.3.5 - 22 Feb 2013
*
* Copyright 2009-2013 Amadeus s.a.s.
* Licensed 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/licenses/LICENSE-2.0
*
* Un... |
files/yasqe/2.3.1/yasqe.bundled.min.js | Heark/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;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASQE=e()}}(function(){var e;return function t(e,i,r)... |
docs/src/shared/components/ReactMD/tabs/index.js | lwhitlock/grow-tracker | import React from 'react';
import SimpleTabs from './SimpleTabs';
import SimpleTabsRaw from '!!raw!./SimpleTabs';
import MusicTabExample from './MusicTabExample';
import MusicTabExampleRaw from './MusicTabExample/code';
import IconTabs from './IconTabs';
import IconTabsRaw from '!!raw!./IconTabs';
export default [{... |
src/components/Header/Header.js | jackygrahamez/react-starter-kit | /**
* 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 withStyles from 'isom... |
src/js/card/index.js | HBM/md-components | /**
* Card component
*/
import React from 'react'
import classNames from 'classnames'
const container = (name) => ({children, className}) => (
<div className={classNames(name, className)}>
{children}
</div>
)
export const Card = container('mdc-Card')
export const Actions = container('mdc-Card-actions')
exp... |
src/index.js | kishoreyarram/my-portfolio | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, hashHistory } from 'react-router';
import registerServiceWorker from './registerServiceWorker';
import './index.css';
import App from './App';
import Contact from './Contact';
import About from './About';
import Experience from './Ex... |
ajax/libs/p5.js/0.4.13/addons/p5.sound.js | sashberd/cdnjs | /*! p5.sound.js v0.2.14 2015-09-13 */
(function (root, factory) {
if (typeof define === 'function' && define.amd)
define('p5.sound', ['p5'], function (p5) { (factory(p5));});
else if (typeof exports === 'object')
factory(require('../p5'));
else
factory(root['p5']);
}(this, function (p5) {
/**
* p5... |
app/javascript/mastodon/features/bookmarked_statuses/index.js | dunn/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { fetchBookmarkedStatuses, expandBookmarkedStatuses } from '../../actions/bookmarks';
import Column from '../ui/components/column';
import ColumnHeader... |
src/plugin-hooks/useRowState.js | react-tools/react-table | import React from 'react'
import {
actions,
functionalUpdate,
useMountedLayoutEffect,
useGetLatest,
} from '../publicUtils'
const defaultInitialRowStateAccessor = row => ({})
const defaultInitialCellStateAccessor = cell => ({})
// Actions
actions.setRowState = 'setRowState'
actions.setCellState = 'setCellSta... |
src/svg-icons/editor/vertical-align-bottom.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorVerticalAlignBottom = (props) => (
<SvgIcon {...props}>
<path d="M16 13h-3V3h-2v10H8l4 4 4-4zM4 19v2h16v-2H4z"/>
</SvgIcon>
);
EditorVerticalAlignBottom = pure(EditorVerticalAlignBottom);
EditorVertical... |
actor-sdk/sdk-web/src/components/call/CallAvatar.react.js | y0ke/actor-platform | /*
* Copyright (C) 2015-2016 Actor LLC. <https://actor.im>
*/
import React, { Component, PropTypes } from 'react';
import classNames from 'classnames';
import { CallStates } from '../../constants/ActorAppConstants';
import AvatarItem from '../common/AvatarItem.react';
class CallAvatar extends Component {
static p... |
src/index.js | rvndbalaji/rvndbalaji.github.io | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
// If you want to start measuring performance in yo... |
web/src/js/components/Authentication/VerifyEmailMessage.js | gladly-team/tab | import React from 'react'
import PropTypes from 'prop-types'
import Paper from '@material-ui/core/Paper'
import Typography from '@material-ui/core/Typography'
import Button from '@material-ui/core/Button'
import { logout, sendVerificationEmail } from 'js/authentication/user'
import {
goTo,
constructUrl,
enterUser... |
src/svg-icons/communication/stay-current-portrait.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationStayCurrentPortrait = (props) => (
<SvgIcon {...props}>
<path d="M17 1.01L7 1c-1.1 0-1.99.9-1.99 2v18c0 1.1.89 2 1.99 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/>
</SvgIcon>
);... |
ajax/libs/cleave.js/1.3.2/cleave-react.js | joeyparrish/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["Cleave"] = factory(... |
app/javascript/mastodon/features/reblogs/index.js | codl/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { fetchReblogs } from '../../actions/interactions';
import { ScrollContainer } from ... |
src/components/Header/Header.js | sbiliaiev/transport-kharkiv | import React from 'react';
import './Header.css';
export default function Header() {
return(
<div className="header-logo">
<h1>Transport_KH</h1>
<h3>Administration Panel</h3>
</div>
);
} |
src/svg-icons/image/crop-portrait.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCropPortrait = (props) => (
<SvgIcon {...props}>
<path d="M17 3H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H7V5h10v14z"/>
</SvgIcon>
);
ImageCropPortrait = pure(ImageCropP... |
__tests__/component/footer.spec.js | andela-dbamidele/checkpoint1 | import React from 'react';
import { shallow } from 'enzyme';
import Footer from '../../src/app/components/Footer';
describe('Test for Footer component', () => {
it('renders without crashing', () => {
const wrapper = shallow(<Footer />);
expect(wrapper.find('.footer').exists()).toBeTruthy();
});
});
|
app/jsx/collaborations/NewCollaborationsDropDown.js | djbender/canvas-lms | /*
* Copyright (C) 2016 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
www/docs/en/quick-start-guide_ubuntu-1404_mitaka/5.2-rev1/content/search/nwSearchFnt.js | midonet/midonet-docs | /*----------------------------------------------------------------------------
* JavaScript for webhelp search
*----------------------------------------------------------------------------
This file is part of the webhelpsearch plugin for DocBook WebHelp
Copyright (c) 2007-2008 NexWave Solutions All Rights Rese... |
src/components/Logo.js | wbreakell/changeover | // @flow
import React from 'react';
import styled from 'styled-components';
import { media } from '../styles/media';
const Logo = styled.a`
color: #fff;
font-size: 1.5rem;
font-weight: 700;
text-decoration: none;
${media.md`
font-size: 2.25rem;
`};
`;
export default Logo;
|
app/javascript/mastodon/components/column_back_button_slim.js | kazh98/social.arnip.org | import React from 'react';
import { FormattedMessage } from 'react-intl';
import ColumnBackButton from './column_back_button';
import Icon from 'mastodon/components/icon';
export default class ColumnBackButtonSlim extends ColumnBackButton {
render () {
return (
<div className='column-back-button--slim'>
... |
ajax/libs/intl-tel-input/5.1.4/js/intlTelInput.js | LeaYeh/cdnjs | /*
International Telephone Input v5.1.4
https://github.com/Bluefieldscom/intl-tel-input.git
*/
// wrap in UMD - see https://github.com/umdjs/umd/blob/master/jqueryPlugin.js
(function(factory) {
if (typeof define === "function" && define.amd) {
define([ "jquery" ], function($) {
factory($, window... |
chapter-12/isomorphic/src/pages/NotFound.js | mocheng/react-and-redux | import React from 'react';
const NotFound = () => {
return (
<div>404: Not Found</div>
);
};
export default NotFound;
|
ajax/libs/backbone.js/1.1.0/backbone.js | nagyist/OpenF2-cdnjs | // Backbone.js 1.1.0
// (c) 2010-2011 Jeremy Ashkenas, DocumentCloud Inc.
// (c) 2011-2013 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(... |
src/manager/index.js | truffls/storybook-addon-intl | import React from 'react';
import addons from '@storybook/addons';
import LocalePanel from './containers/LocalePanel';
import { ADDON_ID, PANEL_ID } from '../shared';
export function register () {
addons.register(ADDON_ID, () => {
addons.addPanel(PANEL_ID, {
title: 'Locales',
render... |
src/client/index.js | Grace951/ReactAU | import React from 'react';
import { render as ReactDOMRender} from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import { fetchSsrComps, ClientApp} from './App';
import createHistory from 'history/createBrowserHistory';
import configureStore from '../shared/store/configureStore';
const initialState = w... |
pkg/docker/image.js | xhad/cockpit | /*
* This file is part of Cockpit.
*
* Copyright (C) 2015 Red Hat, Inc.
*
* Cockpit is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any l... |
information/blendle-frontend-react-source/app/components/GeneralError.js | BramscoChill/BlendleParser | import React from 'react';
import PropTypes from 'prop-types';
import { translate, translateElement } from 'instances/i18n';
import zendesk from 'instances/zendesk';
class GeneralError extends React.Component {
static propTypes = {
title: PropTypes.string,
message: PropTypes.string,
};
_onContactClick =... |
dispatch/static/manager/src/js/components/ItemEditor/index.js | ubyssey/dispatch | import React from 'react'
import R from 'ramda'
import DocumentTitle from 'react-document-title'
import { withRouter } from 'react-router'
import { confirmNavigation } from '../../util/helpers'
import ListItemToolbar from './ListItemToolbar'
const NEW_LISTITEM_ID = 'new'
class ItemEditor extends React.Component {
... |
src/svg-icons/editor/merge-type.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorMergeType = (props) => (
<SvgIcon {...props}>
<path d="M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"/>
</SvgIcon>
);
EditorMergeType = pure(Editor... |
node_modules/react-bootstrap/es/MenuItem.js | C0deSamurai/muzjiks | 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/icons/IosBodyOutline.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosBodyOutline extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M256,47.959c17.645,0,32,14.351,32,31.991c0,17.64-14.355,31.99-32,31.99s-32-14.351-32-31.99
C224,62.31,238.3... |
src/components/OutfitPage.js | CodeDraken/ES-Library | import React from 'react';
import PrevButton from './PrevButton';
const OutfitPage = ({outfit, match}) => {
return (
<section>
{match && match.url ? <PrevButton url={match.url} /> : ''}
<table>
<tbody>
{outfit ? Object.keys(outfit).map((key) => {
return (
<tr k... |
src/routes/Home/components/HomeView.js | treeforever/voice-recognition-photo-gallary | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { turnOnMic, turnOffMic } from '../../../actions/micActions'
import { hello, showAPhoto, showPhotos, flickrPublicPhotos, handleSearch } from '../../../actions/photoActions'
import Grid from './Grid'
import ... |
src/components/decoline_item.js | lizarraldeignacio/personal-website | import React, { Component } from 'react';
/**
DecolineItem atomic element of DecoLine list
Params:
title: The title of the element
description: The description of the element
remove: A function to handle the removal of this item from the list
auth: A flag that indicates if the user is authenticate... |
docs/js/jquery-1.12.3.min.js | ismayc/moderndive-workshops | /*! jQuery v1.12.3 | (c) jQuery Foundation | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,fu... |
src/shared/views/topMenu/TopMenuHeader/TopMenuHeader.js | in-depth/indepth-core | import React from 'react'
import styles from './topMenuHeader.css'
const TopMenuHeader = (props) => {
return (
<div className={styles.header}>
<h1>{props.title}</h1>
</div>
)
}
TopMenuHeader.propTypes = {
title: React.PropTypes.string.isRequired,
}
export default TopMenuHeader
|
src/routes/index.js | crazypulka/frontend | import React from 'react'
import { Route } from 'react-router';
import App from '../app';
const Router = () => (
<Route path="/" component={App} />
);
export default Router;
|
src/components/Share/Share.js | Gouterman/O-Run-desktop | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import styles from './Share.less'; // eslint-disable-line no-unused-vars
import withStyles from '../../decorators/withStyles'; // eslint-disable-line no-unused-vars
/... |
packages/mineral-ui-icons/src/IconBlurOff.js | mineral-ui/mineral-ui | /* @flow */
import React from 'react';
import Icon from 'mineral-ui/Icon';
import type { IconProps } from 'mineral-ui/Icon/types';
/* eslint-disable prettier/prettier */
export default function IconBlurOff(props: IconProps) {
const iconProps = {
rtl: false,
...props
};
return (
<Icon {...iconProps}... |
src/interface/report/Results/Character/PlayerInfo/PlayerGearHeader.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import { makeCharacterUrl } from 'interface/common/makeAnalyzerUrl';
const PlayerGearHeader = ({ player, averageIlvl }) => (
<div className="player-gear-header">
<div className={`${player.spec.className.repla... |
actor-apps/app-web/src/app/components/modals/InviteUser.react.js | cnbin/actor-platform | import _ from 'lodash';
import React from 'react';
import Modal from 'react-modal';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import { Styles, FlatButton } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import ActorClient from 'utils/ActorClien... |
views/blocks/Comment/CommentContainer.js | FairTex/team5 | import React from 'react';
import sender from './../Sender/Sender';
import CommentsPoster from './../comments/CommentsPoster.js';
import Comment from './Comment';
const CommentWithSending = sender(Comment);
export default class CommentContainer extends React.Component {
constructor(props) {
super(props);
... |
src/svg-icons/editor/attach-money.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorAttachMoney = (props) => (
<SvgIcon {...props}>
<path d="M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.... |
Agenda/src/components/cadastro.js | interlegis/agenda-evento | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { reduxForm } from 'redux-form';
import Recaptcha from 'react-google-recaptcha';
import _ from 'lodash';
import { cadastroUsuario, ErrorMessage, getRecaptchaResponse } from '../actions';
import { FIELD_USUARIO_CADASTRO } from './forms/... |
app/containers/FeaturePage/index.js | haithemT/app-test | /*
* FeaturePage
*
* List all the features
*/
import React from 'react';
import Helmet from 'react-helmet';
import { FormattedMessage } from 'react-intl';
import H1 from 'components/H1';
import messages from './messages';
import List from './List';
import ListItem from './ListItem';
import ListItemTitle from './Li... |
src/index.js | UsulPro/testsb | import React from 'react';
const buttonStyles = {
border: '1px solid #eee',
borderRadius: 3,
backgroundColor: '#FFFFFF',
cursor: 'pointer',
fontSize: 15,
padding: '3px 10px',
};
const Button = ({ children, onClick, style = {} }) => (
<button
style={{ ...buttonStyles, ...style }}
onClick={onClick... |
src/client/appStarting.js | giulianf/Start-Redux | import React from 'react';
import { render } from 'react-dom';
// Import css
import css from './styles/style.scss';
// Import js
import './js/scrolling-nav-sticky.js';
// Import Components
import App from './components/App';
import HomeContent from './components/home/HomeContent';
import SinistrSimulation from './co... |
src/components/GradientBuilder/Palette.js | iurii-kyrylenko/react-gradient | import React from 'react'
import PropTypes from 'prop-types'
const Palette = ({ palette, width, height }) => {
const compare = ({ pos: pos1 }, { pos: pos2 }) => pos1 - pos2
const sortedPalette = [...palette].sort(compare)
const gradientId = '_' + Math.random().toString(36).substr(2, 9)
const gradientUrl = `url... |
fields/components/DateInput.js | stunjiturner/keystone | import moment from 'moment';
import DayPicker from 'react-day-picker';
import React from 'react';
import Popout from '../../admin/client/components/Popout';
import { FormInput } from 'elemental';
function isSameDay(d1, d2) {
if (!_.isDate(d1)) {
d1 = new Date();
}
if (!_.isDate(d2)) {
d2 = new Date();
}
d1.se... |
packages/mui-icons-material/lib/esm/KeyboardDoubleArrowDown.js | oliviertassinari/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M18 6.41 16.59 5 12 9.58 7.41 5 6 6.41l6 6z"
}, "0"), /*#__PURE__*/_jsx("path", {
d: "m18 13-1.41-1.41L12 16.17l-4.59-4.58L6 13l6 6z"
}, "1")], 'KeyboardD... |
node_modules/react/lib/React.js | xuan6/admin_dashboard_local_dev | /**
* Copyright 2013-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.
*
*/
'use strict... |
src/svg-icons/file/cloud-queue.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloudQueue = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.9... |
my-app/src/components/scaffold/MenuItem.js | sThig/jabbascrypt | import React from 'react';
import styled from 'styled-components';
import MediaQuery from '../helper/mediaQuery';
import {
NavLink
} from 'react-router-dom';
const MenuList = styled.li`
a {
display: block;
color: rgba(255,255,255,0.3);
padding: 14px 16px;
text-decoration: none;
${MediaQuery.pho... |
ext/lib/site/home-presupuesto/banner-presupuesto/en-proceso.js | RosarioCiudad/democracyos | import React from 'react'
import { withRouter } from 'react-router'
function cancelarVotacion (goTo) {
return () => {
sessionStorage.removeItem('pp-proyectos')
sessionStorage.removeItem('pp-etapa')
goTo('/presupuesto')
}
}
export default withRouter((props) => (
<div className='container-banner-votac... |
src/client/pages/app/canvas/sensor/resourceWrapper/StringResource.js | doemski/cblocks | import React from 'react';
import PropTypes from 'prop-types';
import * as action from '../../../../../action/';
import { connect } from 'react-redux';
import Typography from '@material-ui/core/Typography';
import svgIcons from '../../../../../images/svgIcons';
import MappingDrawer from './MappingDrawer';
import Expand... |
pkg/ui/src/containers/NotFoundPage.js | matt-deboer/kuill | import React from 'react';
const NotFoundPage = () => {
return (
<div>
<div>
404 Page Not Found
</div>
</div>
);
};
export default NotFoundPage;
|
js/src/ui/Page/page.spec.js | nipunn1313/parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any lat... |
test/regressions/tests/Divider/SimpleDivider.js | AndriusBil/material-ui | // @flow
import React from 'react';
import Divider from 'material-ui/Divider';
export default function SimpleDivider() {
return (
<div style={{ padding: 2, width: 100 }}>
<Divider />
</div>
);
}
|
app/components/AuthPanel.js | jastkand/vk-notifications | import React from 'react'
import Button from './Button'
import { removeToken } from '../storages/SessionStorage'
export default (props) => {
const handleLogInClick = () => {
chrome.runtime.sendMessage({ action: 'vk_notification_auth' }, (response) => {
if (response.content == 'OK') {
if (props.afte... |
js/navigators/Schedule.js | weihanglo/pycontw-mobile | import React from 'react'
import {StackNavigator} from 'react-navigation'
import Icon from 'react-native-vector-icons/MaterialIcons'
import * as Colors from '../common/PyColors'
import {SmallText} from '../common/PyText'
import ScheduleList from '../containers/ScheduleList'
import EventView from '../containers/EventVi... |
node_modules/enzyme/src/ShallowWrapper.js | cloud9ide/react-enquiry | import React from 'react';
import flatten from 'lodash/flatten';
import unique from 'lodash/uniq';
import compact from 'lodash/compact';
import cheerio from 'cheerio';
import ComplexSelector from './ComplexSelector';
import {
nodeEqual,
nodeMatches,
containsChildrenSubArray,
propFromEvent,
withSetStateAllowe... |
app/javascript/testSetup.js | brave/publishers | /* 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/. */
const Enzyme = require('enzyme')
const EnzymeAdapter = require('enzyme-adapter-react-16')
require('jest-styled-... |
lib/Async.js | alanrubin/react-select | 'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _interopRequireDefault(obj) { return ... |
src/Popover/Popover.spec.js | matthewoates/material-ui | /* eslint-env mocha */
import React from 'react';
import {assert} from 'chai';
import {shallow} from 'enzyme';
import Popover from './Popover';
import getMuiTheme from '../styles/getMuiTheme';
describe('<Popover />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (node) => shallow(node, {conte... |
src/components/Confirm.js | hannupekka/splitthebill | // @flow
import styles from 'styles/components/Confirm';
import React from 'react';
import { pure } from 'recompose';
import type { Component } from 'recompose';
import CSSModules from 'react-css-modules';
type Props = {
isVisible: bool,
onConfirm: Function,
onCancel: Function
}
const Confirm: Component<Props> ... |
src/svg-icons/notification/sd-card.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSdCard = (props) => (
<SvgIcon {...props}>
<path d="M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 6h-2V4h2v4zm3 0h-2V4h2v4zm3 0h-2V4h2v4z"/>
</SvgIcon>
);
NotificationS... |
ajax/libs/quickblox/1.0.2/quickblox.min.js | yukinying/cdnjs | !function e(t,n,r){function o(s,a){if(!n[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(i)return i(s,!0);throw new Error("Cannot find module '"+s+"'")}var l=n[s]={exports:{}};t[s][0].call(l.exports,function(e){var n=t[s][1][e];return o(n?n:e)},l,l.exports,e,t,n,r)}return n[s].exports... |
ajax/libs/intl-tel-input/11.0.1/js/intlTelInput.js | wout/cdnjs | /*
* International Telephone Input v11.0.1
* https://github.com/jackocnr/intl-tel-input.git
* Licensed under the MIT license
*/
// wrap in UMD - see https://github.com/umdjs/umd/blob/master/jqueryPluginCommonjs.js
(function(factory) {
if (typeof define === "function" && define.amd) {
define([ "jquery" ]... |
src/layout.js | aaronmccall/labelr-workable | import app from 'ampersand-app'
import React from 'react'
import localLinks from 'local-links'
import ampersandMixin from 'ampersand-react-mixin'
export default React.createClass({
displayName: 'Layout',
mixins: [ampersandMixin],
onClick (event) {
const pathname = localLinks.getLocalPathname(event)
if... |
BaseComponent.js | M-Izadmehr/react-native-multiple-picker | 'use strict';
import React from 'react';
export default class BaseComponent extends React.Component {
_bind(...methods) {
methods.forEach( (method) => this[method] = this[method].bind(this) );
}
}
|
ajax/libs/omniscient/3.1.0/omniscient.min.js | wout/cdnjs | /**
* Omniscient.js v3.1.0
* Authors: @torgeir,@mikaelbr
***************************************/
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n... |
index.js | petterh/react-native-android-activity | /**
* Sample React Native App
* https://github.com/facebook/react-native
*/
import React, { Component } from 'react';
import {
AppRegistry,
Button,
NativeEventEmitter,
NativeModules,
Platform,
StyleSheet,
Text,
TextInput,
View
} from 'react-native';
import BatchedBridge from "react-native/Librar... |
docs/src/IntroductionPage.js | erictherobot/react-bootstrap | import React from 'react';
import CodeExample from './CodeExample';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
const IntroductionPage = React.createClass({
render() {
return (
<div>
<NavMain activePage="introduction" />
<... |
vitrail_tests/test_vitrail.js | CANTUS-Project/vitrail | // -*- coding: utf-8 -*-
// ------------------------------------------------------------------------------------------------
// Program Name: vitrail
// Program Description: HTML/CSS/JavaScript user agent for the Cantus API.
//
// Filename: vitrail_tests/test_onebox.js
// Purpose: ... |
src/Tooltip.js | azmenak/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import CustomPropTypes from './utils/CustomPropTypes';
const Tooltip = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
/**
* An html id attribute, necessary for accessibility
* @... |
ajax/libs/react/18.0.0-rc.0-next-790b5246f-20220118/cjs/react-jsx-runtime.development.min.js | cdnjs/cdnjs | "use strict";"production"!==process.env.NODE_ENV&&function(){var e=require("react"),p=require("object-assign"),y=60103,a=60106;exports.Fragment=60107;var r,d=60108,m=60114,g=60109,v=60110,b=60112,h=60113,_=60120,k=60115,w=60116,j=60129,O=60130,R=60131,i=60132;"function"==typeof Symbol&&Symbol.for&&(y=(r=Symbol.for)("re... |
app/js/components/__tests__/char-display-test.js | mattiaslundberg/typer | import React from 'react'
import CharDisplay from '../char-display'
import renderer from 'react-test-renderer'
describe('CharDisplayTest', () => {
it('Renders with correct class', () => {
const component = renderer.create(
<CharDisplay cssClass="myclass" char="B" />
)
expect(component.toJSON()).to... |
src/card/card.spec.js | Trampss/kriya | /* eslint-disable import/no-extraneous-dependencies, react/jsx-filename-extension */
/* eslint-env jest */
import React from 'react'
import { mount } from 'enzyme'
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import snap from 'snap'
import { open } from './redux'
import Card from './card'... |
ajax/libs/radium/0.11.1/radium.js | pombredanne/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["Radium"] = factory(... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.