path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/ember-data.js/1.13.1/ember-data.js | BitsyCode/cdnjs | (function() {
"use strict";
var ember$data$lib$system$adapter$$get = Ember.get;
/**
An adapter is an object that receives requests from a store and
translates them into the appropriate action to take against your
persistence layer. The persistence layer is usually an HTTP API, but
... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | peperbol/PDTplanner | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
packages/ui/src/containers/eventDetailsContainer/index.js | she-smashes/thehub | import {connect} from 'react-redux';
import EventDetails from '../../components/eventDetails';
import {getEventDetails, registerUserForEvent, updateEventDetails, getAllEnrollmentsForEvent, updateEventEnrollmentsData} from './action';
const mapStateToProps = (state) => {
return {
userInfo: state.userInfo,
ev... |
app/js/toolkit/Medium.js | JeffRisberg/RE03 | import React from 'react';
import PropTypes from 'prop-types';
import MatchMedia from './MatchMedia';
import { MEDIUM } from '../constants/breakpoints';
const Medium = ({ children, mediaFeatures }) => (
<MatchMedia mediaQuery={`(min-width: ${MEDIUM}px)`} mediaFeatures={mediaFeatures}>
{ children }
</MatchMedia... |
ajax/libs/aui/5.6.8/aui/js/aui-dependencies.js | sympmarc/cdnjs | !function(){"use strict";function a(c,d){p||(p=new o(function(b){b.forEach(function(b){a.init(b.addedNodes),f(b.removedNodes)})}),p.observe(document,{childList:!0,subtree:!0})),d||(d={}),"function"==typeof d&&(d={insert:d}),l(d,a.defaults);var e=m(c,d);d.ready&&n.sheet.insertRule(c+":not(."+d.classname+"),["+c+"]:not(.... |
src/js/jobs/components/filters/FilterDropdown.js | tpucci/jobads-webapp | import React from 'react';
import DropDownMenu from 'material-ui/DropDownMenu';
import MenuItem from 'material-ui/MenuItem';
export default class FilterDropdown extends React.Component {
constructor(props) {
super(props);
this.state = {value: props.value || props.menu.default};
this.menu =... |
src/assets/js/react/components/Template/TemplateButton.js | GravityPDF/gravity-forms-pdf-extended | import React from 'react'
import PropTypes from 'prop-types'
/**
* Render the button used to option our Fancy PDF template selector
*
* @package Gravity PDF
* @copyright Copyright (c) 2021, Blue Liquid Designs
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @since 4.1
... |
ajax/libs/reactstrap/3.9.4/reactstrap.min.js | tholu/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom"),require("react-addons-transition-group")):"function"==typeof define&&define.amd?define("Reactstrap",["react","react-dom","react-addons-transition-group"],t):"object"==typeof exports?exports.Reactstrap... |
packages/reactor-tests/src/tests/rel/RelTooltip.js | sencha/extjs-reactor | import React from 'react';
import { Container, Button, ToolTip } from '@extjs/ext-react';
export default function RelTooltip() {
return (
<Container>
<div>This checks that a tooltip can be assigned using a child element. The test should pass if the button has a tooltip.</div>
<Butt... |
ajax/libs/6to5/2.4.10/browser.js | brix/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... |
packages/material-ui-icons/src/LocalActivityOutlined.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M22 10V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2s.9-2 2-2zm-... |
index.js | jokeyrhyme/sprint-calculator | 'use strict';
// foreign modules
import React from 'react';
import WebFont from 'webfontloader';
// local modules
import Root from './containers/root';
// this module
React.render(<Root />, document.body);
WebFont.load({
google: {
families: ['Source Code Pro']
}
});
|
Examples/UIExplorer/WebViewExample.js | charmingzuo/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,
... |
src/components/home/Home.js | refinedjs/refinedjs-blog | import React, { Component } from 'react';
import { Route } from 'react-router-dom';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { ActionCreators } from '../../actions';
import PostPreview from '../post/PostPreview';
import PageHeader from '../pageHeader/PageHeader';
impor... |
src/renderers/dom/client/eventPlugins/__tests__/ChangeEventPlugin-test.js | devonharvey/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... |
files/babel/5.2.13/browser-polyfill.js | iMega/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... |
examples/huge-apps/routes/Grades/components/Grades.js | tkirda/react-router | import React from 'react'
class Grades extends React.Component {
render() {
return (
<div>
<h2>Grades</h2>
</div>
)
}
}
export default Grades
|
node_modules/react-bootstrap/es/InputGroup.js | nikhil-ahuja/Express-React | 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 ... |
bundle.45900ec6c10f77d92243.js | un-loop/wareentryresourceguide | !function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return ... |
src/docs/examples/EyeIcon/Example.js | arnarleifs/ps-react-arnar | import React from 'react';
import EyeIcon from 'ps-react-arnar/EyeIcon';
export default function EyeIconExample() {
return <EyeIcon />;
}; |
src/components/ThreadPane.js | ara4n/vector-threading | /*
Copyright 2016 OpenMarket Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... |
source/app/app.js | u9520107/brown-and-rice | import React from 'react';
import styles from './styles';
import 'normalize.css/normalize.css!';
class Container extends React.Component {
render() {
return <div>Hello Brown & Rice!</div>;
}
}
export default {
component: Container,
routes: {
'/': {
name: 'home',
title: 'Brown & Rice'
}... |
src/svg-icons/maps/local-activity.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalActivity = (props) => (
<SvgIcon {...props}>
<path d="M20 12c0-1.1.9-2 2-2V6c0-1.1-.9-2-2-2H4c-1.1 0-1.99.9-1.99 2v4c1.1 0 1.99.9 1.99 2s-.89 2-2 2v4c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-4c-1.1 0-2-.9-2-2z... |
src/articles/2018-01-31-1st-Anniversary/Timeline.js | FaideWW/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import './Timeline.css';
const Timeline = ({ children }) => (
<div className="timeline year-recap">
{children}
</div>
);
Timeline.propTypes = {
children: PropTypes.node.isRequired,
};
export default Timeline;
|
src/components/mainPanel/topnav/FilterBtn.js | EyEder/TM-Shop | import React from 'react';
import ReactDOM from 'react-dom'
class FilterBtn extends React.Component {
handleClick(value) {
if(value == "newest") {
this.props.filterUserAction("newest");
}
if(value == "lowestPrice") {
this.props.filterUserAction("lowestPrice");
}
if(value == "stared"){
this.props... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | murthag94/126 | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
public/js/head.js | MelanistOnca/Pers |
import React from 'react';
import { render } from 'react-dom';
import $ from 'jquery';
// import d3 from 'd3';
import LayoutSelector from './subComponents/layoutSelector'
//this import probably doesn't need to be here with the switch
import site_header_switch from './helpers/site_header_switch'
import head_header_sw... |
ajax/libs/yui/3.10.0/event-focus/event-focus.js | RobLoach/cdnjs | YUI.add('event-focus', function (Y, NAME) {
/**
* Adds bubbling and delegation support to DOM events focus and blur.
*
* @module event
* @submodule event-focus
*/
var Event = Y.Event,
YLang = Y.Lang,
isString = YLang.isString,
arrayIndex = Y.Array.indexOf,
useActivate = (function() {
... |
static/src/authorize.js | detailyang/cas-server | /**
* @Author: BingWu Yang <detailyang>
* @Date: 2016-03-13T22:17:03+08:00
* @Email: detailyang@gmail.com
* @Last modified by: detailyang
* @Last modified time: 2016-04-21T00:25:11+08:00
* @License: The MIT License (MIT)
*/
import 'antd/dist/antd.css';
import './index.scss';
import React from 'react';
import Re... |
js/components/poemes_components/abyet_modhhaka/index.js | Rebaiahmed/Alchaaer |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Actions } from 'react-native-router-flux';
import { Container, Header, Title, Right,H2,
List, ListItem,InputGroup, Input ,Picker,Badge,H3, Fab,Content, Card, CardItem, Thumbnail, Text, Button, Icon, Left, Body} from 'native-base'... |
app/jsx/new_user_tutorial/trays/AnnouncementsTray.js | djbender/canvas-lms | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
common/static/js/vendor/analytics.js | UQ-UQx/edx-platform_lti | ;(function(){
/**
* Require the given path.
*
* @param {String} path
* @return {Object} exports
* @api public
*/
function require(path, parent, orig) {
var resolved = require.resolve(path);
// lookup failed
if (null == resolved) {
orig = orig || path;
parent = parent || 'root';
var err = new ... |
src/ButtonInput.js | Sipree/react-bootstrap | import React from 'react';
import Button from './Button';
import FormGroup from './FormGroup';
import InputBase from './InputBase';
import childrenValueValidation from './utils/childrenValueInputValidation';
class ButtonInput extends InputBase {
renderFormGroup(children) {
let {bsStyle, value, ...other} = this.p... |
packages/material-ui-icons/src/DescriptionRounded.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M14.59 2.59c-.38-.38-.89-.59-1.42-.59H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8.83c0-.53-.21-1.04-.59-1.41l-4.82-4.83zM15 18... |
src/components/Chatbot/VoiceRecognitionDemo.js | jainvabhi/PWD | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import VoiceRecognition from './lib/VoiceRecognition.js';
class VoiceRecognitionDemo extends Component {
constructor() {
super();
this._sttEnd = this._sttEnd.bind(this);
this._sttResult = this._sttResult.bind(this);
thi... |
force_dir/node_modules/react-bootstrap/es/BreadcrumbItem.js | wolfiex/VisACC | 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 ... |
admin/client/App/shared/Popout/PopoutBody.js | alobodig/keystone | /**
* Render the body of a popout
*/
import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var PopoutBody = React.createClass({
displayName: 'PopoutBody',
propTypes: {
children: React.PropTypes.node.isRequired,
className: React.PropTypes.string,
scrollable: React... |
src/svg-icons/maps/hotel.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsHotel = (props) => (
<SvgIcon {...props}>
<path d="M7 13c1.66 0 3-1.34 3-3S8.66 7 7 7s-3 1.34-3 3 1.34 3 3 3zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.21-1.79-4-4-4z"/>
</SvgIcon>
);
MapsHotel = pure(MapsHot... |
src/components/ButtonFlat.js | mikebarkmin/gestyled | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { space, width, fontSize, color } from 'styled-system';
import { darken, transparentize } from 'polished';
import withStyle from './Base';
const StyledButtonFlat = withStyle(styled.button.attrs({
type: 'butt... |
ajax/libs/es6-shim/0.31.1/es6-shim.js | yukinying/cdnjs | /*!
* https://github.com/paulmillr/es6-shim
* @license es6-shim Copyright 2013-2015 by Paul Miller (http://paulmillr.com)
* and contributors, MIT License
* es6-shim: v0.27.1
* see https://github.com/paulmillr/es6-shim/blob/0.27.1/LICENSE
* Details and documentation:
* https://github.com/paulmillr/es6-... |
src/client/components/editable.react.js | terakilobyte/esterethinksocketchat | import './editable.styl';
import Component from '../components/component.react';
import React from 'react';
import Textarea from 'react-textarea-autosize';
import immutable from 'immutable';
import {msg} from '../intl/store';
const State = immutable.Record({
isEditing: false,
value: ''
});
const initialState = ne... |
ui/effects/use-is-mounted.js | lbryio/lbry-app | import React from 'react';
// Check if component is mounted, useful to prevent state updates after component unmounted
function useIsMounted() {
const isMounted = React.useRef(true);
React.useEffect(() => {
return () => {
isMounted.current = false;
};
}, []);
// Returning "isMounted.current" wo... |
packages/veritone-react-common/src/components/DataPicker/SearchInput/index.js | veritone/veritone-sdk | import React from 'react';
import { func, shape, any } from 'prop-types';
import SearchIcon from '@material-ui/icons/Search';
import ClearIcon from '@material-ui/icons/Clear';
import { withStyles } from '@material-ui/styles';
import styles from './styles';
class SearchInput extends React.Component {
static propType... |
ajax/libs/inferno-compat/7.1.7/inferno-compat.js | extend1994/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('inferno'), require('inferno-clone-vnode'), require('inferno-create-class'), require('inferno-create-element'), require('inferno-extras')) :
typeof define === 'function' && define.amd ? define([... |
src/header/__tests__/DummyNavButton.js | kosiakMD/react-native-elements | import React from 'react';
import { shallow } from 'enzyme';
import toJson from 'enzyme-to-json';
import DummyNavButton from '../DummyNavButton';
describe('DummyNavButton Component', () => {
it('should render without issues', () => {
const component = shallow(<DummyNavButton />);
expect(component.length).to... |
src/js/shared/components/errors-summary.js | akornatskyy/sample-blog-react-redux | import React from 'react';
import PropTypes from 'prop-types';
import {Alert} from 'react-bootstrap';
class ErrorsSummary extends React.Component {
render() {
let errors = this.props.errors || this.context.errors;
if (!errors) {
return null;
}
errors = errors.__ERROR_... |
src/ChatItem/ChatItem.js | abdurrahmanekr/react-chat-elements | import React, { Component } from 'react';
import './ChatItem.css';
import Avatar from '../Avatar/Avatar';
import {
format,
} from'timeago.js';
import classNames from 'classnames';
export class ChatItem extends Component {
render() {
return (
<div
className={classNames('r... |
frontend/src/components/eois/cells/isDirectCell.js | unicef/un-partner-portal |
import React from 'react';
import PropTypes from 'prop-types';
import Ok from 'material-ui-icons/Done';
const isDirectCell = (props) => {
const { isDirect } = props;
return (isDirect ? <Ok /> : <div>-</div>);
};
isDirectCell.propTypes = {
isDirect: PropTypes.bool,
};
export default isDirectCell;
|
public/js/.module-cache/bd93b28a60cb19aa2b9f4fbfa3ace2616d494495.js | inquisive/wallet-manager | /**
* @jsx React.DOM
*/
var addroute = {}
addroute[snowPath.root] = "redirect";
addroute[snowPath.root + snowPath.wallet] = "overview";
addroute[snowPath.root + snowPath.wallet + "/:wallet/:moon"] = "wallet";
addroute[snowPath.root + snowPath.receive + "/:moon"] = "receive";
addroute[snowPath.root + snowPath.settin... |
examples/server-rendering/jsapp/src/App.js | garbles/react | 'use strict';
var React = require('react');
var App = React.createClass({
render: function() {
return <h1>Hello {this.props.name}!</h1>;
}
});
module.exports = App;
|
ajax/libs/angular.js/0.9.2/angular-scenario.js | stomita/cdnjs | /*!
* jQuery JavaScript Library v1.4.2
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
packages/demos/demo/src/components/Client/form.js | yusufsafak/cerebral | import React from 'react'
import { connect } from 'cerebral/react'
import { signal, state } from 'cerebral/tags'
import translations from '../../common/compute/translations'
import Input from './Input'
import Header from './Header'
import Textarea from '../Textarea'
export default connect(
{
item: state`clients... |
components/Popovers.js | argelius/react-onsenui-kitchensink | import React from 'react';
import {
Page,
Toolbar,
BackButton,
Popover
} from 'react-onsenui';
class Popovers extends React.Component {
constructor(props) {
super(props);
this.state = {
isOpen: false
};
}
showPopover() {
this.setState({
isOpen: true
});
setTimeout(... |
ajax/libs/webshim/1.15.1-RC1/dev/shims/es6.js | KOLANICH/cdnjs | // ES6-shim 0.15.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/
webshim.register('es6', function($, webshim, window, document, undefined){
'use strict';
var isCallableW... |
src/components/calendar/NewSlotModal.js | ChrisWhiten/react-rink | import React, { Component } from 'react';
import ThumbsUp from 'material-ui/svg-icons/action/thumb-up';
import ThumbsDown from 'material-ui/svg-icons/action/thumb-down';
import RaisedButton from 'material-ui/RaisedButton';
import moment from 'moment';
import {
Modal,
} from 'react-bootstrap';
import './styles/NewSlo... |
ajax/libs/ui-router-extras/0.0.11/ct-ui-router-extras.js | sashberd/cdnjs | /**
* UI-Router Extras: Sticky states, Future States, Deep State Redirect, Transition promise
* @version v0.0.11
* @link http://christopherthielen.github.io/ui-router-extras/
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
(function (window, angular, undefined) {
angular.module("ct.ui.router.ext... |
ajax/libs/clappr/0.0.33/clappr.js | kentcdodds/cdnjs | require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o]... |
app/javascript/mastodon/components/column_back_button_slim.js | maa123/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import ColumnBackButton from './column_back_button';
import Icon from 'mastodon/components/icon';
export default class ColumnBackButtonSlim extends ColumnBackButton {
render () {
return (
<div className='column-back-button--slim'>
... |
[2]. Demo_RN/[20]. section_listView_demo/index.ios.js | knightsj/RN_Demo | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
ListView,
Image,
TouchableOpacity
} from 'react-native';
// 导入外部的json数据
var Car = require('./Car.json');
var BListViewDemo = Re... |
packages/material-ui-icons/src/GamepadRounded.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M15 7.29V3c0-.55-.45-1-1-1h-4c-.55 0-1 .45-1 1v4.29c0 .13.05.26.15.35l2.5 2.5c.2.2.51.2.71 0l2.5-2.5c.09-.09.14-.21.14-.35zM7.29 9H3c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h4.29c.13 0 .26-.0... |
assets/node_modules/react-router/es6/RoutingContext.js | janta-devs/janta | import React from 'react';
import RouterContext from './RouterContext';
import warning from './routerWarning';
var RoutingContext = React.createClass({
displayName: 'RoutingContext',
componentWillMount: function componentWillMount() {
process.env.NODE_ENV !== 'production' ? warning(false, '`RoutingContext` has... |
lib/perl/WebInterface/Extension/TextEditor/htdocs/contrib/codemirror/mode/jsx/test.js | DanRohde/webdavcgi | // CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function() {
var mode = CodeMirror.getMode({indentUnit: 2}, "jsx")
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)) }
MT("selfclose",
"[keyword ... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/material-ui/svg-icons/device/signal-wifi-3-bar-lock.js | bhathiya/test | '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... |
components/dropdown/Dropdown.js | rubenmoya/react-toolbox | /* eslint-disable */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import classnames from 'classnames';
import { themr } from 'react-css-themr';
import { DROPDOWN } from '../identifiers';
import InjectInput from '../input/Input';
import events from '../u... |
app/javascript/mastodon/components/domain.js | masto-donte-com-br/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import IconButton from './icon_button';
import { defineMessages, injectIntl } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
const messages = defineMessages({
unblockDomain: { id: 'account.unblock_domain', default... |
node_modules/react-icons/md/settings.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const MdSettings = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 25.9c3.2 0 5.9-2.7 5.9-5.9s-2.7-5.9-5.9-5.9-5.9 2.7-5.9 5.9 2.7 5.9 5.9 5.9z m12.4-4.3l3.5 2.8c0.4 0.2 0.4 0.7 0.2 1.1l-3.4 5.8c-0.2 0.3-0.6 0.4-1 0.3l-4.1-1.7c-... |
ajax/libs/react-instantsearch/6.0.0-beta.0/Dom.js | sufuf3/cdnjs | /*! React InstantSearch 6.0.0-beta.0 | © Algolia, inc. | https://github.com/algolia/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], facto... |
ajax/libs/forerunnerdb/1.3.687/fdb-core.min.js | hare1039/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... |
files/rxjs/2.2.28/rx.js | bdukes/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... |
ajax/libs/react-router/0.9.5/react-router.js | MenZil/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.ReactRouter=e()}}(function(){var define,module,export... |
docs/src/app/components/pages/components/TextField/ExampleSimple.js | tan-jerene/material-ui | import React from 'react';
import TextField from 'material-ui/TextField';
const TextFieldExampleSimple = () => (
<div>
<TextField
hintText="Hint Text"
/><br />
<br />
<TextField
hintText="The hint text can be as long as you want, it will wrap."
/><br />
<TextField
id="text-f... |
react/src/index.js | LeChosenOne/EasyRecipe | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
node_modules/react-bootstrap/es/NavItem.js | acalabano/get-committed | 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 ... |
templates/components/build-number/build-number.js | garney/slush-react-redux-boilerplate | import React from 'react';
import styleable from 'react-styleable';
import PropTypes from 'prop-types';
import '../../styles/core.scss';
import css from './build-number.scss';
const BuildNumber = ({ str = 'state less component' }) => (
<div className={css.component}>
<h1>{str}</h1>
</div>
);
BuildNumber.propTyp... |
public/assets/jasmine-specs-e6f0283f6ad3fff82410f42bb82fa640.js | impact100/common-grant-application | /*!
* jQuery JavaScript Library v1.11.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-05-01T17:42Z
*/
(function( global, factory ) {
if... |
blueprints/smart/files/__root__/containers/__name__/__name__.js | omelhoro/devshop-vtex | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
type Props = {
}
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render () {
return (
<div></div>
)
}
}
const mapStateToProps = (state) => {
return {}
}
const... |
src/svg-icons/maps/local-hotel.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalHotel = (props) => (
<SvgIcon {...props}>
<path d="M7 13c1.66 0 3-1.34 3-3S8.66 7 7 7s-3 1.34-3 3 1.34 3 3 3zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.21-1.79-4-4-4z"/>
</SvgIcon>
);
MapsLocalHotel = pu... |
blueocean-material-icons/src/js/components/svg-icons/action/rowing.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionRowing = (props) => (
<SvgIcon {...props}>
<path d="M8.5 14.5L4 19l1.5 1.5L9 17h2l-2.5-2.5zM15 1c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 20.01L18 24l-2.99-3.01V19.5l-7.1-7.09c-.31.05-.61.07-.91.07v-2.16c1.66.03 3.61-.87 4.67-2.04l1... |
app/javascript/mastodon/features/account_timeline/index.js | Craftodon/Craftodon | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { fetchAccount } from '../../actions/accounts';
import { refreshAccountTimeline, expandAccountTimeline } from '../../actions/timelines';
import StatusL... |
src/svg-icons/action/extension.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionExtension = (props) => (
<SvgIcon {...props}>
<path d="M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V... |
src/components/run.js | bluebill1049/cart | import React from 'react';
import ReactDOM from 'react-dom';
import App from './Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
src/components/event.js | Peterrkang/Locals | import React, { Component } from 'react';
import { Link } from 'react-router';
class Event extends Component {
render() {
const values = Object.values(this.props.activeEvent)[0];
const id = Object.keys(this.props.activeEvent)[0];
if(!id) {
return <div className="event"> Select an event to get sta... |
src/Components/Pressure.js | vpodolyan/measurements | import React from 'react';
import PropTypes from 'prop-types';
import Measure from './Measure';
import SimpleValue from './SimpleValue';
const Pressure = (props, context) => {
const {data} = context;
return (
<div>
{data && data.Pressure && <Measure {...data.Pressure} ValueElement={Simpl... |
app/packs/src/components/contextActions/ModalImportConfirm.js | ComPlat/chemotion_ELN | import React from 'react';
import PropTypes from 'prop-types';
import {
Button,
ButtonToolbar,
FormGroup,
Checkbox
} from 'react-bootstrap';
import { AgGridReact } from 'ag-grid-react';
import SVG from 'react-inlinesvg';
import ElementActions from '../actions/ElementActions';
const MyCell = ({col,data,rowInde... |
client/Pages/StaticLayout.js | codybarr/GoMobileCT | import React from 'react';
import { Link } from 'react-router';
import Navbar from '../components/Navbar';
export default class StaticLayout extends React.Component {
render() {
return (
<div>
<Navbar />
{this.props.children}
<footer class="footer">
<div class="contain... |
src/app/components/ui/UiAccordion.js | backpackcoder/world-in-flames | import React from 'react'
import ReactDOM from 'react-dom'
let UiAccordion = React.createClass({
componentDidMount: function(){
$(ReactDOM.findDOMNode(this)).accordion({
autoHeight : false,
heightStyle : "content",
collapsible : true,
animate : 300,
... |
app/javascript/mastodon/components/column_back_button_slim.js | kirakiratter/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
import ColumnBackButton from './column_back_button';
import Icon from 'mastodon/components/icon';
export default class ColumnBackButtonSlim extends ColumnBackButton {
render () {
return (
<div className='column-back-button--slim'>
... |
fields/types/text/TextColumn.js | andreufirefly/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue';
var TextColumn = React.createClass({
displayName: 'TextColumn',
propTypes: {
col: React.PropTypes.object,
... |
spec/client/ProfileSpecs/ProfileSpec.js | anthonypecchillo/bracegirdles | import {fakeUser} from './fakeData.js';
import {fakePost} from './fakeData.js';
import {fakePhoto} from './fakeData.js';
import {fakeFriends} from './fakeData.js';
import Profile from '../../../client/ProfileComponents/Profile.jsx';
import ReactTestUtils from 'react-addons-test-utils';
import {expect} from 'chai'... |
ajax/libs/glamorous/4.3.1/glamorous.umd.js | holtkamp/cdnjs | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react'), require('glamor')) :
typeof define === 'function' && define.amd ? define(['react', 'glamor'], factory) :
(global.glamorous = factory(global.React,global.Glamor));
}(this, (function ... |
app/javascript/mastodon/components/autosuggest_emoji.js | pso2club/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import unicodeMapping from '../features/emoji/emoji_unicode_mapping_light';
const assetHost = process.env.CDN_HOST || '';
export default class AutosuggestEmoji extends React.PureComponent {
static propTypes = {
emoji: PropTypes.object.isRequired,
... |
ajax/libs/primereact/6.5.0-rc.2/listbox/listbox.esm.js | cdnjs/cdnjs | import React, { Component } from 'react';
import { DomHandler, classNames, ObjectUtils, FilterUtils } from 'primereact/utils';
import { Ripple } from 'primereact/ripple';
import { InputText } from 'primereact/inputtext';
import { tip } from 'primereact/tooltip';
import { VirtualScroller } from 'primereact/virtualscroll... |
components/PageFooter.js | sectore/pragmaticstudio-bingo-redux | import React, { Component } from 'react';
export default class PageFooter extends Component {
render() {
return (
<footer>
<p><a href="https://pragmaticstudio.com/elm">Bingo example</a> ported from <a href="http://elm-lang.org">Elm</a> to <a href="http://rackt.github.io/redux/">Redux</a> by <a hre... |
o2web/source/x_component_appstore_application/src/App.js | o2oa/o2oa | import './App.css';
import React from 'react';
import AppBase from './components/AppBase.js';
import AppDescribe from './components/AppDescribe.js';
import AppInstallSteps from './components/AppInstallSteps.js';
import AppVideo from './components/AppVideo.js';
import {o2, component, lp} from '@o2oa/component';
export... |
ajax/libs/forerunnerdb/1.3.556/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... |
src/components/ContactPage/ContactPage.js | alexmasselot/medlineGeoWebFrontend | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { PropTypes, Component } from 'react';
import styles from './ContactPage.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class ContactPage extends Component {
static contextTypes = {
onSetTitl... |
wp-content/themes/theme-femac/js/jquery-1.9.0.min.js | abesamislyndon/femaccms | /*! jQuery v1.9.0 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license */(function(e,t){"use strict";function n(e){var t=e.length,n=st.type(e);return st.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Tt[e]={};return st.each(e.matc... |
src/pages/dynamic/Shortest/Shortest.js | hyy1115/react-redux-webpack3 | import React from 'react'
class Shortest extends React.Component {
render() {
return (
<div>Shortest</div>
)
}
}
export default Shortest |
src/views/WikipediaView/WikipediaView.js | Vargentum/react-redux-apps | import React from 'react'
import Wikipedia from '../../containers/Wikipedia'
import CommonView from '../CommonView'
export class WikipediaView extends React.Component {
render () {
return (
<CommonView
title="FreeCodeCamp Wikipedia Viewer"
description="Provide simple search application via ... |
src/js/components/icons/base/ClearOption.js | odedre/grommet-final | /**
* @description ClearOption SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
*... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.