path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
ajax/libs/ionic/0.9.26/js/ionic.js | abenjamin765/cdnjs | /*!
* Copyright 2014 Drifty Co.
* http://drifty.com/
*
* Ionic, v0.9.26
* A powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
* By @maxlynch, @benjsperry, @adamdbradley <3
*
* Licensed under the MIT license. Please see LICENSE for more information.
*
*/
;
// Create namespaces
//
window.io... |
src/components/icons/Grid.js | niekert/soundify | import React from 'react';
import PropTypes from 'prop-types';
const Grid = ({ fill, ...props }) =>
<svg fill={fill} viewBox="0 0 24 24" {...props}>
<path d="M0 0h24v24H0z" fill="none" />
<path d="M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 20H4v-4h4v4zm0-6H4v-4h4v4zm0-6H4V... |
packages/node_modules/@webex/react-component-adaptive-card/src/index.js | ciscospark/react-ciscospark | import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import classnames from 'classnames';
import {getAdaptiveCard, CARD_CONTAINS_IMAGE, replaceIndexWithBlobURL, API_ACTIVITY_VERB} from '@webex/react-component-utils';
import {connect} from 'react-redux';
import {bindActionCrea... |
ajax/libs/fixed-data-table/0.3.0/fixed-data-table.min.js | lobbin/cdnjs | /**
* FixedDataTable v0.3.0
*
* Copyright (c) 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 direc... |
files/rxjs/2.2.24/rx.all.compat.js | tomByrer/jsdelivr | // 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
};
v... |
contento/js-source/node_modules/react-sortable/example-from-npm/index.js | inmagik/contento | //block 1
import React from 'react';
import { Sortable } from 'react-sortable';
var ListItem = React.createClass({
displayName: 'SortableListItem',
render: function () {
return (
<div {...this.props} className="list-item">{this.props.children}</div>
)
}
})
var SortableListItem = Sortable(ListItem... |
ajax/libs/react-select/1.0.1/react-select.es.js | jonobr1/cdnjs | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { findDOMNode } from 'react-dom';
import AutosizeInput from 'react-input-autosize';
import classNames from 'classnames';
function arrowRenderer(_ref) {
var onMouseDown = _ref.onMouseDown;
return React.createElement('span', {
clas... |
app/common/components/Container/index.js | Kaniwani/KW-Frontend | import React from 'react';
import PropTypes from 'prop-types';
import { StyledContainer } from './styles';
Container.propTypes = {
children: PropTypes.oneOfType([
PropTypes.array,
PropTypes.node,
]).isRequired,
withPadding: PropTypes.bool,
marginTop: PropTypes.string,
alignContent: PropTypes.string,... |
ajax/libs/react-redux/4.2.1/react-redux.min.js | jonobr1/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("redux")):"function"==typeof define&&define.amd?define(["react","redux"],e):"object"==typeof exports?exports.ReactRedux=e(require("react"),require("redux")):t.ReactRedux=e(t.React,t.Redux)}(this,function(t,e){retu... |
packages/material-ui-icons/src/Theaters.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z" /><path fill="none" d="M0 0h24v24H0z" /></Re... |
nodejs/dva/src/components/Example.js | EternalFire/developEnvironment | import React from 'react';
const Example = () => {
return (
<div>
Example Page
</div>
);
};
Example.propTypes = {
};
export default Example;
|
catch-of-the-day/src/components/App.js | mraguso2/notes-react-wb | import React from 'react';
import Header from './Header';
import Order from './Order';
import Inventory from './Inventory';
import Fish from './Fish';
import base from '../base';
import sampleFishes from '../sample-fishes';
class App extends React.Component {
constructor() {
super();
this.addFish = this.ad... |
src/svg-icons/action/accessibility.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAccessibility = (props) => (
<SvgIcon {...props}>
<path d="M12 2c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm9 7h-6v13h-2v-6h-2v6H9V9H3V7h18v2z"/>
</SvgIcon>
);
ActionAccessibility = pure(ActionAccessib... |
src/components/ActionBar/ActionBar.js | ConciergeAuctions/react-mui-table | // @flow
import React from 'react';
import Delete from './Delete';
import Filter from './Filter';
import type { ActionBarProps } from './types';
const ActionBar = ({
itemSelectedCount,
deleteEnabled,
handleDelete,
filterEnabled,
filters,
handleFilter,
}: ActionBarProps) => {
if (itemSelectedCount && del... |
static/src/js/components/resources/ResourceType.js | enginyoyen/blackcrystal | import React from 'react';
import {Input, MenuItem} from 'react-bootstrap';
import $ from 'jquery';
import ResourceTypeDirectory from './ResourceTypeDirectory'
import ResourceTypeGit from './ResourceTypeGit'
import { resourcesTypesURI } from '../../utils/Config'
const ResourceType = React.createClass({
collect() {
... |
packages/lesswrong/components/async/editor-plugins/divider/components/DividerButton.js | Discordius/Telescope | import React, { Component } from 'react';
import unionClassNames from 'union-class-names';
import {
// EditorState,
// Modifier,
// AtomicBlockUtils,
RichUtils,
} from 'draft-js';
import {
// addNewBlock,
getCurrentBlock,
isFirstBlock,
isLastBlock,
} from '../utils';
import {
// insertNewLineBefore,... |
ajax/libs/rxjs/2.3.22/rx.lite.compat.js | brunoksato/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/Input/Input.spec.js | AndriusBil/material-ui | // @flow weak
import React from 'react';
import { assert } from 'chai';
import { spy } from 'sinon';
import { createShallow, createMount, getClasses } from '../test-utils';
import Textarea from './Textarea';
import Input, { hasValue, isDirty } from './Input';
describe('<Input />', () => {
let shallow;
let classes... |
ajax/libs/cyclejs-core/1.0.1/cycle.js | Piicksarn/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.Cycle = f()}})... |
stories/StaticToolbar/CustomToolbarEditor/index.js | dagopert/draft-js-plugins | /* eslint-disable react/no-multi-comp */
import React, { Component } from 'react';
import Editor, { createEditorStateWithText } from 'draft-js-plugins-editor';
import createToolbarPlugin, { Separator } from 'draft-js-static-toolbar-plugin';
import {
ItalicButton,
BoldButton,
UnderlineButton,
CodeButton,
Hea... |
src/ui/components/views/Offline.native.js | scrollback/pure | /* @flow */
import React, { Component } from 'react';
import ReactNative from 'react-native';
import shallowCompare from 'react-addons-shallow-compare';
import Colors from '../../Colors';
import AppText from './Core/AppText';
import Page from './Page/Page';
const {
StyleSheet,
Image,
StatusBar,
} = ReactNative;
c... |
src/svg-icons/navigation/fullscreen-exit.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationFullscreenExit = (props) => (
<SvgIcon {...props}>
<path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/>
</SvgIcon>
);
NavigationFullscreenExit = pure(NavigationF... |
cache/react-native-example/App.js | sharkspeed/dororis | import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
export default class App extends React.Component {
render() {
return (
<View style={styles.container}>
<Text>Open up App.js to start working on your app!</Text>
<Text>Changes you make will automatically reload... |
app/containers/App/index.js | Ennovar/clock_it | /**
*
* App
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*/
import React from 'react';
import Helmet from 'react-helmet';
import styled from 'styled-components';
import Header from 'components/Header';
import F... |
node_modules/material-ui/lib/svg-icons/notification/ondemand-video.js | sparkymat/youhaveto-react | 'use strict';
var React = require('react/addons');
var PureRenderMixin = React.addons.PureRenderMixin;
var SvgIcon = require('../../svg-icon');
var NotificationOndemandVideo = React.createClass({
displayName: 'NotificationOndemandVideo',
mixins: [PureRenderMixin],
render: function render() {
return React.... |
frontend/js/components/molecules/Checkbox.js | Code4HR/okcandidate-platform | 'use strict';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
class Checkbox extends Component {
constructor(props) {
super(props);
this.state = {
focus: false
};
}
onFocus(e) {
this.setState({focus: true});
}
onBlur(e) {... |
app/javascript/mastodon/components/status_content.js | imomix/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import escapeTextContentForBrowser from 'escape-html';
import PropTypes from 'prop-types';
import emojify from '../emoji';
import { isRtl } from '../rtl';
import { FormattedMessage } from 'react-intl';
import Permalink from './permal... |
src/components/Notifications/Notifications.js | mmrath/react-app | 'use strict';
import React from 'react';
import Router from 'react-router';
export default React.createClass({
render() {
var Link = Router.Link;
return (
<div className="row">
<Link to="notification.source" params={{source: "123"}}>123</Link>
</div>
);
}
});
|
ajax/libs/react-native-web/0.13.18/exports/ScrollView/index.js | cdnjs/cdnjs | function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbo... |
internals/templates/notFoundPage/notFoundPage.js | samit4me/react-boilerplate | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it... |
src/js/MethodControlContrast.js | majofeechiou/drawing-board | 'use strict';
import React from 'react';
import GloablTools from './GloablTools';
import Extend from 'Extend';
import Settings from './Settings';
import GloablData from './GloablData';
import MethodActions from './MethodActions';
export default class MethodControlContrast extends React.Component {
constructor(pro... |
ajax/libs/remoteStorage/0.9.0/remotestorage-nocache.js | calebmer/cdnjs | /** remotestorage.js 0.9.0, http://remotestorage.io, MIT-licensed **/
/** FILE: lib/promising.js **/
(function(global) {
function getPromise(builder) {
var promise;
if(typeof(builder) === 'function') {
setTimeout(function() {
try {
builder(promise);
} catch(e) {
pro... |
src/server.js | markfranco/equitise | /**
* 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 path from 'path';
import express from 'express';... |
packages/material-ui-icons/src/PictureAsPdf.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let PictureAsPdf = props =>
<SvgIcon {...props}>
<path d="M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5v1zm5 2c0... |
packages/material-ui-icons/src/AddAPhotoRounded.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M3 8c0 .55.45 1 1 1s1-.45 1-1V6h2c.55 0 1-.45 1-1s-.45-1-1-1H5V2c0-.55-.45-1-1-1s-1 .45-1 1v2H1c-.55 0-1 .45-1 1s.45 1 1 1h2v2z" /><circle cx="13" cy="14" r="3" /><path d="M21 6h-3.17l... |
renderer/components/UI/Message.js | LN-Zap/zap-desktop | import React from 'react'
import PropTypes from 'prop-types'
import { Box, Flex, Text } from 'rebass/styled-components'
import Success from 'components/Icon/Success'
import Warning from 'components/Icon/Warning'
import Error from 'components/Icon/Error'
import Spinner from './Spinner'
const Icon = ({ type }) => {
sw... |
shared/app/Tms/components/Mosaic/MosaicTemplate.js | pebie/react-universally-node-config | import PropTypes from 'prop-types';
import React from 'react';
import MosaicTemplateItem from './MosaicTemplateItem';
import styles from './MosaicTemplate.scss';
import { ALL_SUPPORTED_RATIOS } from '../../constants/ratios';
/**
* MosaicTemplate
*
* used when rendering a Page with a template of Mosaic
*
* @param... |
src/svg-icons/editor/insert-comment.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorInsertComment = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/>
</SvgIcon>
);
EditorInsertCom... |
src/svg-icons/action/perm-phone-msg.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermPhoneMsg = (props) => (
<SvgIcon {...props}>
<path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.2... |
ajax/libs/react-router/0.11.2/react-router.min.js | codevinsky/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.ReactRouter=e()}}(function(){var define;return functi... |
src/components/ChangeTeamURLModal/ChangeTeamURLModal.js | labzero/lunch | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import Col from 'react-bootstrap/lib/Col';
import ControlLabel from 'react-bootstrap/lib/ControlLabel';
import FormControl from 'react-bootstrap/lib/FormControl';
import FormGro... |
src/svg-icons/image/filter-none.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterNone = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"/>
</SvgIcon>
);
Ima... |
spec/components/autocomplete.js | zooshgroup/react-toolbox-components | import React from 'react';
import Autocomplete from '../../components/autocomplete';
import {Avatar, Chip} from "react-toolbox";
const source = [
{id:1, name:'England', code:'GB'},
{id:2, name:'Finland', code:'FI'},
{id:3, name:'Hungary', code:'HU'},
{id:4, name:'Germany', code:'DE'},
{id:5, name:'Switzerlan... |
app/javascript/mastodon/features/compose/components/reply_indicator.js | pixiv/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Avatar from '../../../components/avatar';
import IconButton from '../../../components/icon_button';
import DisplayName from '../../../components/display_name';
import { defineMessages, injec... |
client/views/room/Header/DirectRoomHeader.js | VoiSmart/Rocket.Chat | import React from 'react';
import { useUserId } from '../../../contexts/UserContext';
import { useUserData } from '../../../hooks/useUserData';
import RoomHeader from './RoomHeader';
const DirectRoomHeader = ({ room }) => {
const userId = useUserId();
const directUserId = room.uids.filter((uid) => uid !== userId).s... |
ajax/libs/x-editable/1.5.0/jqueryui-editable/js/jqueryui-editable.js | RobLoach/cdnjs | /*! X-editable - v1.5.0
* In-place editing with Twitter Bootstrap, jQuery UI or pure jQuery
* http://github.com/vitalets/x-editable
* Copyright (c) 2013 Vitaliy Potapov; Licensed MIT */
/**
Form with single input element, two buttons and two states: normal/loading.
Applied as jQuery method to DIV tag (not to form ... |
node_modules/react-icons/fa/cc-mastercard.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const FaCcMastercard = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m11.7 20.6h-0.2q-0.8 0-0.8 0.6 0 0.4 0.3 0.4 0.3 0 0.5-0.3t0.2-0.7z m7-0.6h1v0q0.1-0.1 0.1-0.1t-0.1-0.2 0-0.1-0.1-0.1-0.1-0.1-0.2 0q-0.5 0-0.6 0.6z m9.4 0.6h-0.2... |
demo/src/im/components/contact/index.js | clumsyme/cc | import React, { Component } from 'react'
import { Avatar, Icon } from 'antd'
import './styles.css'
export default class Contact extends Component {
constructor(props) {
super(props)
}
render() {
const { avatar, name, onClick } = this.props
return (
<div className="im-co... |
src/public/js/blog.js | bbondy/brianbondy.node | import React from 'react'
import { Route, Switch } from 'react-router-dom'
import BlogFilters from './blogFilters.js'
import BlogPostList from './blogPostList.js'
import BlogPost from './blogPost.js'
export default class Blog extends React.Component {
render () {
return (
<div>
<Switch>
<... |
src/mixins/coordinate-grid-mixin.js | WaldoJeffers/react-dc | import React from 'react'
import {compose, withProps} from '../utils'
import colorMixin from './color-mixin'
import marginMixin from './margin-mixin'
import baseMixin from './base-mixin'
const {any, array, arrayOf, bool, func, instanceOf, number, oneOfType, shape, string} = React.PropTypes
const coordinateGridMixin =... |
actor-apps/app-web/src/app/components/Deactivated.react.js | tsdl2013/actor-platform | import React from 'react';
class Deactivated extends React.Component {
render() {
return (
<div className="deactivated row center-xs middle-xs">
<div className="deactivated__window">
<h2>Tab deactivated</h2>
<p>
Oops, you have opened another tab with Actor, so we had... |
ajax/libs/primereact/7.0.0/column/column.esm.min.js | cdnjs/cdnjs | import{Component as e}from"react";function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function n(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either... |
src/index.js | Armitage-Mobile-Militia-Offensive/reactAmmoWebsite | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
import './index.css';
ReactDOM.render(
<App/>,
document.getElementById('root')
);
|
src/svg-icons/editor/format-textdirection-l-to-r.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatTextdirectionLToR = (props) => (
<SvgIcon {...props}>
<path d="M9 10v5h2V4h2v11h2V4h2V2H9C6.79 2 5 3.79 5 6s1.79 4 4 4zm12 8l-4-4v3H5v2h12v3l4-4z"/>
</SvgIcon>
);
EditorFormatTextdirectionLToR = p... |
ajax/libs/6to5/2.11.0/browser-polyfill.js | vfonic/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... |
ajax/libs/forerunnerdb/1.3.717/fdb-core+persist.min.js | emmy41124/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... |
public/laravel-u-editor/third-party/jquery-1.10.2.js | ymob/kaichang | /*!
* 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 ) {
// ... |
local-cli/bundle/output/unbundle/index.js | aaron-goshine/react-native | /**
* Copyright (c) 2015-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.
*
* @flow
*/... |
packages/bonde-admin-canary/src/components/Gadget/index.js | ourcities/rebu-client | import React from 'react'
import PropTypes from 'prop-types'
import { Flexbox2 as Flexbox, Title, Spacing } from 'bonde-styleguide'
const GadgetTitle = ({ children }) => (
<Title.H5 uppercase fontWeight='bold'>
{children}
</Title.H5>
)
const Gadget = ({ children, title, renderFilter, WrapperComponent }) => (
... |
app/javascript/mastodon/features/home_timeline/components/column_settings.js | esetomo/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import SettingToggle from '../../notifications/components/setting_toggle';
import SettingText from '../../../components/se... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ArrayDestructuring.js | in2core/create-react-app | /**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
function load() {
return [[1, '1'], [2, '2'], [3, '3'],... |
src/_App.js | Greynight/Grid | 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/App.js | xindeling/Kyo-Demo | import React, { Component } from 'react';
import Scroll from 'react-scroll';
import logo from './logo.svg';
import './stylesheets/style.css';
let Link = Scroll.Link;
let Element = Scroll.Element;
let Events = Scroll.Events;
let scroll = Scroll.animateScroll;
let scrollSpy = Scroll.scrollSpy;
class ... |
packages/wix-style-react/src/NumberInput/test/NumberInput.spec.js | wix/wix-style-react | import React from 'react';
import NumberInput from '../NumberInput';
import { numberInputPrivateDriverFactory } from '../NumberInput.private.uni.driver';
import {
createRendererWithUniDriver,
cleanup,
} from '../../../test/utils/react';
describe('NumberInput', () => {
const render = createRendererWithUniDriver(n... |
lib/cli/generators/REACT_SCRIPTS/template/src/stories/Button.js | enjoylife/storybook | /* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */
import PropTypes from 'prop-types';
import React from 'react';
const buttonStyles = {
border: '1px solid #eee',
borderRadius: 3,
backgroundColor: '#FFFFFF',
cursor: 'pointer',
fontSize: 15,
padding: '3px 10px',... |
examples/simple-complex-containers/src/index.js | aGuyNamedJonas/slim-redux-react | import React from 'react';
import ReactDOM from 'react-dom';
import SimpleCounterContainer from './SimpleCounter';
import ComplexCounterContainer from './ComplexCounterContainer';
import { createSlimReduxStore, Provider } from 'slim-redux';
// Create the store, give it an initial state of 0 (and make redux store visib... |
client/modules/Post/__tests__/components/PostList.spec.js | moscow-freecodecamp/fluffy-spoon | import React from 'react';
import test from 'ava';
import { shallow } from 'enzyme';
import PostList from '../../components/PostList';
const posts = [
{ name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: 'f34gb2bh24b24b2', content: "All cats meow 'mern!'" },
{ name: 'Mayank', title: 'Hi Mern', slug: ... |
src/svg-icons/action/perm-scan-wifi.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermScanWifi = (props) => (
<SvgIcon {...props}>
<path d="M12 3C6.95 3 3.15 4.85 0 7.23L12 22 24 7.25C20.85 4.87 17.05 3 12 3zm1 13h-2v-6h2v6zm-2-8V6h2v2h-2z"/>
</SvgIcon>
);
ActionPermScanWifi = pure(A... |
ajax/libs/backbone.radio/0.2.0/backbone.radio.js | WebReflection/cdnjs | // Backbone.Radio v0.1.0
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define(['backbone', 'underscore'], function(Backbone, _) {
return factory(Backbone, _);
});
}
else if (typeof exports !== 'undefined') {
var Backbone = require('backbone');
var _ = require('... |
react-music-player/app/helloworld/index.js | zhongshanxian/SUM | import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import Root from './Root';
render(
<AppContainer>
<Root />
</AppContainer>,
document.getElementById('root')
);
if (module.hot) {
module.hot.accept('./Root', () => {
const Ne... |
app/components/ToggleOption/index.js | gihrig/react-boilerplate | /**
*
* ToggleOption
*
*/
import React from 'react';
import { injectIntl, intlShape } from 'react-intl';
const ToggleOption = ({ value, message, intl }) => (
<option value={value}>
{message ? intl.formatMessage(message) : value}
</option>
);
ToggleOption.propTypes = {
value: React.PropTypes.string.isRequir... |
modules/ScrollManagementMixin.js | RobertKielty/react-router | import React from 'react';
import { Actions } from 'history';
import { canUseDOM, setWindowScrollPosition } from './DOMUtils';
var { func } = React.PropTypes;
function getCommonAncestors(routes, otherRoutes) {
return routes.filter(route => otherRoutes.indexOf(route) !== -1);
}
function shouldUpdateScrollPosition(s... |
geonode/monitoring/frontend/monitoring/src/components/organisms/most-active-ips/index.js | francbartoli/geonode | /*
#########################################################################
#
# Copyright (C) 2019 OSGeo
#
# This program 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
# ... |
src/components/MediaFooter.js | truonguyen1/mediamanager | import React, { Component } from 'react';
export default class MediaFooter extends Component {
render() {
return (
<div className="media-footer">
@conpyright-a3224
</div>
);
}
}
|
test/fixtures/webpack-message-formatting/src/AppLintError.js | timlogemann/create-react-app | import React, { Component } from 'react';
function foo() {
const a = b;
}
class App extends Component {
render() {
return <div />;
}
}
export default App;
|
docs/app/Examples/elements/List/Types/ListExampleDivided.js | shengnian/shengnian-ui-react | import React from 'react'
import { List } from 'shengnian-ui-react'
const ListExampleDivided = () => (
<List divided relaxed>
<List.Item>
<List.Icon name='github' size='large' verticalAlign='middle' />
<List.Content>
<List.Header as='a'>shengnian/shengnian-ui-react</List.Header>
<List... |
build/libs/Adapter/src/lib/components/VisTool.js | as-me/dashboard | import "d3chart";
import React from 'react';
class VisTool extends React.Component {
constructor() {
super();
this._setReactState = this._setReactState.bind(this);
Object.defineProperty(this, 'sessionable', {
value: true
});
_initializeSessionData();
}
... |
Realization/frontend/czechidm-core/src/components/advanced/RoleGuaranteeInfo/RoleGuaranteeInfo.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
//
import * as Basic from '../../basic';
import { RoleGuaranteeManager, SecurityManager } from '../../../redux';
import AbstractEntityInfo from '../EntityInfo/AbstractEntityInfo';
import EntityInfo from '../EntityInfo/... |
common/components/Nav.js | witt86/ERE | import React from 'react'
import IndexLink from 'react-router/lib/IndexLink'
import Link from 'react-router/lib/Link'
import { StyleSheet, css } from 'aphrodite'
const Nav = () => (
<div>
<IndexLink to='/' className={css(styles.link)} activeClassName={css(styles.link, styles.activeLink)}>
Home
</IndexL... |
client/src/components/login.js | teebash/shakenXstirred | import React from 'react';
import auth from '../utils/auth.js';
const Login = React.createClass({
contextTypes: {
router: React.PropTypes.object
},
getInitialState() {
return {
error: false
}
},
handleSubmit(event) {
event.preventDefault();
const username = this.refs.username.va... |
app/src/display/FileBlock.js | sfelderman/inverted-index | import React from 'react';
import {clean} from '../util/createDict';
import Highlight from './Highlight';
const FileBlock = ({name, data, query, locations}) => {
const findIndex = (line, query) => {
const split = line.split(' ');
let loc = 0;
split.forEach((word, index) => {
const cleaned = clean(word);... |
milestones/05-webpack-intro-css/Before/src/app.js | jaketrent/react-drift | import React from 'react'
import Carousel from './carousel.js'
import Frame from './frame.js'
import Nav from './nav.js'
import Slide from './slide.js'
export default class DriftApp extends React.Component {
constructor(props) {
super(props)
this.handleClickPrevious = this.handleClickPrevious.bind(this)
... |
node_modules/material-ui/DatePicker/DatePicker.js | acalabano/get-committed | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = require('babel-runtime/helpers/extends');
var _extends3 = _interopRequireDefault(_extends2);
var _objectWithoutProperties2 = require('babel-runtime/helpers/objectWithoutProperties');
var _objectWithoutProperties3 = _inte... |
client/verification-portal/components/services-checkbox.js | HelpAssistHer/help-assist-her | import React from 'react'
import injectSheet from 'react-jss'
import Tooltip from './tooltip'
const ServicesCheckbox = ({ classes, input, label, description }) => {
return (
<div className={classes.root}>
<label className={classes.container}>
<div className={classes.labelText} data-tip data-for={label}>
... |
src/components/markdown/text.js | programstinator/react-storybook-addon-info | import React from 'react';
import { baseFonts } from '../theme';
export class P extends React.Component {
render() {
const style = {
...baseFonts,
fontSize: '15px',
};
return <p style={style}>{this.props.children}</p>;
}
}
export class LI extends React.Component {
render() {
const st... |
src/components/Skill.js | GuoYongfeng/react-resume | import React from 'react'
import AboutItem from './AboutItem.js'
const Skill = () => {
const skillArray = [
{ id: 0, styleName:'iconfont icon-html',title:'HTML5',desc:'熟练掌握HTML/HTML5新特性及其运用,并独立开发过多个微信应用。'},
{ id: 1, styleName:'iconfont icon-css',title:'CSS3',desc:'熟练掌握CSS/CSS3新特性,并开发个多个Hybrid应用,熟悉W... |
src/components/common/Header.js | m0t0r/course-manager-app | import React, { PropTypes } from 'react';
import { Link, IndexLink } from 'react-router';
import LoadingDots from './LoadingDots';
const Header = ({loading}) => {
return (
<nav className="nav">
<IndexLink className="nav-link" to="/" activeClassName="active">Home</IndexLink>
<Link className="nav-link"... |
04/js/components/CommentForm.js | arcthur/react-book-examples | import React, { Component } from 'react';
import CommentActions from '../actions/CommentActions';
import { dispatch } from '../dispatcher/AppDispatcher';
class CommentForm extends Component {
constructor(props) {
super(props);
this.state = {
value: '',
};
this.handleChange = this.handleChange... |
client/src/components/PopUpDialog.js | juandaco/voting-app | import React, { Component } from 'react';
import {
Dialog,
DialogContent,
DialogActions,
Button,
Textfield,
RadioGroup,
Radio,
} from 'react-mdl';
import dialogPolyfill from 'dialog-polyfill';
// Loading Logos
import twitterLogo from '../logos/twitterLogo.js';
import facebookLogo from '../logos/facebookL... |
app/containers/Root.js | rhoffmann8/redux-jaca | import React, { Component } from 'react';
class Root extends Component {
renderInitialState() {
if (this.props.initialState) {
const innerHtml = `window.__INITIAL_STATE__ = ${JSON.stringify(this.props.initialState)}`;
return <script dangerouslySetInnerHTML={{__html: innerHtml}} />;
}
}
rend... |
packages/icons/src/data-center.js | geek/joyent-portal | import React from 'react';
import Rotate from './rotate';
import calcFill from './fill';
export default ({
fill = null,
light = false,
disabled = false,
direction = 'down',
colors = {},
style = {},
...rest
}) => (
<Rotate direction={direction}>
{({ style: rotateStyle }) => (
<svg
xml... |
src/svg-icons/notification/sync.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSync = (props) => (
<SvgIcon {...props}>
<path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25... |
test/containers/RouteListMultiStop-spec.js | muiradams/routetogo | /* eslint-disable no-unused-expressions */
import React from 'react';
import { expect } from 'chai';
import { shallow } from 'enzyme';
import { spy } from 'sinon';
import { RouteListMultiStopComponent } from '../../client/containers/RouteListMultiStop';
import RouteList from '../../client/components/RouteList';
descri... |
src/icons/TextFieldsIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class TextFieldsIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M5 8v6h10v24h6V14h10V8H5zm38 10H25v6h6v14h6V24h6v-6z"/></svg>;}
}; |
blueocean-material-icons/src/js/components/svg-icons/notification/vibration.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const NotificationVibration = (props) => (
<SvgIcon {...props}>
<path d="M0 15h2V9H0v6zm3 2h2V7H3v10zm19-8v6h2V9h-2zm-3 8h2V7h-2v10zM16.5 3h-9C6.67 3 6 3.67 6 4.5v15c0 .83.67 1.5 1.5 1.5h9c.83 0 1.5-.67 1.5-1.5v-15c0-.83-.67-1.5-1.5-1.5zM16 19H8V5h8... |
src/components/ModuleGrid.js | dominic-blain/viper-visualizer | import React from 'react';
import { computeOptionsClass } from '../utils';
class ModuleGrid extends React.Component {
render() {
const schema = this.props.schema;
const module = this.props.module;
const items = this.props.items;
const computedClass = computeOptionsClass('module module-grid', schema, module);
... |
viewer/src/VideoList.js | 0xcaff/nos-stock | import React, { Component } from 'react';
import { Link } from 'react-router-dom'
import InfoHeader from './InfoHeader';
import './VideoList.css';
export default class VideoList extends Component {
render() {
return (
<div
className='VideoList'>
<InfoHeader />
{this.props.videos.... |
packages/material-ui-icons/src/StarOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><g fill="none"><path d="M0 0h24v24H0V0z" /><path d="M0 0h24v24H0V0z" /></g><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27z" /></React.... |
src/components/Blocks/Form/index.js | StudentRND/www | import React from 'react'
import { graphql } from 'gatsby'
import { Pii } from '../../Ui/Secure'
import Loading from '../../Ui/Loading'
import "./index.sass"
class Form extends React.Component {
constructor(props) {
super(props);
this.state = {
cognitoDidLoad: false,
};
}
... |
node_modules/react-icons/md/delete-sweep.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdDeleteSweep = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m23.4 8.4v3.2h-20v-3.2h5l1.6-1.8h6.6l1.8 1.8h5z m-18.4 21.6v-16.6h16.6v16.6c0 1.8-1.4 3.4-3.2 3.4h-10c-1.8 0-3.4-1.6-3.4-3.4z m20-10h10v3.4h-10v-3.4z m0-6.6h11.6v... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.