path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/svg-icons/hardware/mouse.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareMouse = (props) => (
<SvgIcon {...props}>
<path d="M13 1.07V9h7c0-4.08-3.05-7.44-7-7.93zM4 15c0 4.42 3.58 8 8 8s8-3.58 8-8v-4H4v4zm7-13.93C7.05 1.56 4 4.92 4 9h7V1.07z"/>
</SvgIcon>
);
HardwareMouse =... |
node_modules/react-bootstrap/src/NavItem.js | gitoneman/react-soc | import React from 'react';
import classSet from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const NavItem = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
onSelect: React.PropTypes.func,
active: React.PropTypes.bool,
disabled: React.PropTypes.bool,
href: React.PropType... |
src/icons/VisualDesignIcon.js | fathomlondon/fathomlondon.github.io | import React from 'react';
export function VisualDesignIcon() {
return (
<svg viewBox="0 0 418 530">
<path
fill="#020203"
fillRule="evenodd"
d="M373.75 1h3V0h-3v1zm5 0h3V0h-3v1zm5 0h3V0h-3v1zm5 0h3V0h-3v1zm5 0h3V0h-3v1zm5 0h3V0h-3v1zm5 0h3V0h-3v1zm5 0h3V0h-3v1zm-37.287 1.713h-1V0h1.287v1h-.287v1.713z... |
src/Table/index.js | Paratron/modoJS | import React from 'react';
import PropTypes from 'prop-types';
const propTypes = {
className: PropTypes.string,
children: PropTypes.object,
showHeader: PropTypes.bool,
onRowClick: PropTypes.func,
onSort: PropTypes.func,
data: PropTypes.oneOfType([PropTypes.array, PropTypes.instanceOf(Map)]),
defaultCellComponen... |
ajax/libs/mediaelement/2.1.7/jquery.js | jamzgoodguy/cdnjs | /*!
* jQuery JavaScript Library v1.6.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
app/javascript/mastodon/features/compose/components/autosuggest_account.js | MastodonCloud/mastodon | import React from 'react';
import Avatar from '../../../components/avatar';
import DisplayName from '../../../components/display_name';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
export default class AutosuggestAccount extends Immuta... |
src/components/section-list.component.js | gitpoint/git-point | import React from 'react';
import { ActivityIndicator } from 'react-native';
import { List, ListItem, Button } from 'react-native-elements';
import styled from 'styled-components';
import { colors, fonts } from 'config';
type Props = {
loading: boolean,
title: React.Element,
children?: React.Element<*>,
showB... |
src/application.js | aha-app/bigquery-log-viewer | import React from 'react';
import Clipboard from '@aha-app/clipboard';
import TabManager from './components/tab_manager';
import PropTypes from 'prop-types';
import styles from './stylesheets/application.less';
export default class BigQueryLogViewer extends React.Component {
static propTypes = {
projectId: Prop... |
packages/ringcentral-widgets-docs/src/app/pages/Components/RegionSettingsAlert/Demo.js | u9520107/ringcentral-js-widget | import React from 'react';
// eslint-disable-next-line
import RegionSettingsAlert from 'ringcentral-widgets/components/RegionSettingsAlert';
const props = {};
props.message = {
message: 'test string'
};
props.regionSettingsUrl = 'test string';
props.currentLocale = 'en-US';
/**
* A example of `RegionSettingsAlert`... |
src/redux/common/toJS.js | shotaK/redux-starter-kit | import React from 'react'
import { Iterable } from 'immutable'
// A Higher Order Component to convert our Smart Component’s Immutable.JS props to out Dumb Component’s JavaScript props
// taken: http://redux.js.org/docs/recipes/UsingImmutableJS.html#use-a-higher-order-component-to-convert-your-smart-components-immutabl... |
ajax/libs/react-intl/1.2.2/react-intl-with-locales.min.js | stefanneculai/cdnjs | (function(){"use strict";function a(a){var b,c,d,e,f=Array.prototype.slice.call(arguments,1);for(b=0,c=f.length;c>b;b+=1)if(d=f[b])for(e in d)o.call(d,e)&&(a[e]=d[e]);return a}function b(a,b,c){this.locales=a,this.formats=b,this.pluralFn=c}function c(a){this.id=a}function d(a,b,c,d,e){this.id=a,this.useOrdinal=b,this.o... |
src/svg-icons/action/thumb-up.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionThumbUp = (props) => (
<SvgIcon {...props}>
<path d="M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-... |
ajax/libs/boardgame-io/0.49.2/esm/react-native.js | cdnjs/cdnjs | import 'nanoid/non-secure';
import { _ as _inherits, a as _createSuper, b as _createClass, c as _defineProperty, d as _classCallCheck, e as _objectWithoutProperties, f as _objectSpread2 } from './Debug-2fab6ce8.js';
import 'redux';
import './turn-order-406c4349.js';
import 'immer';
import 'lodash.isplainobject';
import... |
client/components/Feature/FeatureComponent.js | reactexcel/todo-relay-graphql-mongo | /* eslint-disable global-require */
import React from 'react';
import PropTypes from 'prop-types';
import { Grid, Cell, Card, CardTitle, CardText, CardActions, Button } from 'react-mdl';
import Page from '../Page/PageComponent';
import styles from './Feature.scss';
import AddFeature from './AddFeatureComponent';
expor... |
packages/material-ui-icons/src/ExposureNeg2TwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M17.98 10.1c-.14.25-.32.53-.56.83-.23.3-.52.65-.88 1.03l-4.17 4.55V18H21v-1.71h-5.95l2.86-3.07c.38-.39.72-.79 1.04-1.18s.59-.78.82-1.17c.23-.39.41-.78.54-1.17.13-.39.19-.79.19-1.18 0-.53-.09-1.02-.27-... |
ajax/libs/forerunnerdb/1.3.764/fdb-core+persist.min.js | CyrusSUEN/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
test/integration/react-18/app/components/hello.js | azukaru/next.js | import React from 'react'
import ReactDOM from 'react-dom'
import { useCachedPromise } from './promise-cache'
export default function Hello({ name, thrown = false }) {
useCachedPromise(
name,
() => new Promise((resolve) => setTimeout(resolve, 200)),
thrown
)
const [hydrated, setHydrated] = React.use... |
src/parser/warlock/demonology/modules/talents/Doom.js | fyruna/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Enemies from 'parser/shared/modules/Enemies';
import Events from 'parser/core/Events';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { formatPercentage, formatThousands } from 'co... |
packages/material-ui-icons/src/Category.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 2l-5.5 9h11z" /><circle cx="17.5" cy="17.5" r="4.5" /><path d="M3 13.5h8v8H3z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment>
, 'Category');
|
src/ui/components/Home.js | notifapi/notifapi-web |
import React from 'react';
import { Component } from 'react';
export default class Home extends Component {
render() {
return(
<h1>
{this.props.children}
</h1>
)
}
} |
packages/material-ui-icons/src/Battery50Rounded.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V3c0-.55-.45-1-1-1h-2c-.55 0-1 .45-1 1v1H8.33C7.6 4 7 4.6 7 5.33V13h10V5.33z" /><path d="M7 13v7.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1... |
assets/js/jquery.js | topfan123/sipml5 | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function( window, undefined ) {
// Use the correct document accordingly with window argument (sandbox)
var document = window.document,
navigator = window.navigator,
location = window.location;
var jQuery = (function() {
// Define a local copy of jQuery
var jQuer... |
ajax/libs/rxjs/2.3.17/rx.all.compat.js | tmorin/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... |
docs/src/app/pages/components/PanelGroup/ExamplePanelGroupMultiStep.js | GetAmbassador/react-ions | import React from 'react'
import {PanelGroup, Panel, PanelHeader, PanelContent} from 'react-ions/lib/components/PanelGroup'
import Badge from 'react-ions/lib/components/Badge'
import style from './style.scss'
const content = {
lorum1: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla vehicula finibus p... |
ajax/libs/yui/3.11.0pr1/scrollview-base/scrollview-base.js | him2him2/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
// Local vars
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
IE = Y.UA.ie... |
docs/app/Examples/elements/Segment/Variations/SegmentExampleEmphasisInverted.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Segment } from 'semantic-ui-react'
const SegmentExampleEmphasisInverted = () => (
<div>
<Segment inverted>
I'm here to tell you something, and you will probably read me first.
</Segment>
<Segment inverted secondary>
I am pretty noticeable but you might check... |
src/index.js | zdying/react-native-actionsheet-api | /**
* @file ActionSheet API
* @author zdying
* @providesModule ActionSheet
*/
import React, { Component } from 'react';
import { Modal, Text, View, Animated, TouchableWithoutFeedback, TouchableOpacity, Platform, ActionSheetIOS } from 'react-native';
import styles from './styles';
const isIOS = Platform.OS === 'ios... |
src/snack-overflow/emcit/client/mobile/src/entry.js | civiclee/Hack4Cause2017 | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux';
import { Router, Route, browserHistory } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import Immutable from 'seamless-immutable'
import './main.css';
import configureRoutes from './ro... |
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js | mosaxiv/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components';
import Overlay from 'react-overlays/lib/Overlay';
import classNames from 'classnames';
import ImmutablePropTypes from ... |
test/containers/CounterPage.spec.js | kevyu/ctp_demo | import React from 'react';
import { mount } from 'enzyme';
import { Provider } from 'react-redux';
import { createBrowserHistory } from 'history';
import { ConnectedRouter } from 'react-router-redux';
import CounterPage from '../../app/containers/CounterPage';
import { configureStore } from '../../app/store/configureSt... |
src/components/todos/Main.js | MaxMooc/react-gallery | require('normalize.css/normalize.css');
require('styles/App.css');
import React from 'react';
import Header from 'todos/todos-header.js';
import List from 'todos/todos-list.js';
import Footer from 'todos/todos-footer.js';
class Todos extends React.Component{
constructor(props){
super(props);
this.s... |
src/app/internal/pcard_compliance/PCardCompliance.js | cityofasheville/simplicity2 | import React from 'react';
import gql from 'graphql-tag';
import { graphql, compose, Query, withApollo } from 'react-apollo';
import moment from 'moment';
import { refreshLocation } from '../../../utilities/generalUtilities';
import PageHeader from '../../../shared/PageHeader';
import ButtonGroup from '../../../shared/... |
src/元素/搜揣結果/index.spec.js | sih4sing5hong5/su5lui3-hun1kip4 | import React from 'react'
import { shallow } from 'enzyme'
import 搜揣結果, { calItemSize } from './'
import AutoSizer from 'react-virtualized-auto-sizer'
it('算一逝的懸低', ()=>{
const tailoNum = 60
const baseHeight = 80
expect(calItemSize(tailoNum, baseHeight)).toEqual(baseHeight)
})
it('算兩逝的懸低', ()=>{
const tailoNum = ... |
ajax/libs/angular-google-maps/2.1.0-X.7/angular-google-maps_dev_mapped.js | wil93/cdnjs | /*! angular-google-maps 2.1.0-X.7 2015-03-27
* AngularJS directives for Google Maps
* git: https://github.com/angular-ui/angular-google-maps.git
*/
;
(function( window, angular, undefined ){
'use strict';
/*
!
The MIT License
Copyright (c) 2010-2013 Google, Inc. http://angularjs.org
Permission is hereby grante... |
ajax/libs/rxjs/2.3.4/rx.js | stefanneculai/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... |
src/view/components/export-component.js | ldkrsi/TaiwanDH-React | import React from 'react';
function ExportComponent(props){
return(<p><a
download={props.name}
href={URL.createObjectURL(props.blobObject)}
>{props.text}</a></p>);
}
export default ExportComponent; |
website/src/html.js | netlify/netlify-cms | import React from 'react';
import ChatButton from './components/chat-button';
class HTML extends React.Component {
render() {
return (
<html {...this.props.htmlAttributes}>
<head>
<meta charSet="utf-8" />
<meta httpEquiv="x-ua-compatible" content="ie=edge" />
<meta na... |
docs/src/modules/components/PageTitle.js | allanalexandre/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { pageToTitleI18n } from 'docs/src/modules/utils/helpers';
import PageContext from 'docs/src/modules/components/PageContext';
// TODO: it really wants to be named useTitle but we're not quite there yet.
function PageTitle(props) {
const { activePa... |
src/components/PageNotFound.js | somsekhardash/somsekhardash.github.io | import React from 'react';
import PropTypes from 'prop-types';
import { Code } from '../styles/style';
import s from '../styles/pageNotFound.style';
const propTypes = {
location: PropTypes.object.isRequired,
};
export default function PageNotFound({ location }) {
return (
<p style={s.p}>
Page not found ... |
src/renderers/dom/client/__tests__/ReactBrowserEventEmitter-test.js | JasonZook/react | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react-co... |
node_modules/react-router/umd/ReactRouter.min.js | HK8383/react_project_imooc | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReactRouter=t(require("react")):e.ReactRouter=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].e... |
ajax/libs/react-select/1.0.0-rc.8/react-select.es.js | jonobr1/cdnjs | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import AutosizeInput from 'react-input-autosize';
import classNames from 'classnames';
function arrowRenderer(_ref) {
var onMouseDown = _ref.onMouseDown;
return React.createElement('span', {
className: ... |
src/views/About.js | JoJoChilly/joexp-react | import React, { Component } from 'react';
export default class About extends Component {
render() {
return (
<div>
<div style={{ paddingTop: '30px' }}>
<h2>Yes, finally I made it.</h2>
<p>做一个网站并不那么简单,尤其是对于拖延症晚期患者来说。</p>
... |
src/GridList/GridTile.js | rscnt/material-ui | import React from 'react';
function getStyles(props, context) {
const {
baseTheme,
gridTile,
} = context.muiTheme;
const actionPos = props.actionIcon && props.actionPosition;
const styles = {
root: {
position: 'relative',
display: 'block',
height: '100%',
overflow: 'hidden... |
examples/real-world/index.js | chrisclarke1977/redux | import 'babel-core/polyfill';
import React from 'react';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import { Provider } from 'react-redux';
import { Router, Route } from 'react-router';
import configureStore from './store/configureStore';
import App from './containers/App';
import UserPage fro... |
app/components/Contacts/index.js | sirodoht/contacts-crud | import React from 'react';
import SingleContact from '../SingleContact';
import Notification from '../Notification';
import countriesList from '../../util/country-list-select';
import isEmailValid from '../../util/is-email-valid';
import './Contacts.css';
/**
* Contacts component.
*/
export default class Contacts ... |
es/containers/DragLayer.js | welovekpop/uwave-web-welovekpop.club | import _jsx from "@babel/runtime/helpers/builtin/jsx";
import _inheritsLoose from "@babel/runtime/helpers/builtin/inheritsLoose";
import React from 'react';
import PropTypes from 'prop-types';
import { DragLayer } from 'react-dnd';
import { MEDIA, WAITLIST_USER } from '../constants/DDItemTypes';
import MediaDragPreview... |
ajax/libs/oojs-ui/0.16.4/oojs-ui-windows.js | menuka94/cdnjs | /*!
* OOjs UI v0.16.4
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2016 OOjs UI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2016-03-22T22:48:21Z
*/
( function ( OO ) {
'use strict';
/**
* An ActionWidget is a {@link OO.ui.ButtonWidget ... |
ajax/libs/core-js/1.1.0/shim.js | emijrp/cdnjs | /**
* core-js 1.1.0
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(__e, __g, undefined){
'use strict';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require f... |
vendor/fontawesome-free/js/brands.min.js | chunshen1987/chunshen1987.github.io | /*!
* Font Awesome Free 5.3.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 c={};try{"undefined"!=typeof window&&(c=window)}catch(c){}var z=(c.navigator||{}).userAgent,l=void 0===z?"... |
src/components/Logo.js | vivaxy/react-scaffold | /**
* @since 2016-08-06 10:09
* @author vivaxy
*/
import React, { Component } from 'react';
import logoImage from '../images/vivaxy.20150726.jpg';
const style = {
width: '100px',
height: '100px',
};
export default class Logo extends Component {
render() {
return (
<div>
... |
src/components/MaintainTransactionalReport/AddTransReportSectionOrder.js | RegOpz/RegOpzWebApp | import React, { Component } from 'react';
import { Field, reduxForm } from 'redux-form';
import { connect } from 'react-redux';
import { bindActionCreators, dispatch } from 'redux';
import moment from 'moment';
import {
actionTransReportInsertRule,
actionTransReportUpdateRule } from '../../actions/TransactionReport... |
blueprints/route/files/src/routes/__name__/components/__name__.js | MityaDSCH/MityaDSCH.github.io | import React from 'react'
import classes from './<%= pascalEntityName %>.scss'
export const <%= pascalEntityName %> = () => (
<div className={classes['<%= pascalEntityName %>']}>
<h4><%= pascalEntityName %></h4>
</div>
)
export default <%= pascalEntityName %>
|
source/test/unit/components/teams/index.js | keystonejs/universal-keystone-boilerplate | import test from 'tape';
import React from 'react';
import dom from 'cheerio';
import reactDom from 'react-dom/server';
import createTeams from 'components/teams';
const render = reactDom.renderToStaticMarkup;
test('Teams component', nest => {
nest.test('should exist', assert => {
const msg = 'should exist';
... |
VirtualPasswordInput/styles.js | rnxteam/rnx-ui | import { StyleSheet } from 'react-native';
import {
HAIRLINE_WIDTH,
} from '../constant';
const BORDER_COLOR = '#ccc';
export default StyleSheet.create({
all: {
alignItems: 'center',
},
container: {
backgroundColor: '#fff',
borderWidth: HAIRLINE_WIDTH,
borderLeftWidth: 0,
borderColor: BORD... |
static/src/components/islands/IslandSmall.js | Hidrog/https-github.com-discordbottest | // @flow
import React from 'react';
import Constants from '../../Constants';
const islands = [
Constants.Image.ISLAND_SMALL_1,
Constants.Image.ISLAND_SMALL_2,
Constants.Image.ISLAND_SMALL_3,
Constants.Image.ISLAND_SMALL_4,
Constants.Image.ISLAND_SMALL_5,
Constants.Image.ISLAND_SMALL_6
];
type Props = {
... |
examples/ButtonAsLink.js | mattBlackDesign/react-materialize | import React from 'react';
import Button from '../src/Button';
import Icon from '../src/Icon';
export default
<div>
<Button waves='light' node='a' href='http://www.google.com'> Open Me In New Tab </Button>
</div>;
|
webpack/scenes/Hosts/ChangeContentSource/components/ContentSourceForm.js | snagoor/katello | import React from 'react';
import {
ActionGroup,
Button,
Form,
Grid,
GridItem,
} from '@patternfly/react-core';
import { translate as __ } from 'foremanReact/common/I18n';
import PropTypes from 'prop-types';
import FormField from './FormField';
const ContentSourceForm = ({
handleSubmit,
environments,
... |
src/index.js | hongloans9/ReadingBooks-react-redux | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware()(createStore);
ReactDOM.render(
<Provi... |
examples/huge-apps/routes/Calendar/components/Calendar.js | etiennetremel/react-router | import React from 'react';
class Calendar extends React.Component {
render () {
var events = [{
id: 0, title: 'essay due'
}];
return (
<div>
<h2>Calendar</h2>
<ul>
{events.map(event => (
<li key={event.id}>{event.title}</li>
))}
</ul>
... |
app/components/base/Button/Button.js | rhberro/the-react-client | import PropTypes from 'prop-types'
import React from 'react'
import './Button.styl'
function Button (props) {
return (
<button className='button' onClick={props.onClick}>
{ props.children }
</button>
)
}
Button.propTypes = {
children: PropTypes.string.isRequired,
onClick: PropTypes.func.isRequi... |
src/containers/Interfaces/NameGeneratorList.js | codaco/Network-Canvas | import React, { Component } from 'react';
import { bindActionCreators, compose } from 'redux';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { differenceBy, omit, get } from 'lodash';
import withPrompt from '../../behaviours/withPrompt';
import { actionCreators as sessionsActions } f... |
packages/material-ui-icons/src/WorkOffTwoTone.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M4 8v11h13.74l-11-11zM12.4 8l7.6 7.6V8z" opacity=".3" /><path d="M10 4h4v2h-3.6l2 2H20v7.6l2 2V8c0-1.11-.89-2-2-2h-4V4c0-1.11-.89-2-2-2h-4c-.... |
modules/Common/Navbar.js | cloudytimemachine/frontend | import React from 'react'
import { Link } from 'react-router'
import SearchBox from './SearchBox'
export default React.createClass({
render() {
return (
<div>
<nav className="navbar navbar-inverse navbar-fixed-top">
<div className="navbar-header">
<Link to="/" className="navb... |
httpdocs/sites/all/modules/contrib/jquery_update/replace/jquery/1.5/jquery.min.js | legolasbo/puurjoska | /*!
* jQuery JavaScript Library v1.5.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/svg-icons/maps/edit-location.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsEditLocation = (props) => (
<SvgIcon {...props}>
<path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.86-3.14-7-7-7zm-1.56 10H9v-1.44l3.35-3.34 1.43 1.43L10.44 12zm4.45-4.45l-.7.7-1.44-1.44.7-.... |
docs/app/Examples/collections/Form/States/FormExampleWarning.js | ben174/Semantic-UI-React | import React from 'react'
import { Button, Form, Input, Message } from 'semantic-ui-react'
const FormExampleWarning = () => (
<Form warning>
<Form.Input label='Email' placeholder='joe@schmoe.com' />
<Message
warning
header='Could you check something!'
list={[
'That e-mail has been s... |
src/routes/register/index.js | Fedulab/FeduLab | /**
* 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 Register from './Registe... |
ajax/libs/material-ui/5.0.0-alpha.29/node/RadioGroup/RadioGroup.js | cdnjs/cdnjs | "use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _extends2 = _interopRequireDefaul... |
examples/todomvc/containers/TodoApp.js | tomatau/redux-devtools | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import Header from '../components/Header';
import MainSection from '../components/MainSection';
import * as TodoActions from '../actions/TodoActions';
class TodoApp extends Component {
render(... |
node_modules/consolidate/lib/consolidate.js | ebukaprof/coon | 'use strict';
/*
* Engines which do not support caching of their file contents
* should use the `read()` function defined in consolidate.js
* On top of this, when an engine compiles to a `Function`,
* these functions should either be cached within consolidate.js
* or the engine itself via `options.cache`. This wil... |
packages/material-ui-icons/src/StoreMallDirectory.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z" /></React.Fragment>
, 'StoreMallDirectory');
|
src/components/NotFound.js | twhite96/checkyoself | /* jshint ignore: start */
import React from 'react';
import broken from '../images/imbroken.GIF';
import Footer from './Footer';
import '../smde-editor.css';
function NotFound(props) {
return (
<div className="page-container">
<h1 className="title">404</h1>
<img src={broken} alt="broken..." />
... |
ajax/libs/jquery/1.9.0/jquery.js | marxo/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";... |
src/components/section/index.js | timludikar/component-library | import React from 'react';
const Section = ({ children, style = {}, className }) => {
const cssClass = `${className}`;
return (
<section
className={cssClass}
style={{ ...style }}
>
{children}
</section>
);
};
Section.propTypes = {
className: React.PropTypes.string,
children: R... |
src/components/Menubar.js | r-portas/robogals-brisbane-pwa | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
NavLink
} from 'react-router-dom';
import './Menubar.css';
class Menubar extends Component {
parseLink(link) {
if (link.object === 'page') {
return link.object_slug;
}
return link.object;
}
renderSubLink... |
client/src/containers/DevTools/DevTools.js | korczis/microcrawler-webapp | import React from 'react';
import { createDevTools } from 'redux-devtools';
import FilterMonitor from 'redux-devtools-filter-actions';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
import SliderMonitor from 'redux-slider-monitor';
const blacklist = [
'FIL... |
app/containers/App.js | animalphase/bramble | // @flow
import React, { Component } from 'react';
import type { Children } from 'react';
export default class App extends Component {
props: {
children: Children
};
render() {
return (
<div>
{this.props.children}
</div>
);
}
}
|
components/smallcardview.js | techiesanchez/rythus-app | import React from 'react';
export default class SmallCardView extends React.Component {
render() {
return (
<div className="smallcard">
<div className="title">Lima Bean</div>
<div className="background"></div>
<div className="border"></div>
... |
node_modules/body-parser/node_modules/debug/src/browser.js | Clomez/Node-browser-gui-scanner | /**
* This is the web browser implementation of `debug()`.
*
* Expose `debug()` as the module.
*/
exports = module.exports = require('./debug');
exports.log = log;
exports.formatArgs = formatArgs;
exports.save = save;
exports.load = load;
exports.useColors = useColors;
exports.storage = 'undefined' != typeof chrom... |
ajax/libs/react-bootstrap-table/0.9.0/react-bootstrap-table.min.js | tonytomov/cdnjs | !function e(t,o,a){function n(s,l){if(!o[s]){if(!t[s]){var c="function"==typeof require&&require;if(!l&&c)return c(s,!0);if(r)return r(s,!0);var i=new Error("Cannot find module '"+s+"'");throw i.code="MODULE_NOT_FOUND",i}var p=o[s]={exports:{}};t[s][0].call(p.exports,function(e){var o=t[s][1][e];return n(o?o:e)},p,p.ex... |
src/svg-icons/social/mood.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialMood = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c.83 ... |
node_modules/react-router/es6/RouterContext.js | akh000/YoutubeApp | var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
var _extends = Object.assign || function (target) { for (var i = 1; i < argum... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/index.js | facebook/flow | /**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow
*/
const path = require('path');
const Styled = require('../../../Styled');
exports.kind = 'codemod';
expo... |
src/components/LogoutButton.js | goblinbr/manager-react-native-app | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Button, View } from 'react-native';
import { logout } from '../actions';
class LogoutButtonComp extends Component {
render() {
return (
<View style={{ marginRight: 15 }}>
<Button
title="Logout"
... |
config/eslint-config-carbon/index.js | carbon-design-system/carbon-components | /**
* Copyright IBM Corp. 2018, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
module.exports = {
extends: [require.resolve('./base'), require.resolve('./plugins/react')],
};
|
ajax/libs/forerunnerdb/1.3.405/fdb-legacy.min.js | x112358/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
ui/src/components/workflow/errordashboard/ErrorDashboard.js | d3sw/conductor | import React from 'react';
import {Link} from 'react-router';
import {Button, Col, Grid, Input, Panel, Row, Table} from 'react-bootstrap';
import Typeahead from 'react-bootstrap-typeahead';
import {connect} from 'react-redux';
import {getErrorCountDay, getErrorCountWeek, getErrorData, getErrorDataMonth} from '../../../... |
ajax/libs/primereact/8.1.0/dataview/dataview.js | cdnjs/cdnjs | this.primereact = this.primereact || {};
this.primereact.dataview = (function (exports, React, PrimeReact, paginator, ripple, utils) {
'use strict';
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
function _interopNamespace(e) {
if (e && e._... |
app/src/components/Header.js | wtfil/google-music-unofficial-client | import React from 'react';
import {connect} from 'react-redux';
import {Link, PropTypes} from 'react-router';
import {loadSuggest, iAmFeelingLucky} from '../actions';
import SearchInput from '../components/SearchInput';
@connect(state => state)
export default class Header extends React.Component {
static contextTypes... |
client/src/components/App.js | josorioromero/game-of-drones | import React, { Component } from 'react';
import { Button, Col, Row } from 'react-bootstrap';
import classNames from 'classnames';
import NameInput from './NameInput.js';
import Movement from './Movement.js';
import Results from './Results.js';
import Win from './Win.js';
import Header from './Header.js';
import GameS... |
ThirdParty/dojo-release-1.10.4/dijit/_editor/plugins/TabIndent.js | aelatgt/cesium | define([
"dojo/_base/declare", // declare
"dojo/_base/kernel", // kernel.experimental
"../_Plugin",
"../../form/ToggleButton"
], function(declare, kernel, _Plugin, ToggleButton){
// module:
// dijit/_editor/plugins/TabIndent
kernel.experimental("dijit._editor.plugins.TabIndent");
var TabIndent = declare("d... |
ajax/libs/yui/3.10.2/datatable-core/datatable-core-coverage.js | kartikrao31/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/datatable-core/datatable-core.js']) {
__coverage__['build/datatable-core/datatable-core.js'] = {"path":"build/datatable-core/datatable-core.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13"... |
01-react-just-render/src/App.js | dtanzer/react-basic-examples | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
... |
src/components/post/preview.js | voidxnull/libertysoil-site | import React from 'react';
import twtxt from 'twitter-text';
let Preview = (props) => {
let text = props.post.text;
let urls = twtxt.extractUrlsWithIndices(text);
if (urls.length === 0) {
return <script/>;
}
return <a className="embedly-card" data-card-width="100%" href={urls[0].url}></a>;
};
export ... |
ajax/libs/F2/1.2.1/f2.no-easyXDM.min.js | warpech/cdnjs | /*! F2 - v1.2.2 - 08-22-2013 - See below for copyright and license */
(function(exports){if(!exports.F2||exports.F2_TESTING_MODE){/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obta... |
src/iosPages/iosFlow.js | TASnomad/Fallon-react-native-app | import React, { Component } from 'react';
import {
AsyncStorage,
Button,
View,
Text,
ScrollView,
StyleSheet,
RefreshControl,
} from 'react-native';
import SideBar from '../iosComponents/SideBarIOS';
import URLS from '../utils/ajaxURL';
const flowSheet = StyleSheet.create({
scrollContainer: ... |
src/applications/static-pages/health-care-manage-benefits/refill-track-prescriptions-page/components/App/index.unit.spec.js | department-of-veterans-affairs/vets-website | // Dependencies.
import React from 'react';
import { expect } from 'chai';
import { shallow } from 'enzyme';
// Relative imports.
import AuthContent from '../AuthContent';
import UnauthContent from '../UnauthContent';
import { App } from './index';
describe('Get Medical Records Page <App>', () => {
it('renders what ... |
src/components/MixinComponent.js | GuoYongfeng/react-fundamental | import React, { Component } from 'react';
import Mixin from './Utils.js';
const Button = (props) => {
return (
<button onClick={props.update}>
{props.txt} - {props.val}
</button>
)
}
const Label = (props) => {
return (
<label onMouseMove={props.update}>
{props.txt} - {props.val}
</la... |
webapp/imports/ui/components/PatientSidebar.js | clinical-meteor/meteor-on-fhir | import { List, ListItem } from 'material-ui/List';
import MenuItem from '/imports/ui/components/MenuItem';
import { LinkContainer } from 'react-router-bootstrap';
import { Meteor } from 'meteor/meteor';
import React from 'react';
import { ReactMeteorData } from 'meteor/react-meteor-data';
import ReactMixin from 'react... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.