path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/components/Medal.js | Arunvirat/Logi-heroes | 'use strict';
import React from 'react';
const typeMap = {
'G': 'Gold',
'S': 'Silver',
'B': 'Bronze'
};
export default class Medal extends React.Component {
render() {
return (
<li className="medal">
<span className={`symbol symbol-${this.props.type}`} title={typeMap[this.props.type]}>{this... |
app/javascript/mastodon/features/ui/components/column_link.js | d6rkaiz/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import Icon from 'mastodon/components/icon';
const ColumnLink = ({ icon, text, to, href, method, badge }) => {
const badgeElement = typeof badge !== 'undefined' ? <span className='column-link__badge'>{badge}</span... |
src/components/pages/demoPage/Login.js | guangqiang-liu/OneM |
/**
* 登录页面
*/
import React from 'react';
import {View, Text, StyleSheet} from "react-native";
import Button from "react-native-button";
import {Actions} from "react-native-router-flux";
export default class extends React.Component {
// 自定义导航栏的 barItem
static onEnter = () => {
Actions.refresh({
title... |
src/svg-icons/image/lens.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLens = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z"/>
</SvgIcon>
);
ImageLens = pure(ImageLens);
ImageLens.displayName = 'ImageLens';
Ima... |
app/bower_components/noty/demo/jquery-1.7.2.min.js | WindWallk/Angular-JS-Issue-Tracker | /*! jQuery v1.7.2 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cu(a){if(!cj[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ck||(ck=c.createElement("iframe"),ck.frameBord... |
ajax/libs/ionic/0.9.25/js/ionic.js | njames/cdnjs | /*!
* Copyright 2014 Drifty Co.
* http://drifty.com/
*
* Ionic, v0.9.25
* A powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
* By @maxlynch, @helloimben, @adamdbradley <3
*
* Licensed under the MIT license. Please see LICENSE for more information.
*
*/
;
// Create namespaces
window.ioni... |
ajax/libs/react-data-grid/0.14.19/react-data-grid.js | sashberd/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
src/svg-icons/device/bluetooth-searching.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBluetoothSearching = (props) => (
<SvgIcon {...props}>
<path d="M14.24 12.01l2.32 2.32c.28-.72.44-1.51.44-2.33 0-.82-.16-1.59-.43-2.31l-2.33 2.32zm5.29-5.3l-1.26 1.26c.63 1.21.98 2.57.98 4.02s-.36 2.82-.9... |
src/routes/Search/components/SearchResults.js | SurfaceW/connectify_client | import React from 'react'
import _ from 'lodash'
import AppBar from 'components/AppBar'
import EmptyResultCard from './EmptyResultCard'
import SearchResultList from './SearchResultList'
export const SearchResults = ({ searchResults, gotoEntity }) => (
<div>
{AppBar('Search Results')}
{_.size(searchResults) =... |
src/Story/AdminBundle/Resources/public/js/jquery.js | waltertschwe/symfony2-mongodb-doctrine-orm-setup | /*! jQuery v1.8.2 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===... |
pootle/static/js/shared/components/Tabs.js | claudep/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.
*/
import React from 'react';
import { PureRenderMixin } from... |
src/day1/7.doubleBind.js | zhufengnodejs/201705react | import React from 'react';
import ReactDOM from 'react-dom';
class Input extends React.Component{
constructor(){
super();
this.state = {val:localStorage.getItem('val')};
}
//event事件对象,这个对象并非原生的事件对象。而是经过React包装过的事件对象
//event.target事件源对象 input元素对应的真实DOM元素
handleChange = (event)=>{
this.setState({
... |
src/svg-icons/action/loyalty.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionLoyalty = (props) => (
<SvgIcon {...props}>
<path d="M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.... |
test/ButtonGroupSpec.js | Terminux/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ReactDOM from 'react-dom';
import ButtonGroup from '../src/ButtonGroup';
import Button from '../src/Button';
import {shouldWarn} from './helpers';
describe('ButtonGroup', () => {
it('Should output a button group', () => {
... |
app/components/Home.js | derycktse/reedee | // @flow
import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import styles from './Home.css';
import { ipcRenderer } from 'electron';
export default class Home extends Component {
componentDidMount() {
}
getToken() {
ipcRenderer.send('oauth')
}
render() {
return (
... |
app/actions/hue.js | kawikadkekahuna/Hue-Pomodoro | // @flow
import { nupnpSearch, HueApi, lightState } from 'node-hue-api';
import { batchActions } from 'redux-batched-actions';
import Notifications from 'react-notification-system-redux';
import type { Dispatch } from '../types';
export const INIT_HUE_CONFIG = 'INIT_HUE_CONFIG';
export const FIND_HUE_BRIDGE = 'FIND_HU... |
test/MediaHeadingSpec.js | mmarcant/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ReactDOM from 'react-dom';
import Media from '../src/Media';
describe('Media.Heading', () => {
it('uses "h4" by default', () => {
const instance = ReactTestUtils.renderIntoDocument(
<Media.Heading />
);
asser... |
ajax/libs/tinymce/3.5.8/plugins/legacyoutput/editor_plugin_src.js | kostasx/cdnjs | /**
* editor_plugin_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*
* This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u... |
dcs-fe/src/components/common/SelectInput.js | chumak84/dance-competition-system | import React from 'react';
import PropTypes from 'prop-types';
const SelectInput = ({ name, label, onChange, defaultOption, value, error, options }) => {
return (
<div className="form-group">
<label htmlFor={name}>{label}</label>
<div className="field">
<select
... |
ajax/libs/analytics.js/2.3.16/analytics.min.js | keicheng/cdnjs | (function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[name])return cache[name].exports;if(modules[name])return call(name,require);throw new Error('cannot find module "'+name+'"')}function call(id,require){var m=cache[id]={exports:{}};var mod=modules[id];var n... |
app/javascript/mastodon/features/ui/components/column.js | dunn/mastodon | import React from 'react';
import ColumnHeader from './column_header';
import PropTypes from 'prop-types';
import { debounce } from 'lodash';
import { scrollTop } from '../../../scroll';
import { isMobile } from '../../../is_mobile';
export default class Column extends React.PureComponent {
static propTypes = {
... |
node_modules/react-bootstrap/es/PaginationButton.js | lucketta/got-quote-generator | 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 ... |
node_modules/react-router/es/Redirect.js | raheelhassan1214/tanveerhospital | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
src/parser/warlock/affliction/modules/talents/DrainSoul.js | FaideWW/WoWAnalyzer | import React from 'react';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import AbilityTracker from 'parser/shared/modules/AbilityTracker';
import Enemies from 'parser/shared/modules/Enemies';
import Events from 'parser/core/Events';
import CombatLogParser from 'parser/core/CombatLogParser';
impor... |
src/domain/user/component/Auth.js | hellowin/kanca | import React from 'react';
import { connect } from 'react-redux';
import userRepo from 'infra/repo/user';
import loc from 'infra/service/location';
import Loading from 'infra/component/Loading';
import PropTypes from 'prop-types';
const mapStateToProps = state => ({
loading: state.user.loading,
loggedIn: state.use... |
app/components/Problem.js | jmpressman/REACTO-platform | import React from 'react';
import { connect } from 'react-redux';
import ProblemComments from './ProblemComments';
import AddComment from '../Forms/AddCommentForm';
const Problem = (props) => {
return (
<div className="col-lg-10 problem-view">
<h2>{props.selected.name}</h2>
<text>{props.selected.pro... |
src/components/home/HomePage.js | gginu4u/react-redux | import React from 'react';
import {Link} from 'react-router';
class HomePage extends React.Component {
render() {
return (
<div className="jumbotron">
<h1>Pluralsight Administration</h1>
<p>React, Redux and React Router in ES6 for ultra-responsive web apps.</p>
<Link to="about" clas... |
tests/components/Header/Header.spec.js | Grobim/poke-drive | import React from 'react'
import { Header } from 'components/Header/Header'
import classes from 'components/Header/Header.scss'
import { IndexLink, Link } from 'react-router'
import { shallow } from 'enzyme'
describe('(Component) Header', () => {
let _wrapper
beforeEach(() => {
_wrapper = shallow(<Header/>)
... |
ajax/libs/yui/3.7.0/event-custom-base/event-custom-base.js | brunoksato/cdnjs | YUI.add('event-custom-base', function (Y, NAME) {
/**
* 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.
* @mo... |
src/applications/personalization/profile/tests/helpers.unit.spec.js | department-of-veterans-affairs/vets-website | import React from 'react';
import { shallow } from 'enzyme';
import { expect } from 'chai';
import {
getServiceBranchDisplayName,
transformServiceHistoryEntryIntoTableRow,
} from '../helpers';
import { USA_MILITARY_BRANCHES } from '../constants';
describe('getServiceBranchDisplayName', () => {
describe('when p... |
src/svg-icons/device/screen-lock-landscape.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceScreenLockLandscape = (props) => (
<SvgIcon {...props}>
<path d="M21 5H3c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-2 12H5V7h14v10zm-9-1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1v-1c... |
packages/material-ui-icons/src/InsertChart.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z" /></g>
, 'InsertChart');
|
ajax/libs/react-bootstrap-table/3.1.5/react-bootstrap-table.min.js | hare1039/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/alt/0.17.9/alt-with-addons.min.js | seogi1004/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react/addons")):"function"==typeof define&&define.amd?define(["react","react/addons"],e):"object"==typeof exports?exports.Alt=e(require("react"),require("react/addons")):t.Alt=e(t.react,t["react/addons"])}(this,f... |
app/containers/Home/index.js | scribeklio/audora-io | /*
*
* Home
*
*/
import React from 'react';
import Helmet from 'react-helmet';
import {Link} from 'react-router';
import Paper from 'material-ui/Paper';
import MediaQuery from 'react-responsive';
import Header from 'components/Header';
import HomeAboutMe from 'components/HomeAboutMe';
import ForHire from 'componen... |
__mocks__/react.js | indico/indico | // This file is part of Indico.
// Copyright (C) 2002 - 2022 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.
/**
* This module mocks some of React's hooks while providing
* a way to tap into some of the inte... |
ajax/libs/rxjs/2.2.25/rx.lite.extras.js | fatso83/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'unde... |
src/Alert.js | HorizonXP/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
const Alert = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
onDismiss: React.PropTypes.func,
dismissAfter: React.PropTypes.number,
closeLabel: React.PropTypes.string
},
getD... |
bower_components/react-bootstrap/lib/factories/Thumbnail.js | Prill/S-Pi-Web | define(['exports', 'module', 'react', '../Thumbnail'], function (exports, module, _react, _Thumbnail) {
'use strict';
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _React = _interopRequireDefault(_react);
var _Thumbnail2 = _interopRequireDefault(_Thumbn... |
src/components/about/index.js | Adutchguy/portfolio | import './_about.scss';
import React, { Component } from 'react';
import Contact from '../contact';
class About extends React.Component {
render() {
return (
<div className='about-body'>
<div className='about-body'>
<div className='about-body-div'>
<h2 className='about-body-... |
packages/@vega/core/src/schema/inputs/InviteBackLinkInput.js | VegaPublish/vega-studio | import React from 'react'
import {withDocument} from 'part:@lyra/form-builder'
import FormField from 'part:@lyra/components/formfields/default'
import Invite from './Invite'
export default withDocument(
class InviteBackLinkInput extends React.Component {
render() {
const {document, level, type} = this.prop... |
ajax/libs/6to5/2.2.0/browser.js | pzp1997/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... |
docs/_static/jquery-1.11.1.js | yhpeng-git/mxnet | /*!
* 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 ... |
code/web/node_modules/react-bootstrap/es/MediaRight.js | zyxcambridge/RecordExistence | 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 ... |
docs/src/pages/premium-themes/tweeper/components/molecules/InputAdornment.js | allanalexandre/material-ui | import React from 'react';
import clsx from 'clsx';
import MuiInputAdornment from '@material-ui/core/InputAdornment';
import { INPUT_ADORNMENT } from '../../theme/core';
const InputAdornment = ({ className, flex, ...props }) => (
<MuiInputAdornment
className={clsx(INPUT_ADORNMENT.root, className)}
classes={{... |
client/app/scripts/charts/edge.js | kinvolk/scope | import React from 'react';
import { connect } from 'react-redux';
import classNames from 'classnames';
import { enterEdge, leaveEdge } from '../actions/app-actions';
import { encodeIdAttribute, decodeIdAttribute } from '../utils/dom-utils';
class Edge extends React.Component {
constructor(props, context) {
supe... |
src/svg-icons/action/view-carousel.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionViewCarousel = (props) => (
<SvgIcon {...props}>
<path d="M7 19h10V4H7v15zm-5-2h4V6H2v11zM18 6v11h4V6h-4z"/>
</SvgIcon>
);
ActionViewCarousel = pure(ActionViewCarousel);
ActionViewCarousel.displayName =... |
packages/cp-frontend/src/components/manifest/manifest.js | yldio/copilot | import React from 'react';
import { FormGroup, FormMeta, Button } from 'joyent-ui-toolkit';
import { Row } from 'react-styled-flexboxgrid';
import remcalc from 'remcalc';
import { Field } from 'redux-form';
import { MEditor } from './editors';
import StyledFormLabel from './label';
const ButtonsRow = Row.extend`margin... |
src/components/Footer/Footer.js | contor-cloud/contor-cloud.github.io | import React from 'react'
import { colors, media } from '../config'
import NavSectionTitle from '../NavSectionTitle'
import FooterExternalLink from './FooterExternalLink'
import FooterLink from './FooterLink'
import FooterSection from './FooterSection'
// import ossLogoPng from 'images/oss_logo.png'
const Footer = (... |
src/client/components/JumbotronShortWidget/JumbotronShortWidget.js | vidaaudrey/trippian | import log from '../../log'
import React from 'react'
import {
JumbotronShortWidget as appConfig
}
from '../../config/appConfig'
const JumbotronShortWidget = ({
title = appConfig.title, subTitle = appConfig.subTitle
}) => {
return (
<div className="jumbotron-dashboard-widget">
<div className="containe... |
ci/build.js | apeman-react-labo/apeman-react-profile | #!/usr/bin/env node
/**
* Build the project.
*/
'use strict'
require('ababel-react/register')()
process.chdir(`${__dirname}/..`)
const { runTasks } = require('ape-tasking')
const ababelReact = require('ababel-react')
const ababelReactTransform = require('ababel-react/transform')
const abrowserify = require('abrow... |
modules/Redirect.js | arasmussen/react-router | import React from 'react'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { formatPattern } from './PatternUtils'
import { falsy } from './PropTypes'
const { string, object } = React.PropTypes
/**
* A <Redirect> is used to declare another URL path a client should b... |
ajax/libs/react-widgets/3.0.0-beta.1/react-widgets.js | froala/cdnjs | /*! (c) 2015 Jason Quense | https://github.com/jquense/react-widgets/blob/master/License.txt */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'funct... |
stories/components/LargeDataAsyncSelect.js | sthomas1618/react-crane | import React from 'react'
import { SimpleSelect } from '../../src'
import names from '../fixtures/largeData'
const delay = (result) =>
new Promise((resolve) => {
setTimeout(() => {
resolve(result())
}, 250)
})
class LargeDataAsyncSelect extends React.Component {
constructor(props) {
super(pro... |
jenkins-design-language/src/js/components/material-ui/svg-icons/navigation-arrow-drop-right.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../SvgIcon';
const NavigationArrowDropRight = (props) => (
<SvgIcon {...props}>
<path d="M9.5,7l5,5l-5,5V7z" />
</SvgIcon>
);
NavigationArrowDropRight.displayName = 'NavigationArrowDropRight';
NavigationArrowDropRight.muiName = 'SvgIcon';
export default Navigat... |
ajax/libs/react/0.12.2/react.min.js | aaqibrasheed/cdnjs | /**
* React v0.12.2
*
* Copyright 2013-2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*... |
src/pages/all-geotags.js | Lokiedu/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2015 Loki Education (Social Enterprise)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, o... |
ajax/libs/rxjs/2.3.7/rx.lite.compat.js | ruslanas/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... |
src/components/Footer/Footer.js | ImanMh/react-proto | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present 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 withStyles from 'isom... |
client/header/components/nav.js | jmeas/finance-app | import React from 'react';
import classNames from 'classnames';
import {Link} from 'react-router';
import FirstChild from '../../common/components/first-child';
import ReactCSSTransitionGroup from '../../vendor/css-transition-group';
export default function Nav({isOverlayNavVisible, toggleOverlayNav}) {
// This ensu... |
src/v2/components/ChannelVisibilityPulldown/index.js | aredotna/ervell | import React from 'react'
import PropTypes from 'prop-types'
import Pulldown from 'v2/components/UI/Pulldown'
import ChannelVisibilityPulldownOption from 'v2/components/ChannelVisibilityPulldown/components/ChannelVisibilityPulldownOption'
const explanations = {
USER: {
PUBLIC: 'Everyone can view the channel and... |
ajax/libs/angular.js/0.9.18/angular-scenario.js | haferje/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/Main.js | rmoliva/bacon_react_pet | require('normalize.css');
require('styles/App.css');
import React from 'react';
let yeomanImage = require('../images/yeoman.png');
class AppComponent extends React.Component {
render() {
return (
<div className="index">
<img src={yeomanImage} alt="Yeoman Generator" />
<div className="noti... |
packages/icons/src/md/action/PregnantWoman.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdPregnantWoman(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M18 8c0-2.22 1.78-4 4-4 2.22 0 4 1.78 4 4 0 2.22-1.78 4-4 4-2.22 0-4-1.78-4-4zm14 18a6.56 6.56 0 0 0-4-6c0-3.31-2.69-6-6-6s-6 2.69-6 6v14h4v10h... |
test/JumbotronSpec.js | aparticka/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Jumbotron from '../src/Jumbotron';
describe('Jumbotron', function () {
it('Should output a div with content', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Jumbotron>
<strong>Content</strong>... |
app/components/category-list.js | eladg/gariany.com | import React from 'react';
class CategoryList extends React.Component {
constructor(props) {
super(props);
this.state = {
categories: props.categories,
route: props.route,
}
}
render() {
return (
<nav className="nav">
<ul className="nav-list">
{this.props.ca... |
src/components/TripActivity.js | muiradams/plantogo | import React, { Component } from 'react';
import { browserHistory, withRouter } from 'react-router';
import { connect } from 'react-redux';
import Measure from 'react-measure';
import moment from 'moment';
import * as actions from '../actions/';
import FlightIcon from 'material-ui/svg-icons/maps/flight';
import Lodging... |
mapSelector.js | wxtiles/mapbuilder | import React from 'react'
import mapButton from './mapButton'
class mapSelector extends React.Component {
constructor(props) {
super(props)
this.state = {}
this.state.selectedMap = this.props.selectedMap
this.changeMap = this.changeMap.bind(this)
}
changeMap(selectedMap) {
this.setState({sel... |
src/ModalTitle.js | roderickwang/react-bootstrap | import React from 'react';
import classNames from 'classnames';
class ModalTitle extends React.Component {
render() {
return (
<h4
{...this.props}
className={classNames(this.props.className, this.props.modalClassName)}>
{ this.props.children }
</h4>
);
}
}
ModalTitle.pr... |
media/k2/assets/js/jquery-1.5.2.min.js | ranrolls/ras-full-portal | /*!
* jQuery JavaScript Library v1.5.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
app/jsx/move_item/MoveSelect.js | venturehive/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... |
ajax/libs/highstock/2.0.1/highstock.src.js | nesk/cdnjs | // ==ClosureCompiler==
// @compilation_level SIMPLE_OPTIMIZATIONS
/**
* @license Highstock JS v2.0.1 (2014-04-24)
*
* (c) 2009-2014 Torstein Honsi
*
* License: www.highcharts.com/license
*/
// JSLint options:
/*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout,... |
src/svg-icons/communication/email.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationEmail = (props) => (
<SvgIcon {...props}>
<path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/>
</SvgIcon>
);
CommunicationEmai... |
src/libraries/lib_mootombo/media/package/bootstrap/a_res_demos/assets/js/jquery.js | mootombo/Framework | /*! 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... |
packages/insights-web/src/scenes/explorer/dashboard/breadcrumbs/model.js | mariusandra/insights | import React from 'react'
import { useActions, useValues } from 'kea'
import explorerLogic from '../../logic'
import { Button, Dropdown, Icon, Menu } from 'antd'
function ModelMenu () {
const { models, selectedModel } = useValues(explorerLogic)
const { openModel } = useActions(explorerLogic)
return (
<Menu... |
core/modules/field_ui/field_ui.js | anatalsceo/en-classe | /**
* @file
* Attaches the behaviors for the Field UI module.
*/
(function ($) {
"use strict";
Drupal.behaviors.fieldUIDisplayOverview = {
attach: function (context, settings) {
$(context).find('table#field-display-overview').once('field-display-overview', function () {
Drupal.fieldUIOvervie... |
modules/react-basic-layout/src/components/Grid.js | JunisphereSystemsAG/react-color | 'use strict';
import React from 'react';
import ReactCSS from 'reactcss';
class Grid extends ReactCSS.Component {
classes() {
return {
'default': {
grid: {
position: 'relative',
},
},
'preset-default': {
left: {
position: 'absolute',
width... |
files/unsemantic/0.1/javascripts/jquery.js | vousk/jsdelivr | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
front/src/scenes/Login/index.js | dherault/Aquest | import React from 'react';
import { QueryRenderer, graphql } from 'react-relay';
import environment from '../../relayEnvironment';
import LoadingIndicator from '../../components/LoadingIndicator';
import DevelopmentErrorMessage from '../../components/DevelopmentErrorMessage';
import LoginScene from './LoginScene';
c... |
ajax/libs/mobx-react/4.0.4/index.min.js | jonobr1/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("mobx"),require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["mobx","react","react-dom"],t):"object"==typeof exports?exports.mobxReact=t(require("mobx"),require("react"),require("react-dom")):e.mobx... |
ajax/libs/yasr/1.2.1/yasr.min.js | LeaYeh/cdnjs | !function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASR=e()}}(function(){var e;return function t(e,n,r){function i(a,s){if(!n[a]){if(!e... |
docs/components/PropsComponent.js | romagny13/react-form-validation | import React from 'react';
import PropTypes from 'prop-types';
const PropsComponent = ({ props }) => {
return (
<table className="props">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
<th>Type</th>
... |
test/electron-renderer/ui/pages/ColorWheelPage_spec.js | petuhovskiy/Google-Play-Music-Desktop-Player-UNOFFICIAL- | /* eslint-disable no-unused-expressions */
import React from 'react';
import chai from 'chai';
import { mount } from 'enzyme';
import ColorWheelPage from '../../../../build/renderer/ui/pages/ColorWheelPage';
chai.should();
describe('<ColorWheelPage />', () => {
it('should render a WindowContainer root', () => {
... |
deskmark/karma.conf.js | nighca/deskmark | var path = require('path');
var webpack = require('webpack');
var ROOT_PATH = path.resolve(__dirname);
var APP_PATH = path.resolve(ROOT_PATH, 'app');
module.exports = function(config) {
config.set({
browsers: ['Chrome'],
//singleRun: true,
frameworks: ['mocha'],
files: [
'tests.webpack.js'
... |
actor-apps/app-web/src/app/components/activity/GroupProfile.react.js | ketoo/actor-platform | import React from 'react';
import DialogActionCreators from 'actions/DialogActionCreators';
import LoginStore from 'stores/LoginStore';
import PeerStore from 'stores/PeerStore';
import DialogStore from 'stores/DialogStore';
import InviteUserActions from 'actions/InviteUserActions';
import AvatarItem from 'components... |
ranch-ui/ranch-ui-console/src/index.js | heisedebaise/ranch | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import Main from './main';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(<Main />, document.getElementById('root'));
// If you want your app to work offline and load faster, you can change
// unregister() to registe... |
node_modules/react-icons/md/keyboard-hide.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const MdKeyboardHide = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 38.4l-6.6-6.8h13.2z m11.6-25v-3.4h-3.2v3.4h3.2z m0 5v-3.4h-3.2v3.4h3.2z m-5-5v-3.4h-3.2v3.4h3.2z m0 5v-3.4h-3.2v3.4h3.2z m0 6.6v-3.4h-13.2v3.4h13.2z m-15-11.... |
node_modules/react-native/Libraries/JavaScriptAppEngine/System/JSTimers/JSTimersExecution.js | martincochran/score-minion-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... |
src/svg-icons/communication/chat.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationChat = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 9h12v2H6V9zm8 5H6v-2h8v2zm4-6H6V6h12v2z"/>
</SvgIcon>
);
Communicatio... |
test/ModalSpec.js | herojobs/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Modal from '../src/Modal';
import { render, shouldWarn } from './helpers';
describe('Modal', function () {
let mountPoint;
beforeEach(()=>{
mountPoint = document.createElement('div');
document.body.appendChild(mountPo... |
fields/types/relationship/RelationshipColumn.js | webteckie/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
const moreIndicatorStyle = {
color: '#bbb',
fontSize: '.8rem',
fontWeight: 500,
marginLeft: 8,
};
var RelationshipColumn = React.createClass({
displayName: 'Rel... |
src/Loader/test/LoaderSpec.js | suitejs/suite | import React from 'react';
import { getDOMNode } from '@test/testUtils';
import Loader from '../Loader';
describe('Loader', () => {
it('Should render a Loader', () => {
let instance = getDOMNode(<Loader />);
assert.include(instance.className, 'rs-loader');
});
it('Should be center', () => {
let inst... |
src/svg-icons/device/signal-wifi-off.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifiOff = (props) => (
<SvgIcon {...props}>
<path d="M23.64 7c-.45-.34-4.93-4-11.64-4-1.5 0-2.89.19-4.15.48L18.18 13.8 23.64 7zm-6.6 8.22L3.27 1.44 2 2.72l2.05 2.06C1.91 5.76.59 6.82.36 7l11.63 14.4... |
src/components/App.js | alexedev/relay-workshop | import React from 'react';
import CatList from './CatList';
import CreateFormContainer from './CreateFormContainer';
const App = ({ viewer }) => (
<div className="mw6 center mt5">
<h1 className="mw6 ">Cat Hotel Manager</h1>
<h3 className="mt5">Current residents</h3>
<CatList viewer={viewer} />
<Crea... |
source/patterns/react-utils/component/docs/component.example.js | apparena/patterns | import React from 'react';
import PropTypes from 'prop-types';
import { ReactComponent } from 'apparena-patterns-react';
/**
* Extend `ReactComponent` instead of Component of React-Package directy to
* get posibility to use `ReactComponent.t()` for translations and `getInitState()` for
* setting inital State and bi... |
frontend/src/containers/ExtractWidget/ExtractWidget.js | webrecorder/webrecorder | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { getActiveCollection, getRemoteArchiveStats } from 'store/selectors';
import { getArchives, setExtractable, setAllSourcesOption } from 'store/modules/controls';
import { ExtractWidgetUI } from ... |
src/@ui/NativeWebRouter/AndroidBackButton.js | NewSpring/Apollos | import React from 'react';
import PropTypes from 'prop-types';
import { BackHandler } from 'react-native';
export default class AndroidBackButton extends React.Component {
static contextTypes = {
router: PropTypes.shape({
history: PropTypes.shape({
goBack: PropTypes.func.isRequired,
index: ... |
frontend/components/visual/Loading.js | SkyPicker/Skywall | import React from 'react'
import Spinner from 'react-spinjs'
import styles from './Loading.scss'
class Loading extends React.Component {
static propTypes = {
// Empty
}
render() {
return (
<div className={styles.container}>
<Spinner color="#000" />
</div>
)
}
}
export defaul... |
src/interface/SpecListing/Spec.js | sMteX/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import Contributor from 'interface/contributor/Button';
import ReadableList from 'interface/common/ReadableList';
class Spec extends React.PureComponent {
static propTypes = {
spec: PropTypes.shape({
id: PropTypes.number.isRequired,
clas... |
tests/react_native_tests/test_data/native_code/Scrollview/storybook/stories/Artboard/index.js | ibhubs/sketch-components | import React from 'react'
import { storiesOf } from '@storybook/react-native'
import { action } from '@storybook/addon-actions'
import { linkTo } from '@storybook/addon-links'
import Artboard from 'app/components/Artboard'
storiesOf('Artboard', module)
.add('default', () => (
<Artboard></Artboard>)) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.