path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/client/components/common/asyncComponent.js | uuchat/uuchat | import React from 'react';
export default (loader, collection) => (
class AsyncComponent extends React.Component {
constructor(props) {
super(props);
this.Component = null;
this.state = { Component: AsyncComponent.Component };
}
componentDidMount() {
... |
client/components/App/index.js | phytertek/mern-community | import React from 'react'
import { NavigationBar } from '../'
import FontIcon from 'material-ui/FontIcon';
import {BottomNavigation, BottomNavigationItem} from 'material-ui/BottomNavigation';
import IconLocationOn from 'material-ui/svg-icons/communication/location-on';
const style = {
fontFamily: 'Roboto,... |
ajax/libs/video.js/5.0.0-rc.76/video.novtt.js | vetruvet/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.videojs = f()}... |
lib/ui/example/client/preview.js | nfl/react-storybook | import React from 'react';
const mainStyle = {
padding: 10,
fontFamily: 'arial',
};
export default class Preview extends React.Component {
constructor(globalState) {
super();
this.state = {};
this.globalState = globalState;
this.globalState.on('change', (kind, story) => {
if (this.mounted... |
app/jsx/gradebook/default_gradebook/components/content-filters/GradingPeriodFilter.js | djbender/canvas-lms | /*
* Copyright (C) 2019 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
www/js/jquery-1.10.1.min.js | nicowcorbiere/My-weather-dressing | /*! jQuery v1.10.1 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.1.min.map
*/
(function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.1",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
frontend/src/admin/common/tables/SortedTable.js | rabblerouser/core | import React, { Component } from 'react';
import styled from 'styled-components';
import Table from './Table';
import sortColumn from './sortColumn';
const TableAside = styled.aside`
padding: 15px;
font-size: 14px;
background-color: ${props => props.theme.lightGrey};
font-style: italic;
`;
class Sor... |
ajax/libs/angular.js/1.0.4/angular-scenario.js | idleberg/cdnjs | /*!
* jQuery JavaScript Library v1.7.2
* 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.
... |
packages/material-ui-icons/src/OutlinedFlagTwoTone.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="M14 6l-1-2H5v17h2v-7h5l1 2h7V6h-6zm4 8h-4l-1-2H7V6h5l1 2h5v6z" /></React.Fragment>
, 'OutlinedFlagTwoTone');
|
packages/icons/src/md/action/List.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdList(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M6 26h4v-4H6v4zm0 8h4v-4H6v4zm0-16h4v-4H6v4zm8 8h28v-4H14v4zm0 8h28v-4H14v4zm0-20v4h28v-4H14z" />
</IconBase>
);
}
export default MdList;
|
node_modules/react-router/umd/ReactRouter.js | ddigioia/react_router_practice_1 | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReactRouter"] = fac... |
public/assets/js/node_modules/react-redux-form/test/control-component-spec.js | ngocson8b/6jar | /* eslint react/no-multi-comp:0 react/jsx-no-bind:0 */
import { assert } from 'chai';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import { applyMiddleware, combineReducers, createStore } from 'redux';
import { Provider } from 'react-redux';
import thunk from 'redux-thunk';
import { cont... |
assets/javascripts/kitten/components/interaction/upload/documents-status-box/index.js | KissKissBankBank/kitten | import React from 'react'
import PropTypes from 'prop-types'
import styled from 'styled-components'
import classNames from 'classnames'
import COLORS from '../../../../constants/colors-config'
import { pxToRem } from '../../../../helpers/utils/typography'
import { Text } from '../../../typography/text'
import { ClockCi... |
src/js/components/icons/base/DocumentZip.js | odedre/grommet-final | /**
* @description DocumentZip SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
*... |
src/Card/CardActions.js | ngbrown/material-ui | import React, {Component, PropTypes} from 'react';
function getStyles() {
return {
root: {
padding: 8,
position: 'relative',
},
action: {
marginRight: 8,
},
};
}
class CardActions extends Component {
static propTypes = {
/**
* If true, a click on this card component ex... |
www/page-templates/index.js | KyleAMathews/react-headroom | import React from 'react'
import { Container } from 'react-responsive-grid'
import Headroom from '../../src/index'
import { rhythm } from 'utils/typography'
const IndexRoute = React.createClass({
propTypes () {
return {
children: React.PropTypes.any,
}
},
render () {
return (
<div style... |
UpgradeIt/umbraco_client/Installer/Js/jquery.1.4.4.js | v-five/upgradeit | /*!
* jQuery JavaScript Library v1.4.4
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
jrt/src/components/app.js | wizzardo/jrtorrent | import React from 'react';
import Header from './header';
import Home from '../routes/home';
import Dialog from "./Dialog";
const App = () => (
<div id="app">
<Header/>
<Home/>
<Dialog/>
</div>
)
export default App;
|
cerberus-dashboard/src/components/RoleSelect/RoleSelect.js | Nike-Inc/cerberus | /*
* Copyright (c) 2020 Nike, inc.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
node_modules/react-icons/md/local-library.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdLocalLibrary = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 13.4c-2.7 0-5-2.3-5-5s2.3-5 5-5 5 2.2 5 5-2.3 5-5 5z m0 5.8c3.9-3.7 9.2-5.8 15-5.8v18.2c-5.8 0-11.1 2.3-15 6-3.9-3.7-9.2-6-15-6v-18.2c5.8 0 11.1 2.1 15 5.8z"... |
ajax/libs/falcor/0.0.12/Falcor.js | dc-js/cdnjs | /*!
* Copyright 2014 Netflix, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... |
src/routes/chart/lineChart/index.js | china2008qyj/DVA-DEMO | import React from 'react'
import PropTypes from 'prop-types'
import { Row, Col, Card, Button } from 'antd'
import Container from '../Container'
import {
LineChart,
Line,
XAxis,
YAxis,
CartesianGrid,
Tooltip,
Legend,
} from 'recharts'
const data = [
{
name: 'Page A',
uv: 4000,
pv: 2400,
... |
src/decorators/withViewport.js | zhangmhao/circle | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default si... |
ajax/libs/yui/3.17.0/event-custom-base/event-custom-base-debug.js | KevinSheedy/cdnjs | /*
YUI 3.17.0 (build ce55cc9)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.En... |
frontend/src/Settings/CustomFormats/CustomFormats/EditCustomFormatModalContent.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Card from 'Components/Card';
import FieldSet from 'Components/FieldSet';
import Form from 'Components/Form/Form';
import FormGroup from 'Components/Form/FormGroup';
import FormInputGroup from 'Components/Form/FormInputGroup';
import Fo... |
node_modules/react-icons/md/local-bar.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdLocalBar = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m12.4 11.6h15.2l2.9-3.2h-21z m22.6-3.2l-13.4 15v8.2h8.4v3.4h-20v-3.4h8.4v-8.2l-13.4-15v-3.4h30v3.4z"/></g>
</Icon>
)
export default MdLocalBar
|
ajax/libs/react-router/0.11.1/react-router.min.js | r3x/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... |
frontend/src/components/Filters.js | OwenRay/Remote-MediaServer | import React, { Component } from 'react';
/* global $ */
import { Button, Col, Input, Row, SideNav, Autocomplete } from 'react-materialize';
import { Handle, Range } from 'rc-slider';
import 'rc-slider/assets/index.css';
let genres = [];
class ButtonMenu extends Component {
constructor() {
super();
if (!gen... |
utils/typography.js | machikoyasuda/la-gos | import ReactDOM from 'react-dom/server'
import React from 'react'
import Typography from 'typography'
import { GoogleFont } from 'react-typography'
import CodePlugin from 'typography-plugin-code'
const options = {
googleFonts: [
{
name: 'Work Sans',
styles: [
'600',
],
},
{
... |
src/main.js | OwlAford/react-blade-mobile | import React from 'react'
import ReactDOM from 'react-dom'
// createStore创建状态管理树
import createStore from 'STORE/createStore'
// 应用容器模块
import AppContainer from 'CONTAINER/AppContainer'
// 创建初始化状态容器,指向一个window全局变量
const initialState = window.___INITIAL_STATE__
// 创建一个全局的store状态管理器
const store = createStore(initialState... |
ajax/libs/react/0.13.0-beta.2/react-with-addons.js | nareshs435/cdnjs | /**
* React (with addons) v0.13.0-beta.2
*/
!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.React=e... |
ajax/libs/clappr/0.0.86/clappr.js | camelotceo/cdnjs | require=(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)... |
tools/webpack.app_config.js | ChingxWando/2017-07-23_bubble-dragons | // App-specific back-end Webpack config should be here
const serverConfig = {
entry: {
index: [
'babel-polyfill',
'./src/server/index.js'
]
}
};
// App-specific web front-end Webpack config should be here
const webConfig = {
entry: {
bundle: [
'babel-polyfill',
'./src/client/i... |
Public/Home/Js/Jquery.js | fetjq/jquery | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
js/src/ui/Form/FileSelect/fileSelect.spec.js | nipunn1313/parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any lat... |
react/gameday2/gameday2.js | bdaroz/the-blue-alliance | import 'babel-polyfill'
import React from 'react'
import ReactGA from 'react-ga'
import { Provider } from 'react-redux'
import thunk from 'redux-thunk'
import { createStore, applyMiddleware, compose } from 'redux'
import ReactDOM from 'react-dom'
import queryString from 'query-string'
import injectTapEventPlugin from '... |
ajax/libs/react/15.2.1/react-dom.js | tonytomov/cdnjs | /**
* ReactDOM v15.2.1
*
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directo... |
src/svg-icons/editor/format-underlined.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatUnderlined = (props) => (
<SvgIcon {...props}>
<path d="M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z"/>
</SvgIcon>
);
EditorF... |
src/svg-icons/action/gif.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionGif = (props) => (
<SvgIcon {...props}>
<path d="M11.5 9H13v6h-1.5zM9 9H6c-.6 0-1 .5-1 1v4c0 .5.4 1 1 1h3c.6 0 1-.5 1-1v-2H8.5v1.5h-2v-3H10V10c0-.5-.4-1-1-1zm10 1.5V9h-4.5v6H16v-2h2v-1.5h-2v-1z"/>
</Svg... |
app/components/CraftersPage.js | stratigos/stormsreach | /******************************************************************************
* Page to list available Crafter Avatars.
******************************************************************************/
import React from 'react';
import CraftersContainer from '../containers/CraftersContainer';
import HomepageLink fro... |
ajax/libs/analytics.js/2.3.16/analytics.js | NamPNQ/cdnjs | (function outer(modules, cache, entries){
/**
* Global
*/
var global = (function(){ return this; })();
/**
* Require `name`.
*
* @param {String} name
* @param {Boolean} jumped
* @api public
*/
function require(name, jumped){
if (cache[name]) return cache[name].exports;
if (mo... |
examples/cra-storybook/src/stories/index.js | enjoylife/storybook | import React from 'react';
import EventEmiter from 'eventemitter3';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { linkTo } from '@storybook/addon-links';
import WithEvents from '@storybook/addon-events';
import Button from './Button';
import Welcome from '.... |
src/js/components/common/forms/formcheckbox.js | michaelatmender/gui | import React from 'react';
import Checkbox from '@mui/material/Checkbox';
import FormControlLabel from '@mui/material/FormControlLabel';
export default class FormCheckbox extends React.Component {
constructor(props, context) {
super(props, context);
this.state = {
checked: this.props.checked,
//... |
actor-apps/app-web/src/app/components/modals/invite-user/ContactItem.react.js | it33/actor-platform | import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import classnames from 'classnames';
import AvatarItem from 'components/common/AvatarItem.react';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class ContactItem extends React.Com... |
src/components/Users/Users.js | caijinchun/hsweb-antd | import React from 'react';
import { connect } from 'dva';
import { Table, Pagination, Popconfirm, Button } from 'antd';
import { routerRedux } from 'dva/router';
import styles from './Users.css';
import { PAGE_SIZE } from '../../constants';
import UserModal from './UserModal';
function Users({ dispatch, list: dataSour... |
src/icons/font/LinkIcon.js | skystebnicki/chamel | import React from 'react';
import PropTypes from 'prop-types';
import FontIcon from '../../FontIcon';
import ThemeService from '../../styles/ChamelThemeService';
/**
* Link button
*
* @param props
* @param context
* @returns {ReactDOM}
* @constructor
*/
const LinkIcon = (props, context) => {
let theme =
c... |
src/svg-icons/communication/chat.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationChat = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"/>
</SvgIcon>
);
Communicatio... |
app/javascript/mastodon/features/notifications/components/notification.js | nonoz/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import StatusContainer from '../../../containers/status_container';
import AccountContainer from '../../../containers/account_container';
import { FormattedMessage } from 'react-intl';
import Permalink from '../../../components/perma... |
app/containers/NotFoundPage/index.js | brobey8/toomanynotes | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*/
import React from 'react';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import Button from 'components/Button';
import H1 from 'components/H1';
export function NotFound(pro... |
ajax/libs/yui/3.14.0/event-custom-base/event-custom-base-coverage.js | extend1994/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/event-custom-base/event-custom-base.js']) {
__coverage__['build/event-custom-base/event-custom-base.js'] = {"path":"build/event-custom-base/event-custom-base.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,... |
public/js/components/TestComp.react.js | TRomesh/Coupley | import React from 'react';
const TestComp = React.createClass({
render () {
return (
<div>
Alo alo !
</div>
);
},
});
export default TestComp; |
pages/lab/about.js | cherniavskii/material-ui | import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from 'docs/src/pages/lab/about/about.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default withRoot(Page);
|
src/main/resources/public/js/components/CSVReader.js | ozwillo/ozwillo-portal | import React from 'react';
import PropTypes from 'prop-types';
import Tools from "../util/tools";
import { i18n } from "../config/i18n-config"
export default class CSVReader extends React.Component {
constructor() {
super();
this._tools = new Tools();
}
state = {
error: null,
... |
src/components/Home.js | HZ-1/HZ-1.github.io | import React, { Component } from 'react';
import PropTypes from 'prop-types';
export default class Home extends Component {
constructor(props) {
super(props);
this.state = {
age: props.initialAge,
status: 0,
homeLink: props.initialName
}
setTimeout(() => {
this.setState({
... |
node_modules/react-icons/io/social-dribbble-outline.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const IoSocialDribbbleOutline = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 5c8.3 0 15 6.7 15 15s-6.7 15-15 15-15-6.7-15-15 6.7-15 15-15z m9.5 6.9c-1.3 1.9-3.6 3.6-6.6 5 0.4 0.8 0.7 1.5 1 2.4 2.6-0.2 5.9-0.3 8.6-0.2-0.2-2.7-... |
ajax/libs/yui/3.7.3/event-custom-base/event-custom-base-debug.js | smcguinness/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... |
node_modules/babel-core/lib/transformation/file/options/removed.js | preetam-yadav/tncReactApp | "use strict";
module.exports = {
"auxiliaryComment": {
"message": "Use `auxiliaryCommentBefore` or `auxiliaryCommentAfter`"
},
"blacklist": {
"message": "Put the specific transforms you want in the `plugins` option"
},
"breakConfig": {
"message": "This is not a necessary option in Babel 6"
},
... |
node_modules/react-bootstrap/es/Button.js | Chen-Hailin/iTCM.github.io | import _Object$values from 'babel-runtime/core-js/object/values';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-... |
files/core-js/0.8.1/shim.js | Craga89/jsdelivr | /**
* Core.js 0.8.1
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(undefined){
var __e = null, __g = null;
(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... |
fields/types/datetime/DatetimeField.js | cermati/keystone | import DateInput from '../../components/DateInput';
import Field from '../Field';
import moment from 'moment';
import React from 'react';
import {
Button,
FormField,
FormInput,
FormNote,
InlineGroup as Group,
InlineGroupSection as Section,
} from '../../../admin/client/App/elemental';
module.exports = Field.crea... |
files/core-js/1.1.1/shim.js | iMega/jsdelivr | /**
* core-js 1.1.1
* 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... |
src/Shared/Key.js | reactotron/reactotron | import React from 'react'
import PropTypes from 'prop-types'
import Colors from '../Theme/Colors'
const Styles = {
container: {
color: Colors.background,
borderRadius: 4,
backgroundColor: Colors.foreground,
padding: '4px 12px',
fontWeight: 'bold',
borderBottom: `2px solid ${Colors.highlight}`... |
node_modules/react-icons/ti/thermometer.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const TiThermometer = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m21.7 25.1v-9.3c0-0.4-0.4-0.8-0.9-0.8s-0.8 0.4-0.8 0.8v9.3c-1.4 0.4-2.5 1.7-2.5 3.2 0 1.9 1.5 3.4 3.3 3.4s3.4-1.5 3.4-3.4c0-1.5-1.1-2.8-2.5-3.2z m5-2.7v-13.2c0-3.... |
node_modules/reflexbox/docs/components/TweetButton.js | HasanSa/hackathon |
import React from 'react'
import { withReflex } from '../../src'
const script = `
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?"http":"https";if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,f... |
ajax/libs/flocks.js/1.4.0/flocks.min.js | magoni/cdnjs | if("undefined"===typeof React)var React=require("react");
(function(){function h(a){return"[object Array]"===Object.prototype.toString.call(a)}function l(a){return"undefined"===typeof a}function v(a){return"object"!==typeof a||"[object Array]"===Object.prototype.toString.call(a)?!1:!0}function b(a,c){if("string"===type... |
ajax/libs/babel-core/5.8.8/browser-polyfill.min.js | rlugojr/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... |
frontend/src/Settings/Metadata/MetadataProvider/MetadataProviderConnector.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { clearPendingChanges } from 'Store/Actions/baseActions';
import { fetchMetadataProvider, saveMetadataProvider, setMetadataProviderValue } from 'Store/Ac... |
node_modules/react-bootstrap/es/Pagination.js | geng890518/editor-ui | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/svg-icons/av/not-interested.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvNotInterested = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13.85 20 12... |
graph_ui/__tests__/ExportURL-test.js | rwhite226/Graphalyzer | 'use strict';
jest.unmock('../js/ExportURL');
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import ExportURL from '../js/ExportURL';
describe('ExportURL', () => {
var URL = "http://graphalyzer.wk-dev.wdesk.org/"
const exportURL = TestUtils.renderI... |
examples/with-redux-reselect-recompose/components/clock.js | arunoda/next.js | import React from 'react'
import PropTypes from 'prop-types'
import { compose, pure, setDisplayName, setPropTypes } from 'recompose'
const format = t => `${pad(t.getUTCHours())}:${pad(t.getUTCMinutes())}:${pad(t.getUTCSeconds())}`
const pad = n => n < 10 ? `0${n}` : n
const Clock = ({ lastUpdate, light }) =>
<div ... |
app/components/BillList/index.js | balintsoos/app.rezsi.io | /**
*
* BillList
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import BillListItem from 'components/BillListItem';
import ListPlaceholder from 'components/ListPlaceholder';
function BillList(props) {
if (!props.bills.length && props.placeholder) {
return (
<ListPlaceholder>
... |
src/parser/paladin/holy/modules/talents/AuraOfMercy.js | FaideWW/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatNumber } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import Stati... |
src/scenes/home/resetPassword/setPassword/setPassword.js | sethbergman/operationcode_frontend | import React, { Component } from 'react';
import axios from 'axios';
import { Redirect } from 'react-router-dom';
import PropTypes from 'prop-types';
import Form from 'shared/components/form/form';
import FormPassword from 'shared/components/form/formPassword/formPassword';
import FormButton from 'shared/components/for... |
examples/huge-apps/routes/Calendar/components/Calendar.js | chunwei/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>
... |
ajax/libs/vue-material/1.0.0-beta-4/components/MdList/index.js | jonobr1/cdnjs | !(function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"));else if("function"==typeof define&&define.amd)define(["vue"],t);else{var n=t("object"==typeof exports?require("vue"):e.Vue);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}})(this,(function(e){return (funct... |
src/Components/Column/Column.js | apiaryio/attributes-kit | import React from 'react';
import PropTypes from 'prop-types';
import Radium from 'radium';
import merge from 'lodash/merge';
@Radium
class Column extends React.Component {
static propTypes = {
style: PropTypes.object,
children: PropTypes.oneOfType([
PropTypes.object,
PropTypes.array,
]),
}... |
app/components/ErrorLine.js | kidaa/fil | import React from 'react';
export default class ErrorLine extends React.Component {
render() {
let block = "console__error-line",
error = this.props.error;
return (
<div className={block}>
<pre className={block + "__description"}>
{error}
</pre>
</div>
);
... |
ajax/libs/semantic-ui-react/0.56.5/semantic-ui-react.min.js | dakshshah96/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],t):"object"==typeof exports?exports.semanticUIReact=t(require("React"),require("ReactDOM")):e.semanticUIReact=t(e.React,e.ReactDOM)}(t... |
src/components/options/OptionsContainer.js | secretin/secretin-app | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import PropTypes from 'prop-types';
import ShortLoginShow from 'components/options/ShortLoginShow';
import QRCodeShow from 'components/options/QRCodeShow';
import RescueCodesShow from 'component... |
ajax/libs/reactable/0.9.6/reactable.min.js | wil93/cdnjs | "use strict";(function(a,b){if(typeof define==="function"&&define.amd){define(["react"],b)}else{if(typeof exports==="object"){module.exports=b(require("react"))}else{a.Reactable=b(a.React)}}}(this,function(b){var e={};if(!Array.prototype.map){Array.prototype.map=function(y,x){var r,q,s;if(this==null){throw new TypeErro... |
src/containers/HomePage/index.stories.js | ghrecommender/ghrecommender-frontend | import React from 'react'
import { MemoryRouter } from 'react-router-dom'
import HomePage from './index'
export default {
title: 'Pages|Home',
decorators: [story => <MemoryRouter>{story()}</MemoryRouter>],
}
export const homePage = () => <HomePage />
|
ajax/libs/swagger-ui/3.44.1/swagger-ui-es-bundle-core.js | cdnjs/cdnjs | /*! For license information please see swagger-ui-es-bundle-core.js.LICENSE.txt */
module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.definePrope... |
src/addons/transitions/__tests__/ReactCSSTransitionGroup-test.js | panhongzhi02/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... |
src/app/Translator.js | TimCliff/steemit.com | import React from 'react';
import { connect } from 'react-redux';
import { IntlProvider, addLocaleData } from 'react-intl';
import en from 'react-intl/locale-data/en';
import es from 'react-intl/locale-data/es';
import ru from 'react-intl/locale-data/ru';
import fr from 'react-intl/locale-data/fr';
import it from 'reac... |
ajax/libs/react/0.5.1/react-with-addons.js | jtangelder/cdnjs | /**
* React (with addons) v0.5.1
*/
!function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.React=e():"undefined"!=typeof global?global.React=e():"undefined"!=typeof self&&(self.React=e())}(function(){var define,module,exports;
return ... |
src/svg-icons/maps/local-play.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalPlay = (props) => (
<SvgIcon {...props}>
<path d="M20 12c0-1.1.9-2 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2zm-4.... |
src/routes/Spots/components/SpotEditForm/PhotosField.js | ZeusTheTrueGod/WindsurfingNetwork-client | // @flow
import React from 'react';
import { Form, Button, Glyphicon } from 'react-bootstrap';
import { AddPhoto } from './AddPhoto';
import { type Photo } from '../../modules/spotEdit';
import { MonthSelectorField } from './MonthSelectorField';
import { Field } from 'redux-form';
type Props = {|
fields: any,
onRo... |
dva/wd/src/components/CocktailCard.js | imuntil/React | import React from 'react';
import { Icon } from 'antd-mobile'
import styles from './CocktailCard.css';
function CocktailCard({ more, width = '45%', data = {} }) {
return (
<div className={styles.normal} style={{ width }}>
<img src={data.src || require('../assets/ig-dir/cocktail-1.jpg')} alt="" />
<p ... |
app/javascript/mastodon/features/ui/components/modal_root.js | WitchesTown/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import BundleContainer from '../containers/bundle_container';
import BundleModalError from './bundle_modal_error';
import ModalLoading from './modal_loading';
import ActionsModal from './actions_modal';
import MediaModal from './media_modal';
import VideoMo... |
src/svg-icons/action/restore.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRestore = (props) => (
<SvgIcon {...props}>
<path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 ... |
src/components/MessageInput/MessageRow.js | nambawan/g-old | import React from 'react';
import PropTypes from 'prop-types';
// import { FormattedRelative } from 'react-intl';
import TableRow from '../TableRow';
function MessageRow({ messageType, messageObject, onClickMenu }) {
/* eslint-disable react/no-danger */
/* eslint-disable jsx-a11y/click-events-have-key-events */
... |
demo/demolist/Demo4.js | tinper-bee/bee-tabs | /**
*
* @title 位置
* @description tab页签头的位置,可以在['top','bottom','left','right']中选择。当页签宽度超过容器宽度时,可以左右、上下滑动,容纳更多标签。
*
*/
import React, { Component } from 'react';
import Select from "bee-select";
import Tabs from '../../src';
const {TabPane} = Tabs;
const {Option} = Select;
class Demo4 extends Component {
const... |
src/components/common/forms/MarkdownEditor.js | ESTEBANMURUZABAL/my-ecommerce-template | /**
* Imports
*/
import React from 'react';
// Flux
import ApplicationStore from '../../../stores/Application/ApplicationStore';
// Required components
import FormLabel from './FormLabel';
import Textarea from './Textarea';
// Instantiate logger
let debug = require('debug')('tienda765');
/**
* Component
*/
clas... |
ajax/libs/material-ui/4.9.6/esm/test-utils/getClasses.js | cdnjs/cdnjs | import * as React from 'react';
import createShallow from './createShallow';
var shallow = createShallow(); // Helper function to extract the classes from a styleSheet.
export default function getClasses(element) {
var useStyles = element.type.useStyles;
var classes;
function Listener() {
classes = useStyle... |
priv/frontend/index.js | losch/phoestit | 'use strict';
import 'babel-core/polyfill';
import React from 'react';
import ReactDom from 'react-dom';
import { Router, Route } from 'react-router'
import { combineReducers, createStore } from 'redux';
import { Provider } from 'react-redux';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import... |
ajax/libs/primereact/6.5.1/megamenu/megamenu.esm.js | cdnjs/cdnjs | import React, { Component } from 'react';
import { DomHandler, classNames, Ripple, ObjectUtils } from 'primereact/core';
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
function _defineProperties(target, ... |
packages/cxx/src/root.js | wangzuo/cxx | import React from 'react';
import { connect } from 'react-redux';
const Root = ({ router }) => <router.component />;
const select = state => ({
router: state.router
});
export default connect(select)(Root);
|
src/svg-icons/editor/show-chart.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorShowChart = (props) => (
<SvgIcon {...props}>
<path d="M3.5 18.49l6-6.01 4 4L22 6.92l-1.41-1.41-7.09 7.97-4-4L2 16.99z"/>
</SvgIcon>
);
EditorShowChart = pure(EditorShowChart);
EditorShowChart.displayNa... |
app/src/components/modals/ErrorModal.js | OpenTrons/opentrons_sdk | // @flow
import * as React from 'react'
import { Link } from 'react-router-dom'
import { AlertModal } from '@opentrons/components'
import { Portal } from '../portal'
import styles from './styles.css'
type Props = {|
heading?: ?string,
description: string,
close?: () => mixed,
closeUrl?: string,
error: { mes... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.