path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
indico/modules/events/editing/client/js/editing/timeline/FileManager/util.js | ThiefMaster/indico | // This file is part of Indico.
// Copyright (C) 2002 - 2021 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.
import globToRegExp from 'glob-to-regexp';
import _ from 'lodash';
import PropTypes from 'prop-types... |
packages/material-ui-icons/src/Brightness6.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6 6z" /></g>
, 'Brightness6');
|
files/yasgui/1.1.6/yasgui.bundled.min.js | l3dlp/jsdelivr | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r... |
owtf/webapp/src/containers/Sessions/SessionTable.js | owtf/owtf | /*
* This component manages the session table
* Handles the session changing and deletion functionality
* Renders the list of session in the form of a table
*/
import React from 'react';
import PropTypes from 'prop-types';
import { Pane, Table, Spinner, IconButton, Radio } from 'evergreen-ui';
import { filter }... |
src/components/ImageCollection.js | carlyleec/cc-react | import React from 'react'; // eslint-disable-line
import styled from 'styled-components';
const ImageCollection = styled.div`
display: flex;
flex-direction: row;
justify-content: space-around;
flex-wrap: wrap;
`;
export default ImageCollection;
|
src/docs/Docs.js | austinknight/ui-components | import React from 'react';
import styled from 'styled-components';
import { fontWeights } from 'styles';
import Navigation from './Navigation';
import ComponentPage from './ComponentPage';
import componentData from '../../config/componentData';
import logo from './img/insidesales-logo.svg';
export default class Docs ... |
src/giraffe-ui/petition/share.js | MoveOnOrg/mop-frontend | import React from 'react'
import { Link } from 'react-router'
import PropTypes from 'prop-types'
import MailSvg from '../svgs/mail.svg'
import FacebookSvg from '../svgs/facebook.svg'
import TwitterSvg from '../svgs/twitter.svg'
import LinkSvg from '../svgs/link.svg'
import cx from 'classnames'
export const Share = ({ ... |
app/components/events/comments/CommentItem.js | Block-and-Frame/block-and-frame | import React from 'react';
const Comment = (props) => {
return (
<div className="comment">
<div className="content">
<a className="author">{props.username}</a>
<div className="metadata">
<span className="date">{props.timeCreated}</span>
</div>
<div className="text"... |
node_modules/react-bootstrap/es/Navbar.js | superKaigon/TheCave | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
ajax/libs/material-ui/5.0.0-alpha.13/legacy/Unstable_TrapFocus/Unstable_TrapFocus.js | cdnjs/cdnjs | /* eslint-disable @typescript-eslint/naming-convention, consistent-return, jsx-a11y/no-noninteractive-tabindex */
import * as React from 'react';
import PropTypes from 'prop-types';
import { exactProp, elementAcceptingRef } from '@material-ui/utils';
import ownerDocument from '../utils/ownerDocument';
import useForkRef... |
packages/ringcentral-widgets/components/LogBasicInfo/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import callDirections from 'ringcentral-integration/enums/callDirections';
import callResults from 'ringcentral-integration/enums/callResults';
import telephonyStatuses from 'ringcentral-integration/enums/telephonyStatus... |
entry_types/scrolled/package/spec/frontend/ThemeIcon-spec.js | codevise/pageflow | import React from 'react';
import {ThemeIcon} from 'pageflow-scrolled/frontend';
import {renderInEntry} from '../support';
import '@testing-library/jest-dom/extend-expect';
describe("ThemeIcon", () => {
it('renders fallback icon by default', () => {
const {container} = renderInEntry(<ThemeIcon name="share" />)... |
src/components/Feedback/Feedback.js | xitman78/reactpro | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React, { Component } from 'react';
import withStyle... |
ajax/libs/react-data-grid/0.14.22/react-data-grid.js | emmy41124/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
src/svg-icons/action/translate.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTranslate = (props) => (
<SvgIcon {...props}>
<path d="M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.7... |
Examples/UIExplorer/js/XHRExampleOnTimeOut.js | nickhudkins/react-native | /**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* The examp... |
test/integration/image-component/default/pages/layout-responsive.js | JeromeFitz/next.js | import React from 'react'
import Image from 'next/image'
const Page = () => {
return (
<div>
<p>Layout Responsive</p>
<Image
id="responsive1"
src="/wide.png"
width="1200"
height="700"
layout="responsive"
/>
<Image
id="responsive2"
sr... |
ajax/libs/forerunnerdb/1.3.402/fdb-all.min.js | wil93/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... |
packages/material-ui-icons/src/SpaceBarTwoTone.js | lgollut/material-ui | import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M18 13H6V9H4v6h16V9h-2z" />
, 'SpaceBarTwoTone');
|
sites/default/files/js/js_sglfWVOe0fdlTmXmnCaGl8VgCQPUqJS_S9h-lJDNX4c.js | anandtoshniwal/D8-training | /*! jQuery v2.2.4 | (c) jQuery Foundation | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,fun... |
app/components/Dashboard/Advanced.js | acebusters/ab-web | import React from 'react';
import PropTypes from 'prop-types';
import Alert from 'components/Alert';
import Button from 'components/Button';
import H2 from 'components/H2';
import {
Pane,
Section,
Text,
ButtonGroup,
TabIcon as ModeIcon,
} from './styles';
// eslint-disable-next-line react/prefer-stateless-f... |
frontend/src/components/dialog/readme-dialog.js | miurahr/seahub | import React from 'react';
import PropTypes from 'prop-types';
import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import MarkdownViewer from '@seafile/seafile-editor/dist/viewer/markdown-viewer';
import Loading from '../../components/loading';
import { seafileAPI } from '../../utils/seafil... |
app/javascript/mastodon/components/modal_root.js | masto-donte-com-br/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import 'wicg-inert';
import { createBrowserHistory } from 'history';
import { multiply } from 'color-blend';
export default class ModalRoot extends React.PureComponent {
static contextTypes = {
router: PropTypes.object,
};
static propTypes = {
... |
packages/material-ui-icons/src/BlurLinear.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let BlurLinear = props =>
<SvgIcon {...props}>
<path d="M5 17.5c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5.67 1.5 1.5 1.5zM9 13c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0-4c.55 0 1-.45 1-1s-... |
zt/bri_jq/js/jquery-1.8.3.min.js | linmingling/demo | /*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===... |
new-lamassu-admin/src/pages/Customers/components/CustomerSidebar.js | naconner/lamassu-server | import { makeStyles } from '@material-ui/core/styles'
import classnames from 'classnames'
import React from 'react'
import { ReactComponent as CustomerDataReversedIcon } from 'src/styling/icons/customer-nav/data/comet.svg'
import { ReactComponent as CustomerDataIcon } from 'src/styling/icons/customer-nav/data/white.sv... |
webapp/app/components/Software/index.js | EIP-SAM/SAM-Solution-Node-js | //
// Component page Software
//
import React from 'react';
import { PageHeader } from 'react-bootstrap';
import SoftwareTable from 'containers/Software/Table';
import SoftwareFilters from 'containers/Software/Filters';
/* eslint-disable react/prefer-stateless-function */
export default class Software extends React.C... |
examples/todomvc/components/Footer.js | hainuo/redux | import React, { PropTypes, Component } from 'react';
import classnames from 'classnames';
import { SHOW_ALL, SHOW_COMPLETED, SHOW_ACTIVE } from '../constants/TodoFilters';
const FILTER_TITLES = {
[SHOW_ALL]: 'All',
[SHOW_ACTIVE]: 'Active',
[SHOW_COMPLETED]: 'Completed'
};
class Footer extends Component {
rend... |
examples/src/switchRoute.js | HBM/md-components |
import React from 'react'
import {Switch} from 'md-components'
export default class SwitchRoute extends React.Component {
state = {
switch: false
}
onChange = (event) => {
const {name, checked} = event.target
this.setState({
[name]: checked
})
}
render () {
return (
<div>
... |
ajax/libs/aui/5.4.1/aui/js/aui-dependencies.js | viskin/cdnjs | !function(a,b){function c(a){var b=ob[a]={};return $.each(a.split(bb),function(a,c){b[c]=!0}),b}function d(a,c,d){if(d===b&&1===a.nodeType){var e="data-"+c.replace(qb,"-$1").toLowerCase();if(d=a.getAttribute(e),"string"==typeof d){try{d="true"===d?!0:"false"===d?!1:"null"===d?null:+d+""===d?+d:pb.test(d)?$.parseJSON(d)... |
app/components/CloseButton.js | Byte-Code/lm-digital-store-private-test | import React from 'react';
import PropTypes from 'prop-types';
import BlockIcon from 'material-ui/svg-icons/navigation/close';
const style = (fill, top, right, backgroundColor) => ({
fill,
backgroundColor,
top,
right,
width: 80,
height: 80,
position: 'absolute',
cursor: 'pointer'
});
const CloseButto... |
node_modules/reactify/node_modules/react-tools/src/core/__tests__/ReactComponent-test.js | niole/NewsCharts | /**
* 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/svg-icons/device/signal-wifi-4-bar.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi4Bar = (props) => (
<SvgIcon {...props}>
<path d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/>
</SvgIcon>
);
DeviceSignalWifi4Bar = pure(Devic... |
frontend/src/System/Logs/Files/LogFilesTableRow.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Link from 'Components/Link/Link';
import RelativeDateCellConnector from 'Components/Table/Cells/RelativeDateCellConnector';
import TableRowCell from 'Components/Table/Cells/TableRowCell';
import TableRow from 'Components/Table/TableRow... |
projects/plane-crashes/viz/src/viz/CrashesHeatmap/index.js | ebemunk/blog | import React, { useRef, useState } from 'react'
import { InteractiveMap } from 'react-map-gl'
import ChartTitle from '../../vizlib/ChartTitle'
import {
source,
bermudaFill,
bermudaStroke,
heatmap,
scatter,
} from './mapElements'
const CrashesHeatmap = ({ subtitle, zoom, noInteraction }) => {
const mapRef... |
src/svg-icons/action/work.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionWork = (props) => (
<SvgIcon {...props}>
<path d="M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z"/>... |
ajax/libs/F2/1.3.2/f2.js | masklinn/cdnjs | ;(function(exports) {
if (exports.F2 && !exports.F2_TESTING_MODE) {
return;
}
/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d... |
node_modules/react-input-field/webpack.config.js | odedgol/trackingUi | module.exports = {
entry: './index.jsx',
output: {
publicPath: 'http://localhost:9090/assets'
},
module: {
loaders: require('./loaders.config')
},
externals: {
'react': 'React'
},
resolve: {
extensions: ['', '.js', '.jsx']
}
} |
modules/__tests__/RouteComponent-test.js | nottombrown/react-router | /*eslint-env mocha */
import expect from 'expect'
import React from 'react'
import createHistory from 'history/lib/createMemoryHistory'
import Router from '../Router'
describe('a Route Component', function () {
let node
beforeEach(function () {
node = document.createElement('div')
})
afterEach(function (... |
js/vendor/jquery-1.8.3.min.js | adrianhewitt/to | /*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===... |
src/About/About.js | wasong/jhsieh | import React from 'react'
import Jenny from '../assets/aboutMe.jpg'
const styles = {
root: {
maxWidth: 900,
margin: '0 auto',
},
content: {
display: 'flex',
alignItems: 'center',
justifyContent: 'space-between',
margin: '0 0 50px 0',
},
image: {
width: '40%',
},
text: {
wi... |
webpack/scenes/Subscriptions/Manifest/ManageManifestModal.js | johnpmitsch/katello | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Grid, Col, Row, Tabs, Tab, Form, FormGroup, FormControl, ControlLabel } from 'react-bootstrap';
import { Button, Spinner, OverlayTrigger, Tooltip, Icon } from 'patternfly-react';
import ForemanModal from 'foremanReact/components/Fore... |
docs/src/app/components/pages/components/Menu/ExampleSimple.js | tan-jerene/material-ui | import React from 'react';
import Paper from 'material-ui/Paper';
import Menu from 'material-ui/Menu';
import MenuItem from 'material-ui/MenuItem';
const style = {
display: 'inline-block',
margin: '16px 32px 16px 0',
};
const MenuExampleSimple = () => (
<div>
<Paper style={style}>
<Menu>
<Menu... |
package.js | JackAdams/constellation-shorten-collection-names | Package.describe({
name: 'constellation:shorten-collection-names',
version: '0.4.11',
summary: 'Makes long collection names visible in Constellation',
git: 'https://github.com/JackAdams/constellation-shorten-collection-names.git',
documentation: 'README.md',
debugOnly: true
});
Package.onUse(function(api) ... |
ajax/libs/core-js/0.2.4/shim.js | quba/cdnjs | /**
* Core.js 0.2.4
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2014 Denis Pushkarev
*/
!function(returnThis, framework, undefined){
'use strict';
/******************************************************************************
* Module : common ... |
app/components/LoadingIndicator/index.js | Princess310/react-chat-exp | import React from 'react';
import Circle from './Circle';
import Wrapper from './Wrapper';
const LoadingIndicator = () => (
<Wrapper>
<Circle />
<Circle rotate={30} delay={-1.1} />
<Circle rotate={60} delay={-1} />
<Circle rotate={90} delay={-0.9} />
<Circle rotate={120} delay={-0.8} />
<Cir... |
frontend/js/components/LoginButton.js | antoniovj1/infraestructura_virtual_ugr | import React from 'react';
import Button from 'material-ui/Button';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { authActions } from '../redux/reducers/authReducer';
import * as AuthService from '../utils/AuthService';
const mapStateToProps = state => ({
auth: state.login
... |
App.js | nyc-fiery-skippers-2017/AwesomeProject | import React, { Component } from 'react';
import {
AppRegistry,
Text,
View,
ListView,
Button,
AsyncStorage,
TouchableHighlight,
} from 'react-native';
import { StackNavigator, TabNavigator } from 'react-navigation';
import styles from './Style'
import axios from 'react-native-axios';
import { createRo... |
src/svg-icons/image/lens.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLens = (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 2z"/>
</SvgIcon>
);
ImageLens = pure(ImageLens);
ImageLens.displayName = 'ImageLens';
ex... |
components/home/Portfolio.js | Skyd1400/skydev | import React from 'react';
import PropTypes from 'prop-types';
import { translate } from 'react-i18next';
import i18n from '../../i18n';
const Portfolio = ({ works, t}) => (
<section className="root">
<div className="container">
<h1 className="section-title">{ t('work-title') }</h1>
... |
src/common/ZulipButton.js | saketkumar95/zulip-mobile | /* @flow */
import React from 'react';
import { StyleSheet, Text, View, ActivityIndicator } from 'react-native';
import { FormattedMessage } from 'react-intl';
import type { StyleObj } from 'react-native/Libraries/StyleSheet/StyleSheetTypes';
import { BRAND_COLOR } from '../styles';
import Touchable from './Touchable'... |
ajax/libs/oboe.js/1.10.1/oboe-browser.js | kiwi89/cdnjs | // this file is the concatenation of several js files. See https://github.com/jimhigson/oboe-browser.js/tree/master/src for the unconcatenated source
(function (window, Object, Array, Error, undefined ) {
/**
/**
* Partially complete a function.
*
* Eg:
* var add3 = partialComplete( function add(a,b){return... |
ajax/libs/victory/0.13.7/victory.min.js | dc-js/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.Victory=t(require("react")):e.Victory=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;v... |
Samples/Workflow.AssociateToHostWeb/Workflow.AssociateToHostWeb/Scripts/jquery-1.9.1.js | jlsfernandez/PnP | /* NUGET: BEGIN LICENSE TEXT
jQuery v1.9.1
Microsoft grants you the right to use these script files for the sole purpose of either: (i) interacting through your browser with the Microsoft website, subject to the website's terms of use; or (ii) using the files as included with a Microsoft product subject to that produc... |
examples/real-world/containers/DevTools.js | mikekidder/redux | import React from 'react'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'
export default createDevTools(
<DockMonitor toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-w">
<LogMonitor />
... |
app/javascript/mastodon/containers/mastodon.js | mhffdq/mastodon | import React from 'react';
import { Provider } from 'react-redux';
import PropTypes from 'prop-types';
import configureStore from '../store/configureStore';
import { showOnboardingOnce } from '../actions/onboarding';
import { BrowserRouter, Route } from 'react-router-dom';
import { ScrollContext } from 'react-router-sc... |
ajax/libs/rxjs/2.3.7/rx.all.compat.js | bspaulding/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... |
app/scripts/Widget/plugins/Match/__tests__/components/AddChoiceForm.spec.js | igr-santos/bonde-client | import React from 'react'
import { mount } from 'enzyme'
import { expect } from 'chai'
import sinon from 'sinon'
import { AddChoiceForm } from '../../components/'
describe('Match/components/AddChoiceForm', () => {
let wrapper
let props = {
title: undefined,
label: undefined,
choices: [],
handleAdd... |
client/modules/App/components/DevTools.js | sethkaufee/TherapyApp | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor
toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-w"
>
<LogMonitor />
... |
client/modules/App/components/Navbar.js | jeojoe/emplist | import React from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import c from 'classnames';
import Logo from './Logo';
import s from './Navbar.css';
import { switchLanguage } from '../../Intl/IntlActions';
const Navbar = ({ dispatch, intl }) => (
<div id={s.navbar}>
<div c... |
app/index.js | builtwithluv/ZenFocus | import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import Root from './root';
import { configureStore, history } from './store/configureStore';
import './app.global.scss';
const store = configureStore();
render(
<AppContainer>
<Root store={store} hist... |
ajax/libs/forerunnerdb/1.3.484/fdb-legacy.min.js | seogi1004/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... |
actor-apps/app-web/src/app/components/SidebarSection.react.js | zomeelee/actor-platform | import React from 'react';
import { Styles, Tabs, Tab } from 'material-ui';
import ActorTheme from 'constants/ActorTheme';
import HeaderSection from 'components/sidebar/HeaderSection.react';
import RecentSection from 'components/sidebar/RecentSection.react';
import ContactsSection from 'components/sidebar/ContactsSec... |
packages/nova-core/lib/modules/containers/withRemove.js | HelloMeets/HelloMakers | /*
Generic mutation wrapper to remove a document from a collection.
Sample mutation:
mutation moviesRemove($documentId: String) {
moviesEdit(documentId: $documentId) {
...MoviesRemoveFormFragment
}
}
Arguments:
- documentId: the id of the document to remove
Child Props:
- removeMutation(... |
src/components/FinalizeAuction/FinalizeAuctionInfo.js | PhyrexTsai/ens-bid-dapp | // @flow weak
import React from 'react';
import Button from 'material-ui/Button';
import Card from 'material-ui/Card';
import './FinalizeAuctionInfo.css';
export const FinalizeAuctionInfo = (props) => (
<Card raised>
<div className='FinalizeAuctionInfo'>
<h3>ENS: {props.searchName}.eth</h3>
<p>
... |
david_pokedex/client.js | bogdanbiv/graphql_relay_intro | import React from 'react';
import ReactDOM from 'react-dom';
import GraphiQL from 'graphiql';
import fetch from 'isomorphic-fetch';
app.get('/', (req, res) => {
function graphQLFetcher(graphQLParams) {
return fetch(window.location.origin + '/graphql', {
method: 'post',
headers: { 'Content-Type': 'app... |
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/InputGroup.js | Akkuma/npm-cache-benchmark | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/components/DataTable/Table.js | carbon-design-system/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import { settings } from 'carbon-components';
co... |
admin-ui/src/views/appstore/Apps/AppsList.js | sbender9/signalk-server-node | import React from 'react'
import { Button } from 'reactstrap'
export default props => (
<ul className='icons-list'>
{props.apps.map(app => (
<li key={app.name}>
{mainIcon(app)}
<div className='desc'>
<a href={app.npmUrl}>
<i className='icon-info' />
</a>
... |
test/components/ListItem.spec.js | martinkwan/HNGRY | import React from 'react';
import { shallow } from 'enzyme';
import ListItem from '../../src/components/listItem';
describe('(Component) ListItem', () => {
let wrapper;
const props = { place: {} };
beforeEach(() => {
wrapper = shallow(<ListItem {...props} />);
});
it('renders self successfully', () => {
... |
admin/client/App/components/Footer/index.js | xyzteam2016/keystone | /**
* The global Footer, displays a link to the website and the current Keystone
* version in use
*/
import React from 'react';
import { Container } from 'elemental';
var Footer = React.createClass({
displayName: 'Footer',
propTypes: {
appversion: React.PropTypes.string,
backUrl: React.PropTypes.string,
br... |
consoles/my-joy-instances/src/components/__tests__/menu.spec.js | yldio/joyent-portal | import React from 'react';
import renderer from 'react-test-renderer';
import 'jest-styled-components';
import Menu from '../menu';
import Theme from '@mocks/theme';
it('renders <Menu /> without throwing', () => {
expect(
renderer
.create(
<Theme>
<Menu />
</Theme>
)
... |
ajax/libs/yui/3.4.0pr3/loader/loader.js | him2him2/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... |
app/javascript/mastodon/features/compose/components/privacy_dropdown.js | palon7/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, defineMessages } from 'react-intl';
import IconButton from '../../../components/icon_button';
const messages = defineMessages({
public_short: { id: 'privacy.public.short', defaultMessage: 'Public' },
public_long: { id: 'privacy.pub... |
Examples/UIExplorer/Navigator/BreadcrumbNavSample.js | BossKing/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
app/components/App.js | Cu7ious/Twitch-App | import React from 'react';
import { connect } from 'react-redux';
import { fetchData, searchChannels, filterAll, filterOnline, filterOffline, filterByQuery } from '../actions'
import Tabs from '../components/Tabs';
import SearchBar from '../components/SearchBar';
import ChannelsList from '../components/ChannelsList';
... |
test/specs/polar/PolarGridSpec.js | scostaqb/recharts | import React from 'react';
import { expect } from 'chai';
import { Surface, PolarGrid } from 'recharts';
import { mount, render } from 'enzyme';
describe('<PolarGrid />', () => {
const polarAngles = [0, 30, 60, 90, 145, 180, 200, 270, 300];
const polarRadius = [10, 20, 40, 80];
it('Renders angle lines and polyg... |
static/js/jquery-ui-1.10.3/tests/jquery-1.7.js | treeio/treeio | /*!
* jQuery JavaScript Library v1.7
* 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.
*... |
ajax/libs/parse/2.3.0/parse.js | joeyparrish/cdnjs | /**
* Parse JavaScript SDK v2.3.0
*
* The source tree of this library can be found at
* https://github.com/ParsePlatform/Parse-SDK-JS
*/
(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 win... |
src/components/Header/Header.js | lawenliu/ReactDemo | import React from 'react'
import { Link } from 'react-router'
import classNames from 'classnames'
import NavMenu from './NavMenu'
import classes from 'styles/core.less'
export class Header extends React.Component {
render () {
return (
<header className={classNames(classes.navbar, classes['navbar-static-to... |
sites/all/libraries/backbone/backbone.js | picpen/dentalevents | // Backbone.js 1.1.2
// (c) 2010-2014 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://backbonejs.org
(function(root, factory) {
// Set up Backbone appropriately for ... |
frontend/src/System/Status/About/About.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import DescriptionList from 'Components/DescriptionList/DescriptionList';
import DescriptionListItem from 'Components/DescriptionList/DescriptionListItem';
import FieldSet from 'Components/FieldSet';
import InlineMarkdown from 'Components/Mar... |
react-fundamentals/simple-react-app/swapi-app/src/index.js | FMCalisto/react-get-started | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(
<App cat={5} />,
document.getElementById('root')
);
|
imports/plugins/core/ui/client/components/multiselect/multiselect.js | evereveofficial/reaction | import React, { Component, PropTypes } from "react";
import classnames from "classnames";
import Select from "react-select";
import { Translation } from "../translation";
import { i18next } from "/client/api";
class MultiSelect extends Component {
static defaultProps = {
multi: true,
simpleValue: true
}
... |
src/renderer/components/Layouts/SettingsCategoryListItem.js | MovieCast/desktop | import React, { Component } from 'react';
import ListItem from '@material-ui/core/ListItem';
import ListItemAvatar from '@material-ui/core/ListItemAvatar';
import ListItemText from '@material-ui/core/ListItemText';
import ListItemSecondaryAction from '@material-ui/core/ListItemSecondaryAction';
import Menu from '@mater... |
node_modules/react-mdl/src/Icon/index.js | andeemarks/conf-gen-div-react | import React, { PropTypes } from 'react';
import classNames from 'classnames';
const propTypes = {
className: PropTypes.string,
name: PropTypes.string.isRequired
};
const Icon = (props) => {
const { className, name, ...otherProps } = props;
const classes = classNames('material-icons', className);
... |
src/svg-icons/communication/mail-outline.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationMailOutline = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V8l8 5 8-5v10zm-8-7L4 6h16l-8 5z"/>
</SvgIcon>
)... |
react/ReactProject/node_modules/react/lib/ReactTestUtils.js | JamesLiAndroid/LearnFrontEnd | /**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModu... |
src/utils/prompts.js | Paratron/modoJS | import React from 'react';
import ReactDOM from 'react-dom';
import {
Dialog,
DialogHeader,
DialogContent,
DialogFooter
} from '../Dialog';
import Button from '../Button';
import TextInput from '../TextInput';
let portal;
class App extends React.Component {
constructor(props) {
super(props);
portal = this;... |
src/components/Dashboard/DashboardItem.js | wundery/wundery-ui-react | import React from 'react';
import classnames from 'classnames';
function DashboardItem({ children, size }) {
const className = classnames(
'ui-dashboard-item',
`ui-dashboard-item-size-${size}`,
);
return (
<div className={className}>
{children}
</div>
);
}
DashboardItem.propTypes = {
... |
packages/icons/src/dv/Markdown.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function DvMarkdown(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M42.828 10.251A3.175 3.175 0 0 1 46 13.423v21.154a3.175 3.175 0 0 1-3.172 3.172H5.172A3.175 3.175 0 0 1 2 34.577V13.423a3.175 3.175 0 0 1 3.172-3.17... |
node_modules/react-icons/fa/cc-jcb.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const FaCcJcb = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m34.2 21.8q0 0.4-0.3 0.8t-0.7 0.4q-0.1 0-0.3 0h-2.7v-2.4h2.7q0.2 0 0.3 0 0.4 0.1 0.7 0.4t0.3 0.8z m-0.4-3.7q0 0.4-0.2 0.7t-0.7 0.4q0 0-0.2 0h-2.5v-2.3h2.4q0.1 0 0.2 0t0... |
ajax/libs/yui/3.7.3/simpleyui/simpleyui-debug.js | ramda/cdnjs | /**
* The YUI module contains the components required for building the YUI seed
* file. This includes the script loading mechanism, a simple queue, and
* the core utilities for the library.
* @module yui
* @main yui
* @submodule yui-base
*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The YUI gl... |
ajax/libs/react-instantsearch/5.0.2/Connectors.js | holtkamp/cdnjs | /*! ReactInstantSearch 5.0.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :... |
ajax/libs/omniscient/3.0.0/omniscient.js | iwdmb/cdnjs | /**
* Omniscient.js v2.1.0
* Authors: @torgeir,@mikaelbr
***************************************/
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n... |
ajax/libs/angular-google-maps/1.2.4/angular-google-maps.js | pombredanne/cdnjs | /*! angular-google-maps 1.2.4 2014-10-05
* AngularJS directives for Google Maps
* git: https://github.com/nlaplante/angular-google-maps.git
*/
/**
* @name InfoBox
* @version 1.1.12 [December 11, 2012]
* @author Gary Little (inspired by proof-of-concept code from Pamela Fox of Google)
* @copyright Copyright 201... |
project-templates/reactfiber/externals/react-fiber/src/renderers/dom/shared/wrappers/__tests__/ReactDOMOption-test.js | itsa-server/itsa-cli | /**
* Copyright 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @emails react... |
src/RootCloseWrapper.js | yuche/react-bootstrap | import React from 'react';
import domUtils from './utils/domUtils';
import EventListener from './utils/EventListener';
// TODO: Merge this logic with dropdown logic once #526 is done.
// TODO: Consider using an ES6 symbol here, once we use babel-runtime.
const CLICK_WAS_INSIDE = '__click_was_inside';
function suppre... |
React Native/Demos/nearby/Nearby/views/map.js | AngryLi/note | /**
* Created by Liyazhou on 16/9/6.
*/
import React from 'react';
import {
View,
StyleSheet,
} from 'react-native';
export default class Map extends React.Component {
render() {
return (
<View style={styles.container}></View>
)
}
}
const styles= StyleSheet.create({
... |
gulpfile.js | kris1226/ReactApp | "use strict";
var gulp = require('gulp');
var connect = require('gulp-connect'); //Runs a local dev server
var open = require('gulp-open'); //Open a URL in a web browser
var browserify = require('browserify'); // Bundles JS
var reactify = require('reactify'); // Transforms React JSX to JS
var source = require('vinyl-... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.