path
stringlengths
5
300
repo_name
stringlengths
6
76
content
stringlengths
26
1.05M
src/parser/rogue/subtlety/modules/features/checklist/Component.js
FaideWW/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Checklist from 'parser/shared/modules/features/Checklist2'; import Rule from 'parser/shared/modules/features/Checklist2/Rule'; import Requirement from 'parser/shared/modul...
stories/ltWizard.js
azl397985856/ltcrm-components
import React from 'react'; import { render } from 'react-dom'; import CodeBlock from './code-block'; import assign from 'lodash.assign'; import {Table, Icon, Checkbox, Input, Row, Col, Form, Button, message } from 'antd'; import Wizard from '../components/Wizard/index'; import ReactMarkdown from 'react-markdown'; impor...
sites/all/modules/jquery_update/replace/jquery/1.9/jquery.min.js
RyanCPO/DailyDemocracy
/*! 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...
client/src/components/AboutPage.spec.js
dragonq29/mini-bat
import React from 'react'; import {shallow} from 'enzyme'; import {expect} from 'chai'; import AboutPage from './AboutPage'; describe('<AboutPage />', () => { it('should have a header called \'About\'', () => { const wrapper = shallow(<AboutPage />); const actual = wrapper.find('h2').text(); const expect...
src/app/containers/Main.js
AscaL/react-weather
import React from 'react'; import { styles } from '../styles/index'; import GetCityContainer from './GetCityContainer' export default class Main extends React.Component { render() { return ( <div style={styles.mainContainer}> <div style={styles.mainHeader}> <h2 style={{margin: 0}}>React W...
src/svg-icons/device/network-cell.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceNetworkCell = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/><path d="M17 7L2 22h15z"/> </SvgIcon> ); DeviceNetworkCell = pure(DeviceNetworkCell); DeviceNetworkCell.displayNam...
lib/systems/engines/index.js
openstardrive/flight-director
import React from 'react' import { connect } from 'react-redux' import { setEngineSpeed } from './actions' import ProgressBar from '../../common/progress-bar' require('./index.css') class Engines extends React.Component { changeSpeedTo(engineId, event) { let newSpeed = parseInt(event.target.value, 10) ...
pootle/static/js/shared/components/FormValueInput.js
translate/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 AutosizeTextarea from '...
ajax/libs/history/4.0.1/history.js
froala/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else if(typeof exports === 'object') exports["History"] = factory(); else root["Histo...
packages/material-ui-icons/src/HttpsOutlined.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm9 14H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2...
ajax/libs/video.js/5.0.0-rc.41/video.js
dc-js/cdnjs
/** * @license * Video.js 5.0.0-rc.41 <http://videojs.com/> * Copyright Brightcove, Inc. <https://www.brightcove.com/> * Available under Apache License Version 2.0 * <https://github.com/videojs/video.js/blob/master/LICENSE> * * Includes vtt.js <https://github.com/mozilla/vtt.js> * Available under Apache License...
template/__tests__/renderer/components/App.js
my-dish/template-electron
import React from 'react'; import { shallow } from 'enzyme'; import App from '../../../src/renderer/components/App'; describe('Label component', () => { const createDOM = (props = {}) => shallow(<App {...props} />); it('should render self and subcomponents', () => { const wrapper = createDOM(); expect(wr...
src/main/js/apps/login.js
haniotak/oscars-frontend
import React from 'react' import {observer, inject} from 'mobx-react' import {observable, whyRun} from 'mobx' import {Redirect} from 'react-router-dom' import {Row, Col, Panel, Button, Form, FormGroup, FormControl, ControlLabel} from 'react-bootstrap'; import ToggleDisplay from 'react-toggle-display'; @inject('account...
components/groundimage/index.js
ElemeFE/react-amap
// @flow import React from 'react' import withPropsReactive from '../utils/withPropsReactive' import log from '../utils/log' /* * props * { * __map__ 父级组件传过来的地图实例 * } */ const defaultOpts = { clickable: false, opacity: 1, visible: true } type GIProps = { __map__: Object, __ele__: HTMLElement, opacity...
client/js/app.js
training4developers/react_06262017
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import { createStore, applyMiddleware } from 'redux'; import { connect, Provider } from 'react-redux'; import keyMirror from 'key-mirror'; import thunk from 'redux-thunk'; const actionTypes = keyMirror({ REFRESH_CARS_REQ...
test/components/home/HomePage.spec.js
pradeepmurugesan/react-learning
import React from 'react' import HomePage from '../../../src/components/home/HomePage' import {shallow} from 'enzyme' import {expect, assert} from 'chai' describe('Home page component', () => { let _wrapper; beforeEach(() => { _wrapper = shallow(<HomePage />) }); it('should exists', () => { assert.i...
src/components/Main.js
dggriffin/warframeLFG
require('styles/App.css'); import React from 'react'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import IconButton from 'material-ui/IconButton'; import NavigationClose from 'material-ui/svg-icons/navigation/close'; import { cyan500, ...
src/components/ReportView.js
cuebrick/TypeWriter
import React from 'react'; class ReportView extends React.Component{ render(){ let stars = [...Array(3)].map((v, i) => { if(i < Number(this.props.level.result.star)){ return <span key={"key"+i} className="star" /> } else { return <span key={"key"+i} className="star incomplete" /> } }); let res...
docs/app/Examples/modules/Accordion/Variations/AccordionExampleFluid.js
aabustamante/Semantic-UI-React
import _ from 'lodash' import faker from 'faker' import React from 'react' import { Accordion } from 'semantic-ui-react' const panels = _.times(3, () => ({ title: faker.lorem.sentence(), content: faker.lorem.paragraphs(), })) const AccordionExampleFluid = () => ( <Accordion panels={panels} fluid /> ) export de...
node_modules/bookshelf/browser/deps.js
gwing33/pearlblog
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]...
docs/src/pages/component-demos/selection-controls/RadioButtons.js
dsslimshaddy/material-ui
// @flow weak import React, { Component } from 'react'; import Radio from 'material-ui/Radio'; class RadioButtons extends Component { state = { selectedValue: undefined, }; handleChange = event => { this.setState({ selectedValue: event.currentTarget.value }); }; render() { return ( <div>...
pootle/static/js/auth/components/PasswordResetForm.js
unho/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 assign from 'object-assign'; import React from 'rea...
app/javascript/src/client/elections/show.js
rringler/billtalk
import _ from 'lodash'; import React, { Component } from 'react'; import { Col } from 'react-bootstrap'; import { LinkContainer } from 'react-router-bootstrap'; import { connect } from 'react-redux'; import { fetchElection } from './actions'; class ElectionsShow extends Component { componentDidMount() { const {...
app/javascript/mastodon/features/ui/components/embed_modal.js
im-in-space/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { defineMessages, FormattedMessage, injectIntl } from 'react-intl'; import api from 'mastodon/api'; import IconButton from 'mastodon/components/icon_button'; const messages = defin...
ajax/libs/yui/3.6.0/datatable-core/datatable-core-debug.js
WebReflection/cdnjs
YUI.add('datatable-core', function(Y) { /** The core implementation of the `DataTable` and `DataTable.Base` Widgets. @module datatable @submodule datatable-core @since 3.5.0 **/ var INVALID = Y.Attribute.INVALID_VALUE, Lang = Y.Lang, isFunction = Lang.isFunction, isObject = Lang.isObject, ...
src/views/Comment/CommentGroup.js
shengnian/shengnian-ui-react
import cx from 'classnames' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, customPropTypes, getElementType, getUnhandledProps, META, SUI, useKeyOnly, } from '../../lib' /** * Comments can be grouped. */ function CommentGroup(props) { const...
src/views/components/scaffolding/LearnerStatusEntryView.js
Domiii/project-empire
import map from 'lodash/map'; import isEmpty from 'lodash/isEmpty'; import size from 'lodash/size'; //import { hrefLearnerStatusEntry } from 'src/views/href'; import React from 'react'; import PropTypes from 'prop-types'; import { dataBind } from 'dbdi/react'; import Moment from 'react-moment'; import { Alert, Bu...
node_modules/babel-core/external-helpers.min.js
madslonnberg/blog
!function(e){var r=e.babelHelpers={};r.inherits=function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?O...
src/App.js
Hommasoft/wappuapp-adminpanel
import React, { Component } from 'react'; import { Col, Row, Grid } from 'react-bootstrap'; import Header from './components/header'; import Content from './components/content'; import Footer from './components/footer'; import './assets/css/index.css'; class App extends Component { render() { return ( <G...
ajax/libs/yui/3.6.0pr4/event-custom-base/event-custom-base.js
perfect-pixell/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...
spec/spec.js
jwidderich/react-elements-to-html
import React from 'react'; import Convert from '../src/convert.js'; import ReactDOMServer from 'react-dom/server'; var elements_1 = (<div>FOO</div>); var html_1 = `<div>FOO</div>` var elements_2 = (<div><a>FOO</a></div>); var html_2 = `<div> <a>FOO</a> </div>` var elements_3 = (<div><br/>FOO</div>); var html_3 = `...
src/mixins/AriaDescendantMixin.js
thuringia/react-widgets
'use strict'; import React from 'react'; import compat from '../util/compat' let shape = React.PropTypes.shape({ //setActive: React.PropTypes.func, reconcile: React.PropTypes.func }); function defaultReconcile(key, id) { return id; } function flushAriaToNode(id, nodeOrComponent, ctx) { let node = typeof node...
ajax/libs/yui/3.13.0/event-custom-base/event-custom-base-coverage.js
AlicanC/cdnjs
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/event-custom-base/event-custom-base.js']) { __coverage__['build/event-custom-base/event-custom-base.js'] = {"path":"build/event-custom-base/event-custom-base.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,...
stories/components/noRef.js
wcastand/okami
import React from 'react' import {Div} from 'glamorous' import DailyCalendar from '../../src/components/daily' import Navigation from '../../src/components/navigation' import HoursLabels from '../../src/components/hoursLabels' import { Container, HourLabel, CalendarContainer, Cell, DayLabel, Event, Date...
client/src/Welcome.js
teohhanhui/api-platform
import React from 'react'; import './welcome.css'; const Welcome = () => ( <div className="welcome"> <header className="welcome__top"> <a target="_blank" rel="noopener noreferrer" href="https://api-platform.com" > <Logo /> ...
src/containers/Accounts/Verify/Pass/index.js
westoncolemanl/tabbr-web
import React from 'react' import Link from 'react-router-dom/Link' import Card, { CardActions, CardContent } from 'material-ui/Card' import Typography from 'material-ui/Typography' import Button from 'material-ui/Button' import { CardLogoHeader } from 'components' export default () => <Card raised > ...
src/components/Loading.js
shan-du/cats
import React, { PropTypes } from 'react'; import '../styles/loading.scss'; const Loading = (props) => { return ( <img src={props.src || '../assets/loading.gif'} className={`loading ${props.className || ''}`} /> ); }; Loading.propTypes = { src: PropTypes.string, className: PropTypes.string,...
ajax/libs/material-ui/5.0.0-alpha.22/node/Slide/Slide.min.js
cdnjs/cdnjs
"use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard"),_interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.setTranslateValue=setTranslateValue,exports.default=void 0;var _extends2=_intero...
node_modules/styled-components/src/hoc/withTheme.js
esteladiaz/esteladiaz.github.io
// @flow /* globals ReactClass */ import React from 'react' import PropTypes from 'prop-types' import hoistStatics from 'hoist-non-react-statics' import { CHANNEL, CHANNEL_NEXT, CONTEXT_CHANNEL_SHAPE, } from '../models/ThemeProvider' import _isStyledComponent from '../utils/isStyledComponent' import determineThe...
src/encoded/static/components/item-pages/components/WorkflowDetailPane/StepDetailBody.js
4dn-dcic/fourfront
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import memoize from 'memoize-one'; import _ from 'underscore'; import { console, object } from '@hms-dbmi-bgm/shared-portal-components/es/components/util'; /** @todo this can be functional components */ const SoftwareUsedBox = React.memo(...
app/jsx/blueprint_courses/components/BlueprintAssociations.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...
ajax/libs/react-relay/0.8.0/relay.js
wout/cdnjs
/** * Relay v0.8.0 */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("React"), require("ReactDOM")); else if(typeof define === 'function' && define.amd) define(["React", "ReactDOM"], factory); else if(ty...
content/matches/match-player-colouring.js
minj/foxtrick
'use strict'; /** * Colors the player name in the match report. * @author tychobrailleur, Stephan57, convincedd, ryanli */ Foxtrick.modules.MatchPlayerColouring = { MODULE_CATEGORY: Foxtrick.moduleCategories.MATCHES, PAGES: ['match', 'matchesLive'], OPTIONS: ['SeparateOwnPlayerColors'], NICE: 1, // after match...
src/client/activity/UserActivityActionsLoader.js
busyorg/busy
import React from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import { getUserDetailsKey } from '../helpers/stateHelpers'; import { getLoadingMoreUsersAccountHistory, getCurrentDisplayedActions, getCurre...
app/controllers/videos/videos.js
avocadojesus/litronix
var React = require('react'); var VideoViewer = require('../../components/video-viewer'); var Header = require('../../components/header/header'); var Footer = require('../../components/footer/footer'); var videos = require('../../config/videos'); var playlists = require('../../config/playlists'); var RightSidebar = req...
src/Main/News/Articles/2017-10-21-DiscordBot/index.js
enragednuke/WoWAnalyzer
import React from 'react'; import DiscordLogo from 'Main/Images/Discord-Logo+Wordmark-White.svg'; import RegularArticle from 'Main/News/RegularArticle'; import DiscordBotGif from './discord-bot.gif'; export default ( <RegularArticle title="The WoWAnalyzer Discord bot" published="2017-12-24" bodyStyle={{ padding: 0...
src/components/Info.js
iRail/datawall
import React from 'react'; import styled from 'styled-components'; import { sizes } from '../constants'; import logo from '../img/logo_white.svg'; import imec from '../img/logo_imec.svg'; const Wrapper = styled.div` display: flex; justify-content: space-between; align-items: center; padding: 5%; position: ...
ajax/libs/draft-js/0.11.0/Draft.js
extend1994/cdnjs
/** * Draft v0.11.0 * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module ==...
server/sonar-web/src/main/js/components/shared/quality-gate-link.js
vamsirajendra/sonarqube
import React from 'react'; export const QualityGateLink = React.createClass({ render() { let url = `${baseUrl}/quality_gates/show/${this.props.gate}`; return <a href={url}>{this.props.children}</a>; } });
examples/official-storybook/stories/addon-backgrounds.stories.js
kadirahq/react-storybook
import React from 'react'; import BaseButton from '../components/BaseButton'; export default { title: 'Addons/Backgrounds', parameters: { backgrounds: { default: 'dark', values: [ { name: 'white', value: '#ffffff' }, { name: 'light', value: '#eeeeee' }, { name: 'gray', valu...
newclient/scripts/components/admin/detail-view/admin-declarations-summary/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Lic...
js/Search.js
jelliotartz/FEM-react-intro
import React from 'react' import { connect } from 'react-redux' import ShowCard from './ShowCard' import Header from './Header' const { arrayOf, shape, string } = React.PropTypes const Search = React.createClass({ propTypes: { shows: arrayOf(shape({ title: string, description: string })), sea...
src/svg-icons/action/markunread-mailbox.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionMarkunreadMailbox = (props) => ( <SvgIcon {...props}> <path d="M20 6H10v6H8V4h6V0H6v6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2z"/> </SvgIcon> ); ActionMarkunreadMailbox = pu...
src/browser/me/ProfilePage.js
TheoMer/este
// @flow import React from 'react'; import linksMessages from '../../common/app/linksMessages'; import { Box, Paragraph } from '../../common/components'; import { FormattedMessage } from 'react-intl'; import { Title } from '../components'; const ProfilePage = () => ( <Box> <Title message={linksMessages.profile} ...
examples/with-external-scoped-css/pages/index.js
nahue/next.js
import React from 'react' import ss from './index.sass' export const IndexPage = () => ( <div className={ss.example}> This is an example from scoped style in a outside CSS file {'<3'} </div> ) export default IndexPage
lib/yuilib/2in3/2.9.0/build/yui2-containercore/yui2-containercore-debug.js
wilgrobe/moodle
YUI.add('yui2-containercore', function(Y) { var YAHOO = Y.YUI2; /* Copyright (c) 2011, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html version: 2.9.0 */ (function () { /** * Config is a utility used within an Object to allow the imple...
ajax/libs/react-semantify/0.5.0/react-semantify.js
kennynaoh/cdnjs
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Semantify = f(...
20170621/react-router-4/src/UserList.js
fengnovo/fengnovo-react-test
import React from 'react' import {Link} from 'react-router-dom' const UserList = () => ( <ul className="list-group"> <li className="list-group-item"> <Link to="/user/detail/1">张三</Link> </li> <li className="list-group-item"> <Link to="/user/detail/2">李四</Link> ...
src/components/toaster/message.js
zanjs/julian-react-redux
import React from 'react'; import ReactDOM from 'react-dom'; import classnames from 'classnames'; class AlertMessage extends React.Component { constructor(props){ super(props); this.state = { closeButtonStyle: {} }; } /** * Handle the close button click * @return {void} */ _handleCl...
ajax/libs/jquery/1.4.3/jquery.js
nouveller/cdnjs
/*! * jQuery JavaScript Library v1.4.3 * 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. ...
fields/types/localfiles/LocalFilesField.js
dhiles/keystuff
var _ = require('underscore'), $ = require('jquery'), bytes = require('bytes'), React = require('react'), Field = require('../Field'); var ICON_EXTS = [ 'aac', 'ai', 'aiff', 'avi', 'bmp', 'c', 'cpp', 'css', 'dat', 'dmg', 'doc', 'dotx', 'dwg', 'dxf', 'eps', 'exe', 'flv', 'gif', 'h', 'hpp', 'html', 'ics', ...
src/server/frontend/html.react.js
youprofit/este
import Component from '../../client/components/component.react'; import React from 'react'; export default class Html extends Component { static propTypes = { appCssHash: React.PropTypes.string.isRequired, bodyHtml: React.PropTypes.string.isRequired, isProduction: React.PropTypes.bool.isRequired, ti...
examples/huge-apps/routes/Course/components/Dashboard.js
zhijiansha123/react-router
import React from 'react'; class Dashboard extends React.Component { render () { return ( <div> <h3>Course Dashboard</h3> </div> ); } } export default Dashboard;
app/components/views/members/Paginator.js
AidanNichol/stedwards-booking-system
import React from 'react'; export const Paginator = (props)=> { var {currentPage, max, maxVisible, changePage, clues, className=''} = props; var halfVisible = Math.ceil(maxVisible/2), skip = Math.min(Math.max(0, currentPage - halfVisible), max-maxVisible); var iterator = Array.apply(null, Array(maxVisibl...
packages/cf-component-page/test/PageContent.js
jroyal/cf-ui
import React from 'react'; import renderer from 'react-test-renderer'; import { PageContent } from '../src/index'; import { felaSnapshot } from 'cf-style-provider'; test('should render', () => { const snapshot = felaSnapshot(<PageContent>Hello World</PageContent>); expect(snapshot.component).toMatchSnapshot(); e...
test/specs/collections/Table/Table-test.js
Rohanhacker/Semantic-UI-React
import React from 'react' import * as common from 'test/specs/commonTests' import Table from 'src/collections/Table/Table' import TableBody from 'src/collections/Table/TableBody' import TableCell from 'src/collections/Table/TableCell' import TableFooter from 'src/collections/Table/TableFooter' import TableHeader from ...
opentech/static_src/src/app/src/SubmissionsByRoundApp.js
OpenTechFund/WebApp
import React from 'react'; import PropTypes from 'prop-types'; import { hot } from 'react-hot-loader'; import { connect } from 'react-redux' import SwitcherApp from './SwitcherApp'; import GroupByStatusDetailView from '@containers/GroupByStatusDetailView'; import { setCurrentSubmissionRound } from '@actions/submission...
src/widgets/LinksCard/index.js
mydearxym/mastani
/* * * LinksCard * */ import React from 'react' import T from 'prop-types' import { buildLog } from '@/utils/logger' import ArrowButton from '@/widgets/Buttons/ArrowButton' import Item from './Item' import { Wrapper, Header, Title, ListWrapper, MoreWrapper } from './styles' /* eslint-disable-next-line */ const...
node_modules/rc-slider/es/common/createSlider.js
scaulfield01/HallHorn
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/help...
ajax/libs/forerunnerdb/1.3.22/fdb-core+views.min.js
BitsyCode/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...
ajax/libs/jquery/1.4.1/jquery.js
holtkamp/cdnjs
/*! * jQuery JavaScript Library v1.4.1 * 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. ...
imports/ui/components/map/map-nearby-box.js
irvinlim/free4all
import React from 'react'; import FloatingActionButton from 'material-ui/FloatingActionButton'; import { Scrollbars } from 'react-custom-scrollbars'; import NearbyGiveaways from '../../containers/giveaways/nearby-giveaways'; import * as IconsHelper from '../../../util/icons'; export default class MapNearbyBox extend...
client/test/test_helper.js
uxal/AuthenticationReduxTest
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
web/lib/@angular/forms/src/directives/reactive_directives/form_control_name.js
ice3x2/Clreball
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[...
app/components/Notes/AddNote.js
vandosant/react-notetaker
import React from 'react'; class AddNote extends React.Component { handleSubmit() { var newNote = this.refs.note.getDOMNode().value; this.refs.note.getDOMNode().value = ''; this.props.addNote(newNote); } render() { return ( <div className="input-group"> <input type="text" className...
dist/1.10.0/jquery-ajax-css-deprecated-dimensions-effects-event-alias-wrap.min.js
eric-seekas/jquery-builder
/*! jQuery v1.10.0 -wrap,-css,-event-alias,-ajax,-ajax/script,-ajax/jsonp,-ajax/xhr,-effects,-offset,-dimensions,-deprecated | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.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...
src/AddMod.js
jschirrmacher/cosmoteer-mod-editor
import React from 'react' class AddMod extends React.Component { constructor(props) { super(props) this.data = {} } postNewMod(data, success, error) { if (!data.id || !data.name || !data.author || !data.version) { this.setState({error: 'Please fill in all fields!'}) ...
desktop-site/containers/UserPoliciesContainer.js
goominc/goommerce-react
// Copyright (C) 2016 Goom Inc. All rights reserved. import React, { PropTypes } from 'react'; import { getUserPolicies } from 'commons/components/I18nComponentSelector'; export default React.createClass({ contextTypes: { activeLocale: PropTypes.string, }, componentDidMount() { $('body').scrollTop(0); ...
ajax/libs/react-redux/2.0.0/react-redux.min.js
calebmer/cdnjs
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("redux")):"function"==typeof define&&define.amd?define(["react","redux"],e):"object"==typeof exports?exports.ReactRedux=e(require("react"),require("redux")):t.ReactRedux=e(t.React,t.Redux)}(this,function(t,e){retu...
src/Consult/Bundle/FrontendBundle/Resources/public/js/react-with-addons.min.js
dimok87/consult
/** * React (with addons) 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...
analysis/druidguardian/src/modules/spells/IronFur.js
anom0ly/WoWAnalyzer
import { t } from '@lingui/macro'; import { formatPercentage } from 'common/format'; import SPELLS from 'common/SPELLS'; import SCHOOLS from 'game/MAGIC_SCHOOLS'; import { SpellLink } from 'interface'; import { SpellIcon } from 'interface'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events...
packages/react-error-overlay/src/components/Footer.js
matart15/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React from 'react'; import { darkGray } from '../styles'; const footerStyle = { fontFamily: 'sans-serif', color:...
docs/app/Examples/views/Item/Content/Descriptions.js
ben174/Semantic-UI-React
import React from 'react' import { Item } from 'semantic-ui-react' const { Content, Description, Group, Header, Image } = Item const description = [ 'Cute dogs come in a variety of shapes and sizes. Some cute dogs are cute for their adorable faces, others for their', 'tiny stature, and even others for their massiv...
packages/material-ui-icons/src/ViewDay.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M2 21h19v-3H2v3zM20 8H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zM2 3v3h19V3H2z" /></g> , 'ViewDay');
client/components/Post/PostComponent.js
nickeblewis/wordpress-experiment
import React from 'react'; import { Grid, Cell, Card, CardTitle, CardText, CardActions, Button } from 'react-mdl'; export default class Post extends React.Component { static propTypes = { viewer: React.PropTypes.object.isRequired }; rawHTML(html) { return { __html: html, sanitize: true }; } render()...
packages/react-jsx-highstock/test/components/FlagSeries/FlagSeries.spec.js
AlexMayants/react-jsx-highcharts
import React from 'react'; import { shallow } from 'enzyme'; import FlagSeries from '../../../src/components/FlagSeries/FlagSeries'; import Series from 'react-jsx-highcharts/src/components/Series'; describe('<FlagSeries />', function () { it('renders a <Series />', function () { const wrapper = shallow(<FlagSe...
client/src/components/template/header.js
RajivLinkites/Starter-Skeleton
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; class HeaderTemplate extends Component { renderLinks() { if (this.props.authenticated) { return [ <li key={`${1}header`}> <Link to="/">Home</Link> </li>, <...
ajax/libs/highcharts/4.2.6/highmaps.src.js
honestree/cdnjs
/** * @license Highmaps JS v4.2.6 (2016-08-02) * * (c) 2011-2016 Torstein Honsi * * License: www.highcharts.com/license */ /*eslint no-unused-vars: 0 */ // @todo: Not needed in HC5 (function (root, factory) { if (typeof module === 'object' && module.exports) { module.exports = root.document ? ...
app/screenshot.js
GDGVIT/website-stat-electron
import React from 'react'; class Screenshot extends React.Component{ constructor(props){ super(props); this.state={ style:{ backgroundImage:"url(data:image/jpeg;base64,"+this.props.base64.replace(/_/g, '/').replace(/-/g, '+')+")" } } this.updateImage(); } updateImage(){ this.setState({ style...
ExampleApp/index.android.js
joonhocho/react-native-linkedin-sdk
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, TouchableHighlight } from 'react-native'; import LinkedInSDK from 'react-native-linkedin-sdk'; export default class ExampleApp exten...
templates/rubix/relay/relay-example/src/routes/AllTodos.js
jeffthemaximum/jeffline
import React from 'react'; import Relay from 'react-relay'; import { PanelContainer, Panel, PanelBody, Grid, Row, Col, Form, FormControl } from '@sketchpixy/rubix'; import Todo from '../components/Todo'; import TodoForm from '../components/TodoForm'; import AddTodoMutation from '../mutations/AddTodoM...
examples/js/column-filter/number-filter.js
AllenFang/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
src/common/Socket/Trigger.js
Syncano/syncano-dashboard
import React from 'react'; import { colors as Colors } from 'material-ui/styles/'; import SocketWrapper from './SocketWrapper'; export default React.createClass({ displayName: 'TriggerSocket', getDefaultProps() { return { tooltip: 'Create a Trigger Socket' }; }, getStyles() { return { ...
src/error/index.js
gusdewa/MultiStores
import React from 'react'; import history from '../history'; import Link from '../../components/Link'; import s from './styles.css'; class ErrorPage extends React.Component { static propTypes = { error: React.PropTypes.object, }; componentDidMount() { document.title = this.props.error && this.props.err...
client/modules/core/components/error.js
jshimko/home-dash
import React from 'react'; const CustomError = ({error}) => ( <div style={{ color: 'red', textAlign: 'center' }}> {error.message} </div> ); export default CustomError;
src/ui/elements/Subtitle.js
gouxlord/dev-insight
import React from 'react' import styles from './Subtitle.scss'; var Subtitle = React.createClass({ render: function(){ return ( <div className={styles.wrapper}> <h3 className={styles.subtitle} dangerouslySetInnerHTML={{__html:this.props.text}}></h3> </div> ) ...
ajax/libs/ember-data.js/2.14.0/ember-data.prod.js
dakshshah96/cdnjs
(function(){ "use strict"; /*! * @overview Ember Data * @copyright Copyright 2011-2017 Tilde Inc. and contributors. * Portions Copyright 2011 LivingSocial Inc. * @license Licensed under MIT license (see license.js) * @version 2.14.0 */ var loader, define, requireModule, require, requirejs; (fu...
webapp/src/components/Layout/Menu.js
templatetools/trace
/* global location */ import React from 'react' import PropTypes from 'prop-types' import { Menu, Icon } from 'antd' import { Link } from 'dva/router' import { arrayToTree, queryArray } from 'utils' import pathToRegexp from 'path-to-regexp' const Menus = ({ siderFold, darkTheme, handleClickNavMenu, navOpenKeys, change...
docs/src/theme/Footer/index.js
ory-am/go-iam
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react' import clsx from 'clsx' import Link from '@docusaurus/Link' import { useThemeConfig } from '@docusaurus/t...
node_modules/react-test-renderer/lib/ReactErrorUtils.js
nauman-ahmad-qureshi/adsManagement
/** * Copyright 2013-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. * * */ 'use st...