path
stringlengths
5
304
repo_name
stringlengths
6
79
content
stringlengths
27
1.05M
test/NavSpec.js
tannewt/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Nav from '../src/Nav'; import NavItem from '../src/NavItem'; import Button from '../src/Button'; describe('Nav', function () { it('Should set the correct item active', function () { let instance = ReactTestUtils.renderIntoDo...
src/components/form/preview_item.js
woshisbb43/coinMessageWechat
//1.0.0 components import React from 'react'; import PropTypes from 'prop-types'; import classNames from '../../utils/classnames'; /** * Preview Item for all purpose usage * */ const PreviewItem = (props) => { const { className, label, value, ...others } = props; const cls = classNames({ 'weui-for...
ajax/libs/forerunnerdb/1.4.27/fdb-core+views+persist.min.js
hare1039/cdnjs
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex...
node_modules/react/lib/ReactDefaultInjection.js
ibjohansen/acando-react-boilerplate-extended
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ...
jekyll-strapi-tutorial/api/plugins/upload/admin/src/components/EditForm/index.js
strapi/strapi-examples
/** * * EditForm * */ import React from 'react'; import { findIndex, get, isEmpty, map } from 'lodash'; import PropTypes from 'prop-types'; // You can find these components in either // ./node_modules/strapi-helper-plugin/lib/src // or strapi/packages/strapi-helper-plugin/lib/src import Input from 'components/Inpu...
src/components/Accordion/Accordion.js
joshblack/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; import { settings } from 'carbon-componen...
.babelrc.js
reactjs/react-tabs
'use strict'; const target = process.env.BABEL_TARGET; const output = process.env.BABEL_OUTPUT; const env = process.env.NODE_ENV; const modules = output == null ? false : output; const targets = env === 'test' ? { node: 'current' } : undefined; const options = { comments: false, minified: true, assumptions: { ...
src/svg-icons/notification/drive-eta.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationDriveEta = (props) => ( <SvgIcon {...props}> <path d="M18.92 5.01C18.72 4.42 18.16 4 17.5 4h-11c-.66 0-1.21.42-1.42 1.01L3 11v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 ...
lib/components/__tests__/edit-bundle.js
conveyal/scenario-editor
// @flow import React from 'react' import renderer from 'react-test-renderer' import EditBundle from '../edit-bundle' import {mockBundle} from '../../utils/mock-data' describe('Component > EditBundle', () => { it('renders correctly', () => { const props = { bundles: [mockBundle], bundle: mockBundle...
src/components/AddConfigItem.js
cagedtornado/centralconfig-ui
// React import React, { Component } from 'react'; import { Button, Modal, ModalHeader, ModalBody, ModalFooter, Nav, NavItem, NavLink, TabContent, TabPane, Row, Col } from 'reactstrap'; import Autocomplete from 'react-autocomplete'; import classnames from 'classnames'; // Utils import Ce...
example/main.js
react-ld/react-wx-images-viewer
import React from 'react'; import ReactDOM from 'react-dom'; import { AppContainer } from 'react-hot-loader'; // AppContainer 是一个 HMR 必须的包裹(wrapper)组件 import App from './App.jsx'; const render = (Component) => { ReactDOM.render( <AppContainer> <Component /> </AppContainer>, document.getElementByI...
client/src/RequestDialog.js
pestrada/requests-app
import React from 'react'; import { Button, Dialog, DialogTitle, DialogContent, DialogActions, Textfield } from 'react-mdl'; class RequestDialog extends React.Component { constructor(props) { super(props); this.state = { description: '' }; } onChange = (e) => { this.setState({description...
src/views/UploadForm.js
ubclaunchpad/sift-web
import Button from './../components/Button'; import ConceptInput from './../components/ConceptInput'; import DropArea from './../components/DropArea'; import React from 'react'; const UploadForm = () => ( <div> <h1> Sift </h1> <h2> A simple review <span> aggregator</span> app. </h2> <DropArea /> <But...
test/regressions/tests/Select/SelectAlignment.js
allanalexandre/material-ui
import React from 'react'; import Input from '@material-ui/core/Input'; import InputLabel from '@material-ui/core/InputLabel'; import MenuItem from '@material-ui/core/MenuItem'; import FormHelperText from '@material-ui/core/FormHelperText'; import FormControl from '@material-ui/core/FormControl'; import Select from '@m...
src/containers/views/DocumentEdit.js
jekyll/jekyll-admin
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { browserHistory, withRouter } from 'react-router'; import { HotKeys } from 'react-hotkeys'; import _ from 'underscore'; import DocumentTitle from 'reac...
ajax/libs/primeui/3.0.1/primeui.js
wout/cdnjs
/* * PrimeUI 3.0.1 * * Copyright 2009-2015 PrimeTek. * * 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 applicab...
src/app/pages/app/AppPage.js
orcinustools/dashboard
import React from 'react' import AppContainer from '../../containers/app/AppContainer' const AppPage = (props) => { return ( <AppContainer> { props.children } </AppContainer> ) } export default AppPage
src/components/ModalNotification.js
IAmPicard/StarTrekTimelinesSpreadsheet
import React from 'react'; import { Modal } from 'office-ui-fabric-react/lib/Modal'; import UserStore from './Styles'; export class ModalNotification extends React.Component { constructor(props) { super(props); this.state = { title: undefined, content: undefined, ...
admin/client/App/components/Footer/index.js
ratecity/keystone
/** * The global Footer, displays a link to the website and the current Keystone * version in use */ import React from 'react'; import { css } from 'glamor'; import { Container } from '../../elemental'; import theme from '../../../theme'; var Footer = React.createClass({ displayName: 'Footer', propTypes: { app...
src/docs/examples/ProgressBarCSSModules/Example10Percent.js
kenfly51/ps-react
import React from 'react'; import ProgressBarCSSModules from 'ps-react/ProgressBarCSSModules'; /** 10% progress */ const Example10Percent = () => { return <ProgressBarCSSModules percent={10} width={150} /> }; export default Example10Percent;
docs/src/GettingStartedPage.js
erictherobot/react-bootstrap
import React from 'react'; import CodeExample from './CodeExample'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; import Anchor from './Anchor'; export default class Page extends React.Component { render() { return ( <div> <NavMa...
src/renderers/dom/shared/DOMPropertyOperations.js
devonharvey/react
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ...
src/parser/warlock/demonology/modules/talents/index.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import StatisticsListBox, { STATISTIC_ORDER } from 'interface/others/StatisticsListBox'; import Dreadlash from './Dreadlash'; import DemonicStrength from './DemonicStrength'; import BilescourgeBombers from './BilescourgeBombers'; import DemonicC...
tests/lib/rules/indent.js
JedWatson/eslint
/** * @fileoverview This option sets a specific tab width for your code * @author Dmitriy Shekhovtsov * @copyright 2014 Dmitriy Shekhovtsov. All rights reserved. */ "use strict"; //------------------------------------------------------------------------------ // Requirements //-------------------------------------...
node_modules/react-router/es/Prompt.js
morselapp/shop_directory
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 &...
js/jquery.js
naentar/TFGManager
/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
src/svg-icons/hardware/keyboard-arrow-right.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardArrowRight = (props) => ( <SvgIcon {...props}> <path d="M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"/> </SvgIcon> ); HardwareKeyboardArrowRight = pure(HardwareKeyboardArrowRight); Hardwar...
lib/shared/screens/admin/shared/components/element-context-menu/index.js
relax/relax
import bind from 'decorators/bind'; import Component from 'components/component'; import React from 'react'; import PropTypes from 'prop-types'; import {makeElementSymbol, makeElementDynamic, duplicateElement, removeElement} from 'actions/page-builder'; import {connect} from 'react-redux'; import {bindActionCreators} f...
src/js/components/SearchTag/index.js
nathanuphoff/datahub.client
import React from 'react' import { Feedback } from '../' import { eventHandlers } from './events' export default function SearchTag({ props }) { const { store } = props const { value, search } = store.filter const { focus } = store.view.SearchInput const { searchQuery } = eventHandlers(props) const activ...
packages/@lyra/desk-tool/src/pane/InfiniteList.js
VegaPublish/vega-studio
import PropTypes from 'prop-types' import React from 'react' import VirtualList from 'react-tiny-virtual-list' import enhanceWithAvailHeight from './enhanceWithAvailHeight' export default enhanceWithAvailHeight( class InfiniteList extends React.PureComponent { static propTypes = { height: PropTypes.number,...
src/main/Root.js
piotr-gawron/pileup.js
/** * Root of the React component tree. * @flow */ 'use strict'; import type {GenomeRange} from './types'; import type {TwoBitSource} from './sources/TwoBitDataSource'; import type {VisualizedTrack, VizWithOptions} from './types'; import type ContigInterval from './ContigInterval'; import utils from './utils'; impo...
client/app/components/H2/index.js
Kielan/onDemanager
import React from 'react'; import styles from './styles.css'; class H2 extends React.Component { render() { return ( <h2 className={ this.props.className || styles.heading2 }>{ this.props.children }</h2> ); } } export default H2;
packages/material-ui-icons/legacy/Battery90Outlined.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V8h10V5.33z" /><path d="M7 8v12.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V8H7z" /></React.F...
src/components/sidebar/sidebar.js
flexbox/webcitation
import React from 'react' import styled from 'styled-components' import { Flex, Heading, Text, Button } from 'rebass/styled-components' import { Link } from 'gatsby' const contributeEmail = 'mailto:dleuliette@gmail.com?subject=New%20quote&body=title:%20author_name:%20author_twitter:' const frameLink = 'https://disp...
ajax/libs/forerunnerdb/1.2.22/fdb-legacy.js
redmunds/cdnjs
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n=global:"undefined"!=typeof self&&(n=self),n.ForerunnerDB=e()}}(function(){var define,module,expor...
entry_types/scrolled/package/src/frontend/ContentElements.js
tf/pageflow
import React from 'react'; import {ContentElement} from './ContentElement'; export function ContentElements(props) { return ( <> {props.items.map((item, index) => props.children(item, <MemoizedContentElement key={item.id} id={it...
redux-weather-forecast/src/components/chart.js
andreassiegel/react-redux
import _ from 'lodash'; import React from 'react'; import { Sparklines, SparklinesLine, SparklinesReferenceLine } from 'react-sparklines'; function average(data) { return _.round(_.sum(data)/data.length); } export default (props) => { return ( <div> <Sparklines height={ 120 } width={ 180...
src/components/graphs/full-graph.js
marcusdarmstrong/mockdraftable-web
// @flow import React from 'react'; import { round } from 'lodash'; import SpiderGraph from './spider-graph'; import Axis from './axis'; import generatePointsAndFactors from '../../logic'; import type { MeasurablePercentile } from '../../types/graphing'; import type { Color } from '../../types/domain'; type Props = ...
ajax/libs/clappr/0.0.88/clappr.js
maxklenk/cdnjs
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);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)...
ajax/libs/jquery/1.11.2/jquery.min.js
perfect-pixell/cdnjs
/*! jQuery v1.11.2 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
src/templates/product-page.js
svj2291/svj2291.github.io
import React from 'react' import Features from '../components/Features' import Testimonials from '../components/Testimonials' import Pricing from '../components/Pricing' export const ProductPageTemplate = ({ image, title, heading, description, intro, main, testimonials, fullImage, pricing, }) => ( ...
web-ui/src/common/app.js
pixelated-project/pixelated-user-agent
/* * Copyright (c) 2017 ThoughtWorks, Inc. * * Pixelated 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, or * (at your option) any later version. * * Pixelated i...
public/_common/js/yui/build/container/container_core-debug.js
ryoon/joruriplus
/* Copyright (c) 2009, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.net/yui/license.txt version: 2.7.0 */ (function () { /** * Config is a utility used within an Object to allow the implementer to * maintain a list of local configuration properties ...
src/routes/order/index.js
miaoji/guojibackend
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 Order = ({ location, dispatch, order, loading...
src/components/ListItem.js
iRail/datawall
import React, { Component } from 'react'; import styled, { keyframes } from 'styled-components'; import icons from '../img/icons'; import { colors, sizes } from '../constants'; const appear = keyframes` 0% { opacity: 0; } 50% { transform: scale(1.02); } 100% { transform: scale(1); opacity:...
examples/clock-app/src/App.js
raphamorim/react-tv
import React from 'react' import ReactTV, { Platform, renderOnAppLoaded } from 'react-tv' class Clock extends React.Component { constructor() { super() this.state = { date: new Date() } } componentDidMount() { setInterval(() => this.setState({date: new Date()}), 1000) } render() { let curre...
packages/material-ui-icons/src/DonutSmall.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M11 9.16V2c-5 .5-9 4.79-9 10s4 9.5 9 10v-7.16c-1-.41-2-1.52-2-2.84s1-2.43 2-2.84zM14.86 11H22c-.48-4.75-4-8.53-9-9v7.16c1 .3 1.52.98 1.86 1.84zM13 14.84V22c5-.47 8.52-4.25 9-9h-7.14c-.34.86-.86 1.54-1...
ajax/libs/react-virtualized/3.0.0/react-virtualized.min.js
kiwi89/cdnjs
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports["react-virtualized"]=t(require("react")):e["react-virtualized"]=t(e.React)}(this,function(e){return function(e){function t(n){if(...
bai/src/components/Navbar/index.js
blackinai/blackinai.github.io
import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { withStyles } from '@material-ui/core/styles'; import { Link, Drawer, IconButton, List, ListItem } from '@material-ui/core/'; import { AppBar, Toolbar, Button } from '@material-ui/core'; import MenuIcon from '@material-ui/ic...
resources/leiningen/new/expo/js/figwheel-bridge.js
seantempesta/expo-cljs-template
/* * Originally taken from https://github.com/decker405/figwheel-react-native * * @providesModule figwheel-bridge */ var debugEnabled = false; var config = { basePath: "target/", googBasePath: 'goog/', serverPort: 19001 }; var React = require('react'); var createReactClass = require('create-react-cla...
ajax/libs/remoteStorage/0.13.0/remotestorage.js
ahocevar/cdnjs
/** remotestorage.js 0.13.0, http://remotestorage.io, MIT-licensed **/ /** FILE: lib/bluebird.js **/ /** * bluebird build version 2.3.4 * Features enabled: core, nodeify * Features disabled: race, call_get, generators, map, promisify, props, reduce, settle, some, progress, cancel, using, filter, any, each, timers *...
test/client/pages/account/index.js
williamle8300/aqua
var React = require('react/addons'); var RouterTestLocation = require('react-router/lib/locations/TestLocation'); var Lab = require('lab'); var Code = require('code'); var Proxyquire = require('proxyquire'); var TestLocation = new RouterTestLocation(); var lab = exports.lab = Lab.script(); var stub = { RedirectActi...
app/scripts/MainViews/QueueControls.js
nthitz/playlist_archive_site
import React from 'react' import request from 'superagent' import _ from 'lodash' import RefluxActions from '../RefluxActions' import DjStore from '../stores/DjStore' import QueueStore from '../stores/QueueStore' import userAuth from '../userAuth' export default class QueueControls extends React.Component { constru...
src/svg-icons/editor/format-clear.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatClear = (props) => ( <SvgIcon {...props}> <path d="M3.27 5L2 6.27l6.97 6.97L6.5 19h3l1.57-3.66L16.73 21 18 19.73 3.55 5.27 3.27 5zM6 5v.18L8.82 8h2.4l-.72 1.68 2.1 2.1L14.21 8H20V5H6z"/> </SvgIcon...
src/components/FieldGroup.js
a7medsamir/react-employees-crud
import React from 'react'; import { Popover,HelpBlock, FormGroup,Row, Col , OverlayTrigger, FormControl, ControlLabel } from 'react-bootstrap' export default class FieldGroup extends React.Component { render() { const popoverHoverFocus = ( <Popover id="popover-trigger-hover-focus"> <HelpBlock>{thi...
examples/using-mobx/src/pages/index.js
0x80/gatsby
import React from "react" import Layout from "../components/layout" const Home = () => ( <Layout> <p>Home</p> </Layout> ) export default Home
packages/material-ui/src/FormGroup/FormGroup.js
allanalexandre/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import withStyles from '../styles/withStyles'; export const styles = { /* Styles applied to the root element. */ root: { display: 'flex', flexDirection: 'column', flexWrap: 'wrap', }, /* Styles applied to the ro...
ee/client/omnichannel/additionalForms/MaxChatsPerAgent.js
iiet/iiet-chat
import React from 'react'; import { NumberInput, Field } from '@rocket.chat/fuselage'; // import { useMutableCallback } from '@rocket.chat/fuselage-hooks'; import { useTranslation } from '../../../../client/contexts/TranslationContext'; import { useForm } from '../../../../client/hooks/useForm'; const MaxChatsPerAgen...
examples/_sortable-simple/index.js
prometheusresearch/react-dnd
'use strict'; import React from 'react'; import Container from './Container'; const DustbinSimple = React.createClass({ render() { return ( <div> <Container /> <hr /> <p> </p> </div> ); } }); export default DustbinSimple;
src/pages/fpm-blue.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='FPM Blue' /> )
src/svg-icons/navigation/apps.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationApps = (props) => ( <SvgIcon {...props}> <path d="M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"/> </SvgIcon> ...
assets/javascripts/kitten/components/graphics/icons-next/window-edit-icon-next/index.js
KissKissBankBank/kitten
import React from 'react' import PropTypes from 'prop-types' export const WindowEditIconNext = ({ color, title, ...props }) => ( <svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" {...props} > {title && <title>{title}</title>} <path d="M17.667 0H4.3...
ajax/libs/jquery.fancytree/2.18.0/jquery.fancytree.min.js
sashberd/cdnjs
/*! * jquery.fancytree.js * Tree view control with support for lazy loading and much more. * https://github.com/mar10/fancytree/ * * Copyright (c) 2008-2016, Martin Wendt (http://wwWendt.de) * Released under the MIT license * https://github.com/mar10/fancytree/wiki/LicenseInfo * * @version 2.18.0 * @date 2016...
docs/src/pages/layout/hidden/GridIntegration.js
Kagami/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import compose from 'recompose/compose'; import { withStyles } from '@material-ui/core/styles'; import Paper from '@material-ui/core/Paper'; import Grid from '@material-ui/core/Grid'; import Hidden from '@material-ui/core/Hidden'; import withWidth from '@ma...
information/blendle-frontend-react-source/app/components/dialogues/Social.js
BramscoChill/BlendleParser
import React from 'react'; import PropTypes from 'prop-types'; import Dialogue from 'components/dialogues/Dialogue'; import Button from 'components/Button'; import { STATUS_OK, STATUS_PENDING } from 'app-constants'; import SocialLanding from 'components/social/ConnectLanding'; import ConnectFacebook from 'components/so...
fields/types/datearray/DateArrayFilter.js
qwales1/keystone
import React from 'react'; import ReactDOM from 'react-dom'; import moment from 'moment'; import DayPicker from 'react-day-picker'; import { FormField, FormInput, FormRow, FormSelect } from 'elemental'; const PRESENCE_OPTIONS = [ { label: 'At least one element', value: 'some' }, { label: 'No element', value: 'none'...
examples/counter/test/components/Counter.spec.js
naoishii/ohk2016C
import expect from 'expect' import React from 'react' import TestUtils from 'react-addons-test-utils' import Counter from '../../components/Counter' function setup(value = 0) { const actions = { onIncrement: expect.createSpy(), onDecrement: expect.createSpy() } const component = TestUtils.renderIntoDocum...
src/website/app/pages/Home/index.js
mineral-ui/mineral-ui
/* @flow */ import React, { Component } from 'react'; import styled from '@emotion/styled'; import Media from 'react-media'; import Helmet from 'react-helmet'; import { canUseDOM } from 'exenv'; import darken from 'polished/lib/color/darken'; import desaturate from 'polished/lib/color/desaturate'; import rgba from 'pol...
packages/material-ui-icons/src/VignetteTwoTone.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M3 19h18V5H3v14zm9-13c4.42 0 8 2.69 8 6s-3.58 6-8 6-8-2.69-8-6 3.58-6 8-6z" opacity=".3" /><path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h...
src/Row.js
15lyfromsaturn/react-materialize
import React from 'react'; import cx from 'classnames'; class Row extends React.Component { render() { let C = this.props.node; return ( <C className={cx('row', this.props.className)} {...this.props}> {this.props.children} </C> ); } } Row.propTypes = { node: React.PropTyp...
user_guide/searchindex.js
UjiAhmadFauzi/nuro-eLearning
Search.setIndex({envversion:42,terms:{represent:[25,118,13,80],mybackup:76,yellow:[6,132],poorli:93,four:[152,89,54,138,55,128,124,133,127],prefix:[89,97,2,29],oldest:133,hate:134,optimize_databas:76,forget:[51,106],whose:29,choos:[44,88,12,152,29,54,80,47,82,112,106,51,149],accur:[0,29,117,154,42,96],aug:93,emailaddre...
src/js/bundle.js
schabou/cheap-booze
import React from 'react'; import ReactDOM from 'react-dom' import Layout from './components/Layout'; const app = document.getElementById('app'); ReactDOM.render(<Layout/>, app);
ajax/libs/forerunnerdb/1.3.641/fdb-core.js
kiwi89/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...
webroot/assets/jquery.min.js
DigitalPublishingToolkit/epubster
/*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
ajax/libs/yui/3.3.0/loader/loader-debug.js
jaggedsoft/cdnjs
YUI.add('loader-base', function(Y) { /** * The YUI loader core * @module loader * @submodule loader-base */ if (!YUI.Env[Y.version]) { (function() { var VERSION = Y.version, BUILD = '/build/', ROOT = VERSION + BUILD, CDN_BASE = Y.Env.base, GALLERY_VERSI...
packages/reactabular-virtualized/src/body-row.js
reactabular/reactabular
import { isEqual } from 'lodash'; import React from 'react'; import { columnsAreEqual } from 'reactabular-table'; import { bodyRowContextTypes, bodyRowTypes } from './types'; class BodyRow extends React.Component { constructor(props) { super(props); this.ref = null; this.updateHeight = this.updateHeigh...
admin/client/components/Checkbox.js
codevlabs/keystone
import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; import Color from 'color'; import E from '../constants'; var Checkbox = React.createClass({ displayName: 'Checkbox', propTypes: { checked: React.PropTypes.bool, component: React.PropTypes.node, onChange: React.Pr...
test/integration/client-navigation/pages/head.js
JeromeFitz/next.js
import React from 'react' import Head from 'next/head' export default () => ( <div> <Head> {/* this will not render */} <meta charSet="utf-8" /> {/* this will get rendered */} <meta charSet="iso-8859-5" /> {/* this will not render */} <meta name="viewport" content="width=devi...
node_modules/tether/docs/welcome/js/jquery.js
btd1337/angular2-dev
/*! * jQuery JavaScript Library v1.9.1 * http://jquery.com/ * * Includes Sizzle.js * http://sizzlejs.com/ * * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors * Released under the MIT license * http://jquery.org/license * * Date: 2013-2-4 */ (function( window, undefined ) { // Can't do t...
test/JumbotronSpec.js
bbc/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Jumbotron from '../src/Jumbotron'; describe('Jumbotron', () => { it('Should output a div with content', () => { let instance = ReactTestUtils.renderIntoDocument( <Jumbotron> <strong>Content</strong> </Jum...
docs/app/Examples/collections/Form/States/FormWarningExample.js
jcarbo/stardust
import React from 'react' import { Button, Form, Input, Message } from 'stardust' const FormErrorExample = () => ( <Form warning> <Form.Input label='Email' placeholder='joe@schmoe.com' /> <Message warning header='Could you check something!' list={[ 'That e-mail has been subscribed, ...
src/testdata/sortabletree/demo/TreeData.js
OCMC-Translation-Projects/ioc-liturgical-react
import React from 'react'; const maxDepth = 5; const renderDepthTitle = ({ path }) => `Depth: ${path.length}`; const treeData = [ { title: '`title`', subtitle: '`subtitle`', expanded: true, children: [ { title: 'Child Node', subtitle: 'Defined in...
app/components/Map/index.js
prudhvisays/season
import React from 'react'; import MapStyle from './MapStyle'; export default class Map extends React.Component { // eslint-disable-line react/prefer-stateless-function constructor(props) { super(props); this.intiMap = this.intiMap.bind(this); } componentDidMount() { this.intiMap(); } intiMap() ...
src/containers/Belajar/Belajar.js
hirzanalhakim/testKumparan
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { DecrementButton } from 'components'; import { CounterButton } from 'components'; import { set } from 'redux/modules/name'; @connect( state =>({ counter:state.counter, name: state.name.name }), {setName: set } ...
ajax/libs/yui/3.10.0pr1/event-focus/event-focus-coverage.js
itvsai/cdnjs
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/event-focus/event-focus.js']) { __coverage__['build/event-focus/event-focus.js'] = {"path":"build/event-focus/event-focus.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"...
src/components/Router.js
g8extended/Character-Generator
import React from 'react'; import { connect } from 'react-redux'; import { Router, Route, IndexRedirect } from 'react-router'; import App from './App'; import Success from './Success'; import Assets from './Assets'; import { setRouter } from '../actions/assets'; import ReactGA from 'react-ga'; if (typeof window !== 'u...
static/src/js/components/PageFooter.js
enginyoyen/blackcrystal
import React from 'react'; let version = "1.1" const PageFooter = React.createClass({ render() { return ( <footer className="bs-docs-footer" role="contentinfo"> <div className="container"> </div> </footer> ); } }); export default PageFooter;
src/docs/reference/Accessibility.js
karatechops/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import DocsArticle from '../../components/DocsArticle'; import Table from 'grommet/components/Table'; import Status from 'grommet/components/icons/Status'; export default class Accessibility extends Componen...
demo/App.js
hcjk/react-pasta
import React from 'react' import Container from '../src/Container' import Heading from '../src/Heading' import Card from '../src/Card' import Text from '../src/Text' import Link from '../src/Link' import Button from '../src/Button' import Input from '../src/Input' const App = () => { const basic = { padding: '3r...
ajax/libs/analytics.js/1.3.30/analytics.min.js
Amomo/cdnjs
(function(){function require(path,parent,orig){var resolved=require.resolve(path);if(null==resolved){orig=orig||path;parent=parent||"root";var err=new Error('Failed to require "'+orig+'" from "'+parent+'"');err.path=orig;err.parent=parent;err.require=true;throw err}var module=require.modules[resolved];if(!module._resol...
components/dialog/Dialog.js
showings/react-toolbox
/* eslint-disable jsx-a11y/aria-role */ import React from 'react'; import PropTypes from 'prop-types'; import { themr } from 'react-css-themr'; import classnames from 'classnames'; import { DIALOG } from '../identifiers'; import Portal from '../hoc/Portal'; import ActivableRenderer from '../hoc/ActivableRenderer'; impo...
modules/react-basic-layout/src/components/Container.js
conorhastings/react-color
'use strict'; import React from 'react'; import ReactCSS from 'reactcss'; class Container extends ReactCSS.Component { classes() { return { 'default': { container: { maxWidth: this.props.width + 'px', padding: '0 20px', margin: '0 auto', }, }, }; ...
src/components/event/EventRankings.js
tervay/AutoScout
import React from 'react'; import { linkTeam } from '@/js/links'; import { getEventRankings } from '@/js/api'; import Error404 from '../404/Error404'; export default class EventRankings extends React.Component { constructor(props) { super(props); this.state = {}; } componentDidMount() { getEventRank...
files/yasqe/2.9.0/yasqe.bundled.min.js
ezekutor/jsdelivr
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)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.YASQE=e()}}(function(){var e;return function t(e,r,i)...
example/src/index.js
dominique-mueller/simple-progress-webpack-plugin
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import reportWebVitals from './reportWebVitals'; ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getElementById('root') ); // If you want to start measuring performance in yo...
caravel/assets/webpack.config.js
tienhv/caravel
var path = require('path'); var APP_DIR = path.resolve(__dirname, './'); // input var BUILD_DIR = path.resolve(__dirname, './javascripts/dist'); // output var config = { // for now generate one compiled js file per entry point / html page entry: { 'css-theme': APP_DIR + '/javascripts/css-theme.js', ...
actor-apps/app-web/src/app/components/sidebar/HeaderSection.react.js
yangchenghu/actor-platform
import _ from 'lodash'; import React from 'react'; import mixpanel from 'utils/Mixpanel'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import classNames from 'classnames'; import MyProfileActions from '../../actions/MyProfileActionCreators'; import LoginActionCreators...
js/src/components/Option/__test__/optionTest.js
understory-dev/react-draft-wysiwyg
/* @flow */ import React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; import { shallow, mount } from 'enzyme'; import Option from '..'; describe('Option test suite', () => { it('should have a div when rendered', () => { expect(shallow( <Option value="b" onClick...
example/examples/CustomTiles.js
jiaminglu/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, } from 'react-native'; import MapView, { MAP_TYPES, PROVIDER_DEFAULT } from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 31.23295; const LONGITUDE = 121.38...
packages/material-ui-icons/src/SdStorageRounded.js
allanalexandre/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M18 2h-7.17c-.53 0-1.04.21-1.42.59L4.6 7.42c-.37.37-.6.88-.6 1.4V20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 6c-.55 0-1-.45-1-1V5...