path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
actor-apps/app-web/src/app/components/common/MessageItem.react.js | sc4599/actor-platform | import _ from 'lodash';
import React from 'react';
import { PureRenderMixin } from 'react/addons';
import memoize from 'memoizee';
import classNames from 'classnames';
import emojify from 'emojify.js';
import hljs from 'highlight.js';
import marked from 'marked';
import emojiCharacters from 'emoji-named-characters';
... |
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js | Kirishima21/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components';
import Overlay from 'react-overlays/lib/Overlay';
import classNames from 'classnames';
import Immuta... |
docs/app/Examples/modules/Embed/Types/EmbedExampleYoutube.js | shengnian/shengnian-ui-react | import React from 'react'
import { Embed } from 'shengnian-ui-react'
const EmbedExampleYouTube = () => (
<Embed
id='O6Xo21L0ybE'
placeholder='/assets/images/image-16by9.png'
source='youtube'
/>
)
export default EmbedExampleYouTube
|
node_modules/babel-preset-react-hmre/test/Test.js | SuperUncleCat/ServerMonitoring | import React from 'react'
export default
class Test extends React.Component {
render() {
return (
<div>Winning?</div>
)
}
}
|
ajax/libs/clappr/0.0.31/clappr.js | tambien/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/features/account_timeline/components/moved_note.js | Ryanaka/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage } from 'react-intl';
import ImmutablePureComponent from 'react-immutable-pure-component';
import AvatarOverlay from '../../../components/avatar_overlay';
import DisplayNam... |
src/components/hocs/withFallbackText.js | Portgass/prototype-orders | import React from 'react'
import Typography from '@material-ui/core/Typography'
import { withStyles } from '@material-ui/core/styles'
const styles = theme => ({
root: {
alignSelf: 'center',
justifySelf: 'center',
textAlign: 'center',
margin: '32px auto',
color: theme.palette.text.secondary
}
})
/**
* Sh... |
docs/src/app/components/pages/customization/InlineStyles.js | ruifortes/material-ui | import React from 'react';
import Title from 'react-title-component';
import Checkbox from 'material-ui/Checkbox';
import CodeExample from '../../CodeExample';
import typography from 'material-ui/styles/typography';
class InlineStyles extends React.Component {
getStyles() {
return {
headline: {
fon... |
docs/src/app/components/pages/components/Divider/Page.js | skarnecki/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import dividerReadmeText from './README';
import DividerExampleForm from './Exam... |
public/static/Xheditor/jquery/jquery-1.8.3.min.js | kennygp/kenny | /*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===... |
src/routes/Login/components/LoginForm/LoginForm.js | skylus/tom-rrf | import React from 'react'
import PropTypes from 'prop-types'
import { Link } from 'react-router'
import RaisedButton from 'material-ui/RaisedButton'
import Checkbox from 'material-ui/Checkbox'
import { Field, reduxForm } from 'redux-form'
import { TextField } from 'redux-form-material-ui'
import { required, validateEm... |
modules/__tests__/_bc-History-test.js | shunitoh/react-router | import expect from 'expect'
import React from 'react'
import { render, unmountComponentAtNode } from 'react-dom'
import History from '../History'
import Router from '../Router'
import Route from '../Route'
import createHistory from 'history/lib/createMemoryHistory'
import shouldWarn from './shouldWarn'
describe('v1 Hi... |
test/reducers-test.js | xinhuang327/typed-dva | import expect from 'expect';
import React from 'react';
import dva from '../src/index';
describe('reducers', () => {
it('type error', () => {
const app = dva();
expect(() => {
app.model({
namespace: '_array',
reducers: [{}, () => {}],
});
}).toNotThrow();
expect(() => {
... |
imports/ui/components/works/WorkDetail/WorkDetail.js | pletcher/cltk_frontend | import React from 'react';
import PropTypes from 'prop-types';
// Single work detail view
class WorkDetail extends React.Component {
render() {
const work = this.props.work;
return (
<div>
<section className="page-head image-bg bg-dark">
<div className="background-image-holder less-blur blur">
... |
ajax/libs/yui/3.9.0/scrollview-base/scrollview-base.js | stevermeister/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
// Local vars
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
IE = Y.UA.ie... |
app/components/Icons/BuzzerOnIcon.js | PeterEB/quick-demo-boilerplate | import React from 'react';
export default function (props) {
return (
<div style={{position: "absolute", top: "0", bottom: "0", left: "0", right: "0", margin: "auto", width: '60%', height: '60%'}}>
<svg style={props.style} fill={props.fill} height="100%" viewBox="0 0 24 24" width="100%" xmlns="... |
test/regressions/tests/Checkbox/DisabledCheckbox.js | dsslimshaddy/material-ui | // @flow
import React from 'react';
import Checkbox from 'material-ui/Checkbox';
import { FormControlLabel } from 'material-ui/Form';
export default function DisabledCheckbox() {
return (
<div>
<FormControlLabel disabled control={<Checkbox />} label="Foo" />
<Checkbox disabled />
<Checkbox che... |
packages/giu/src/inputs/dateTimePicker.js | guigrpa/giu | // @flow
import React from 'react';
import classnames from 'classnames';
import moment from '../vendor/moment';
import { getTimeInSecs, startOfDefaultDay } from '../gral/dates';
import { KEYS } from '../gral/constants';
import type { Moment, KeyboardEventPars } from '../gral/types';
import DatePicker from './datePicke... |
src/js/components/icons/base/Microphone.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
ajax/libs/react/0.11.1/react.min.js | AlexisArce/cdnjs | /**
* React v0.11.1
*
* Copyright 2013-2014 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
frontend/src/Settings/General/GeneralSettings.js | Radarr/Radarr | import _ from 'lodash';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Form from 'Components/Form/Form';
import LoadingIndicator from 'Components/Loading/LoadingIndicator';
import ConfirmModal from 'Components/Modal/ConfirmModal';
import PageContent from 'Components/Page/PageConten... |
fields/types/name/NameColumn.js | riyadhalnur/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTableValue';
import displayName from 'display-name';
var NameColumn = React.createClass({
displayName: 'NameColumn',
propTypes: {
col: React.Pr... |
ajax/libs/inferno/1.0.0-beta18/inferno-mobx.min.js | jdh8/cdnjs | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("./inferno-component"),require("./inferno"),require("./inferno-create-class"),require("./inferno-create-element")):"function"==typeof define&&define.amd?define(["inferno-component","inferno","inferno-create-class","inferno-crea... |
src/components/icons/QueueAdd.js | niekert/soundify | import React from 'react';
import PropTypes from 'prop-types';
const QueueAdd = ({ fill, ...props }) =>
<svg
fill={fill}
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path d="M0 0h24v24H0z" fill="none" />
<path d="M14 10H2v2h12v-2zm0-4H2v2h12V6zm4 8v-4h-2v4h-4v2h4v4h... |
src/components/InputSwitch.js | OpenCollective/frontend | import React from 'react';
import { withStyles } from '@material-ui/core/styles';
import Switch from '@material-ui/core/Switch';
const styles = () => ({
colorSwitchBase: {
'&$colorChecked': {
color: '#3385ff',
'& + $colorBar': {
backgroundColor: '#3385ff',
},
},
},
colorBar: {},... |
node_modules/react-icons/io/ios-plus-outline.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const IoIosPlusOutline = 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 31.1c8.2 0 14.9-6.7 14.9-14.9s-6.7-14.9-14.9-14.9-15 6.7-15 14... |
ajax/libs/jquery/1.4.2/jquery.js | mfidemraizer/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.
... |
src/components/video_list_item.js | erdgabios/react-youtube-search | import React from 'react';
const VideoListItem = ({video, onVideoSelect}) => {
const imageUrl = video.snippet.thumbnails.default.url;
return (
<li onClick={() => onVideoSelect(video)} className="list-group-item">
<div className="video-list media">
<div className="media-left">
<img clas... |
index.ios.js | ScottBouloutian/power | /*
Power, a wake on LAN mobile application.
Copyright (C) 2017 Scott Bouloutian
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your o... |
ajax/libs/yui/3.16.0/event-custom-base/event-custom-base-coverage.js | abbychau/cdnjs | /*
YUI 3.16.0 (build 76f0e08)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/event-custom-base/event-custom-base.js']) {
__coverage__['build/event-custom-base/e... |
docs/src/NotFoundPage.js | BespokeInsights/react-bootstrap | import React from 'react';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
const NotFoundPage = React.createClass({
render() {
return (
<div>
<NavMain activePage="" />
<PageHeader
title="404"
subT... |
src/App.js | iestruch/react_demo | import React from 'react';
/** react-router routes */
import Root from './Routes';
/** components */
import SideNav from './components/SideNav/SideNav';
import Layout from './containers/Layout/Layout';
/** material ui */
import mui, {AppBar,} from 'material-ui';
import CustomTheme from './theme';
let ThemeManager = ... |
src/components/courseTypePicker.android.js | Andrey11/golfmanager | import React, { Component } from 'react';
import {
AppRegistry,
Picker,
View
} from 'react-native';
import styles from '../styles/basestyles.js';
export default class courseTypePicker extends Component {
render() {
return (
<View style={styes.picker_android}>
<Picker
selectedValue=... |
react/Highlight/Highlight.js | seek-oss/seek-style-guide | // @flow
import styles from './Highlight.less';
import React from 'react';
import classnames from 'classnames';
import { TONE } from '../private/tone';
type Props = {
children: React$Node,
secondary?: boolean,
className?: string,
tone?: typeof TONE.CRITICAL
};
export default function Highlight(props: Props) {... |
ajax/libs/es6-shim/0.15.1/es6-shim.js | cbas/cdnjs | // ES6-shim 0.15.1 (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(); }
... |
files/rtc/3.2.2/rtc.min.js | labsvisual/jsdelivr | !function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.RTC=n()}}(function(){return function n(e,t,r){function ... |
src/parser/warrior/arms/modules/talents/ImpendingVictory.js | fyruna/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import { formatThousands } from 'common/format';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import SpellLink from 'common/SpellLink';
import StatisticListBoxItem from ... |
node_modules/react-router/es6/RouteUtils.js | MichaelWiss/React_E | 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; };
import React from 'react';
function isValidChild(object) {
... |
ajax/libs/analytics.js/1.3.9/analytics.js | kentucky-roberts/cdnjs | ;(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 ... |
packages/vx-legend/src/shapes/Circle.js | Flaque/vx | import React from 'react';
import { Group } from '@vx/group';
export default function ShapeCircle({ fill, width, height, style }) {
if (typeof width === 'string') width = 0;
if (typeof height === 'string') height = 0;
const size = Math.max(width, height);
const radius = size / 2;
return (
<svg width={siz... |
src/containers/ProgressBarContainer.js | rkhitin/pomidoro-timer | // @flow
import React from 'react'
import { connect } from 'react-redux'
import progressBarSchemeGenerator from '../utils/progressBarSchemeGenerator'
import ProgressBar from '../components/ProgressBar'
const ProgressBarContainer = ({
timer,
settings,
}: {
timer: TimerState,
settings: SettingsState,
}) => {
... |
src/svg-icons/communication/phonelink-erase.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPhonelinkErase = (props) => (
<SvgIcon {...props}>
<path d="M13 8.2l-1-1-4 4-4-4-1 1 4 4-4 4 1 1 4-4 4 4 1-1-4-4 4-4zM19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0... |
04 Angular/A-Web/node_modules/rx-lite/rx.lite.js | jandrest2018/TWJ-2017-A | // Copyright (c) Microsoft, All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'function': true,
'object': true
};
function checkGlobal(value) {
return (value && value.Object === Object) ? value : null;
}
var freeExpor... |
packages/material-ui-icons/src/FormatAlignCenter.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment>
, 'FormatAlignCenter');
|
packages/lore-hook-forms-material-ui/src/blueprints/update/Wizard/forms/Confirmation.js | lore/lore-forms | import React from 'react';
import createReactClass from 'create-react-class';
import PropTypes from 'prop-types';
import { CardTitle, CardText, CardActions, RaisedButton } from 'material-ui';
export default createReactClass({
displayName: 'Confirmation',
propTypes: {
callbacks: PropTypes.object
},
render... |
uiexplorer/examples/Carousel.js | tipsi/tipsi-ui-kit | import React from 'react'
import { View, Text } from 'react-native'
import Icon from 'react-native-vector-icons/FontAwesome'
import register from '../core/utils/register'
import { Carousel } from '../../src'
/* eslint react/prop-types: 0 */
const Wrapper = ({ children }) => (
<View style={{ borderRadius: 5, backgrou... |
src/home.js | FederationOfFathers/ui | import React, { Component } from 'react';
import dpr from './lib/dpr'
var homeStats = {
games: null,
stats: null,
}
class Home extends Component {
componentWillMount = () => {
var games = {}
var stats = {}
if ( homeStats.games !== null ) {
games = homeStats.games
}
if ( homeStats.stats !== null ) {
... |
ajax/libs/react-highcharts/8.3.1/ReactHighstock.js | hare1039/cdnjs | !function(t,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("highcharts/highstock")):"function"==typeof define&&define.amd?define(["react","highcharts/highstock"],r):"object"==typeof exports?exports.ReactHighstock=r(require("react"),require("highcharts/highstock")):t.React... |
ajax/libs/react-bootstrap-table/2.9.2/react-bootstrap-table.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.ReactBootstrapTable=t(require("react"),require("react-dom")):e.ReactBootstrapTable=t(e.React,e.R... |
ajax/libs/babel-core/5.6.6/browser-polyfill.js | tholu/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... |
ajax/libs/analytics.js/1.3.7/analytics.js | dryajov/cdnjs | ;(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 ... |
client/webpack.dev.js | jhuntoo/starhackit | var path = require( 'path' );
var webpack = require( 'webpack' );
var OpenBrowserPlugin = require('open-browser-webpack-plugin');
var webpackDevConfig = {
overrides: {
devtool: 'eval',
debug: true,
entry: {
app: [
'webpack-dev-server/client?http://localhost:8080'... |
app/components/CommonComponents/index.js | BeautifulTrouble/beautifulrising-client | /**
*
* CommonComponents
*
*/
import React from 'react';
import styled from 'styled-components';
import Isvg from 'react-inlinesvg';
import SmallHeaderBlock from 'components/SmallHeaderBlock';
import { TYPE_STORIES, TYPE_TACTICS, TYPE_PRINCIPLES,
TYPE_THEORIES, TYPE_METHODOLOGIES } from './constants';
fun... |
src/components/PriorityColumn.js | Montana-Code-School/LifeCoach | import React from 'react';
import {Col} from 'react-bootstrap';
import { inject, observer } from 'mobx-react';
class PriorityColumn extends React.Component{
render(){
let priorityGoals = this.props.goalStore.goalsArr.filter(goal => goal.status == 'priority');
let displayPriorityColumnGoals = priorityGoals.ma... |
src/smoothline/SmoothLineChartBasic.js | marzolfb/rn-art-d3-examples | /*
Copyright 2016 Capital One Services, LLC
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... |
src/svg-icons/action/autorenew.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAutorenew = (props) => (
<SvgIcon {...props}>
<path d="M12 6v3l4-4-4-4v3c-4.42 0-8 3.58-8 8 0 1.57.46 3.03 1.24 4.26L6.7 14.8c-.45-.83-.7-1.79-.7-2.8 0-3.31 2.69-6 6-6zm6.76 1.74L17.3 9.2c.44.84.7 1.79.7 ... |
packages/ndla-icons/src/editor/Quote.js | netliferesearch/frontend-packages | /**
* Copyright (c) 2017-present, NDLA.
*
* This source code is licensed under the GPLv3 license found in the
* LICENSE file in the root directory of this source tree.
*
*/
// N.B! AUTOGENERATED FILE. DO NOT EDIT
import React from 'react';
import Icon from '../Icon';
const Quote = props => (
<Icon
viewBox... |
desktop-application/node_modules/material-ui/src/styles/theme-decorator.js | santosh-surya/pcb-cnc-machine | import React from 'react';
export default (customTheme) => {
return function(Component) {
return React.createClass({
childContextTypes: {
muiTheme: React.PropTypes.object,
},
getChildContext() {
return {
muiTheme: customTheme,
};
},
render() {
... |
ajax/libs/yui/3.3.0pr4/event-custom/event-custom-base.js | CyrusSUEN/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 ev... |
ajax/libs/react/0.10.0/react.js | chriszarate/cdnjs | /**
* React v0.10.0
*/
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.React=e()}}(function(){var define,module,exports;return (fu... |
browserify-test/src/index.js | ryanmcgrath/react-iconpack | import React from 'react';
import {render} from 'react-dom';
import Icon from 'react-iconpack';
class TestComponent extends React.Component {
render() {
return <Icon uri="polymer/notification/disc_full" width="48" height="48"/>;
}
};
render(<TestComponent />, document.getElementById('test-node'));
|
files/yui/3.15.0/event-custom-base/event-custom-base.js | justincy/jsdelivr | /*
YUI 3.15.0 (build 834026e)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.En... |
Y2Q2/Research/notebooks/test_E100_M3_All_files/jquery-1.11.1/jquery.min.js | aocalderon/PhD | /*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
examples/todomvc/test/components/TodoTextInput.spec.js | mjw56/redux | import expect from 'expect'
import React from 'react'
import TestUtils from 'react-addons-test-utils'
import TodoTextInput from '../../components/TodoTextInput'
function setup(propOverrides) {
const props = Object.assign({
onSave: expect.createSpy(),
text: 'Use Redux',
placeholder: 'What needs to be done... |
packages/core/admin/admin/src/content-manager/components/DynamicTable/CellContent/index.js | wistityhq/strapi | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { Typography } from '@strapi/design-system/Typography';
import Media from './Media';
import MultipleMedias from './MultipleMedias';
import Relation from './Relation';
import CellValue from './CellValue';
const... |
test/specs/elements/Step/Step-test.js | koenvg/Semantic-UI-React | import faker from 'faker'
import React from 'react'
import Step from 'src/elements/Step/Step'
import StepContent from 'src/elements/Step/StepContent'
import StepDescription from 'src/elements/Step/StepDescription'
import StepTitle from 'src/elements/Step/StepTitle'
import * as common from 'test/specs/commonTests'
impo... |
React Nanodegree /P3 - Mobile Flashcards/App.js | manishbisht/Udacity | import React, {useEffect, useCallback, useState} from 'react';
import {NavigationContainer} from '@react-navigation/native';
import {createStackNavigator} from '@react-navigation/stack';
import {StyleSheet, Text, View} from 'react-native';
import {getDecks} from "./src/utils/helper";
import HomeContainer from "./src/pa... |
src/components/CommentForm.js | OpenCollective/frontend | import React from 'react';
import PropTypes from 'prop-types';
import { get, pick } from 'lodash';
import withIntl from '../lib/withIntl';
import { defineMessages, FormattedMessage, FormattedDate } from 'react-intl';
import InputField from './InputField';
import SmallButton from './SmallButton';
import Avatar from './A... |
web/static/js/components/RankedStats.js | josephyi/anivia | import React from 'react'
import { Table } from 'react-bootstrap'
import champ_icons from '../css/StaticChampionSprites.css'
import championIcon from '../css/ChampionIcon.css'
import champions from '../data/champ_id_to_name.json'
import { Panel, Label } from 'react-bootstrap'
import { BootstrapTable, TableHeaderColumn ... |
src/components/comment-box.js | Doko-Demo-Doa/CSClient-RN | 'use strict';
import React from 'react';
import { Icon, Button } from 'native-base';
import { Field, reduxForm, SubmissionError } from 'redux-form';
import { View, Text, TextInput, Alert } from 'react-native';
import { receiveComment } from '../actions/actions-content';
import API from '../services/api';
import Styles ... |
src/svg-icons/action/http.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHttp = (props) => (
<SvgIcon {...props}>
<path d="M4.5 11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5v2zm2.5-.5h1.5V15H10v-4.5h1.5V9H7v1.5zm5.5 0H14V15h1.5v-4.5H17V9h-4.5v1.5zm9-1.5H18v6h1.5v-2h2c.8 0 1.5-.7 1.5-1.5v-... |
src/editors/TextAreaEditor.js | diogofcunha/react-data-grid-extensions | import React from 'react';
import PropTypes from 'prop-types';
import editorWrapper from './editorWrapper';
import './styles/textarea.css';
const TextAreaEditor = ({ editorValue, onValueChanged }) => {
return (
<div className="editor-main editor-base">
<textarea className="text-area" value={editorVal... |
packages/material-ui-icons/src/EnhancedEncryptionSharp.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 fill="none" d="M0 0h24v24H0V0z" /><g><path d="M20 8h-3V6.22c0-2.61-1.91-4.94-4.51-5.19C9.51.74 7 3.08 7 6v2H4v14h16V8zM8.9 6c0-1.71 1.39-3.1 3.1-3.... |
packages/material-ui-icons/src/AlarmOnOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M10.54 14.53L8.41 12.4l-1.06 1.06 3.18 3.18 6-6-1.06-1.06zm6.797-12.72l4.607 3.845-1.28 1.535-4.61-3.843zm-10.674 0l1.282 1.536L3.337 7.19l-1.28-1.536zM12 4c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9-4.... |
sites/default/files/js/js_BG1mR4m-5ebI9WDwDzU456t4kOZjANsWpCSsdRBYHsY.js | hlo040790/POEI_GIT | /* global a2a*/
(function (Drupal) {
'use strict';
Drupal.behaviors.addToAny = {
attach: function (context, settings) {
// If not the full document (it's probably AJAX), and window.a2a exists
if (context !== document && window.a2a) {
a2a.init_all('page'); // Init all uninitiated AddToAny in... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | labelle/evolution | 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'));
|
test/specs/elements/Step/StepGroup-test.js | koenvg/Semantic-UI-React | import faker from 'faker'
import React from 'react'
import Step from 'src/elements/Step/Step'
import StepGroup from 'src/elements/Step/StepGroup'
import * as common from 'test/specs/commonTests'
describe('StepGroup', () => {
common.isConformant(StepGroup)
common.hasUIClassName(StepGroup)
common.propKeyAndValue... |
app/components/About/LinkRenderer.js | sysrex/sysrex | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
const LinkRenderer = (props) => {
if (props.href.match(/^(https?:)?\/\//)) {
return (
<a href={props.href}>
{props.children}
</a>
);
}
return (
<Link to={props.href}>{props.chil... |
frontend/src/DiscoverMovie/DiscoverMovieConnector.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import * as commandNames from 'Commands/commandNames';
import withScrollPosition from 'Components/withScrollPosition';
import { executeCommand } from 'Store/Act... |
2-alpha/src/components/RestrictionSitesPreview.js | saturninoharris/primer-design | import _ from 'lodash'
import React from 'react'
import styled from 'styled-components'
import { lighten } from 'polished'
import * as api from '../api'
const Container = styled.div`
display: flex;
flex-wrap: nowrap;
justify-content: space-between;
`
const REItem = styled.div`
&&& p {
margin-bottom: 0;
... |
src/shared/routes/index.js | namroodinc/contentful-react-mobx-post | import React from 'react';
import { Router, Route, IndexRoute } from "react-router";
import AppController from "../controller/";
import Home from "../handlers/home";
import { Match, Results } from "../handlers/sport/football";
export default (
<Router>
<Route path="/"
component={AppController}
>
... |
quiver_engine/quiverboard/src/components/Header/Header.js | wmkouw/quiver-time | import React from 'react';
import { IndexLink } from 'react-router';
import './Header.scss';
export const Header = () => (
<div>
</div>
);
export default Header;
|
src/main/webapp/static/jquery-ztree/3.5.12/js/jquery-1.4.4.min.js | zinpros/jeesite | /*!
* jQuery JavaScript Library v1.4.4
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
files/vue/1.0.0-alpha.2/vue.js | walkermatt/jsdelivr | /*!
* Vue.js v1.0.0-alpha.2
* (c) 2015 Evan You
* Released under the MIT License.
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define(factory);
else ... |
src/components/Feedback/Feedback.js | mark4carter/react-hrtbus | import React from 'react';
import Radium from 'radium';
class Feedback extends React.Component {
render() {
return (
<pre>Feedback</pre>
);
}
}
export default Feedback
|
app/javascript/mastodon/features/ui/components/mute_modal.js | ambition-vietnam/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { injectIntl, FormattedMessage } from 'react-intl';
import Toggle from 'react-toggle';
import Button from '../../../components/button';
import { closeModal } from '../../../actions/modal';
import { muteAccount }... |
ajax/libs/onsen/1.2.0/js/onsenui.min.js | quba/cdnjs | /*! onsenui - v1.2.0 - 2014-11-10 */
function FastClick(layer){"use strict";function bind(method,context){return function(){return method.apply(context,arguments)}}var oldOnClick;this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this... |
os-class/src/components/Header/Header.js | hunnble/the-great-lab | import React from 'react'
import { IndexLink, Link } from 'react-router'
import './Header.scss'
export const Header = () => (
<div>
<h1>welcome to the operating system class</h1>
<IndexLink to='/' activeClassName='route--active'>
Home
</IndexLink>
{' · '}
<Link to='/counter' activeClassName... |
test/specs/elements/Label/LabelDetail-test.js | koenvg/Semantic-UI-React | import faker from 'faker'
import React from 'react'
import * as common from 'test/specs/commonTests'
import LabelDetail from 'src/elements/Label/LabelDetail'
describe('LabelDetail', () => {
common.isConformant(LabelDetail)
common.rendersChildren(LabelDetail)
describe('content prop', () => {
it('renders chi... |
ajax/libs/datatables/1.10.3/js/jquery.js | mitsuruog/cdnjs | /*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
extension/examples/saga-counter/src/components/Counter.js | gaearon/redux-devtools | import React from 'react';
import PropTypes from 'prop-types';
const Counter = ({
value,
onIncrement,
onIncrementAsync,
onDecrement,
onIncrementIfOdd,
}) => (
<p>
Clicked: {value} times <button onClick={onIncrement}>+</button>{' '}
<button onClick={onDecrement}>-</button>{' '}
<button onClick={... |
ajax/libs/js-data/2.2.2/js-data-debug.min.js | dlueth/cdnjs | /*!
* js-data
* @version 2.2.2 - Homepage <http://www.js-data.io/>
* @author Jason Dobry <jason.dobry@gmail.com>
* @copyright (c) 2014-2015 Jason Dobry
* @license MIT <https://github.com/js-data/js-data/blob/master/LICENSE>
*
* @overview Robust framework-agnostic data store.
*/
(function webpackUniversalModul... |
pages/catalogs.js | sgmap/inspire | import React from 'react'
import PropTypes from 'prop-types'
import {flowRight} from 'lodash'
import getConfig from 'next/config'
import {_get} from '../lib/fetch'
import {sortByScore} from '../lib/catalog'
import attachI18n from '../components/hoc/attach-i18n'
import withErrors from '../components/hoc/with-errors'
... |
local-cli/templates/HelloNavigation/views/chat/ChatScreen.js | Bhullnatik/react-native | import React, { Component } from 'react';
import {
ActivityIndicator,
Button,
FlatList,
StyleSheet,
Text,
TextInput,
View,
} from 'react-native';
import KeyboardSpacer from '../../components/KeyboardSpacer';
import Backend from '../../lib/Backend';
export default class ChatScreen extends Component {
s... |
styleguide/components/OffCanvasPanel/OffCanvasPanel.js | rdjpalmer/bloom | /* globals window: true */
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { TransitionMotion, spring } from 'react-motion';
import uniqueId from 'lodash/fp/uniqueId';
import Portal from 'react-portal';
import BtnContainer from '../../../components/BtnContainer/BtnContainer';
impo... |
ajax/libs/rxjs/2.3.10/rx.lite.js | algolia/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... |
docs/app/Examples/collections/Message/Types/MessageExampleIcon.js | clemensw/stardust | import React from 'react'
import { Message, Icon } from 'semantic-ui-react'
const MessageExampleIcon = () => (
<Message icon>
<Icon name='circle notched' loading />
<Message.Content>
<Message.Header>Just one second</Message.Header>
We are fetching that content for you.
</Message.Content>
</... |
public/components/MyAppHistory.js | rolandfung/project-ipsum | import React from 'react';
import ReactDom from 'react-dom';
import actions from '../actions/ipsumActions.js';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import request from '../util/restHelpers';
import _ from 'underscore';
import { Panel, Grid, Row, Col, Clearfix, PageHeader, ListGrou... |
tests/item.spec.js | mrjazz/todo | import React from 'react';
import 'should';
import {getTodoLabel} from '../public/js/components/Items/Item.jsx';
describe('item test', function() {
it('simple label', () => {
const lbl = 'some text';
getTodoLabel(lbl).should.equal(lbl);
});
it('label with context', () => {
// console.log(s);
... |
src/clincoded/static/components/dashboard.js | ClinGen/clincoded | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import createReactClass from 'create-react-class';
import _ from 'underscore';
import moment from 'moment';
import Select from 'react-select';
import { curator_page } from './globals';
import { RestMixin } from './rest';
import { parseAndLogEr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.