path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
Libraries/Components/Touchable/TouchableWithoutFeedback.js | bouk/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.
*
* @provides... |
docs/src/app/pages/components/Textarea/ExampleTextareaPlaceholder.js | GetAmbassador/react-ions | import React from 'react'
import Textarea from 'react-ions/lib/components/Textarea'
const ExampleTextareaPlaceholder = () => (
<Textarea value='' placeholder='Placeholder text.' />
)
export default ExampleTextareaPlaceholder
|
src/core/passport.js | s-mironov31/react-web | /**
* 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.
*/
/**
* Passport.js reference implementation.
* The databa... |
src/svg-icons/maps/directions-run.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsRun = (props) => (
<SvgIcon {...props}>
<path d="M13.49 5.48c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-3.6 13.9l1-4.4 2.1 2v6h2v-7.5l-2.1-2 .6-3c1.3 1.5 3.3 2.5 5.5 2.5v-2c-1.9 0-3.5-1-4.3-2.4l... |
src/svg-icons/device/wallpaper.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceWallpaper = (props) => (
<SvgIcon {...props}>
<path d="M4 4h7V2H4c-1.1 0-2 .9-2 2v7h2V4zm6 9l-4 5h12l-3-4-2.03 2.71L10 13zm7-4.5c0-.83-.67-1.5-1.5-1.5S14 7.67 14 8.5s.67 1.5 1.5 1.5S17 9.33 17 8.5zM20 2h-... |
src/components/Services/index.js | redsheep-io/redsheep.io | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Service from '../Service';
import Logo from '../Logo';
import * as settings from '../../constants/settings';
import './styles.scss';
const SERVICES = [{
title: 'Product Design',
actionText: 'Request Desig... |
examples/BadgeDropdowns.js | chris-gooley/react-materialize | import React from 'react';
import Badge from '../src/Badge';
import Button from '../src/Button';
import Dropdown from '../src/Dropdown';
import Icon from '../src/Icon';
import NavItem from '../src/NavItem';
export default
<Dropdown
trigger={
<Button>Dropdown<Icon right>arrow_drop_down</Icon></Button>
}>
<Nav... |
docs/src/app/components/pages/get-started/Installation.js | hwo411/material-ui | import React from 'react';
import Title from 'react-title-component';
import MarkdownElement from '../../MarkdownElement';
import installationText from './installation.md';
const Installation = () => (
<div>
<Title render={(previousTitle) => `Installation - ${previousTitle}`} />
<MarkdownElement text={insta... |
ajax/libs/jquery/1.7.2/jquery.min.js | miketheman/cdnjs | /*! jQuery v1.7.2 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBorde... |
packages/material-ui-icons/src/CropOriginalTwoTone.js | Kagami/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="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V5h14v14z" /><path d="M13.96 12.29l-2.75 3.54-1.96-2.36L6.... |
src/components/hand-signal-selection/hand-signal-selection.js | greaveselliott/rock-paper-scissors | import React from 'react'
import './hand-signal-selection.scss';
import HandSignal from '../hand-signal';
import { select_signal_option } from '../../logic/actions';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
const HandSignalSelection = ({hand_signals, is_contestant_player, selected_sym... |
tns_modules/rx/src/core/linq/observable/ambproto.js | Mariem-07/sample-Angular2 | /**
* Propagates the observable sequence or Promise that reacts first.
* @param {Observable} rightSource Second observable sequence or Promise.
* @returns {Observable} {Observable} An observable sequence that surfaces either of the given sequences, whichever reacted first.
*/
observableProto.amb = funct... |
ui/src/main/js/components/UpdateDetails.js | medallia/aurora | import React from 'react';
import { Container, ContentPanel, StandardPanelTitle, PanelSubtitle } from 'components/Layout';
import UpdateInstanceEvents from 'components/UpdateInstanceEvents';
import UpdateInstanceSummary from 'components/UpdateInstanceSummary';
import UpdateSettings from 'components/UpdateSettings';
im... |
client/app/pages/queries/hooks/useQueryParameters.js | denisov-vlad/redash | import { isUndefined } from "lodash";
import { useEffect, useMemo, useState, useCallback } from "react";
export default function useQueryParameters(query) {
const parameters = useMemo(() => query.getParametersDefs(), [query]);
const [dirtyFlag, setDirtyFlag] = useState(query.getParameters().hasPendingValues());
... |
docs/app/Examples/modules/Dropdown/Variations/index.js | koenvg/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ContributionPrompt from 'docs/app/Components/ComponentDoc/ContributionPrompt'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const DropdownVariationsExamples = () => (
<Exa... |
src/server/renderRoute.js | nilshartmann/react-vote-example | import React from 'react';
import { RouterContext, match } from 'react-router';
import { renderToString } from 'react-dom/server';
import { Provider } from 'react-redux';
import saferStringify from 'safer-stringify';
import routes from '../common/routes';
import configureStore from '../common/store/configureStore';
//... |
examples/huge-apps/routes/Grades/components/Grades.js | albertolacework/react-router | import React from 'react';
class Grades extends React.Component {
render () {
return (
<div>
<h2>Grades</h2>
</div>
);
}
}
export default Grades;
|
src/CollapsibleMixin.js | Azerothian/react-bootstrap | import React from 'react';
import TransitionEvents from './utils/TransitionEvents';
import deprecationWarning from './utils/deprecationWarning';
const CollapsibleMixin = {
propTypes: {
defaultExpanded: React.PropTypes.bool,
expanded: React.PropTypes.bool
},
getInitialState(){
let defaultExpanded = ... |
docs/src/app/components/pages/components/Tabs/Page.js | frnk94/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import tabsReadmeText from './README';
import tabsExampleSimpleCode from '!raw!.... |
react-flux-mui/js/material-ui/src/svg-icons/action/flight-land.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFlightLand = (props) => (
<SvgIcon {...props}>
<path d="M2.5 19h19v2h-19zm7.18-5.73l4.35 1.16 5.31 1.42c.8.21 1.62-.26 1.84-1.06.21-.8-.26-1.62-1.06-1.84l-5.31-1.42-2.76-9.02L10.12 2v8.28L5.15 8.95l-.93-2... |
ajax/libs/forerunnerdb/1.3.13/fdb-core+views.js | tholu/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/rxjs/2.3.11/rx.compat.js | iskitz/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... |
ajax/libs/react-virtualized/8.8.0/react-virtualized.js | jonobr1/cdnjs | !function(root, factory) {
"object" == typeof exports && "object" == typeof module ? module.exports = factory(require("React"), require("React.addons.shallowCompare"), require("ReactDOM")) : "function" == typeof define && define.amd ? define([ "React", "React.addons.shallowCompare", "ReactDOM" ], factory) : "object... |
ajax/libs/rxjs/2.3.14/rx.lite.compat.js | jimmybyrum/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/DropdownToggle.js | pombredanne/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import Button from './Button';
import SafeAnchor from './SafeAnchor';
const CARET = <span> <span className="caret" /></span>;
export default class DropdownToggle extends React.Component {
render() {
const caret = this.props.noCaret ? null : CARET;
... |
src/public/components/toolbox/item/file/remove.js | Lunik/tcloud | import React from 'react'
import $ from 'jquery'
import Notify from '../../../notification'
import Color from '../../../../style/theme'
import Loading from '../../../loading'
import ListItem from '../default'
import { CrossIcon } from '../../../image/svg'
import DialogWindow from '../../../dialog/default'
export def... |
src/components/CreatePage.js | GatesmanAgency/GraphQL-Relay-Modern-QuickStart | import React from 'react'
import { QueryRenderer, graphql } from 'react-relay'
import environment from '../createRelayEnvironment'
import { withRouter, Link } from 'react-router-dom'
import CreatePostMutation from '../mutations/CreatePostMutation'
import Dropzone from 'react-dropzone'
const CreatePageViewerQuery = gra... |
misc/tabledrag.js | malandr/nitedelite | (function ($) {
/**
* Drag and drop table rows with field manipulation.
*
* Using the drupal_add_tabledrag() function, any table with weights or parent
* relationships may be made into draggable tables. Columns containing a field
* may optionally be hidden, providing a better user experience.
*
* Created tableD... |
stories/index.js | lanyuechen/dh-component | import React from 'react';
import { Button, Modal } from '../../src';
import { storiesOf, action, linkTo } from '@kadira/storybook';
const addWithInfoOptions = { inline: true, propTables: false };
storiesOf('按钮', module)
.addWithInfo(
'按钮样式',
() => (
<Button type="primary" onClick={action('clicked')}>点击... |
src/svg-icons/content/drafts.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentDrafts = (props) => (
<SvgIcon {...props}>
<path d="M21.99 8c0-.72-.37-1.35-.94-1.7L12 1 2.95 6.3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2l-.01-10zM12 13L3.74 7.84 12 3l8.26 4.84L12 13z"/>... |
src/components/Media/MediaIcon.js | wundery/wundery-ui-react | import React from 'react';
import classnames from 'classnames';
const MediaIcon = (props) => {
const children = props.children;
return (
<div className={classnames('ui-media-icon')}>
{children}
</div>
);
};
MediaIcon.propTypes = {
children: React.PropTypes.node,
};
export default MediaIcon;
|
src/components/widget/loading.js | goldenyz/hackernews | import React from 'react';
import '../../res/styles/loading.less';
export default () => (
<div className="loading">
<div className="icon">
<div className="animation" />
</div>
</div>
);
|
src/js/components/Portfolio/SingleRelatedProjects.js | hadnazzar/ModernBusinessBootstrap-ReactComponent | import React from 'react';
import {IndexLink , Link } from "react-router";
export default class Portfolio1col extends React.Component {
toggleCollapse() {
const collapsed = !this.state.collapsed;
this.setState({collapsed});
}
render() {
return(
<div class="container">
... |
.core/app/routes.js | suranartnc/graphql-blogs-app | import React from 'react'
import { Route, IndexRoute } from 'react-router'
import App from 'core/app/pages/App'
import Homepage from 'core/app/pages/Homepage'
import ErrorPage from 'core/app/pages/ErrorPage'
import getCustomRoutes from 'app/routes'
export default function getRoutes (store = null) {
return (
<R... |
www/js/components/HomePage.js | grant/school-of-tech | import React, { Component } from 'react';
import HomeNavigation from './HomeNavigation';
import Button from './Button';
import Game from './Game';
class HomePage extends Component {
static propTypes = {
actions: React.PropTypes.object.isRequired,
data: React.PropTypes.object.isRequired,
};
render() {
... |
source/components/cell.js | u9520107/meepworks-datatable | import React from 'react';
import Component from 'meepworks/component';
import PureRenderComponent from './pure-render-component';
import styles from './styles';
import { merge } from 'meepworks/styles';
export default class Cell extends PureRenderComponent {
render() {
let content;
if(this.props.column.c... |
examples/src/components/CustomOption.js | bhstahl/react-select | import React from 'react';
import Gravatar from 'react-gravatar';
var Option = React.createClass({
propTypes: {
addLabelText: React.PropTypes.string,
className: React.PropTypes.string,
mouseDown: React.PropTypes.func,
mouseEnter: React.PropTypes.func,
mouseLeave: React.PropTypes.func,
option: React.PropTy... |
src/js/components/components.profile-summary.js | stamkracht/Convy | import React from 'react';
import { humanReadableTimeStamp } from '../utillities'
class ProfileSummary extends React.Component {
render() {
const user = this.props.user;
let userImage,
userData;
if (user && user.image) {
userImage = (<img src={ user && user.image }/>);
} else {
... |
anubis/ui/components/scratchpad/DataInputComponent.js | KawashiroNitori/Anubis | import React from 'react';
import classNames from 'classnames';
export default function DataInputComponent(props) {
const {
title,
value,
onChange,
className,
...rest,
} = props;
const cn = classNames(className, 'flex-col flex-fill');
return (
<div {...re... |
src/components/options/SelectStackOption.js | rokka-io/rokka-dashboard | import React from 'react'
import PropTypes from 'prop-types'
import FormGroup from '../forms/FormGroup'
import Select from '../forms/Select'
const SelectStackOption = ({ label, name, value, definitions, required, onChange, error }) => {
// default value may be null
if (value === null) {
value = ''
}
const ... |
src/encoded/static/components/item-pages/components/WorkflowDetailPane/index.js | hms-dbmi/fourfront | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import _ from 'underscore';
import { object, layout } from '@hms-dbmi-bgm/shared-portal-components/es/components/util';
import { Legend } from './Legend';
import { FileDetailBody } from './FileDetailBody';
import { ParameterDetailBody } from... |
packages/@lyra/form-builder/src/lyra/focusManagers/SimpleFocusManager.js | VegaPublish/vega-studio | // A simple focus path manager
// @flow
import React from 'react'
import type {Path} from '../../typedefs/path'
type Props = {
path: ?any,
onFocus: () => {},
onBlur: () => {},
children: () => any
}
type State = {
focusPath: Array<*>
}
export default class SimpleFocusManager extends React.Component<Props, S... |
src/components/metro/MetroScores.js | availabs/kauffman-atlas | import React from 'react'
import { connect } from 'react-redux'
import { loadMetroGdp, loadMetroGdpPerCapita } from 'redux/modules/metroGdpData'
import { loadMetroScores } from 'redux/modules/metroScoresData'
import classes from 'styles/sitewide/index.scss'
import LineGraph from 'components/graphs/SimpleLineGraph'
impo... |
packages/material-ui-icons/src/HdSharp.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M21 3H3v18h18V3zM11 15H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-4V9zm1.5 4.5h2v-3h-2v3z" /></React.Fragment>
,... |
src/ResumeDownloads.js | ZacharyCalvert/ZachCalvert | import React, { Component } from 'react';
import AboutMe from './AboutMe';
var $ = require('jquery');
class ResumeDownloads extends Component {
downloadClick(event) {
var fromClick = event.target.id;
var targetLink = '#' + fromClick + '_download';
$(targetLink)[0].click();
}
render() {
return ... |
frontend/src/components/main.js | unicef/un-partner-portal | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { MuiThemeProvider, createMuiTheme } from 'material-ui/styles';
import MuiThemeProviderLegacy from 'material-ui-old/styles/MuiThemeProvider';
import { loadCountries } from '../reducers/countries'... |
packages/material-ui-icons/src/LockTwoTone.js | Kagami/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" opacity=".87" /></g><path d="M6 20h12V10H6v10zm6-7c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2z" opacity=".3" /><path d="M18 ... |
src/components/pages/Services/MobileApps.js | ESTEBANMURUZABAL/bananaStore | import React from 'react';
import { FormattedMessage } from 'react-intl';
import { Link } from 'react-router';
import IntlStore from '../../../stores/Application/IntlStore';
//import Toggle from 'react-toggle'
import intlData from './Services.intl';
export default class MobileApps extends React.Component {
state = {... |
node_modules/react-icons/fa/smile-o.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaSmileO = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m28.3 24q-0.8 2.7-3.1 4.3t-5.1 1.7-5-1.6-3.1-4.4q-0.2-0.6 0.1-1.1t0.8-0.7q0.6-0.2 1.1 0.1t0.7 0.8q0.6 1.8 2.1 2.9t3.3 1.1 3.4-1.1 2.1-2.9q0.2-0.5 0.7-0.8t1.1-0.1 0.8 0... |
components/header.js | halkeye/gavinmogan.com | 'use strict';
import React from 'react';
import Head from 'next/head';
import Link from 'next/link';
import PropTypes from 'prop-types';
export default class Header extends React.Component {
static get propTypes () {
return {
pathname: PropTypes.string.isRequired,
title: PropTypes.string,
descr... |
src/components/ContainerDetailsSubheader.react.js | scalopus/kitematic | import _ from 'underscore';
import React from 'react';
import shell from 'shell';
import metrics from '../utils/MetricsUtil';
import ContainerUtil from '../utils/ContainerUtil';
import classNames from 'classnames';
import containerActions from '../actions/ContainerActions';
import dockerMachineUtil from '../utils/Docke... |
src/components/Tr.js | ua-oira/react-super-responsive-table | import React from 'react';
import { Consumer } from '../utils/tableContext';
import TrInner from './TrInner';
const Tr = (props) => (
<Consumer>{(headers) => <TrInner {...props} headers={headers} />}</Consumer>
);
export default Tr;
|
ajax/libs/vkui/4.25.0/cssm/hooks/useBrowserInfo.min.js | cdnjs/cdnjs | import*as React from"react";import{SSRContext}from"../lib/SSR";import{computeBrowserInfo}from"../lib/browser";function useBrowserInfo(){var o=React.useContext(SSRContext);return o.browserInfo||computeBrowserInfo(o.userAgent)}export{useBrowserInfo}; |
webpack/components/TemplateSyncResult/TemplateSyncResult.js | mmoll/foreman_templates | import React from 'react';
import { isEmpty } from 'lodash';
import PropTypes from 'prop-types';
import EmptySyncResult from './components/EmptySyncResult';
import FinishedSyncResult from './components/FinishedSyncResult';
import './TemplateSyncResult.scss';
const TemplateSyncResult = ({
syncResult: { templates, r... |
node_modules/@material-ui/core/esm/Backdrop/Backdrop.js | pcclarke/civ-techs | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import withStyles from '../styles/withStyles';
import Fade from '../Fade';
export var styl... |
src/esm/components/structure/cards/reward-card/components/amount.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["className", "suffix", "children"];
import React from 'react';
import classNames from 'classnames';
import { Text } from '../../../../typography/text';... |
javascript/src/index.js | unclecheese/silverstripe-kickassets | require('../../css/bootstrap.css');
require('../../css/kickassets.less');
import React from 'react';
import Router from 'react-router';
import KickAssets from './pages/KickAssets';
import Main from './pages/Main';
import Browse from './pages/Browse';
import ItemEditFormContainer from './containers/ItemEditFormContaine... |
src/nls/ro/strings.js | Rynaro/brackets | /*
* Copyright (c) 2012 - present Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* ... |
packages/material-ui-icons/src/DoubleArrowOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M15.5 5H11l5 7-5 7h4.5l5-7z" /><path d="M8.5 5H4l5 7-5 7h4.5l5-7z" /></React.Fragment>
, 'DoubleArrowOutlined');
|
packages/material-ui-icons/src/FileCopySharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M16 1H2v16h2V3h12V1zm-1 4l6 6v12H6V5h9zm-1 7h5.5L14 6.5V12z" />
, 'FileCopySharp');
|
src/client/components/Header/index.js | mweslander/veery | // Imports
import React from 'react';
// CSS
import './index.scss';
// Images
import logoImg from './logo-img.svg';
/*
Header
<Header/>
*/
const Header = () => (
<header className="c-header">
<img className="c-header__img" src={logoImg} alt="Veery logo" />
<h1 className="c-header__type">Veery</h1>
<... |
www/imports/mapPage/init/lazyLoader.js | terraswat/hexagram |
// lazyLoader.js
// Load components as they are needed.
// 'create*' routines should destroy their react instance and the container upon
// hide.
// 'init*' routines should leave the component instance there forever.
// TODO what we really want here is a way to dynamically load a react component
// from a react ... |
test/specs/modules/Dimmer/Dimmer-test.js | ben174/Semantic-UI-React | import faker from 'faker'
import React from 'react'
import Portal from 'src/addons/Portal/Portal'
import Dimmer from 'src/modules/Dimmer/Dimmer'
import DimmerDimmable from 'src/modules/Dimmer/DimmerDimmable'
import * as common from 'test/specs/commonTests'
import { sandbox } from 'test/utils'
describe('Dimmer', () =>... |
Js/Ui/Components/Modal/Components/Body.js | Webiny/Webiny | import React from 'react';
import Webiny from 'webiny';
import styles from '../styles.css';
class Body extends Webiny.Ui.Component {
}
Body.defaultProps = {
noPadding: false,
style: null,
renderer() {
const {styles, style} = this.props;
return (
<div style={style} className={t... |
ajax/libs/babel-core/5.5.0/browser-polyfill.min.js | tjbp/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... |
site/src/components/SimpleExample.js | pbeshai/react-taco-table | import React from 'react';
import { TacoTable, DataType, SortDirection, Formatters,
Summarizers, TdClassNames } from 'react-taco-table';
import data from '../data/spelling.json';
import './SimpleExample.scss';
const columns = [
{
id: 'speller',
type: DataType.String,
header: 'Speller',
renderer(c... |
src/store/createStore.js | GKotsovos/WebBanking-Front-End | import { applyMiddleware, compose, createStore } from 'redux'
import thunk from 'redux-thunk'
import { browserHistory } from 'react-router'
import makeRootReducer from './reducers'
import { updateLocation } from './location'
export default (initialState = {}) => {
// =================================================... |
packages/material-ui-icons/src/HdrStrongRounded.js | Kagami/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="M17 6c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zM5 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 ... |
ajax/libs/react/0.12.2/react.min.js | thisispiers/cdnjs | /**
* React v0.12.2
*
* Copyright 2013-2014, 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.
*... |
ajax/libs/angular-google-maps/2.1.0-X.5/angular-google-maps_dev_mapped.js | AlexisArce/cdnjs | /*! angular-google-maps 2.1.0-X.5 2015-03-10
* 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... |
src/containers/copy.js | nushicoco/books_rabbit | import React, { Component } from 'react';
import { connect } from 'react-redux';
import BookListItem from '../components/book_list_item';
class BookList extends Component {
renderList() {
return this.props.books.map((book) => {
return (<BookListItem key={book.id} book={book}/>);
})
... |
ajax/libs/ionic/0.9.25/js/ionic.js | alexmojaki/cdnjs | /*!
* Copyright 2014 Drifty Co.
* http://drifty.com/
*
* Ionic, v0.9.25
* A powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
* By @maxlynch, @helloimben, @adamdbradley <3
*
* Licensed under the MIT license. Please see LICENSE for more information.
*
*/
;
// Create namespaces
window.ioni... |
react/features/chat/components/web/MessageRecipient.js | jitsi/jitsi-meet | // @flow
import React from 'react';
import { translate } from '../../../base/i18n';
import { Icon, IconCancelSelection } from '../../../base/icons';
import { connect } from '../../../base/redux';
import AbstractMessageRecipient, {
_mapDispatchToProps,
_mapStateToProps,
type Props
} from '../AbstractMessag... |
ajax/libs/yui/3.4.0pr1/loader/loader-base-debug.js | freak3dot/cdnjs | YUI.add('loader-base', function(Y) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
if (!YUI.Env[Y.version]) {
(function() {
var VERSION = Y.version,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN_BASE = Y.Env.base,
GALLERY_VERSI... |
src/components/header.js | pedroeusebio/draftReactNative | import React, { Component } from 'react';
import { AppRegistry, Text, View, StyleSheet } from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome.js';
export class Header extends Component {
render() {
const { triggerLeft, triggerRight, title } = this.props;
return (
<View style={s... |
src/index.js | JamieCrisman/maru | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
app/javascript/mastodon/features/following/index.js | lynlynlynx/mastodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debounce } from 'lodash';
import LoadingIndicator from '../../components/loading... |
ajax/libs/primereact/6.5.1/picklist/picklist.esm.js | cdnjs/cdnjs | import React, { Component } from 'react';
import { classNames, Ripple, ObjectUtils, DomHandler } from 'primereact/core';
import { Button } from 'primereact/button';
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function")... |
packages/material-ui-icons/src/CardMembershipRounded.js | Kagami/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="M20 2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h4v5l4-2 4 2v-5h4c1.11 0 2-.89 2-2V4c0-1.11-.89-2-2-2zm0 13H4v-2h16v2zm0-5H4V5c0-.55.45-1 1-1h14c... |
src/js/components/app.js | mark-riley/react-starter | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<div>
{ this.props.children }
</div>
);
}
}
|
src/entypo/Rocket.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--Rocket';
let EntypoRocket = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M11.933,13.069c0,0,7.059-5.094,6.276-10.924c-0.017-0.127-0.059-0.213-0.112-0.268c-0.054-0.055-0.137-0... |
src/routes/Project/components/Team/Team.js | prescottprue/portfolio | import React from 'react'
import PropTypes from 'prop-types'
import Avatar from 'material-ui/svg-icons/social/person'
import classes from './Team.scss'
export const Team = ({ list }) => (
<div className={classes.container}>
{list.map((person, i) => {
const avatar =
person.icon && person.icon.url ?... |
src/components/Scroller.js | codaco/Network-Canvas | import React, { Component } from 'react';
import { connect } from 'react-redux';
import cx from 'classnames';
import PropTypes from 'prop-types';
class Scroller extends Component {
constructor(props) {
super(props);
this.scrollable = props.forwardedRef || React.createRef();
}
handleScroll = () => {
... |
ajax/libs/yui/3.10.1/event-custom-base/event-custom-base.js | fbender/cdnjs | YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @mo... |
admin/client/App/elemental/Modal/body.js | giovanniRodighiero/cms | import React from 'react';
import { css } from 'glamor';
import theme from '../../../theme';
function ModalBody ({
className,
...props
}) {
return (
<div
className={css(classes.body, className)}
{...props}
/>
);
};
const classes = {
body: {
paddingBottom: theme.modal.padding.body.vertical,
paddingL... |
blueocean-material-icons/src/js/components/svg-icons/action/assignment-returned.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionAssignmentReturned = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1... |
examples/tree-view/index.js | neighborhood999/redux | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import Node from './containers/Node'
import configureStore from './store/configureStore'
import generateTree from './generateTree'
const tree = generateTree()
const store = configureStore(tree)
... |
src/svg-icons/image/style.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageStyle = (props) => (
<SvgIcon {...props}>
<path d="M2.53 19.65l1.34.56v-9.03l-2.43 5.86c-.41 1.02.08 2.19 1.09 2.61zm19.5-3.7L17.07 3.98c-.31-.75-1.04-1.21-1.81-1.23-.26 0-.53.04-.79.15L7.1 5.95c-.75.31-1.... |
packages/material-ui-icons/src/AddToQueue.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let AddToQueue = props =>
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-7v2h-3v3h-2v-3H8v-2h3V7h2v3h3z" />
... |
ajax/libs/babel-core/5.0.2/browser.min.js | perfect-pixell/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.babel=e()}}(function(){var e,t,n;return function r(e,t,... |
src/grid/Grid.js | fengshanjian/react-native-komect-uikit | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { View, StyleSheet, TouchableOpacity } from 'react-native';
import Row from './Row';
class Grid extends Component {
styles = StyleSheet.create({
container: {
flex: 1,
flexDirection: this.isRow() ? 'column' : 'row',
... |
test/InputSpec.js | Cellule/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Input from '../src/Input';
import Button from '../src/Button';
import DropdownButton from '../src/DropdownButton';
import MenuItem from '../src/MenuItem';
import {shouldWarn} from './helpers';
describe('Input', function () {
it(... |
examples/async/index.js | edge/redux | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from './containers/App'
import configureStore from './store/configureStore'
const store = configureStore()
render(
<Provider store={store}>
<App />
</Provider>,
document.get... |
src/js/menu/test/test.js | HBM/md-components | /* global describe, it */
import assert from 'assert'
import React from 'react'
import {Menu} from '../'
import {mount} from 'enzyme'
function noop () {}
describe('Menu', () => {
it('should render hidden by default', () => {
const wrapper = mount(<Menu onClick={noop} />)
assert.equal(wrapper.find('.mdc-Men... |
src/components/common/admin/story/StoryDetailsContainer.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { injectIntl, FormattedMessage } from 'react-intl';
import { push } from 'react-router-redux';
import { connect } from 'react-redux';
import { Grid, Row, Col } from 'react-flexbox-grid/lib';
import StorySearchForm from '../form/StorySearchForm';
impo... |
app/javascript/mastodon/features/introduction/index.js | tootsuite/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ReactSwipeableViews from 'react-swipeable-views';
import classNames from 'classnames';
import { connect } from 'react-redux';
import { FormattedMessage } from 'react-intl';
import { closeOnboarding } from '../../actions/onboarding';
import screenHell... |
src/Redux/sortbyprice.js | millerman86/CouponProject | import React from 'react';
|
src/svg-icons/notification/airline-seat-flat-angled.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatFlatAngled = (props) => (
<SvgIcon {...props}>
<path d="M22.25 14.29l-.69 1.89L9.2 11.71l2.08-5.66 8.56 3.09c2.1.76 3.18 3.06 2.41 5.15zM1.5 12.14L8 14.48V19h8v-1.63L20.52 19l.69-1.89-19.... |
talk_4ndr01d3/js/jquery/jQRangeSlider-5.1/jQDateRangeSlider-min.js | biojs/talks | /*! jQRangeSlider 5.1 - 2013-03-24 - Copyright (C) Guillaume Gautreau 2012 - MIT and GPLv3 licenses.*/(function(t){"use strict";t.widget("ui.rangeSliderMouseTouch",t.ui.mouse,{_mouseInit:function(){var e=this;t.ui.mouse.prototype._mouseInit.apply(this),this._mouseDownEvent=!1,this.element.bind("touchstart."+this.widget... |
client/component/log-page/index.js | johngodley/redirection | /**
* External dependencies
*/
import React from 'react';
/**
* Internal dependencies
*/
import Table from 'component/table';
import TableNav from 'component/table/navigation';
import LogFilters from 'component/log-page/log-filters';
import BulkActions from 'component/table/bulk-actions';
import LogDisplay from '... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.