path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
public/js/jquery.min.js | TamagoChose/Server | /*! 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... |
src/components/views/OfficerLog/core.js | Thorium-Sim/thorium | import React from "react";
import gql from "graphql-tag.macro";
import {useQuery} from "@apollo/client";
import {useSubscribeToMore} from "../../../helpers/hooks/useQueryAndSubscribe";
export const OFFICER_LOG_CORE_QUERY = gql`
query OfficerLog($clientId: ID, $flightId: ID!) {
officerLogs(clientId: $clientId, fl... |
app/javascript/mastodon/features/domain_blocks/index.js | pointlessone/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { debou... |
src/routes/error/index.js | Calvin-Huang/LiveAPIExplore-Server | /**
* 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 from 'react';
import ErrorPage from './ErrorP... |
app/containers/App/index.js | thebakeryio/openmic | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*/
import React from 'react';
function App(props) {
return (
<div>
{ props.children }
<footer>
<ul>
<li><a h... |
src/Survey/index.js | NERC-CEH/irecord-app | import React from 'react';
import { Route } from 'react-router-dom';
import savedSamples from 'saved_samples';
import appModel from 'app_model';
import userModel from 'user_model';
import Default from './Default';
import Complex from './Complex';
const App = () => {
return (
<>
<Route
path="/survey... |
ajax/libs/onsen/2.0.0-alpha.6/js/angular-onsenui.js | jonathantneal/cdnjs | /*! angular-onsenui.js for onsenui - v2.0.0-alpha.6 - 2015-10-22 */
(function(module) {
try { module = angular.module('templates-main'); }
catch(err) { module = angular.module('templates-main', []); }
module.run(['$templateCache', function($templateCache) {
'use strict';
$templateCache.put('templates/sliding_menu.t... |
benim/src/component/usercard/usercard.js | SentiyWhen/Ben-IM | import React from 'react'
import PropTypes from 'prop-types'
import {Card, WhiteSpace,WingBlank} from 'antd-mobile'
import {withRouter} from 'react-router-dom'
@withRouter
class UserCard extends React.Component{
static propTypes = {
userlist: PropTypes.array.isRequired
}
handleClick(v){
this.props.history.push(... |
step8-unittest/node_modules/enzyme/src/version.js | jintoppy/react-training | import React from 'react';
export const VERSION = React.version;
export const REACT013 = VERSION.slice(0, 4) === '0.13';
export const REACT014 = VERSION.slice(0, 4) === '0.14';
export const REACT15 = VERSION.slice(0, 3) === '15.';
|
client/components/basic/Backdrop.js | iiet/iiet-chat | import React from 'react';
import { ModalBackdrop } from '@rocket.chat/fuselage';
export const Backdrop = (props) => <ModalBackdrop bg='transparent' {...props} />;
|
src/components/Chat/Message/MessageMe.js | fabianobizarro/chat-app | import React, { Component } from 'react';
import './message.css';
import { estimatedTime } from '../../../services/time';
class MessageMe extends Component {
render() {
return (
<div className="box notification is-info message-box message-me animated fadeIn">
<article classNa... |
ajax/libs/es6-shim/0.11.0/es6-shim.js | kristoferjoseph/cdnjs | // ES6-shim 0.11.0 (c) 2013-2014 Paul Miller (http://paulmillr.com)
// ES6-shim may be freely distributed under the MIT license.
// For more details and documentation:
// https://github.com/paulmillr/es6-shim/
(function(undefined) {
'use strict';
var isCallableWithoutNew = function(func) {
try { func(); }
... |
lib/ui/src/components/notifications/notifications.stories.js | storybooks/react-storybook | import React from 'react';
import NotificationList from './notifications';
import itemMeta, * as itemStories from './item.stories';
export default {
component: NotificationList,
title: 'UI/Notifications/Notifications',
decorators: [storyFn => <div style={{ width: '240px', margin: '1rem' }}>{storyFn()}</div>],
... |
src/modules/docs/DocComparison.js | OCMC-Translation-Projects/ioc-liturgical-react | import React from 'react';
import ScreenShot from '../../images/SsVersionCompare';
import PropTypes from "prop-types";
class DocComparison extends React.Component {
constructor(props) {
super(props);
this.state = {
labels: props.session.labels[props.session.labelTopics.help]
};
}
componentWil... |
src/settings/getTabDefs.js | anegie/space-fanfou | import { h } from 'preact'
import arrayRemove from 'just-remove'
import messaging from './messaging'
import VersionHistory from './components/VersionHistory'
import HelpAndSupport from './components/HelpAndSupport'
import { GET_OPTION_DEFS } from '@constants'
const tabDefs = [ {
title: '页面功能',
sections: [ {
ti... |
ajax/libs/yui/3.1.0/event-custom/event-custom-base-debug.js | HealthIndicators/cdnjs | YUI.add('event-custom-base', function(Y) {
/**
* 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.
* @module e... |
src/components/__tests__/layout.spec.js | ok2ju/modern-react-boilerplate | import React from 'react';
import { shallow } from 'enzyme';
import Layout from '../Layout';
describe('Layout component', () => {
it('mount in a full DOM', () => {
const output = shallow(<Layout />);
expect(output.hasClass('main')).toBeTruthy();
});
});
|
ajax/libs/react-virtualized/4.6.4/react-virtualized.min.js | ahocevar/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["react-virtualized"]=t(require("react")):e["react-virtualized"]=t(e.React)}(this,function(e){return function(e){function t(o){if(... |
test/LabelSpec.js | pieter-lazzaro/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Label from '../src/Label';
describe('Label', function () {
it('Should output a label with message', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Label>
<strong>Message</strong>
</Labe... |
ajax/libs/react-bootstrap/0.32.2/react-bootstrap.min.js | joeyparrish/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactBootstrap=t(require("react"),require("react-dom")):e.ReactBootstrap=t(e.React,e.ReactDOM)}(... |
app/javascript/mastodon/features/ui/components/report_modal.js | h3zjp/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { changeReportComment, changeReportForward, submitReport } from '../../../actions/reports';
import { expandAccountTimeline } from '../../../actions/timelines';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-pro... |
packages/rocketchat-ui-sidenav/client/chatRoomItem.js | pkgodara/Rocket.Chat | import { Tracker } from 'meteor/tracker';
import { Session } from 'meteor/session';
import { Template } from 'meteor/templating';
Template.chatRoomItem.helpers({
roomData() {
let { name } = this;
if (this.fname) {
const realNameForDirectMessages = this.t === 'd' && RocketChat.settings.get('UI_Use_Real_Name');
... |
src/parser/hunter/survival/modules/talents/GuerrillaTactics.js | fyruna/WoWAnalyzer | import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import { AFFECTED_BY_GUERRILLA_TACTICS, GUERRILLA_TACTICS_INIT_HIT_MODIFIER } from 'parser/hunter/survival/constants';
import calculateEffectiveDamage from 'parser/core/calculateEffectiveDamage';
import TalentStatisticBox from 'interface/o... |
src/Parser/DemonologyWarlock/Modules/Talents/DemonicCalling.js | mwwscott0/WoWAnalyzer | import React from 'react';
import Module from 'Parser/Core/Module';
import Combatants from 'Parser/Core/Modules/Combatants';
import SPELLS from 'common/SPELLS';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
const... |
src/components/obligee/ObligeeTable3.js | axmand/react-webpack-redux | import React, { Component } from 'react';
import InputCell from './InputCell';
import SelectCell from './SelectCell';
import DateInputCell from './DateInputCell'
class ObligeeTable3 extends Component {
render() {
//用于封装宗地基本信息表第3页
var table=(
<table className="mytable">
<tbody >
<tr>
<td... |
src/project/FileTreeView.js | emanziano/brackets | /*
* Copyright (c) 2014 Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights... |
src/components/DataTable/AnimTableBody.js | miaoji/guojibackend | import React from 'react'
import PropTypes from 'prop-types'
import { TweenOneGroup } from 'rc-tween-one'
const enterAnim = [
{
opacity: 0,
x: 30,
backgroundColor: '#fffeee',
duration: 0,
}, {
height: 0,
duration: 200,
type: 'from',
delay: 250,
ease: 'easeOutQuad',
onComplet... |
docs/src/examples/elements/Button/Usage/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Message } from 'semantic-ui-react'
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
const ButtonUsageExamples = () => (
<ExampleSection title='Usage'>
<ComponentExample... |
routes/MenuLink/components/ComponentController.js | mcdermed/Elkwood | import React from 'react'
import { fetchComponent } from '../../../store/actions/Requests'
const ComponentController = (props) => <div>{props.children || 'ComponentController'}</div>
ComponentController.load = (dispatch, id) => fetchComponent(dispatch, id)
export default ComponentController
|
src/components/Feedback/Feedback.js | juan-tonina/internations-poc | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback extends Component {
render() {
return (
<div className="Feedback... |
jobs/screens/WelcomeScreen.js | haaswill/ReactNativeCourses | import _ from 'lodash';
import React, { Component } from 'react';
import { AsyncStorage } from 'react-native';
import { AppLoading } from 'expo';
import Slides from '../components/Slides';
const SLIDE_DATA = [
{ text: 'Welcome to JobApp', color: '#03A9F4' },
{ text: 'Use this app to get a job', color: '#009688' },... |
node_modules/react-icons/fa/recycle.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const FaRecycle = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m18.7 26.1l-0.4 8.2 0 0.5-9.4-0.6q-0.8-0.1-1.5-0.8t-1-1.4q-0.3-0.6-0.4-1.2t0.1-1.5 0.3-1.2 0.5-1.5 0.4-1.1q1.7 0.2 11.4 0.6z m-8.7-13.1l4 8.5-3.2-2.1q-1.4 1.6-2.5 3.2... |
ajax/libs/material-ui/4.9.10/esm/utils/useControlled.js | cdnjs/cdnjs | /* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */
import * as React from 'react';
export default function useControlled(_ref) {
var controlled = _ref.controlled,
defaultProp = _ref.default,
name = _ref.name,
_ref$state = _ref.state,
state = _ref$state === void 0 ? 'v... |
src/cms/preview-templates/IndexPagePreview.js | tannerfiscus/tannerfisc.us | import React from 'react';
import { IndexPageTemplate } from '../../templates/index-page'
const IndexPagePreview = ({ entry }) => {
const data = entry.getIn(['data']).toJS();
if (data) {
return (
<IndexPageTemplate
heading={data.heading}
subheading={data.subheading}
/>
)
} e... |
node_modules/react-icons/ti/link.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const TiLink = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m30.5 10.5c-0.8-0.7-1.9-0.7-2.6 0l-2.9 2.9-0.5-0.5c-2-2-5.4-2-7.3 0l-7 6.9c-0.9 1-1.5 2.3-1.5 3.7s0.6 2.7 1.5 3.7l0.5 0.5-2.8 2.8c-0.7 0.8-0.7 1.9 0 2.6 0.3 0.4 0.8 0.6 ... |
docs-ui/components/text.stories.js | looker/sentry | import React from 'react';
import {storiesOf} from '@storybook/react';
import {withInfo} from '@storybook/addon-info';
import Text from 'app/components/text';
storiesOf('Text', module).add(
'default',
withInfo('On-demand styling for native dom elements')(() => (
<div style={{padding: 20, backgroundColor: '#ff... |
public/javascripts/ext-all.js | jgsmith/locker | /*
* Ext JS Library 3.0.0
* Copyright(c) 2006-2009 Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
*/
Ext.DomHelper=function(){var s=null,j=/^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i,l=/^table|tbody|tr|td$/i,p,m="afterbegin",n="afterend",c="beforebegin",o="beforeend",... |
ajax/libs/instantsearch.js/1.1.2/instantsearch.min.js | dhenson02/cdnjs | /*! instantsearch.js 1.1.2 | © Algolia Inc. and other contributors; Licensed MIT | github.com/algolia/instantsearch.js */
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.instantsearch=t():e.instantsea... |
ajax/libs/ink/2.2.1/js/ink.min.js | cluo/cdnjs |
(function(){"use strict";if(!("Ink"in window)){var e={Ink:"INK_PATH"in window?window.INK_PATH:window.location.protocol+"//js.ink.sapo.pt/Ink/"},n={},t=[],r={},i=[],o=function(e){if("object"!=typeof e)return!1;for(var n in e)if(e.hasOwnProperty(n))return!1;return!0};window.Ink={_checkPendingRequireModules:function(){va... |
src/screens/team/components/TeamDetail/TeamDetail.js | vio-lets/Larkyo-Client | import React from 'react';
import {Link} from 'react-router-dom';
import './TeamDetail.css';
export default class TeamDetail extends React.Component {
constructor(props){
super(props);
this.handleCreateNewTeamClicked = this.handleCreateNewTeamClicked.bind(this);
this.handleMyTeamClicked = t... |
src/svg-icons/action/help.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHelp = (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 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83... |
src/components/Tweeter.js | jamez14/jams-tweeter | import React from 'react';
import StatusForm from './StatusForm';
import StatusList from './StatusList';
import StatusApi from '../api/statusApi';
class Tweeter extends React.Component {
constructor() {
super();
this.state = {data: []};
this.handleStatusSave = this.handleStatusSave.bind(this);
}
com... |
react-ui/src/components/List.js | the-oem/happy-hour-power | import React, { Component } from 'react';
import Location from './Location';
import '../styles/List.css';
export class List extends Component {
render() {
const displayLocation = this.props.locations.map(location => (
<Location key={location.id} {...location} />
));
return <div>{displayLocation}</... |
ajax/libs/jquery.fancytree/2.6.0/jquery.fancytree-all.js | calebmer/cdnjs | /*!
* jquery.fancytree.js
* Dynamic tree view control, with support for lazy loading of branches.
* https://github.com/mar10/fancytree/
*
* Copyright (c) 2006-2014, Martin Wendt (http://wwWendt.de)
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.6.0
* @dat... |
ajax/libs/forerunnerdb/1.3.662/fdb-core+views.js | dannyxx001/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... |
pootle/static/js/auth/components/AccountInactive.js | mail-apps/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
'use strict';
import React from 'react';
import { PureRen... |
test/PageHeaderSpec.js | JimiHFord/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import PageHeader from '../src/PageHeader';
describe('PageHeader', function () {
it('Should output a div with content', function () {
let instance = ReactTestUtils.renderIntoDocument(
<PageHeader>
<strong>Content</str... |
imports/components/AccountUIWrapper.js | naustudio/nau-jukebox | /* © 2017
* @author Eric Tran
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { withTracker } from 'meteor/react-meteor-data';
import { Container } from 'flux/utils';
import { Template } from 'meteor/templating';
import { Blaze } from 'meteor/blaze';
import { changeTab } from ... |
ajax/libs/material-ui/4.10.0/esm/TextareaAutosize/TextareaAutosize.js | cdnjs/cdnjs | import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import * as React from 'react';
import PropTypes from 'prop-types';
import debounce from '../utils/debounce';
import useForkRef from '../utils/useForkRef';
function getS... |
src/components/Blog_Form.js | amaj674/Blog-Site-mern- |
import React, { Component } from 'react';
import 'bulma/css/bulma.css';
class Blog_Form extends Component {
constructor(props) {
super(props);
this.state = {
blog_title:'',
text: '',
author:'',
imageURL:'',
message:''
};
this.handleTextChange = this.handleTextChange.bind(this);... |
v1/static/twitter-bootstrap/docs/assets/js/jquery.js | tommeagher/alva | /*! jQuery v@1.8.1 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==... |
packages/example-phone/src/scripts/components/call/media-status.js | good-joe/spark-js-sdk | import React from 'react';
export default function MediaStatus({audioDirection, videoDirection}) {
return (
<table>
<tbody>
<tr>
<td>audio:</td>
<td className="audio-direction">{audioDirection}</td>
</tr>
<tr>
<td>video:</td>
<td className="vi... |
app/components/TopToolbarEditor/TopToolbarEditor.js | realgvard/telegram_theme_customizer | import React, { Component } from 'react';
import CSSModules from 'react-css-modules';
import { connect } from 'react-redux';
import muiThemeable from 'material-ui/styles/muiThemeable';
import {
lightBlue800,
greenA700,
} from 'material-ui/styles/colors';
// Components
import SettingsIcon from 'material-ui/svg-... |
utils/createDevToolsWindow.js | jermspeaks/Redux-Books | import React from 'react';
import { render } from 'react-dom';
import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react';
/*
* Puts Redux DevTools into a separate window.
* Based on https://gist.github.com/tlrobinson/1e63d15d3e5f33410ef7#gistcomment-1560218.
*/
export default function createDevToo... |
reactrenderfunc.js | cmccallattu/projects | var React = require('react');
var ReactDOM = require('react-dom');
var QuoteMaker = React.createClass({
render: function () {
return (
<blockquote>
<p>
What is important now is to recover our senses.
</p>
<cite>
<a target="_blank"
href="http://bit.ly... |
ajax/libs/handsontable/0.10.5/jquery.handsontable.full.js | JacquesMarais/cdnjs | /**
* Handsontable 0.10.5
* Handsontable is a simple jQuery plugin for editable tables with basic copy-paste compatibility with Excel and Google Docs
*
* Copyright 2012, Marcin Warpechowski
* Licensed under the MIT license.
* http://handsontable.com/
*
* Date: Mon Mar 31 2014 14:19:47 GMT+0200 (CEST)
*/
/*jsli... |
node_modules/react-router/es/Route.js | jadlao/jadlao.github.io | 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 _classCallCheck(instance, Constructor) { if (!(insta... |
src/containers/Search/Search.js | tpphu/react-pwa | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import * as searchActions from 'redux/modules/search';
import { connect } from 'react-redux';
import { asyncConnect } from 'redux-connect';
import { Grid, Row, Col } from 'react-bootstrap';
const { query } ... |
docs/app/Examples/views/Card/Types/CardExampleIndividualCard.js | ben174/Semantic-UI-React | import React from 'react'
import { Card, Icon, Image } from 'semantic-ui-react'
const CardExampleIndividualCard = () => (
<Card>
<Image src='http://semantic-ui.com/images/avatar2/large/matthew.png' />
<Card.Content>
<Card.Header>
Matthew
</Card.Header>
<Card.Meta>
<span clas... |
src/utils/domUtils.js | pieter-lazzaro/react-bootstrap | import React from 'react';
let canUseDom = !!(
typeof window !== 'undefined' &&
window.document &&
window.document.createElement
);
/**
* Get elements owner document
*
* @param {ReactComponent|HTMLElement} componentOrElement
* @returns {HTMLElement}
*/
function ownerDocument(componentOrElement) {
let e... |
components/require-auth.js | sgmap/inspire | import React from 'react'
import PropTypes from 'prop-types'
import {flowRight} from 'lodash'
import {withRouter} from 'next/router'
import getConfig from 'next/config'
import {translate} from 'react-i18next'
import withSession from './hoc/with-session'
import Info from './info'
import Button from './button'
const {... |
ajax/libs/ember-data.js/1.0.0-beta.19.2/ember-data.js | perdona/cdnjs | (function() {
"use strict";
var ember$data$lib$system$model$errors$invalid$$create = Ember.create;
var ember$data$lib$system$model$errors$invalid$$EmberError = Ember.Error;
/**
A `DS.InvalidError` is used by an adapter to signal the external API
was unable to process a request because the c... |
examples/all-possible-containers/src/components/ChildrenAsFunctionComponent.js | gaearon/react-hot-loader | import React from 'react';
import { EDIT_ME } from './_editMe';
class ChildrenAsFunctionComponent extends React.Component {
render() {
return <div>{this.props.children('passed-argument')}</div>;
}
}
export default ChildrenAsFunctionComponent;
|
ui/src/main/js/pages/__tests__/Jobs-test.js | crashlytics/aurora | import React from 'react';
import { shallow } from 'enzyme';
import Jobs from '../Jobs';
import Breadcrumb from 'components/Breadcrumb';
import JobList from 'components/JobList';
import Loading from 'components/Loading';
import RoleQuota from 'components/RoleQuota';
const TEST_CLUSTER = 'test-cluster';
const TEST_ENV... |
src/app/powerRanger/index.js | brandondewitt/react-transform-boilerplate | import React, { Component } from 'react';
|
src/components/gmaps.js | MicheleBertoli/react-gmaps | import React from 'react';
import ReactDOM from 'react-dom';
import createReactClass from 'create-react-class';
import objectAssign from 'object-assign';
import MapEvents from '../events/map';
import Listener from '../mixins/listener';
import GoogleMaps from '../utils/google-maps';
import compareProps from '../utils/co... |
src/containers/HomeCube.js | pjkarlik/Radial | import React from 'react';
import { resolve } from '../styles';
import Cube from '../components/Cube';
import CubeStyles from '../components/Cube.less';
import { withRouter } from 'react-router';
import AssetManager from '../utils/AssetManager';
import SiteStyles from '../styles/Site.less';
/* eslint no-console: 0 */
/... |
packages/mui-material/src/OutlinedInput/OutlinedInput.js | oliviertassinari/material-ui | import * as React from 'react';
import PropTypes from 'prop-types';
import { refType } from '@mui/utils';
import { unstable_composeClasses as composeClasses } from '@mui/base';
import NotchedOutline from './NotchedOutline';
import useFormControl from '../FormControl/useFormControl';
import formControlState from '../For... |
src/svg-icons/content/forward.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentForward = (props) => (
<SvgIcon {...props}>
<path d="M12 8V4l8 8-8 8v-4H4V8z"/>
</SvgIcon>
);
ContentForward = pure(ContentForward);
ContentForward.displayName = 'ContentForward';
ContentForward.muiNam... |
src/Resume/Label.js | bogdanpetru/resume | import React from 'react'
const Label = ({ label }) => <h2
className="label">
{label}
</h2>
export default Label |
tools/copy.js | TCotton/penny-books | /**
* React Starter Kit (http://www.reactstarterkit.com/)
*
* Copyright © 2014-2015 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import path from 'path';
import replace from 'replace';
imp... |
ajax/libs/forerunnerdb/1.3.370/fdb-legacy.js | sreym/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... |
app/containers/HomePage/index.js | mikejong0815/Temp | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*/
import React from 'react';
import Helmet from 'react-helmet';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import { makeSelectRepos, mak... |
src/Card/CardMedia.js | spiermar/material-ui | import React, {Component, PropTypes} from 'react';
function getStyles(props, context) {
const {cardMedia} = context.muiTheme;
return {
root: {
position: 'relative',
},
overlayContainer: {
position: 'absolute',
top: 0,
bottom: 0,
right: 0,
left: 0,
},
overlay... |
ajax/libs/react-select/1.0.0-rc.3/react-select.js | extend1994/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.Select = f()}}... |
client/components/Routes.js | FlammableHairnet/HireOrbit | import React from 'react';
import { Router, Route, IndexRoute, hashHistory, browserHistory } from 'react-router';
import AppContainer from '../containers/AppContainer';
import HomeContainer from '../containers/HomeContainer';
import Home from '../components/Home';
import SearchContainer from '../containers/SearchContai... |
app/javascript/mastodon/features/home_timeline/index.js | primenumber/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { expandHomeTimeline } from '../../actions/timelines';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../comp... |
docs/src/NavMain.js | bvasko/react-bootstrap | import React from 'react';
import { Link } from 'react-router';
import Navbar from '../../src/Navbar';
import Nav from '../../src/Nav';
const NAV_LINKS = {
'introduction': {
link: 'introduction',
title: 'Introduction'
},
'getting-started': {
link: 'getting-started',
title: 'Getting started'
},
... |
ajax/libs/analytics.js/2.2.4/analytics.js | steakknife/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... |
_gatsby/src/pages/404.js | YannickDot/yannickdot.github.io | import React from 'react'
import { Link } from 'gatsby-link'
import { Container } from 'react-responsive-grid'
import { rhythm, scale } from '../utils/typography'
// import { config } from 'config'
import MarkdownIt from 'markdown-it'
const md = new MarkdownIt()
const mdText = md.render(`
# 404
Sorry folks! Bad ... |
public/src/components/input/input.js | rafaelfbs/rmodel | import React, { Component } from 'react';
import * as inputs from './inputs/index';
import { observer } from 'mobx-react';
export default class Input extends Component {
get type() {
const { model, name } = this.props;
return model.fields[name].inputType;
}
get component() {
const input =... |
examples/js/shopping-list/client/index.js | reimagined/resolve | import React from 'react'
import { render } from 'react-dom'
import { ResolveProvider } from '@resolve-js/react-hooks'
import { BrowserRouter } from 'react-router-dom'
import { renderRoutes } from 'react-router-config'
import routes from './routes'
const entryPoint = (clientContext) => {
const appContainer = document... |
app/app.js | qq541167695/ReduxTest | import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import App from './container/App'
import appReducers from './reducers/AppReducer'
const store = createStore( appReducers );
render(
<div>
<Provider store={... |
src/components/auth/signup.js | RaulEscobarRivas/client | import React, { Component } from 'react';
import { reduxForm } from 'redux-form';
import * as actions from '../../actions';
class SignUp extends Component {
handleFormSubmit({ email, password }) {
this.props.signupUser(email, password);
}
renderErrorMessage(subject) {
return subject.touche... |
src/components/VideoPlayer/HLS/Info.js | matmoi/react-adaptive-streaming | import React from 'react';
import PropTypes from 'prop-types';
import Hls from 'hls.js';
import HLSStream from './Stream.js';
import HLSTrack from './Track.js';
import DropdownPanel from '../../utils/DropdownPanel.js';
export default class HLSInfo extends React.Component {
/**
* Eliminate useless information... |
src/containers/Root.js | kusaeva/firebase-chat | import React from 'react'
const Root = () => (
<div>Hello React Hot Loader!</div>
)
export default Root
|
frontend/src/Components/Error/ErrorBoundary.js | Radarr/Radarr | import * as sentry from '@sentry/browser';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
class ErrorBoundary extends Component {
//
// Lifecycle
constructor(props, context) {
super(props, context);
this.state = {
error: null,
info: null
};
}
compone... |
lib/jquery-1.10.1.min.js | PitchInteractiveInc/Phinch | /*! 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... |
client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/index.js | Automattic/woocommerce-services | /** @format */
/**
* External dependencies
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { localize } from 'i18n-calypso';
import { Modal } from '@wordpress/components';
/**
* Internal dependencies
*/
imp... |
node_modules/material-ui/svg-icons/places/room-service.js | Jacob-Elder/react-socket.io-messaging-v2 | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
test/specs/elements/Icon/IconGroup-test.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import IconGroup from 'src/elements/Icon/IconGroup'
import * as common from 'test/specs/commonTests'
describe('IconGroup', () => {
common.isConformant(IconGroup)
common.rendersChildren(IconGroup)
it('renders as an <i> by default', () => {
shallow(<IconGroup />)
.should.have.t... |
ajax/libs/forerunnerdb/1.4.31/fdb-core+views.min.js | tholu/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... |
website/core/WebPlayer.js | chnfeeeeeef/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
route/Route.js | Aleyasen/DarshanVis-UI | import React from 'react';
import ReactDOM from 'react-dom';
import {Router, Route, Link, hashHistory, browserHistory} from 'react-router';
import MainContainer from '../components/MainContainer';
import Login from '../components/Login';
if (typeof document !== 'undefined') {
ReactDOM.render((
<Router history=... |
client/comps/users.js | nko5/lisezmoi | import React from 'react'
const Users = props => (
<div className='Users'>
<div className='inner'>
{props.users && props.userId? (
<ul>
{props.users.sort((a, b) => b.amount - a.amount).map((user, i) => {
const className = user.id === props.userId? 'me' : ''
return ... |
src/index.js | tvthatsme/yalla-qari | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import './index.css';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
src/parser/priest/shadow/modules/spells/VampiricEmbrace.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import ItemHealingDone from 'interface/ItemHealingDone';
import DamageTracker from 'parse... |
ajax/libs/highmaps/1.0.3/highmaps.src.js | vdurmont/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highmaps JS v1.0.3 (2014-07-03)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout, ... |
src/js/Codedojo/Checkbox.js | pankiv/news | /**
* Created by Vasul on 28.09.2017.
*/
import React from 'react'
class Checkbox extends React.Component {
constructor(props) {
super(props);
this.chekedHundler = this.chekedHundler.bind(this);
this.state = {
checked: this.props.inCheked
}
}
chekedHund... |
packages/icons/src/md/content/Weekend.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdWeekend(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M42 20c-2.21 0-4 1.79-4 4v6H10v-6c0-2.21-1.79-4-4-4s-4 1.79-4 4v10c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4V24c0-2.21-1.79-4-4-4zm-6-10H12c-2.2 0-4 1.8-4 4... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.