path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
client/scripts/components/user/revise/entity-declaration/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program 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, either version 3 of the
Lic... |
packages/fela-integration/src/jest-react-fela_react-fela/__tests__/connect-test.js | rofrischmann/fela | import 'raf/polyfill'
import React from 'react'
import { createRenderer } from 'fela'
import { createSnapshot } from 'jest-react-fela'
import { connect } from 'react-fela'
describe('Connect Factory for bindings', () => {
it('should process rules and create classNames', () => {
const rules = {
rule1: () =>... |
src/svg-icons/communication/call-missed.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallMissed = (props) => (
<SvgIcon {...props}>
<path d="M19.59 7L12 14.59 6.41 9H11V7H3v8h2v-4.59l7 7 9-9z"/>
</SvgIcon>
);
CommunicationCallMissed = pure(CommunicationCallMissed);
CommunicationC... |
ajax/libs/material-ui/4.9.14/es/Step/Step.min.js | cdnjs/cdnjs | import _extends from"@babel/runtime/helpers/esm/extends";import _objectWithoutPropertiesLoose from"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";import*as React from"react";import{isFragment}from"react-is";import PropTypes from"prop-types";import clsx from"clsx";import withStyles from"../styles/withStyles";e... |
ajax/libs/material-ui/4.9.2/es/ExpansionPanel/ExpansionPanel.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import React from 'react';
import { isFragment } from 'react-is';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { chainPropTypes } from '@... |
app/components/SideBar/index.js | Get-In-Touch/get-in-touch | import React, { Component } from 'react';
import styles from './styles.css';
import AddContactButton from '../../containers/Contacts/AddContactButton';
class SideBar extends Component { // eslint-disable-line react/prefer-stateless-function
render() {
return (
<div className={styles.sidebarWrapper}>
... |
ajax/libs/intl-tel-input/13.0.2/js/intlTelInput.js | jonobr1/cdnjs | /*
* International Telephone Input v13.0.2
* https://github.com/jackocnr/intl-tel-input.git
* Licensed under the MIT license
*/
// wrap in UMD - see https://github.com/umdjs/umd/blob/master/jqueryPluginCommonjs.js
(function(factory) {
if (typeof define === "function" && define.amd) {
define([ "jquery" ... |
code/schritte/router-v4/src/GreetingDisplayController.js | DJCordhose/react-workshop | import React from "react";
const BACKEND_URL = "http://localhost:7000/greetings";
export default class GreetingDisplayController extends React.Component {
componentDidMount() {
this.loadGreeting(this.props);
}
componentWillReceiveProps(nextProps) {
this.loadGreeting(nextProps);
}
loadGreeting(prop... |
ajax/libs/jquery/1.8.2/jquery.js | knpwrs/cdnjs | /*!
* jQuery JavaScript Library v1.8.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Thu Sep 20 2012 21:13:05 GMT-0400 (Eastern Daylight Time)
*/
(function(... |
src/Timer/TimerEditWidget.js | PremiseWP/premise-time-track-chrome-extension-node | import React, { Component } from 'react';
import TimerDashboardWidget from './TimerDashboardWidget';
import TimerNew from './TimerNew';
class TimerEditWidget extends Component {
constructor() {
super();
// Initial state.
this.state = {
widgetIsOpen: true,
widgetTitle: 'New Timer',
time... |
ajax/libs/react-instantsearch/4.0.7/Connectors.js | sashberd/cdnjs | /*! ReactInstantSearch 4.0.7 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.... |
node_modules/material-ui/lib/svg-icons/editor/format-align-right.js | Sporks/Doc-tor | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _reactAddonsPureRenderMixin = require('react-addons-pure-render-mixin');
var _reactAddonsPureRenderMixin2 = _interopRequireDefault(_reactAddonsPureRenderMi... |
lib/components/split-pane.js | martinvd/hyper | /* eslint-disable quote-props */
import React from 'react';
import Component from '../component';
export default class SplitPane extends Component {
constructor(props) {
super(props);
this.handleDragStart = this.handleDragStart.bind(this);
this.onDrag = this.onDrag.bind(this);
this.onDragEnd = this.... |
ajax/libs/ajv/5.1.6/regenerator.min.js | sashberd/cdnjs | /* regenerator 0.9.7: Source transformer enabling ECMAScript 6 generator functions (yield) in JavaScript-of-today (ES5) */
require=function e(t,r,n){function i(a,o){if(!r[a]){if(!t[a]){var u="function"==typeof require&&require;if(!o&&u)return u(a,!0);if(s)return s(a,!0);var l=new Error("Cannot find module '"+a+"'");thr... |
docs/js/react.js | blainekasten/react | /**
* React v0.13.3
*/
(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}els... |
packages/my-joy-instances/src/components/instances/__tests__/toolbar.ui.js | geek/joyent-portal | import React from 'react';
import { toMatchImageSnapshot } from 'jest-image-snapshot';
import screenshot from 'react-screenshot-renderer';
import { Toolbar } from '../toolbar';
import Theme from '@mocks/theme';
expect.extend({
toMatchImageSnapshot
});
it('<Toolbar />', async () => {
expect(
await screenshot(... |
src/isomorphic/modern/class/__tests__/ReactES6Class-test.js | yisbug/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... |
ajax/libs/foundation/4.1.6/js/vendor/jquery.js | senekis/cdnjs | /*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-2-4
*/
(function( window, undefined ) {
// Can't do t... |
resources/assets/js/utils/Table.js | athill/informedelectorate.net | import _ from 'lodash';
import React from 'react';
import { Table as BsTable, Pagination } from 'react-bootstrap';
import Icon from 'react-fontawesome';
import { DATE_DISPLAY_FORMAT } from './';
import { getSortByDate, sortByLink, sortByText } from './comparators';
//// valid column types for sorting
export const Co... |
ajax/libs/forerunnerdb/1.3.452/fdb-legacy.js | dc-js/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... |
packages/react/src/views/Logout.js | wq/wq.app | import React from 'react';
import { useRenderContext, useComponents } from '../hooks';
export default function Logout() {
const { is_authenticated } = useRenderContext(),
{ Message, View, Text } = useComponents();
return (
<View>
<Text>
<Message id={is_authenticated ... |
files/babel/5.6.10/browser-polyfill.js | fchasen/jsdelivr | (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... |
src/app/components/chat/components/ChatWidget.js | backpackcoder/world-in-flames | import React from 'react'
import JarvisWidget from '../../../components/widgets/JarvisWidget'
import {Dropdown, MenuItem} from 'react-bootstrap'
import Chat from './Chat'
export default function ChatWidget() {
return (
<JarvisWidget editbutton={false} fullscreenbutton={false} color="blueDark">
<header>
... |
test/unit/lib/static/components/section/section-browser.js | gemini-testing/html-reporter | import React from 'react';
import {defaults} from 'lodash';
import proxyquire from 'proxyquire';
import {SUCCESS, SKIPPED, ERROR} from 'lib/constants/test-statuses';
import {mkConnectedComponent} from '../utils';
import {mkBrowser, mkResult, mkStateTree} from '../../state-utils';
describe('<SectionBrowser/>', () => {
... |
ajax/libs/ember-data.js/2.6.0-beta.3/ember-data.prod.js | sreym/cdnjs | (function(){
"use strict";
/*!
* @overview Ember Data
* @copyright Copyright 2011-2016 Tilde Inc. and contributors.
* Portions Copyright 2011 LivingSocial Inc.
* @license Licensed under MIT license (see license.js)
* @version 2.6.0-beta.3
*/
var loader, define, requireModule, require, requirejs... |
examples/05 Customize/Handles and Previews/index.js | numso/react-dnd | import React from 'react';
import Container from './Container';
export default class CustomizeHandlesAndPreviews {
render() {
return (
<div>
<p>
<b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/05%20Customize/Handles%20and%20Previews'>Browse the Source</a></b>
... |
client/containers/Register.js | rickyeh/nimblecode | import React, { PropTypes, Component } from 'react';
import { connect } from 'react-redux';
import { storeUsername } from '../actions/index';
import { bindActionCreators } from 'redux';
import { Router, Route } from 'react-router';
import axios from 'axios';
class Register extends Component {
static contextTypes = ... |
src/svg-icons/maps/directions-run.js | IsenrichO/mui-with-arrows | 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/client/athrun/apps/cctv/screens/index.js | cnfi/laboratory | import React, { Component } from 'react';
import { connect } from 'react-redux';
class Demo extends Component {
render(){
const {children, ...props} = this.props;
return (
<div>
{React.cloneElement(children, {
...props
})... |
docs/pages/api-docs/pagination.js | lgollut/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'api/pagination';
const requireRaw = require.context('!raw-loader!./', false, /\/pagination\.md$/);
export default function Page(... |
src/index.js | AgtLucas/css-modules-playground | import React from 'react';
import App from './components/App';
if (typeof document !== 'undefined') {
React.render(<App />, document.getElementById('outlet'));
}
export default App;
|
app/scripts/src/history-sync/components/activity-list-item.js | MrMamen/traktNRK | import React from 'react';
import ActivityActionCreators from '../actions/activity-action-creators';
import TraktURLForm from './trakt-url-form';
import TraktWebAPIUtils from '../utils/trakt-web-api-utils';
import TmdbImage from '../../tmdb-image';
export default class ActivityListItem extends React.Component {
con... |
src/utils/createDevToolsWindow.js | RamonGebben/pr-overview | /* eslint no-console:0 */
import React from 'react';
import { render } from 'react-dom';
import DevTools from '../containers/DevTools';
/**
* Puts Redux DevTools into a separate window.
* Based on https://gist.github.com/tlrobinson/1e63d15d3e5f33410ef7#gistcomment-1560218.
*/
export default function createDevToolsW... |
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/SafeAnchor.js | JamieMason/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 ... |
cheesecakes/admin/admin/src/containers/HomePage/BlockLink.js | strapi/strapi-examples | /**
*
* BlockLink
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
import cn from 'classnames';
import PropTypes from 'prop-types';
import styles from './styles.scss';
function BlockLink({ content, isDocumentation, link, title }) {
return (
<a
className={cn(
styles.... |
src/svg-icons/notification/event-available.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationEventAvailable = (props) => (
<SvgIcon {...props}>
<path d="M16.53 11.06L15.47 10l-4.88 4.88-2.12-2.12-1.06 1.06L10.59 17l5.94-5.94zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 ... |
DemoApp/src/containers/root.js | andyfen/react-native-UIKit | import React, { Component } from 'react';
import {
StyleSheet,
View,
TabBarIOS,
StatusBar
} from 'react-native';
import NavigationBar from 'react-native-navbar';
import NewsFeed from './news-feed';
import ArticlesTab from './articles-tab';
import MessagesTab from './messages-tab';
import Profile from './profi... |
ui/js/pages/form/FormTotal.js | ericsoderberg/pbc-web |
import React from 'react';
import PropTypes from 'prop-types';
import { calculateTotal } from './FormUtils';
const FormTotal = (props) => {
const { form, formTemplate } = props;
const total = calculateTotal(formTemplate, form);
return (
<div className="form-total">
<span className="secondary">Total<... |
ajax/libs/raven.js/3.11.0/raven.js | froala/cdnjs | /*! Raven.js 3.11.0 (c2f43d7) | github.com/getsentry/raven-js */
/*
* Includes TraceKit
* https://github.com/getsentry/TraceKit
*
* Copyright 2017 Matt Robenolt and other contributors
* Released under the BSD license
* https://github.com/getsentry/raven-js/blob/master/LICENSE
*
*/
(function(f){if(typeof expor... |
Realization/frontend/czechidm-acc/src/content/role/RoleSystemAttributeDetail.js | bcvsolutions/CzechIdMng | import PropTypes from 'prop-types';
import React from 'react';
import Helmet from 'react-helmet';
import { connect } from 'react-redux';
//
import { Basic, Advanced, Utils, Domain, Managers, Enums } from 'czechidm-core';
import { RoleSystemAttributeManager, RoleSystemManager, SystemAttributeMappingManager} from '../../... |
ajax/libs/algoliasearch/3.19.2/algoliasearch.jquery.js | iwdmb/cdnjs | /*! algoliasearch 3.19.2 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */
(function(f){var g;if(typeof window!=='undefined'){g=window}else if(typeof self!=='undefined'){g=self}g.ALGOLIA_MIGRATION_LAYER=f()})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o... |
client/scripts/components/admin/detail-view/project-declaration-summary/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program 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, either version 3 of the
Lic... |
lib/codemod/src/transforms/__testfixtures__/storiesof-to-csf/story-decorators.input.js | kadirahq/react-storybook | import React from 'react';
import Button from './Button';
storiesOf('Some.Button', module)
.add('with story params and decorators', () => <Button label="The Button" />, {
bar: 1,
decorators: [withKnobs, storyFn => <div className="foo">{storyFn}</div>],
})
.add('with story decorators', () => <Button label... |
files/rxjs/2.5.2/rx.lite.js | afghanistanyn/jsdelivr | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
v... |
src/components/problem/Problem.js | chrisrzhou/interviews | import React from 'react';
import {connect} from 'react-redux';
import Markdown from 'react-markdown';
import Title from './../shared/Title';
import {getProblem} from './../../reducers/selectors';
import './Problem.css';
const Problem = ({problem}) => (
<div className="Problem">
<Title value="Problem" />
<d... |
App/config/Drawer/Drawer.spec.js | araneforseti/caretaker-app | import React from 'react';
import renderer from 'react-test-renderer';
import Drawer from './Drawer';
describe('<Drawer />', () => {
let props;
const drawer = () => renderer.create(<Drawer {...props} />);
beforeEach(() => {
props = {
navigation: undefined,
items: undefined,
screenProps: un... |
src/components/VideoResults/VideoResults.js | nicolas-adamini/littleblue | import React from 'react';
export default function VideoResults() {
return (
<div>Video Page in construction, you can still perform Web and Image searches</div>
);
}
|
packages/material-ui-icons/src/KeyboardArrowRightRounded.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M9.29 15.88L13.17 12 9.29 8.12a.9959.9959 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0l4.59 4.59c.39.39.39 1.02 0 1.41L10.7 17.3c-.39.39-1.02.39-1.41 0-.38-.39-.39-1.03 0-1.42z" /></React.Frag... |
src/lib/server/router.js | dankennedy/testwebpack | 'use strict';
var express = require('express'),
log = require('server/log'),
api = require('server/api');
import React from 'react';
import { RoutingContext, match } from 'react-router';
import createLocation from 'history/lib/createLocation';
import { renderToString } from 'react-dom/server';
import routes ... |
node_modules/react-icons/io/ios-world-outline.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const IoIosWorldOutline = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m19.8 3.8c8.9 0 16.2 7.2 16.2 16.2s-7.3 16.3-16.2 16.3-16.3-7.3-16.3-16.3 7.3-16.2 16.3-16.2z m0.6 9.6v6h5.8c0-2.4-0.4-4.7-0.8-6.6-1.7 0.4-3.3 0.6-5 0.6z m0-1... |
ajax/libs/6to5/2.10.1/browser.js | taydakov/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.to5=e()}}(function(){var define,module,exports;return... |
src/svg-icons/places/ac-unit.js | w01fgang/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesAcUnit = (props) => (
<SvgIcon {...props}>
<path d="M22 11h-4.17l3.24-3.24-1.41-1.42L15 11h-2V9l4.66-4.66-1.42-1.41L13 6.17V2h-2v4.17L7.76 2.93 6.34 4.34 11 9v2H9L4.34 6.34 2.93 7.76 6.17 11H2v2h4.17l-3.2... |
examples/js/column-format/react-column-format-table.js | neelvadgama-hailo/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-unused-vars: 0*/
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const jobs = [];
function addProducts(quantity) {
const startId = jobs.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
jobs.push... |
ajax/libs/mobx-react/4.2.1/index.min.js | sufuf3/cdnjs | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("mobx"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["exports","mobx","react","react-dom"],t):t(e.mobxReact=e.mobxReact||{},e.mobx,e.React,e.ReactDOM)}(this,function(e,t,n,r){"use strict";functi... |
lib/pages/actions.js | Kegsay/github-pull-review | import triggers from "../logic/triggers";
import {PullRequestTrigger, FileDiffsTrigger, LineCommentsTrigger} from "../logic/triggers";
var TriggerMixin = require("../logic/triggers").TriggerMixin([
PullRequestTrigger, FileDiffsTrigger, LineCommentsTrigger
]);
var React = require("react");
var CommentBox = require(... |
server/sonar-web/src/main/js/apps/quality-gates/components/DetailsHeader.js | Builders-SonarSource/sonarqube-bis | /*
* SonarQube
* Copyright (C) 2009-2016 SonarSource SA
* mailto:contact AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License... |
app/track/components/TrackList.js | Raymond-Zhu/music-video-app | import React, { Component } from 'react';
import { getTracks } from '../../api/backend';
import Track from './Track';
export default class TrackList extends Component {
constructor(props) {
super(props);
this.state = {tracks: []};
};
handleOnTouch(track, addToQueue) {
addToQueue(track);
};
com... |
stories/components/clipPathImage/index.js | tskuse/operationcode_frontend | import React from 'react';
import { storiesOf } from '@storybook/react';
import ClipPathImage from 'shared/components/clipPathImage/clipPathImage';
import jamesBondJpg from '../../asset/james-bond.jpg';
storiesOf('shared/components/clipPathImage', module)
.add('Default', () => (
<ClipPathImage
image={j... |
files/highstock/2.0.0/highstock.src.js | tomByrer/jsdelivr | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highstock JS v2.0.0 (2014-04-22)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout,... |
packages/material-ui-icons/src/VolumeUpRounded.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M3 10v4c0 .55.45 1 1 1h3l3.29 3.29c.63.63 1.71.18 1.71-.71V6.41c0-.89-1.08-1.34-1.71-.71L7 9H4c-.55 0-1 .45-1 1zm13.5 2c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 4.... |
web/src/pages/index.js | ACRA/acra | import React from 'react';
import clsx from 'clsx';
import Layout from '@theme/Layout';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import styles from './index.module.css';
import logo from '@site/static/img/logo.png'
export default function Home() {
const {siteConfig} = useDocusaurusConte... |
react/features/chat/components/web/ChatButton.js | gpolitis/jitsi-meet | // @flow
import React from 'react';
import { translate } from '../../../base/i18n';
import { IconChat } from '../../../base/icons';
import { connect } from '../../../base/redux';
import { AbstractButton, type AbstractButtonProps } from '../../../base/toolbox/components';
import ChatCounter from './ChatCounter';
/**... |
components/Deck/ContentPanel/DeckModes/DeckEditPanel/editors/DeckPropertyEditBigText.js | slidewiki/slidewiki-platform | import React from 'react';
class DeckPropertyItemBigText extends React.Component {
handleChange(event) {
// TODO pass new value to DeckEditPanel to update store
}
render() {
return (
<div className="item">
<span className="header">{this.props.fieldname}</span>
... |
examples/decorators/src/App.js | gaearon/react-hot-loader | import React from 'react';
import { hot } from 'react-hot-loader';
import Counter from './Counter';
const App = () => (
<h1>
Hello, world.<br />
<Counter />
</h1>
);
export default hot(module)(App);
|
src/components/settings/acl/NodeTable.js | golemfactory/golem-electron | import React from 'react';
import PropTypes from 'prop-types';
import map from 'lodash/map';
import NodeRow from './NodeRow';
import ConditionalRender from '../../hoc/ConditionalRender';
const NodeTable = ({
aclRestrictedMode = false,
list,
checkedItems,
toggleItems,
showBlockNodeModal,
isBlockTable = false
}) ... |
src/Glyphicon.js | kwnccc/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const Glyphicon = React.createClass({
propTypes: {
/**
* bootstrap className
* @private
*/
bsClass: React.PropTypes.string,
/**
* An icon name. See e.g. http://getbootstrap.com/components/#glyphicons
*/
glyph: Re... |
src/svg-icons/notification/phone-paused.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPhonePaused = (props) => (
<SvgIcon {...props}>
<path d="M17 3h-2v7h2V3zm3 12.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C... |
node_modules/react-icons/go/split.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const GoSplit = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m17.5 10l-10-10-7.5 7.5 12.1 11.7c0.6-3.1 1.7-5.3 5.2-9l0.2-0.2z m5-10l5.2 5.2-7.7 7.7c-3.9 3.9-5 6.3-5 12.1v15h10v-15c0-2.1 0.7-3.7 2.1-5l7.7-7.7 5.2 5.2v-17.5h-17.5z"... |
website/src/react-native/index.js | darkrishabh/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.
*/
var Prism ... |
frontend/app/components/pages/admin/admin.js | LINKIWI/linkr | import Helmet from 'react-helmet';
import LoadingHOC from 'react-loading-hoc';
import React from 'react';
import AdminConfig from './admin-config';
import AdminVersion from './admin-version';
import AdminRecentLinks from './admin-recent-links';
import AdminUsers from './admin-users';
import AuthenticationHOC from '../... |
src/index.js | choudlet/ps-react-choudlet | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import Docs from './docs/Docs';
import '../node_modules/highlight.js/styles/ocean.css'
ReactDOM.render(<Docs />, document.getElementById('root'));
|
client/admin/oauthApps/OAuthAppsRoute.js | subesokun/Rocket.Chat | import React from 'react';
import { usePermission } from '../../contexts/AuthorizationContext';
import NotAuthorizedPage from '../NotAuthorizedPage';
import OAuthAppsPage from './OAuthAppsPage';
export default function MailerRoute() {
const canAccessOAuthApps = usePermission('manage-oauth-apps');
if (!canAccessOAu... |
lib/modules/createTest.js | nramadas/r-platform | import 'babel-polyfill';
import chai from 'chai';
import sinon from 'sinon';
import sinonChai from 'sinon-chai';
import enzymeChai from 'chai-enzyme';
import { shallow, mount, render } from 'enzyme';
import jsdom from 'jsdom';
import React from 'react';
import { Thunker, PromiseWell } from '@r/middleware';
import { cr... |
src/client/components/console/operators/customerSuccessTable.js | uuchat/uuchat | import React, { Component } from 'react';
import { Table } from 'antd';
import ActionDropDown from '../common/actionDropDown';
import { emptyTableLocale } from '../common/constants';
import { sortFilterByProps, formatDate } from '../common/utils';
export default class CustomerSuccessTable extends Component {
rend... |
src/scenes/Booking/components/BookingConfirmation/components/BookingConfirmed/index.js | galsen0/hair-dv-front | /**
* Created by diop on 08/05/2017.
*/
import React from 'react';
import { Grid, Icon, Segment } from 'semantic-ui-react';
import AlertNewDate from '../../../AlertNewDate/index';
import CSSModules from 'react-css-modules';
import styles from './styles.scss';
class BookingConfirmed extends React.Component {
rend... |
test/ShallowTraversal-spec.js | dustinsanders/enzyme | import React from 'react';
import sinon from 'sinon';
import { expect } from 'chai';
import {
splitSelector,
} from '../src/Utils';
import {
hasClassName,
nodeHasProperty,
treeForEach,
treeFilter,
pathToNode,
getTextFromNode,
} from '../src/ShallowTraversal';
describe('ShallowTraversal', () => {
descr... |
src/svg-icons/alert/add-alert.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AlertAddAlert = (props) => (
<SvgIcon {...props}>
<path d="M10.01 21.01c0 1.1.89 1.99 1.99 1.99s1.99-.89 1.99-1.99h-3.98zm8.87-4.19V11c0-3.25-2.25-5.97-5.29-6.69v-.72C13.59 2.71 12.88 2 12 2s-1.59.71-1.59 1.59v... |
packages/benchmarks/src/app/Button.js | css-components/styled-components | import { ColorPropType, StyleSheet, TouchableHighlight, Text } from 'react-native';
import React, { Component } from 'react';
import { bool, func, string } from 'prop-types';
export default class Button extends Component<*> {
static displayName = '@app/Button';
static propTypes = {
accessibilityLabel: string,... |
src/lib/utils/Link.js | lighter-cd/ezui_react_one | import React from 'react';
import PropTypes from 'prop-types';
import invariant from 'invariant';
const isModifiedEvent = event =>
!!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
/**
* The public API for rendering a history-aware <a>.
*/
class Link extends React.Component {
static propType... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/FormComponents/Select.js | Minoli/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
actor-apps/app-web/src/app/components/sidebar/ContactsSectionItem.react.js | Just-D/actor-platform | import React from 'react';
import ReactMixin from 'react-mixin';
import addons from 'react/addons';
import DialogActionCreators from 'actions/DialogActionCreators';
import AvatarItem from 'components/common/AvatarItem.react';
const {addons: { PureRenderMixin }} = addons;
@ReactMixin.decorate(PureRenderMixin)
class ... |
doc/ppt/fancybox/lib/jquery-1.10.2.min.js | tencrance/iot | /*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.2.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.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
shared/components/App/AsyncEdit/AsyncSlices/SlicesRoute.js | deanslamajr/trakta.co | import React from 'react'
import { compose } from 'redux'
import { connect } from 'react-redux'
import withStyles from 'isomorphic-style-loader/lib/withStyles'
import SampleInstances from '../../../../../client/components/SampleInstances'
import InstancePlaylist from '../../../../../client/components/InstancePlaylist'... |
ajax/libs/angular-ui-select/0.9.8/select.js | francescoagati/cdnjs | /*!
* ui-select
* http://github.com/angular-ui/ui-select
* Version: 0.9.8 - 2015-02-16T15:10:00.887Z
* License: MIT
*/
(function () {
"use strict";
var KEY = {
TAB: 9,
ENTER: 13,
ESC: 27,
SPACE: 32,
LEFT: 37,
UP: 38,
RIGHT: 39,
DOWN: 40,
SHIFT: 16,
CTRL: 17,
ALT: ... |
index.js | asarode/react-pokemon | 'use strict';
import React from 'react';
import cx from 'classname';
import axios from 'axios';
import Promise from 'bluebird';
import capitalize from 'capitalize';
import empty from 'is-empty';
class Pokemon extends React.Component {
constructor(props) {
super(props);
this.state = {
pokemon: {},
... |
src/docs/layout/ComponentMain/Example/index.js | bfletcherbiggs/DocreactJS | import React from 'react';
import PropTypes from 'prop-types';
import CodeExample from '../CodeExample';
class Example extends React.Component {
constructor(props) {
super(props);
this.state = { showCode: false };
}
toggleCode = event => {
event.preventDefault();
this.setState(prevState => {
... |
vendor/pug-2.0.1.min.js | yivo/pug-ruby | !function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).pug=e()}(function(){return function(){function e(t,n,r){function i(o,a){if(!n[o... |
src/js/core/SlideshowPreview.react.js | shengmin/studiowangfei.com | var React = require('react');
var SlideshowImage = require('SlideshowImage');
var SlideshowImageStore = require('SlideshowImageStore');
var { PropTypes } = React;
class SlideshowPreview extends React.Component {
constructor(props) {
super(props);
this._subscriptions = [];
this.state = {
areButtons... |
src/Common.js | peterbe/whatsdeployed | import React from 'react';
export class EllipsisLoading extends React.PureComponent {
state = { dots: 0 };
static defaultProps = {
text: 'Loading',
animationMs: 400,
maxDots: 5,
};
componentDidMount() {
this.interval = window.setInterval(() => {
this.setState((state) => {
return {... |
ajax/libs/rxjs/2.3.23/rx.all.compat.js | RubaXa/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... |
packages/icons/src/md/editor/FormatColorReset.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdFormatColorReset(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M36 27.6C36 19.6 24 6 24 6s-2.66 3.02-5.47 7.04L35.7 30.21c.19-.84.3-1.71.3-2.61zm-1.76 6.24L25 24.6 10.54 10.14 8 12.69l6.64 6.64C13.11 22.... |
actor-apps/app-web/src/app/components/activity/GroupProfile.react.js | amezcua/actor-platform | /*
* Copyright (C) 2015 Actor LLC. <https://actor.im>
*/
import { assign } from 'lodash';
import React from 'react';
import ReactMixin from 'react-mixin';
import ReactZeroClipboard from 'react-zeroclipboard';
import { IntlMixin, FormattedMessage } from 'react-intl';
import { Styles, Snackbar } from 'material-ui';
im... |
gatsby-strapi-tutorial/cms/admin/admin/src/components/SupportUsTitle/index.js | strapi/strapi-examples | /**
*
* SupportUsTitle
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
import styles from './styles.scss';
function SupportUsTitle() {
return (
<FormattedMessage id="app.components.HomePage.support">
{message => <span className={styles.supportUsTitle}>{message}</span>}
... |
src/index.js | PocketOfWeird/GearGoober | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import injectTapEventPlugin from 'react-tap-event-plugin'
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'
import configureStore from './store/configureStore'
import App from './containers/app'
// Neede... |
es/ExpansionPanel/ExpansionPanel.js | uplevel-technology/material-ui-next | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
src/client/scripts/client.js | itimai/react-try | import Debug from 'debug';
import React from 'react';
import ReactDOM from 'react-dom';
import bootstrapWebpack from "bootstrap-webpack";
import main from '../styles/main.styl';
import App from '../../app/components/App';
Debug.enable('React-app*');
ReactDOM.render(<App />, document.getElementById('app'));
|
src/sections/navigation.js | Skyus/Oak.js | import React, { Component } from 'react';
import { Translate, withLocalize } from 'react-localize-redux';
import { connect } from 'react-redux';
import { setSettingsVisible, setHelpVisible, setAboutVisible } from "../actions"
const SimulatingStatus = {
Stopped: 0,
Step: 1,
Play: 2
};
const CONSOLE_INPUT_NONE = ... |
client/src/assets/icons/CertificationIcon.js | BhaveshSGupta/FreeCodeCamp | /* eslint-disable max-len */
import React from 'react';
function CertificationIcon() {
return (
<svg
height='248.21'
preserveAspectRatio='xMidYMid meet'
version='1.1'
viewBox='232 241.57142857142856 156.8571428571429 262.2051282051284'
width='142.86'
xmlns='http://www.w3.org/2... |
ajax/libs/react/0.12.1/react.min.js | MEXXIO/cdnjs | /**
* React v0.12.1
*
* 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.
*... |
src/pages/place/data-highlights.js | tableflip/landexplorer | import React from 'react'
import { Link } from 'react-router'
import { ThreeBounce } from 'better-react-spinkit'
import slugify from '../../lib/slugify'
import datasets from '../../datasets'
const datasetsWithMapLayers = getDatasetsWithMapLayers(datasets)
const labelLookup = {
'Agricultural Land Classification': (f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.