path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
src/components/Devices/Devices.react.js
madhavrathi/chat.susi.ai
import React, { Component } from 'react'; import susi from '../../images/susi-logo.svg'; import susiAndroid from '../../images/susi-test.gif'; import susiiOSGif from '../../images/ios_demo.gif'; import susiDesktop from '../../images/susi.gif'; import './Devices.css'; import { Link } from 'react-router-dom'; import Prop...
src/js/components/highlight.js
nicksenger/JSchematic
import React from 'react'; require("../../css/components/highlight.scss"); const Highlight = ( {x, y} ) => { const hStyle = { top: y - 2, left: x - 3, backgroundSize: 'contain', backgroundRepeat: 'no-repeat', backgroundPosition: 'center', } return ( <div className='highlight...
imports/components/TabLast7Days.js
tampham47/nau-jukebox
/* © 2017 * @author Tu Nguyen */ import React, { Component } from 'react'; import PropTypes from 'proptypes'; import { withTracker } from 'meteor/react-meteor-data'; import { subDays } from 'date-fns'; import { Songs } from '../collections'; import SongList from './SongList'; class TabLast7Days extends Component { ...
src/main/webapp/portal-core/js/portal/widgets/panel/CSWFilterFormPanel.js
GeoscienceAustralia/portal-core
/** * This is the panel for the form that pops up when you click on customize for the personal panel * */ Ext.define('portal.widgets.panel.CSWFilterFormPanel', { extend : 'Ext.form.Panel', alias: 'widget.cswfilterformpanel', keywordStore : null, keywordIDCounter : 0, spacerHeight : 22, keyw...
src/Footer/Section.js
tleunen/react-mdl
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import cloneChildren from '../utils/cloneChildren'; const Section = (props) => { const { className, logo, size, type, children, ...otherProps } = props; const classes = classNames({ [`mdl-${size}-footer...
node_modules/@angular/forms/esm5/src/directives/reactive_errors.js
friendsofagape/mt2414ui
/** * @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 */ import { FormErrorExamples as Examples } from './error_examples'; var ReactiveErrors = /** @class */ (function () { ...
examples/basic-usage-guide/components/SubmitButton.js
mkatanski/strap-forms
import React from 'react' import T from 'prop-types' import { StrapFormContextTypes } from '../../../index' class SubmitButton extends React.Component { static contextTypes = { ...StrapFormContextTypes, } static propTypes = { children: T.any.isRequired, } state = { disabled: false, } comp...
ReactFlux/node_modules/reactify/index.js
wandarkaf/React-Bible
/** * Reactify — a Browserify transform for JSX (a superset of JS used by React.js) */ "use strict"; var ReactTools = require('react-tools'); var through = require('through'); function reactify(filename, options) { options = options || {}; var buf = []; function write(chunk) { if (!Buffer.isBuffer(ch...
src/node_modules/react-router/es6/Link.js
oferkafry/gps-tracker-ui
'use strict'; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) {...
ajax/libs/yui/3.15.0/event-focus/event-focus-min.js
rndme/cdnjs
/* 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-focus",function(e,t){function u(t,r,u){var a="_"+t+"Notifiers";e.Event.define(t,{_useActivate:o,_attach:function(i,s,o){return e.DOM.isWindow(i)?n._attach([t,fu...
fields/types/html/HtmlField.js
wmertens/keystone
import _ from 'lodash'; import Field from '../Field'; import React from 'react'; import tinymce from 'tinymce'; import { FormInput } from 'elemental'; /** * TODO: * - Remove dependency on underscore */ var lastId = 0; function getId () { return 'keystone-html-' + lastId++; } module.exports = Field.create({ di...
src/svg-icons/social/party-mode.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPartyMode = (props) => ( <SvgIcon {...props}> <path d="M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-8 3c1.63 0 3.06.79 3.98 2H12c-1.66 0-3 1.34-3 3 0 ....
ajax/libs/IndexedDBShim/3.0.0-rc.3/indexeddbshim-UnicodeIdentifiers.js
extend1994/cdnjs
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
src/components/Icon/Icon.js
wpioneer/gatsby-starter-lumen
// @flow strict import React from 'react'; import styles from './Icon.module.scss'; type Props = { name: string, icon: { viewBox?: string, path?: string } }; const Icon = ({ name, icon }: Props) => ( <svg className={styles['icon']} viewBox={icon.viewBox}> <title>{name}</title> <path d={icon.pa...
ajax/libs/primeui/4.1.9/primeui.min.js
dakshshah96/cdnjs
!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=function(e,i){return t(i),i}:t(jQuery)}(function(t){var e={zindex:1e3,gridColumns:{1:"ui-grid-col-12",2:"ui-grid-col-6",3:"ui-grid-col-4",4:"ui-grid-col-3",6:"ui-grid-col-2",12:"ui-grid-col-11"...
react-chat/src/components/ChatBox/ChatBox.js
renesansz/presentations
import React from 'react'; import ChatBoxControls from './ChatBoxControls/ChatBoxControls'; import ChatBoxCard from './ChatBoxCard/ChatBoxCard'; import './ChatBox.css'; class ChatBox extends React.Component { render() { const messages = this.props.messages.map((message) => <ChatBoxCard key={ ...
packages/material-ui-icons/src/AssignmentLate.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-6 15h-2v-2h2v2zm0-4...
server/sonar-web/src/main/js/apps/permission-templates/components/TemplateHeader.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
u/test20/fileupload/js/jquery-1.10.2.min.js
Owchzzz/Militiatoday
/*! 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.hasOwnPropert...
js/jquery-1.11.3.min.js
BUPT-SCS-2015-Web-Developer/buptscs-web
/*! jQuery v1.11.3 | (c) 2005, 2015 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...
src/widgets/TextArea.js
airloy/objective
import React from 'react'; import {StyleSheet, PixelRatio, View, TextInput, Text} from 'react-native'; import {colors, px1} from '../views/styles'; import util from '../libs/Util'; var TextArea = React.createClass({ propTypes: TextInput.propTypes, value: '', getInitialState: function() { return { he...
ajax/libs/grommet-index/0.1.2/grommet-index.min.js
BenjaminVanRyseghem/cdnjs
var GrommetIndex=function(e){function t(n){if(r[n])return r[n].exports;var a=r[n]={exports:{},id:n,loaded:!1};return e[n].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){"use strict";var n={Activity:r(73),Aggregate:r(74),Attribute:r(15),Filters:r(31),Header:...
src/js/components/Box/stories/Round.js
grommet/grommet
import React from 'react'; import { Box, Grid } from 'grommet'; export const RoundBox = () => ( // Uncomment <Grommet> lines when using outside of storybook // <Grommet theme={...}> <Box pad="small" gap="small"> <Box pad="small" background="brand" round alignSelf="start"> true </Box> <Grid col...
ajax/libs/react-semantify/0.5.2/react-semantify.js
sashberd/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(...
src/server.js
chentaixu/AxuBlog
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel/polyfill'; import path from 'path'; import express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import Router from './Router'; import Html from './components/Html'; const server = global.serve...
packages/wix-style-react/src/AnalyticsSummaryCard/test/AnalyticsSummaryCard.spec.js
wix/wix-style-react
import React from 'react'; import { createRendererWithUniDriver, cleanup } from '../../../test/utils/unit'; import { analyticsSummaryCardPrivateDriverFactory } from './AnalyticsSummaryCard.private.uni.driver'; import AnalyticsSummaryCard from '../AnalyticsSummaryCard'; const getAnalyticsComponent = props => { return...
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-bricks-modal-body.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, ContentMixin} from '../common/common.js'; import './modal-body.less'; export default React.createClass({ //@@viewOn:mixins mixins: [ BaseMixin, ElementaryMixin, ContentMixin ], //@@viewOff:mixins //@@viewOn:statics statics: { ...
src/js/components/Fields/LatencyControl.js
jaedb/Iris
import React from 'react'; import TextField from './TextField'; import { throttle } from '../../util/helpers'; const LatencyControl = ({ onChange, value: valueProp, max, }) => { let value = valueProp; const throttledChange = (nextValue) => onChange(nextValue, value); const handleChange = throttl...
front/js/components/app.component.js
austinbourdier/react-rails-blog
import Navbar from '../containers/navbar.container'; /** * @fileOverview The App component. */ import React from 'react'; export default class App extends React.Component { render() { const pathname = window.location.pathname; const loginOrRegister = pathname.includes('login') || pathname.includes('regist...
src/ContentEditable.js
arunchaganty/briefly
import React, { Component } from 'react'; import './EditableDocument.css'; class ContentEditable extends Component { constructor(props) { super(props); this.emitChange = this.emitChange.bind(this); } render() { return (<div className={this.props.className} onInput={this.emitChange} ...
es/components/viewer2d/scene.js
dearkaran/react-planner
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err;...
node_modules/react-icons/fa/mail-forward.js
bengimbel/Solstice-React-Contacts-Project
import React from 'react' import Icon from 'react-icon-base' const FaMailForward = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m40 14.3q0 0.6-0.4 1l-11.5 11.4q-0.4 0.4-1 0.4t-1-0.4-0.4-1v-5.7h-5q-2.2 0-3.9 0.1t-3.4 0.5-3 1-2.4 1.5-1.7 2.3-1.1 3.1-0.4 4q0 1.2 0.1 2.7 0 0.2 0 0.6t0.1 0.6q0 ...
desafio-2/src/component/Order.js
ricardo-jsx/desafios-iclinic
import React from 'react'; import PropTypes from 'prop-types'; import IconButton from 'material-ui/IconButton'; const AscTodo = ({onClick, children}) => ( <IconButton onTouchTap={onClick}> {children} </IconButton> ); AscTodo.propTypes = { onClick: PropTypes.func.isRequired }; export default AscTo...
Examples/Movies/MoviesApp.js
boopathi/react-native
/** * The examples provided by Facebook are for non-commercial testing and * evaluation purposes only. * * Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ...
src/components/Stats/Table.js
ishwarsawale/ishwarsawale.github.io
import React from 'react'; import PropTypes from 'prop-types'; import TableRow from './TableRow'; const Table = ({ data }) => ( <table> <tbody> {data.map((pair) => ( <TableRow format={pair.format} key={pair.label} label={pair.label} link={pair.link} ...
src/components/submitButton.js
jpchip/css-modules-demo
import styles from './submitButton.css'; import React, { Component } from 'react'; export default class SubmitButton extends Component { constructor(props) { super(props); //use default styles if not given in props if(props.styles) { for(var style in styles) { if(styles.hasOwnProperty(style)) { i...
js/components/TEMPLATE.js
rblakeley/relay-example-players-positions
import React from 'react'; import Relay from 'react-relay'; class TEMPLATE extends React.Component { render () { return <div>TEMPLATE</div>; } } export default Relay.createContainer(TEMPLATE, { fragments: { QUERY: () => Relay.QL` fragment on QUERYNAME { array { edges { ...
examples/huge-apps/components/Dashboard.js
BerkeleyTrue/react-router
import React from 'react' import { Link } from 'react-router' class Dashboard extends React.Component { render() { const { courses } = this.props return ( <div> <h2>Super Scalable Apps</h2> <p> Open the network tab as you navigate. Notice that only the amount of you...
packages/material-ui-icons/src/BlurOff.js
lgollut/material-ui
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M14 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm-.2 4.48l.2.02c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5l.02.2c.09.67.61 1.19 1.28 1.28zM14 3.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-....
node_modules/react-router/es/Route.js
lucketta/got-quote-generator
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _classCallCheck(instance, Constructor) { if (!(insta...
docs/src/app/components/pages/components/Slider/Page.js
kasra-co/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 sliderReadmeText from './README'; import SliderExampleSimple from './Exam...
src/icons/font/ArrowDropDownIcon.js
skystebnicki/chamel
import React from 'react'; import PropTypes from 'prop-types'; import FontIcon from '../../FontIcon'; import ThemeService from '../../styles/ChamelThemeService'; const ArrowDropDownIcon = (props, context) => { let theme = context.chamelTheme && context.chamelTheme.fontIcon ? context.chamelTheme.fontIcon ...
addons/storyshots/storyshots-core/stories/required_with_context/Button.stories.js
kadirahq/react-storybook
import React from 'react'; import { action } from '@storybook/addon-actions'; import { Button } from '@storybook/react/demo'; export default { title: 'Button', parameters: { component: Button, }, }; export const withText = () => <Button onClick={action('clicked')}>Hello Button</Button>; export const with...
pnpm-offline/.pnpm-store-offline/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Button.js
JamieMason/npm-cache-benchmark
import _Object$values from 'babel-runtime/core-js/object/values'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-...
shared/components/SubComponents/CategoryMenu/CategoryMenu.js
KCPSoftware/KCPS-React-Starterkit
import React, { Component } from 'react'; import { TooltipTrigger } from 'pui-react-tooltip' let errorMessage = 'Some of the input fields in this category contain an error. Please make sure that there are no errors.' class CategoryMenu extends Component { constructor(props) { super(props); this.errorMessage ...
ajax/libs/react-datepicker/0.6.1/react-datepicker.js
joeyparrish/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("moment"), require("react-onclickoutside")); else if(typeof define === 'function' && define.amd) define(["react", "moment", "react-onclickout...
modules/Redirect.js
schnerd/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...
amartonline-ui/src/index.js
gruberchris/AmartOnline
import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter } from 'react-router-dom'; import App from './components/app/app'; import history from './history'; import registerServiceWorker from './registerServiceWorker'; import { Config } from "./config"; import Auth from './auth/auth'; import '...
examples/async/index.js
eraviart/redux
import 'babel-core/polyfill'; import React from 'react'; import Root from './containers/Root'; React.render( <Root />, document.getElementById('root') );
src/parser/deathknight/blood/modules/talents/FoulBulwark.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER'; import { formatDuration, formatPercentage } from 'common/format'; import BoneS...
src/routes/user/index.js
zhouchao0924/SLCOPY
import React from 'react' import PropTypes from 'prop-types' import { routerRedux } from 'dva/router' import { connect } from 'dva' import { Row, Col, Button, Popconfirm } from 'antd' import List from './List' import Filter from './Filter' import Modal from './Modal' const User = ({ location, dispatch, user, loading }...
ajax/libs/highcharts/3.0.7/highcharts.src.js
sinkcup/cdnjs
// ==ClosureCompiler== // @compilation_level SIMPLE_OPTIMIZATIONS /** * @license Highcharts JS v3.0.7 (2013-10-24) * * (c) 2009-2013 Torstein Hønsi * * License: www.highcharts.com/license */ // JSLint options: /*global Highcharts, document, window, navigator, setInterval, clearInterval, clearTimeout, setTimeout...
docusaurus/src/pages/index.js
pepmartinez/keuss
import React from 'react'; import clsx from 'clsx'; import Layout from '@theme/Layout'; import Link from '@docusaurus/Link'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import useBaseUrl from '@docusaurus/useBaseUrl'; import styles from './styles.module.css'; const features = [ { title: ...
src/svg-icons/action/note-add.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionNoteAdd = (props) => ( <SvgIcon {...props}> <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z"/> </SvgIcon> );...
client/src/components/GameDialog.js
danielasy/cerebral-game-library
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { gamesCloseDialog, gamesAdd, gamesDelete } from '../actions/games'; import { genresFetchData } from '../actions/genres'; import { platformsFetchData } from '../actions/platforms'; import Dialog from 'material-u...
assets/33fa4d5d/jquery.js
seekermain/forms
/*! * 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 ...
app/addons/documents/index-results/components/pagination/PaginationFooter.js
popojargo/couchdb-fauxton
// Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
frontend/src/Movie/Index/Menus/MovieIndexSortMenu.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React from 'react'; import MenuContent from 'Components/Menu/MenuContent'; import SortMenu from 'Components/Menu/SortMenu'; import SortMenuItem from 'Components/Menu/SortMenuItem'; import { align, sortDirections } from 'Helpers/Props'; import translate from 'Utilities/String/t...
src/decorators/withViewport.js
patrickkillalea/React1
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React, { Component } from 'react'; // eslint-disabl...
icons/image/wb-sunny.js
arkxu/react-material-icons-1
'use strict'; var React = require('react'); var mui = require('material-ui'); var SvgIcon = mui.SvgIcon; var ImageWbSunny = React.createClass({ displayName: 'ImageWbSunny', render: function render() { return React.createElement( SvgIcon, this.props, React.createElement('path', { d: 'M6.76 4...
curator-web/src/js/components/curate/curationShelf.js
rajeshnaroth/curator
import React from 'react' import TextField from '../form/textField' import CurationRack from './curationRack' import { newId } from '../../utils' let keyId = newId('curacks-'); const CurationShelf = React.createClass({ propTypes: { channel:React.PropTypes.string.isRequired, addFilmToPlaylist:React...
ajax/libs/yui/3.17.0/event-focus/event-focus-coverage.js
thisispiers/cdnjs
/* YUI 3.17.0 (build ce55cc9) 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-focus/event-focus.js']) { __coverage__['build/event-focus/event-focus.js'] = ...
test/integration/fixtures/menus/SimpleMenu.js
AndriusBil/material-ui
// @flow import React from 'react'; import Menu, { MenuItem } from 'src/Menu'; const options = ['Menu Item 1', 'Menu Item 2', 'Menu Item 3']; class SimpleMenu extends React.Component<any, any> { state = { open: false, selectedIndex: undefined, }; handleMenuItemClick = (event: SyntheticUIEvent<>, index...
src/auth/screens/privacy-policy.screen.js
Antoine38660/git-point
import React, { Component } from 'react'; import { StyleSheet, ScrollView, View, Text } from 'react-native'; import { ViewContainer } from 'components'; import { translate } from 'utils'; import { colors, fonts, normalize } from 'config'; import { v3 } from 'api'; const styles = StyleSheet.create({ container: { ...
ajax/libs/yui/3.2.0/event/event-debug.js
mikesir87/cdnjs
/* * DOM event listener abstraction layer * @module event * @submodule event-base */ (function() { // Unlike most of the library, this code has to be executed as soon as it is // introduced into the page -- and it should only be executed one time // regardless of the number of instances that use it. var stateCha...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/All.js
facebook/flow
// @flow import React from 'react'; class MyComponent extends React.Component { static defaultProps: DefaultProps = {}; props: Props; state: State = {}; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Componen...
docs/src/FooterPage.js
15lyfromsaturn/react-materialize
import React from 'react'; import Row from '../../src/Row'; import Col from '../../src/Col'; import ReactPlayground from './ReactPlayground'; import PropTable from './PropTable'; import store from './store'; import Samples from './Samples'; import footer from '../../examples/Footer'; const component = 'Footer'; class...
rules/frontend/src/views/Main/routes.js
rdowinton/auth0-rules-viewer
import React from 'react' import {Route, IndexRedirect} from 'react-router' import AuthService from 'utils/AuthService' import Container from './Container' import Login from './Login/Login' import Rules from './Rules/Rules' const auth = new AuthService(__AUTH0_CLIENT_ID__, __AUTH0_DOMAIN__); // onEnter callback to va...
app/account/index.js
zhuifeng740643787/gougouApp
'use strict' import React from 'react' import { StyleSheet, Text, Switch, TouchableOpacity, View, Image, AlertIOS, } from 'react-native' import IonIcons from 'react-native-vector-icons/Ionicons' import FontAwesomeIcon from 'react-native-vector-icons/FontAwesome' var Condition = require('./create/conditio...
test/ColSpec.js
jsbranco/react-materialize
/* global describe, it */ import React from 'react'; import { shallow } from 'enzyme'; import { assert } from 'chai'; import Col from '../src/Col'; let wrapper = shallow( <Col /> ); describe('<Col />', () => { it('should render', () => { assert.ok(wrapper.find('.col'), 'a column'); }); it('accepts sizes...
src/components/Account/Preferences/Wizard/Footer/index.js
ndlib/usurper
import React from 'react' import PropTypes from 'prop-types' import InlineLoading from 'components/Messages/InlineLoading' const Footer = (props) => ( <div className='modal-footer'> <div className='wizard-step-count-bottom'>{props.step + 1}/{props.stepCount}</div> {props.step > 0 && ( <button classNam...
ajax/libs/primeui/4.1.6/primeui-ng.min.js
pombredanne/cdnjs
var PUI={zindex:1e3,gridColumns:{1:"ui-grid-col-12",2:"ui-grid-col-6",3:"ui-grid-col-4",4:"ui-grid-col-3",6:"ui-grid-col-2",12:"ui-grid-col-11"},charSet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",scrollInView:function(e,i){var t=parseFloat(e.css("borderTopWidth"))||0,n=parseFloat(e.css("paddingTop"))||0,s=i.offset().top-e....
ajax/libs/backbone-react-component/0.5.0/backbone-react-component-min.js
jemmy655/cdnjs
/** * Backbone.React.Component * @version 0.5.0 * @author "Magalhas" José Magalhães <magalhas@gmail.com> * @license MIT <http://opensource.org/licenses/MIT> */ "use strict";!function(a,b){if("function"==typeof define&&define.amd)define(["react","backbone","underscore"],b);else if("undefined"!=typeof module){var c=...
ajax/libs/rxjs/4.0.5/rx.lite.extras.js
holtkamp/cdnjs
// Copyright (c) Microsoft, All rights reserved. See License.txt in the project root for license information. ;(function (factory) { var objectTypes = { 'function': true, 'object': true }; function checkGlobal(value) { return (value && value.Object === Object) ? value : null; } var freeExports ...
src/components/ClassList.js
dpastoor/assignment-manager
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import {Card, List, ListItem} from 'material-ui'; import _ from 'lodash'; export default class ClassList extends React.Component { constructor(props) { super(props); } render() { let classes = _.map(this.props.classes, (c, i) => ...
src/todoAppRedux/components/TodoAppReduxIsolated.js
yosuzuk/react-playground
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import reducers from '../reducers'; import TodoAppRedux from './TodoAppRedux'; class TodoAppReduxIsolated extends Component { constructor(props) { super(props); this.store = createStore( ...
src/routes.js
TTCErembodegem/TTC-React-Front
import React from 'react'; import {BrowserRouter, Route, Switch} from 'react-router-dom'; import {ComponentWithLayout} from './components/App/ComponentWithLayout.js'; import Players from './components/players/Players.js'; import {Player} from './components/players/Player.js'; import Login from './components/users/Login...
src/__tests__/PlaceholderButton.spec.js
reactstrap/reactstrap
import React from 'react'; import { shallow } from 'enzyme'; import { PlaceholderButton } from '../' describe('PlaceholderButton', () => { it('should render a placeholder', () => { const wrapper = shallow(<PlaceholderButton />); expect(wrapper.hasClass('placeholder')).toBe(true); }) it('should render si...
ajax/libs/jqwidgets/12.1.0/jqwidgets-react-tsx/jqxform/react_jqxform.umd.min.js
cdnjs/cdnjs
require("../../jqwidgets/jqxcore"),require("../../jqwidgets/globalization/globalize"),require("../../jqwidgets/jqxdata"),require("../../jqwidgets/jqxinput"),require("../../jqwidgets/jqxpasswordinput"),require("../../jqwidgets/jqxnumberinput"),require("../../jqwidgets/jqxradiobutton"),require("../../jqwidgets/jqxcheckbo...
src/components/CourseEditor/NoteEditor/Forms/CourseForm.js
bibleexchange/be-front-new
import React from 'react'; import TextInput from '../TextInput'; export default class CourseForm extends React.Component { render() { return ( <div> <TextInput label='course id' name='course_id' value={this.props.inputs.course_id} handleEdit={this.props.handleInputChanges} /> <TextInp...
src/Sticky.js
sunnylqm/amazeui-react
'use strict'; var React = require('react'); var ReactDOM = require('react-dom'); var assign = require('object-assign'); var classNames = require('classnames'); var ClassNameMixin = require('./mixins/ClassNameMixin'); var Events = require('./utils/Events'); var debounce = require('./utils/debounce'); var domUtils = req...
entry_types/scrolled/package/src/frontend/ContentElementMargin.js
tf/pageflow
import React from 'react'; import styles from './ContentElementMargin.module.css'; export function ContentElementMargin({position, children}) { if (position === 'full') { return children; } return ( <div className={styles.wrapper}> {children} </div> ); }
entry_types/scrolled/package/src/frontend/server.js
tf/pageflow
import 'core-js/stable'; import 'core-js/features/typed-array/uint16-array'; import React from 'react'; import ReactRailsUJS from 'react_ujs'; import {Root, setupI18n} from 'pageflow-scrolled/frontend'; ReactRailsUJS.getConstructor = function() { // Normally this function receives the name of a component, but we ...
ajax/libs/algoliasearch/3.26.0/algoliasearch.angular.js
holtkamp/cdnjs
/*! algoliasearch 3.26.0 | © 2014, 2015 Algolia SAS | github.com/algolia/algoliasearch-client-js */ (function(f){var g;if(typeof window!=='undefined'){g=window}else if(typeof self!=='undefined'){g=self}g.ALGOLIA_MIGRATION_LAYER=f()})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o...
docs/app/Examples/elements/Container/Variations/ContainerExampleAlignment.js
Rohanhacker/Semantic-UI-React
/* eslint-disable max-len */ import React from 'react' import { Container, Divider } from 'semantic-ui-react' const ContainerExampleAlignment = () => ( <div> <Container textAlign='left'> Left Aligned </Container> <Container textAlign='center'> Center Aligned </Container> <Container t...
app/navigators/WalletTabBarConfiguration.js
ixje/neon-wallet-react-native
import React from 'react' import { TabNavigator, TabBarBottom } from 'react-navigation' import FAIcons from 'react-native-vector-icons/FontAwesome' import ENTIcons from 'react-native-vector-icons/Entypo' import WalletInfo from '../screens/loggedIn/walletInfo' import TransactionHistory from '../screens/loggedIn/transact...
src/pages/Shelf.js
marcosmiklos/my-reads
import React from 'react' import 'semantic-ui-css/semantic.min.css'; import { Grid, Card, Image, Dropdown } from 'semantic-ui-react' const Shelf = ({ books=[], shelves=[], shelfTitle = '', onUpdateShelf, columns = 5 }) => { const options = shelves.concat([{key: 'none', text: 'None', value: 'none' }]); return ( ...
src/routes/Character/routes/PvE/components/PvEView.js
warcraftlfg/warcrafthub-client
import React from 'react' import { Row, Col } from 'react-bootstrap' import CharacterRaidProgress from './CharacterRaidProgress' export const PvEView = (props) => { if (props.character && props.character.data && props.character.data.progression) { return (<div className='pve-view'> <Row> <Col md={...
client/src/javascript/components/sidebar/FeedsButton.js
jfurrow/flood
import {defineMessages, injectIntl} from 'react-intl'; import React from 'react'; import FeedIcon from '../icons/FeedIcon'; import Tooltip from '../general/Tooltip'; import UIActions from '../../actions/UIActions'; const MESSAGES = defineMessages({ feeds: { id: 'sidebar.button.feeds', defaultMessage: 'Feeds...
src/svg-icons/hardware/dock.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareDock = (props) => ( <SvgIcon {...props}> <path d="M8 23h8v-2H8v2zm8-21.99L8 1c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM16 15H8V5h8v10z"/> </SvgIcon> ); HardwareDock = ...
app/javascript/__tests__/setup.js
houndci/hound
import React from 'react'; global.React = React; import _ from 'lodash'; global._ = _; import $ from 'jquery'; global.$ = $; import classNames from 'classnames'; global.classNames = classNames; import sinon from 'sinon'; global.sinon = sinon; const Hound = window.Hound = global.Hound = { settings: { placehol...
src/modules/commenters/components/CommenterList/CommenterList.js
CtrHellenicStudies/Commentary
import React from 'react'; import PropTypes from 'prop-types'; // components import CommenterTeaser from '../CommenterTeaser/CommenterTeaser'; import './CommenterList.css' const CommenterList = ({ commenters }) => { return ( <div className="commenters-list"> {commenters.map(commenter => (<CommenterTeas...
docs/src/app/components/pages/components/DropDownMenu/ExampleOpenImmediate.js
andrejunges/material-ui
import React from 'react'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem'; export default class DropDownMenuOpenImmediateExample extends React.Component { constructor(props) { super(props); this.state = {value: 2}; } handleChange = (event, index, value)...
webapp-src/src/Admin/EmailParams.js
babelouest/glewlwyd
import React, { Component } from 'react'; import i18next from 'i18next'; import messageDispatcher from '../lib/MessageDispatcher'; class EmailParams extends Component { constructor(props) { super(props); if (!props.mod) { props.mod = {parameters: {}}; } if (props.mod.parameters.host ...
react-vr/v2-tree/rn-cli.config.js
nikgraf/webvr-experiments
'use strict'; var path = require('path'); var blacklist = require('./node_modules/react-native/packager/blacklist'); var config = { getProjectRoots() { return getRoots(); }, getBlacklistRE() { return blacklist([]); }, getAssetExts() { return ['obj', 'mtl']; }, getPlatforms() { return ...
docs/src/components/Main.js
mattBlackDesign/react-materialize
import React from 'react'; import { Route } from 'react-router-dom'; import routesConfig from '../routes'; const renderRoute = (route) => <Route key={route.path} {...route} />; const getPageTitle = () => window.location.hash.substring(2) || 'React Materialize'; const capitalize = path => path[0] ? path[0].toUpperCase...
ajax/libs/6to5/1.14.7/browser-polyfill.js
maxklenk/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...
docs/src/sections/SliderSection.js
lzcmaro/react-ratchet
import React from 'react'; import Samples from '../Samples' import ReactPlayground from '../ReactPlayground' export default function SliderSection() { return ( <div> <ReactPlayground id="sliders" title='Sliders' desc='滑动控件' codeText={Samples.Sliders} /> </div> ); };
src/containers/AppContainer.js
ihenvyr/react-parse
import React from 'react'; import { Router, browserHistory } from 'react-router'; import { applyMiddleware, compose, createStore, combineReducers } from 'redux'; import { routerMiddleware } from 'react-router-redux'; import { Provider } from 'react-redux'; import thunk from 'redux-thunk'; import { products, brands } fr...
src/parser/priest/shadow/modules/talents/AuspiciousSpirits.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS/index'; import { formatNumber } from 'common/format'; import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox'; import ItemDamageDone from 'interface/ItemDamageDone'; const SPIRI...